Home
last modified time | relevance | path

Searched refs:user_buffer (Results 1 – 25 of 25) sorted by relevance

/OK3568_Linux_fs/u-boot/common/
H A Dbouncebuf.c19 if ((ulong)state->user_buffer & align_mask) { in addr_aligned()
20 debug("Unaligned buffer address %p\n", state->user_buffer); in addr_aligned()
37 state->user_buffer = data; in bounce_buffer_start()
50 memcpy(state->bounce_buffer, state->user_buffer, in bounce_buffer_start()
74 if (state->bounce_buffer == state->user_buffer) in bounce_buffer_stop()
78 memcpy(state->user_buffer, state->bounce_buffer, state->len); in bounce_buffer_stop()
/OK3568_Linux_fs/kernel/kernel/
H A Dsysctl-test.c200 char __user *user_buffer = (char __user *)buffer; in sysctl_test_dointvec_read_happy_single_positive() local
205 user_buffer, &len, &pos)); in sysctl_test_dointvec_read_happy_single_positive()
231 char __user *user_buffer = (char __user *)buffer; in sysctl_test_dointvec_read_happy_single_negative() local
235 user_buffer, &len, &pos)); in sysctl_test_dointvec_read_happy_single_negative()
261 char __user *user_buffer = (char __user *)buffer; in sysctl_test_dointvec_write_happy_single_positive() local
266 user_buffer, &len, &pos)); in sysctl_test_dointvec_write_happy_single_positive()
291 char __user *user_buffer = (char __user *)buffer; in sysctl_test_dointvec_write_happy_single_negative() local
296 user_buffer, &len, &pos)); in sysctl_test_dointvec_write_happy_single_negative()
322 char __user *user_buffer = (char __user *)buffer; in sysctl_test_api_dointvec_write_single_less_int_min() local
336 user_buffer, &len, &pos)); in sysctl_test_api_dointvec_write_single_less_int_min()
[all …]
/OK3568_Linux_fs/kernel/net/core/
H A Dpktgen.c710 static int hex32_arg(const char __user *user_buffer, unsigned long maxlen, in hex32_arg() argument
720 if (get_user(c, &user_buffer[i])) in hex32_arg()
731 static int count_trail_chars(const char __user * user_buffer, in count_trail_chars() argument
738 if (get_user(c, &user_buffer[i])) in count_trail_chars()
756 static long num_arg(const char __user *user_buffer, unsigned long maxlen, in num_arg() argument
764 if (get_user(c, &user_buffer[i])) in num_arg()
775 static int strn_len(const char __user * user_buffer, unsigned int maxlen) in strn_len() argument
781 if (get_user(c, &user_buffer[i])) in strn_len()
857 const char __user * user_buffer, size_t count, in pktgen_if_write() argument
877 tmp = count_trail_chars(user_buffer, max); in pktgen_if_write()
[all …]
/OK3568_Linux_fs/kernel/arch/s390/pci/
H A Dpci_mmio.c143 const void __user *, user_buffer, size_t, length) in SYSCALL_DEFINE3() argument
167 user_buffer, in SYSCALL_DEFINE3()
189 if (copy_from_user(buf, user_buffer, length)) in SYSCALL_DEFINE3()
272 void __user *, user_buffer, size_t, length) in SYSCALL_DEFINE3() argument
296 user_buffer, (const void __iomem *)mmio_addr, in SYSCALL_DEFINE3()
321 if (copy_to_user(user_buffer, buf, length)) in SYSCALL_DEFINE3()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_ukk_mem.c252 void __user *user_buffer; in mem_dump_mmu_page_table_wrapper() local
263 user_buffer = (void __user *)(uintptr_t)kargs.buffer; in mem_dump_mmu_page_table_wrapper()
264 if (!access_ok(user_buffer, kargs.size)) in mem_dump_mmu_page_table_wrapper()
290 if (0 != copy_to_user(user_buffer, buffer, kargs.size)) in mem_dump_mmu_page_table_wrapper()
294 (uintptr_t)buffer + (uintptr_t)user_buffer; in mem_dump_mmu_page_table_wrapper()
296 (uintptr_t)buffer + (uintptr_t)user_buffer; in mem_dump_mmu_page_table_wrapper()
/OK3568_Linux_fs/kernel/drivers/usb/misc/
H A Diowarrior.c340 const char __user *user_buffer, in iowarrior_write() argument
375 buf = memdup_user(user_buffer, count); in iowarrior_write()
436 if (copy_from_user(buf, user_buffer, count)) { in iowarrior_write()
483 __u8 __user *user_buffer; in iowarrior_ioctl() local
515 user_buffer = (__u8 __user *)arg; in iowarrior_ioctl()
516 io_res = copy_from_user(buffer, user_buffer, in iowarrior_ioctl()
535 user_buffer = (__u8 __user *)arg; in iowarrior_ioctl()
542 io_res = copy_to_user(user_buffer, buffer, dev->report_size); in iowarrior_ioctl()
H A Dusblcd.c217 static ssize_t lcd_write(struct file *file, const char __user * user_buffer, in lcd_write() argument
256 if (copy_from_user(buf, user_buffer, count)) { in lcd_write()
H A Dyurex.c425 static ssize_t yurex_write(struct file *file, const char __user *user_buffer, in yurex_write() argument
450 if (copy_from_user(buffer, user_buffer, count)) { in yurex_write()
H A Dftdi-elan.c1082 const char __user *user_buffer, size_t count, in ftdi_elan_write() argument
1107 if (copy_from_user(buf, user_buffer, count)) { in ftdi_elan_write()
/OK3568_Linux_fs/kernel/drivers/input/serio/
H A Duserio.c121 static ssize_t userio_char_read(struct file *file, char __user *user_buffer, in userio_char_read() argument
173 if (copy_to_user(user_buffer, buf, copylen)) in userio_char_read()
/OK3568_Linux_fs/u-boot/include/
H A Dbouncebuf.h42 void *user_buffer; member
/OK3568_Linux_fs/kernel/include/linux/iio/
H A Dbuffer-dma.h140 char __user *user_buffer);
/OK3568_Linux_fs/kernel/drivers/iio/buffer/
H A Dindustrialio-buffer-dma.c482 char __user *user_buffer) in iio_dma_buffer_read() argument
509 if (copy_to_user(user_buffer, block->vaddr + queue->fileio.pos, n)) { in iio_dma_buffer_read()
/OK3568_Linux_fs/kernel/drivers/usb/
H A Dusb-skeleton.c359 static ssize_t skel_write(struct file *file, const char *user_buffer, in skel_write() argument
416 if (copy_from_user(buf, user_buffer, writesize)) { in skel_write()
/OK3568_Linux_fs/u-boot/drivers/ata/
H A Dahci.c764 u8 *user_buffer = pccb->pdata; in ata_scsiop_read_write() local
840 sizeof(fis), user_buffer, transfer_size, in ata_scsiop_read_write()
857 user_buffer += transfer_size; in ata_scsiop_read_write()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/
H A Dmali_kbase_mem_linux.c1358 struct base_mem_import_user_buffer user_buffer; local
1361 if (copy_from_user(&user_buffer, phandle,
1362 sizeof(user_buffer))) {
1367 uptr = compat_ptr(user_buffer.ptr.compat_value);
1370 uptr = user_buffer.ptr.value;
1373 (unsigned long)uptr, user_buffer.length,
/OK3568_Linux_fs/kernel/drivers/usb/class/
H A Dusbtmc.c788 void __user *user_buffer, in usbtmc_generic_read() argument
903 if (user_buffer == NULL) in usbtmc_generic_read()
960 if (copy_to_user(user_buffer + done, in usbtmc_generic_read()
1075 const void __user *user_buffer, in usbtmc_generic_write() argument
1159 if (copy_from_user(buffer, user_buffer + done, this_part)) { in usbtmc_generic_write()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_mem_linux.c2105 struct base_mem_import_user_buffer user_buffer; in kbase_mem_import() local
2108 if (copy_from_user(&user_buffer, phandle, in kbase_mem_import()
2109 sizeof(user_buffer))) { in kbase_mem_import()
2114 uptr = compat_ptr(user_buffer.ptr); in kbase_mem_import()
2117 uptr = u64_to_user_ptr(user_buffer.ptr); in kbase_mem_import()
2120 (unsigned long)uptr, user_buffer.length, in kbase_mem_import()
/OK3568_Linux_fs/kernel/net/bluetooth/
H A D6lowpan.c1121 const char __user *user_buffer, in lowpan_control_write() argument
1132 if (copy_from_user(buf, user_buffer, buf_size)) in lowpan_control_write()
/OK3568_Linux_fs/kernel/drivers/block/mtip32xx/
H A Dmtip32xx.c1130 static int mtip_get_identify(struct mtip_port *port, void __user *user_buffer) in mtip_get_identify() argument
1189 if (user_buffer) { in mtip_get_identify()
1191 user_buffer, in mtip_get_identify()
1558 void __user *user_buffer) in exec_drive_command() argument
1568 if (!user_buffer) in exec_drive_command()
1639 if (copy_to_user(user_buffer, in exec_drive_command()
/OK3568_Linux_fs/u-boot/drivers/mmc/
H A Dtegra_mmc.c78 bbstate->bounce_buffer, bbstate->user_buffer, data->blocks, in tegra_mmc_prepare_data()
/OK3568_Linux_fs/kernel/drivers/android/
H A Dbinder.c2998 const void __user *user_buffer = (const void __user *) in binder_transaction() local
3403 user_buffer + user_offset, in binder_transaction()
3412 object_size = binder_get_object(target_proc, user_buffer, in binder_transaction()
3530 binder_get_object(proc, user_buffer, t->buffer, in binder_transaction()
3543 user_buffer, parent, in binder_transaction()
3623 user_buffer + user_offset, in binder_transaction()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Ddhd_linux.c28034 gdb_proxy_fs_probe_read(struct file *fp, char __user *user_buffer, size_t count,
28039 return gdb_proxy_fs_iovar_data_op(fp, NULL, user_buffer, count, position, "gdb_proxy_probe",
28059 gdb_proxy_fs_stop_count_read(struct file *fp, char __user *user_buffer, size_t count,
28063 return gdb_proxy_fs_iovar_data_op(fp, NULL, user_buffer, count, position,
28069 gdb_proxy_fs_stop_count_write(struct file *fp, const char __user *user_buffer, size_t count,
28073 return gdb_proxy_fs_iovar_data_op(fp, user_buffer, NULL, count, position,
28164 gdb_proxy_fs_membytes_read(struct file *fp, char __user *user_buffer, size_t count,
28167 return gdb_proxy_fs_iovar_mem_op(fp, NULL, user_buffer, count, position, "membytes", TRUE);
28172 gdb_proxy_fs_membytes_write(struct file *fp, const char __user *user_buffer, size_t count,
28175 return gdb_proxy_fs_iovar_mem_op(fp, user_buffer, NULL, count, position, "membytes", TRUE);
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Ddhd_linux.c27915 gdb_proxy_fs_probe_read(struct file *fp, char __user *user_buffer, size_t count,
27920 return gdb_proxy_fs_iovar_data_op(fp, NULL, user_buffer, count, position, "gdb_proxy_probe",
27940 gdb_proxy_fs_stop_count_read(struct file *fp, char __user *user_buffer, size_t count,
27944 return gdb_proxy_fs_iovar_data_op(fp, NULL, user_buffer, count, position,
27950 gdb_proxy_fs_stop_count_write(struct file *fp, const char __user *user_buffer, size_t count,
27954 return gdb_proxy_fs_iovar_data_op(fp, user_buffer, NULL, count, position,
28045 gdb_proxy_fs_membytes_read(struct file *fp, char __user *user_buffer, size_t count,
28048 return gdb_proxy_fs_iovar_mem_op(fp, NULL, user_buffer, count, position, "membytes", TRUE);
28053 gdb_proxy_fs_membytes_write(struct file *fp, const char __user *user_buffer, size_t count,
28056 return gdb_proxy_fs_iovar_mem_op(fp, user_buffer, NULL, count, position, "membytes", TRUE);
[all …]
/OK3568_Linux_fs/kernel/drivers/scsi/
H A Dpmcraid.c3842 void __user *user_buffer in pmcraid_ioctl_driver() argument