| /kernel/linux/linux-5.10/fs/ |
| H A D | stat.c | 542 cp_statx(const struct kstat *stat, struct statx __user *buffer) in cp_statx() argument 573 return copy_to_user(buffer, &tmp, sizeof(tmp)) ? -EFAULT : 0; in cp_statx() 577 unsigned int mask, struct statx __user *buffer) in do_statx() 591 return cp_statx(&stat, buffer); in do_statx() 600 * @buffer: Result buffer. 608 struct statx __user *, buffer) in SYSCALL_DEFINE5() 610 return do_statx(dfd, filename, flags, mask, buffer); in SYSCALL_DEFINE5() 576 do_statx(int dfd, const char __user *filename, unsigned flags, unsigned int mask, struct statx __user *buffer) do_statx() argument
|
| /kernel/linux/linux-5.10/drivers/media/usb/cpia2/ |
| H A D | cpia2_usb.c | 99 * Now the output buffer should have a JPEG image in it. in process_frame() 123 * be read, so mark it empty. If the buffer is in process_frame() 125 * wait for the user to free the buffer. in process_frame() 231 /* Try to find an available buffer */ in cpia2_usb_complete() 297 ERR("buffer overflow! length: %d, n: %d\n", in cpia2_usb_complete() 393 cmd.buffer.block_data[0] = iso_regs[alt][0]; in configure_transfer_mode() 394 cmd.buffer.block_data[1] = iso_regs[alt][1]; in configure_transfer_mode() 395 cmd.buffer.block_data[2] = iso_regs[alt][2]; in configure_transfer_mode() 396 cmd.buffer.block_data[3] = iso_regs[alt][3]; in configure_transfer_mode() 411 reg = cmd.buffer in configure_transfer_mode() [all...] |
| /kernel/linux/linux-5.10/drivers/staging/most/dim2/ |
| H A D | dim2.c | 36 * The parameter representing the number of frames per sub-buffer for 40 * sub-buffer 1, 2, 4, 8, 16, 32, 64. 44 MODULE_PARM_DESC(fcnt, "Num of frames per sub-buffer for sync channels as a power of 2"); 153 * try_start_dim_transfer - try to transfer a buffer on a channel 156 * Transfer a buffer from pending_list if the channel is ready 233 * retrieve_netinfo - retrieve network status from received buffer 237 * Parse the message in buffer and get node address, link state, MAC address. 331 struct dim_channel **buffer) in get_active_channels() 338 buffer[idx++] = &dev->hch[ch_idx].ch; in get_active_channels() 340 buffer[id in get_active_channels() 330 get_active_channels(struct dim2_hdm *dev, struct dim_channel **buffer) get_active_channels() argument 398 struct dim_channel *buffer[DMA_CHANNELS + 1]; dim2_ahb_isr() local [all...] |
| /kernel/linux/linux-6.6/drivers/media/platform/ti/omap3isp/ |
| H A D | ispccp2.c | 541 struct isp_buffer *buffer; in ccp2_isr_buffer() local 543 buffer = omap3isp_video_buffer_next(&ccp2->video_in); in ccp2_isr_buffer() 544 if (buffer != NULL) in ccp2_isr_buffer() 545 ccp2_set_inaddr(ccp2, buffer->dma); in ccp2_isr_buffer() 934 * ccp2_video_queue - Queue video buffer. 936 * @buffer: Pointer to isp_buffer structure 939 static int ccp2_video_queue(struct isp_video *video, struct isp_buffer *buffer) in ccp2_video_queue() argument 943 ccp2_set_inaddr(ccp2, buffer->dma); in ccp2_video_queue()
|
| /kernel/linux/linux-6.6/fs/erofs/ |
| H A D | super.c | 128 u8 *buffer, *ptr; in erofs_read_metadata() local 139 buffer = kmalloc(len, GFP_KERNEL); in erofs_read_metadata() 140 if (!buffer) in erofs_read_metadata() 150 kfree(buffer); in erofs_read_metadata() 153 memcpy(buffer + i, ptr + erofs_blkoff(sb, *offset), cnt); in erofs_read_metadata() 156 return buffer; in erofs_read_metadata()
|
| /kernel/linux/linux-6.6/fs/ |
| H A D | stat.c | 622 cp_statx(const struct kstat *stat, struct statx __user *buffer) in cp_statx() argument 657 return copy_to_user(buffer, &tmp, sizeof(tmp)) ? -EFAULT : 0; in cp_statx() 661 unsigned int mask, struct statx __user *buffer) in do_statx() 680 return cp_statx(&stat, buffer); in do_statx() 689 * @buffer: Result buffer. 697 struct statx __user *, buffer) in SYSCALL_DEFINE5() 703 ret = do_statx(dfd, name, flags, mask, buffer); in SYSCALL_DEFINE5() 660 do_statx(int dfd, struct filename *filename, unsigned int flags, unsigned int mask, struct statx __user *buffer) do_statx() argument
|
| /kernel/linux/linux-6.6/drivers/staging/most/dim2/ |
| H A D | dim2.c | 36 * The parameter representing the number of frames per sub-buffer for 40 * sub-buffer 1, 2, 4, 8, 16, 32, 64. 44 MODULE_PARM_DESC(fcnt, "Num of frames per sub-buffer for sync channels as a power of 2"); 53 * @reset_dbr_size: reset DBR data buffer size 156 * try_start_dim_transfer - try to transfer a buffer on a channel 159 * Transfer a buffer from pending_list if the channel is ready 236 * retrieve_netinfo - retrieve network status from received buffer 240 * Parse the message in buffer and get node address, link state, MAC address. 334 struct dim_channel **buffer) in get_active_channels() 341 buffer[id in get_active_channels() 333 get_active_channels(struct dim2_hdm *dev, struct dim_channel **buffer) get_active_channels() argument 397 struct dim_channel *buffer[DMA_CHANNELS + 1]; dim2_ahb_isr() local [all...] |
| /kernel/linux/linux-6.6/drivers/tty/hvc/ |
| H A D | hvcs.c | 267 * This buffer is required so that when hvcs_write_room() reports that 268 * it can send HVCS_BUFF_LEN characters that it will buffer the full 274 char buffer[HVCS_BUFF_LEN]; member 534 &hvcsd->buffer[0], in hvcs_try_write() 1094 memset(&hvcsd->buffer[0], 0x00, HVCS_BUFF_LEN); in hvcs_install() 1243 memset(&hvcsd->buffer[0], 0x00, HVCS_BUFF_LEN); in hvcs_hangup() 1306 * hvcs_write() didn't succeed and the buffer was filled up. in hvcs_write() 1311 memcpy(&hvcsd->buffer[hvcsd->chars_in_buffer], in hvcs_write() 1322 * just add to the buffer. in hvcs_write() 1327 &hvcsd->buffer[ in hvcs_write() [all...] |
| /kernel/linux/linux-6.6/drivers/usb/serial/ |
| H A D | sierra.c | 397 /* free up the transfer buffer, as usb_free_urb() does not do this */ in sierra_outdat_callback() 422 unsigned char *buffer; in sierra_write() local 456 buffer = kmemdup(buf, writesize, GFP_ATOMIC); in sierra_write() 457 if (!buffer) { in sierra_write() 468 usb_serial_debug_data(&port->dev, __func__, writesize, buffer); in sierra_write() 473 buffer, writesize, sierra_outdat_callback, port); in sierra_write() 509 kfree(buffer); in sierra_write()
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_fcoe.c | 216 /* get the offset of length of current buffer */ in ixgbe_fcoe_ddp_setup() 220 * all but the 1st buffer (j == 0) in ixgbe_fcoe_ddp_setup() 226 * all but the last buffer in ixgbe_fcoe_ddp_setup() 235 /* only the first buffer may have none-zero offset */ in ixgbe_fcoe_ddp_setup() 243 /* only the last buffer may have non-full bufflen */ in ixgbe_fcoe_ddp_setup() 247 * lastsize can not be buffer len. in ixgbe_fcoe_ddp_setup() 248 * If it is then adding another buffer with lastsize = 1. in ixgbe_fcoe_ddp_setup() 755 void *buffer; in ixgbe_setup_fcoe_ddp_resources() local 763 /* Extra buffer to be shared by all DDPs for HW work around */ in ixgbe_setup_fcoe_ddp_resources() 764 buffer in ixgbe_setup_fcoe_ddp_resources() [all...] |
| /kernel/linux/linux-6.6/drivers/net/ethernet/dec/tulip/ |
| H A D | xircom_cb.c | 158 char buffer[64]; in print_binary() local 159 memset(buffer,0,64); in print_binary() 163 buffer[i2++]='1'; in print_binary() 165 buffer[i2++]='0'; in print_binary() 167 buffer[i2++]=' '; in print_binary() 169 pr_debug("%s\n",buffer); in print_binary() 575 /* Rx Descr1: buffer 1 is 1536 bytes, buffer 2 is 0 bytes */ in setup_descriptors() 580 /* Rx Descr2: address of the buffer in setup_descriptors() 581 we store the buffer a in setup_descriptors() [all...] |
| /kernel/linux/linux-6.6/drivers/media/platform/qcom/camss/ |
| H A D | camss-video.c | 410 struct camss_buffer *buffer = container_of(vbuf, struct camss_buffer, in video_buf_init() local 422 buffer->addr[i] = sg_dma_address(sgt->sgl); in video_buf_init() 429 buffer->addr[1] = buffer->addr[0] + in video_buf_init() 460 struct camss_buffer *buffer = container_of(vbuf, struct camss_buffer, in video_buf_queue() local 463 video->ops->queue_buffer(video, buffer); in video_buf_queue()
|
| /kernel/linux/linux-6.6/tools/power/x86/intel-speed-select/ |
| H A D | isst-core-mbox.c | 347 char buffer[128], freq_str[16]; in _set_uncore_min_max() local 351 snprintf(buffer, sizeof(buffer), in _set_uncore_min_max() 354 snprintf(buffer, sizeof(buffer), in _set_uncore_min_max() 357 fd = open(buffer, O_WRONLY); in _set_uncore_min_max()
|
| /kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/ |
| H A D | file.c | 190 spufs_mem_read(struct file *file, char __user *buffer, in spufs_mem_read() argument 199 ret = simple_read_from_buffer(buffer, size, pos, ctx->ops->get_ls(ctx), in spufs_mem_read() 207 spufs_mem_write(struct file *file, const char __user *buffer, in spufs_mem_write() argument 223 size = simple_write_to_buffer(local_store, LS_SIZE, ppos, buffer, size); in spufs_mem_write() 476 spufs_regs_read(struct file *file, char __user *buffer, in spufs_regs_read() argument 490 ret = simple_read_from_buffer(buffer, size, pos, ctx->csa.lscsa->gprs, in spufs_regs_read() 497 spufs_regs_write(struct file *file, const char __user *buffer, in spufs_regs_write() argument 512 buffer, size); in spufs_regs_write() 533 spufs_fpcr_read(struct file *file, char __user * buffer, in spufs_fpcr_read() argument 542 ret = simple_read_from_buffer(buffer, siz in spufs_fpcr_read() 549 spufs_fpcr_write(struct file *file, const char __user * buffer, size_t size, loff_t * pos) spufs_fpcr_write() argument 1494 spufs_mfc_read(struct file *file, char __user *buffer, size_t size, loff_t *pos) spufs_mfc_read() argument 1620 spufs_mfc_write(struct file *file, const char __user *buffer, size_t size, loff_t *pos) spufs_mfc_write() argument [all...] |
| /kernel/linux/linux-6.6/arch/powerpc/platforms/cell/spufs/ |
| H A D | file.c | 190 spufs_mem_read(struct file *file, char __user *buffer, in spufs_mem_read() argument 199 ret = simple_read_from_buffer(buffer, size, pos, ctx->ops->get_ls(ctx), in spufs_mem_read() 207 spufs_mem_write(struct file *file, const char __user *buffer, in spufs_mem_write() argument 223 size = simple_write_to_buffer(local_store, LS_SIZE, ppos, buffer, size); in spufs_mem_write() 476 spufs_regs_read(struct file *file, char __user *buffer, in spufs_regs_read() argument 490 ret = simple_read_from_buffer(buffer, size, pos, ctx->csa.lscsa->gprs, in spufs_regs_read() 497 spufs_regs_write(struct file *file, const char __user *buffer, in spufs_regs_write() argument 512 buffer, size); in spufs_regs_write() 533 spufs_fpcr_read(struct file *file, char __user * buffer, in spufs_fpcr_read() argument 542 ret = simple_read_from_buffer(buffer, siz in spufs_fpcr_read() 549 spufs_fpcr_write(struct file *file, const char __user * buffer, size_t size, loff_t * pos) spufs_fpcr_write() argument 1494 spufs_mfc_read(struct file *file, char __user *buffer, size_t size, loff_t *pos) spufs_mfc_read() argument 1620 spufs_mfc_write(struct file *file, const char __user *buffer, size_t size, loff_t *pos) spufs_mfc_write() argument [all...] |
| /kernel/linux/linux-5.10/sound/pci/riptide/ |
| H A D | riptide.c | 1356 ("pointer stream %d position 0x%x(0x%x in buffer) bytes 0x%lx(0x%lx in period) frames\n", in snd_riptide_pointer() 1888 struct snd_info_buffer *buffer) in snd_riptide_proc_read() 1901 snd_iprintf(buffer, "%s\n\n", chip->card->longname); in snd_riptide_proc_read() 1902 snd_iprintf(buffer, "Device ID: 0x%x\nReceived IRQs: (%ld)%ld\nPorts:", in snd_riptide_proc_read() 1905 snd_iprintf(buffer, "%c%02x: %08x", in snd_riptide_proc_read() 1908 snd_iprintf(buffer, in snd_riptide_proc_read() 1914 snd_iprintf(buffer, "\nDigital mixer:"); in snd_riptide_proc_read() 1917 snd_iprintf(buffer, "\n %d: %d %d", i, rval, lval); in snd_riptide_proc_read() 1919 snd_iprintf(buffer, in snd_riptide_proc_read() 1924 snd_iprintf(buffer, "\nOpe in snd_riptide_proc_read() 1887 snd_riptide_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_riptide_proc_read() argument [all...] |
| /kernel/linux/linux-5.10/drivers/rapidio/devices/ |
| H A D | rio_mport_cdev.c | 101 * An internal DMA coherent buffer 151 * @buf_mutex lock for buffer handling 263 u32 *buffer; in rio_mport_maint_rd() local 276 buffer = vmalloc(maint_io.length); in rio_mport_maint_rd() 277 if (buffer == NULL) in rio_mport_maint_rd() 285 offset, &buffer[i]); in rio_mport_maint_rd() 288 maint_io.hopcount, offset, &buffer[i]); in rio_mport_maint_rd() 295 if (unlikely(copy_to_user((void __user *)(uintptr_t)maint_io.buffer, in rio_mport_maint_rd() 296 buffer, maint_io.length))) in rio_mport_maint_rd() 299 vfree(buffer); in rio_mport_maint_rd() 308 u32 *buffer; rio_mport_maint_wr() local [all...] |
| /kernel/linux/linux-6.6/drivers/rapidio/devices/ |
| H A D | rio_mport_cdev.c | 101 * An internal DMA coherent buffer 151 * @buf_mutex lock for buffer handling 263 u32 *buffer; in rio_mport_maint_rd() local 276 buffer = vmalloc(maint_io.length); in rio_mport_maint_rd() 277 if (buffer == NULL) in rio_mport_maint_rd() 285 offset, &buffer[i]); in rio_mport_maint_rd() 288 maint_io.hopcount, offset, &buffer[i]); in rio_mport_maint_rd() 295 if (unlikely(copy_to_user((void __user *)(uintptr_t)maint_io.buffer, in rio_mport_maint_rd() 296 buffer, maint_io.length))) in rio_mport_maint_rd() 299 vfree(buffer); in rio_mport_maint_rd() 308 u32 *buffer; rio_mport_maint_wr() local [all...] |
| /kernel/linux/linux-6.6/tools/perf/util/ |
| H A D | cs-etm.c | 62 * everything in a buffer comes from the same process regardless of 64 * taken from the auxtrace buffer. 103 struct auxtrace_buffer *buffer; member 737 struct auxtrace_buffer *buffer) in cs_etm__dump_event() 746 cs_etm_decoder__get_name(etmq->decoder), buffer->size); in cs_etm__dump_event() 752 etmq->decoder, buffer->offset, in cs_etm__dump_event() 753 &((u8 *)buffer->data)[buffer_used], in cs_etm__dump_event() 754 buffer->size - buffer_used, &consumed); in cs_etm__dump_event() 759 } while (buffer_used < buffer->size); in cs_etm__dump_event() 944 u64 address, size_t size, u8 *buffer, in cs_etm__mem_access() 736 cs_etm__dump_event(struct cs_etm_queue *etmq, struct auxtrace_buffer *buffer) cs_etm__dump_event() argument 943 cs_etm__mem_access(struct cs_etm_queue *etmq, u8 trace_chan_id, u64 address, size_t size, u8 *buffer, const ocsd_mem_space_acc_t mem_space) cs_etm__mem_access() argument 2792 struct auxtrace_buffer *buffer; cs_etm__process_auxtrace_event() local [all...] |
| /kernel/linux/linux-6.6/sound/pci/riptide/ |
| H A D | riptide.c | 1361 ("pointer stream %d position 0x%x(0x%x in buffer) bytes 0x%lx(0x%lx in period) frames\n", in snd_riptide_pointer() 1865 struct snd_info_buffer *buffer) in snd_riptide_proc_read() 1878 snd_iprintf(buffer, "%s\n\n", chip->card->longname); in snd_riptide_proc_read() 1879 snd_iprintf(buffer, "Device ID: 0x%x\nReceived IRQs: (%ld)%ld\nPorts:", in snd_riptide_proc_read() 1882 snd_iprintf(buffer, "%c%02x: %08x", in snd_riptide_proc_read() 1886 snd_iprintf(buffer, in snd_riptide_proc_read() 1892 snd_iprintf(buffer, "\nDigital mixer:"); in snd_riptide_proc_read() 1895 snd_iprintf(buffer, "\n %d: %d %d", i, rval, lval); in snd_riptide_proc_read() 1897 snd_iprintf(buffer, in snd_riptide_proc_read() 1902 snd_iprintf(buffer, "\nOpe in snd_riptide_proc_read() 1864 snd_riptide_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_riptide_proc_read() argument [all...] |
| /kernel/linux/linux-6.6/sound/soc/sof/ |
| H A D | ipc3-topology.c | 328 * sof_comp_alloc - allocate and initialize buffer for a new component 563 struct sof_ipc_buffer *buffer; in sof_ipc3_widget_setup_comp_buffer() local 566 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); in sof_ipc3_widget_setup_comp_buffer() 567 if (!buffer) in sof_ipc3_widget_setup_comp_buffer() 570 swidget->private = buffer; in sof_ipc3_widget_setup_comp_buffer() 573 buffer->comp.hdr.size = sizeof(*buffer); in sof_ipc3_widget_setup_comp_buffer() 574 buffer->comp.hdr.cmd = SOF_IPC_GLB_TPLG_MSG | SOF_IPC_TPLG_BUFFER_NEW; in sof_ipc3_widget_setup_comp_buffer() 575 buffer in sof_ipc3_widget_setup_comp_buffer() [all...] |
| /kernel/linux/linux-5.10/drivers/video/fbdev/sis/ |
| H A D | sis_main.c | 6 * frame buffer driver for Linux kernels >= 2.4.14 and >=2.6.3 436 static bool sisfb_interpret_edid(struct sisfb_monitor *monitor, u8 *buffer) in sisfb_interpret_edid() argument 441 if(buffer[0] != 0x00 || buffer[1] != 0xff || in sisfb_interpret_edid() 442 buffer[2] != 0xff || buffer[3] != 0xff || in sisfb_interpret_edid() 443 buffer[4] != 0xff || buffer[5] != 0xff || in sisfb_interpret_edid() 444 buffer[6] != 0xff || buffer[ in sisfb_interpret_edid() 541 unsigned char buffer[256]; sisfb_handle_ddc() local 2288 unsigned char buffer[256]; SiS_SenseLCD() local [all...] |
| /kernel/linux/linux-6.6/drivers/video/fbdev/sis/ |
| H A D | sis_main.c | 6 * frame buffer driver for Linux kernels >= 2.4.14 and >=2.6.3 437 static bool sisfb_interpret_edid(struct sisfb_monitor *monitor, u8 *buffer) in sisfb_interpret_edid() argument 442 if(buffer[0] != 0x00 || buffer[1] != 0xff || in sisfb_interpret_edid() 443 buffer[2] != 0xff || buffer[3] != 0xff || in sisfb_interpret_edid() 444 buffer[4] != 0xff || buffer[5] != 0xff || in sisfb_interpret_edid() 445 buffer[6] != 0xff || buffer[ in sisfb_interpret_edid() 542 unsigned char buffer[256]; sisfb_handle_ddc() local 2297 unsigned char buffer[256]; SiS_SenseLCD() local [all...] |
| /kernel/linux/linux-5.10/drivers/acpi/acpica/ |
| H A D | exstore.c | 134 /* Storing to an Index (pointer into a packager or buffer) */ in acpi_ex_store() 207 * must point to either a buffer or a package in acpi_ex_store_object_to_index() 300 /* Note: Takes advantage of common string/buffer fields */ in acpi_ex_store_object_to_index() 302 value = source_desc->buffer.pointer[0]; in acpi_ex_store_object_to_index() 315 /* Store the source value into the target buffer byte */ in acpi_ex_store_object_to_index() 317 obj_desc->buffer.pointer[index_desc->reference.value] = value; in acpi_ex_store_object_to_index()
|
| /kernel/linux/linux-5.10/arch/sh/drivers/ |
| H A D | platform_early.c | 107 memcpy(epdrv->buffer, &buf[n], in sh_early_platform_driver_register() 109 epdrv->buffer[epdrv->bufsize - 1] = '\0'; in sh_early_platform_driver_register()
|