| /kernel/linux/linux-6.6/drivers/pnp/pnpacpi/ |
| H A D | rsparser.c | 623 struct acpi_buffer *buffer) in pnpacpi_build_resource_template() 639 buffer->length = sizeof(struct acpi_resource) * (res_cnt + 1) + 1; in pnpacpi_build_resource_template() 640 buffer->pointer = kzalloc(buffer->length - 1, GFP_KERNEL); in pnpacpi_build_resource_template() 641 if (!buffer->pointer) in pnpacpi_build_resource_template() 644 resource = (struct acpi_resource *)buffer->pointer; in pnpacpi_build_resource_template() 648 kfree(buffer->pointer); in pnpacpi_build_resource_template() 877 int pnpacpi_encode_resources(struct pnp_dev *dev, struct acpi_buffer *buffer) in pnpacpi_encode_resources() argument 881 int res_cnt = (buffer->length - 1) / sizeof(struct acpi_resource) - 1; in pnpacpi_encode_resources() 882 struct acpi_resource *resource = buffer in pnpacpi_encode_resources() 622 pnpacpi_build_resource_template(struct pnp_dev *dev, struct acpi_buffer *buffer) pnpacpi_build_resource_template() argument [all...] |
| /kernel/linux/linux-6.6/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() 425 "Unable to allocate buffer\n"); in iowarrior_write() 479 __u8 *buffer; in iowarrior_ioctl() local 488 buffer = kzalloc(dev->report_size, GFP_KERNEL); in iowarrior_ioctl() 489 if (!buffer) in iowarrior_ioctl() [all...] |
| /kernel/linux/linux-6.6/drivers/net/wireless/microchip/wilc1000/ |
| H A D | sdio.c | 49 u8 *buffer; member 97 u8 *buf = cmd->buffer; in wilc_sdio_cmd53() 117 memcpy(buf, cmd->buffer, size); in wilc_sdio_cmd53() 124 memcpy(cmd->buffer, buf, size); in wilc_sdio_cmd53() 402 cmd.buffer = (u8 *)&data; in wilc_sdio_write_reg() 446 cmd.buffer = buf; in wilc_sdio_write() 468 cmd.buffer = buf; in wilc_sdio_write() 521 cmd.buffer = (u8 *)data; in wilc_sdio_read_reg() 569 cmd.buffer = buf; in wilc_sdio_read() 591 cmd.buffer in wilc_sdio_read() [all...] |
| /kernel/linux/linux-6.6/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-6.6/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/drivers/fsi/ |
| H A D | fsi-occ.c | 64 u8 *buffer; member 80 client->buffer = (u8 *)__get_free_page(GFP_KERNEL); in occ_open() 81 if (!client->buffer) { in occ_open() 90 /* We allocate a 1-page buffer, make sure it all fits */ in occ_open() 119 if (copy_to_user(buf, client->buffer + client->read_offset, rc)) in occ_read() 148 cmd = client->buffer; in occ_write() 203 free_page((unsigned long)client->buffer); in occ_release() 299 * We use the same buffer for command and response, make in occ_putsram()
|
| /kernel/linux/linux-5.10/drivers/acpi/ |
| H A D | device_sysfs.c | 125 * @size: Size of the buffer. 186 * @size: Size of the buffer. 448 (wchar_t *)acpi_dev->pnp.str_obj->buffer.pointer, in description_show() 449 acpi_dev->pnp.str_obj->buffer.length, in description_show() 509 struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER, NULL}; in acpi_device_setup_files() local 537 NULL, &buffer); in acpi_device_setup_files() 539 buffer.pointer = NULL; in acpi_device_setup_files() 540 dev->pnp.str_obj = buffer.pointer; in acpi_device_setup_files()
|
| /kernel/linux/linux-5.10/drivers/media/firewire/ |
| H A D | firedtv-fw.c | 73 #define N_PACKETS 64 /* buffer size */ 79 struct fw_iso_buffer buffer; member 94 return fw_iso_context_queue(ctx->context, &p, &ctx->buffer, in queue_iso() 150 err = fw_iso_buffer_init(&ctx->buffer, device->card, in fdtv_start_iso() 159 ctx->pages[i] = page_address(ctx->buffer.pages[i]); in fdtv_start_iso() 176 fw_iso_buffer_destroy(&ctx->buffer, device->card); in fdtv_start_iso() 190 fw_iso_buffer_destroy(&ctx->buffer, device_of(fdtv)->card); in fdtv_stop_iso()
|
| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| H A D | hx711.c | 18 #include <linux/iio/buffer.h> 88 * triggered buffer 91 u32 buffer[4] __aligned(8); 365 memset(hx711_data->buffer, 0, sizeof(hx711_data->buffer)); in hx711_trigger() 371 hx711_data->buffer[j] = hx711_reset_read(hx711_data, in hx711_trigger() 376 iio_push_to_buffers_with_timestamp(indio_dev, hx711_data->buffer, in hx711_trigger() 562 dev_err(dev, "setup of iio triggered buffer failed\n"); in hx711_probe()
|
| /kernel/linux/linux-5.10/drivers/net/fjes/ |
| H A D | fjes_trace.h | 108 tx = (void *)buf_pair->tx.buffer; 109 rx = (void *)buf_pair->rx.buffer; 203 __field(phys_addr_t, buffer) 208 __entry->buffer = req_buf->start_trace.buffer[0]; 210 TP_printk("req_buf=[length=%d, mode=%d, buffer=%pap]", 211 __entry->length, __entry->mode, &__entry->buffer)
|
| /kernel/linux/linux-5.10/drivers/net/wimax/i2400m/ |
| H A D | usb.c | 131 * Sends a barker buffer to the device 133 * This helper will allocate a kmalloced buffer and use it to transmit 149 void *buffer; in __i2400mu_send_barker() local 158 buffer = kmalloc(barker_size, GFP_KERNEL); in __i2400mu_send_barker() 159 if (buffer == NULL) in __i2400mu_send_barker() 163 memcpy(buffer, barker, barker_size); in __i2400mu_send_barker() 165 ret = usb_bulk_msg(i2400mu->usb_dev, pipe, buffer, barker_size, in __i2400mu_send_barker() 219 kfree(buffer); in __i2400mu_send_barker()
|
| /kernel/linux/linux-5.10/drivers/scsi/arm/ |
| H A D | powertec.c | 181 * Returns : pointer to a static buffer containing null terminated string. 195 /* Prototype: int powertecscsi_set_proc_info(struct Scsi_Host *host, char *buffer, int length) 198 * : buffer - buffer containing string describing operation 203 powertecscsi_set_proc_info(struct Scsi_Host *host, char *buffer, int length) in powertecscsi_set_proc_info() argument 207 if (length >= 12 && strncmp(buffer, "POWERTECSCSI", 12) == 0) { in powertecscsi_set_proc_info() 208 buffer += 12; in powertecscsi_set_proc_info() 211 if (length >= 5 && strncmp(buffer, "term=", 5) == 0) { in powertecscsi_set_proc_info() 212 if (buffer[5] == '1') in powertecscsi_set_proc_info() 214 else if (buffer[ in powertecscsi_set_proc_info() [all...] |
| H A D | eesox.c | 226 * Align buffer. in eesoxscsi_buffer_in() 305 * Align buffer. in eesoxscsi_buffer_out() 378 * Returns : pointer to a static buffer containing null terminated string. 392 /* Prototype: int eesoxscsi_set_proc_info(struct Scsi_Host *host, char *buffer, int length) 395 * : buffer - buffer containing string describing operation 400 eesoxscsi_set_proc_info(struct Scsi_Host *host, char *buffer, int length) in eesoxscsi_set_proc_info() argument 404 if (length >= 9 && strncmp(buffer, "EESOXSCSI", 9) == 0) { in eesoxscsi_set_proc_info() 405 buffer += 9; in eesoxscsi_set_proc_info() 408 if (length >= 5 && strncmp(buffer, "ter in eesoxscsi_set_proc_info() [all...] |
| H A D | cumana_2.c | 293 * Returns : pointer to a static buffer containing null terminated string. 307 /* Prototype: int cumanascsi_2_set_proc_info(struct Scsi_Host *host, char *buffer, int length) 310 * : buffer - buffer containing string describing operation 315 cumanascsi_2_set_proc_info(struct Scsi_Host *host, char *buffer, int length) in cumanascsi_2_set_proc_info() argument 319 if (length >= 11 && strncmp(buffer, "CUMANASCSI2", 11) == 0) { in cumanascsi_2_set_proc_info() 320 buffer += 11; in cumanascsi_2_set_proc_info() 323 if (length >= 5 && strncmp(buffer, "term=", 5) == 0) { in cumanascsi_2_set_proc_info() 324 if (buffer[5] == '1') in cumanascsi_2_set_proc_info() 326 else if (buffer[ in cumanascsi_2_set_proc_info() [all...] |
| /kernel/linux/linux-5.10/drivers/nvme/target/ |
| H A D | discovery.c | 172 void *buffer; in nvmet_execute_disc_get_log_page() local 193 * Make sure we're passing at least a buffer of response header size. in nvmet_execute_disc_get_log_page() 199 buffer = kzalloc(alloc_len, GFP_KERNEL); in nvmet_execute_disc_get_log_page() 200 if (!buffer) { in nvmet_execute_disc_get_log_page() 206 hdr = buffer; in nvmet_execute_disc_get_log_page() 236 status = nvmet_copy_to_sgl(req, 0, buffer + offset, data_len); in nvmet_execute_disc_get_log_page() 237 kfree(buffer); in nvmet_execute_disc_get_log_page()
|
| /kernel/linux/linux-5.10/drivers/thunderbolt/ |
| H A D | dma_port.c | 52 * @buf: Temporary buffer to store a single block 68 u64 route = tb_cfg_get_route(pkg->buffer) & ~BIT_ULL(63); in dma_port_match() 84 memcpy(req->response, pkg->buffer, req->response_size); in dma_port_copy() 88 static int dma_port_read(struct tb_ctl *ctl, void *buffer, u64 route, in dma_port_read() argument 125 memcpy(buffer, &reply.data, 4 * length); in dma_port_read() 129 static int dma_port_write(struct tb_ctl *ctl, const void *buffer, u64 route, in dma_port_write() argument 146 memcpy(&request.data, buffer, length * 4); in dma_port_write() 361 * @size: Size of the buffer 403 * @size: Size of the buffer
|
| /kernel/linux/linux-5.10/drivers/usb/misc/ |
| H A D | usbsevseg.c | 120 unsigned char *buffer; in update_display_visual() local 126 buffer = kzalloc(MAXLEN, mf); in update_display_visual() 127 if (!buffer) in update_display_visual() 132 buffer[i] = mydev->text[mydev->textlength-1-i]; in update_display_visual() 140 buffer, in update_display_visual() 147 kfree(buffer); in update_display_visual()
|
| /kernel/linux/linux-5.10/sound/core/seq/ |
| H A D | seq_memory.c | 39 * ext.data.ptr = buffer pointer 112 * expand the variable length event to linear buffer space. 495 void snd_seq_info_pool(struct snd_info_buffer *buffer, in snd_seq_info_pool() argument 500 snd_iprintf(buffer, "%sPool size : %d\n", space, pool->total_elements); in snd_seq_info_pool() 501 snd_iprintf(buffer, "%sCells in use : %d\n", space, atomic_read(&pool->counter)); in snd_seq_info_pool() 502 snd_iprintf(buffer, "%sPeak cells in use : %d\n", space, pool->max_used); in snd_seq_info_pool() 503 snd_iprintf(buffer, "%sAlloc success : %d\n", space, pool->event_alloc_success); in snd_seq_info_pool() 504 snd_iprintf(buffer, "%sAlloc failures : %d\n", space, pool->event_alloc_failures); in snd_seq_info_pool()
|
| /kernel/linux/linux-5.10/sound/usb/caiaq/ |
| H A D | device.c | 206 const unsigned char *buffer, in snd_usb_caiaq_send_command() 218 if (buffer && len > 0) in snd_usb_caiaq_send_command() 219 memcpy(cdev->ep1_out_buf+1, buffer, len); in snd_usb_caiaq_send_command() 229 const unsigned char *buffer, in snd_usb_caiaq_send_command_bank() 241 if (buffer && len > 0) in snd_usb_caiaq_send_command_bank() 242 memcpy(cdev->ep1_out_buf+2, buffer, len); in snd_usb_caiaq_send_command_bank() 204 snd_usb_caiaq_send_command(struct snd_usb_caiaqdev *cdev, unsigned char command, const unsigned char *buffer, int len) snd_usb_caiaq_send_command() argument 226 snd_usb_caiaq_send_command_bank(struct snd_usb_caiaqdev *cdev, unsigned char command, unsigned char bank, const unsigned char *buffer, int len) snd_usb_caiaq_send_command_bank() argument
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/msm/dp/ |
| H A D | dp_aux.c | 59 u8 *msgdata = msg->buffer; in dp_aux_write() 166 dp = msg->buffer; in dp_aux_cmd_fifo_rx() 245 data = input_msg->buffer; in dp_aux_update_offset_and_segment() 304 helper_msg.buffer = &aux->segment; in dp_aux_transfer_helper() 313 * EDID buffer in the subsequent i2c read trasntion triggered in the in dp_aux_transfer_helper() 318 helper_msg.buffer = &aux->offset; in dp_aux_transfer_helper() 348 if ((msg->size == 0) || (msg->buffer == NULL)) { in dp_aux_transfer()
|
| /kernel/linux/linux-5.10/include/linux/bcma/ |
| H A D | bcma.h | 51 void (*block_read)(struct bcma_device *core, void *buffer, 53 void (*block_write)(struct bcma_device *core, const void *buffer, 395 static inline void bcma_block_read(struct bcma_device *core, void *buffer, in bcma_block_read() argument 398 core->bus->ops->block_read(core, buffer, count, offset, reg_width); in bcma_block_read() 401 const void *buffer, size_t count, in bcma_block_write() 404 core->bus->ops->block_write(core, buffer, count, offset, reg_width); in bcma_block_write() 400 bcma_block_write(struct bcma_device *core, const void *buffer, size_t count, u16 offset, u8 reg_width) bcma_block_write() argument
|
| /kernel/linux/linux-6.6/drivers/acpi/ |
| H A D | acpi_pad.c | 373 struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER, NULL}; in acpi_pad_pur() local 377 if (ACPI_FAILURE(acpi_evaluate_object(handle, "_PUR", NULL, &buffer))) in acpi_pad_pur() 380 if (!buffer.length || !buffer.pointer) in acpi_pad_pur() 383 package = buffer.pointer; in acpi_pad_pur() 391 kfree(buffer.pointer); in acpi_pad_pur()
|
| H A D | device_sysfs.c | 127 * @size: Size of the buffer. 188 * @size: Size of the buffer. 322 * @buf: The buffer to save pnp_modalias and of_modalias. 323 * @size: Size of buffer. 456 (wchar_t *)acpi_dev->pnp.str_obj->buffer.pointer, in description_show() 457 acpi_dev->pnp.str_obj->buffer.length, in description_show() 520 struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER, NULL}; in acpi_device_setup_files() local 548 NULL, &buffer); in acpi_device_setup_files() 550 buffer.pointer = NULL; in acpi_device_setup_files() 551 dev->pnp.str_obj = buffer in acpi_device_setup_files() [all...] |
| /kernel/linux/linux-6.6/include/linux/bcma/ |
| H A D | bcma.h | 51 void (*block_read)(struct bcma_device *core, void *buffer, 53 void (*block_write)(struct bcma_device *core, const void *buffer, 395 static inline void bcma_block_read(struct bcma_device *core, void *buffer, in bcma_block_read() argument 398 core->bus->ops->block_read(core, buffer, count, offset, reg_width); in bcma_block_read() 401 const void *buffer, size_t count, in bcma_block_write() 404 core->bus->ops->block_write(core, buffer, count, offset, reg_width); in bcma_block_write() 400 bcma_block_write(struct bcma_device *core, const void *buffer, size_t count, u16 offset, u8 reg_width) bcma_block_write() argument
|
| /kernel/linux/linux-6.6/fs/verity/ |
| H A D | enable.c | 21 /* Hash a block, writing the result to the next level's pending block buffer. */ 30 * Safety check to prevent a buffer overflow in case of a filesystem bug in hash_one_block() 483 struct block_buffer buffer = {}; in code_sign_copy_merkle_tree() local 498 buffer.data = kzalloc(params->block_size, GFP_KERNEL); in code_sign_copy_merkle_tree() 499 if (!buffer.data) in code_sign_copy_merkle_tree() 506 bytes_read = __kernel_read(filp, buffer.data, in code_sign_copy_merkle_tree() 521 err = write_merkle_tree_block(inode, buffer.data, in code_sign_copy_merkle_tree() 531 kfree(buffer.data); in code_sign_copy_merkle_tree()
|