| /kernel/linux/linux-6.6/drivers/scsi/ |
| H A D | sg.c | 86 /proc/scsi/sg/def_reserved_size . Each time sg_open() is called a buffer 114 unsigned bufflen; /* Size of (aggregate) data buffer */ 127 Sg_scatter_hold data; /* hold buffer, perhaps scatter list */ 130 char res_used; /* 1 -> using reserve buffer, 0 -> not ... */ 148 Sg_scatter_hold reserve; /* buffer held for this file descriptor */ 532 /* Now copy the result back to the user buffer. */ in sg_read() 658 /* Determine buffer size. */ in sg_write() 745 return -ENOMEM; /* MMAP_IO size must fit in reserve buffer */ in sg_new_write() 753 return -EBUSY; /* reserve buffer already being used */ in sg_new_write() 1279 ret = -ENOMEM; /* cannot map more than reserved buffer */ in sg_mmap() 2395 sg_proc_write_adio(struct file *filp, const char __user *buffer, size_t count, loff_t *off) sg_proc_write_adio() argument 2416 sg_proc_write_dressz(struct file *filp, const char __user *buffer, size_t count, loff_t *off) sg_proc_write_dressz() argument [all...] |
| /kernel/linux/linux-6.6/drivers/usb/host/ |
| H A D | octeon-hcd.c | 165 * @offset: This is the offset in bytes into the main buffer where this data 262 * @buffer: User's physical buffer address to read/write. 263 * @buffer_length: Size of the user's buffer in bytes. 277 u64 buffer; member 401 * struct octeon_temp_buffer - a bounce buffer for USB transfers 402 * @orig_buffer: the original buffer passed by the USB stack 403 * @data: the newly allocated temporary buffer (excluding meta-data) 406 * the buffer is too short, we need to allocate a temporary one, and this struct 420 * octeon_alloc_temp_buffer - allocate a temporary buffer fo 2124 cvmx_usb_submit_transaction( struct octeon_hcd *usb, struct cvmx_usb_pipe *pipe, enum cvmx_usb_transfer type, u64 buffer, int buffer_length, u64 control_header, int iso_start_frame, int iso_number_packets, struct cvmx_usb_iso_packet *iso_packets, struct urb *urb) cvmx_usb_submit_transaction() argument [all...] |
| /kernel/linux/linux-6.6/drivers/net/ethernet/toshiba/ |
| H A D | ps3_gelic_wireless.c | 158 arg1 = (cmd->buffer) ? in gelic_eurus_sync_cmd_worker() 159 ps3_mm_phys_to_lpar(__pa(cmd->buffer)) : in gelic_eurus_sync_cmd_worker() 181 arg1 = ps3_mm_phys_to_lpar(__pa(cmd->buffer)); in gelic_eurus_sync_cmd_worker() 206 void *buffer, in gelic_eurus_sync_cmd() 218 cmd->buffer = buffer; in gelic_eurus_sync_cmd() 1513 pr_info("%s: scan buffer alloc failed\n", __func__); in gelic_wl_scan_complete_event() 1751 /* we can assume no one should uses the buffer */ in gelic_wl_do_wep_setup() 1841 /* we can assume no one should uses the buffer */ in gelic_wl_do_wpa_setup() 2343 /* buffer fo in gelic_wl_alloc() 204 gelic_eurus_sync_cmd(struct gelic_wl_info *wl, unsigned int eurus_cmd, void *buffer, unsigned int buf_size) gelic_eurus_sync_cmd() argument [all...] |
| /kernel/linux/linux-6.6/sound/pci/ |
| H A D | ens1370.c | 124 #define ES_1370_ADC_STOP (1<<31) /* disable capture buffer transfers */ 1847 struct snd_info_buffer *buffer) in snd_ensoniq_proc_read() 1851 snd_iprintf(buffer, "Ensoniq AudioPCI " CHIP_NAME "\n\n"); in snd_ensoniq_proc_read() 1852 snd_iprintf(buffer, "Joystick enable : %s\n", in snd_ensoniq_proc_read() 1855 snd_iprintf(buffer, "MIC +5V bias : %s\n", in snd_ensoniq_proc_read() 1857 snd_iprintf(buffer, "Line In to AOUT : %s\n", in snd_ensoniq_proc_read() 1860 snd_iprintf(buffer, "Joystick port : 0x%x\n", in snd_ensoniq_proc_read() 2216 /* fill UART FIFO buffer at first, and turn Tx interrupts only if necessary */ in snd_ensoniq_midi_output_trigger() 1846 snd_ensoniq_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ensoniq_proc_read() argument
|
| /kernel/linux/linux-6.6/mm/ |
| H A D | mempolicy.c | 3132 * @buffer: to contain formatted mempolicy string 3133 * @maxlen: length of @buffer 3136 * Convert @pol into a string. If @buffer is too short, truncate the string. 3140 void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) in mpol_to_str() argument 3142 char *p = buffer; in mpol_to_str() 3171 p += snprintf(p, buffer + maxlen - p, "="); in mpol_to_str() 3177 p += snprintf(p, buffer + maxlen - p, "static"); in mpol_to_str() 3179 p += snprintf(p, buffer + maxlen - p, "relative"); in mpol_to_str() 3183 p += scnprintf(p, buffer + maxlen - p, ":%*pbl", in mpol_to_str()
|
| /kernel/linux/linux-6.6/kernel/sched/ |
| H A D | rt.c | 39 static int sched_rt_handler(struct ctl_table *table, int write, void *buffer, 41 static int sched_rr_handler(struct ctl_table *table, int write, void *buffer, 3301 static int sched_rt_handler(struct ctl_table *table, int write, void *buffer, in sched_rt_handler() argument 3312 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in sched_rt_handler() 3340 static int sched_rr_handler(struct ctl_table *table, int write, void *buffer, in sched_rr_handler() argument 3347 ret = proc_dointvec(table, write, buffer, lenp, ppos); in sched_rr_handler()
|
| /kernel/linux/linux-6.6/net/ipv4/ |
| H A D | devinet.c | 2412 void *buffer, size_t *lenp, loff_t *ppos) in devinet_conf_proc() 2415 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_conf_proc() 2464 void *buffer, size_t *lenp, loff_t *ppos) in devinet_sysctl_forward() 2475 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_sysctl_forward() 2511 void *buffer, size_t *lenp, loff_t *ppos) in ipv4_doint_and_flush() 2515 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in ipv4_doint_and_flush() 2411 devinet_conf_proc(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) devinet_conf_proc() argument 2463 devinet_sysctl_forward(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) devinet_sysctl_forward() argument 2510 ipv4_doint_and_flush(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) ipv4_doint_and_flush() argument
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
| H A D | dce_v11_0.c | 609 * dce_v11_0_line_buffer_adjust - Set up the line buffer 616 * Setup up the line buffer allocation for 618 * Returns the line buffer size in pixels. 733 u32 lb_size; /* line buffer allocated to pipe */ 1046 * @lb_size: line buffer size 1182 * buffer allocation (CIK). 1561 void *buffer, size_t size) in dce_v11_0_afmt_update_avi_infoframe() 1567 uint8_t *frame = buffer + 3; in dce_v11_0_afmt_update_avi_infoframe() 1568 uint8_t *header = buffer; in dce_v11_0_afmt_update_avi_infoframe() 1618 u8 buffer[HDMI_INFOFRAME_HEADER_SIZ in dce_v11_0_afmt_setmode() local 1560 dce_v11_0_afmt_update_avi_infoframe(struct drm_encoder *encoder, void *buffer, size_t size) dce_v11_0_afmt_update_avi_infoframe() argument [all...] |
| H A D | dce_v8_0.c | 520 * dce_v8_0_line_buffer_adjust - Set up the line buffer 527 * Setup up the line buffer allocation for 529 * Returns the line buffer size in pixels. 642 u32 lb_size; /* line buffer allocated to pipe */ 955 * @lb_size: line buffer size 1093 * buffer allocation (CIK). 1469 void *buffer, size_t size) in dce_v8_0_afmt_update_avi_infoframe() 1476 uint8_t *frame = buffer + 3; in dce_v8_0_afmt_update_avi_infoframe() 1477 uint8_t *header = buffer; in dce_v8_0_afmt_update_avi_infoframe() 1523 u8 buffer[HDMI_INFOFRAME_HEADER_SIZ in dce_v8_0_afmt_setmode() local 1468 dce_v8_0_afmt_update_avi_infoframe(struct drm_encoder *encoder, void *buffer, size_t size) dce_v8_0_afmt_update_avi_infoframe() argument [all...] |
| H A D | dce_v10_0.c | 583 * dce_v10_0_line_buffer_adjust - Set up the line buffer 590 * Setup up the line buffer allocation for 592 * Returns the line buffer size in pixels. 707 u32 lb_size; /* line buffer allocated to pipe */ 1020 * @lb_size: line buffer size 1156 * buffer allocation (CIK). 1519 void *buffer, size_t size) in dce_v10_0_afmt_update_avi_infoframe() 1525 uint8_t *frame = buffer + 3; in dce_v10_0_afmt_update_avi_infoframe() 1526 uint8_t *header = buffer; in dce_v10_0_afmt_update_avi_infoframe() 1576 u8 buffer[HDMI_INFOFRAME_HEADER_SIZ in dce_v10_0_afmt_setmode() local 1518 dce_v10_0_afmt_update_avi_infoframe(struct drm_encoder *encoder, void *buffer, size_t size) dce_v10_0_afmt_update_avi_infoframe() argument [all...] |
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_common.c | 487 * @pba_num_size: part number string buffer length 501 hw_dbg(hw, "PBA string buffer was null\n"); in ixgbe_read_pba_string_generic() 527 hw_dbg(hw, "PBA string buffer too small\n"); in ixgbe_read_pba_string_generic() 568 /* check if pba_num buffer is big enough */ in ixgbe_read_pba_string_generic() 570 hw_dbg(hw, "PBA string buffer too small\n"); in ixgbe_read_pba_string_generic() 911 * initialization. It is worth to do that when we write large buffer. in ixgbe_write_eeprom_buffer_bit_bang_generic() 1189 * This function is called only when we are writing a new large buffer 2222 * to the Rx packet buffer size - 24KB. This allows in ixgbe_fc_enable_generic() 3490 * ixgbe_set_rxpba_generic - Initialize RX packet buffer 3494 * @strategy: packet buffer allocatio 3563 ixgbe_calculate_checksum(u8 *buffer, u32 length) ixgbe_calculate_checksum() argument 3592 ixgbe_hic_unlocked(struct ixgbe_hw *hw, u32 *buffer, u32 length, u32 timeout) ixgbe_hic_unlocked() argument 3664 ixgbe_host_interface_command(struct ixgbe_hw *hw, void *buffer, u32 length, u32 timeout, bool return_data) ixgbe_host_interface_command() argument [all...] |
| /kernel/linux/linux-5.10/mm/ |
| H A D | shmem.c | 1473 char buffer[64]; in shmem_show_mpol() local 1478 mpol_to_str(buffer, sizeof(buffer), mpol); in shmem_show_mpol() 1480 seq_printf(seq, ",mpol=%s", buffer); in shmem_show_mpol() 3273 const char *name, void *buffer, size_t size) in shmem_xattr_handler_get() 3278 return simple_xattr_get(&info->xattrs, name, buffer, size); in shmem_xattr_handler_get() 3314 static ssize_t shmem_listxattr(struct dentry *dentry, char *buffer, size_t size) in shmem_listxattr() argument 3317 return simple_xattr_list(d_inode(dentry), &info->xattrs, buffer, size); in shmem_listxattr() 3271 shmem_xattr_handler_get(const struct xattr_handler *handler, struct dentry *unused, struct inode *inode, const char *name, void *buffer, size_t size) shmem_xattr_handler_get() argument
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/tegra/ |
| H A D | sor.c | 1913 u8 buffer[HDMI_INFOFRAME_SIZE(AVI)]; in tegra_sor_hdmi_setup_avi_infoframe() local 1932 err = hdmi_avi_infoframe_pack(&frame, buffer, sizeof(buffer)); in tegra_sor_hdmi_setup_avi_infoframe() 1938 tegra_sor_hdmi_write_infopack(sor, buffer, err); in tegra_sor_hdmi_setup_avi_infoframe() 1958 * The HDA codec will always report an ELD buffer size of 96 bytes and in tegra_sor_write_eld() 1959 * the HDA codec driver will check that each byte read from the buffer in tegra_sor_write_eld() 2019 u8 buffer[HDMI_INFOFRAME_SIZE(AUDIO)]; in tegra_sor_hdmi_enable_audio_infoframe() local 2032 err = hdmi_audio_infoframe_pack(&frame, buffer, sizeof(buffer)); in tegra_sor_hdmi_enable_audio_infoframe() 2038 tegra_sor_hdmi_write_infopack(sor, buffer, er in tegra_sor_hdmi_enable_audio_infoframe() [all...] |
| /kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
| H A D | dce_v8_0.c | 521 * dce_v8_0_line_buffer_adjust - Set up the line buffer 528 * Setup up the line buffer allocation for 530 * Returns the line buffer size in pixels. 643 u32 lb_size; /* line buffer allocated to pipe */ 956 * @lb_size: line buffer size 1094 * buffer allocation (CIK). 1469 void *buffer, size_t size) in dce_v8_0_afmt_update_avi_infoframe() 1476 uint8_t *frame = buffer + 3; in dce_v8_0_afmt_update_avi_infoframe() 1477 uint8_t *header = buffer; in dce_v8_0_afmt_update_avi_infoframe() 1523 u8 buffer[HDMI_INFOFRAME_HEADER_SIZ in dce_v8_0_afmt_setmode() local 1468 dce_v8_0_afmt_update_avi_infoframe(struct drm_encoder *encoder, void *buffer, size_t size) dce_v8_0_afmt_update_avi_infoframe() argument [all...] |
| H A D | dce_v11_0.c | 612 * dce_v11_0_line_buffer_adjust - Set up the line buffer 619 * Setup up the line buffer allocation for 621 * Returns the line buffer size in pixels. 736 u32 lb_size; /* line buffer allocated to pipe */ 1049 * @lb_size: line buffer size 1185 * buffer allocation (CIK). 1564 void *buffer, size_t size) in dce_v11_0_afmt_update_avi_infoframe() 1570 uint8_t *frame = buffer + 3; in dce_v11_0_afmt_update_avi_infoframe() 1571 uint8_t *header = buffer; in dce_v11_0_afmt_update_avi_infoframe() 1621 u8 buffer[HDMI_INFOFRAME_HEADER_SIZ in dce_v11_0_afmt_setmode() local 1563 dce_v11_0_afmt_update_avi_infoframe(struct drm_encoder *encoder, void *buffer, size_t size) dce_v11_0_afmt_update_avi_infoframe() argument [all...] |
| H A D | dce_v10_0.c | 580 * dce_v10_0_line_buffer_adjust - Set up the line buffer 587 * Setup up the line buffer allocation for 589 * Returns the line buffer size in pixels. 704 u32 lb_size; /* line buffer allocated to pipe */ 1017 * @lb_size: line buffer size 1153 * buffer allocation (CIK). 1515 void *buffer, size_t size) in dce_v10_0_afmt_update_avi_infoframe() 1521 uint8_t *frame = buffer + 3; in dce_v10_0_afmt_update_avi_infoframe() 1522 uint8_t *header = buffer; in dce_v10_0_afmt_update_avi_infoframe() 1572 u8 buffer[HDMI_INFOFRAME_HEADER_SIZ in dce_v10_0_afmt_setmode() local 1514 dce_v10_0_afmt_update_avi_infoframe(struct drm_encoder *encoder, void *buffer, size_t size) dce_v10_0_afmt_update_avi_infoframe() argument [all...] |
| /kernel/linux/linux-6.6/drivers/gpu/drm/tegra/ |
| H A D | sor.c | 1914 u8 buffer[HDMI_INFOFRAME_SIZE(AVI)]; in tegra_sor_hdmi_setup_avi_infoframe() local 1933 err = hdmi_avi_infoframe_pack(&frame, buffer, sizeof(buffer)); in tegra_sor_hdmi_setup_avi_infoframe() 1939 tegra_sor_hdmi_write_infopack(sor, buffer, err); in tegra_sor_hdmi_setup_avi_infoframe() 1959 * The HDA codec will always report an ELD buffer size of 96 bytes and in tegra_sor_write_eld() 1960 * the HDA codec driver will check that each byte read from the buffer in tegra_sor_write_eld() 2020 u8 buffer[HDMI_INFOFRAME_SIZE(AUDIO)]; in tegra_sor_hdmi_enable_audio_infoframe() local 2033 err = hdmi_audio_infoframe_pack(&frame, buffer, sizeof(buffer)); in tegra_sor_hdmi_enable_audio_infoframe() 2039 tegra_sor_hdmi_write_infopack(sor, buffer, er in tegra_sor_hdmi_enable_audio_infoframe() [all...] |
| /kernel/linux/linux-6.6/net/core/ |
| H A D | pktgen.c | 834 /* Parses imix entries from user buffer. 835 * The user buffer should consist of imix entries separated by spaces 839 static ssize_t get_imix_entries(const char __user *buffer, in get_imix_entries() argument 853 len = num_arg(&buffer[i], max_digits, &size); in get_imix_entries() 857 if (get_user(c, &buffer[i])) in get_imix_entries() 867 len = num_arg(&buffer[i], max_digits, &weight); in get_imix_entries() 877 if (get_user(c, &buffer[i])) in get_imix_entries() 890 static ssize_t get_labels(const char __user *buffer, struct pktgen_dev *pkt_dev) in get_labels() argument 900 len = hex32_arg(&buffer[i], 8, &tmp); in get_labels() 907 if (get_user(c, &buffer[ in get_labels() [all...] |
| /kernel/linux/linux-5.10/drivers/net/caif/ |
| H A D | caif_hsi.c | 165 char buffer[32]; /* Any reasonable value */ in cfhsi_flush_fifo() local 184 fifo_occupancy = min(sizeof(buffer), fifo_occupancy); in cfhsi_flush_fifo() 186 ret = cfhsi->ops->cfhsi_rx(buffer, fifo_occupancy, in cfhsi_flush_fifo() 1131 * Allocate a TX buffer with the size of a HSI packet descriptors in cfhsi_open() 1141 * Allocate a RX buffer with the size of two HSI packet descriptors and in cfhsi_open()
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/i825xx/ |
| H A D | sun3_82586.c | 599 p->xmit_buffs[i]->buffer = make24((p->xmit_cbuffs[i])); in init586() 667 rbd[i].buffer = make24(ptr); in alloc_rfa() 777 if( (totlen = swab16(rbd->status)) & RBD_LAST) /* the first and the last buffer? */ in sun3_82586_rcv_int() 786 skb_copy_to_linear_data(skb,(char *) p->base+swab32((unsigned long) rbd->buffer),totlen); in sun3_82586_rcv_int()
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_common.c | 255 * @buffer: pointer to command buffer 256 * @buf_len: max length of buffer 261 void *buffer, u16 buf_len) in iavf_debug_aq() 264 u8 *buf = (u8 *)buffer; in iavf_debug_aq() 285 if (buffer && aq_desc->datalen) { in iavf_debug_aq() 351 * @lut: pointer to the lut buffer provided by the caller 352 * @lut_size: size of the lut buffer 405 * @lut: pointer to the lut buffer provided by the caller 406 * @lut_size: size of the lut buffer 260 iavf_debug_aq(struct iavf_hw *hw, enum iavf_debug_mask mask, void *desc, void *buffer, u16 buf_len) iavf_debug_aq() argument [all...] |
| /kernel/linux/linux-5.10/drivers/input/ |
| H A D | joydev.c | 59 struct js_event buffer[JOYDEV_BUFFER_SIZE]; member 63 spinlock_t buffer_lock; /* protects access to buffer, head and tail */ 99 client->buffer[client->head] = *event; in joydev_pass_event() 329 *event = client->buffer[client->tail++]; in joydev_fetch_next_event()
|
| /kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
| H A D | mlx5_ib.h | 1160 int mlx5_ib_read_wqe_sq(struct mlx5_ib_qp *qp, int wqe_index, void *buffer, 1162 int mlx5_ib_read_wqe_rq(struct mlx5_ib_qp *qp, int wqe_index, void *buffer, 1164 int mlx5_ib_read_wqe_srq(struct mlx5_ib_srq *srq, int wqe_index, void *buffer,
|
| /kernel/linux/linux-5.10/drivers/media/platform/atmel/ |
| H A D | atmel-isi.c | 42 /* Frame buffer descriptor */ 44 /* Physical address of the frame buffer */ 63 /* Frame buffer data */ 102 /* Allocate descriptors for dma buffer use */ 359 static void start_dma(struct atmel_isi *isi, struct frame_buffer *buffer) in start_dma() argument 376 (u32)buffer->p_dma_desc->fbd_phys); in start_dma() 382 (u32)buffer->p_dma_desc->fbd_phys); in start_dma() 474 /* abort streaming and wait for last buffer */ 1244 /* buffer queue */ in atmel_isi_probe()
|
| /kernel/linux/linux-5.10/drivers/media/pci/saa7164/ |
| H A D | saa7164-encoder.c | 96 /* Dynamic buffer switch at encoder start time */ 146 printk(KERN_ERR "%s() failed (errno = %d), unable to allocate buffer\n", in saa7164_encoder_buffers_alloc() 604 /* Reset the state of any allocated buffer resources */ in saa7164_encoder_stop_streaming() 607 /* Reset the hard and soft buffer state */ in saa7164_encoder_stop_streaming() 639 /* allocate all of the PCIe DMA buffer resources on the fly, in saa7164_encoder_start_streaming() 788 static ssize_t fops_read(struct file *file, char __user *buffer, in fops_read() argument 825 /* blocking wait for buffer */ in fops_read() 834 /* Pull the first buffer from the used list */ in fops_read() 849 if (copy_to_user(buffer, p, cnt)) { in fops_read() 860 buffer in fops_read() [all...] |