Home
last modified time | relevance | path

Searched refs:buffer (Results 926 - 950 of 5070) sorted by relevance

1...<<31323334353637383940>>...203

/kernel/linux/linux-5.10/drivers/iio/light/
H A Dadjd_s311.c25 #include <linux/iio/buffer.h>
57 u16 *buffer; member
132 data->buffer[j++] = ret & ADJD_S311_DATA_MASK; in adjd_s311_trigger_handler()
135 iio_push_to_buffers_with_timestamp(indio_dev, data->buffer, time_ns); in adjd_s311_trigger_handler()
233 kfree(data->buffer); in adjd_s311_update_scan_mode()
234 data->buffer = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in adjd_s311_update_scan_mode()
235 if (data->buffer == NULL) in adjd_s311_update_scan_mode()
293 kfree(data->buffer); in adjd_s311_remove()
/kernel/linux/linux-5.10/drivers/iio/potentiostat/
H A Dlmp91000.c17 #include <linux/iio/buffer.h>
75 u32 buffer[4] __aligned(8);
129 *val = data->buffer[data->chan_select]; in lmp91000_read()
141 memset(data->buffer, 0, sizeof(data->buffer)); in lmp91000_buffer_handler()
145 data->buffer[0] = val; in lmp91000_buffer_handler()
146 iio_push_to_buffers_with_timestamp(indio_dev, data->buffer, in lmp91000_buffer_handler()
268 data->buffer[data->chan_select] = *((int *)val); in lmp91000_buffer_cb()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
H A Dbus.c63 void b43_bus_bcma_block_read(struct b43_bus_dev *dev, void *buffer, in b43_bus_bcma_block_read() argument
66 bcma_block_read(dev->bdev, buffer, count, offset, reg_width); in b43_bus_bcma_block_read()
69 void b43_bus_bcma_block_write(struct b43_bus_dev *dev, const void *buffer, in b43_bus_bcma_block_write() argument
72 bcma_block_write(dev->bdev, buffer, count, offset, reg_width); in b43_bus_bcma_block_write()
166 static void b43_bus_ssb_block_read(struct b43_bus_dev *dev, void *buffer, in b43_bus_ssb_block_read() argument
169 ssb_block_read(dev->sdev, buffer, count, offset, reg_width); in b43_bus_ssb_block_read()
172 void b43_bus_ssb_block_write(struct b43_bus_dev *dev, const void *buffer, in b43_bus_ssb_block_write() argument
175 ssb_block_write(dev->sdev, buffer, count, offset, reg_width); in b43_bus_ssb_block_write()
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/
H A Devent.c29 u8 *buffer; in wlcore_event_fw_logger() local
40 buffer = kzalloc(WL18XX_LOGGER_SDIO_BUFF_MAX, GFP_KERNEL); in wlcore_event_fw_logger()
41 if (!buffer) { in wlcore_event_fw_logger()
47 ret = wlcore_read(wl, addr, buffer, WL18XX_LOGGER_SDIO_BUFF_MAX, in wlcore_event_fw_logger()
50 wl1271_error("Fail to read logger buffer, error_id = %d", in wlcore_event_fw_logger()
56 memcpy(&fw_log, buffer, sizeof(fw_log)); in wlcore_event_fw_logger()
71 wl12xx_copy_fwlog(wl, &buffer[start_loc], len); in wlcore_event_fw_logger()
78 &buffer[WL18XX_LOGGER_BUFF_OFFSET], in wlcore_event_fw_logger()
90 /* indicate FW about Clear buffer */ in wlcore_event_fw_logger()
94 kfree(buffer); in wlcore_event_fw_logger()
[all...]
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Drsutils.c327 * Zero the entire area of the buffer. in acpi_rs_get_resource_source()
419 * ret_buffer - Pointer to a buffer structure for the
428 * and the contents of the callers buffer is undefined.
453 * Create a resource linked list from the byte stream buffer that comes in acpi_rs_get_prt_method_data()
469 * ret_buffer - Pointer to a buffer structure for the
478 * and the contents of the callers buffer is undefined.
504 * byte stream buffer that comes back from the _CRS method in acpi_rs_get_crs_method_data()
520 * ret_buffer - Pointer to a buffer structure for the
529 * and the contents of the callers buffer is undefined.
555 * byte stream buffer tha in acpi_rs_get_prs_method_data()
697 struct acpi_buffer buffer; acpi_rs_set_srs_method_data() local
[all...]
H A Dnsxfname.c114 * buffer - Buffer for returned path in ACPI_EXPORT_SYMBOL()
124 acpi_get_name(acpi_handle handle, u32 name_type, struct acpi_buffer *buffer) in ACPI_EXPORT_SYMBOL()
134 status = acpi_ut_validate_buffer(buffer); in ACPI_EXPORT_SYMBOL()
153 status = acpi_ns_handle_to_pathname(handle, buffer, in ACPI_EXPORT_SYMBOL()
160 status = acpi_ns_handle_to_name(handle, buffer); in ACPI_EXPORT_SYMBOL()
213 * Note: Allocates the return buffer, must be freed by the caller.
326 * return buffer in acpi_get_object_info()
376 * Create a pointer to the string area of the return buffer. in acpi_get_object_info()
390 * Copy the HID, UID, and CIDs to the return buffer. The variable-length in acpi_get_object_info()
391 * strings are copied to the reserved area at the end of the buffer in acpi_get_object_info()
[all...]
H A Dutobject.c193 * PARAMETERS: buffer_size - Size of buffer to be created
197 * DESCRIPTION: Create a fully initialized buffer object
204 u8 *buffer = NULL; in acpi_ut_create_buffer_object() local
215 /* Create an actual buffer only if size > 0 */ in acpi_ut_create_buffer_object()
219 /* Allocate the actual buffer */ in acpi_ut_create_buffer_object()
221 buffer = ACPI_ALLOCATE_ZEROED(buffer_size); in acpi_ut_create_buffer_object()
222 if (!buffer) { in acpi_ut_create_buffer_object()
231 /* Complete buffer object initialization */ in acpi_ut_create_buffer_object()
233 buffer_desc->buffer.flags |= AOPOBJ_DATA_VALID; in acpi_ut_create_buffer_object()
234 buffer_desc->buffer in acpi_ut_create_buffer_object()
[all...]
/kernel/linux/linux-6.6/drivers/bcma/
H A Dhost_pci.c82 static void bcma_host_pci_block_read(struct bcma_device *core, void *buffer, in bcma_host_pci_block_read() argument
90 ioread8_rep(addr, buffer, count); in bcma_host_pci_block_read()
94 ioread16_rep(addr, buffer, count >> 1); in bcma_host_pci_block_read()
98 ioread32_rep(addr, buffer, count >> 2); in bcma_host_pci_block_read()
106 const void *buffer, size_t count, in bcma_host_pci_block_write()
114 iowrite8_rep(addr, buffer, count); in bcma_host_pci_block_write()
118 iowrite16_rep(addr, buffer, count >> 1); in bcma_host_pci_block_write()
122 iowrite32_rep(addr, buffer, count >> 2); in bcma_host_pci_block_write()
105 bcma_host_pci_block_write(struct bcma_device *core, const void *buffer, size_t count, u16 offset, u8 reg_width) bcma_host_pci_block_write() argument
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/
H A Dadf_pfvf_vf_proto.c212 * @buffer: input buffer where to place the received data
213 * @buffer_len: buffer length as input, the amount of written bytes on output
217 * return the overall content back to the caller through the provided buffer.
218 * The buffer should be large enough to contain the requested message type,
224 u8 *buffer, unsigned int *buffer_len) in adf_send_vf2pf_blkmsg_req()
246 &buffer[ADF_PFVF_BLKMSG_VER_BYTE]); in adf_send_vf2pf_blkmsg_req()
250 if (unlikely(!buffer[ADF_PFVF_BLKMSG_VER_BYTE])) { in adf_send_vf2pf_blkmsg_req()
258 &buffer[ADF_PFVF_BLKMSG_LEN_BYTE]); in adf_send_vf2pf_blkmsg_req()
262 if (unlikely(!buffer[ADF_PFVF_BLKMSG_LEN_BYT in adf_send_vf2pf_blkmsg_req()
223 adf_send_vf2pf_blkmsg_req(struct adf_accel_dev *accel_dev, u8 type, u8 *buffer, unsigned int *buffer_len) adf_send_vf2pf_blkmsg_req() argument
[all...]
/kernel/linux/linux-6.6/drivers/iio/potentiostat/
H A Dlmp91000.c17 #include <linux/iio/buffer.h>
75 u32 buffer[4] __aligned(8);
129 *val = data->buffer[data->chan_select]; in lmp91000_read()
141 memset(data->buffer, 0, sizeof(data->buffer)); in lmp91000_buffer_handler()
145 data->buffer[0] = val; in lmp91000_buffer_handler()
146 iio_push_to_buffers_with_timestamp(indio_dev, data->buffer, in lmp91000_buffer_handler()
268 data->buffer[data->chan_select] = *((int *)val); in lmp91000_buffer_cb()
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43/
H A Dbus.c63 void b43_bus_bcma_block_read(struct b43_bus_dev *dev, void *buffer, in b43_bus_bcma_block_read() argument
66 bcma_block_read(dev->bdev, buffer, count, offset, reg_width); in b43_bus_bcma_block_read()
69 void b43_bus_bcma_block_write(struct b43_bus_dev *dev, const void *buffer, in b43_bus_bcma_block_write() argument
72 bcma_block_write(dev->bdev, buffer, count, offset, reg_width); in b43_bus_bcma_block_write()
166 static void b43_bus_ssb_block_read(struct b43_bus_dev *dev, void *buffer, in b43_bus_ssb_block_read() argument
169 ssb_block_read(dev->sdev, buffer, count, offset, reg_width); in b43_bus_ssb_block_read()
172 void b43_bus_ssb_block_write(struct b43_bus_dev *dev, const void *buffer, in b43_bus_ssb_block_write() argument
175 ssb_block_write(dev->sdev, buffer, count, offset, reg_width); in b43_bus_ssb_block_write()
/kernel/linux/linux-6.6/drivers/net/wireless/ti/wlcore/
H A Devent.c29 u8 *buffer; in wlcore_event_fw_logger() local
42 buffer = kzalloc(WL18XX_LOGGER_SDIO_BUFF_MAX, GFP_KERNEL); in wlcore_event_fw_logger()
43 if (!buffer) { in wlcore_event_fw_logger()
49 ret = wlcore_read(wl, addr, buffer, WL18XX_LOGGER_SDIO_BUFF_MAX, in wlcore_event_fw_logger()
52 wl1271_error("Fail to read logger buffer, error_id = %d", in wlcore_event_fw_logger()
58 memcpy(&fw_log, buffer, sizeof(fw_log)); in wlcore_event_fw_logger()
67 /* Calculate the internal pointers to the start and end of log buffer */ in wlcore_event_fw_logger()
75 wl1271_error("buffer read pointer out of bounds: %x not in (%x-%x)\n", in wlcore_event_fw_logger()
83 /* Copy initial part up to the end of ring buffer */ in wlcore_event_fw_logger()
85 wl12xx_copy_fwlog(wl, &buffer[start_lo in wlcore_event_fw_logger()
[all...]
/kernel/linux/linux-6.6/arch/xtensa/platforms/iss/
H A Dsimdisk.c71 unsigned long nsect, char *buffer, int write) in simdisk_transfer()
87 READ_ONCE(*buffer); in simdisk_transfer()
89 io = simc_write(dev->fd, buffer, nbytes); in simdisk_transfer()
91 io = simc_read(dev->fd, buffer, nbytes); in simdisk_transfer()
96 buffer += io; in simdisk_transfer()
111 char *buffer = bvec_kmap_local(&bvec); in simdisk_submit_bio() local
114 simdisk_transfer(dev, sector, len, buffer, in simdisk_submit_bio()
117 kunmap_local(buffer); in simdisk_submit_bio()
70 simdisk_transfer(struct simdisk *dev, unsigned long sector, unsigned long nsect, char *buffer, int write) simdisk_transfer() argument
/kernel/linux/linux-6.6/crypto/
H A Decdsa.c147 unsigned char *buffer; in ecdsa_verify() local
154 buffer = kmalloc(req->src_len + req->dst_len, GFP_KERNEL); in ecdsa_verify()
155 if (!buffer) in ecdsa_verify()
160 buffer, req->src_len + req->dst_len, 0); in ecdsa_verify()
163 buffer, req->src_len); in ecdsa_verify()
172 memcpy(&rawhash[diff], buffer + req->src_len, req->dst_len); in ecdsa_verify()
175 memcpy(&rawhash, buffer + req->src_len, keylen); in ecdsa_verify()
183 kfree(buffer); in ecdsa_verify()
/kernel/linux/linux-6.6/drivers/iio/adc/
H A Dad7949.c36 /* REF: reference/buffer selection */
77 * @buffer: buffer to send / receive data to / from device
78 * @buf8b: be16 buffer to exchange data with the device in 8-bit transfers
89 u16 buffer __aligned(IIO_DMA_MINALIGN);
102 ad7949_adc->buffer = ad7949_adc->cfg << 2; in ad7949_spi_write_cfg()
103 ret = spi_write(ad7949_adc->spi, &ad7949_adc->buffer, 2); in ad7949_spi_write_cfg()
106 ad7949_adc->buffer = ad7949_adc->cfg; in ad7949_spi_write_cfg()
107 ret = spi_write(ad7949_adc->spi, &ad7949_adc->buffer, 2); in ad7949_spi_write_cfg()
153 ret = spi_read(ad7949_adc->spi, &ad7949_adc->buffer, in ad7949_spi_read_channel()
[all...]
/kernel/liteos_a/fs/vfs/operation/
H A Dvfs_force_umount.c201 static ssize_t ErrorVopReadlink(struct Vnode *vnode, char *buffer, size_t bufLen) in ErrorVopReadlink() argument
204 (void)buffer; in ErrorVopReadlink()
248 static ssize_t ErrorFopRead(struct file *filep, char *buffer, size_t buflen) in ErrorFopRead() argument
251 (void)buffer; in ErrorFopRead()
256 static ssize_t ErrorFopWrite(struct file *filep, const char *buffer, size_t buflen) in ErrorFopWrite() argument
259 (void)buffer; in ErrorFopWrite()
325 static ssize_t ErrorFopReadpage(struct file *filep, char *buffer, size_t buflen) in ErrorFopReadpage() argument
328 (void)buffer; in ErrorFopReadpage()
/kernel/linux/linux-6.6/drivers/net/wireless/marvell/libertas/
H A Dif_sdio.c106 u8 buffer[] __aligned(4);
119 u8 buffer[65536] __attribute__((aligned(4))); member
204 u8 *buffer, unsigned size) in if_sdio_handle_cmd()
223 memcpy(priv->resp_buf[i], buffer, size); in if_sdio_handle_cmd()
235 u8 *buffer, unsigned size) in if_sdio_handle_data()
255 skb_put_data(skb, buffer, size); in if_sdio_handle_data()
266 u8 *buffer, unsigned size) in if_sdio_handle_event()
285 event = buffer[3] << 24; in if_sdio_handle_event()
286 event |= buffer[2] << 16; in if_sdio_handle_event()
287 event |= buffer[ in if_sdio_handle_event()
203 if_sdio_handle_cmd(struct if_sdio_card *card, u8 *buffer, unsigned size) if_sdio_handle_cmd() argument
234 if_sdio_handle_data(struct if_sdio_card *card, u8 *buffer, unsigned size) if_sdio_handle_data() argument
265 if_sdio_handle_event(struct if_sdio_card *card, u8 *buffer, unsigned size) if_sdio_handle_event() argument
[all...]
/kernel/linux/linux-5.10/drivers/acpi/
H A Dprocessor_throttling.c414 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in acpi_processor_get_throttling_control() local
419 status = acpi_evaluate_object(pr->handle, "_PTC", NULL, &buffer); in acpi_processor_get_throttling_control()
427 ptc = (union acpi_object *)buffer.pointer; in acpi_processor_get_throttling_control()
442 || (obj.buffer.length < sizeof(struct acpi_ptc_register)) in acpi_processor_get_throttling_control()
443 || (obj.buffer.pointer == NULL)) { in acpi_processor_get_throttling_control()
449 memcpy(&pr->throttling.control_register, obj.buffer.pointer, in acpi_processor_get_throttling_control()
459 || (obj.buffer.length < sizeof(struct acpi_ptc_register)) in acpi_processor_get_throttling_control()
460 || (obj.buffer.pointer == NULL)) { in acpi_processor_get_throttling_control()
466 memcpy(&pr->throttling.status_register, obj.buffer.pointer, in acpi_processor_get_throttling_control()
486 kfree(buffer in acpi_processor_get_throttling_control()
498 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; acpi_processor_get_throttling_states() local
574 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; acpi_processor_get_tsd() local
[all...]
/kernel/linux/linux-5.10/drivers/hid/intel-ish-hid/ishtp/
H A Dclient.c438 * Get a free buffer from pool of free read buffers and add to read buffer
519 * @buf: message buffer
522 * If the client is correct state to send message, this function gets a buffer
833 unsigned char *buffer = NULL; in recv_ishtp_cl_msg() local
859 /* If no Rx buffer is allocated, disband the rb */ in recv_ishtp_cl_msg()
860 if (rb->buffer.size == 0 || rb->buffer.data == NULL) { in recv_ishtp_cl_msg()
863 "Rx buffer is not allocated.\n"); in recv_ishtp_cl_msg()
871 * If message buffer overflow in recv_ishtp_cl_msg()
966 unsigned char *buffer = NULL; recv_ishtp_cl_msg_dma() local
[all...]
/kernel/linux/linux-5.10/drivers/scsi/fcoe/
H A Dfcoe_transport.c25 static int fcoe_transport_show(char *buffer, const struct kernel_param *kp);
463 * enough buffer left a new page is allocated for the trailer. Reference to
597 static int fcoe_transport_show(char *buffer, const struct kernel_param *kp) in fcoe_transport_show() argument
602 i = j = sprintf(buffer, "Attached FCoE transports:"); in fcoe_transport_show()
607 i += snprintf(&buffer[i], IFNAMSIZ, "%s ", ft->name); in fcoe_transport_show()
611 i += snprintf(&buffer[i], IFNAMSIZ, "none"); in fcoe_transport_show()
702 * fcoe_if_to_netdev() - Parse a name buffer to get a net device
703 * @buffer: The name of the net device
707 static struct net_device *fcoe_if_to_netdev(const char *buffer) in fcoe_if_to_netdev() argument
712 if (buffer) { in fcoe_if_to_netdev()
859 fcoe_transport_create(const char *buffer, const struct kernel_param *kp) fcoe_transport_create() argument
925 fcoe_transport_destroy(const char *buffer, const struct kernel_param *kp) fcoe_transport_destroy() argument
970 fcoe_transport_disable(const char *buffer, const struct kernel_param *kp) fcoe_transport_disable() argument
1005 fcoe_transport_enable(const char *buffer, const struct kernel_param *kp) fcoe_transport_enable() argument
[all...]
/kernel/linux/linux-6.6/drivers/acpi/
H A Dprocessor_throttling.c403 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in acpi_processor_get_throttling_control() local
408 status = acpi_evaluate_object(pr->handle, "_PTC", NULL, &buffer); in acpi_processor_get_throttling_control()
416 ptc = (union acpi_object *)buffer.pointer; in acpi_processor_get_throttling_control()
431 || (obj.buffer.length < sizeof(struct acpi_ptc_register)) in acpi_processor_get_throttling_control()
432 || (obj.buffer.pointer == NULL)) { in acpi_processor_get_throttling_control()
437 memcpy(&pr->throttling.control_register, obj.buffer.pointer, in acpi_processor_get_throttling_control()
447 || (obj.buffer.length < sizeof(struct acpi_ptc_register)) in acpi_processor_get_throttling_control()
448 || (obj.buffer.pointer == NULL)) { in acpi_processor_get_throttling_control()
454 memcpy(&pr->throttling.status_register, obj.buffer.pointer, in acpi_processor_get_throttling_control()
474 kfree(buffer in acpi_processor_get_throttling_control()
486 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; acpi_processor_get_throttling_states() local
562 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; acpi_processor_get_tsd() local
[all...]
/kernel/linux/linux-6.6/drivers/hid/intel-ish-hid/ishtp/
H A Dclient.c438 * Get a free buffer from pool of free read buffers and add to read buffer
519 * @buf: message buffer
522 * If the client is correct state to send message, this function gets a buffer
841 unsigned char *buffer = NULL; in recv_ishtp_cl_msg() local
864 /* If no Rx buffer is allocated, disband the rb */ in recv_ishtp_cl_msg()
865 if (rb->buffer.size == 0 || rb->buffer.data == NULL) { in recv_ishtp_cl_msg()
868 "Rx buffer is not allocated.\n"); in recv_ishtp_cl_msg()
876 * If message buffer overflow in recv_ishtp_cl_msg()
971 unsigned char *buffer = NULL; recv_ishtp_cl_msg_dma() local
[all...]
/kernel/linux/linux-6.6/drivers/scsi/fcoe/
H A Dfcoe_transport.c26 static int fcoe_transport_show(char *buffer, const struct kernel_param *kp);
464 * enough buffer left a new page is allocated for the trailer. Reference to
598 static int fcoe_transport_show(char *buffer, const struct kernel_param *kp) in fcoe_transport_show() argument
603 i = j = sprintf(buffer, "Attached FCoE transports:"); in fcoe_transport_show()
608 i += snprintf(&buffer[i], IFNAMSIZ, "%s ", ft->name); in fcoe_transport_show()
612 i += snprintf(&buffer[i], IFNAMSIZ, "none"); in fcoe_transport_show()
703 * fcoe_if_to_netdev() - Parse a name buffer to get a net device
704 * @buffer: The name of the net device
708 static struct net_device *fcoe_if_to_netdev(const char *buffer) in fcoe_if_to_netdev() argument
713 if (buffer) { in fcoe_if_to_netdev()
858 fcoe_transport_create(const char *buffer, const struct kernel_param *kp) fcoe_transport_create() argument
924 fcoe_transport_destroy(const char *buffer, const struct kernel_param *kp) fcoe_transport_destroy() argument
969 fcoe_transport_disable(const char *buffer, const struct kernel_param *kp) fcoe_transport_disable() argument
1004 fcoe_transport_enable(const char *buffer, const struct kernel_param *kp) fcoe_transport_enable() argument
[all...]
/kernel/linux/linux-6.6/sound/xen/
H A Dxen_snd_front_alsa.c29 /* This is the shared buffer with its backing storage. */
31 u8 *buffer; member
225 stream->buffer = NULL; in stream_clear()
235 if (stream->buffer) in stream_free()
236 free_pages_exact(stream->buffer, stream->buffer_sz); in stream_free()
270 struct snd_interval *buffer = in alsa_hw_rule() local
291 req.buffer.min = buffer->min; in alsa_hw_rule()
292 req.buffer.max = buffer in alsa_hw_rule()
[all...]
/kernel/linux/linux-5.10/arch/s390/hypfs/
H A Dinode.c403 char *buffer; in hypfs_create_u64() local
408 buffer = kstrdup(tmp, GFP_KERNEL); in hypfs_create_u64()
409 if (!buffer) in hypfs_create_u64()
412 hypfs_create_file(dir, name, buffer, S_IFREG | REG_FILE_MODE); in hypfs_create_u64()
414 kfree(buffer); in hypfs_create_u64()
424 char *buffer; in hypfs_create_str() local
427 buffer = kmalloc(strlen(string) + 2, GFP_KERNEL); in hypfs_create_str()
428 if (!buffer) in hypfs_create_str()
430 sprintf(buffer, "%s\n", string); in hypfs_create_str()
432 hypfs_create_file(dir, name, buffer, S_IFRE in hypfs_create_str()
[all...]

Completed in 18 milliseconds

1...<<31323334353637383940>>...203