Home
last modified time | relevance | path

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

12345678910>>...25

/linux-4.19.296/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 …]
Dsclp_con.c48 sclp_conbuf_callback(struct sclp_buffer *buffer, int rc) in sclp_conbuf_callback() argument
54 page = sclp_unmake_buffer(buffer); in sclp_conbuf_callback()
58 list_del(&buffer->list); in sclp_conbuf_callback()
62 buffer = NULL; in sclp_conbuf_callback()
64 buffer = list_first_entry(&sclp_con_outqueue, in sclp_conbuf_callback()
66 if (!buffer || sclp_con_suspended) { in sclp_conbuf_callback()
72 } while (sclp_emit_buffer(buffer, sclp_conbuf_callback)); in sclp_conbuf_callback()
80 struct sclp_buffer* buffer; in sclp_conbuf_emit() local
92 buffer = list_first_entry(&sclp_con_outqueue, struct sclp_buffer, in sclp_conbuf_emit()
97 rc = sclp_emit_buffer(buffer, sclp_conbuf_callback); in sclp_conbuf_emit()
[all …]
/linux-4.19.296/fs/configfs/
Dfile.c72 static int fill_read_buffer(struct file *file, struct configfs_buffer *buffer) in fill_read_buffer() argument
77 if (!buffer->page) in fill_read_buffer()
78 buffer->page = (char *) get_zeroed_page(GFP_KERNEL); in fill_read_buffer()
79 if (!buffer->page) in fill_read_buffer()
84 count = buffer->attr->show(buffer->item, buffer->page); in fill_read_buffer()
91 buffer->needs_read_fill = 0; in fill_read_buffer()
92 buffer->count = count; in fill_read_buffer()
118 struct configfs_buffer *buffer = file->private_data; in configfs_read_file() local
121 mutex_lock(&buffer->mutex); in configfs_read_file()
122 if (buffer->needs_read_fill) { in configfs_read_file()
[all …]
/linux-4.19.296/drivers/media/tuners/
Dtea5767.c133 unsigned char *buffer) in tea5767_status_dump() argument
137 if (TEA5767_READY_FLAG_MASK & buffer[0]) in tea5767_status_dump()
142 if (TEA5767_BAND_LIMIT_MASK & buffer[0]) in tea5767_status_dump()
147 div = ((buffer[0] & 0x3f) << 8) | buffer[1]; in tea5767_status_dump()
164 buffer[0] = (div >> 8) & 0x3f; in tea5767_status_dump()
165 buffer[1] = div & 0xff; in tea5767_status_dump()
170 if (TEA5767_STEREO_MASK & buffer[2]) in tea5767_status_dump()
175 tuner_info("IF Counter = %d\n", buffer[2] & TEA5767_IF_CNTR_MASK); in tea5767_status_dump()
178 (buffer[3] & TEA5767_ADC_LEVEL_MASK) >> 4); in tea5767_status_dump()
180 tuner_info("Chip ID = %d\n", (buffer[3] & TEA5767_CHIP_ID_MASK)); in tea5767_status_dump()
[all …]
Dtea5761.c123 static void tea5761_status_dump(unsigned char *buffer) in tea5761_status_dump() argument
127 div = ((buffer[2] & 0x3f) << 8) | buffer[3]; in tea5761_status_dump()
142 unsigned char buffer[7] = {0, 0, 0, 0, 0, 0, 0 }; in __set_radio_freq() local
150 buffer[5] |= TEA5761_TNCTRL_MU; in __set_radio_freq()
152 buffer[4] |= TEA5761_TNCTRL_PUPD_0; in __set_radio_freq()
158 buffer[5] |= TEA5761_TNCTRL_MST; in __set_radio_freq()
164 buffer[1] = (div >> 8) & 0x3f; in __set_radio_freq()
165 buffer[2] = div & 0xff; in __set_radio_freq()
168 tea5761_status_dump(buffer); in __set_radio_freq()
170 if (7 != (rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, 7))) in __set_radio_freq()
[all …]
Dtuner-simple.c396 u8 buffer[4] = { 0x14, 0x00, 0x17, 0x00}; in simple_std_setup() local
400 buffer[1] = 0x04; in simple_std_setup()
404 rc = tuner_i2c_xfer_send(&i2c, &buffer[0], 2); in simple_std_setup()
408 rc = tuner_i2c_xfer_send(&i2c, &buffer[2], 2); in simple_std_setup()
425 u8 buffer[2]; in simple_set_aux_byte() local
427 buffer[0] = (config & ~0x38) | 0x18; in simple_set_aux_byte()
428 buffer[1] = aux; in simple_set_aux_byte()
430 tuner_dbg("setting aux byte: 0x%02x 0x%02x\n", buffer[0], buffer[1]); in simple_set_aux_byte()
432 rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, 2); in simple_set_aux_byte()
439 static int simple_post_tune(struct dvb_frontend *fe, u8 *buffer, in simple_post_tune() argument
[all …]
/linux-4.19.296/include/linux/
Dring_buffer.h80 void ring_buffer_discard_commit(struct ring_buffer *buffer,
100 int ring_buffer_wait(struct ring_buffer *buffer, int cpu, bool full);
101 __poll_t ring_buffer_poll_wait(struct ring_buffer *buffer, int cpu,
107 void ring_buffer_free(struct ring_buffer *buffer);
109 int ring_buffer_resize(struct ring_buffer *buffer, unsigned long size, int cpu);
111 void ring_buffer_change_overwrite(struct ring_buffer *buffer, int val);
113 struct ring_buffer_event *ring_buffer_lock_reserve(struct ring_buffer *buffer,
115 int ring_buffer_unlock_commit(struct ring_buffer *buffer,
117 int ring_buffer_write(struct ring_buffer *buffer,
120 void ring_buffer_nest_start(struct ring_buffer *buffer);
[all …]
/linux-4.19.296/drivers/s390/net/
Dqeth_core_mpc.h16 #define QETH_IPA_PDU_LEN_TOTAL(buffer) (buffer + 0x0e) argument
17 #define QETH_IPA_PDU_LEN_PDU1(buffer) (buffer + 0x26) argument
18 #define QETH_IPA_PDU_LEN_PDU2(buffer) (buffer + 0x29) argument
19 #define QETH_IPA_PDU_LEN_PDU3(buffer) (buffer + 0x3a) argument
22 #define QETH_IPA_CMD_DEST_ADDR(buffer) (buffer + 0x2c) argument
478 char *buffer; member
805 #define QETH_IPA_ARP_DATA_POS(buffer) (buffer + IPA_PDU_HEADER_SIZE + \ argument
823 #define QETH_CM_ENABLE_ISSUER_RM_TOKEN(buffer) (buffer + 0x2c) argument
824 #define QETH_CM_ENABLE_FILTER_TOKEN(buffer) (buffer + 0x53) argument
825 #define QETH_CM_ENABLE_USER_DATA(buffer) (buffer + 0x5b) argument
[all …]
/linux-4.19.296/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 …]
/linux-4.19.296/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 …]
/linux-4.19.296/include/linux/iio/
Dbuffer_impl.h47 int (*store_to)(struct iio_buffer *buffer, const void *data);
48 int (*read_first_n)(struct iio_buffer *buffer,
51 size_t (*data_available)(struct iio_buffer *buffer);
53 int (*request_update)(struct iio_buffer *buffer);
55 int (*set_bytes_per_datum)(struct iio_buffer *buffer, size_t bpd);
56 int (*set_length)(struct iio_buffer *buffer, unsigned int length);
58 int (*enable)(struct iio_buffer *buffer, struct iio_dev *indio_dev);
59 int (*disable)(struct iio_buffer *buffer, struct iio_dev *indio_dev);
61 void (*release)(struct iio_buffer *buffer);
152 void iio_buffer_init(struct iio_buffer *buffer);
[all …]
/linux-4.19.296/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 …]
Dindustrialio-hw-consumer.c30 struct iio_buffer buffer; member
35 struct iio_buffer *buffer) in iio_buffer_to_hw_consumer_buffer() argument
37 return container_of(buffer, struct hw_consumer_buffer, buffer); in iio_buffer_to_hw_consumer_buffer()
40 static void iio_hw_buf_release(struct iio_buffer *buffer) in iio_hw_buf_release() argument
43 iio_buffer_to_hw_consumer_buffer(buffer); in iio_hw_buf_release()
67 buf->buffer.access = &iio_hw_buf_access; in iio_hw_consumer_get_buffer()
69 buf->buffer.scan_mask = buf->scan_mask; in iio_hw_consumer_get_buffer()
71 iio_buffer_init(&buf->buffer); in iio_hw_consumer_get_buffer()
109 set_bit(chan->channel->scan_index, buf->buffer.scan_mask); in iio_hw_consumer_alloc()
117 iio_buffer_put(&buf->buffer); in iio_hw_consumer_alloc()
[all …]
/linux-4.19.296/block/partitions/
Dldm.c635 static int ldm_relative(const u8 *buffer, int buflen, int base, int offset) in ldm_relative() argument
639 if (!buffer || offset < 0 || base > buflen) { in ldm_relative()
640 if (!buffer) in ldm_relative()
648 if (base + buffer[base] >= buflen) { in ldm_relative()
650 buffer[base], buflen); in ldm_relative()
653 return buffer[base] + offset + 1; in ldm_relative()
706 static int ldm_get_vstr (const u8 *block, u8 *buffer, int buflen) in ldm_get_vstr() argument
710 BUG_ON (!block || !buffer); in ldm_get_vstr()
717 memcpy (buffer, block + 1, length); in ldm_get_vstr()
718 buffer[length] = 0; in ldm_get_vstr()
[all …]
/linux-4.19.296/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 …]
/linux-4.19.296/fs/xfs/libxfs/
Dxfs_cksum.h14 xfs_start_cksum_safe(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_safe() argument
20 crc = crc32c(XFS_CRC_SEED, buffer, cksum_offset); in xfs_start_cksum_safe()
26 return crc32c(crc, &buffer[cksum_offset + sizeof(__be32)], in xfs_start_cksum_safe()
35 xfs_start_cksum_update(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_update() argument
38 *(__le32 *)(buffer + cksum_offset) = 0; in xfs_start_cksum_update()
41 return crc32c(XFS_CRC_SEED, buffer, length); in xfs_start_cksum_update()
64 xfs_update_cksum(char *buffer, size_t length, unsigned long cksum_offset) in xfs_update_cksum() argument
66 uint32_t crc = xfs_start_cksum_update(buffer, length, cksum_offset); in xfs_update_cksum()
68 *(__le32 *)(buffer + cksum_offset) = xfs_end_cksum(crc); in xfs_update_cksum()
75 xfs_verify_cksum(char *buffer, size_t length, unsigned long cksum_offset) in xfs_verify_cksum() argument
[all …]
/linux-4.19.296/drivers/iio/accel/
Ddmard10.c79 unsigned char buffer[7]; in dmard10_reset() local
92 buffer[0] = DMARD10_REG_ACTR; in dmard10_reset()
93 buffer[1] = DMARD10_MODE_STANDBY; in dmard10_reset()
94 buffer[2] = DMARD10_MODE_READ_OTP; in dmard10_reset()
95 buffer[3] = DMARD10_MODE_STANDBY; in dmard10_reset()
96 buffer[4] = DMARD10_MODE_RESET_DATA_PATH; in dmard10_reset()
97 buffer[5] = DMARD10_MODE_STANDBY; in dmard10_reset()
98 ret = i2c_master_send(client, buffer, 6); in dmard10_reset()
109 buffer[0] = DMARD10_REG_AFEM; in dmard10_reset()
110 buffer[1] = DMARD10_VALUE_AFEM_AFEN_NORMAL; in dmard10_reset()
[all …]
/linux-4.19.296/include/asm-generic/
Dio.h324 static inline void readsb(const volatile void __iomem *addr, void *buffer, in readsb() argument
328 u8 *buf = buffer; in readsb()
340 static inline void readsw(const volatile void __iomem *addr, void *buffer, in readsw() argument
344 u16 *buf = buffer; in readsw()
356 static inline void readsl(const volatile void __iomem *addr, void *buffer, in readsl() argument
360 u32 *buf = buffer; in readsl()
373 static inline void readsq(const volatile void __iomem *addr, void *buffer, in readsq() argument
377 u64 *buf = buffer; in readsq()
390 static inline void writesb(volatile void __iomem *addr, const void *buffer, in writesb() argument
394 const u8 *buf = buffer; in writesb()
[all …]
/linux-4.19.296/drivers/media/radio/
Dradio-ma901.c88 u8 *buffer; member
107 radio->buffer[0] = 0x0a; in ma901radio_set_freq()
108 radio->buffer[1] = MA901_RADIO_SET_FREQ; in ma901radio_set_freq()
109 radio->buffer[2] = ((freq_send >> 8) & 0xff) + 0x80; in ma901radio_set_freq()
110 radio->buffer[3] = freq_send & 0xff; in ma901radio_set_freq()
111 radio->buffer[4] = 0x00; in ma901radio_set_freq()
112 radio->buffer[5] = 0x00; in ma901radio_set_freq()
113 radio->buffer[6] = 0x00; in ma901radio_set_freq()
114 radio->buffer[7] = 0x00; in ma901radio_set_freq()
118 radio->buffer, BUFFER_LENGTH, USB_TIMEOUT); in ma901radio_set_freq()
[all …]
Dradio-keene.c64 u8 *buffer; member
84 radio->buffer[0] = 0x00; in keene_cmd_main()
85 radio->buffer[1] = 0x50; in keene_cmd_main()
86 radio->buffer[2] = (freq_send >> 8) & 0xff; in keene_cmd_main()
87 radio->buffer[3] = freq_send & 0xff; in keene_cmd_main()
88 radio->buffer[4] = radio->pa; in keene_cmd_main()
94 radio->buffer[5] = (radio->muted ? 4 : 8) | (play ? 1 : 2) | in keene_cmd_main()
96 radio->buffer[6] = 0x00; in keene_cmd_main()
97 radio->buffer[7] = 0x00; in keene_cmd_main()
100 9, 0x21, 0x200, 2, radio->buffer, BUFFER_LENGTH, USB_TIMEOUT); in keene_cmd_main()
[all …]
/linux-4.19.296/fs/pstore/
Dram_core.c43 return atomic_read(&prz->buffer->size); in buffer_size()
48 return atomic_read(&prz->buffer->start); in buffer_start()
61 old = atomic_read(&prz->buffer->start); in buffer_start_add()
65 atomic_set(&prz->buffer->start, new); in buffer_start_add()
83 old = atomic_read(&prz->buffer->size); in buffer_size_add()
90 atomic_set(&prz->buffer->size, new); in buffer_size_add()
124 struct persistent_ram_buffer *buffer = prz->buffer; in persistent_ram_update_ecc() local
125 uint8_t *buffer_end = buffer->data + prz->buffer_size; in persistent_ram_update_ecc()
135 block = buffer->data + (start & ~(ecc_block_size - 1)); in persistent_ram_update_ecc()
144 } while (block < buffer->data + start + count); in persistent_ram_update_ecc()
[all …]
/linux-4.19.296/drivers/misc/
Dibmvmc.c276 void *buffer = kzalloc(size, GFP_ATOMIC); in alloc_dma_buffer() local
278 if (!buffer) { in alloc_dma_buffer()
284 *dma_handle = dma_map_single(&vdev->dev, buffer, size, in alloc_dma_buffer()
289 kzfree(buffer); in alloc_dma_buffer()
293 return buffer; in alloc_dma_buffer()
326 struct ibmvmc_buffer *buffer; in ibmvmc_get_valid_hmc_buffer() local
333 buffer = hmcs[hmc_index].buffer; in ibmvmc_get_valid_hmc_buffer()
336 if (buffer[i].valid && buffer[i].free && in ibmvmc_get_valid_hmc_buffer()
337 buffer[i].owner == VMC_BUF_OWNER_ALPHA) { in ibmvmc_get_valid_hmc_buffer()
338 buffer[i].free = 0; in ibmvmc_get_valid_hmc_buffer()
[all …]
/linux-4.19.296/drivers/iio/imu/
Dadis16400_buffer.c29 kfree(adis->buffer); in adis16400_update_scan_mode()
40 adis->buffer = kzalloc(burst_length + sizeof(u16), GFP_KERNEL); in adis16400_update_scan_mode()
41 if (!adis->buffer) { in adis16400_update_scan_mode()
47 tx = adis->buffer + burst_length; in adis16400_update_scan_mode()
54 adis->xfer[1].rx_buf = adis->buffer; in adis16400_update_scan_mode()
72 void *buffer; in adis16400_trigger_handler() local
75 if (!adis->buffer) in adis16400_trigger_handler()
94 buffer = adis->buffer + sizeof(u16); in adis16400_trigger_handler()
96 buffer = adis->buffer; in adis16400_trigger_handler()
98 iio_push_to_buffers_with_timestamp(indio_dev, buffer, in adis16400_trigger_handler()
/linux-4.19.296/drivers/media/radio/si4713/
Dradio-usb-si4713.c57 u8 *buffer; member
138 kfree(radio->buffer); in usb_si4713_video_device_release()
158 u8 *buffer = radio->buffer; in si4713_send_startup_command() local
163 0x09, 0x21, 0x033f, 0, radio->buffer, in si4713_send_startup_command()
171 0x01, 0xa1, 0x033f, 0, radio->buffer, in si4713_send_startup_command()
175 if (!radio->buffer[1]) { in si4713_send_startup_command()
178 switch (buffer[1]) { in si4713_send_startup_command()
180 if (radio->buffer[2] == 0) in si4713_send_startup_command()
185 if (radio->buffer[2] & SI4713_CTS) in si4713_send_startup_command()
189 if ((radio->buffer[2] & SI4713_CTS) && radio->buffer[9] == 0x08) in si4713_send_startup_command()
[all …]
/linux-4.19.296/drivers/hid/
Dhid-gt683r.c153 u8 *buffer; in gt683r_leds_set() local
155 buffer = kzalloc(GT683R_BUFFER_SIZE, GFP_KERNEL); in gt683r_leds_set()
156 if (!buffer) in gt683r_leds_set()
159 buffer[0] = 0x01; in gt683r_leds_set()
160 buffer[1] = 0x02; in gt683r_leds_set()
161 buffer[2] = 0x30; in gt683r_leds_set()
162 buffer[3] = leds; in gt683r_leds_set()
163 ret = gt683r_led_snd_msg(led, buffer); in gt683r_leds_set()
165 kfree(buffer); in gt683r_leds_set()
172 u8 *buffer; in gt683r_mode_set() local
[all …]

12345678910>>...25