Home
last modified time | relevance | path

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

12345678910>>...55

/drivers/s390/char/
Dsclp_rw.c50 struct sclp_buffer *buffer; in sclp_make_buffer() local
58 buffer = ((struct sclp_buffer *) ((addr_t) sccb + PAGE_SIZE)) - 1; in sclp_make_buffer()
59 buffer->sccb = sccb; in sclp_make_buffer()
60 buffer->retry_count = 0; in sclp_make_buffer()
61 buffer->messages = 0; in sclp_make_buffer()
62 buffer->char_sum = 0; in sclp_make_buffer()
63 buffer->current_line = NULL; in sclp_make_buffer()
64 buffer->current_length = 0; in sclp_make_buffer()
65 buffer->columns = columns; in sclp_make_buffer()
66 buffer->htab = htab; in sclp_make_buffer()
[all …]
/drivers/gpu/drm/etnaviv/
Detnaviv_buffer.c34 static inline void OUT(struct etnaviv_cmdbuf *buffer, u32 data) in OUT() argument
36 u32 *vaddr = (u32 *)buffer->vaddr; in OUT()
38 BUG_ON(buffer->user_size >= buffer->size); in OUT()
40 vaddr[buffer->user_size / 4] = data; in OUT()
41 buffer->user_size += 4; in OUT()
44 static inline void CMD_LOAD_STATE(struct etnaviv_cmdbuf *buffer, in CMD_LOAD_STATE() argument
49 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_LOAD_STATE()
52 OUT(buffer, VIV_FE_LOAD_STATE_HEADER_OP_LOAD_STATE | in CMD_LOAD_STATE()
55 OUT(buffer, value); in CMD_LOAD_STATE()
58 static inline void CMD_END(struct etnaviv_cmdbuf *buffer) in CMD_END() argument
[all …]
/drivers/media/tuners/
Dtea5767.c136 unsigned char *buffer) in tea5767_status_dump() argument
140 if (TEA5767_READY_FLAG_MASK & buffer[0]) in tea5767_status_dump()
145 if (TEA5767_BAND_LIMIT_MASK & buffer[0]) in tea5767_status_dump()
150 div = ((buffer[0] & 0x3f) << 8) | buffer[1]; in tea5767_status_dump()
167 buffer[0] = (div >> 8) & 0x3f; in tea5767_status_dump()
168 buffer[1] = div & 0xff; in tea5767_status_dump()
173 if (TEA5767_STEREO_MASK & buffer[2]) in tea5767_status_dump()
178 tuner_info("IF Counter = %d\n", buffer[2] & TEA5767_IF_CNTR_MASK); in tea5767_status_dump()
181 (buffer[3] & TEA5767_ADC_LEVEL_MASK) >> 4); in tea5767_status_dump()
183 tuner_info("Chip ID = %d\n", (buffer[3] & TEA5767_CHIP_ID_MASK)); in tea5767_status_dump()
[all …]
Dtea5761.c126 static void tea5761_status_dump(unsigned char *buffer) in tea5761_status_dump() argument
130 div = ((buffer[2] & 0x3f) << 8) | buffer[3]; in tea5761_status_dump()
145 unsigned char buffer[7] = {0, 0, 0, 0, 0, 0, 0 }; in __set_radio_freq() local
153 buffer[5] |= TEA5761_TNCTRL_MU; in __set_radio_freq()
155 buffer[4] |= TEA5761_TNCTRL_PUPD_0; in __set_radio_freq()
161 buffer[5] |= TEA5761_TNCTRL_MST; in __set_radio_freq()
167 buffer[1] = (div >> 8) & 0x3f; in __set_radio_freq()
168 buffer[2] = div & 0xff; in __set_radio_freq()
171 tea5761_status_dump(buffer); in __set_radio_freq()
173 if (7 != (rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, 7))) in __set_radio_freq()
[all …]
/drivers/s390/net/
Dqeth_core_mpc.h15 #define QETH_IPA_PDU_LEN_TOTAL(buffer) (buffer + 0x0e) argument
16 #define QETH_IPA_PDU_LEN_PDU1(buffer) (buffer + 0x26) argument
17 #define QETH_IPA_PDU_LEN_PDU2(buffer) (buffer + 0x29) argument
18 #define QETH_IPA_PDU_LEN_PDU3(buffer) (buffer + 0x3a) argument
21 #define QETH_IPA_CMD_DEST_ADDR(buffer) (buffer + 0x2c) argument
457 char *buffer; member
718 #define QETH_IPA_ARP_DATA_POS(buffer) (buffer + IPA_PDU_HEADER_SIZE + \ argument
740 #define QETH_CM_ENABLE_ISSUER_RM_TOKEN(buffer) (buffer + 0x2c) argument
741 #define QETH_CM_ENABLE_FILTER_TOKEN(buffer) (buffer + 0x53) argument
742 #define QETH_CM_ENABLE_USER_DATA(buffer) (buffer + 0x5b) argument
[all …]
/drivers/staging/android/ion/
Dion.c46 bool ion_buffer_cached(struct ion_buffer *buffer) in ion_buffer_cached() argument
48 return !!(buffer->flags & ION_FLAG_CACHED); in ion_buffer_cached()
53 struct ion_buffer *buffer) in ion_buffer_add() argument
63 if (buffer < entry) { in ion_buffer_add()
65 } else if (buffer > entry) { in ion_buffer_add()
73 rb_link_node(&buffer->node, parent, p); in ion_buffer_add()
74 rb_insert_color(&buffer->node, &dev->buffers); in ion_buffer_add()
83 struct ion_buffer *buffer; in ion_buffer_create() local
87 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); in ion_buffer_create()
88 if (!buffer) in ion_buffer_create()
[all …]
/drivers/pnp/
Dinterface.c26 char *buffer; /* pointer to begin of buffer */ member
36 static int pnp_printf(pnp_info_buffer_t * buffer, char *fmt, ...) in pnp_printf() argument
41 if (buffer->stop || buffer->error) in pnp_printf()
44 res = vsnprintf(buffer->curr, buffer->len - buffer->size, fmt, args); in pnp_printf()
46 if (buffer->size + res >= buffer->len) { in pnp_printf()
47 buffer->stop = 1; in pnp_printf()
50 buffer->curr += res; in pnp_printf()
51 buffer->size += res; in pnp_printf()
55 static void pnp_print_port(pnp_info_buffer_t * buffer, char *space, in pnp_print_port() argument
58 pnp_printf(buffer, "%sport %#llx-%#llx, align %#llx, size %#llx, " in pnp_print_port()
[all …]
/drivers/iio/
Dindustrialio-buffer.c110 struct iio_buffer *rb = indio_dev->buffer; in iio_buffer_read_first_n_outer()
176 struct iio_buffer *rb = indio_dev->buffer; in iio_buffer_poll()
196 if (!indio_dev->buffer) in iio_buffer_wakeup_poll()
199 wake_up(&indio_dev->buffer->pollq); in iio_buffer_wakeup_poll()
202 void iio_buffer_init(struct iio_buffer *buffer) in iio_buffer_init() argument
204 INIT_LIST_HEAD(&buffer->demux_list); in iio_buffer_init()
205 INIT_LIST_HEAD(&buffer->buffer_list); in iio_buffer_init()
206 init_waitqueue_head(&buffer->pollq); in iio_buffer_init()
207 kref_init(&buffer->ref); in iio_buffer_init()
208 if (!buffer->watermark) in iio_buffer_init()
[all …]
/drivers/android/
Dbinder_alloc.c56 static struct binder_buffer *binder_buffer_next(struct binder_buffer *buffer) in binder_buffer_next() argument
58 return list_entry(buffer->entry.next, struct binder_buffer, entry); in binder_buffer_next()
61 static struct binder_buffer *binder_buffer_prev(struct binder_buffer *buffer) in binder_buffer_prev() argument
63 return list_entry(buffer->entry.prev, struct binder_buffer, entry); in binder_buffer_prev()
67 struct binder_buffer *buffer) in binder_alloc_buffer_size() argument
69 if (list_is_last(&buffer->entry, &alloc->buffers)) in binder_alloc_buffer_size()
70 return alloc->buffer + alloc->buffer_size - buffer->user_data; in binder_alloc_buffer_size()
71 return binder_buffer_next(buffer)->user_data - buffer->user_data; in binder_alloc_buffer_size()
79 struct binder_buffer *buffer; in binder_insert_free_buffer() local
93 buffer = rb_entry(parent, struct binder_buffer, rb_node); in binder_insert_free_buffer()
[all …]
/drivers/media/usb/cpia2/
Dcpia2_core.c176 cmd.buffer.block_data[0] = param; in cpia2_do_command()
187 cmd.buffer.block_data[0] = param; in cpia2_do_command()
195 cmd.buffer.block_data[0] = param; in cpia2_do_command()
206 cmd.buffer.block_data[0] = param; in cpia2_do_command()
214 cmd.buffer.block_data[0] = param; in cpia2_do_command()
222 cmd.buffer.block_data[0] = param; in cpia2_do_command()
230 cmd.buffer.block_data[0] = param; in cpia2_do_command()
242 cmd.buffer.block_data[0] = param; in cpia2_do_command()
245 cmd.buffer.block_data[0] = param; in cpia2_do_command()
256 cmd.buffer.registers[0].index = CPIA2_VC_ST_CTRL; in cpia2_do_command()
[all …]
/drivers/usb/class/
Dusbtmc.c179 u8 *buffer; in usbtmc_ioctl_abort_bulk_in() local
188 buffer = kmalloc(USBTMC_SIZE_IOBUFFER, GFP_KERNEL); in usbtmc_ioctl_abort_bulk_in()
189 if (!buffer) in usbtmc_ioctl_abort_bulk_in()
197 buffer, 2, USBTMC_TIMEOUT); in usbtmc_ioctl_abort_bulk_in()
204 dev_dbg(dev, "INITIATE_ABORT_BULK_IN returned %x\n", buffer[0]); in usbtmc_ioctl_abort_bulk_in()
206 if (buffer[0] == USBTMC_STATUS_FAILED) { in usbtmc_ioctl_abort_bulk_in()
211 if (buffer[0] != USBTMC_STATUS_SUCCESS) { in usbtmc_ioctl_abort_bulk_in()
213 buffer[0]); in usbtmc_ioctl_abort_bulk_in()
241 buffer, USBTMC_SIZE_IOBUFFER, in usbtmc_ioctl_abort_bulk_in()
267 0, data->bulk_in, buffer, 0x08, in usbtmc_ioctl_abort_bulk_in()
[all …]
/drivers/scsi/
Dsr_vendor.c112 unsigned char *buffer; /* the buffer for the ioctl */ in sr_set_blocklength() local
122 buffer = kmalloc(512, GFP_KERNEL | GFP_DMA); in sr_set_blocklength()
123 if (!buffer) in sr_set_blocklength()
133 modesel = (struct ccs_modesel_head *) buffer; in sr_set_blocklength()
139 cgc.buffer = buffer; in sr_set_blocklength()
152 kfree(buffer); in sr_set_blocklength()
163 unsigned char *buffer; /* the buffer for the ioctl */ in sr_cd_check() local
170 buffer = kmalloc(512, GFP_KERNEL | GFP_DMA); in sr_cd_check()
171 if (!buffer) in sr_cd_check()
186 cgc.buffer = buffer; in sr_cd_check()
[all …]
/drivers/acpi/acpica/
Dexstorob.c68 u8 *buffer; in acpi_ex_store_buffer_to_buffer() local
80 buffer = ACPI_CAST_PTR(u8, source_desc->buffer.pointer); in acpi_ex_store_buffer_to_buffer()
81 length = source_desc->buffer.length; in acpi_ex_store_buffer_to_buffer()
87 if ((target_desc->buffer.length == 0) || in acpi_ex_store_buffer_to_buffer()
89 target_desc->buffer.pointer = ACPI_ALLOCATE(length); in acpi_ex_store_buffer_to_buffer()
90 if (!target_desc->buffer.pointer) { in acpi_ex_store_buffer_to_buffer()
94 target_desc->buffer.length = length; in acpi_ex_store_buffer_to_buffer()
99 if (length <= target_desc->buffer.length) { in acpi_ex_store_buffer_to_buffer()
103 memset(target_desc->buffer.pointer, 0, in acpi_ex_store_buffer_to_buffer()
104 target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer()
[all …]
/drivers/net/ethernet/sfc/falcon/
Dtx.c29 struct ef4_tx_buffer *buffer) in ef4_tx_get_copy_buffer() argument
41 buffer->dma_addr = page_buf->dma_addr + offset; in ef4_tx_get_copy_buffer()
42 buffer->unmap_len = 0; in ef4_tx_get_copy_buffer()
47 struct ef4_tx_buffer *buffer, size_t len) in ef4_tx_get_copy_buffer_limited() argument
51 return ef4_tx_get_copy_buffer(tx_queue, buffer); in ef4_tx_get_copy_buffer_limited()
55 struct ef4_tx_buffer *buffer, in ef4_dequeue_buffer() argument
59 if (buffer->unmap_len) { in ef4_dequeue_buffer()
61 dma_addr_t unmap_addr = buffer->dma_addr - buffer->dma_offset; in ef4_dequeue_buffer()
62 if (buffer->flags & EF4_TX_BUF_MAP_SINGLE) in ef4_dequeue_buffer()
63 dma_unmap_single(dma_dev, unmap_addr, buffer->unmap_len, in ef4_dequeue_buffer()
[all …]
/drivers/firewire/
Dcore-iso.c42 int fw_iso_buffer_alloc(struct fw_iso_buffer *buffer, int page_count) in fw_iso_buffer_alloc() argument
46 buffer->page_count = 0; in fw_iso_buffer_alloc()
47 buffer->page_count_mapped = 0; in fw_iso_buffer_alloc()
48 buffer->pages = kmalloc(page_count * sizeof(buffer->pages[0]), in fw_iso_buffer_alloc()
50 if (buffer->pages == NULL) in fw_iso_buffer_alloc()
54 buffer->pages[i] = alloc_page(GFP_KERNEL | GFP_DMA32 | __GFP_ZERO); in fw_iso_buffer_alloc()
55 if (buffer->pages[i] == NULL) in fw_iso_buffer_alloc()
58 buffer->page_count = i; in fw_iso_buffer_alloc()
60 fw_iso_buffer_destroy(buffer, NULL); in fw_iso_buffer_alloc()
67 int fw_iso_buffer_map_dma(struct fw_iso_buffer *buffer, struct fw_card *card, in fw_iso_buffer_map_dma() argument
[all …]
Dnosy.c63 } buffer[13]; member
120 struct packet_buffer buffer; member
128 packet_buffer_init(struct packet_buffer *buffer, size_t capacity) in packet_buffer_init() argument
130 buffer->data = kmalloc(capacity, GFP_KERNEL); in packet_buffer_init()
131 if (buffer->data == NULL) in packet_buffer_init()
133 buffer->head = (struct packet *) buffer->data; in packet_buffer_init()
134 buffer->tail = (struct packet *) buffer->data; in packet_buffer_init()
135 buffer->capacity = capacity; in packet_buffer_init()
136 buffer->lost_packet_count = 0; in packet_buffer_init()
137 atomic_set(&buffer->size, 0); in packet_buffer_init()
[all …]
/drivers/usb/misc/
Dcytherm.c99 unsigned char *buffer; in set_brightness() local
102 buffer = kmalloc(8, GFP_KERNEL); in set_brightness()
103 if (!buffer) in set_brightness()
115 cytherm->brightness, buffer, 8); in set_brightness()
120 0x01, buffer, 8); in set_brightness()
124 kfree(buffer); in set_brightness()
143 unsigned char *buffer; in show_temp() local
147 buffer = kmalloc(8, GFP_KERNEL); in show_temp()
148 if (!buffer) in show_temp()
152 retval = vendor_command(cytherm->udev, READ_RAM, TEMP, 0, buffer, 8); in show_temp()
[all …]
/drivers/xen/
Dsys-hypervisor.c41 static ssize_t type_show(struct hyp_sysfs_attr *attr, char *buffer) in type_show() argument
43 return sprintf(buffer, "xen\n"); in type_show()
53 static ssize_t guest_type_show(struct hyp_sysfs_attr *attr, char *buffer) in guest_type_show() argument
72 return sprintf(buffer, "%s\n", type); in guest_type_show()
83 static ssize_t major_show(struct hyp_sysfs_attr *attr, char *buffer) in major_show() argument
87 return sprintf(buffer, "%d\n", version >> 16); in major_show()
93 static ssize_t minor_show(struct hyp_sysfs_attr *attr, char *buffer) in minor_show() argument
97 return sprintf(buffer, "%d\n", version & 0xff); in minor_show()
103 static ssize_t extra_show(struct hyp_sysfs_attr *attr, char *buffer) in extra_show() argument
112 ret = sprintf(buffer, "%s\n", extra); in extra_show()
[all …]
/drivers/usb/storage/
Doption_ms.c50 char *buffer; in option_rezero() local
55 buffer = kzalloc(RESPONSE_LEN, GFP_KERNEL); in option_rezero()
56 if (buffer == NULL) in option_rezero()
59 memcpy(buffer, rezero_msg, sizeof(rezero_msg)); in option_rezero()
62 buffer, sizeof(rezero_msg), NULL); in option_rezero()
74 buffer, RESPONSE_LEN, NULL); in option_rezero()
79 buffer, 13, NULL); in option_rezero()
84 kfree(buffer); in option_rezero()
96 char *buffer; in option_inquiry() local
101 buffer = kzalloc(0x24, GFP_KERNEL); in option_inquiry()
[all …]
/drivers/media/usb/uvc/
Duvc_driver.c388 __u32 **intervals, unsigned char *buffer, int buflen) in uvc_parse_format() argument
394 const unsigned char *start = buffer; in uvc_parse_format()
400 format->type = buffer[2]; in uvc_parse_format()
401 format->index = buffer[3]; in uvc_parse_format()
403 switch (buffer[2]) { in uvc_parse_format()
406 n = buffer[2] == UVC_VS_FORMAT_UNCOMPRESSED ? 27 : 28; in uvc_parse_format()
416 fmtdesc = uvc_format_by_guid(&buffer[5]); in uvc_parse_format()
424 &buffer[5]); in uvc_parse_format()
426 &buffer[5]); in uvc_parse_format()
430 format->bpp = buffer[21]; in uvc_parse_format()
[all …]
/drivers/platform/x86/
Ddell-laptop.c422 struct calling_interface_buffer *buffer; in dell_rfkill_set() local
430 buffer = dell_smbios_get_buffer(); in dell_rfkill_set()
433 ret = buffer->output[0]; in dell_rfkill_set()
434 status = buffer->output[1]; in dell_rfkill_set()
441 buffer->input[0] = 0x2; in dell_rfkill_set()
443 ret = buffer->output[0]; in dell_rfkill_set()
444 hwswitch = buffer->output[1]; in dell_rfkill_set()
454 buffer->input[0] = (1 | (radio<<8) | (disable << 16)); in dell_rfkill_set()
456 ret = buffer->output[0]; in dell_rfkill_set()
466 struct calling_interface_buffer *buffer) in dell_rfkill_update_sw_state() argument
[all …]
/drivers/misc/ibmasm/
Devent.c59 struct event_buffer *buffer = sp->event_buffer; in ibmasm_receive_event() local
67 event = &buffer->events[buffer->next_index]; in ibmasm_receive_event()
70 event->serial_number = buffer->next_serial_number; in ibmasm_receive_event()
73 buffer->next_index = (buffer->next_index + 1) % IBMASM_NUM_EVENTS; in ibmasm_receive_event()
74 buffer->next_serial_number++; in ibmasm_receive_event()
93 struct event_buffer *buffer = sp->event_buffer; in ibmasm_get_next_event() local
101 event_available(buffer, reader) || reader->cancelled)) in ibmasm_get_next_event()
104 if (!event_available(buffer, reader)) in ibmasm_get_next_event()
109 index = buffer->next_index; in ibmasm_get_next_event()
110 event = &buffer->events[index]; in ibmasm_get_next_event()
[all …]
/drivers/net/ethernet/sfc/
Dtx.c37 struct efx_tx_buffer *buffer) in efx_tx_get_copy_buffer() argument
49 buffer->dma_addr = page_buf->dma_addr + offset; in efx_tx_get_copy_buffer()
50 buffer->unmap_len = 0; in efx_tx_get_copy_buffer()
55 struct efx_tx_buffer *buffer, size_t len) in efx_tx_get_copy_buffer_limited() argument
59 return efx_tx_get_copy_buffer(tx_queue, buffer); in efx_tx_get_copy_buffer_limited()
63 struct efx_tx_buffer *buffer, in efx_dequeue_buffer() argument
67 if (buffer->unmap_len) { in efx_dequeue_buffer()
69 dma_addr_t unmap_addr = buffer->dma_addr - buffer->dma_offset; in efx_dequeue_buffer()
70 if (buffer->flags & EFX_TX_BUF_MAP_SINGLE) in efx_dequeue_buffer()
71 dma_unmap_single(dma_dev, unmap_addr, buffer->unmap_len, in efx_dequeue_buffer()
[all …]
/drivers/net/ethernet/amd/xgbe/
Dxgbe-debugfs.c124 static ssize_t xgbe_common_read(char __user *buffer, size_t count, in xgbe_common_read() argument
142 len = simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf)); in xgbe_common_read()
148 static ssize_t xgbe_common_write(const char __user *buffer, size_t count, in xgbe_common_write() argument
162 buffer, count); in xgbe_common_write()
174 static ssize_t xgmac_reg_addr_read(struct file *filp, char __user *buffer, in xgmac_reg_addr_read() argument
179 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xgmac_reg); in xgmac_reg_addr_read()
183 const char __user *buffer, in xgmac_reg_addr_write() argument
188 return xgbe_common_write(buffer, count, ppos, in xgmac_reg_addr_write()
192 static ssize_t xgmac_reg_value_read(struct file *filp, char __user *buffer, in xgmac_reg_value_read() argument
200 return xgbe_common_read(buffer, count, ppos, value); in xgmac_reg_value_read()
[all …]
/drivers/iio/buffer/
Dindustrialio-buffer-cb.c18 struct iio_buffer buffer; member
25 static struct iio_cb_buffer *buffer_to_cb_buffer(struct iio_buffer *buffer) in buffer_to_cb_buffer() argument
27 return container_of(buffer, struct iio_cb_buffer, buffer); in buffer_to_cb_buffer()
30 static int iio_buffer_cb_store_to(struct iio_buffer *buffer, const void *data) in iio_buffer_cb_store_to() argument
32 struct iio_cb_buffer *cb_buff = buffer_to_cb_buffer(buffer); in iio_buffer_cb_store_to()
36 static void iio_buffer_cb_release(struct iio_buffer *buffer) in iio_buffer_cb_release() argument
38 struct iio_cb_buffer *cb_buff = buffer_to_cb_buffer(buffer); in iio_buffer_cb_release()
39 kfree(cb_buff->buffer.scan_mask); in iio_buffer_cb_release()
63 iio_buffer_init(&cb_buff->buffer); in iio_channel_get_all_cb()
67 cb_buff->buffer.access = &iio_cb_access; in iio_channel_get_all_cb()
[all …]

12345678910>>...55