Home
last modified time | relevance | path

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

12345678910>>...124

/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
Detnaviv_buffer.c25 static inline void OUT(struct etnaviv_cmdbuf *buffer, u32 data) in OUT() argument
27 u32 *vaddr = (u32 *)buffer->vaddr; in OUT()
29 BUG_ON(buffer->user_size >= buffer->size); in OUT()
31 vaddr[buffer->user_size / 4] = data; in OUT()
32 buffer->user_size += 4; in OUT()
35 static inline void CMD_LOAD_STATE(struct etnaviv_cmdbuf *buffer, in CMD_LOAD_STATE() argument
40 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_LOAD_STATE()
43 OUT(buffer, VIV_FE_LOAD_STATE_HEADER_OP_LOAD_STATE | in CMD_LOAD_STATE()
46 OUT(buffer, value); in CMD_LOAD_STATE()
49 static inline void CMD_END(struct etnaviv_cmdbuf *buffer) in CMD_END() argument
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/etnaviv/
Detnaviv_buffer.c22 static inline void OUT(struct etnaviv_cmdbuf *buffer, u32 data) in OUT() argument
24 u32 *vaddr = (u32 *)buffer->vaddr; in OUT()
26 BUG_ON(buffer->user_size >= buffer->size); in OUT()
28 vaddr[buffer->user_size / 4] = data; in OUT()
29 buffer->user_size += 4; in OUT()
32 static inline void CMD_LOAD_STATE(struct etnaviv_cmdbuf *buffer, in CMD_LOAD_STATE() argument
37 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_LOAD_STATE()
40 OUT(buffer, VIV_FE_LOAD_STATE_HEADER_OP_LOAD_STATE | in CMD_LOAD_STATE()
43 OUT(buffer, value); in CMD_LOAD_STATE()
46 static inline void CMD_END(struct etnaviv_cmdbuf *buffer) in CMD_END() argument
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
Dhmm-tests.c122 struct hmm_buffer *buffer, in hmm_dmirror_cmd() argument
129 cmd.addr = (__u64)buffer->ptr; in hmm_dmirror_cmd()
130 cmd.ptr = (__u64)buffer->mirror; in hmm_dmirror_cmd()
141 buffer->cpages = cmd.cpages; in hmm_dmirror_cmd()
142 buffer->faults = cmd.faults; in hmm_dmirror_cmd()
147 static void hmm_buffer_free(struct hmm_buffer *buffer) in hmm_buffer_free() argument
149 if (buffer == NULL) in hmm_buffer_free()
152 if (buffer->ptr) in hmm_buffer_free()
153 munmap(buffer->ptr, buffer->size); in hmm_buffer_free()
154 free(buffer->mirror); in hmm_buffer_free()
[all …]
/kernel/linux/linux-5.10/sound/pci/ca0106/
Dca0106_proc.c84 static void snd_ca0106_proc_dump_iec958( struct snd_info_buffer *buffer, u32 value) in snd_ca0106_proc_dump_iec958() argument
95 snd_iprintf(buffer, "Mode: consumer\n"); in snd_ca0106_proc_dump_iec958()
96 snd_iprintf(buffer, "Data: "); in snd_ca0106_proc_dump_iec958()
98 snd_iprintf(buffer, "audio\n"); in snd_ca0106_proc_dump_iec958()
100 snd_iprintf(buffer, "non-audio\n"); in snd_ca0106_proc_dump_iec958()
102 snd_iprintf(buffer, "Rate: "); in snd_ca0106_proc_dump_iec958()
105 snd_iprintf(buffer, "44100 Hz\n"); in snd_ca0106_proc_dump_iec958()
108 snd_iprintf(buffer, "48000 Hz\n"); in snd_ca0106_proc_dump_iec958()
111 snd_iprintf(buffer, "32000 Hz\n"); in snd_ca0106_proc_dump_iec958()
114 snd_iprintf(buffer, "unknown\n"); in snd_ca0106_proc_dump_iec958()
[all …]
/kernel/linux/linux-4.19/sound/pci/hda/
Dhda_proc.c61 static void print_nid_array(struct snd_info_buffer *buffer, in print_nid_array() argument
72 snd_iprintf(buffer, in print_nid_array()
77 snd_iprintf(buffer, in print_nid_array()
88 static void print_nid_pcms(struct snd_info_buffer *buffer, in print_nid_pcms() argument
98 snd_iprintf(buffer, " Device: name=\"%s\", " in print_nid_pcms()
107 static void print_amp_caps(struct snd_info_buffer *buffer, in print_amp_caps() argument
114 snd_iprintf(buffer, "N/A\n"); in print_amp_caps()
117 snd_iprintf(buffer, "ofs=0x%02x, nsteps=0x%02x, stepsize=0x%02x, " in print_amp_caps()
147 static void print_amp_vals(struct snd_info_buffer *buffer, in print_amp_vals() argument
159 snd_iprintf(buffer, " ["); in print_amp_vals()
[all …]
/kernel/linux/linux-5.10/sound/pci/hda/
Dhda_proc.c47 static void print_nid_array(struct snd_info_buffer *buffer, in print_nid_array() argument
58 snd_iprintf(buffer, in print_nid_array()
63 snd_iprintf(buffer, in print_nid_array()
74 static void print_nid_pcms(struct snd_info_buffer *buffer, in print_nid_pcms() argument
84 snd_iprintf(buffer, " Device: name=\"%s\", " in print_nid_pcms()
93 static void print_amp_caps(struct snd_info_buffer *buffer, in print_amp_caps() argument
100 snd_iprintf(buffer, "N/A\n"); in print_amp_caps()
103 snd_iprintf(buffer, "ofs=0x%02x, nsteps=0x%02x, stepsize=0x%02x, " in print_amp_caps()
133 static void print_amp_vals(struct snd_info_buffer *buffer, in print_amp_vals() argument
145 snd_iprintf(buffer, " ["); in print_amp_vals()
[all …]
/kernel/linux/linux-4.19/sound/pci/ca0106/
Dca0106_proc.c98 static void snd_ca0106_proc_dump_iec958( struct snd_info_buffer *buffer, u32 value) in snd_ca0106_proc_dump_iec958() argument
109 snd_iprintf(buffer, "Mode: consumer\n"); in snd_ca0106_proc_dump_iec958()
110 snd_iprintf(buffer, "Data: "); in snd_ca0106_proc_dump_iec958()
112 snd_iprintf(buffer, "audio\n"); in snd_ca0106_proc_dump_iec958()
114 snd_iprintf(buffer, "non-audio\n"); in snd_ca0106_proc_dump_iec958()
116 snd_iprintf(buffer, "Rate: "); in snd_ca0106_proc_dump_iec958()
119 snd_iprintf(buffer, "44100 Hz\n"); in snd_ca0106_proc_dump_iec958()
122 snd_iprintf(buffer, "48000 Hz\n"); in snd_ca0106_proc_dump_iec958()
125 snd_iprintf(buffer, "32000 Hz\n"); in snd_ca0106_proc_dump_iec958()
128 snd_iprintf(buffer, "unknown\n"); in snd_ca0106_proc_dump_iec958()
[all …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-5.10/fs/configfs/
Dfile.c58 static int fill_read_buffer(struct file *file, struct configfs_buffer *buffer) in fill_read_buffer() argument
63 if (!buffer->page) in fill_read_buffer()
64 buffer->page = (char *) get_zeroed_page(GFP_KERNEL); in fill_read_buffer()
65 if (!buffer->page) in fill_read_buffer()
70 count = buffer->attr->show(buffer->item, buffer->page); in fill_read_buffer()
77 buffer->needs_read_fill = 0; in fill_read_buffer()
78 buffer->count = count; in fill_read_buffer()
104 struct configfs_buffer *buffer = file->private_data; in configfs_read_file() local
107 mutex_lock(&buffer->mutex); in configfs_read_file()
108 if (buffer->needs_read_fill) { in configfs_read_file()
[all …]
/kernel/linux/linux-5.10/drivers/dma-buf/heaps/
Dheap-helpers.c15 void init_heap_helper_buffer(struct heap_helper_buffer *buffer, in init_heap_helper_buffer() argument
18 buffer->priv_virt = NULL; in init_heap_helper_buffer()
19 mutex_init(&buffer->lock); in init_heap_helper_buffer()
20 buffer->vmap_cnt = 0; in init_heap_helper_buffer()
21 buffer->vaddr = NULL; in init_heap_helper_buffer()
22 buffer->pagecount = 0; in init_heap_helper_buffer()
23 buffer->pages = NULL; in init_heap_helper_buffer()
24 INIT_LIST_HEAD(&buffer->attachments); in init_heap_helper_buffer()
25 buffer->free = free; in init_heap_helper_buffer()
28 struct dma_buf *heap_helper_export_dmabuf(struct heap_helper_buffer *buffer, in heap_helper_export_dmabuf() argument
[all …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/include/linux/
Dring_buffer.h80 void ring_buffer_discard_commit(struct trace_buffer *buffer,
100 int ring_buffer_wait(struct trace_buffer *buffer, int cpu, int full);
101 __poll_t ring_buffer_poll_wait(struct trace_buffer *buffer, int cpu,
107 void ring_buffer_free(struct trace_buffer *buffer);
109 int ring_buffer_resize(struct trace_buffer *buffer, unsigned long size, int cpu);
111 void ring_buffer_change_overwrite(struct trace_buffer *buffer, int val);
113 struct ring_buffer_event *ring_buffer_lock_reserve(struct trace_buffer *buffer,
115 int ring_buffer_unlock_commit(struct trace_buffer *buffer,
117 int ring_buffer_write(struct trace_buffer *buffer,
120 void ring_buffer_nest_start(struct trace_buffer *buffer);
[all …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-5.10/drivers/iio/
Dindustrialio-buffer.c108 struct iio_buffer *rb = indio_dev->buffer; in iio_buffer_read_outer()
174 struct iio_buffer *rb = indio_dev->buffer; in iio_buffer_poll()
194 struct iio_buffer *buffer = indio_dev->buffer; in iio_buffer_wakeup_poll() local
196 if (!buffer) in iio_buffer_wakeup_poll()
199 wake_up(&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()
[all …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-4.19/drivers/staging/android/ion/
Dion.c38 struct ion_buffer *buffer) in ion_buffer_add() argument
48 if (buffer < entry) { in ion_buffer_add()
50 } else if (buffer > entry) { in ion_buffer_add()
58 rb_link_node(&buffer->node, parent, p); in ion_buffer_add()
59 rb_insert_color(&buffer->node, &dev->buffers); in ion_buffer_add()
68 struct ion_buffer *buffer; in ion_buffer_create() local
71 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); in ion_buffer_create()
72 if (!buffer) in ion_buffer_create()
75 buffer->heap = heap; in ion_buffer_create()
76 buffer->flags = flags; in ion_buffer_create()
[all …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-4.19/tools/wmi/
Ddell-smbios-example.c35 static void show_buffer(struct dell_wmi_smbios_buffer *buffer) in show_buffer() argument
38 buffer->std.cmd_class, buffer->std.cmd_select, in show_buffer()
39 buffer->std.input[0], buffer->std.input[1], in show_buffer()
40 buffer->std.input[2], buffer->std.input[3], in show_buffer()
41 buffer->std.output[0], buffer->std.output[1], in show_buffer()
42 buffer->std.output[2], buffer->std.output[3]); in show_buffer()
45 static int run_wmi_smbios_cmd(struct dell_wmi_smbios_buffer *buffer) in run_wmi_smbios_cmd() argument
51 ret = ioctl(fd, DELL_WMI_SMBIOS_CMD, buffer); in run_wmi_smbios_cmd()
98 struct dell_wmi_smbios_buffer *buffer) in token_is_active() argument
102 buffer->std.cmd_class = CLASS_TOKEN_READ; in token_is_active()
[all …]
/kernel/linux/linux-5.10/tools/wmi/
Ddell-smbios-example.c32 static void show_buffer(struct dell_wmi_smbios_buffer *buffer) in show_buffer() argument
35 buffer->std.cmd_class, buffer->std.cmd_select, in show_buffer()
36 buffer->std.input[0], buffer->std.input[1], in show_buffer()
37 buffer->std.input[2], buffer->std.input[3], in show_buffer()
38 buffer->std.output[0], buffer->std.output[1], in show_buffer()
39 buffer->std.output[2], buffer->std.output[3]); in show_buffer()
42 static int run_wmi_smbios_cmd(struct dell_wmi_smbios_buffer *buffer) in run_wmi_smbios_cmd() argument
48 ret = ioctl(fd, DELL_WMI_SMBIOS_CMD, buffer); in run_wmi_smbios_cmd()
95 struct dell_wmi_smbios_buffer *buffer) in token_is_active() argument
99 buffer->std.cmd_class = CLASS_TOKEN_READ; in token_is_active()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_client.c233 static void drm_client_buffer_delete(struct drm_client_buffer *buffer) in drm_client_buffer_delete() argument
235 struct drm_device *dev = buffer->client->dev; in drm_client_buffer_delete()
237 drm_gem_vunmap(buffer->gem, buffer->vaddr); in drm_client_buffer_delete()
239 if (buffer->gem) in drm_client_buffer_delete()
240 drm_gem_object_put(buffer->gem); in drm_client_buffer_delete()
242 if (buffer->handle) in drm_client_buffer_delete()
243 drm_mode_destroy_dumb(dev, buffer->handle, buffer->client->file); in drm_client_buffer_delete()
245 kfree(buffer); in drm_client_buffer_delete()
254 struct drm_client_buffer *buffer; in drm_client_buffer_create() local
258 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); in drm_client_buffer_create()
[all …]

12345678910>>...124