/linux/drivers/s390/char/ |
A D | sclp_rw.c | 52 buffer->sccb = sccb; in sclp_make_buffer() 59 buffer->htab = htab; in sclp_make_buffer() 65 return buffer; in sclp_make_buffer() 155 buffer->char_sum += buffer->current_length; in sclp_finalize_mto() 230 if (buffer->current_length >= buffer->columns) in sclp_write() 235 } while (buffer->current_length % buffer->htab); in sclp_write() 294 buffer->current_length >= buffer->columns) in sclp_write() 368 buffer->callback(buffer, -EIO); in sclp_writedata_callback() 416 buffer->callback(buffer, rc); in sclp_writedata_callback() 439 buffer->request.callback_data = buffer; in sclp_emit_buffer() [all …]
|
/linux/tools/testing/selftests/vm/ |
A D | hmm-tests.c | 157 munmap(buffer->ptr, buffer->size); in hmm_buffer_free() 238 buffer = malloc(sizeof(*buffer)); in TEST_F() 301 buffer = malloc(sizeof(*buffer)); in TEST_F() 360 buffer = malloc(sizeof(*buffer)); in TEST_F() 408 buffer = malloc(sizeof(*buffer)); in TEST_F() 476 buffer = malloc(sizeof(*buffer)); in TEST_F() 554 buffer = malloc(sizeof(*buffer)); in TEST_F() 629 buffer = malloc(sizeof(*buffer)); in TEST_F() 696 buffer = malloc(sizeof(*buffer)); in TEST_F() 751 buffer = malloc(sizeof(*buffer)); in TEST_F() [all …]
|
/linux/drivers/gpu/drm/etnaviv/ |
A D | etnaviv_buffer.c | 29 BUG_ON(buffer->user_size >= buffer->size); in OUT() 40 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_LOAD_STATE() 51 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_END() 58 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_WAIT() 66 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_LINK() 76 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_STALL() 164 struct etnaviv_cmdbuf *buffer = &gpu->buffer; in etnaviv_buffer_init() local 181 struct etnaviv_cmdbuf *buffer = &gpu->buffer; in etnaviv_buffer_config_mmuv2() local 216 struct etnaviv_cmdbuf *buffer = &gpu->buffer; in etnaviv_buffer_config_pta() local 234 struct etnaviv_cmdbuf *buffer = &gpu->buffer; in etnaviv_buffer_end() local [all …]
|
/linux/sound/pci/ca0106/ |
A D | ca0106_proc.c | 96 snd_iprintf(buffer, "Data: "); in snd_ca0106_proc_dump_iec958() 98 snd_iprintf(buffer, "audio\n"); in snd_ca0106_proc_dump_iec958() 102 snd_iprintf(buffer, "Rate: "); in snd_ca0106_proc_dump_iec958() 125 snd_iprintf(buffer, "none\n"); in snd_ca0106_proc_dump_iec958() 145 snd_iprintf(buffer, "Clock: "); in snd_ca0106_proc_dump_iec958() 162 snd_iprintf(buffer, "Data: "); in snd_ca0106_proc_dump_iec958() 168 snd_iprintf(buffer, "Rate: "); in snd_ca0106_proc_dump_iec958() 185 snd_iprintf(buffer, "no\n"); in snd_ca0106_proc_dump_iec958() 187 snd_iprintf(buffer, "yes\n"); in snd_ca0106_proc_dump_iec958() 194 snd_iprintf(buffer, "none\n"); in snd_ca0106_proc_dump_iec958() [all …]
|
/linux/sound/pci/hda/ |
A D | hda_proc.c | 58 snd_iprintf(buffer, in print_nid_array() 63 snd_iprintf(buffer, in print_nid_array() 145 snd_iprintf(buffer, " ["); in print_amp_vals() 156 snd_iprintf(buffer, "]"); in print_amp_vals() 158 snd_iprintf(buffer, "\n"); in print_amp_vals() 174 snd_iprintf(buffer, "\n"); in print_pcm_rates() 196 snd_iprintf(buffer, "\n"); in print_pcm_formats() 455 snd_iprintf(buffer, in print_audio_io() 558 snd_iprintf(buffer, in print_unsol_cap() 668 snd_iprintf(buffer, in print_gpio() [all …]
|
/linux/fs/configfs/ |
A D | file.c | 68 count = buffer->attr->show(buffer->item, buffer->page); in fill_read_buffer() 127 len = buffer->bin_attr->read(buffer->item, NULL, 0); in configfs_bin_read_iter() 137 if (buffer->cb_max_size && len > buffer->cb_max_size) { in configfs_bin_read_iter() 152 len = buffer->bin_attr->read(buffer->item, in configfs_bin_read_iter() 207 res = buffer->attr->store(buffer->item, buffer->page, count); in flush_write_buffer() 300 if (!buffer) in __configfs_open_file() 319 buffer->cb_max_size = buffer->bin_attr->cb_max_size; in __configfs_open_file() 334 buffer->ops = buffer->item->ci_type->ct_item_ops; in __configfs_open_file() 374 kfree(buffer); in __configfs_open_file() 387 kfree(buffer); in configfs_release() [all …]
|
/linux/drivers/media/tuners/ |
A D | tea5767.c | 147 div = ((buffer[0] & 0x3f) << 8) | buffer[1]; in tea5767_status_dump() 165 buffer[1] = div & 0xff; in tea5767_status_dump() 198 buffer[2] = 0; in set_radio_freq() 211 buffer[3] = 0; in set_radio_freq() 228 buffer[4] = 0; in set_radio_freq() 267 buffer[1] = div & 0xff; in set_radio_freq() 289 memset(buffer, 0, 5); in tea5767_read_status() 360 buffer[4] = 0; in tea5767_standby() 381 if (buffer[0] == buffer[1] && buffer[0] == buffer[2] && in tea5767_autodetection() 382 buffer[0] == buffer[3] && buffer[0] == buffer[4]) { in tea5767_autodetection() [all …]
|
/linux/drivers/dma-buf/heaps/ |
A D | cma_heap.c | 128 invalidate_kernel_vmap_range(buffer->vaddr, buffer->len); in cma_heap_dma_buf_begin_cpu_access() 148 flush_kernel_vmap_range(buffer->vaddr, buffer->len); in cma_heap_dma_buf_end_cpu_access() 196 vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL); in cma_heap_do_vmap() 211 buffer->vmap_cnt++; in cma_heap_vmap() 222 buffer->vmap_cnt++; in cma_heap_vmap() 257 cma_release(cma_heap->cma, buffer->cma_pages, buffer->pagecount); in cma_heap_dma_buf_release() 258 kfree(buffer); in cma_heap_dma_buf_release() 290 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); in cma_heap_allocate() 291 if (!buffer) in cma_heap_allocate() 296 buffer->len = size; in cma_heap_allocate() [all …]
|
A D | system_heap.c | 162 if (buffer->vmap_cnt) in system_heap_dma_buf_begin_cpu_access() 163 invalidate_kernel_vmap_range(buffer->vaddr, buffer->len); in system_heap_dma_buf_begin_cpu_access() 183 if (buffer->vmap_cnt) in system_heap_dma_buf_end_cpu_access() 184 flush_kernel_vmap_range(buffer->vaddr, buffer->len); in system_heap_dma_buf_end_cpu_access() 252 buffer->vmap_cnt++; in system_heap_vmap() 264 buffer->vmap_cnt++; in system_heap_vmap() 299 kfree(buffer); in system_heap_dma_buf_release() 351 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); in system_heap_allocate() 352 if (!buffer) in system_heap_allocate() 358 buffer->len = len; in system_heap_allocate() [all …]
|
/linux/include/linux/ |
A D | ring_buffer.h | 108 void ring_buffer_free(struct trace_buffer *buffer); 116 int ring_buffer_unlock_commit(struct trace_buffer *buffer, 118 int ring_buffer_write(struct trace_buffer *buffer, 121 void ring_buffer_nest_start(struct trace_buffer *buffer); 122 void ring_buffer_nest_end(struct trace_buffer *buffer); 148 void ring_buffer_reset(struct trace_buffer *buffer); 162 bool ring_buffer_empty(struct trace_buffer *buffer); 167 void ring_buffer_record_off(struct trace_buffer *buffer); 168 void ring_buffer_record_on(struct trace_buffer *buffer); 184 u64 ring_buffer_time_stamp(struct trace_buffer *buffer); [all …]
|
/linux/drivers/pnp/ |
A D | interface.c | 42 if (buffer->stop || buffer->error) in pnp_printf() 45 res = vsnprintf(buffer->curr, buffer->len - buffer->size, fmt, args); in pnp_printf() 47 if (buffer->size + res >= buffer->len) { in pnp_printf() 217 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); in options_show() 218 if (!buffer) in options_show() 222 buffer->buffer = buf; in options_show() 223 buffer->curr = buffer->buffer; in options_show() 260 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); in resources_show() 261 if (!buffer) in resources_show() 265 buffer->buffer = buf; in resources_show() [all …]
|
/linux/drivers/android/ |
A D | binder_alloc.c | 64 return alloc->buffer + alloc->buffer_size - buffer->user_data; in binder_alloc_buffer_size() 65 return binder_buffer_next(buffer)->user_data - buffer->user_data; in binder_alloc_buffer_size() 153 return buffer; in binder_alloc_prepare_to_free_locked() 178 return buffer; in binder_alloc_prepare_to_free() 670 BUG_ON(buffer->user_data < alloc->buffer); in binder_free_buf_locked() 778 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); in binder_alloc_mmap_handler() 785 buffer->user_data = alloc->buffer; in binder_alloc_mmap_handler() 882 prefix, buffer->debug_id, buffer->user_data, in print_binder_buffer() 883 buffer->data_size, buffer->offsets_size, in print_binder_buffer() 1127 (!buffer->allow_user_free || !buffer->transaction); in check_buffer() [all …]
|
/linux/drivers/iio/ |
A D | industrialio-buffer.c | 321 if (!buffer || !buffer->access || !buffer->access->remove_from) in iio_pop_from_buffer() 511 struct iio_buffer *buffer = this_attr->buffer; in iio_scan_el_store() local 662 buffer->access->set_length(buffer, val); in iio_buffer_write_length() 667 if (buffer->length && buffer->length < buffer->watermark) in iio_buffer_write_length() 668 buffer->watermark = buffer->length; in iio_buffer_write_length() 1434 iio_attr->buffer = buffer; in iio_buffer_wrap_attr() 1512 struct iio_buffer *buffer = ib->buffer; in iio_buffer_chrdev_release() local 1562 ib->buffer = buffer; in iio_device_buffer_getfd() 1922 buffer->access->release(buffer); in iio_buffer_release() 1978 buffer = iio_buffer_get(buffer); in iio_device_attach_buffer() [all …]
|
/linux/drivers/s390/net/ |
A D | qeth_core_mpc.h | 18 #define QETH_IPA_PDU_LEN_TOTAL(buffer) (buffer + 0x0e) argument 19 #define QETH_IPA_PDU_LEN_PDU1(buffer) (buffer + 0x26) argument 20 #define QETH_IPA_PDU_LEN_PDU2(buffer) (buffer + 0x29) argument 21 #define QETH_IPA_PDU_LEN_PDU3(buffer) (buffer + 0x3a) argument 23 #define QETH_IPA_CMD_DEST_ADDR(buffer) (buffer + 0x2c) argument 919 #define QETH_ULP_SETUP_CUA(buffer) (buffer + 0x68) argument 940 #define QETH_IDX_ACT_PNO(buffer) (buffer+0x0b) argument 949 #define QETH_IDX_REPLY_LEVEL(buffer) (buffer + 0x12) argument 961 (buffer + *(buffer + (*(buffer + 0x0b)) + \ 962 *(buffer + *(buffer + 0x0b) + 0x11) + 0x07)) [all …]
|
/linux/drivers/gpu/drm/ |
A D | drm_client.c | 238 drm_gem_vunmap(buffer->gem, &buffer->map); in drm_client_buffer_delete() 246 kfree(buffer); in drm_client_buffer_delete() 259 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); in drm_client_buffer_create() 260 if (!buffer) in drm_client_buffer_create() 283 return buffer; in drm_client_buffer_create() 358 ret = drm_mode_rmfb(buffer->client->dev, buffer->fb->base.id, buffer->client->file); in drm_client_buffer_rmfb() 428 return buffer; in drm_client_framebuffer_create() 438 if (!buffer) in drm_client_framebuffer_delete() 459 if (!buffer || !buffer->fb || !buffer->fb->funcs->dirty) in drm_client_framebuffer_flush() 470 return buffer->fb->funcs->dirty(buffer->fb, buffer->client->file, in drm_client_framebuffer_flush() [all …]
|
/linux/tools/wmi/ |
A D | dell-smbios-example.c | 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() 138 buffer->std.input[1] = 1; in activate_token() 168 buffer = malloc(value); in main() 169 if (buffer == NULL) { in main() 174 buffer->length = value; in main() 186 show_buffer(buffer); in main() [all …]
|
/linux/drivers/media/usb/cpia2/ |
A D | cpia2_core.c | 273 cmd.buffer.block_data[0] = 0; in cpia2_do_command() 431 cmd.buffer.block_data[0]; in cpia2_do_command() 433 cmd.buffer.block_data[1]; in cpia2_do_command() 442 cmd.buffer.block_data[5]; in cpia2_do_command() 478 cmd.buffer.block_data[0]; in cpia2_do_command() 529 u8 *buffer; in cpia2_send_command() local 536 buffer = (u8 *) & cmd->buffer; in cpia2_send_command() 544 buffer = cmd->buffer.block_data; in cpia2_send_command() 552 buffer = (u8 *) & cmd->buffer; in cpia2_send_command() 560 buffer = cmd->buffer.block_data; in cpia2_send_command() [all …]
|
/linux/sound/usb/ |
A D | proc.c | 44 snd_iprintf(buffer, "%04x:%04x\n", in proc_audio_usbid_read() 104 snd_iprintf(buffer, " Format:"); in proc_dump_substream_formats() 107 snd_iprintf(buffer, " %s", in proc_dump_substream_formats() 109 snd_iprintf(buffer, "\n"); in proc_dump_substream_formats() 121 snd_iprintf(buffer, " Rates: "); in proc_dump_substream_formats() 124 snd_iprintf(buffer, ", "); in proc_dump_substream_formats() 127 snd_iprintf(buffer, "\n"); in proc_dump_substream_formats() 146 snd_iprintf(buffer, " --"); in proc_dump_substream_formats() 148 snd_iprintf(buffer, " %s", in proc_dump_substream_formats() 151 snd_iprintf(buffer, "\n"); in proc_dump_substream_formats() [all …]
|
/linux/sound/pci/emu10k1/ |
A D | emuproc.c | 24 struct snd_info_buffer *buffer, in snd_emu10k1_proc_spdif_status() argument 37 snd_iprintf(buffer, "\n%s\n", title); in snd_emu10k1_proc_spdif_status() 67 struct snd_info_buffer *buffer) in snd_emu10k1_proc_read() argument 178 snd_iprintf(buffer, "EMU10K1\n\n"); in snd_emu10k1_proc_read() 183 snd_iprintf(buffer, "\n"); in snd_emu10k1_proc_read() 224 struct snd_info_buffer *buffer) in snd_emu10k1_proc_spdif_read() argument 263 struct snd_info_buffer *buffer) in snd_emu10k1_proc_rates_read() argument 363 struct snd_info_buffer *buffer) in snd_emu10k1_proc_voices_read() argument 478 snd_iprintf(buffer, "%02X: ",i); in snd_emu_proc_ptr_reg_read() 486 snd_iprintf(buffer, "\n"); in snd_emu_proc_ptr_reg_read() [all …]
|
/linux/sound/firewire/dice/ |
A D | dice-proc.c | 19 buffer, 4 * quadlets, 0); in dice_proc_read_mem() 24 be32_to_cpus(&((u32 *)buffer)[i]); in dice_proc_read_mem() 57 struct snd_info_buffer *buffer) in dice_proc_read() argument 119 snd_iprintf(buffer, "sections:\n"); in dice_proc_read() 128 snd_iprintf(buffer, "global:\n"); in dice_proc_read() 163 snd_iprintf(buffer, "\n"); in dice_proc_read() 238 snd_iprintf(buffer, "-\n"); in dice_proc_read() 240 snd_iprintf(buffer, "%x\n", in dice_proc_read() 259 snd_iprintf(buffer, "\tMIDI\n"); in dice_proc_read_formation() 261 snd_iprintf(buffer, "Tx %u:", i); in dice_proc_read_formation() [all …]
|
/linux/sound/usb/6fire/ |
A D | comm.c | 60 buffer[3] = id; in usb6fire_comm_init_buffer() 65 buffer[5] = vl; in usb6fire_comm_init_buffer() 66 buffer[6] = vh; in usb6fire_comm_init_buffer() 87 buffer[5] = vl; in usb6fire_comm_init_buffer() 98 buffer, buffer[1] + 2, &actual_len, 1000); in usb6fire_comm_send_buffer() 109 u8 *buffer; in usb6fire_comm_write8() local 114 if (!buffer) in usb6fire_comm_write8() 120 kfree(buffer); in usb6fire_comm_write8() 127 u8 *buffer; in usb6fire_comm_write16() local 132 if (!buffer) in usb6fire_comm_write16() [all …]
|
/linux/arch/riscv/include/asm/ |
A D | io.h | 63 void *buffer, \ 97 #define readsb(addr, buffer, count) __readsb(addr, buffer, count) argument 98 #define readsw(addr, buffer, count) __readsw(addr, buffer, count) argument 99 #define readsl(addr, buffer, count) __readsl(addr, buffer, count) argument 111 #define writesb(addr, buffer, count) __writesb(addr, buffer, count) argument 112 #define writesw(addr, buffer, count) __writesw(addr, buffer, count) argument 113 #define writesl(addr, buffer, count) __writesl(addr, buffer, count) argument 124 #define readsq(addr, buffer, count) __readsq(addr, buffer, count) argument 127 #define insq(addr, buffer, count) __insq((void __iomem *)addr, buffer, count) argument 130 #define writesq(addr, buffer, count) __writesq(addr, buffer, count) argument [all …]
|
/linux/drivers/scsi/ |
A D | sr_vendor.c | 151 cgc.buffer = buffer; in sr_set_blocklength() 198 cgc.buffer = buffer; in sr_cd_check() 206 if ((buffer[0] << 8) + buffer[1] < 0x0a) { in sr_cd_check() 212 sector = buffer[11] + (buffer[10] << 8) + in sr_cd_check() 213 (buffer[9] << 16) + (buffer[8] << 24); in sr_cd_check() 225 cgc.buffer = buffer; in sr_cd_check() 254 cgc.buffer = buffer; in sr_cd_check() 282 cgc.buffer = buffer; in sr_cd_check() 300 cgc.buffer = buffer; in sr_cd_check() 309 sector = buffer[11] + (buffer[10] << 8) + in sr_cd_check() [all …]
|
/linux/sound/firewire/fireworks/ |
A D | fireworks_proc.c | 62 snd_iprintf(buffer, "phys in grps: 0x%X\n", in proc_read_hwinfo() 65 snd_iprintf(buffer, in proc_read_hwinfo() 71 snd_iprintf(buffer, "phys out grps: 0x%X\n", in proc_read_hwinfo() 74 snd_iprintf(buffer, in proc_read_hwinfo() 128 struct snd_info_buffer *buffer) in proc_read_phys_meters() argument 147 snd_iprintf(buffer, "Physical Meters:\n"); in proc_read_phys_meters() 157 snd_iprintf(buffer, "\t%s [%d]: %d\n", in proc_read_phys_meters() 165 snd_iprintf(buffer, " %d Inputs:\n", max); in proc_read_phys_meters() 170 snd_iprintf(buffer, "\t%s [%d]: %d\n", in proc_read_phys_meters() 179 struct snd_info_buffer *buffer) in proc_read_queues_state() argument [all …]
|
/linux/sound/pci/lola/ |
A D | lola_proc.c | 24 snd_iprintf(buffer, " Formats: 0x%x\n", val); in print_audio_widget() 38 snd_iprintf(buffer, " Amp-Caps: 0x%x\n", val); in print_pin_widget() 98 struct snd_info_buffer *buffer) in lola_proc_codec_read() argument 124 print_clock_widget(buffer, chip, nid); in lola_proc_codec_read() 128 print_mixer_widget(buffer, chip, nid); in lola_proc_codec_read() 135 struct snd_info_buffer *buffer) in lola_proc_codec_rw_write() argument 150 struct snd_info_buffer *buffer) in lola_proc_codec_rw_read() argument 160 struct snd_info_buffer *buffer) in lola_proc_regs_read() argument 169 snd_iprintf(buffer, "\n"); in lola_proc_regs_read() 174 snd_iprintf(buffer, "\n"); in lola_proc_regs_read() [all …]
|