Home
last modified time | relevance | path

Searched refs:buffer (Results 4726 - 4750 of 11084) sorted by relevance

1...<<181182183184185186187188189190>>...444

/kernel/linux/linux-5.10/drivers/input/touchscreen/
H A Dchipone_icn8505.c367 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in icn8505_probe_acpi() local
377 status = acpi_evaluate_object(adev->handle, "_SUB", NULL, &buffer); in icn8505_probe_acpi()
379 obj = buffer.pointer; in icn8505_probe_acpi()
386 buffer.pointer = NULL; in icn8505_probe_acpi()
392 kfree(buffer.pointer); in icn8505_probe_acpi()
/kernel/linux/linux-5.10/drivers/media/pci/cx23885/
H A Dcimax2.c119 u8 buffer[MAX_XFER_SIZE]; in netup_write_i2c() local
124 .buf = &buffer[0], in netup_write_i2c()
128 if (1 + len > sizeof(buffer)) { in netup_write_i2c()
134 buffer[0] = reg; in netup_write_i2c()
135 memcpy(&buffer[1], buf, len); in netup_write_i2c()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dport.c290 /* buffer[i]: buffer that priority i mapped to */
291 int mlx5e_port_query_priority2buffer(struct mlx5_core_dev *mdev, u8 *buffer) in mlx5e_port_query_priority2buffer() argument
314 buffer[prio] = (u8)(prio_x_buff >> (4 * prio)) & 0xF; in mlx5e_port_query_priority2buffer()
315 mlx5_core_dbg(mdev, "prio %d, buffer %d\n", prio, buffer[prio]); in mlx5e_port_query_priority2buffer()
323 int mlx5e_port_set_priority2buffer(struct mlx5_core_dev *mdev, u8 *buffer) in mlx5e_port_set_priority2buffer() argument
353 prio_x_buff |= (buffer[prio] << (4 * prio)); in mlx5e_port_set_priority2buffer()
/kernel/linux/linux-5.10/drivers/iio/chemical/
H A Dsgp30.c111 union sgp_reading buffer; member
195 * sgp_verify_buffer() - verify the checksums of the data buffer words
198 * @buf: Raw data buffer
199 * @word_count: Num data words stored in the buffer, excluding CRC bytes
228 * @buf: Raw data buffer to use
378 &data->buffer, SGP_MEASUREMENT_LEN, in sgp_read_raw()
380 words = data->buffer.raw_words; in sgp_read_raw()
524 ret = sgp_read_cmd(data, SGP_CMD_GET_FEATURE_SET, &data->buffer, 1, in sgp_probe()
529 data->feature_set = be16_to_cpu(data->buffer.raw_words[0].value); in sgp_probe()
/kernel/linux/linux-5.10/drivers/iio/imu/inv_icm42600/
H A Dinv_icm42600_buffer.c13 #include <linux/iio/buffer.h>
256 memcpy(st->buffer, &raw_wm, sizeof(raw_wm)); in inv_icm42600_buffer_update_watermark()
258 st->buffer, sizeof(raw_wm)); in inv_icm42600_buffer_update_watermark()
326 ret = regmap_bulk_read(st->map, INV_ICM42600_REG_FIFO_COUNT, st->buffer, 2); in inv_icm42600_buffer_postenable()
470 raw_fifo_count = (__be16 *)st->buffer; in inv_icm42600_buffer_fifo_read()
483 /* read all FIFO data in internal buffer */ in inv_icm42600_buffer_fifo_read()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43legacy/
H A Ddebugfs.c195 const size_t bufsize = 1024 * 16; /* 16 KiB buffer */ in b43legacy_debugfs_read()
219 if (!dfile->buffer) { in b43legacy_debugfs_read()
238 dfile->buffer = buf; in b43legacy_debugfs_read()
242 dfile->buffer, in b43legacy_debugfs_read()
245 free_pages((unsigned long)dfile->buffer, buforder); in b43legacy_debugfs_read()
246 dfile->buffer = NULL; in b43legacy_debugfs_read()
/kernel/linux/linux-5.10/drivers/net/wireless/microchip/wilc1000/
H A Dwlan_cfg.c266 int wilc_wlan_cfg_get_val(struct wilc *wl, u16 wid, u8 *buffer, in wilc_wlan_cfg_get_val() argument
279 memcpy(buffer, &cfg->b[i].val, 1); in wilc_wlan_cfg_get_val()
287 memcpy(buffer, &cfg->hw[i].val, 2); in wilc_wlan_cfg_get_val()
295 memcpy(buffer, &cfg->w[i].val, 4); in wilc_wlan_cfg_get_val()
306 memcpy(buffer, &cfg->s[i].str[2], size); in wilc_wlan_cfg_get_val()
/kernel/linux/linux-5.10/drivers/usb/usbip/
H A Dstub_rx.c462 void *buffer = NULL; in stub_recv_cmd_submit() local
487 dev_err(&udev->dev, "sg buffer with zero length\n"); in stub_recv_cmd_submit()
491 /* allocate urb transfer buffer, if needed */ in stub_recv_cmd_submit()
504 * buffer. The previously allocated SG list is in stub_recv_cmd_submit()
520 buffer = kzalloc(buf_len, GFP_KERNEL); in stub_recv_cmd_submit()
521 if (!buffer) in stub_recv_cmd_submit()
547 priv->urbs[0]->transfer_buffer = buffer; in stub_recv_cmd_submit()
622 kfree(buffer); in stub_recv_cmd_submit()
/kernel/linux/linux-5.10/net/rose/
H A Drose_subr.c27 static int rose_create_facilities(unsigned char *buffer, struct rose_sock *rose);
435 static int rose_create_facilities(unsigned char *buffer, struct rose_sock *rose) in rose_create_facilities() argument
437 unsigned char *p = buffer + 1; in rose_create_facilities()
524 len = p - buffer; in rose_create_facilities()
525 buffer[0] = len - 1; in rose_create_facilities()
/kernel/linux/linux-5.10/security/integrity/ima/
H A Dima_template_lib.c166 * ima_parse_buf() - Parses lengths and data from an input buffer
175 * @bufname: String identifier of the input buffer.
237 u8 buffer[CRYPTO_MAX_ALG_NAME + 2 + IMA_MAX_DIGEST_SIZE] = { 0 }; in ima_eventdigest_init_common() local
243 offset += snprintf(buffer, CRYPTO_MAX_ALG_NAME + 1, "%s", in ima_eventdigest_init_common()
245 buffer[offset] = ':'; in ima_eventdigest_init_common()
250 memcpy(buffer + offset, digest, digestsize); in ima_eventdigest_init_common()
259 return ima_write_template_field_data(buffer, offset + digestsize, in ima_eventdigest_init_common()
448 * ima_eventbuf_init - include the buffer(kexec-cmldine) as part of the
/kernel/linux/linux-5.10/sound/usb/line6/
H A Dpcm.c144 /* allocate a buffer if not opened yet;
156 if (!test_and_set_bit(type, &pstr->opened) && !pstr->buffer) { in line6_buffer_acquire()
157 pstr->buffer = in line6_buffer_acquire()
161 if (!pstr->buffer) in line6_buffer_acquire()
167 /* free a buffer if all streams are closed;
176 kfree(pstr->buffer); in line6_buffer_release()
177 pstr->buffer = NULL; in line6_buffer_release()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dauxtrace.h203 * struct auxtrace_buffer - a buffer containing AUX area tracing data.
205 * @size: size of the buffer in bytes
206 * @pid: in per-thread mode, the pid this buffer is associated with
207 * @tid: in per-thread mode, the tid this buffer is associated with
208 * @cpu: in per-cpu mode, the cpu this buffer is associated with
209 * @data: actual buffer data (can be null if the data has not been loaded)
210 * @data_offset: file offset at which the buffer can be read
211 * @mmap_addr: mmap address at which the buffer can be read
215 * @consecutive: the original data was split up and this buffer is consecutive
216 * to the previous buffer
[all...]
/kernel/linux/linux-5.10/kernel/dma/
H A Dswiotlb.c249 * Statically reserve bounce buffer space and initialize bounce buffer data
276 pr_warn("Cannot allocate buffer"); in swiotlb_init()
416 * Bounce: copy the swiotlb buffer from or back to the original dma location
425 /* The buffer does not have a mapping. Map it in and copy */ in swiotlb_bounce()
427 char *buffer; in swiotlb_bounce() local
435 buffer = kmap_atomic(pfn_to_page(pfn)); in swiotlb_bounce()
437 memcpy(vaddr, buffer + offset, sz); in swiotlb_bounce()
439 memcpy(buffer + offset, vaddr, sz); in swiotlb_bounce()
440 kunmap_atomic(buffer); in swiotlb_bounce()
[all...]
/kernel/linux/linux-5.10/kernel/trace/
H A Dtrace_hwlat.c108 struct trace_buffer *buffer = tr->array_buffer.buffer; in trace_hwlat_sample() local
117 event = trace_buffer_lock_reserve(buffer, TRACE_HWLAT, sizeof(*entry), in trace_hwlat_sample()
130 if (!call_filter_check_discard(call, entry, buffer, event)) in trace_hwlat_sample()
131 trace_buffer_unlock_commit_nostack(buffer, event); in trace_hwlat_sample()
413 * @ubuf: The userspace provided buffer to read value into
444 * @ubuf: The user buffer that contains the value to write
483 * @ubuf: The user buffer that contains the value to write
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ioctl.c190 void __user *buffer = (void __user *)((unsigned long)(arg->buffer)); in vmw_get_cap_3d_ioctl() local
214 DRM_ERROR("Failed to allocate bounce buffer for 3D caps.\n"); in vmw_get_cap_3d_ioctl()
242 ret = copy_to_user(buffer, bounce, size); in vmw_get_cap_3d_ioctl()
390 VMW_DEBUG_USER("Framebuffer not buffer backed.\n"); in vmw_present_readback_ioctl()
439 * @buffer: See the linux fops read documentation.
446 ssize_t vmw_fops_read(struct file *filp, char __user *buffer, in vmw_fops_read() argument
454 return drm_read(filp, buffer, count, offset); in vmw_fops_read()
/kernel/linux/linux-5.10/drivers/parport/
H A Dieee1284.c568 * @buffer: data buffer (in kernel space)
571 * This will write up to @len bytes of @buffer to the port
577 * @len bytes of @buffer are valid.
583 ssize_t parport_write (struct parport *port, const void *buffer, size_t len) in parport_write() argument
586 return port->ops->compat_write_data (port, buffer, len, 0); in parport_write()
650 retval = (*fn) (port, buffer, len, 0); in parport_write()
659 * @buffer: data buffer (in kernel space)
662 * This will read up to @len bytes of @buffer t
674 parport_read(struct parport *port, void *buffer, size_t len) parport_read() argument
[all...]
/kernel/linux/linux-5.10/drivers/platform/chrome/
H A Dcros_ec_chardev.c200 static ssize_t cros_ec_chardev_read(struct file *filp, char __user *buffer, in cros_ec_chardev_read() argument
226 ret = copy_to_user(buffer, &event->event_type, count); in cros_ec_chardev_read()
246 if (copy_to_user(buffer, msg, count)) in cros_ec_chardev_read()
330 if (s_mem.bytes > sizeof(s_mem.buffer)) in cros_ec_chardev_ioctl_readmem()
334 s_mem.buffer); in cros_ec_chardev_ioctl_readmem()
/kernel/linux/linux-6.6/drivers/mtd/spi-nor/controllers/
H A Dhisi-sfc.c96 void *buffer; member
285 memcpy(read_buf + offset, host->buffer, trans); in hisi_spi_nor_read()
302 memcpy(host->buffer, write_buf + offset, trans); in hisi_spi_nor_write()
452 host->buffer = dmam_alloc_coherent(dev, HIFMC_DMA_MAX_LEN, in hisi_spi_nor_probe()
454 if (!host->buffer) in hisi_spi_nor_probe()
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Dacinterp.h140 void *buffer,
146 void *buffer,
165 void *buffer, u32 buffer_length);
169 void *buffer, u32 buffer_length);
286 acpi_ex_read_gpio(union acpi_operand_object *obj_desc, void *buffer);
432 * exstorob - store object - buffer/string
H A Drscalc.c148 * calculates the size buffer needed to hold the corresponding
445 * buffer needed to hold the corresponding internal resource
456 u8 *buffer; in acpi_rs_get_list_length() local
500 buffer = in acpi_rs_get_list_length()
509 ACPI_MOVE_16_TO_16(&temp16, buffer); in acpi_rs_get_list_length()
518 extra_struct_bytes = acpi_rs_count_set_bits(*buffer); in acpi_rs_get_list_length()
564 extra_struct_bytes = (buffer[1] - 1) * sizeof(u32); in acpi_rs_get_list_length()
684 * Update the required buffer size for the internal descriptor structs in acpi_rs_get_list_length()
733 * buffer_size_needed - u32 pointer of the size buffer
763 * Calculate the size of the return buffer in acpi_rs_get_pci_routing_table_length()
[all...]
H A Dnsrepair2.c111 * However, we can fix the case where a buffer is returned, by converting
266 if (return_object->buffer.length >= ACPI_FDE_DWORD_BUFFER_SIZE) { in acpi_ns_repair_FDE()
272 if (return_object->buffer.length != ACPI_FDE_BYTE_BUFFER_SIZE) { in acpi_ns_repair_FDE()
276 "Incorrect return buffer length %u, expected %u", in acpi_ns_repair_FDE()
277 return_object->buffer.length, in acpi_ns_repair_FDE()
283 /* Create the new (larger) buffer object */ in acpi_ns_repair_FDE()
293 byte_buffer = return_object->buffer.pointer; in acpi_ns_repair_FDE()
295 buffer_object->buffer.pointer); in acpi_ns_repair_FDE()
313 /* Delete the original return object, return the new buffer object */ in acpi_ns_repair_FDE()
/kernel/linux/linux-6.6/drivers/acpi/
H A Dpci_irq.c203 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in acpi_pci_irq_find_prt_entry() local
214 status = acpi_get_irq_routing_table(handle, &buffer); in acpi_pci_irq_find_prt_entry()
216 kfree(buffer.pointer); in acpi_pci_irq_find_prt_entry()
220 entry = buffer.pointer; in acpi_pci_irq_find_prt_entry()
229 kfree(buffer.pointer); in acpi_pci_irq_find_prt_entry()
/kernel/linux/linux-6.6/drivers/platform/chrome/
H A Dcros_ec_chardev.c200 static ssize_t cros_ec_chardev_read(struct file *filp, char __user *buffer, in cros_ec_chardev_read() argument
226 ret = copy_to_user(buffer, &event->event_type, count); in cros_ec_chardev_read()
246 if (copy_to_user(buffer, msg, count)) in cros_ec_chardev_read()
330 if (s_mem.bytes > sizeof(s_mem.buffer)) in cros_ec_chardev_ioctl_readmem()
334 s_mem.buffer); in cros_ec_chardev_ioctl_readmem()
/kernel/linux/linux-6.6/drivers/platform/x86/dell/dell-wmi-sysman/
H A Dsysman.c32 * populate_string_buffer() - populates a string buffer
33 * @buffer: the start of the destination buffer
34 * @buffer_len: length of the destination buffer
35 * @str: the string to insert into buffer
37 ssize_t populate_string_buffer(char *buffer, size_t buffer_len, const char *str) in populate_string_buffer() argument
39 u16 *length = (u16 *)buffer; in populate_string_buffer()
60 * calculate_string_buffer() - determines size of string buffer for use with BIOS communication
71 * calculate_security_buffer() - determines size of security buffer for authentication scheme
86 * populate_security_buffer() - builds a security buffer fo
92 populate_security_buffer(char *buffer, char *authentication) populate_security_buffer() argument
[all...]
/kernel/linux/linux-6.6/drivers/usb/usbip/
H A Dstub_rx.c462 void *buffer = NULL; in stub_recv_cmd_submit() local
487 dev_err(&udev->dev, "sg buffer with zero length\n"); in stub_recv_cmd_submit()
491 /* allocate urb transfer buffer, if needed */ in stub_recv_cmd_submit()
504 * buffer. The previously allocated SG list is in stub_recv_cmd_submit()
520 buffer = kzalloc(buf_len, GFP_KERNEL); in stub_recv_cmd_submit()
521 if (!buffer) in stub_recv_cmd_submit()
547 priv->urbs[0]->transfer_buffer = buffer; in stub_recv_cmd_submit()
622 kfree(buffer); in stub_recv_cmd_submit()

Completed in 23 milliseconds

1...<<181182183184185186187188189190>>...444