/kernel/linux/linux-6.6/sound/core/seq/ |
H A D | seq_clientmgr.c | 414 * -EINVAL no enough user-space buffer to write the whole event 444 /* buffer overflow is detected */ in snd_seq_read() 2126 static void dump_ump_info(struct snd_info_buffer *buffer, in dump_ump_info() argument 2137 snd_iprintf(buffer, " UMP Endpoint: \"%s\"\n", ep->name); in dump_ump_info() 2141 snd_iprintf(buffer, " UMP Block %d: \"%s\" [%s]\n", in dump_ump_info() 2144 snd_iprintf(buffer, " Groups: %d-%d\n", in dump_ump_info() 2573 static void snd_seq_info_dump_subscribers(struct snd_info_buffer *buffer, in snd_seq_info_dump_subscribers() argument 2586 snd_iprintf(buffer, msg); in snd_seq_info_dump_subscribers() 2593 snd_iprintf(buffer, ", "); in snd_seq_info_dump_subscribers() 2594 snd_iprintf(buffer, " in snd_seq_info_dump_subscribers() 2623 snd_seq_info_dump_ports(struct snd_info_buffer *buffer, struct snd_seq_client *client) snd_seq_info_dump_ports() argument 2660 snd_seq_info_clients_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_seq_info_clients_read() argument [all...] |
/kernel/linux/linux-6.6/sound/pci/ice1712/ |
H A D | ice1712.c | 1517 struct snd_info_buffer *buffer) in snd_ice1712_proc_read() 1522 snd_iprintf(buffer, "%s\n\n", ice->card->longname); in snd_ice1712_proc_read() 1523 snd_iprintf(buffer, "EEPROM:\n"); in snd_ice1712_proc_read() 1525 snd_iprintf(buffer, " Subvendor : 0x%x\n", ice->eeprom.subvendor); in snd_ice1712_proc_read() 1526 snd_iprintf(buffer, " Size : %i bytes\n", ice->eeprom.size); in snd_ice1712_proc_read() 1527 snd_iprintf(buffer, " Version : %i\n", ice->eeprom.version); in snd_ice1712_proc_read() 1528 snd_iprintf(buffer, " Codec : 0x%x\n", ice->eeprom.data[ICE_EEP1_CODEC]); in snd_ice1712_proc_read() 1529 snd_iprintf(buffer, " ACLink : 0x%x\n", ice->eeprom.data[ICE_EEP1_ACLINK]); in snd_ice1712_proc_read() 1530 snd_iprintf(buffer, " I2S ID : 0x%x\n", ice->eeprom.data[ICE_EEP1_I2SID]); in snd_ice1712_proc_read() 1531 snd_iprintf(buffer, " in snd_ice1712_proc_read() 1516 snd_ice1712_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ice1712_proc_read() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_process.c | 261 * @buffer: Handle of user provided buffer updated with wave count 263 * Return: Number of bytes written to user buffer or an error value 265 static int kfd_get_cu_occupancy(struct attribute *attr, char *buffer) in kfd_get_cu_occupancy() argument 284 return snprintf(buffer, PAGE_SIZE, "%d\n", cu_cnt); in kfd_get_cu_occupancy() 295 return snprintf(buffer, PAGE_SIZE, "%d\n", cu_cnt); in kfd_get_cu_occupancy() 299 char *buffer) in kfd_procfs_show() 305 return snprintf(buffer, PAGE_SIZE, "%d\n", p->pasid); in kfd_procfs_show() 309 return snprintf(buffer, PAGE_SIZE, "%llu\n", READ_ONCE(pdd->vram_usage)); in kfd_procfs_show() 325 return snprintf(buffer, PAGE_SIZ in kfd_procfs_show() 298 kfd_procfs_show(struct kobject *kobj, struct attribute *attr, char *buffer) kfd_procfs_show() argument 376 kfd_procfs_queue_show(struct kobject *kobj, struct attribute *attr, char *buffer) kfd_procfs_queue_show() argument 394 kfd_procfs_stats_show(struct kobject *kobj, struct attribute *attr, char *buffer) kfd_procfs_stats_show() argument [all...] |
/kernel/linux/linux-5.10/drivers/usb/storage/ |
H A D | alauda.c | 916 unsigned char *buffer; in alauda_read_data() local 929 * a bounce buffer and move the data a piece at a time between the in alauda_read_data() 930 * bounce buffer and the actual transfer buffer. in alauda_read_data() 931 * We make this buffer big enough to hold temporary redundancy data, in alauda_read_data() 936 buffer = kmalloc(len, GFP_NOIO); in alauda_read_data() 937 if (!buffer) in alauda_read_data() 982 memset(buffer, 0, len); in alauda_read_data() 987 result = alauda_read_block(us, pba, page, pages, buffer); in alauda_read_data() 992 /* Store the data in the transfer buffer */ in alauda_read_data() 1011 unsigned char *buffer, *blockbuffer; alauda_write_data() local [all...] |
/kernel/linux/linux-5.10/security/keys/ |
H A D | keyctl.c | 636 * If there's a buffer, we place up to buflen bytes of data into it formatted 642 * of how much we may have copied into the buffer. 645 char __user *buffer, in keyctl_describe_key() 692 if (buffer && buflen >= ret) { in keyctl_describe_key() 693 if (copy_to_user(buffer, infobuf, infolen) != 0 || in keyctl_describe_key() 694 copy_to_user(buffer + infolen, key->description, in keyctl_describe_key() 803 static long __keyctl_read_key(struct key *key, char *buffer, size_t buflen) in __keyctl_read_key() argument 810 ret = key->type->read(key, buffer, buflen); in __keyctl_read_key() 821 * If successful, we place up to buflen bytes of data into the buffer, if one 823 * irrespective of how much we copied into the buffer 644 keyctl_describe_key(key_serial_t keyid, char __user *buffer, size_t buflen) keyctl_describe_key() argument 825 keyctl_read_key(key_serial_t keyid, char __user *buffer, size_t buflen) keyctl_read_key() argument 1561 keyctl_get_security(key_serial_t keyid, char __user *buffer, size_t buflen) keyctl_get_security() argument [all...] |
/kernel/linux/linux-5.10/kernel/trace/ |
H A D | trace_functions_graph.c | 104 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_entry() local 107 event = trace_buffer_lock_reserve(buffer, TRACE_GRAPH_ENT, in __trace_graph_entry() 113 if (!call_filter_check_discard(call, entry, buffer, event)) in __trace_graph_entry() 114 trace_buffer_unlock_commit_nostack(buffer, event); in __trace_graph_entry() 167 * events to the ring buffer. in trace_graph_entry() 224 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_return() local 227 event = trace_buffer_lock_reserve(buffer, TRACE_GRAPH_RET, in __trace_graph_return() 233 if (!call_filter_check_discard(call, entry, buffer, even in __trace_graph_return() [all...] |
/kernel/linux/linux-5.10/fs/reiserfs/ |
H A D | namei.c | 449 char *buffer; in reiserfs_add_entry() local 470 buffer = kmalloc(buflen, GFP_NOFS); in reiserfs_add_entry() 471 if (!buffer) in reiserfs_add_entry() 474 buffer = small_buf; in reiserfs_add_entry() 481 * fill buffer : directory entry head, name[, dir objectid | , in reiserfs_add_entry() 484 deh = (struct reiserfs_de_head *)buffer; in reiserfs_add_entry() 512 if (buffer != small_buf) in reiserfs_add_entry() 513 kfree(buffer); in reiserfs_add_entry() 537 if (buffer != small_buf) in reiserfs_add_entry() 538 kfree(buffer); in reiserfs_add_entry() [all...] |
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | battery.c | 446 if (len > element->buffer.length + 1) in extract_package() 447 len = element->buffer.length + 1; in extract_package() 483 const struct acpi_buffer *buffer) in extract_battery_info() 488 result = extract_package(battery, buffer->pointer, in extract_battery_info() 492 result = extract_package(battery, buffer->pointer, in extract_battery_info() 496 result = extract_package(battery, buffer->pointer, in extract_battery_info() 535 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in acpi_battery_get_info() local 541 NULL, &buffer); in acpi_battery_get_info() 552 &buffer); in acpi_battery_get_info() 554 kfree(buffer in acpi_battery_get_info() 481 extract_battery_info(const int use_bix, struct acpi_battery *battery, const struct acpi_buffer *buffer) extract_battery_info() argument 569 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; acpi_battery_get_state() local [all...] |
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | cifs_debug.c | 621 const char __user *buffer, size_t count, loff_t *ppos) in cifs_stats_proc_write() 629 rc = kstrtobool_from_user(buffer, count, &bv); in cifs_stats_proc_write() 768 static ssize_t name##_write(struct file *file, const char __user *buffer, \ 772 rc = kstrtoint_from_user(buffer, count, 10, & name); \ 905 static ssize_t cifsFYI_proc_write(struct file *file, const char __user *buffer, in cifsFYI_proc_write() argument 912 rc = get_user(c[0], buffer); in cifsFYI_proc_write() 945 const char __user *buffer, size_t count, loff_t *ppos) in cifs_linux_ext_proc_write() 949 rc = kstrtobool_from_user(buffer, count, &linuxExtEnabled); in cifs_linux_ext_proc_write() 976 const char __user *buffer, size_t count, loff_t *ppos) in cifs_lookup_cache_proc_write() 980 rc = kstrtobool_from_user(buffer, coun in cifs_lookup_cache_proc_write() 620 cifs_stats_proc_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) cifs_stats_proc_write() argument 944 cifs_linux_ext_proc_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) cifs_linux_ext_proc_write() argument 975 cifs_lookup_cache_proc_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) cifs_lookup_cache_proc_write() argument 1006 traceSMB_proc_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) traceSMB_proc_write() argument 1057 cifs_security_flags_proc_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) cifs_security_flags_proc_write() argument [all...] |
/kernel/linux/linux-6.6/fs/reiserfs/ |
H A D | namei.c | 448 char *buffer; in reiserfs_add_entry() local 469 buffer = kmalloc(buflen, GFP_NOFS); in reiserfs_add_entry() 470 if (!buffer) in reiserfs_add_entry() 473 buffer = small_buf; in reiserfs_add_entry() 480 * fill buffer : directory entry head, name[, dir objectid | , in reiserfs_add_entry() 483 deh = (struct reiserfs_de_head *)buffer; in reiserfs_add_entry() 511 if (buffer != small_buf) in reiserfs_add_entry() 512 kfree(buffer); in reiserfs_add_entry() 536 if (buffer != small_buf) in reiserfs_add_entry() 537 kfree(buffer); in reiserfs_add_entry() [all...] |
/kernel/linux/linux-6.6/drivers/usb/storage/ |
H A D | alauda.c | 916 unsigned char *buffer; in alauda_read_data() local 929 * a bounce buffer and move the data a piece at a time between the in alauda_read_data() 930 * bounce buffer and the actual transfer buffer. in alauda_read_data() 931 * We make this buffer big enough to hold temporary redundancy data, in alauda_read_data() 936 buffer = kmalloc(len, GFP_NOIO); in alauda_read_data() 937 if (!buffer) in alauda_read_data() 982 memset(buffer, 0, len); in alauda_read_data() 987 result = alauda_read_block(us, pba, page, pages, buffer); in alauda_read_data() 992 /* Store the data in the transfer buffer */ in alauda_read_data() 1011 unsigned char *buffer, *blockbuffer; alauda_write_data() local [all...] |
/kernel/linux/linux-6.6/security/keys/ |
H A D | keyctl.c | 636 * If there's a buffer, we place up to buflen bytes of data into it formatted 642 * of how much we may have copied into the buffer. 645 char __user *buffer, in keyctl_describe_key() 692 if (buffer && buflen >= ret) { in keyctl_describe_key() 693 if (copy_to_user(buffer, infobuf, infolen) != 0 || in keyctl_describe_key() 694 copy_to_user(buffer + infolen, key->description, in keyctl_describe_key() 803 static long __keyctl_read_key(struct key *key, char *buffer, size_t buflen) in __keyctl_read_key() argument 810 ret = key->type->read(key, buffer, buflen); in __keyctl_read_key() 821 * If successful, we place up to buflen bytes of data into the buffer, if one 823 * irrespective of how much we copied into the buffer 644 keyctl_describe_key(key_serial_t keyid, char __user *buffer, size_t buflen) keyctl_describe_key() argument 825 keyctl_read_key(key_serial_t keyid, char __user *buffer, size_t buflen) keyctl_read_key() argument 1561 keyctl_get_security(key_serial_t keyid, char __user *buffer, size_t buflen) keyctl_get_security() argument [all...] |
/kernel/linux/linux-6.6/kernel/trace/ |
H A D | trace_functions_graph.c | 109 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_entry() local 112 event = trace_buffer_lock_reserve(buffer, TRACE_GRAPH_ENT, in __trace_graph_entry() 118 if (!call_filter_check_discard(call, entry, buffer, event)) in __trace_graph_entry() 119 trace_buffer_unlock_commit_nostack(buffer, event); in __trace_graph_entry() 172 * events to the ring buffer. in trace_graph_entry() 228 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_return() local 231 event = trace_buffer_lock_reserve(buffer, TRACE_GRAPH_RET, in __trace_graph_return() 237 if (!call_filter_check_discard(call, entry, buffer, even in __trace_graph_return() [all...] |
/kernel/linux/linux-5.10/drivers/staging/vc04_services/vchiq-mmal/ |
H A D | mmal-vchiq.c | 137 /* actual buffer used to store bulk reply */ 138 struct mmal_buffer *buffer; member 139 /* amount of buffer used */ 141 /* MMAL buffer flags */ 257 struct mmal_buffer *buffer = msg_context->u.bulk.buffer; in buffer_work_cb() local 259 if (!buffer) { in buffer_work_cb() 260 pr_err("%s: ctx: %p, No mmal buffer to pass details\n", in buffer_work_cb() 265 buffer->length = msg_context->u.bulk.buffer_used; in buffer_work_cb() 266 buffer in buffer_work_cb() 1592 vchiq_mmal_submit_buffer(struct vchiq_mmal_instance *instance, struct vchiq_mmal_port *port, struct mmal_buffer *buffer) vchiq_mmal_submit_buffer() argument [all...] |
/kernel/linux/linux-6.6/drivers/staging/vc04_services/vchiq-mmal/ |
H A D | mmal-vchiq.c | 137 /* actual buffer used to store bulk reply */ 138 struct mmal_buffer *buffer; member 139 /* amount of buffer used */ 141 /* MMAL buffer flags */ 254 struct mmal_buffer *buffer = msg_context->u.bulk.buffer; in buffer_work_cb() local 256 if (!buffer) { in buffer_work_cb() 257 pr_err("%s: ctx: %p, No mmal buffer to pass details\n", in buffer_work_cb() 262 buffer->length = msg_context->u.bulk.buffer_used; in buffer_work_cb() 263 buffer in buffer_work_cb() 1589 vchiq_mmal_submit_buffer(struct vchiq_mmal_instance *instance, struct vchiq_mmal_port *port, struct mmal_buffer *buffer) vchiq_mmal_submit_buffer() argument [all...] |
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | dis.c | 421 static int print_insn(char *buffer, unsigned char *code, unsigned long addr) in print_insn() argument 431 ptr = buffer; in print_insn() 482 return (int) (ptr - buffer); in print_insn() 501 char buffer[128], *ptr; in show_code() local 534 ptr = buffer; in show_code() 556 pr_cont("%s", buffer); in show_code() 557 ptr = buffer; in show_code() 566 char buffer[128], *ptr; in print_fn_code() local 570 ptr = buffer; in print_fn_code() 583 printk("%s", buffer); in print_fn_code() [all...] |
/kernel/linux/common_modules/tzdriver/core/ |
H A D | teek_client_api.c | 58 buffer_addr = (__u64)(uintptr_t)oper->params[idex].memref.parent->buffer; in encode_for_part_mem() 61 oper->params[idex].memref.parent->buffer + in encode_for_part_mem() 65 context->params[idex].memref.buffer = (__u32)buffer_addr; in encode_for_part_mem() 108 buffer_addr = (__u64)(uintptr_t)(operation->params[idex].tmpref.buffer); in proc_teek_encode() 110 cli_context->params[idex].memref.buffer = (__u32)buffer_addr; in proc_teek_encode() 180 if (!tmpref->buffer || (tmpref->size == 0)) { in teek_check_tmp_mem() 181 tloge("tmpref buffer is null, or size is zero\n"); in teek_check_tmp_mem() 213 if (!memref->parent || !memref->parent->buffer) { in teek_check_ref_mem() 214 tloge("parent of memref is null, or the buffer is zero\n"); in teek_check_ref_mem() 381 if (!operation->params[3].tmpref.buffer || in is_oper_param_valid() [all...] |
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | dis.c | 424 static int print_insn(char *buffer, unsigned char *code, unsigned long addr) in print_insn() argument 434 ptr = buffer; in print_insn() 485 return (int) (ptr - buffer); in print_insn() 504 char buffer[128], *ptr; in show_code() local 537 ptr = buffer; in show_code() 559 pr_cont("%s", buffer); in show_code() 560 ptr = buffer; in show_code() 569 char buffer[128], *ptr; in print_fn_code() local 573 ptr = buffer; in print_fn_code() 586 printk("%s", buffer); in print_fn_code() [all...] |
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
H A D | i2c-nomadik.c | 138 * @buffer: client data buffer 145 unsigned char *buffer; member 497 writeb(*dev->cli.buffer, in fill_tx_fifo() 499 dev->cli.buffer++; in fill_tx_fifo() 678 dev->cli.buffer = msgs[i].buf; in nmk_i2c_xfer() 771 *dev->cli.buffer = readb(dev->virtbase + I2C_RFR); in i2c_irq_handler() 772 dev->cli.buffer++; in i2c_irq_handler() 781 *dev->cli.buffer = readb(dev->virtbase + I2C_RFR); in i2c_irq_handler() 782 dev->cli.buffer in i2c_irq_handler() [all...] |
/kernel/linux/linux-5.10/drivers/usb/misc/ |
H A D | iowarrior.c | 81 unsigned char *int_in_buffer; /* buffer for data to be read */ 236 /* free up our allocated buffer */ in iowarrior_write_callback() 274 static ssize_t iowarrior_read(struct file *file, char __user *buffer, in iowarrior_read() argument 295 /* repeat until no buffer overrun in callback handler occur */ in iowarrior_read() 326 if (copy_to_user(buffer, dev->read_queue + offset, count)) { in iowarrior_read() 345 char *buf = NULL; /* for IOW24 and IOW56 we need a buffer */ in iowarrior_write() 426 "Unable to allocate buffer\n"); in iowarrior_write() 482 __u8 *buffer; in iowarrior_ioctl() local 491 buffer = kzalloc(dev->report_size, GFP_KERNEL); in iowarrior_ioctl() 492 if (!buffer) in iowarrior_ioctl() [all...] |
/kernel/linux/linux-5.10/sound/pci/ice1712/ |
H A D | quartet.c | 194 * The output buffer must be allocated prior to calling the function. 196 static char *get_binary(char *buffer, int value) in get_binary() argument 203 buffer[pos] = '1'; in get_binary() 205 buffer[pos] = '0'; in get_binary() 209 buffer[pos] = ' '; in get_binary() 213 buffer[pos] = '\0'; in get_binary() 214 return buffer; in get_binary() 475 struct snd_info_buffer *buffer) in proc_regs_read() 480 snd_iprintf(buffer, "SCR: %s\n", get_binary(bin_buffer, in proc_regs_read() 482 snd_iprintf(buffer, "MC in proc_regs_read() 474 proc_regs_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) proc_regs_read() argument [all...] |
/kernel/linux/linux-5.10/fs/hostfs/ |
H A D | hostfs_kern.c | 99 * the path name at the end of the provided buffer. in __dentry_name() 402 char *buffer; in hostfs_writepage() local 411 buffer = kmap(page); in hostfs_writepage() 413 err = write_file(HOSTFS_I(inode)->fd, &base, buffer, count); in hostfs_writepage() 435 char *buffer; in hostfs_readpage() local 439 buffer = kmap(page); in hostfs_readpage() 440 bytes_read = read_file(FILE_HOSTFS_I(file)->fd, &start, buffer, in hostfs_readpage() 449 memset(buffer + bytes_read, 0, PAGE_SIZE - bytes_read); in hostfs_readpage() 478 void *buffer; in hostfs_write_end() local 482 buffer in hostfs_write_end() [all...] |
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
H A D | ipt_CLUSTERIP.c | 276 char buffer[16]; in clusterip_config_init() local 279 sprintf(buffer, "%pI4", &ip); in clusterip_config_init() 281 c->pde = proc_create_data(buffer, 0600, in clusterip_config_init() 782 char buffer[PROC_WRITELEN+1]; in clusterip_proc_write() local 788 if (copy_from_user(buffer, input, size)) in clusterip_proc_write() 790 buffer[size] = 0; in clusterip_proc_write() 792 if (*buffer == '+') { in clusterip_proc_write() 793 rc = kstrtoul(buffer+1, 10, &nodenum); in clusterip_proc_write() 798 } else if (*buffer == '-') { in clusterip_proc_write() 799 rc = kstrtoul(buffer in clusterip_proc_write() [all...] |
/kernel/linux/linux-5.10/drivers/pnp/pnpacpi/ |
H A D | rsparser.c | 622 struct acpi_buffer *buffer) in pnpacpi_build_resource_template() 638 buffer->length = sizeof(struct acpi_resource) * (res_cnt + 1) + 1; in pnpacpi_build_resource_template() 639 buffer->pointer = kzalloc(buffer->length - 1, GFP_KERNEL); in pnpacpi_build_resource_template() 640 if (!buffer->pointer) in pnpacpi_build_resource_template() 643 resource = (struct acpi_resource *)buffer->pointer; in pnpacpi_build_resource_template() 647 kfree(buffer->pointer); in pnpacpi_build_resource_template() 876 int pnpacpi_encode_resources(struct pnp_dev *dev, struct acpi_buffer *buffer) in pnpacpi_encode_resources() argument 880 int res_cnt = (buffer->length - 1) / sizeof(struct acpi_resource) - 1; in pnpacpi_encode_resources() 881 struct acpi_resource *resource = buffer in pnpacpi_encode_resources() 621 pnpacpi_build_resource_template(struct pnp_dev *dev, struct acpi_buffer *buffer) pnpacpi_build_resource_template() argument [all...] |
/kernel/linux/linux-6.6/drivers/auxdisplay/ |
H A D | ht16k33.c | 84 uint8_t *buffer; member 258 p2 = fbdev->buffer; in ht16k33_fb_update() 273 p2 = fbdev->buffer + HT16K33_FB_SIZE - 1; in ht16k33_fb_update() 283 p2 = fbdev->buffer + first; in ht16k33_fb_update() 352 struct page *pages = virt_to_page(priv->fbdev.buffer); in ht16k33_mmap() 617 fbdev->buffer = (unsigned char *) get_zeroed_page(GFP_KERNEL); in ht16k33_fbdev_probe() 618 if (!fbdev->buffer) in ht16k33_fbdev_probe() 643 fbdev->info->screen_buffer = fbdev->buffer; in ht16k33_fbdev_probe() 661 free_page((unsigned long) fbdev->buffer); in ht16k33_fbdev_probe() 788 free_page((unsigned long)fbdev->buffer); in ht16k33_remove() [all...] |