/linux-4.4.14/drivers/s390/char/ |
D | sclp_rw.c | 49 struct sclp_buffer *buffer; in sclp_make_buffer() local 57 buffer = ((struct sclp_buffer *) ((addr_t) sccb + PAGE_SIZE)) - 1; in sclp_make_buffer() 58 buffer->sccb = sccb; in sclp_make_buffer() 59 buffer->retry_count = 0; in sclp_make_buffer() 60 buffer->messages = 0; in sclp_make_buffer() 61 buffer->char_sum = 0; in sclp_make_buffer() 62 buffer->current_line = NULL; in sclp_make_buffer() 63 buffer->current_length = 0; in sclp_make_buffer() 64 buffer->columns = columns; in sclp_make_buffer() 65 buffer->htab = htab; in sclp_make_buffer() [all …]
|
D | sclp_con.c | 47 sclp_conbuf_callback(struct sclp_buffer *buffer, int rc) in sclp_conbuf_callback() argument 53 page = sclp_unmake_buffer(buffer); in sclp_conbuf_callback() 57 list_del(&buffer->list); in sclp_conbuf_callback() 61 buffer = NULL; in sclp_conbuf_callback() 63 buffer = list_first_entry(&sclp_con_outqueue, in sclp_conbuf_callback() 65 if (!buffer || sclp_con_suspended) { in sclp_conbuf_callback() 71 } while (sclp_emit_buffer(buffer, sclp_conbuf_callback)); in sclp_conbuf_callback() 79 struct sclp_buffer* buffer; in sclp_conbuf_emit() local 91 buffer = list_first_entry(&sclp_con_outqueue, struct sclp_buffer, in sclp_conbuf_emit() 96 rc = sclp_emit_buffer(buffer, sclp_conbuf_callback); in sclp_conbuf_emit() [all …]
|
/linux-4.4.14/sound/pci/hda/ |
D | hda_proc.c | 61 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 …]
|
D | hda_eld.c | 454 struct snd_info_buffer *buffer) in hdmi_print_sad_info() argument 458 snd_iprintf(buffer, "sad%d_coding_type\t[0x%x] %s\n", in hdmi_print_sad_info() 460 snd_iprintf(buffer, "sad%d_channels\t\t%d\n", i, a->channels); in hdmi_print_sad_info() 463 snd_iprintf(buffer, "sad%d_rates\t\t[0x%x]%s\n", i, a->rates, buf); in hdmi_print_sad_info() 467 snd_iprintf(buffer, "sad%d_bits\t\t[0x%x]%s\n", in hdmi_print_sad_info() 472 snd_iprintf(buffer, "sad%d_max_bitrate\t%d\n", in hdmi_print_sad_info() 476 snd_iprintf(buffer, "sad%d_profile\t\t%d\n", i, a->profile); in hdmi_print_sad_info() 480 struct snd_info_buffer *buffer) in snd_hdmi_print_eld_info() argument 500 snd_iprintf(buffer, "monitor_present\t\t%d\n", eld->monitor_present); in snd_hdmi_print_eld_info() 501 snd_iprintf(buffer, "eld_valid\t\t%d\n", eld->eld_valid); in snd_hdmi_print_eld_info() [all …]
|
/linux-4.4.14/sound/pci/ca0106/ |
D | ca0106_proc.c | 98 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 …]
|
/linux-4.4.14/drivers/media/tuners/ |
D | tea5767.c | 134 unsigned char *buffer) in tea5767_status_dump() argument 138 if (TEA5767_READY_FLAG_MASK & buffer[0]) in tea5767_status_dump() 143 if (TEA5767_BAND_LIMIT_MASK & buffer[0]) in tea5767_status_dump() 148 div = ((buffer[0] & 0x3f) << 8) | buffer[1]; in tea5767_status_dump() 165 buffer[0] = (div >> 8) & 0x3f; in tea5767_status_dump() 166 buffer[1] = div & 0xff; in tea5767_status_dump() 171 if (TEA5767_STEREO_MASK & buffer[2]) in tea5767_status_dump() 176 tuner_info("IF Counter = %d\n", buffer[2] & TEA5767_IF_CNTR_MASK); in tea5767_status_dump() 179 (buffer[3] & TEA5767_ADC_LEVEL_MASK) >> 4); in tea5767_status_dump() 181 tuner_info("Chip ID = %d\n", (buffer[3] & TEA5767_CHIP_ID_MASK)); in tea5767_status_dump() [all …]
|
D | tea5761.c | 126 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 …]
|
D | tuner-simple.c | 397 u8 buffer[4] = { 0x14, 0x00, 0x17, 0x00}; in simple_std_setup() local 401 buffer[1] = 0x04; in simple_std_setup() 405 rc = tuner_i2c_xfer_send(&i2c, &buffer[0], 2); in simple_std_setup() 409 rc = tuner_i2c_xfer_send(&i2c, &buffer[2], 2); in simple_std_setup() 426 u8 buffer[2]; in simple_set_aux_byte() local 428 buffer[0] = (config & ~0x38) | 0x18; in simple_set_aux_byte() 429 buffer[1] = aux; in simple_set_aux_byte() 431 tuner_dbg("setting aux byte: 0x%02x 0x%02x\n", buffer[0], buffer[1]); in simple_set_aux_byte() 433 rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, 2); in simple_set_aux_byte() 440 static int simple_post_tune(struct dvb_frontend *fe, u8 *buffer, in simple_post_tune() argument [all …]
|
/linux-4.4.14/drivers/pnp/ |
D | interface.c | 25 char *buffer; /* pointer to begin of buffer */ member 35 static int pnp_printf(pnp_info_buffer_t * buffer, char *fmt, ...) in pnp_printf() argument 40 if (buffer->stop || buffer->error) in pnp_printf() 43 res = vsnprintf(buffer->curr, buffer->len - buffer->size, fmt, args); in pnp_printf() 45 if (buffer->size + res >= buffer->len) { in pnp_printf() 46 buffer->stop = 1; in pnp_printf() 49 buffer->curr += res; in pnp_printf() 50 buffer->size += res; in pnp_printf() 54 static void pnp_print_port(pnp_info_buffer_t * buffer, char *space, in pnp_print_port() argument 57 pnp_printf(buffer, "%sport %#llx-%#llx, align %#llx, size %#llx, " in pnp_print_port() [all …]
|
/linux-4.4.14/drivers/s390/net/ |
D | qeth_core_mpc.h | 14 #define QETH_IPA_PDU_LEN_TOTAL(buffer) (buffer + 0x0e) argument 15 #define QETH_IPA_PDU_LEN_PDU1(buffer) (buffer + 0x26) argument 16 #define QETH_IPA_PDU_LEN_PDU2(buffer) (buffer + 0x29) argument 17 #define QETH_IPA_PDU_LEN_PDU3(buffer) (buffer + 0x3a) argument 20 #define QETH_IPA_CMD_DEST_ADDR(buffer) (buffer + 0x2c) argument 425 char *buffer; member 694 #define QETH_IPA_ARP_DATA_POS(buffer) (buffer + IPA_PDU_HEADER_SIZE + \ argument 716 #define QETH_CM_ENABLE_ISSUER_RM_TOKEN(buffer) (buffer + 0x2c) argument 717 #define QETH_CM_ENABLE_FILTER_TOKEN(buffer) (buffer + 0x53) argument 718 #define QETH_CM_ENABLE_USER_DATA(buffer) (buffer + 0x5b) argument [all …]
|
D | smsgiucv.c | 72 unsigned char *buffer; in smsg_message_pending() local 76 buffer = kmalloc(msg->length + 1, GFP_ATOMIC | GFP_DMA); in smsg_message_pending() 77 if (!buffer) { in smsg_message_pending() 81 rc = iucv_message_receive(path, msg, 0, buffer, msg->length, NULL); in smsg_message_pending() 83 buffer[msg->length] = 0; in smsg_message_pending() 84 EBCASC(buffer, msg->length); in smsg_message_pending() 85 memcpy(sender, buffer, 8); in smsg_message_pending() 95 if (strncmp(buffer + 8, cb->prefix, cb->len) == 0) { in smsg_message_pending() 96 cb->callback(sender, buffer + 8); in smsg_message_pending() 101 kfree(buffer); in smsg_message_pending()
|
/linux-4.4.14/include/linux/ |
D | ring_buffer.h | 80 void ring_buffer_discard_commit(struct ring_buffer *buffer, 100 int ring_buffer_wait(struct ring_buffer *buffer, int cpu, bool full); 101 int 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, 121 ring_buffer_peek(struct ring_buffer *buffer, int cpu, u64 *ts, [all …]
|
D | kallsyms.h | 38 extern int sprint_symbol(char *buffer, unsigned long address); 39 extern int sprint_symbol_no_offset(char *buffer, unsigned long address); 40 extern int sprint_backtrace(char *buffer, unsigned long address); 78 static inline int sprint_symbol(char *buffer, unsigned long addr) in sprint_symbol() argument 80 *buffer = '\0'; in sprint_symbol() 84 static inline int sprint_symbol_no_offset(char *buffer, unsigned long addr) in sprint_symbol_no_offset() argument 86 *buffer = '\0'; in sprint_symbol_no_offset() 90 static inline int sprint_backtrace(char *buffer, unsigned long addr) in sprint_backtrace() argument 92 *buffer = '\0'; in sprint_backtrace()
|
/linux-4.4.14/drivers/staging/android/ion/ |
D | ion.c | 112 struct ion_buffer *buffer; member 118 bool ion_buffer_fault_user_mappings(struct ion_buffer *buffer) in ion_buffer_fault_user_mappings() argument 120 return (buffer->flags & ION_FLAG_CACHED) && in ion_buffer_fault_user_mappings() 121 !(buffer->flags & ION_FLAG_CACHED_NEEDS_SYNC); in ion_buffer_fault_user_mappings() 124 bool ion_buffer_cached(struct ion_buffer *buffer) in ion_buffer_cached() argument 126 return !!(buffer->flags & ION_FLAG_CACHED); in ion_buffer_cached() 151 struct ion_buffer *buffer) in ion_buffer_add() argument 161 if (buffer < entry) { in ion_buffer_add() 163 } else if (buffer > entry) { in ion_buffer_add() 171 rb_link_node(&buffer->node, parent, p); in ion_buffer_add() [all …]
|
D | ion_cma_heap.c | 44 static int ion_cma_allocate(struct ion_heap *heap, struct ion_buffer *buffer, in ion_cma_allocate() argument 54 if (buffer->flags & ION_FLAG_CACHED) in ion_cma_allocate() 80 buffer->priv_virt = info; in ion_cma_allocate() 81 dev_dbg(dev, "Allocate buffer %p\n", buffer); in ion_cma_allocate() 93 static void ion_cma_free(struct ion_buffer *buffer) in ion_cma_free() argument 95 struct ion_cma_heap *cma_heap = to_cma_heap(buffer->heap); in ion_cma_free() 97 struct ion_cma_buffer_info *info = buffer->priv_virt; in ion_cma_free() 99 dev_dbg(dev, "Release buffer %p\n", buffer); in ion_cma_free() 101 dma_free_coherent(dev, buffer->size, info->cpu_addr, info->handle); in ion_cma_free() 109 static int ion_cma_phys(struct ion_heap *heap, struct ion_buffer *buffer, in ion_cma_phys() argument [all …]
|
D | ion_system_heap.c | 56 struct ion_buffer *buffer, in alloc_buffer_page() argument 59 bool cached = ion_buffer_cached(buffer); in alloc_buffer_page() 81 struct ion_buffer *buffer, struct page *page) in free_buffer_page() argument 84 bool cached = ion_buffer_cached(buffer); in free_buffer_page() 86 if (!cached && !(buffer->private_flags & ION_PRIV_FLAG_SHRINKER_FREE)) { in free_buffer_page() 97 struct ion_buffer *buffer, in alloc_largest_available() argument 110 page = alloc_buffer_page(heap, buffer, orders[i]); in alloc_largest_available() 121 struct ion_buffer *buffer, in ion_system_heap_allocate() argument 144 page = alloc_largest_available(sys_heap, buffer, size_remaining, in ion_system_heap_allocate() 167 buffer->priv_virt = table; in ion_system_heap_allocate() [all …]
|
D | ion_heap.c | 29 struct ion_buffer *buffer) in ion_heap_map_kernel() argument 35 struct sg_table *table = buffer->sg_table; in ion_heap_map_kernel() 36 int npages = PAGE_ALIGN(buffer->size) / PAGE_SIZE; in ion_heap_map_kernel() 43 if (buffer->flags & ION_FLAG_CACHED) in ion_heap_map_kernel() 66 struct ion_buffer *buffer) in ion_heap_unmap_kernel() argument 68 vunmap(buffer->vaddr); in ion_heap_unmap_kernel() 71 int ion_heap_map_user(struct ion_heap *heap, struct ion_buffer *buffer, in ion_heap_map_user() argument 74 struct sg_table *table = buffer->sg_table; in ion_heap_map_user() 141 int ion_heap_buffer_zero(struct ion_buffer *buffer) in ion_heap_buffer_zero() argument 143 struct sg_table *table = buffer->sg_table; in ion_heap_buffer_zero() [all …]
|
D | ion_carveout_heap.c | 60 struct ion_buffer *buffer, in ion_carveout_heap_phys() argument 63 struct sg_table *table = buffer->priv_virt; in ion_carveout_heap_phys() 68 *len = buffer->size; in ion_carveout_heap_phys() 73 struct ion_buffer *buffer, in ion_carveout_heap_allocate() argument 98 buffer->priv_virt = table; in ion_carveout_heap_allocate() 109 static void ion_carveout_heap_free(struct ion_buffer *buffer) in ion_carveout_heap_free() argument 111 struct ion_heap *heap = buffer->heap; in ion_carveout_heap_free() 112 struct sg_table *table = buffer->priv_virt; in ion_carveout_heap_free() 116 ion_heap_buffer_zero(buffer); in ion_carveout_heap_free() 118 if (ion_buffer_cached(buffer)) in ion_carveout_heap_free() [all …]
|
D | ion_priv.h | 88 void ion_buffer_destroy(struct ion_buffer *buffer); 111 struct ion_buffer *buffer, unsigned long len, 113 void (*free)(struct ion_buffer *buffer); 114 int (*phys)(struct ion_heap *heap, struct ion_buffer *buffer, 117 struct ion_buffer *buffer); 118 void (*unmap_dma)(struct ion_heap *heap, struct ion_buffer *buffer); 119 void * (*map_kernel)(struct ion_heap *heap, struct ion_buffer *buffer); 120 void (*unmap_kernel)(struct ion_heap *heap, struct ion_buffer *buffer); 121 int (*map_user)(struct ion_heap *mapper, struct ion_buffer *buffer, 191 bool ion_buffer_cached(struct ion_buffer *buffer); [all …]
|
D | ion_chunk_heap.c | 37 struct ion_buffer *buffer, in ion_chunk_heap_allocate() argument 78 buffer->priv_virt = table; in ion_chunk_heap_allocate() 93 static void ion_chunk_heap_free(struct ion_buffer *buffer) in ion_chunk_heap_free() argument 95 struct ion_heap *heap = buffer->heap; in ion_chunk_heap_free() 98 struct sg_table *table = buffer->priv_virt; in ion_chunk_heap_free() 103 allocated_size = ALIGN(buffer->size, chunk_heap->chunk_size); in ion_chunk_heap_free() 105 ion_heap_buffer_zero(buffer); in ion_chunk_heap_free() 107 if (ion_buffer_cached(buffer)) in ion_chunk_heap_free() 121 struct ion_buffer *buffer) in ion_chunk_heap_map_dma() argument 123 return buffer->priv_virt; in ion_chunk_heap_map_dma() [all …]
|
/linux-4.4.14/drivers/iio/ |
D | industrialio-buffer.c | 109 struct iio_buffer *rb = indio_dev->buffer; in iio_buffer_read_first_n_outer() 164 struct iio_buffer *rb = indio_dev->buffer; in iio_buffer_poll() 184 if (!indio_dev->buffer) in iio_buffer_wakeup_poll() 187 wake_up(&indio_dev->buffer->pollq); in iio_buffer_wakeup_poll() 190 void iio_buffer_init(struct iio_buffer *buffer) in iio_buffer_init() argument 192 INIT_LIST_HEAD(&buffer->demux_list); in iio_buffer_init() 193 INIT_LIST_HEAD(&buffer->buffer_list); in iio_buffer_init() 194 init_waitqueue_head(&buffer->pollq); in iio_buffer_init() 195 kref_init(&buffer->ref); in iio_buffer_init() 196 buffer->watermark = 1; in iio_buffer_init() [all …]
|
/linux-4.4.14/sound/usb/6fire/ |
D | comm.c | 26 u8 *buffer, void *context, void(*handler)(struct urb *urb)) in usb6fire_comm_init_urb() argument 29 urb->transfer_buffer = buffer; in usb6fire_comm_init_urb() 59 static void usb6fire_comm_init_buffer(u8 *buffer, u8 id, u8 request, in usb6fire_comm_init_buffer() argument 62 buffer[0] = 0x01; in usb6fire_comm_init_buffer() 63 buffer[2] = request; in usb6fire_comm_init_buffer() 64 buffer[3] = id; in usb6fire_comm_init_buffer() 67 buffer[1] = 0x05; /* length (starting at buffer[2]) */ in usb6fire_comm_init_buffer() 68 buffer[4] = reg; in usb6fire_comm_init_buffer() 69 buffer[5] = vl; in usb6fire_comm_init_buffer() 70 buffer[6] = vh; in usb6fire_comm_init_buffer() [all …]
|
D | firmware.c | 289 u8 *buffer = kmalloc(FPGA_BUFSIZE, GFP_KERNEL); in usb6fire_fw_fpga_upload() local 294 if (!buffer) in usb6fire_fw_fpga_upload() 301 kfree(buffer); in usb6fire_fw_fpga_upload() 310 kfree(buffer); in usb6fire_fw_fpga_upload() 319 buffer[i] = bitrev8((u8)*c); in usb6fire_fw_fpga_upload() 321 ret = usb6fire_fw_fpga_write(device, buffer, i); in usb6fire_fw_fpga_upload() 324 kfree(buffer); in usb6fire_fw_fpga_upload() 331 kfree(buffer); in usb6fire_fw_fpga_upload() 367 u8 buffer[12]; in usb6fire_fw_init() local 369 ret = usb6fire_fw_ezusb_read(device, 1, 0, buffer, 8); in usb6fire_fw_init() [all …]
|
/linux-4.4.14/sound/usb/ |
D | proc.c | 46 static void proc_audio_usbbus_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) in proc_audio_usbbus_read() argument 50 snd_iprintf(buffer, "%03d/%03d\n", chip->dev->bus->busnum, chip->dev->devnum); in proc_audio_usbbus_read() 53 static void proc_audio_usbid_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) in proc_audio_usbid_read() argument 57 snd_iprintf(buffer, "%04x:%04x\n", in proc_audio_usbid_read() 74 …ic void proc_dump_substream_formats(struct snd_usb_substream *subs, struct snd_info_buffer *buffer) in proc_dump_substream_formats() argument 84 snd_iprintf(buffer, " Interface %d\n", fp->iface); in proc_dump_substream_formats() 85 snd_iprintf(buffer, " Altset %d\n", fp->altsetting); in proc_dump_substream_formats() 86 snd_iprintf(buffer, " Format:"); in proc_dump_substream_formats() 89 snd_iprintf(buffer, " %s", in proc_dump_substream_formats() 91 snd_iprintf(buffer, "\n"); in proc_dump_substream_formats() [all …]
|
/linux-4.4.14/fs/configfs/ |
D | file.c | 64 static int fill_read_buffer(struct dentry * dentry, struct configfs_buffer * buffer) in fill_read_buffer() argument 71 if (!buffer->page) in fill_read_buffer() 72 buffer->page = (char *) get_zeroed_page(GFP_KERNEL); in fill_read_buffer() 73 if (!buffer->page) in fill_read_buffer() 76 count = attr->show(item, buffer->page); in fill_read_buffer() 78 buffer->needs_read_fill = 0; in fill_read_buffer() 81 buffer->count = count; in fill_read_buffer() 109 struct configfs_buffer * buffer = file->private_data; in configfs_read_file() local 112 mutex_lock(&buffer->mutex); in configfs_read_file() 113 if (buffer->needs_read_fill) { in configfs_read_file() [all …]
|
/linux-4.4.14/drivers/media/usb/cpia2/ |
D | cpia2_core.c | 179 cmd.buffer.block_data[0] = param; /* Then fall through */ in cpia2_do_command() 189 cmd.buffer.block_data[0] = param; /* Then fall through */ in cpia2_do_command() 196 cmd.buffer.block_data[0] = param; /* Then fall through */ in cpia2_do_command() 206 cmd.buffer.block_data[0] = param; /* Then fall through */ in cpia2_do_command() 213 cmd.buffer.block_data[0] = param; /* Then fall through */ in cpia2_do_command() 220 cmd.buffer.block_data[0] = param; /* Then fall through */ in cpia2_do_command() 227 cmd.buffer.block_data[0] = param; /* Then fall through */ in cpia2_do_command() 238 cmd.buffer.block_data[0] = param; in cpia2_do_command() 241 cmd.buffer.block_data[0] = param; /* Then fall through */ in cpia2_do_command() 251 cmd.buffer.registers[0].index = CPIA2_VC_ST_CTRL; in cpia2_do_command() [all …]
|
/linux-4.4.14/arch/sparc/boot/ |
D | piggyback.c | 115 char buffer[1024]; in get_start_end() local 122 while (fgets(buffer, 1024, map)) { in get_start_end() 123 if (start_line(buffer)) in get_start_end() 124 *start = strtoul(buffer, NULL, 16); in get_start_end() 125 else if (end_line(buffer)) in get_start_end() 126 *end = strtoul(buffer, NULL, 16); in get_start_end() 148 char buffer[BUFSIZE]; in get_hdrs_offset() local 154 if (read(kernelfd, buffer, BUFSIZE) != BUFSIZE) in get_hdrs_offset() 157 if (buffer[40] == 'H' && buffer[41] == 'd' && in get_hdrs_offset() 158 buffer[42] == 'r' && buffer[43] == 'S') { in get_hdrs_offset() [all …]
|
/linux-4.4.14/drivers/scsi/ |
D | sr_vendor.c | 111 unsigned char *buffer; /* the buffer for the ioctl */ in sr_set_blocklength() local 121 buffer = kmalloc(512, GFP_KERNEL | GFP_DMA); in sr_set_blocklength() 122 if (!buffer) in sr_set_blocklength() 132 modesel = (struct ccs_modesel_head *) buffer; in sr_set_blocklength() 138 cgc.buffer = buffer; in sr_set_blocklength() 151 kfree(buffer); in sr_set_blocklength() 162 unsigned char *buffer; /* the buffer for the ioctl */ in sr_cd_check() local 169 buffer = kmalloc(512, GFP_KERNEL | GFP_DMA); in sr_cd_check() 170 if (!buffer) in sr_cd_check() 185 cgc.buffer = buffer; in sr_cd_check() [all …]
|
D | ch.c | 186 void *buffer, unsigned buflength, in ch_do_scsi() argument 197 result = scsi_execute_req(ch->device, cmd, direction, buffer, in ch_do_scsi() 237 u_char *buffer; in ch_read_element_status() local 240 buffer = kmalloc(512, GFP_KERNEL | GFP_DMA); in ch_read_element_status() 241 if(!buffer) in ch_read_element_status() 255 buffer, 256, DMA_FROM_DEVICE))) { in ch_read_element_status() 256 if (((buffer[16] << 8) | buffer[17]) != elem) { in ch_read_element_status() 258 elem,(buffer[16] << 8) | buffer[17]); in ch_read_element_status() 259 kfree(buffer); in ch_read_element_status() 262 memcpy(data,buffer+16,16); in ch_read_element_status() [all …]
|
D | sr_ioctl.c | 45 unsigned char *buffer; in sr_read_tochdr() local 47 buffer = kmalloc(32, GFP_KERNEL | SR_GFP_DMA(cd)); in sr_read_tochdr() 48 if (!buffer) in sr_read_tochdr() 55 cgc.buffer = buffer; in sr_read_tochdr() 62 tochdr->cdth_trk0 = buffer[2]; in sr_read_tochdr() 63 tochdr->cdth_trk1 = buffer[3]; in sr_read_tochdr() 65 kfree(buffer); in sr_read_tochdr() 75 unsigned char *buffer; in sr_read_tocentry() local 77 buffer = kmalloc(32, GFP_KERNEL | SR_GFP_DMA(cd)); in sr_read_tocentry() 78 if (!buffer) in sr_read_tocentry() [all …]
|
D | osst.c | 248 cmdstatp = &STp->buffer->cmdstat; in osst_chk_result() 252 scode = STp->buffer->cmdstat.sense_hdr.sense_key; in osst_chk_result() 327 struct rq_map_data *mdata = &SRpnt->stp->buffer->map_data; in osst_end_async() 329 STp->buffer->cmdstat.midlevel_result = SRpnt->result = req->errors; in osst_end_async() 356 int cmd_len, int data_direction, void *buffer, unsigned bufflen, in osst_execute() argument 361 struct rq_map_data *mdata = &SRpnt->stp->buffer->map_data; in osst_execute() 376 struct scatterlist *sg, *sgl = (struct scatterlist *)buffer; in osst_execute() 402 err = blk_rq_map_kern(req->q, req, buffer, bufflen, GFP_KERNEL); in osst_execute() 438 if (!do_wait && ((STp->buffer)->last_SRpnt)) { in osst_do_scsi() 442 (STp->buffer)->syscall_result = (-EINTR); in osst_do_scsi() [all …]
|
D | sr.c | 754 unsigned char buffer[8]; in get_sectorsize() local 762 memset(buffer, 0, sizeof(buffer)); in get_sectorsize() 766 buffer, sizeof(buffer), NULL, in get_sectorsize() 780 cd->capacity = 1 + ((buffer[0] << 24) | (buffer[1] << 16) | in get_sectorsize() 781 (buffer[2] << 8) | buffer[3]); in get_sectorsize() 792 sector_size = (buffer[4] << 24) | in get_sectorsize() 793 (buffer[5] << 16) | (buffer[6] << 8) | buffer[7]; in get_sectorsize() 834 unsigned char *buffer; in get_capabilities() local 853 buffer = kmalloc(512, GFP_KERNEL | GFP_DMA); in get_capabilities() 854 if (!buffer) { in get_capabilities() [all …]
|
D | scsi_logging.c | 26 char buffer[SCSI_LOG_SPOOLSIZE]; member 35 unsigned long map_bits = sizeof(buf->buffer) / SCSI_LOG_BUFSIZE; in scsi_log_reserve_buffer() 53 return buf->buffer + idx * SCSI_LOG_BUFSIZE; in scsi_log_reserve_buffer() 63 if (bufptr >= buf->buffer && in scsi_log_release_buffer() 64 bufptr < buf->buffer + SCSI_LOG_SPOOLSIZE) { in scsi_log_release_buffer() 65 idx = (bufptr - buf->buffer) / SCSI_LOG_BUFSIZE; in scsi_log_release_buffer() 148 static size_t scsi_format_opcode_name(char *buffer, size_t buf_len, in scsi_format_opcode_name() argument 160 off = scnprintf(buffer, buf_len, in scsi_format_opcode_name() 171 off = scnprintf(buffer, buf_len, "%s", cdb_name); in scsi_format_opcode_name() 173 off = scnprintf(buffer, buf_len, "opcode=0x%x", cdb0); in scsi_format_opcode_name() [all …]
|
D | ppa.c | 121 static inline int ppa_write_info(struct Scsi_Host *host, char *buffer, int length) in ppa_write_info() argument 126 if ((length > 5) && (strncmp(buffer, "mode=", 5) == 0)) { in ppa_write_info() 127 x = simple_strtoul(buffer + 5, NULL, 0); in ppa_write_info() 131 if ((length > 10) && (strncmp(buffer, "recon_tmo=", 10) == 0)) { in ppa_write_info() 132 x = simple_strtoul(buffer + 10, NULL, 0); in ppa_write_info() 239 static int ppa_byte_out(unsigned short base, const char *buffer, int len) in ppa_byte_out() argument 244 w_dtr(base, *buffer++); in ppa_byte_out() 251 static int ppa_byte_in(unsigned short base, char *buffer, int len) in ppa_byte_in() argument 256 *buffer++ = r_dtr(base); in ppa_byte_in() 263 static int ppa_nibble_in(unsigned short base, char *buffer, int len) in ppa_nibble_in() argument [all …]
|
D | sd.c | 117 static void sd_read_capacity(struct scsi_disk *sdkp, unsigned char *buffer); 158 char buffer[64]; in cache_type_store() local 198 if (scsi_mode_sense(sdp, 0x08, 8, buffer, sizeof(buffer), SD_TIMEOUT, in cache_type_store() 201 len = min_t(size_t, sizeof(buffer), data.length - data.header_length - in cache_type_store() 203 buffer_data = buffer + data.header_length + in cache_type_store() 1979 static int sd_read_protection_type(struct scsi_disk *sdkp, unsigned char *buffer) in sd_read_protection_type() argument 1985 if (scsi_device_protection(sdp) == 0 || (buffer[12] & 1) == 0) in sd_read_protection_type() 1988 type = ((buffer[12] >> 1) & 7) + 1; /* P_TYPE 0 = Type 1 */ in sd_read_protection_type() 2050 unsigned char *buffer) in read_capacity_16() argument 2069 memset(buffer, 0, RC16_LEN); in read_capacity_16() [all …]
|
D | imm.c | 124 static int imm_write_info(struct Scsi_Host *host, char *buffer, int length) in imm_write_info() argument 128 if ((length > 5) && (strncmp(buffer, "mode=", 5) == 0)) { in imm_write_info() 129 dev->mode = simple_strtoul(buffer + 5, NULL, 0); in imm_write_info() 295 static int imm_byte_out(unsigned short base, const char *buffer, int len) in imm_byte_out() argument 301 w_dtr(base, *buffer++); in imm_byte_out() 303 w_dtr(base, *buffer++); in imm_byte_out() 310 static int imm_nibble_in(unsigned short base, char *buffer, int len) in imm_nibble_in() argument 323 *buffer++ = (r_str(base) & 0xf0) | l; in imm_nibble_in() 329 static int imm_byte_in(unsigned short base, char *buffer, int len) in imm_byte_in() argument 339 *buffer++ = r_dtr(base); in imm_byte_in() [all …]
|
D | st.c | 368 cmdstatp = &STp->buffer->cmdstat; in st_chk_result() 372 scode = STp->buffer->cmdstat.sense_hdr.sense_key; in st_chk_result() 460 stp->buffer->syscall_result = -EINTR; in st_allocate_request() 462 stp->buffer->syscall_result = -EBUSY; in st_allocate_request() 485 - STp->buffer->cmdstat.residual, in st_do_stats() 487 if (STp->buffer->cmdstat.residual > 0) in st_do_stats() 499 - STp->buffer->cmdstat.residual, in st_do_stats() 501 if (STp->buffer->cmdstat.residual > 0) in st_do_stats() 520 STp->buffer->cmdstat.midlevel_result = SRpnt->result = req->errors; in st_scsi_execute_end() 521 STp->buffer->cmdstat.residual = req->resid_len; in st_scsi_execute_end() [all …]
|
/linux-4.4.14/sound/firewire/fireworks/ |
D | fireworks_proc.c | 29 proc_read_hwinfo(struct snd_info_entry *entry, struct snd_info_buffer *buffer) in proc_read_hwinfo() argument 42 snd_iprintf(buffer, "guid_hi: 0x%X\n", hwinfo->guid_hi); in proc_read_hwinfo() 43 snd_iprintf(buffer, "guid_lo: 0x%X\n", hwinfo->guid_lo); in proc_read_hwinfo() 44 snd_iprintf(buffer, "type: 0x%X\n", hwinfo->type); in proc_read_hwinfo() 45 snd_iprintf(buffer, "version: 0x%X\n", hwinfo->version); in proc_read_hwinfo() 46 snd_iprintf(buffer, "vendor_name: %s\n", hwinfo->vendor_name); in proc_read_hwinfo() 47 snd_iprintf(buffer, "model_name: %s\n", hwinfo->model_name); in proc_read_hwinfo() 49 snd_iprintf(buffer, "dsp_version: 0x%X\n", hwinfo->dsp_version); in proc_read_hwinfo() 50 snd_iprintf(buffer, "arm_version: 0x%X\n", hwinfo->arm_version); in proc_read_hwinfo() 51 snd_iprintf(buffer, "fpga_version: 0x%X\n", hwinfo->fpga_version); in proc_read_hwinfo() [all …]
|
/linux-4.4.14/sound/pci/emu10k1/ |
D | emuproc.c | 38 struct snd_info_buffer *buffer, in snd_emu10k1_proc_spdif_status() argument 51 snd_iprintf(buffer, "\n%s\n", title); in snd_emu10k1_proc_spdif_status() 54 snd_iprintf(buffer, "Professional Mode : %s\n", (status & SPCS_PROFESSIONAL) ? "yes" : "no"); in snd_emu10k1_proc_spdif_status() 55 snd_iprintf(buffer, "Not Audio Data : %s\n", (status & SPCS_NOTAUDIODATA) ? "yes" : "no"); in snd_emu10k1_proc_spdif_status() 56 snd_iprintf(buffer, "Copyright : %s\n", (status & SPCS_COPYRIGHT) ? "yes" : "no"); in snd_emu10k1_proc_spdif_status() 57 snd_iprintf(buffer, "Emphasis : %s\n", emphasis[(status & SPCS_EMPHASISMASK) >> 3]); in snd_emu10k1_proc_spdif_status() 58 snd_iprintf(buffer, "Mode : %i\n", (status & SPCS_MODEMASK) >> 6); in snd_emu10k1_proc_spdif_status() 59 snd_iprintf(buffer, "Category Code : 0x%x\n", (status & SPCS_CATEGORYCODEMASK) >> 8); in snd_emu10k1_proc_spdif_status() 60 …snd_iprintf(buffer, "Generation Status : %s\n", status & SPCS_GENERATIONSTATUS ? "original" : … in snd_emu10k1_proc_spdif_status() 61 snd_iprintf(buffer, "Source Mask : %i\n", (status & SPCS_SOURCENUMMASK) >> 16); in snd_emu10k1_proc_spdif_status() [all …]
|
/linux-4.4.14/drivers/usb/class/ |
D | usbtmc.c | 157 u8 *buffer; in usbtmc_ioctl_abort_bulk_in() local 166 buffer = kmalloc(USBTMC_SIZE_IOBUFFER, GFP_KERNEL); in usbtmc_ioctl_abort_bulk_in() 167 if (!buffer) in usbtmc_ioctl_abort_bulk_in() 175 buffer, 2, USBTMC_TIMEOUT); in usbtmc_ioctl_abort_bulk_in() 182 dev_dbg(dev, "INITIATE_ABORT_BULK_IN returned %x\n", buffer[0]); in usbtmc_ioctl_abort_bulk_in() 184 if (buffer[0] == USBTMC_STATUS_FAILED) { in usbtmc_ioctl_abort_bulk_in() 189 if (buffer[0] != USBTMC_STATUS_SUCCESS) { in usbtmc_ioctl_abort_bulk_in() 191 buffer[0]); in usbtmc_ioctl_abort_bulk_in() 219 buffer, USBTMC_SIZE_IOBUFFER, in usbtmc_ioctl_abort_bulk_in() 245 0, data->bulk_in, buffer, 0x08, in usbtmc_ioctl_abort_bulk_in() [all …]
|
/linux-4.4.14/sound/pci/lola/ |
D | lola_proc.c | 29 static void print_audio_widget(struct snd_info_buffer *buffer, in print_audio_widget() argument 35 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); in print_audio_widget() 37 snd_iprintf(buffer, " Formats: 0x%x\n", val); in print_audio_widget() 40 static void print_pin_widget(struct snd_info_buffer *buffer, in print_pin_widget() argument 47 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); in print_pin_widget() 51 snd_iprintf(buffer, " Amp-Caps: 0x%x\n", val); in print_pin_widget() 52 snd_iprintf(buffer, " mute=%d, step-size=%d, steps=%d, ofs=%d\n", in print_pin_widget() 58 snd_iprintf(buffer, " Max-level: 0x%x\n", val); in print_pin_widget() 61 static void print_clock_widget(struct snd_info_buffer *buffer, in print_clock_widget() argument 68 snd_iprintf(buffer, "Node 0x%02x [Clock] wcaps 0x%x\n", nid, val); in print_clock_widget() [all …]
|
/linux-4.4.14/drivers/acpi/acpica/ |
D | exstorob.c | 68 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 …]
|
D | utalloc.c | 181 char buffer[7]; in acpi_ut_delete_caches() local 184 strcpy(buffer, "MEMORY"); in acpi_ut_delete_caches() 185 (void)acpi_db_display_statistics(buffer); in acpi_ut_delete_caches() 234 acpi_status acpi_ut_validate_buffer(struct acpi_buffer * buffer) in acpi_ut_validate_buffer() argument 239 if (!buffer) { in acpi_ut_validate_buffer() 245 if ((buffer->length == ACPI_NO_BUFFER) || in acpi_ut_validate_buffer() 246 (buffer->length == ACPI_ALLOCATE_BUFFER) || in acpi_ut_validate_buffer() 247 (buffer->length == ACPI_ALLOCATE_LOCAL_BUFFER)) { in acpi_ut_validate_buffer() 253 if (!buffer->pointer) { in acpi_ut_validate_buffer() 275 acpi_ut_initialize_buffer(struct acpi_buffer * buffer, in acpi_ut_initialize_buffer() argument [all …]
|
D | utbuffer.c | 68 void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 base_offset) in acpi_ut_dump_buffer() argument 75 if (!buffer) { in acpi_ut_dump_buffer() 109 buffer[(acpi_size) i + j]); in acpi_ut_dump_buffer() 115 &buffer[(acpi_size) i + j]); in acpi_ut_dump_buffer() 122 &buffer[(acpi_size) i + j]); in acpi_ut_dump_buffer() 129 &buffer[(acpi_size) i + j]); in acpi_ut_dump_buffer() 133 &buffer[(acpi_size) i + j + in acpi_ut_dump_buffer() 161 buf_char = buffer[(acpi_size) i + j]; in acpi_ut_dump_buffer() 198 acpi_ut_debug_dump_buffer(u8 *buffer, u32 count, u32 display, u32 component_id) in acpi_ut_debug_dump_buffer() argument 208 acpi_ut_dump_buffer(buffer, count, display, 0); in acpi_ut_debug_dump_buffer() [all …]
|
D | utpredef.c | 144 void acpi_ut_get_expected_return_types(char *buffer, u32 expected_btypes) in acpi_ut_get_expected_return_types() argument 151 strcpy(buffer, "NONE"); in acpi_ut_get_expected_return_types() 156 buffer[0] = 0; in acpi_ut_get_expected_return_types() 164 strcat(buffer, &ut_rtype_names[i][j]); in acpi_ut_get_expected_return_types() 184 static u32 acpi_ut_get_argument_types(char *buffer, u16 argument_types); 265 acpi_ut_display_predefined_method(char *buffer, in acpi_ut_display_predefined_method() argument 275 arg_count = acpi_ut_get_argument_types(buffer, in acpi_ut_display_predefined_method() 290 printf(" (%s)", buffer); in acpi_ut_display_predefined_method() 300 acpi_ut_get_expected_return_types(buffer, in acpi_ut_display_predefined_method() 303 printf(" Return value types: %s\n", buffer); in acpi_ut_display_predefined_method() [all …]
|
D | exfield.c | 136 void *buffer; in acpi_ex_read_data_from_field() local 217 buffer.pointer), in acpi_ex_read_data_from_field() 243 buffer = buffer_desc->buffer.pointer; in acpi_ex_read_data_from_field() 253 buffer = &buffer_desc->integer.value; in acpi_ex_read_data_from_field() 277 (u64 *)buffer, ACPI_READ); in acpi_ex_read_data_from_field() 289 obj_desc, obj_desc->common.type, buffer, in acpi_ex_read_data_from_field() 303 status = acpi_ex_extract_from_field(obj_desc, buffer, (u32) length); in acpi_ex_read_data_from_field() 337 void *buffer; in acpi_ex_write_data_to_field() local 415 if (source_desc->buffer.length < length) { in acpi_ex_write_data_to_field() 418 length, source_desc->buffer.length)); in acpi_ex_write_data_to_field() [all …]
|
D | nsconvert.c | 92 if (original_object->buffer.length > 8) { in acpi_ns_convert_to_integer() 98 for (i = 0; i < original_object->buffer.length; i++) { in acpi_ns_convert_to_integer() 100 ((u64)original_object->buffer. in acpi_ns_convert_to_integer() 174 while ((length < original_object->buffer.length) && in acpi_ns_convert_to_string() 175 (original_object->buffer.pointer[length])) { in acpi_ns_convert_to_string() 191 original_object->buffer.pointer, length); in acpi_ns_convert_to_string() 254 memcpy(new_object->buffer.pointer, in acpi_ns_convert_to_buffer() 289 dword_buffer = ACPI_CAST_PTR(u32, new_object->buffer.pointer); in acpi_ns_convert_to_buffer() 337 if (original_object->buffer.length < 2) { in acpi_ns_convert_to_unicode() 359 unicode_buffer = ACPI_CAST_PTR(u16, new_object->buffer.pointer); in acpi_ns_convert_to_unicode() [all …]
|
D | dbconvert.c | 142 u8 *buffer; in acpi_db_convert_to_buffer() local 156 buffer = ACPI_ALLOCATE(length); in acpi_db_convert_to_buffer() 157 if (!buffer) { in acpi_db_convert_to_buffer() 164 status = acpi_db_hex_byte_to_binary(&string[i], &buffer[j]); in acpi_db_convert_to_buffer() 166 ACPI_FREE(buffer); in acpi_db_convert_to_buffer() 178 object->buffer.pointer = buffer; in acpi_db_convert_to_buffer() 179 object->buffer.length = length; in acpi_db_convert_to_buffer() 301 u32 *buffer; in acpi_db_encode_pld_buffer() local 304 buffer = ACPI_ALLOCATE_ZEROED(ACPI_PLD_BUFFER_SIZE); in acpi_db_encode_pld_buffer() 305 if (!buffer) { in acpi_db_encode_pld_buffer() [all …]
|
D | rsxface.c | 75 struct acpi_buffer *buffer, 94 struct acpi_buffer *buffer, in acpi_rs_validate_parameters() argument 125 status = acpi_ut_validate_buffer(buffer); in acpi_rs_validate_parameters() 449 info.buffer = ret_buffer; in ACPI_EXPORT_SYMBOL() 482 struct acpi_buffer *buffer; in ACPI_EXPORT_SYMBOL() local 508 buffer = info->buffer; in ACPI_EXPORT_SYMBOL() 509 status = acpi_ut_initialize_buffer(buffer, resource->length); in ACPI_EXPORT_SYMBOL() 516 memcpy(buffer->pointer, resource, resource->length); in ACPI_EXPORT_SYMBOL() 517 buffer->length = resource->length; in ACPI_EXPORT_SYMBOL() 542 acpi_walk_resource_buffer(struct acpi_buffer * buffer, in acpi_walk_resource_buffer() argument [all …]
|
D | exmisc.c | 185 length0 = ACPI_PTR_DIFF(end_tag, operand0->buffer.pointer); in acpi_ex_concat_template() 194 length1 = ACPI_PTR_DIFF(end_tag, operand1->buffer.pointer); in acpi_ex_concat_template() 211 new_buf = return_desc->buffer.pointer; in acpi_ex_concat_template() 212 memcpy(new_buf, operand0->buffer.pointer, length0); in acpi_ex_concat_template() 213 memcpy(new_buf + length0, operand1->buffer.pointer, length1); in acpi_ex_concat_template() 317 new_buf = (char *)return_desc->buffer.pointer; in acpi_ex_do_concatenate() 359 operand0->buffer. in acpi_ex_do_concatenate() 362 buffer.length)); in acpi_ex_do_concatenate() 368 new_buf = (char *)return_desc->buffer.pointer; in acpi_ex_do_concatenate() 372 memcpy(new_buf, operand0->buffer.pointer, in acpi_ex_do_concatenate() [all …]
|
D | utcopy.c | 66 u8 * buffer, acpi_size * space_used); 159 external_object->buffer.pointer = data_space; in acpi_ut_copy_isimple_to_esimple() 160 external_object->buffer.length = internal_object->buffer.length; in acpi_ut_copy_isimple_to_esimple() 166 (void *)internal_object->buffer.pointer, in acpi_ut_copy_isimple_to_esimple() 167 internal_object->buffer.length); in acpi_ut_copy_isimple_to_esimple() 334 u8 * buffer, acpi_size * space_used) in acpi_ut_copy_ipackage_to_epackage() argument 345 external_object = ACPI_CAST_PTR(union acpi_object, buffer); in acpi_ut_copy_ipackage_to_epackage() 352 buffer + ACPI_ROUND_UP_TO_NATIVE_WORD(sizeof(union acpi_object)); in acpi_ut_copy_ipackage_to_epackage() 514 internal_object->buffer.pointer = in acpi_ut_copy_esimple_to_isimple() 515 ACPI_ALLOCATE_ZEROED(external_object->buffer.length); in acpi_ut_copy_esimple_to_isimple() [all …]
|
D | exoparg3.c | 159 char *buffer = NULL; in acpi_ex_opcode_3A_1T_1R() local 207 buffer = ACPI_ALLOCATE_ZEROED((acpi_size) length + 1); in acpi_ex_opcode_3A_1T_1R() 208 if (!buffer) { in acpi_ex_opcode_3A_1T_1R() 222 buffer = ACPI_ALLOCATE_ZEROED(length); in acpi_ex_opcode_3A_1T_1R() 223 if (!buffer) { in acpi_ex_opcode_3A_1T_1R() 236 if (buffer) { in acpi_ex_opcode_3A_1T_1R() 240 memcpy(buffer, operand[0]->string.pointer + index, in acpi_ex_opcode_3A_1T_1R() 246 return_desc->string.pointer = buffer; in acpi_ex_opcode_3A_1T_1R() 251 return_desc->buffer.flags |= AOPOBJ_DATA_VALID; in acpi_ex_opcode_3A_1T_1R()
|
D | exconvrt.c | 97 pointer = obj_desc->buffer.pointer; in acpi_ex_convert_to_integer() 98 count = obj_desc->buffer.length; in acpi_ex_convert_to_integer() 229 new_buf = return_desc->buffer.pointer; in acpi_ex_convert_to_buffer() 253 new_buf = return_desc->buffer.pointer; in acpi_ex_convert_to_buffer() 448 new_buf = return_desc->buffer.pointer; in acpi_ex_convert_to_string() 479 for (i = 0; i < obj_desc->buffer.length; i++) { in acpi_ex_convert_to_string() 480 if (obj_desc->buffer.pointer[i] >= 100) { in acpi_ex_convert_to_string() 482 } else if (obj_desc->buffer.pointer[i] >= 10) { in acpi_ex_convert_to_string() 497 string_length = (obj_desc->buffer.length * 3); in acpi_ex_convert_to_string() 505 string_length = (obj_desc->buffer.length * 3); in acpi_ex_convert_to_string() [all …]
|
/linux-4.4.14/sound/firewire/dice/ |
D | dice-proc.c | 12 static int dice_proc_read_mem(struct snd_dice *dice, void *buffer, in dice_proc_read_mem() argument 20 buffer, 4 * quadlets, 0); in dice_proc_read_mem() 25 be32_to_cpus(&((u32 *)buffer)[i]); in dice_proc_read_mem() 58 struct snd_info_buffer *buffer) in dice_proc_read() argument 120 snd_iprintf(buffer, "sections:\n"); in dice_proc_read() 122 snd_iprintf(buffer, " %s: offset %u, size %u\n", in dice_proc_read() 129 snd_iprintf(buffer, "global:\n"); in dice_proc_read() 130 snd_iprintf(buffer, " owner: %04x:%04x%08x\n", in dice_proc_read() 133 snd_iprintf(buffer, " notification: %08x\n", buf.global.notification); in dice_proc_read() 135 snd_iprintf(buffer, " nick name: %s\n", buf.global.nick_name); in dice_proc_read() [all …]
|
D | dice-transaction.c | 236 __be64 *buffer; in register_notification_address() local 242 buffer = kmalloc(2 * 8, GFP_KERNEL); in register_notification_address() 243 if (!buffer) in register_notification_address() 247 buffer[0] = cpu_to_be64(OWNER_NO_OWNER); in register_notification_address() 248 buffer[1] = cpu_to_be64( in register_notification_address() 258 buffer, 2 * 8, in register_notification_address() 263 if (buffer[0] == cpu_to_be64(OWNER_NO_OWNER)) in register_notification_address() 266 if (buffer[0] == buffer[1]) in register_notification_address() 279 kfree(buffer); in register_notification_address() 290 __be64 *buffer; in unregister_notification_address() local [all …]
|
/linux-4.4.14/arch/ia64/sn/kernel/ |
D | klconflib.c | 44 format_module_id(char *buffer, moduleid_t m, int fmt) in format_module_id() argument 84 *buffer++ = '0' + RACK_GET_CLASS(rack); in format_module_id() 85 *buffer++ = '0' + RACK_GET_GROUP(rack); in format_module_id() 86 *buffer++ = '0' + RACK_GET_NUM(rack); in format_module_id() 89 *buffer++ = brickchar; in format_module_id() 94 strcpy(buffer, "rack" "/"); buffer += strlen(buffer); in format_module_id() 96 *buffer++ = '0' + RACK_GET_CLASS(rack); in format_module_id() 97 *buffer++ = '0' + RACK_GET_GROUP(rack); in format_module_id() 98 *buffer++ = '0' + RACK_GET_NUM(rack); in format_module_id() 100 strcpy(buffer, "/" "bay" "/"); buffer += strlen(buffer); in format_module_id() [all …]
|
/linux-4.4.14/fs/afs/ |
D | cache.c | 16 void *buffer, uint16_t buflen); 18 void *buffer, uint16_t buflen); 20 const void *buffer, 24 void *buffer, uint16_t buflen); 26 void *buffer, uint16_t buflen); 28 void *cookie_netfs_data, const void *buffer, uint16_t buflen); 31 void *buffer, uint16_t buflen); 34 void *buffer, uint16_t buflen); 38 void *buffer, uint16_t buflen); 40 const void *buffer, [all …]
|
/linux-4.4.14/drivers/firewire/ |
D | nosy.c | 62 } buffer[13]; member 119 struct packet_buffer buffer; member 127 packet_buffer_init(struct packet_buffer *buffer, size_t capacity) in packet_buffer_init() argument 129 buffer->data = kmalloc(capacity, GFP_KERNEL); in packet_buffer_init() 130 if (buffer->data == NULL) in packet_buffer_init() 132 buffer->head = (struct packet *) buffer->data; in packet_buffer_init() 133 buffer->tail = (struct packet *) buffer->data; in packet_buffer_init() 134 buffer->capacity = capacity; in packet_buffer_init() 135 buffer->lost_packet_count = 0; in packet_buffer_init() 136 atomic_set(&buffer->size, 0); in packet_buffer_init() [all …]
|
D | core-iso.c | 42 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 …]
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
D | tx.c | 45 return &tx_queue->buffer[efx_tx_queue_get_insert_index(tx_queue)]; in __efx_tx_queue_get_insert_buffer() 51 struct efx_tx_buffer *buffer = in efx_tx_queue_get_insert_buffer() local 54 EFX_BUG_ON_PARANOID(buffer->len); in efx_tx_queue_get_insert_buffer() 55 EFX_BUG_ON_PARANOID(buffer->flags); in efx_tx_queue_get_insert_buffer() 56 EFX_BUG_ON_PARANOID(buffer->unmap_len); in efx_tx_queue_get_insert_buffer() 58 return buffer; in efx_tx_queue_get_insert_buffer() 62 struct efx_tx_buffer *buffer, in efx_dequeue_buffer() argument 66 if (buffer->unmap_len) { in efx_dequeue_buffer() 68 dma_addr_t unmap_addr = buffer->dma_addr - buffer->dma_offset; in efx_dequeue_buffer() 69 if (buffer->flags & EFX_TX_BUF_MAP_SINGLE) in efx_dequeue_buffer() [all …]
|
/linux-4.4.14/drivers/usb/misc/ |
D | cytherm.c | 100 unsigned char *buffer; in set_brightness() local 103 buffer = kmalloc(8, GFP_KERNEL); in set_brightness() 104 if (!buffer) { in set_brightness() 118 cytherm->brightness, buffer, 8); in set_brightness() 123 0x01, buffer, 8); in set_brightness() 127 kfree(buffer); in set_brightness() 146 unsigned char *buffer; in show_temp() local 150 buffer = kmalloc(8, GFP_KERNEL); in show_temp() 151 if (!buffer) { in show_temp() 157 retval = vendor_command(cytherm->udev, READ_RAM, TEMP, 0, buffer, 8); in show_temp() [all …]
|
D | usbled.c | 71 unsigned char *buffer; in change_color() local 74 buffer = kmalloc(8, GFP_KERNEL); in change_color() 75 if (!buffer) { in change_color() 100 buffer, in change_color() 111 buffer[0] = led->red; in change_color() 112 buffer[1] = led->green; in change_color() 113 buffer[2] = led->blue; in change_color() 114 buffer[3] = buffer[4] = buffer[5] = 0; in change_color() 115 buffer[6] = 0x1a; in change_color() 116 buffer[7] = 0x05; in change_color() [all …]
|
D | rio500.c | 117 unsigned char *buffer; in ioctl_rio() local 142 buffer = (unsigned char *) __get_free_page(GFP_KERNEL); in ioctl_rio() 143 if (buffer == NULL) { in ioctl_rio() 147 if (copy_from_user(buffer, rio_cmd.buffer, rio_cmd.length)) { in ioctl_rio() 149 free_page((unsigned long) buffer); in ioctl_rio() 167 rio_cmd.index, buffer, in ioctl_rio() 180 result, buffer[0]); in ioctl_rio() 181 if (copy_to_user(rio_cmd.buffer, buffer, in ioctl_rio() 183 free_page((unsigned long) buffer); in ioctl_rio() 198 free_page((unsigned long) buffer); in ioctl_rio() [all …]
|
/linux-4.4.14/sound/firewire/bebob/ |
D | bebob_proc.c | 37 struct snd_info_buffer *buffer) in proc_read_hw_info() argument 50 snd_iprintf(buffer, "Manufacturer:\t%.8s\n", in proc_read_hw_info() 52 snd_iprintf(buffer, "Protocol Ver:\t%d\n", info->protocol_ver); in proc_read_hw_info() 53 snd_iprintf(buffer, "Build Ver:\t%d\n", info->bld_ver); in proc_read_hw_info() 54 snd_iprintf(buffer, "GUID:\t\t0x%.8X%.8X\n", in proc_read_hw_info() 56 snd_iprintf(buffer, "Model ID:\t0x%02X\n", info->model_id); in proc_read_hw_info() 57 snd_iprintf(buffer, "Model Rev:\t%d\n", info->model_rev); in proc_read_hw_info() 58 snd_iprintf(buffer, "Firmware Date:\t%.8s\n", (char *)&info->fw_date); in proc_read_hw_info() 59 snd_iprintf(buffer, "Firmware Time:\t%.8s\n", (char *)&info->fw_time); in proc_read_hw_info() 60 snd_iprintf(buffer, "Firmware ID:\t0x%X\n", info->fw_id); in proc_read_hw_info() [all …]
|
/linux-4.4.14/drivers/usb/storage/ |
D | option_ms.c | 50 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() 73 buffer, RESPONSE_LEN, NULL); in option_rezero() 78 buffer, 13, NULL); in option_rezero() 83 kfree(buffer); in option_rezero() 95 char *buffer; in option_inquiry() local 100 buffer = kzalloc(0x24, GFP_KERNEL); in option_inquiry() [all …]
|
/linux-4.4.14/include/linux/iio/ |
D | buffer.h | 43 int (*store_to)(struct iio_buffer *buffer, const void *data); 44 int (*read_first_n)(struct iio_buffer *buffer, 47 size_t (*data_available)(struct iio_buffer *buffer); 49 int (*request_update)(struct iio_buffer *buffer); 51 int (*set_bytes_per_datum)(struct iio_buffer *buffer, size_t bpd); 52 int (*set_length)(struct iio_buffer *buffer, int length); 54 void (*release)(struct iio_buffer *buffer); 116 void iio_buffer_init(struct iio_buffer *buffer); 119 struct iio_buffer *buffer, int bit); 158 struct iio_buffer *iio_buffer_get(struct iio_buffer *buffer); [all …]
|
/linux-4.4.14/drivers/misc/ibmasm/ |
D | event.c | 59 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 …]
|
D | dot_command.h | 53 static inline size_t get_dot_command_size(void *buffer) in get_dot_command_size() argument 55 struct dot_command_header *cmd = (struct dot_command_header *)buffer; in get_dot_command_size() 59 static inline unsigned int get_dot_command_timeout(void *buffer) in get_dot_command_timeout() argument 61 struct dot_command_header *header = (struct dot_command_header *)buffer; in get_dot_command_timeout() 62 unsigned char *cmd = buffer + sizeof(struct dot_command_header); in get_dot_command_timeout()
|
/linux-4.4.14/sound/pci/ac97/ |
D | ac97_proc.c | 37 static void snd_ac97_proc_read_functions(struct snd_ac97 *ac97, struct snd_info_buffer *buffer) in snd_ac97_proc_read_functions() argument 57 snd_iprintf(buffer, "\n Gain Inverted Buffer delay Location\n"); in snd_ac97_proc_read_functions() 61 snd_iprintf(buffer, "%-17s: %3d.%d dBV %c %2d/fs %s\n", in snd_ac97_proc_read_functions() 107 static void snd_ac97_proc_read_main(struct snd_ac97 *ac97, struct snd_info_buffer *buffer, int subi… in snd_ac97_proc_read_main() argument 117 snd_iprintf(buffer, "%d-%d/%d: %s\n\n", ac97->addr, ac97->num, subidx, name); in snd_ac97_proc_read_main() 122 snd_iprintf(buffer, "PCI Subsys Vendor: 0x%04x\n", in snd_ac97_proc_read_main() 124 snd_iprintf(buffer, "PCI Subsys Device: 0x%04x\n\n", in snd_ac97_proc_read_main() 127 snd_iprintf(buffer, "Flags: %x\n", ac97->flags); in snd_ac97_proc_read_main() 134 snd_iprintf(buffer, "Revision : 0x%02x\n", tmp & 0xff); in snd_ac97_proc_read_main() 135 snd_iprintf(buffer, "Compat. Class : 0x%02x\n", (tmp >> 8) & 0x1f); in snd_ac97_proc_read_main() [all …]
|
/linux-4.4.14/drivers/iio/buffer/ |
D | industrialio-buffer-cb.c | 17 struct iio_buffer buffer; member 23 static struct iio_cb_buffer *buffer_to_cb_buffer(struct iio_buffer *buffer) in buffer_to_cb_buffer() argument 25 return container_of(buffer, struct iio_cb_buffer, buffer); in buffer_to_cb_buffer() 28 static int iio_buffer_cb_store_to(struct iio_buffer *buffer, const void *data) in iio_buffer_cb_store_to() argument 30 struct iio_cb_buffer *cb_buff = buffer_to_cb_buffer(buffer); in iio_buffer_cb_store_to() 34 static void iio_buffer_cb_release(struct iio_buffer *buffer) in iio_buffer_cb_release() argument 36 struct iio_cb_buffer *cb_buff = buffer_to_cb_buffer(buffer); in iio_buffer_cb_release() 37 kfree(cb_buff->buffer.scan_mask); in iio_buffer_cb_release() 62 iio_buffer_init(&cb_buff->buffer); in iio_channel_get_all_cb() 66 cb_buff->buffer.access = &iio_cb_access; in iio_channel_get_all_cb() [all …]
|
D | industrialio-triggered-buffer.c | 49 struct iio_buffer *buffer; in iio_triggered_buffer_setup() local 52 buffer = iio_kfifo_allocate(); in iio_triggered_buffer_setup() 53 if (!buffer) { in iio_triggered_buffer_setup() 58 iio_device_attach_buffer(indio_dev, buffer); in iio_triggered_buffer_setup() 84 iio_kfifo_free(indio_dev->buffer); in iio_triggered_buffer_setup() 97 iio_kfifo_free(indio_dev->buffer); in iio_triggered_buffer_cleanup()
|
D | kfifo_buf.c | 13 struct iio_buffer buffer; member 19 #define iio_to_kfifo(r) container_of(r, struct iio_kfifo, buffer) 39 ret = __iio_allocate_kfifo(buf, buf->buffer.bytes_per_datum, in iio_request_update_kfifo() 40 buf->buffer.length); in iio_request_update_kfifo() 122 static void iio_kfifo_buffer_release(struct iio_buffer *buffer) in iio_kfifo_buffer_release() argument 124 struct iio_kfifo *kf = iio_to_kfifo(buffer); in iio_kfifo_buffer_release() 152 iio_buffer_init(&kf->buffer); in iio_kfifo_allocate() 153 kf->buffer.access = &kfifo_access_funcs; in iio_kfifo_allocate() 154 kf->buffer.length = 2; in iio_kfifo_allocate() 157 return &kf->buffer; in iio_kfifo_allocate()
|
/linux-4.4.14/block/partitions/ |
D | ldm.c | 687 static int ldm_relative(const u8 *buffer, int buflen, int base, int offset) in ldm_relative() argument 691 if (!buffer || offset < 0 || base > buflen) { in ldm_relative() 692 if (!buffer) in ldm_relative() 700 if (base + buffer[base] >= buflen) { in ldm_relative() 702 buffer[base], buflen); in ldm_relative() 705 return buffer[base] + offset + 1; in ldm_relative() 758 static int ldm_get_vstr (const u8 *block, u8 *buffer, int buflen) in ldm_get_vstr() argument 762 BUG_ON (!block || !buffer); in ldm_get_vstr() 769 memcpy (buffer, block + 1, length); in ldm_get_vstr() 770 buffer[length] = 0; in ldm_get_vstr() [all …]
|
/linux-4.4.14/include/asm-generic/ |
D | io.h | 220 static inline void readsb(const volatile void __iomem *addr, void *buffer, in readsb() argument 224 u8 *buf = buffer; in readsb() 236 static inline void readsw(const volatile void __iomem *addr, void *buffer, in readsw() argument 240 u16 *buf = buffer; in readsw() 252 static inline void readsl(const volatile void __iomem *addr, void *buffer, in readsl() argument 256 u32 *buf = buffer; in readsl() 269 static inline void readsq(const volatile void __iomem *addr, void *buffer, in readsq() argument 273 u64 *buf = buffer; in readsq() 286 static inline void writesb(volatile void __iomem *addr, const void *buffer, in writesb() argument 290 const u8 *buf = buffer; in writesb() [all …]
|
/linux-4.4.14/sound/isa/gus/ |
D | gus_dram.c | 33 char buffer[256], *pbuffer; in snd_gus_dram_poke() local 36 size1 = size > sizeof(buffer) ? sizeof(buffer) : size; in snd_gus_dram_poke() 37 if (copy_from_user(buffer, _buffer, size1)) in snd_gus_dram_poke() 43 outsb(GUSP(gus, DRAM), buffer, size1); in snd_gus_dram_poke() 47 pbuffer = buffer; in snd_gus_dram_poke() 59 int snd_gus_dram_write(struct snd_gus_card *gus, char __user *buffer, in snd_gus_dram_write() argument 62 return snd_gus_dram_poke(gus, buffer, address, size); in snd_gus_dram_write() 71 char buffer[256], *pbuffer; in snd_gus_dram_peek() local 74 size1 = size > sizeof(buffer) ? sizeof(buffer) : size; in snd_gus_dram_peek() 79 insb(GUSP(gus, DRAM), buffer, size1); in snd_gus_dram_peek() [all …]
|
D | gus_irq.c | 118 struct snd_info_buffer *buffer) in snd_gus_irq_info_read() argument 125 snd_iprintf(buffer, "midi out = %u\n", gus->gf1.interrupt_stat_midi_out); in snd_gus_irq_info_read() 126 snd_iprintf(buffer, "midi in = %u\n", gus->gf1.interrupt_stat_midi_in); in snd_gus_irq_info_read() 127 snd_iprintf(buffer, "timer1 = %u\n", gus->gf1.interrupt_stat_timer1); in snd_gus_irq_info_read() 128 snd_iprintf(buffer, "timer2 = %u\n", gus->gf1.interrupt_stat_timer2); in snd_gus_irq_info_read() 129 snd_iprintf(buffer, "dma write = %u\n", gus->gf1.interrupt_stat_dma_write); in snd_gus_irq_info_read() 130 snd_iprintf(buffer, "dma read = %u\n", gus->gf1.interrupt_stat_dma_read); in snd_gus_irq_info_read() 131 snd_iprintf(buffer, "voice lost = %u\n", gus->gf1.interrupt_stat_voice_lost); in snd_gus_irq_info_read() 134 snd_iprintf(buffer, "voice %i: wave = %u, volume = %u\n", in snd_gus_irq_info_read()
|
D | gus_mem.c | 30 struct snd_info_buffer *buffer); 289 struct snd_info_buffer *buffer) in snd_gf1_mem_info_read() argument 300 snd_iprintf(buffer, "8-bit banks : \n "); in snd_gf1_mem_info_read() 302 …snd_iprintf(buffer, "0x%06x (%04ik)%s", alloc->banks_8[i].address, alloc->banks_8[i].size >> 10, i… in snd_gf1_mem_info_read() 303 snd_iprintf(buffer, "\n" in snd_gf1_mem_info_read() 306 …snd_iprintf(buffer, "0x%06x (%04ik)%s", alloc->banks_16[i].address, alloc->banks_16[i].size >> 10,… in snd_gf1_mem_info_read() 309 snd_iprintf(buffer, "\n"); in snd_gf1_mem_info_read() 313 …snd_iprintf(buffer, "Block %i at 0x%lx onboard 0x%x size %i (0x%x):\n", i, (long) block, block->pt… in snd_gf1_mem_info_read() 317 snd_iprintf(buffer, " Share : %i [id0 0x%x] [id1 0x%x] [id2 0x%x] [id3 0x%x]\n", in snd_gf1_mem_info_read() 321 snd_iprintf(buffer, " Flags :%s\n", in snd_gf1_mem_info_read() [all …]
|
/linux-4.4.14/arch/tile/include/asm/ |
D | cacheflush.h | 79 static inline void __flush_buffer(void *buffer, size_t size) in __flush_buffer() argument 81 char *next = (char *)((long)buffer & -L2_CACHE_BYTES); in __flush_buffer() 82 char *finish = (char *)L2_CACHE_ALIGN((long)buffer + size); in __flush_buffer() 90 static inline void __finv_buffer(void *buffer, size_t size) in __finv_buffer() argument 92 char *next = (char *)((long)buffer & -L2_CACHE_BYTES); in __finv_buffer() 93 char *finish = (char *)L2_CACHE_ALIGN((long)buffer + size); in __finv_buffer() 105 static inline void flush_buffer_local(void *buffer, size_t size) in flush_buffer_local() argument 107 __flush_buffer(buffer, size); in flush_buffer_local() 115 static inline void finv_buffer_local(void *buffer, size_t size) in finv_buffer_local() argument 117 __finv_buffer(buffer, size); in finv_buffer_local() [all …]
|
D | io.h | 322 static inline void insb(unsigned long addr, void *buffer, int count) in insb() argument 325 u8 *buf = buffer; in insb() 333 static inline void insw(unsigned long addr, void *buffer, int count) in insw() argument 336 u16 *buf = buffer; in insw() 344 static inline void insl(unsigned long addr, void *buffer, int count) in insl() argument 347 u32 *buf = buffer; in insl() 355 static inline void outsb(unsigned long addr, const void *buffer, int count) in outsb() argument 358 const u8 *buf = buffer; in outsb() 365 static inline void outsw(unsigned long addr, const void *buffer, int count) in outsw() argument 368 const u16 *buf = buffer; in outsw() [all …]
|
/linux-4.4.14/drivers/media/usb/uvc/ |
D | uvc_driver.c | 333 __u32 **intervals, unsigned char *buffer, int buflen) in uvc_parse_format() argument 339 const unsigned char *start = buffer; in uvc_parse_format() 345 format->type = buffer[2]; in uvc_parse_format() 346 format->index = buffer[3]; in uvc_parse_format() 348 switch (buffer[2]) { in uvc_parse_format() 351 n = buffer[2] == UVC_VS_FORMAT_UNCOMPRESSED ? 27 : 28; in uvc_parse_format() 361 fmtdesc = uvc_format_by_guid(&buffer[5]); in uvc_parse_format() 369 &buffer[5]); in uvc_parse_format() 371 &buffer[5]); in uvc_parse_format() 375 format->bpp = buffer[21]; in uvc_parse_format() [all …]
|
/linux-4.4.14/drivers/xen/ |
D | sys-hypervisor.c | 41 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() 59 static ssize_t major_show(struct hyp_sysfs_attr *attr, char *buffer) in major_show() argument 63 return sprintf(buffer, "%d\n", version >> 16); in major_show() 69 static ssize_t minor_show(struct hyp_sysfs_attr *attr, char *buffer) in minor_show() argument 73 return sprintf(buffer, "%d\n", version & 0xff); in minor_show() 79 static ssize_t extra_show(struct hyp_sysfs_attr *attr, char *buffer) in extra_show() argument 88 ret = sprintf(buffer, "%s\n", extra); in extra_show() 121 static ssize_t uuid_show_fallback(struct hyp_sysfs_attr *attr, char *buffer) in uuid_show_fallback() argument 137 ret = sprintf(buffer, "%s\n", val); in uuid_show_fallback() [all …]
|
D | xen-acpi-cpuhotplug.c | 48 struct acpi_buffer buffer = { sizeof(union acpi_object), &object }; in xen_acpi_processor_enable() local 53 status = acpi_evaluate_object(pr->handle, NULL, NULL, &buffer); in xen_acpi_processor_enable() 151 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in xen_apic_id() local 156 if (ACPI_FAILURE(acpi_evaluate_object(handle, "_MAT", NULL, &buffer))) in xen_apic_id() 159 if (!buffer.length || !buffer.pointer) in xen_apic_id() 162 obj = buffer.pointer; in xen_apic_id() 164 obj->buffer.length < sizeof(*lapic)) { in xen_apic_id() 165 kfree(buffer.pointer); in xen_apic_id() 169 lapic = (struct acpi_madt_local_apic *)obj->buffer.pointer; in xen_apic_id() 173 kfree(buffer.pointer); in xen_apic_id() [all …]
|
/linux-4.4.14/kernel/trace/ |
D | ring_buffer.c | 271 #define for_each_buffer_cpu(buffer, cpu) \ argument 272 for_each_cpu(cpu, buffer->cpumask) 436 struct ring_buffer *buffer; member 526 int ring_buffer_wait(struct ring_buffer *buffer, int cpu, bool full) in ring_buffer_wait() argument 539 work = &buffer->irq_work; in ring_buffer_wait() 543 if (!cpumask_test_cpu(cpu, buffer->cpumask)) in ring_buffer_wait() 545 cpu_buffer = buffer->buffers[cpu]; in ring_buffer_wait() 586 if (cpu == RING_BUFFER_ALL_CPUS && !ring_buffer_empty(buffer)) in ring_buffer_wait() 590 !ring_buffer_empty_cpu(buffer, cpu)) { in ring_buffer_wait() 630 int ring_buffer_poll_wait(struct ring_buffer *buffer, int cpu, in ring_buffer_poll_wait() argument [all …]
|
D | trace.c | 312 struct ring_buffer *buffer, in filter_check_discard() argument 317 ring_buffer_discard_commit(buffer, event); in filter_check_discard() 326 struct ring_buffer *buffer, in call_filter_check_discard() argument 331 ring_buffer_discard_commit(buffer, event); in call_filter_check_discard() 344 if (!buf->buffer) in buffer_ftrace_now() 347 ts = ring_buffer_time_stamp(buf->buffer, cpu); in buffer_ftrace_now() 348 ring_buffer_normalize_time_stamp(buf->buffer, cpu, &ts); in buffer_ftrace_now() 483 static void __ftrace_trace_stack(struct ring_buffer *buffer, 487 struct ring_buffer *buffer, 492 static inline void __ftrace_trace_stack(struct ring_buffer *buffer, in __ftrace_trace_stack() argument [all …]
|
D | ring_buffer_benchmark.c | 30 static struct ring_buffer *buffer; variable 89 event = ring_buffer_consume(buffer, cpu, &ts, NULL); in read_event() 114 bpage = ring_buffer_alloc_read_page(buffer, cpu); in read_page() 118 ret = ring_buffer_read_page(buffer, &bpage, PAGE_SIZE, cpu, 1); in read_page() 173 ring_buffer_free_read_page(buffer, bpage); in read_page() 252 event = ring_buffer_lock_reserve(buffer, 10); in ring_buffer_producer() 259 ring_buffer_unlock_commit(buffer, event); in ring_buffer_producer() 297 entries = ring_buffer_entries(buffer); in ring_buffer_producer() 298 overruns = ring_buffer_overruns(buffer); in ring_buffer_producer() 402 ring_buffer_reset(buffer); in ring_buffer_producer_thread() [all …]
|
/linux-4.4.14/drivers/acpi/ |
D | utils.c | 44 struct acpi_buffer buffer = {sizeof(prefix), prefix}; in acpi_util_eval_error() local 45 acpi_get_name(h, ACPI_FULL_PATHNAME, &buffer); in acpi_util_eval_error() 55 struct acpi_buffer *format, struct acpi_buffer *buffer) in acpi_extract_package() argument 77 if (!buffer) { in acpi_extract_package() 135 sizeof(u8 *) + element->buffer.length; in acpi_extract_package() 177 if (buffer->length == ACPI_ALLOCATE_BUFFER) { in acpi_extract_package() 178 buffer->pointer = ACPI_ALLOCATE_ZEROED(size_required); in acpi_extract_package() 179 if (!buffer->pointer) in acpi_extract_package() 181 buffer->length = size_required; in acpi_extract_package() 183 if (buffer->length < size_required) { in acpi_extract_package() [all …]
|
D | processor_core.c | 150 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in map_mat_entry() local 155 if (ACPI_FAILURE(acpi_evaluate_object(handle, "_MAT", NULL, &buffer))) in map_mat_entry() 158 if (!buffer.length || !buffer.pointer) in map_mat_entry() 161 obj = buffer.pointer; in map_mat_entry() 163 obj->buffer.length < sizeof(struct acpi_subtable_header)) { in map_mat_entry() 167 header = (struct acpi_subtable_header *)obj->buffer.pointer; in map_mat_entry() 178 kfree(buffer.pointer); in map_mat_entry() 294 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in parse_mat_ioapic_entry() local 299 if (ACPI_FAILURE(acpi_evaluate_object(handle, "_MAT", NULL, &buffer))) in parse_mat_ioapic_entry() 302 if (!buffer.length || !buffer.pointer) in parse_mat_ioapic_entry() [all …]
|
D | processor_pdc.c | 29 struct acpi_buffer buffer = { sizeof(union acpi_object), &object }; in processor_physically_present() local 37 status = acpi_evaluate_object(handle, NULL, NULL, &buffer); in processor_physically_present() 97 obj->buffer.length = 12; in acpi_processor_alloc_pdc() 98 obj->buffer.pointer = (u8 *) buf; in acpi_processor_alloc_pdc() 124 u32 *buffer = NULL; in acpi_processor_eval_pdc() local 127 buffer = (u32 *)(obj->buffer.pointer); in acpi_processor_eval_pdc() 128 buffer[2] &= ~(ACPI_PDC_C_C2C3_FFH | ACPI_PDC_C_C1_FFH); in acpi_processor_eval_pdc() 153 kfree(obj_list->pointer->buffer.pointer); in acpi_processor_set_pdc()
|
D | sysfs.c | 105 static int param_get_debug_layer(char *buffer, const struct kernel_param *kp) in param_get_debug_layer() argument 110 result = sprintf(buffer, "%-25s\tHex SET\n", "Description"); in param_get_debug_layer() 113 result += sprintf(buffer + result, "%-25s\t0x%08lX [%c]\n", in param_get_debug_layer() 120 sprintf(buffer + result, "%-25s\t0x%08X [%c]\n", "ACPI_ALL_DRIVERS", in param_get_debug_layer() 126 sprintf(buffer + result, in param_get_debug_layer() 133 static int param_get_debug_level(char *buffer, const struct kernel_param *kp) in param_get_debug_level() argument 138 result = sprintf(buffer, "%-25s\tHex SET\n", "Description"); in param_get_debug_level() 141 result += sprintf(buffer + result, "%-25s\t0x%08lX [%c]\n", in param_get_debug_level() 148 sprintf(buffer + result, "--\ndebug_level = 0x%08X (* = enabled)\n", in param_get_debug_level() 211 static int param_get_trace_method_name(char *buffer, const struct kernel_param *kp) in param_get_trace_method_name() argument [all …]
|
/linux-4.4.14/kernel/debug/kdb/ |
D | kdb_io.c | 34 static int kgdb_transition_check(char *buffer) in kgdb_transition_check() argument 36 if (buffer[0] != '+' && buffer[0] != '$') { in kgdb_transition_check() 38 kdb_printf("%s", buffer); in kgdb_transition_check() 40 int slen = strlen(buffer); in kgdb_transition_check() 41 if (slen > 3 && buffer[slen - 3] == '#') { in kgdb_transition_check() 42 kdb_gdb_state_pass(buffer); in kgdb_transition_check() 43 strcpy(buffer, "kgdb"); in kgdb_transition_check() 51 static int kdb_read_get_key(char *buffer, size_t bufsize) in kdb_read_get_key() argument 89 *buffer++ = key; in kdb_read_get_key() 90 *buffer = '\0'; in kdb_read_get_key() [all …]
|
/linux-4.4.14/drivers/input/ |
D | input-compat.c | 17 int input_event_from_user(const char __user *buffer, in input_event_from_user() argument 23 if (copy_from_user(&compat_event, buffer, in input_event_from_user() 34 if (copy_from_user(event, buffer, sizeof(struct input_event))) in input_event_from_user() 41 int input_event_to_user(char __user *buffer, in input_event_to_user() argument 53 if (copy_to_user(buffer, &compat_event, in input_event_to_user() 58 if (copy_to_user(buffer, event, sizeof(struct input_event))) in input_event_to_user() 65 int input_ff_effect_from_user(const char __user *buffer, size_t size, in input_ff_effect_from_user() argument 81 if (copy_from_user(compat_effect, buffer, in input_ff_effect_from_user() 93 if (copy_from_user(effect, buffer, sizeof(struct ff_effect))) in input_ff_effect_from_user() 102 int input_event_from_user(const char __user *buffer, in input_event_from_user() argument [all …]
|
/linux-4.4.14/drivers/media/radio/ |
D | radio-ma901.c | 92 u8 *buffer; member 111 radio->buffer[0] = 0x0a; in ma901radio_set_freq() 112 radio->buffer[1] = MA901_RADIO_SET_FREQ; in ma901radio_set_freq() 113 radio->buffer[2] = ((freq_send >> 8) & 0xff) + 0x80; in ma901radio_set_freq() 114 radio->buffer[3] = freq_send & 0xff; in ma901radio_set_freq() 115 radio->buffer[4] = 0x00; in ma901radio_set_freq() 116 radio->buffer[5] = 0x00; in ma901radio_set_freq() 117 radio->buffer[6] = 0x00; in ma901radio_set_freq() 118 radio->buffer[7] = 0x00; in ma901radio_set_freq() 122 radio->buffer, BUFFER_LENGTH, USB_TIMEOUT); in ma901radio_set_freq() [all …]
|
D | radio-keene.c | 68 u8 *buffer; member 88 radio->buffer[0] = 0x00; in keene_cmd_main() 89 radio->buffer[1] = 0x50; in keene_cmd_main() 90 radio->buffer[2] = (freq_send >> 8) & 0xff; in keene_cmd_main() 91 radio->buffer[3] = freq_send & 0xff; in keene_cmd_main() 92 radio->buffer[4] = radio->pa; in keene_cmd_main() 98 radio->buffer[5] = (radio->muted ? 4 : 8) | (play ? 1 : 2) | in keene_cmd_main() 100 radio->buffer[6] = 0x00; in keene_cmd_main() 101 radio->buffer[7] = 0x00; in keene_cmd_main() 104 9, 0x21, 0x200, 2, radio->buffer, BUFFER_LENGTH, USB_TIMEOUT); in keene_cmd_main() [all …]
|
D | radio-mr800.c | 136 u8 *buffer; member 154 radio->buffer[0] = 0x00; in amradio_send_cmd() 155 radio->buffer[1] = 0x55; in amradio_send_cmd() 156 radio->buffer[2] = 0xaa; in amradio_send_cmd() 157 radio->buffer[3] = extralen; in amradio_send_cmd() 158 radio->buffer[4] = cmd; in amradio_send_cmd() 159 radio->buffer[5] = arg; in amradio_send_cmd() 160 radio->buffer[6] = 0x00; in amradio_send_cmd() 161 radio->buffer[7] = extra || reply ? 8 : 0; in amradio_send_cmd() 164 radio->buffer, BUFFER_LENGTH, &size, USB_TIMEOUT); in amradio_send_cmd() [all …]
|
D | radio-raremono.c | 123 u8 *buffer; member 151 radio->buffer[0] = 0x04 + band_offset; in raremono_cmd_main() 152 radio->buffer[1] = freq >> 8; in raremono_cmd_main() 153 radio->buffer[2] = freq & 0xff; in raremono_cmd_main() 158 0x0300 + radio->buffer[0], 2, in raremono_cmd_main() 159 radio->buffer, 3, USB_TIMEOUT); in raremono_cmd_main() 235 memset(radio->buffer, 1, BUFFER_LENGTH); in vidioc_g_tuner() 237 1, 0xa1, 0x030d, 2, radio->buffer, BUFFER_LENGTH, USB_TIMEOUT); in vidioc_g_tuner() 243 v->signal = ((radio->buffer[1] & 0xf) << 8 | radio->buffer[2]) << 4; in vidioc_g_tuner() 312 radio->buffer = devm_kmalloc(&intf->dev, BUFFER_LENGTH, GFP_KERNEL); in usb_raremono_probe() [all …]
|
/linux-4.4.14/drivers/platform/x86/ |
D | dell-laptop.c | 309 static struct calling_interface_buffer *buffer; variable 314 memset(buffer, 0, sizeof(struct calling_interface_buffer)); in clear_buffer() 396 dell_send_request(struct calling_interface_buffer *buffer, int class, in dell_send_request() argument 404 command.ebx = virt_to_phys(buffer); in dell_send_request() 407 buffer->class = class; in dell_send_request() 408 buffer->select = select; in dell_send_request() 412 return buffer; in dell_send_request() 560 dell_send_request(buffer, 17, 11); in dell_rfkill_set() 561 ret = buffer->output[0]; in dell_rfkill_set() 562 status = buffer->output[1]; in dell_rfkill_set() [all …]
|
D | dell-wmi-aio.c | 72 static bool dell_wmi_aio_event_check(u8 *buffer, int length) in dell_wmi_aio_event_check() argument 74 struct dell_wmi_event *event = (struct dell_wmi_event *)buffer; in dell_wmi_aio_event_check() 111 if (dell_wmi_aio_event_check(obj->buffer.pointer, in dell_wmi_aio_notify() 112 obj->buffer.length)) { in dell_wmi_aio_notify() 114 obj->buffer.pointer; in dell_wmi_aio_notify() 119 if (obj->buffer.pointer && in dell_wmi_aio_notify() 120 obj->buffer.length > 0) in dell_wmi_aio_notify() 121 scancode = obj->buffer.pointer[0]; in dell_wmi_aio_notify()
|
/linux-4.4.14/sound/firewire/digi00x/ |
D | amdtp-dot.c | 53 __be32 *buffer, unsigned int frames); 105 static void dot_encode_step(struct dot_state *state, __be32 *const buffer) in dot_encode_step() argument 107 u8 * const data = (u8 *) buffer; in dot_encode_step() 155 __be32 *buffer, unsigned int frames) in write_pcm_s32() argument 167 buffer++; in write_pcm_s32() 170 buffer[c] = cpu_to_be32((*src >> 8) | 0x40000000); in write_pcm_s32() 171 dot_encode_step(&p->state, &buffer[c]); in write_pcm_s32() 174 buffer += s->data_block_quadlets; in write_pcm_s32() 181 __be32 *buffer, unsigned int frames) in write_pcm_s16() argument 193 buffer++; in write_pcm_s16() [all …]
|
/linux-4.4.14/fs/pstore/ |
D | ram_core.c | 42 return atomic_read(&prz->buffer->size); in buffer_size() 47 return atomic_read(&prz->buffer->start); in buffer_start() 57 old = atomic_read(&prz->buffer->start); in buffer_start_add_atomic() 61 } while (atomic_cmpxchg(&prz->buffer->start, old, new) != old); in buffer_start_add_atomic() 72 if (atomic_read(&prz->buffer->size) == prz->buffer_size) in buffer_size_add_atomic() 76 old = atomic_read(&prz->buffer->size); in buffer_size_add_atomic() 80 } while (atomic_cmpxchg(&prz->buffer->size, old, new) != old); in buffer_size_add_atomic() 94 old = atomic_read(&prz->buffer->start); in buffer_start_add_locked() 98 atomic_set(&prz->buffer->start, new); in buffer_start_add_locked() 114 old = atomic_read(&prz->buffer->size); in buffer_size_add_locked() [all …]
|
D | pmsg.c | 28 char *buffer; in write_pmsg() local 39 buffer = vmalloc(buffer_size); in write_pmsg() 40 if (!buffer) in write_pmsg() 49 ret = __copy_from_user(buffer, buf + i, c); in write_pmsg() 52 vfree(buffer); in write_pmsg() 55 psinfo->write_buf(PSTORE_TYPE_PMSG, 0, &id, 0, buffer, 0, c, in write_pmsg() 62 vfree(buffer); in write_pmsg()
|
/linux-4.4.14/sound/core/ |
D | info_oss.c | 91 struct snd_info_buffer *buffer) in snd_sndstat_proc_read() argument 93 snd_iprintf(buffer, "Sound Driver:3.8.1a-980706 (ALSA emulation code)\n"); in snd_sndstat_proc_read() 94 snd_iprintf(buffer, "Kernel: %s %s %s %s %s\n", in snd_sndstat_proc_read() 100 snd_iprintf(buffer, "Config options: 0\n"); in snd_sndstat_proc_read() 101 snd_iprintf(buffer, "\nInstalled drivers: \n"); in snd_sndstat_proc_read() 102 snd_iprintf(buffer, "Type 10: ALSA emulation\n"); in snd_sndstat_proc_read() 103 snd_iprintf(buffer, "\nCard config: \n"); in snd_sndstat_proc_read() 104 snd_card_info_read_oss(buffer); in snd_sndstat_proc_read() 105 snd_sndstat_show_strings(buffer, "Audio devices", SNDRV_OSS_INFO_DEV_AUDIO); in snd_sndstat_proc_read() 106 snd_sndstat_show_strings(buffer, "Synth devices", SNDRV_OSS_INFO_DEV_SYNTH); in snd_sndstat_proc_read() [all …]
|
D | pcm.c | 337 struct snd_info_buffer *buffer) in snd_pcm_proc_info_read() argument 351 snd_iprintf(buffer, "error %d\n", err); in snd_pcm_proc_info_read() 355 snd_iprintf(buffer, "card: %d\n", info->card); in snd_pcm_proc_info_read() 356 snd_iprintf(buffer, "device: %d\n", info->device); in snd_pcm_proc_info_read() 357 snd_iprintf(buffer, "subdevice: %d\n", info->subdevice); in snd_pcm_proc_info_read() 358 snd_iprintf(buffer, "stream: %s\n", snd_pcm_stream_name(info->stream)); in snd_pcm_proc_info_read() 359 snd_iprintf(buffer, "id: %s\n", info->id); in snd_pcm_proc_info_read() 360 snd_iprintf(buffer, "name: %s\n", info->name); in snd_pcm_proc_info_read() 361 snd_iprintf(buffer, "subname: %s\n", info->subname); in snd_pcm_proc_info_read() 362 snd_iprintf(buffer, "class: %d\n", info->dev_class); in snd_pcm_proc_info_read() [all …]
|
D | info.c | 162 static ssize_t snd_info_entry_read(struct file *file, char __user *buffer, in snd_info_entry_read() argument 178 file, buffer, size, pos); in snd_info_entry_read() 184 static ssize_t snd_info_entry_write(struct file *file, const char __user *buffer, in snd_info_entry_write() argument 199 file, buffer, count, pos); in snd_info_entry_write() 317 const char __user *buffer, in snd_info_text_entry_write() argument 342 char *nbuf = krealloc(buf->buffer, PAGE_ALIGN(next), in snd_info_text_entry_write() 348 buf->buffer = nbuf; in snd_info_text_entry_write() 351 if (copy_from_user(buf->buffer + pos, buffer, count)) { in snd_info_text_entry_write() 370 data->rbuffer->buffer = (char *)seq; /* XXX hack! */ in snd_info_seq_show() 423 kfree(data->wbuffer->buffer); in snd_info_text_entry_release() [all …]
|
/linux-4.4.14/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_topology.c | 487 #define sysfs_show_gen_prop(buffer, fmt, ...) \ argument 488 snprintf(buffer, PAGE_SIZE, "%s"fmt, buffer, __VA_ARGS__) 489 #define sysfs_show_32bit_prop(buffer, name, value) \ argument 490 sysfs_show_gen_prop(buffer, "%s %u\n", name, value) 491 #define sysfs_show_64bit_prop(buffer, name, value) \ argument 492 sysfs_show_gen_prop(buffer, "%s %llu\n", name, value) 493 #define sysfs_show_32bit_val(buffer, value) \ argument 494 sysfs_show_gen_prop(buffer, "%u\n", value) 495 #define sysfs_show_str_val(buffer, value) \ argument 496 sysfs_show_gen_prop(buffer, "%s\n", value) [all …]
|
/linux-4.4.14/drivers/gpu/drm/omapdrm/ |
D | omap_gem_dmabuf.c | 71 static void omap_gem_dmabuf_release(struct dma_buf *buffer) in omap_gem_dmabuf_release() argument 73 struct drm_gem_object *obj = buffer->priv; in omap_gem_dmabuf_release() 81 static int omap_gem_dmabuf_begin_cpu_access(struct dma_buf *buffer, in omap_gem_dmabuf_begin_cpu_access() argument 84 struct drm_gem_object *obj = buffer->priv; in omap_gem_dmabuf_begin_cpu_access() 96 static void omap_gem_dmabuf_end_cpu_access(struct dma_buf *buffer, in omap_gem_dmabuf_end_cpu_access() argument 99 struct drm_gem_object *obj = buffer->priv; in omap_gem_dmabuf_end_cpu_access() 104 static void *omap_gem_dmabuf_kmap_atomic(struct dma_buf *buffer, in omap_gem_dmabuf_kmap_atomic() argument 107 struct drm_gem_object *obj = buffer->priv; in omap_gem_dmabuf_kmap_atomic() 114 static void omap_gem_dmabuf_kunmap_atomic(struct dma_buf *buffer, in omap_gem_dmabuf_kunmap_atomic() argument 120 static void *omap_gem_dmabuf_kmap(struct dma_buf *buffer, in omap_gem_dmabuf_kmap() argument [all …]
|
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-debugfs.c | 124 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 …]
|
/linux-4.4.14/drivers/scsi/dpt/ |
D | sys_info.h | 90 uSHORT netInsert(dptBuffer_S *buffer); 91 uSHORT netExtract(dptBuffer_S *buffer); 168 uSHORT netInsert(dptBuffer_S *buffer); 169 uSHORT netExtract(dptBuffer_S *buffer); 209 uSHORT netInsert(dptBuffer_S *buffer); 210 uSHORT netExtract(dptBuffer_S *buffer); 257 uSHORT netInsert(dptBuffer_S *buffer); 258 uSHORT netExtract(dptBuffer_S *buffer); 291 uSHORT netInsert(dptBuffer_S *buffer); 292 uSHORT netExtract(dptBuffer_S *buffer); [all …]
|
/linux-4.4.14/scripts/gdb/linux/ |
D | utils.py | 90 def read_u16(buffer): argument 92 return ord(buffer[0]) + (ord(buffer[1]) << 8) 94 return ord(buffer[1]) + (ord(buffer[0]) << 8) 97 def read_u32(buffer): argument 99 return read_u16(buffer[0:2]) + (read_u16(buffer[2:4]) << 16) 101 return read_u16(buffer[2:4]) + (read_u16(buffer[0:2]) << 16) 104 def read_u64(buffer): argument 106 return read_u32(buffer[0:4]) + (read_u32(buffer[4:8]) << 32) 108 return read_u32(buffer[4:8]) + (read_u32(buffer[0:4]) << 32)
|
/linux-4.4.14/Documentation/ |
D | circular-buffers.txt | 16 buffer don't want to share a lock. 25 (*) What is a circular buffer? 38 First of all, what is a circular buffer? A circular buffer is a buffer of 42 buffer. 45 the buffer. 47 Typically when the tail pointer is equal to the head pointer, the buffer is 48 empty; and the buffer is full when the head pointer is one less than the tail 53 indices should be wrapped to 0 when they reach the end of the buffer, thus 54 allowing an infinite amount of data to flow through the buffer. 59 buffer, provided that neither index overtakes the other. The implementer must [all …]
|
D | dma-buf-sharing.txt | 9 buffer sharing API, how to use it for exporting and using shared buffers. 11 Any device driver which wishes to be a part of DMA buffer sharing, can do so as 15 exporter, and A as buffer-user. 18 - implements and manages operations[1] for the buffer 19 - allows other users to share the buffer by using dma_buf sharing APIs, 20 - manages the details of buffer allocation, 23 buffer, 25 The buffer-user 26 - is one of (many) sharing users of the buffer. 27 - doesn't need to worry about how the buffer is allocated, or where. [all …]
|
/linux-4.4.14/fs/xfs/libxfs/ |
D | xfs_cksum.h | 12 xfs_start_cksum(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum() argument 18 crc = crc32c(XFS_CRC_SEED, buffer, cksum_offset); in xfs_start_cksum() 24 return crc32c(crc, &buffer[cksum_offset + sizeof(__be32)], in xfs_start_cksum() 45 xfs_update_cksum(char *buffer, size_t length, unsigned long cksum_offset) in xfs_update_cksum() argument 47 __uint32_t crc = xfs_start_cksum(buffer, length, cksum_offset); in xfs_update_cksum() 49 *(__le32 *)(buffer + cksum_offset) = xfs_end_cksum(crc); in xfs_update_cksum() 56 xfs_verify_cksum(char *buffer, size_t length, unsigned long cksum_offset) in xfs_verify_cksum() argument 58 __uint32_t crc = xfs_start_cksum(buffer, length, cksum_offset); in xfs_verify_cksum() 60 return *(__le32 *)(buffer + cksum_offset) == xfs_end_cksum(crc); in xfs_verify_cksum()
|
/linux-4.4.14/sound/firewire/tascam/ |
D | amdtp-tascam.c | 20 __be32 *buffer, unsigned int frames); 42 __be32 *buffer, unsigned int frames) in write_pcm_s32() argument 56 buffer[c] = cpu_to_be32(*src); in write_pcm_s32() 59 buffer += s->data_block_quadlets; in write_pcm_s32() 67 __be32 *buffer, unsigned int frames) in write_pcm_s16() argument 81 buffer[c] = cpu_to_be32(*src << 16); in write_pcm_s16() 84 buffer += s->data_block_quadlets; in write_pcm_s16() 92 __be32 *buffer, unsigned int frames) in read_pcm_s32() argument 105 buffer += 1; in read_pcm_s32() 109 *dst = be32_to_cpu(buffer[c]); in read_pcm_s32() [all …]
|
/linux-4.4.14/tools/perf/util/ |
D | auxtrace.c | 222 struct auxtrace_buffer *buffer) in auxtrace_queues__add_buffer() argument 237 queue->tid = buffer->tid; in auxtrace_queues__add_buffer() 238 queue->cpu = buffer->cpu; in auxtrace_queues__add_buffer() 239 } else if (buffer->cpu != queue->cpu || buffer->tid != queue->tid) { in auxtrace_queues__add_buffer() 241 queue->cpu, queue->tid, buffer->cpu, buffer->tid); in auxtrace_queues__add_buffer() 245 buffer->buffer_nr = queues->next_buffer_nr++; in auxtrace_queues__add_buffer() 247 list_add_tail(&buffer->list, &queue->head); in auxtrace_queues__add_buffer() 260 struct auxtrace_buffer *buffer) in auxtrace_queues__split_buffer() argument 262 u64 sz = buffer->size; in auxtrace_queues__split_buffer() 268 b = memdup(buffer, sizeof(struct auxtrace_buffer)); in auxtrace_queues__split_buffer() [all …]
|
D | intel-bts.c | 74 struct auxtrace_buffer *buffer; member 194 if (!btsq->on_heap && !btsq->buffer) { in intel_bts_setup_queue() 197 btsq->buffer = auxtrace_buffer__next(queue, NULL); in intel_bts_setup_queue() 198 if (!btsq->buffer) in intel_bts_setup_queue() 202 btsq->buffer->reference); in intel_bts_setup_queue() 419 struct auxtrace_buffer *buffer) in intel_bts_process_buffer() argument 426 if (buffer->use_data) { in intel_bts_process_buffer() 427 sz = buffer->use_size; in intel_bts_process_buffer() 428 branch = buffer->use_data; in intel_bts_process_buffer() 430 sz = buffer->size; in intel_bts_process_buffer() [all …]
|
/linux-4.4.14/sound/firewire/ |
D | amdtp-am824.c | 43 __be32 *buffer, unsigned int frames); 156 __be32 *buffer, unsigned int frames) in write_pcm_s32() argument 170 buffer[p->pcm_positions[c]] = in write_pcm_s32() 174 buffer += s->data_block_quadlets; in write_pcm_s32() 182 __be32 *buffer, unsigned int frames) in write_pcm_s16() argument 196 buffer[p->pcm_positions[c]] = in write_pcm_s16() 200 buffer += s->data_block_quadlets; in write_pcm_s16() 208 __be32 *buffer, unsigned int frames) in read_pcm_s32() argument 222 *dst = be32_to_cpu(buffer[p->pcm_positions[c]]) << 8; in read_pcm_s32() 225 buffer += s->data_block_quadlets; in read_pcm_s32() [all …]
|
/linux-4.4.14/drivers/video/ |
D | hdmi.c | 46 static void hdmi_infoframe_set_checksum(void *buffer, size_t size) in hdmi_infoframe_set_checksum() argument 48 u8 *ptr = buffer; in hdmi_infoframe_set_checksum() 50 ptr[3] = hdmi_infoframe_checksum(buffer, size); in hdmi_infoframe_set_checksum() 85 ssize_t hdmi_avi_infoframe_pack(struct hdmi_avi_infoframe *frame, void *buffer, in hdmi_avi_infoframe_pack() argument 88 u8 *ptr = buffer; in hdmi_avi_infoframe_pack() 96 memset(buffer, 0, size); in hdmi_avi_infoframe_pack() 148 hdmi_infoframe_set_checksum(buffer, length); in hdmi_avi_infoframe_pack() 192 ssize_t hdmi_spd_infoframe_pack(struct hdmi_spd_infoframe *frame, void *buffer, in hdmi_spd_infoframe_pack() argument 195 u8 *ptr = buffer; in hdmi_spd_infoframe_pack() 203 memset(buffer, 0, size); in hdmi_spd_infoframe_pack() [all …]
|
/linux-4.4.14/drivers/usb/core/ |
D | config.c | 22 static int find_next_descriptor(unsigned char *buffer, int size, in find_next_descriptor() argument 27 unsigned char *buffer0 = buffer; in find_next_descriptor() 31 h = (struct usb_descriptor_header *) buffer; in find_next_descriptor() 34 buffer += h->bLength; in find_next_descriptor() 43 return buffer - buffer0; in find_next_descriptor() 48 unsigned char *buffer, int size) in usb_parse_ss_endpoint_companion() argument 56 desc = (struct usb_ss_ep_comp_descriptor *) buffer; in usb_parse_ss_endpoint_companion() 147 unsigned char *buffer, int size) in usb_parse_endpoint() argument 149 unsigned char *buffer0 = buffer; in usb_parse_endpoint() 154 d = (struct usb_endpoint_descriptor *) buffer; in usb_parse_endpoint() [all …]
|
/linux-4.4.14/drivers/iio/imu/ |
D | adis16400_buffer.c | 28 kfree(adis->buffer); in adis16400_update_scan_mode() 39 adis->buffer = kzalloc(burst_length + sizeof(u16), GFP_KERNEL); in adis16400_update_scan_mode() 40 if (!adis->buffer) in adis16400_update_scan_mode() 43 tx = adis->buffer + burst_length; in adis16400_update_scan_mode() 50 adis->xfer[1].rx_buf = adis->buffer; in adis16400_update_scan_mode() 68 void *buffer; in adis16400_trigger_handler() local 71 if (!adis->buffer) in adis16400_trigger_handler() 90 buffer = adis->buffer + sizeof(u16); in adis16400_trigger_handler() 92 buffer = adis->buffer; in adis16400_trigger_handler() 94 iio_push_to_buffers_with_timestamp(indio_dev, buffer, in adis16400_trigger_handler()
|
/linux-4.4.14/drivers/android/ |
D | binder.c | 308 void *buffer; member 366 struct binder_buffer *buffer; member 458 struct binder_buffer *buffer) in binder_buffer_size() argument 460 if (list_is_last(&buffer->entry, &proc->buffers)) in binder_buffer_size() 461 return proc->buffer + proc->buffer_size - (void *)buffer->data; in binder_buffer_size() 462 return (size_t)list_entry(buffer->entry.next, in binder_buffer_size() 463 struct binder_buffer, entry) - (size_t)buffer->data; in binder_buffer_size() 471 struct binder_buffer *buffer; in binder_insert_free_buffer() local 485 buffer = rb_entry(parent, struct binder_buffer, rb_node); in binder_insert_free_buffer() 486 BUG_ON(!buffer->free); in binder_insert_free_buffer() [all …]
|
/linux-4.4.14/drivers/media/radio/si4713/ |
D | radio-usb-si4713.c | 69 u8 *buffer; member 150 kfree(radio->buffer); in usb_si4713_video_device_release() 170 u8 *buffer = radio->buffer; in si4713_send_startup_command() local 175 0x09, 0x21, 0x033f, 0, radio->buffer, in si4713_send_startup_command() 183 0x01, 0xa1, 0x033f, 0, radio->buffer, in si4713_send_startup_command() 187 if (!radio->buffer[1]) { in si4713_send_startup_command() 190 switch (buffer[1]) { in si4713_send_startup_command() 192 if (radio->buffer[2] == 0) in si4713_send_startup_command() 197 if (radio->buffer[2] & SI4713_CTS) in si4713_send_startup_command() 201 if ((radio->buffer[2] & SI4713_CTS) && radio->buffer[9] == 0x08) in si4713_send_startup_command() [all …]
|
/linux-4.4.14/kernel/gcov/ |
D | gcc_4_7.c | 362 void *buffer; member 378 static size_t store_gcov_u32(void *buffer, size_t off, u32 v) in store_gcov_u32() argument 382 if (buffer) { in store_gcov_u32() 383 data = buffer + off; in store_gcov_u32() 402 static size_t store_gcov_u64(void *buffer, size_t off, u64 v) in store_gcov_u64() argument 406 if (buffer) { in store_gcov_u64() 407 data = buffer + off; in store_gcov_u64() 423 static size_t convert_to_gcda(char *buffer, struct gcov_info *info) in convert_to_gcda() argument 433 pos += store_gcov_u32(buffer, pos, GCOV_DATA_MAGIC); in convert_to_gcda() 434 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda() [all …]
|
/linux-4.4.14/sound/soc/au1x/ |
D | dma.c | 33 struct pcm_period *buffer; member 49 pointer = stream->buffer; in au1000_release_dma_link() 56 } while (pointer != stream->buffer); in au1000_release_dma_link() 57 stream->buffer = NULL; in au1000_release_dma_link() 81 stream->buffer = kmalloc(sizeof(struct pcm_period), GFP_KERNEL); in au1000_setup_dma_link() 82 if (!stream->buffer) in au1000_setup_dma_link() 84 pointer = stream->buffer; in au1000_setup_dma_link() 98 pointer->next = stream->buffer; in au1000_setup_dma_link() 104 if (stream->buffer) in au1000_dma_stop() 110 if (!stream->buffer) in au1000_dma_start() [all …]
|
/linux-4.4.14/drivers/hid/ |
D | hid-gt683r.c | 154 u8 *buffer; in gt683r_leds_set() local 156 buffer = kzalloc(GT683R_BUFFER_SIZE, GFP_KERNEL); in gt683r_leds_set() 157 if (!buffer) in gt683r_leds_set() 160 buffer[0] = 0x01; in gt683r_leds_set() 161 buffer[1] = 0x02; in gt683r_leds_set() 162 buffer[2] = 0x30; in gt683r_leds_set() 163 buffer[3] = leds; in gt683r_leds_set() 164 ret = gt683r_led_snd_msg(led, buffer); in gt683r_leds_set() 166 kfree(buffer); in gt683r_leds_set() 173 u8 *buffer; in gt683r_mode_set() local [all …]
|
/linux-4.4.14/drivers/input/tablet/ |
D | gtco.c | 111 unsigned char * buffer; /* databuffer for reports */ member 653 switch (device->buffer[0]) { in gtco_urb_callback() 656 val = ((u16)(device->buffer[8]) << 1); in gtco_urb_callback() 657 val |= (u16)(device->buffer[7] >> 7); in gtco_urb_callback() 659 device->buffer[8]); in gtco_urb_callback() 662 device->buffer[7] = (u8)((device->buffer[7]) & 0x7F); in gtco_urb_callback() 668 sign_extend32(device->buffer[6], 6)); in gtco_urb_callback() 671 sign_extend32(device->buffer[7], 6)); in gtco_urb_callback() 677 val = (device->buffer[5]) & MASK_BUTTON; in gtco_urb_callback() 686 val = get_unaligned_le16(&device->buffer[1]); in gtco_urb_callback() [all …]
|
/linux-4.4.14/security/tomoyo/ |
D | realpath.c | 92 static char *tomoyo_get_absolute_path(const struct path *path, char * const buffer, in tomoyo_get_absolute_path() argument 98 pos = d_absolute_path(path, buffer, buflen - 1); in tomoyo_get_absolute_path() 102 buffer[buflen - 2] = '/'; in tomoyo_get_absolute_path() 103 buffer[buflen - 1] = '\0'; in tomoyo_get_absolute_path() 121 static char *tomoyo_get_dentry_path(struct dentry *dentry, char * const buffer, in tomoyo_get_dentry_path() argument 126 pos = dentry_path_raw(dentry, buffer, buflen - 1); in tomoyo_get_dentry_path() 130 buffer[buflen - 2] = '/'; in tomoyo_get_dentry_path() 131 buffer[buflen - 1] = '\0'; in tomoyo_get_dentry_path() 147 static char *tomoyo_get_local_path(struct dentry *dentry, char * const buffer, in tomoyo_get_local_path() argument 151 char *pos = tomoyo_get_dentry_path(dentry, buffer, buflen); in tomoyo_get_local_path() [all …]
|
D | audit.c | 25 char *buffer = kzalloc(tomoyo_buffer_len, GFP_NOFS); in tomoyo_print_bprm() local 34 if (!buffer) in tomoyo_print_bprm() 36 len = snprintf(buffer, tomoyo_buffer_len - 1, "argv[]={ "); in tomoyo_print_bprm() 37 cp = buffer + len; in tomoyo_print_bprm() 53 if (cp >= buffer + tomoyo_buffer_len - 32) { in tomoyo_print_bprm() 101 return buffer; in tomoyo_print_bprm() 103 snprintf(buffer, tomoyo_buffer_len - 1, in tomoyo_print_bprm() 105 return buffer; in tomoyo_print_bprm() 153 char *buffer = kmalloc(tomoyo_buffer_len, GFP_NOFS); in tomoyo_print_header() local 156 if (!buffer) in tomoyo_print_header() [all …]
|
/linux-4.4.14/tools/lib/traceevent/ |
D | trace-seq.c | 36 if (WARN_ONCE((s)->buffer == TRACE_SEQ_POISON, \ 60 s->buffer = malloc(s->buffer_size); in trace_seq_init() 61 if (s->buffer != NULL) in trace_seq_init() 91 free(s->buffer); in trace_seq_destroy() 92 s->buffer = TRACE_SEQ_POISON; in trace_seq_destroy() 99 buf = realloc(s->buffer, s->buffer_size + TRACE_SEQ_BUF_SIZE); in expand_buffer() 105 s->buffer = buf; in expand_buffer() 136 ret = vsnprintf(s->buffer + s->len, len, fmt, ap); in trace_seq_printf() 171 ret = vsnprintf(s->buffer + s->len, len, fmt, args); in trace_seq_vprintf() 206 memcpy(s->buffer + s->len, str, len); in trace_seq_puts() [all …]
|
/linux-4.4.14/drivers/video/fbdev/ |
D | pxa3xx-gcu.c | 224 shared->buffer[num++] = 0x05000000; in run_ready() 227 shared->buffer[num++] = 0x00000001; in run_ready() 228 shared->buffer[num++] = ready->phys; in run_ready() 232 shared->buffer[num++] = 0x05000000; in run_ready() 391 struct pxa3xx_gcu_batch *buffer; in pxa3xx_gcu_write() local 416 buffer = priv->free; in pxa3xx_gcu_write() 417 priv->free = buffer->next; in pxa3xx_gcu_write() 422 ret = copy_from_user(buffer->ptr, buff, words * 4); in pxa3xx_gcu_write() 425 buffer->next = priv->free; in pxa3xx_gcu_write() 426 priv->free = buffer; in pxa3xx_gcu_write() [all …]
|
/linux-4.4.14/lib/mpi/ |
D | mpicoder.c | 34 const uint8_t *buffer = xbuffer; in mpi_read_raw_data() local 40 while (nbytes > 0 && buffer[0] == 0) { in mpi_read_raw_data() 41 buffer++; in mpi_read_raw_data() 51 nbits -= count_leading_zeros(buffer[0]); in mpi_read_raw_data() 70 a |= *buffer++; in mpi_read_raw_data() 82 const uint8_t *buffer = xbuffer; in mpi_read_from_buffer() local 90 nbits = buffer[0] << 8 | buffer[1]; in mpi_read_from_buffer() 96 buffer += 2; in mpi_read_from_buffer() 119 a |= *buffer++; in mpi_read_from_buffer() 262 const uint8_t *buffer = xbuffer, *p; in mpi_set_buffer() local [all …]
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
D | r300_cmdbuf.c | 321 value = drm_buffer_pointer_to_dword(cmdbuf->buffer, i); in r300_emit_carefully_checked_packet0() 337 OUT_RING_DRM_BUFFER(cmdbuf->buffer, sz); in r300_emit_carefully_checked_packet0() 363 if (sz * 4 > drm_buffer_unprocessed(cmdbuf->buffer)) in r300_emit_packet0() 381 OUT_RING_DRM_BUFFER(cmdbuf->buffer, sz); in r300_emit_packet0() 405 if (sz * 16 > drm_buffer_unprocessed(cmdbuf->buffer)) in r300_emit_vpu() 424 OUT_RING_DRM_BUFFER(cmdbuf->buffer, sz * 4); in r300_emit_vpu() 444 if (8 * 4 > drm_buffer_unprocessed(cmdbuf->buffer)) in r300_emit_clear() 451 OUT_RING_DRM_BUFFER(cmdbuf->buffer, 8); in r300_emit_clear() 486 drm_buffer_advance(cmdbuf->buffer, 4); in r300_emit_3d_load_vbpntr() 488 narrays = *(u32 *)drm_buffer_pointer_to_dword(cmdbuf->buffer, 0); in r300_emit_3d_load_vbpntr() [all …]
|
D | drm_buffer.h | 127 static inline void *drm_buffer_pointer_to_dword(struct drm_buffer *buffer, in drm_buffer_pointer_to_dword() argument 130 int iter = buffer->iterator + offset * 4; in drm_buffer_pointer_to_dword() 131 return &buffer->data[iter / PAGE_SIZE][iter & (PAGE_SIZE - 1)]; in drm_buffer_pointer_to_dword() 141 static inline void *drm_buffer_pointer_to_byte(struct drm_buffer *buffer, in drm_buffer_pointer_to_byte() argument 144 int iter = buffer->iterator + offset; in drm_buffer_pointer_to_byte() 145 return &buffer->data[iter / PAGE_SIZE][iter & (PAGE_SIZE - 1)]; in drm_buffer_pointer_to_byte()
|
D | radeon_acpi.c | 110 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in radeon_atif_call() local 120 atif_arg_elements[1].buffer.length = params->length; in radeon_atif_call() 121 atif_arg_elements[1].buffer.pointer = params->pointer; in radeon_atif_call() 128 status = acpi_evaluate_object(handle, "ATIF", &atif_arg, &buffer); in radeon_atif_call() 134 kfree(buffer.pointer); in radeon_atif_call() 138 return buffer.pointer; in radeon_atif_call() 213 size = *(u16 *) info->buffer.pointer; in radeon_atif_verify_interface() 221 memcpy(&output, info->buffer.pointer, size); in radeon_atif_verify_interface() 260 size = *(u16 *) info->buffer.pointer; in radeon_atif_get_notification_params() 268 memcpy(¶ms, info->buffer.pointer, size); in radeon_atif_get_notification_params() [all …]
|
/linux-4.4.14/drivers/hwmon/ |
D | applesmc.c | 231 static int read_smc(u8 cmd, const char *key, u8 *buffer, u8 len) in read_smc() argument 252 buffer[i] = inb(APPLESMC_DATA_PORT); in read_smc() 269 static int write_smc(u8 cmd, const char *key, const u8 *buffer, u8 len) in write_smc() argument 284 if (send_byte(buffer[i], APPLESMC_DATA_PORT)) { in write_smc() 436 static int applesmc_read_key(const char *key, u8 *buffer, u8 len) in applesmc_read_key() argument 444 return applesmc_read_entry(entry, buffer, len); in applesmc_read_key() 447 static int applesmc_write_key(const char *key, const u8 *buffer, u8 len) in applesmc_write_key() argument 455 return applesmc_write_entry(entry, buffer, len); in applesmc_write_key() 475 u8 buffer[2]; in applesmc_read_s16() local 478 ret = applesmc_read_key(key, buffer, 2); in applesmc_read_s16() [all …]
|
/linux-4.4.14/drivers/media/v4l2-core/ |
D | videobuf2-core.c | 145 unsigned int buffer, plane; in __setup_lengths() local 148 for (buffer = q->num_buffers; buffer < q->num_buffers + n; ++buffer) { in __setup_lengths() 149 vb = q->bufs[buffer]; in __setup_lengths() 164 unsigned int buffer, plane; in __setup_offsets() local 177 for (buffer = q->num_buffers; buffer < q->num_buffers + n; ++buffer) { in __setup_offsets() 178 vb = q->bufs[buffer]; in __setup_offsets() 186 buffer, plane, off); in __setup_offsets() 204 unsigned int buffer; in __vb2_queue_alloc() local 208 for (buffer = 0; buffer < num_buffers; ++buffer) { in __vb2_queue_alloc() 219 vb->index = q->num_buffers + buffer; in __vb2_queue_alloc() [all …]
|
/linux-4.4.14/arch/sparc/prom/ |
D | tree_64.c | 117 char *buffer, int bufsize) in prom_getproperty() argument 131 args[5] = (unsigned long) buffer; in prom_getproperty() 238 char *prom_firstprop(phandle node, char *buffer) in prom_firstprop() argument 242 *buffer = 0; in prom_firstprop() 244 return buffer; in prom_firstprop() 251 args[5] = (unsigned long) buffer; in prom_firstprop() 256 return buffer; in prom_firstprop() 264 char *prom_nextprop(phandle node, const char *oprop, char *buffer) in prom_nextprop() argument 270 *buffer = 0; in prom_nextprop() 271 return buffer; in prom_nextprop() [all …]
|
/linux-4.4.14/net/netfilter/ |
D | nf_nat_sip.c | 36 const char *buffer, unsigned int buflen) in mangle_packet() argument 50 buffer, buflen, false)) in mangle_packet() 58 buffer, buflen)) in mangle_packet() 68 static int sip_sprintf_addr(const struct nf_conn *ct, char *buffer, in sip_sprintf_addr() argument 72 return sprintf(buffer, "%pI4", &addr->ip); in sip_sprintf_addr() 75 return sprintf(buffer, "[%pI6c]", &addr->ip6); in sip_sprintf_addr() 77 return sprintf(buffer, "%pI6c", &addr->ip6); in sip_sprintf_addr() 81 static int sip_sprintf_addr_port(const struct nf_conn *ct, char *buffer, in sip_sprintf_addr_port() argument 85 return sprintf(buffer, "%pI4:%u", &addr->ip, port); in sip_sprintf_addr_port() 87 return sprintf(buffer, "[%pI6c]:%u", &addr->ip6, port); in sip_sprintf_addr_port() [all …]
|
D | nf_nat_ftp.c | 30 char *buffer, size_t buflen, in nf_nat_ftp_fmt_cmd() argument 36 return snprintf(buffer, buflen, "%u,%u,%u,%u,%u,%u", in nf_nat_ftp_fmt_cmd() 45 return snprintf(buffer, buflen, "|1|%pI4|%u|", in nf_nat_ftp_fmt_cmd() 48 return snprintf(buffer, buflen, "|2|%pI6|%u|", in nf_nat_ftp_fmt_cmd() 51 return snprintf(buffer, buflen, "|||%u|", port); in nf_nat_ftp_fmt_cmd() 71 char buffer[sizeof("|1||65535|") + INET6_ADDRSTRLEN]; in nf_nat_ftp() local 104 buflen = nf_nat_ftp_fmt_cmd(ct, type, buffer, sizeof(buffer), in nf_nat_ftp() 112 matchlen, buffer, buflen)) in nf_nat_ftp()
|
/linux-4.4.14/fs/xfs/ |
D | xfs_itable.h | 28 void __user *buffer, 57 const xfs_bstat_t *buffer); /* buffer to read from */ 63 void __user *buffer, 73 void __user *buffer, 80 const xfs_inogrp_t *buffer, /* buffer to read from */ 87 const xfs_inogrp_t *buffer, /* buffer to read from */ 96 void __user *buffer, /* buffer with inode info */
|
D | xfs_ioctl32.c | 102 const struct xfs_inogrp *buffer, in xfs_inumbers_fmt_compat() argument 110 if (put_user(buffer[i].xi_startino, &p32[i].xi_startino) || in xfs_inumbers_fmt_compat() 111 put_user(buffer[i].xi_alloccount, &p32[i].xi_alloccount) || in xfs_inumbers_fmt_compat() 112 put_user(buffer[i].xi_allocmask, &p32[i].xi_allocmask)) in xfs_inumbers_fmt_compat() 191 const xfs_bstat_t *buffer) in xfs_bulkstat_one_fmt_compat() argument 198 if (put_user(buffer->bs_ino, &p32->bs_ino) || in xfs_bulkstat_one_fmt_compat() 199 put_user(buffer->bs_mode, &p32->bs_mode) || in xfs_bulkstat_one_fmt_compat() 200 put_user(buffer->bs_nlink, &p32->bs_nlink) || in xfs_bulkstat_one_fmt_compat() 201 put_user(buffer->bs_uid, &p32->bs_uid) || in xfs_bulkstat_one_fmt_compat() 202 put_user(buffer->bs_gid, &p32->bs_gid) || in xfs_bulkstat_one_fmt_compat() [all …]
|
D | xfs_itable.c | 52 void __user *buffer, /* buffer to place output in */ in xfs_bulkstat_one_int() argument 65 if (!buffer || xfs_internal_inum(mp, ino)) in xfs_bulkstat_one_int() 132 error = formatter(buffer, ubsize, ubused, buf); in xfs_bulkstat_one_int() 147 const xfs_bstat_t *buffer) in xfs_bulkstat_one_fmt() argument 149 if (ubsize < sizeof(*buffer)) in xfs_bulkstat_one_fmt() 151 if (copy_to_user(ubuffer, buffer, sizeof(*buffer))) in xfs_bulkstat_one_fmt() 154 *ubused = sizeof(*buffer); in xfs_bulkstat_one_fmt() 162 void __user *buffer, /* buffer to place output in */ in xfs_bulkstat_one() argument 167 return xfs_bulkstat_one_int(mp, ino, buffer, ubsize, in xfs_bulkstat_one() 541 const struct xfs_inogrp *buffer, /* buffer to read from */ in xfs_inumbers_fmt() argument [all …]
|
/linux-4.4.14/drivers/iio/common/ssp_sensors/ |
D | ssp_spi.c | 50 char *buffer; member 99 msg->buffer = kzalloc(SSP_HEADER_SIZE_ALIGNED + len, in ssp_create_msg() 101 if (!msg->buffer) { in ssp_create_msg() 109 memcpy(msg->buffer, &h, SSP_HEADER_SIZE); in ssp_create_msg() 122 memcpy(&m->buffer[SSP_HEADER_SIZE_ALIGNED + offset], src, len); in ssp_fill_buffer() 128 memcpy(dest, &m->buffer[SSP_HEADER_SIZE_ALIGNED + offset], len); in ssp_get_buffer() 132 (m->buffer[SSP_HEADER_SIZE_ALIGNED + index]) 134 (m->buffer[SSP_HEADER_SIZE_ALIGNED + index] = val) 138 kfree(m->buffer); in ssp_clean_msg() 208 status = spi_write(data->spi, msg->buffer, SSP_HEADER_SIZE); in ssp_do_transfer() [all …]
|
/linux-4.4.14/include/crypto/ |
D | sha1_base.h | 50 memcpy(sctx->buffer + partial, data, p); in sha1_base_do_update() 54 block_fn(sctx, sctx->buffer, 1); in sha1_base_do_update() 67 memcpy(sctx->buffer + partial, data, len); in sha1_base_do_update() 77 __be64 *bits = (__be64 *)(sctx->buffer + bit_offset); in sha1_base_do_finalize() 80 sctx->buffer[partial++] = 0x80; in sha1_base_do_finalize() 82 memset(sctx->buffer + partial, 0x0, SHA1_BLOCK_SIZE - partial); in sha1_base_do_finalize() 85 block_fn(sctx, sctx->buffer, 1); in sha1_base_do_finalize() 88 memset(sctx->buffer + partial, 0x0, bit_offset - partial); in sha1_base_do_finalize() 90 block_fn(sctx, sctx->buffer, 1); in sha1_base_do_finalize()
|
/linux-4.4.14/drivers/bluetooth/ |
D | bcm203x.c | 72 unsigned char *buffer; member 95 memcpy(data->buffer, "#", 1); in bcm203x_complete() 98 data->buffer, 1, bcm203x_complete, data); in bcm203x_complete() 108 data->buffer, 32, bcm203x_complete, data, 1); in bcm203x_complete() 117 if (data->buffer[0] != '#') { in bcm203x_complete() 128 data->buffer, 32, bcm203x_complete, data, 1); in bcm203x_complete() 145 if (data->buffer[0] != '.') { in bcm203x_complete() 205 data->buffer = kmalloc(size, GFP_KERNEL); in bcm203x_probe() 206 if (!data->buffer) { in bcm203x_probe() 213 memcpy(data->buffer, firmware->data, firmware->size); in bcm203x_probe() [all …]
|
/linux-4.4.14/drivers/parport/ |
D | procfs.c | 39 char buffer[256]; in do_active_device() local 53 len += sprintf(buffer, "%s\n", dev->name); in do_active_device() 58 len += sprintf(buffer, "%s\n", "none"); in do_active_device() 68 return copy_to_user(result, buffer, len) ? -EFAULT : 0; in do_active_device() 77 char buffer[256]; in do_autoprobe() local 89 len += sprintf (buffer + len, "CLASS:%s;\n", str); in do_autoprobe() 92 len += sprintf (buffer + len, "MODEL:%s;\n", str); in do_autoprobe() 95 len += sprintf (buffer + len, "MANUFACTURER:%s;\n", str); in do_autoprobe() 98 len += sprintf (buffer + len, "DESCRIPTION:%s;\n", str); in do_autoprobe() 101 len += sprintf (buffer + len, "COMMAND SET:%s;\n", str); in do_autoprobe() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/ |
D | nouveau_acpi.c | 80 .buffer.type = ACPI_TYPE_BUFFER, in nouveau_optimus_dsm() 81 .buffer.length = 4, in nouveau_optimus_dsm() 82 .buffer.pointer = args_buff in nouveau_optimus_dsm() 96 if (obj->buffer.length == 4) { in nouveau_optimus_dsm() 97 *result |= obj->buffer.pointer[0]; in nouveau_optimus_dsm() 98 *result |= (obj->buffer.pointer[1] << 8); in nouveau_optimus_dsm() 99 *result |= (obj->buffer.pointer[2] << 16); in nouveau_optimus_dsm() 100 *result |= (obj->buffer.pointer[3] << 24); in nouveau_optimus_dsm() 252 struct acpi_buffer buffer = {sizeof(acpi_method_name), acpi_method_name}; in nouveau_dsm_detect() local 291 &buffer); in nouveau_dsm_detect() [all …]
|
/linux-4.4.14/crypto/asymmetric_keys/ |
D | mscode_parser.c | 54 char buffer[50]; in mscode_note_content_type() local 56 sprint_oid(value, vlen, buffer, sizeof(buffer)); in mscode_note_content_type() 57 pr_err("Unknown OID: %s\n", buffer); in mscode_note_content_type() 83 char buffer[50]; in mscode_note_digest_algo() local 111 sprint_oid(value, vlen, buffer, sizeof(buffer)); in mscode_note_digest_algo() 112 pr_err("Unknown OID: %s\n", buffer); in mscode_note_digest_algo()
|
/linux-4.4.14/arch/powerpc/platforms/powernv/ |
D | opal-elog.c | 30 char *buffer; member 136 kfree(elog->buffer); in elog_release() 158 char *buffer, loff_t pos, size_t count) in raw_attr_read() argument 165 if (!elog->buffer) { in raw_attr_read() 166 elog->buffer = kzalloc(elog->size, GFP_KERNEL); in raw_attr_read() 167 if (!elog->buffer) in raw_attr_read() 170 opal_rc = opal_read_elog(__pa(elog->buffer), in raw_attr_read() 175 kfree(elog->buffer); in raw_attr_read() 176 elog->buffer = NULL; in raw_attr_read() 181 memcpy(buffer, elog->buffer + pos, count); in raw_attr_read() [all …]
|
/linux-4.4.14/arch/frv/kernel/ |
D | pm.c | 154 void __user *buffer, size_t *lenp, loff_t *fpos) in sysctl_pm_do_suspend() argument 161 mode = user_atoi(buffer, *lenp); in sysctl_pm_do_suspend() 201 void __user *buffer, size_t *lenp, loff_t *fpos) in cmode_procctl() argument 206 return proc_dointvec(ctl, write, buffer, lenp, fpos); in cmode_procctl() 208 new_cmode = user_atoi(buffer, *lenp); in cmode_procctl() 273 void __user *buffer, size_t *lenp, loff_t *fpos) in p0_procctl() argument 278 return proc_dointvec(ctl, write, buffer, lenp, fpos); in p0_procctl() 280 new_p0 = user_atoi(buffer, *lenp); in p0_procctl() 286 void __user *buffer, size_t *lenp, loff_t *fpos) in cm_procctl() argument 291 return proc_dointvec(ctl, write, buffer, lenp, fpos); in cm_procctl() [all …]
|
/linux-4.4.14/drivers/memstick/core/ |
D | mspro_block.c | 288 char *buffer); 292 char *buffer) in mspro_block_attr_show_default() argument 303 buffer[rc++] = '\n'; in mspro_block_attr_show_default() 306 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "%02x ", in mspro_block_attr_show_default() 314 char *buffer) in mspro_block_attr_show_sysinfo() argument 336 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "class: %x\n", in mspro_block_attr_show_sysinfo() 338 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "block size: %x\n", in mspro_block_attr_show_sysinfo() 340 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "block count: %x\n", in mspro_block_attr_show_sysinfo() 342 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "user block count: %x\n", in mspro_block_attr_show_sysinfo() 344 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "page size: %x\n", in mspro_block_attr_show_sysinfo() [all …]
|
/linux-4.4.14/arch/hexagon/include/asm/ |
D | io.h | 270 static inline void insb(unsigned long port, void *buffer, int count) in insb() argument 273 u8 *buf = buffer; in insb() 281 static inline void insw(unsigned long port, void *buffer, int count) in insw() argument 284 u16 *buf = buffer; in insw() 292 static inline void insl(unsigned long port, void *buffer, int count) in insl() argument 295 u32 *buf = buffer; in insl() 303 static inline void outsb(unsigned long port, const void *buffer, int count) in outsb() argument 306 const u8 *buf = buffer; in outsb() 313 static inline void outsw(unsigned long port, const void *buffer, int count) in outsw() argument 316 const u16 *buf = buffer; in outsw() [all …]
|
/linux-4.4.14/fs/cifs/ |
D | misc.c | 241 header_assemble(struct smb_hdr *buffer, char smb_command /* command */ , in header_assemble() argument 245 char *temp = (char *) buffer; in header_assemble() 249 buffer->smb_buf_length = cpu_to_be32( in header_assemble() 254 buffer->Protocol[0] = 0xFF; in header_assemble() 255 buffer->Protocol[1] = 'S'; in header_assemble() 256 buffer->Protocol[2] = 'M'; in header_assemble() 257 buffer->Protocol[3] = 'B'; in header_assemble() 258 buffer->Command = smb_command; in header_assemble() 259 buffer->Flags = 0x00; /* case sensitive */ in header_assemble() 260 buffer->Flags2 = SMBFLG2_KNOWS_LONG_NAMES; in header_assemble() [all …]
|
/linux-4.4.14/drivers/misc/ |
D | lattice-ecp3-config.c | 73 u8 *buffer; in firmware_load() local 121 buffer = kzalloc(fw->size + 8, GFP_KERNEL); in firmware_load() 122 if (!buffer) { in firmware_load() 130 buffer[0] = FPGA_CMD_WRITE_INC; in firmware_load() 131 buffer[1] = 0xff; in firmware_load() 132 buffer[2] = 0xff; in firmware_load() 133 buffer[3] = 0xff; in firmware_load() 134 memcpy(buffer + 4, fw->data, fw->size); in firmware_load() 162 kfree(buffer); in firmware_load() 167 ret = spi_write(spi, buffer, fw->size + 8); in firmware_load() [all …]
|
/linux-4.4.14/arch/mips/lasat/ |
D | sysctl.c | 43 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatstring() argument 47 r = proc_dostring(table, write, buffer, lenp, ppos); in proc_dolasatstring() 61 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatrtc() argument 73 r = proc_dointvec(table, write, buffer, lenp, ppos); in proc_dolasatrtc() 86 void *buffer, size_t *lenp, loff_t *ppos) in proc_lasat_ip() argument 101 p = buffer; in proc_lasat_ip() 111 if (copy_from_user(ipbuf, buffer, len)) in proc_lasat_ip() 130 if (copy_to_user(buffer, ipbuf, len)) in proc_lasat_ip() 133 if (put_user('\n', ((char *) buffer) + len)) in proc_lasat_ip() 146 void *buffer, size_t *lenp, loff_t *ppos) in proc_lasat_prid() argument [all …]
|
/linux-4.4.14/drivers/staging/iio/Documentation/ |
D | ring.txt | 4 a buffer may supply and how it is specified within IIO. For more 5 specific information on a given buffer implementation, see the 6 comments in the source code. Note that some drivers allow buffer 9 A given buffer implementation typically embeds a struct 18 of the core changing its current mode to indicate that the buffer 23 as much buffer functionality as possible. Note almost all of these 27 If possible, push data to the buffer. 30 If possible, get the most recent scan from the buffer (without removal). 35 The primary buffer reading function. Note that it may well not return 40 the buffer this will trigger it. [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/ |
D | module.c | 333 void __user *buffer, size_t *lenp, in proc_call_handler() argument 335 loff_t pos, void __user *buffer, int len)) in proc_call_handler() 337 int rc = handler(data, write, *ppos, buffer, *lenp); in proc_call_handler() 352 loff_t pos, void __user *buffer, int nob) in __proc_dobitmasks() argument 372 rc = cfs_trace_copyout_string(buffer, nob, in __proc_dobitmasks() 376 rc = cfs_trace_copyin_string(tmpstr, tmpstrlen, buffer, nob); in __proc_dobitmasks() 393 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dobitmasks() argument 395 return proc_call_handler(table->data, write, ppos, buffer, lenp, in proc_dobitmasks() 400 loff_t pos, void __user *buffer, int nob) in __proc_dump_kernel() argument 405 return cfs_trace_dump_debug_buffer_usrstr(buffer, nob); in __proc_dump_kernel() [all …]
|
/linux-4.4.14/drivers/power/ |
D | test_power.c | 342 static int param_get_ac_online(char *buffer, const struct kernel_param *kp) in param_get_ac_online() argument 344 strcpy(buffer, map_get_key(map_ac_online, ac_online, "unknown")); in param_get_ac_online() 345 return strlen(buffer); in param_get_ac_online() 355 static int param_get_usb_online(char *buffer, const struct kernel_param *kp) in param_get_usb_online() argument 357 strcpy(buffer, map_get_key(map_ac_online, usb_online, "unknown")); in param_get_usb_online() 358 return strlen(buffer); in param_get_usb_online() 369 static int param_get_battery_status(char *buffer, const struct kernel_param *kp) in param_get_battery_status() argument 371 strcpy(buffer, map_get_key(map_status, battery_status, "unknown")); in param_get_battery_status() 372 return strlen(buffer); in param_get_battery_status() 383 static int param_get_battery_health(char *buffer, const struct kernel_param *kp) in param_get_battery_health() argument [all …]
|
/linux-4.4.14/arch/mn10300/include/asm/ |
D | io.h | 125 static inline void insb(unsigned long addr, void *buffer, int count) in insb() argument 128 u8 *buf = buffer; in insb() 136 static inline void insw(unsigned long addr, void *buffer, int count) in insw() argument 139 u16 *buf = buffer; in insw() 147 static inline void insl(unsigned long addr, void *buffer, int count) in insl() argument 150 u32 *buf = buffer; in insl() 158 static inline void outsb(unsigned long addr, const void *buffer, int count) in outsb() argument 161 const u8 *buf = buffer; in outsb() 168 static inline void outsw(unsigned long addr, const void *buffer, int count) in outsw() argument 171 const u16 *buf = buffer; in outsw() [all …]
|
/linux-4.4.14/drivers/net/wireless/mwifiex/ |
D | 11h.c | 38 mwifiex_11h_process_infra_join(struct mwifiex_private *priv, u8 **buffer, in mwifiex_11h_process_infra_join() argument 48 if (!buffer || !(*buffer)) in mwifiex_11h_process_infra_join() 54 cap = (struct mwifiex_ie_types_pwr_capability *)*buffer; in mwifiex_11h_process_infra_join() 59 *buffer += sizeof(*cap); in mwifiex_11h_process_infra_join() 61 constraint = (struct mwifiex_ie_types_local_pwr_constraint *)*buffer; in mwifiex_11h_process_infra_join() 66 *buffer += sizeof(*constraint); in mwifiex_11h_process_infra_join() 68 ie_header = (struct mwifiex_ie_types_header *)*buffer; in mwifiex_11h_process_infra_join() 71 *buffer += sizeof(*ie_header); in mwifiex_11h_process_infra_join() 72 *(*buffer)++ = WLAN_EID_SUPPORTED_CHANNELS; in mwifiex_11h_process_infra_join() 73 *(*buffer)++ = 2 * sband->n_channels; in mwifiex_11h_process_infra_join() [all …]
|
/linux-4.4.14/drivers/scsi/device_handler/ |
D | scsi_dh_emc.c | 89 unsigned char buffer[CLARIION_BUFFER_SIZE]; member 166 if (csdev->buffer[48] != 0) { in parse_sp_info_reply() 173 if (csdev->buffer[4] > 2) { in parse_sp_info_reply() 181 switch (csdev->buffer[28] & 0x0f) { in parse_sp_info_reply() 193 CLARIION_NAME, csdev->buffer[28] & 0x0f); in parse_sp_info_reply() 198 csdev->default_sp = csdev->buffer[5]; in parse_sp_info_reply() 199 csdev->lun_state = csdev->buffer[4]; in parse_sp_info_reply() 200 csdev->current_sp = csdev->buffer[8]; in parse_sp_info_reply() 201 csdev->port = csdev->buffer[7]; in parse_sp_info_reply() 209 static char * parse_sp_model(struct scsi_device *sdev, unsigned char *buffer) in parse_sp_model() argument [all …]
|
/linux-4.4.14/Documentation/filesystems/ |
D | relay.txt | 13 buffer. User space applications mmap() or read() from the relay files 21 buffer data. The relay interface doesn't implement any form of data 32 Each relay channel has one buffer per CPU, each buffer has one or more 33 sub-buffers. Messages are written to the first sub-buffer until it is 37 sub-buffer, while the kernel continues writing to the next. 39 When notified that a sub-buffer is full, the kernel knows how many 41 message couldn't fit into a sub-buffer. Userspace can use this 44 After copying it, userspace can notify the kernel that a sub-buffer 98 such as buffer-full conditions would still need to be communicated via 108 access to relay channel buffer data. Here are the file operations [all …]
|
/linux-4.4.14/drivers/staging/iio/ |
D | iio_simple_dummy_buffer.c | 122 struct iio_buffer *buffer; in iio_simple_dummy_configure_buffer() local 125 buffer = iio_kfifo_allocate(); in iio_simple_dummy_configure_buffer() 126 if (!buffer) { in iio_simple_dummy_configure_buffer() 131 iio_device_attach_buffer(indio_dev, buffer); in iio_simple_dummy_configure_buffer() 134 buffer->scan_timestamp = true; in iio_simple_dummy_configure_buffer() 179 iio_kfifo_free(indio_dev->buffer); in iio_simple_dummy_configure_buffer() 191 iio_kfifo_free(indio_dev->buffer); in iio_simple_dummy_unconfigure_buffer()
|
/linux-4.4.14/Documentation/DocBook/ |
D | iio.xml.db | 7 API-struct-iio-buffer 9 API-iio-buffer-get 10 API-iio-buffer-put 15 API-iio-triggered-buffer-setup 16 API-iio-triggered-buffer-cleanup 17 API-struct-iio-buffer-setup-ops
|
/linux-4.4.14/drivers/scsi/arm/ |
D | scsi.h | 42 for_each_sg(sg_next(SCp->buffer), src_sg, bufs, i) in copy_SCp_to_sg() 54 SCp->buffer = sg_next(SCp->buffer); in next_SCp() 56 SCp->ptr = sg_virt(SCp->buffer); in next_SCp() 57 SCp->this_residual = SCp->buffer->length; in next_SCp() 89 SCpnt->SCp.buffer = scsi_sglist(SCpnt); in init_SCp() 91 SCpnt->SCp.ptr = sg_virt(SCpnt->SCp.buffer); in init_SCp() 92 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in init_SCp()
|
/linux-4.4.14/drivers/edac/ |
D | ppc4xx_edac.c | 318 char *buffer, in ppc4xx_edac_generate_bank_message() argument 324 n = snprintf(buffer, size, "%s: Banks: ", mci->dev_name); in ppc4xx_edac_generate_bank_message() 329 buffer += n; in ppc4xx_edac_generate_bank_message() 335 n = snprintf(buffer, size, "%s%u", in ppc4xx_edac_generate_bank_message() 341 buffer += n; in ppc4xx_edac_generate_bank_message() 347 n = snprintf(buffer, size, "%s; ", rows ? "" : "None"); in ppc4xx_edac_generate_bank_message() 352 buffer += n; in ppc4xx_edac_generate_bank_message() 380 char *buffer, in ppc4xx_edac_generate_checkbit_message() argument 415 return snprintf(buffer, size, "Checkbit Error: %s", ckber); in ppc4xx_edac_generate_checkbit_message() 438 char *buffer, in ppc4xx_edac_generate_lane_message() argument [all …]
|
/linux-4.4.14/security/apparmor/ |
D | path.c | 30 static int prepend(char **buffer, int buflen, const char *str, int namelen) in prepend() argument 35 *buffer -= namelen; in prepend() 36 memcpy(*buffer, str, namelen); in prepend() 161 static int get_name_to_buffer(struct path *path, int flags, char *buffer, in get_name_to_buffer() argument 165 int error = d_namespace_path(path, buffer, size - adjust, name, flags); in get_name_to_buffer() 172 strcpy(&buffer[size - 2], "/"); in get_name_to_buffer() 207 int aa_path_name(struct path *path, int flags, char **buffer, const char **name, in aa_path_name() argument 215 *buffer = NULL; in aa_path_name() 232 *buffer = buf; in aa_path_name()
|
D | lib.c | 91 void *buffer = NULL; in __aa_kvmalloc() local 98 buffer = kmalloc(size, flags | GFP_NOIO | __GFP_NOWARN); in __aa_kvmalloc() 99 if (!buffer) { in __aa_kvmalloc() 101 buffer = vzalloc(size); in __aa_kvmalloc() 103 buffer = vmalloc(size); in __aa_kvmalloc() 105 return buffer; in __aa_kvmalloc()
|
/linux-4.4.14/fs/squashfs/ |
D | file_cache.c | 26 struct squashfs_cache_entry *buffer = squashfs_get_datablock(i->i_sb, in squashfs_readpage_block() local 28 int res = buffer->error; in squashfs_readpage_block() 34 squashfs_copy_cache(page, buffer, buffer->length, 0); in squashfs_readpage_block() 36 squashfs_cache_put(buffer); in squashfs_readpage_block()
|
D | xattr.c | 39 ssize_t squashfs_listxattr(struct dentry *d, char *buffer, in squashfs_listxattr() argument 71 prefix_size = handler->list(handler, d, buffer, rest, in squashfs_listxattr() 74 if (buffer) { in squashfs_listxattr() 79 buffer += prefix_size; in squashfs_listxattr() 81 err = squashfs_read_metadata(sb, buffer, &start, in squashfs_listxattr() 85 if (buffer) { in squashfs_listxattr() 86 buffer[name_size] = '\0'; in squashfs_listxattr() 87 buffer += name_size + 1; in squashfs_listxattr() 118 const char *name, void *buffer, size_t buffer_size) in squashfs_xattr_get() argument 184 if (buffer) { in squashfs_xattr_get() [all …]
|
/linux-4.4.14/drivers/connector/ |
D | cn_proc.c | 47 static inline struct cn_msg *buffer_to_cn_msg(__u8 *buffer) in buffer_to_cn_msg() argument 50 return (struct cn_msg *)(buffer + 4); in buffer_to_cn_msg() 71 __u8 buffer[CN_PROC_MSG_SIZE] __aligned(8); in proc_fork_connector() local 77 msg = buffer_to_cn_msg(buffer); in proc_fork_connector() 103 __u8 buffer[CN_PROC_MSG_SIZE] __aligned(8); in proc_exec_connector() local 108 msg = buffer_to_cn_msg(buffer); in proc_exec_connector() 128 __u8 buffer[CN_PROC_MSG_SIZE] __aligned(8); in proc_id_connector() local 134 msg = buffer_to_cn_msg(buffer); in proc_id_connector() 167 __u8 buffer[CN_PROC_MSG_SIZE] __aligned(8); in proc_sid_connector() local 172 msg = buffer_to_cn_msg(buffer); in proc_sid_connector() [all …]
|
/linux-4.4.14/kernel/ |
D | sysctl.c | 179 void __user *buffer, size_t *lenp, loff_t *ppos); 181 void __user *buffer, size_t *lenp, loff_t *ppos); 186 void __user *buffer, size_t *lenp, loff_t *ppos); 190 void __user *buffer, size_t *lenp, loff_t *ppos); 193 void __user *buffer, size_t *lenp, loff_t *ppos); 201 void __user *buffer, size_t *lenp, in sysrq_sysctl_handler() argument 206 error = proc_dointvec(table, write, buffer, lenp, ppos); in sysrq_sysctl_handler() 1801 char __user *buffer, in _proc_do_string() argument 1829 p = buffer; in _proc_do_string() 1830 while ((p - buffer) < *lenp && len < maxlen - 1) { in _proc_do_string() [all …]
|
D | kallsyms.c | 356 static int __sprint_symbol(char *buffer, unsigned long address, in __sprint_symbol() argument 365 name = kallsyms_lookup(address, &size, &offset, &modname, buffer); in __sprint_symbol() 367 return sprintf(buffer, "0x%lx", address - symbol_offset); in __sprint_symbol() 369 if (name != buffer) in __sprint_symbol() 370 strcpy(buffer, name); in __sprint_symbol() 371 len = strlen(buffer); in __sprint_symbol() 375 len += sprintf(buffer + len, "+%#lx/%#lx", offset, size); in __sprint_symbol() 378 len += sprintf(buffer + len, " [%s]", modname); in __sprint_symbol() 394 int sprint_symbol(char *buffer, unsigned long address) in sprint_symbol() argument 396 return __sprint_symbol(buffer, address, 0, 1); in sprint_symbol() [all …]
|
/linux-4.4.14/arch/um/os-Linux/drivers/ |
D | tuntap_user.c | 63 char *buffer, int buffer_len, int *used_out) in tuntap_open_tramp() argument 89 if (buffer != NULL) { in tuntap_open_tramp() 90 iov = ((struct iovec) { buffer, buffer_len }); in tuntap_open_tramp() 132 char *output, *buffer; in tuntap_open() local 167 buffer = get_output_buffer(&len); in tuntap_open() 168 if (buffer != NULL) in tuntap_open() 173 fds[1], buffer, len, &used); in tuntap_open() 175 output = buffer; in tuntap_open() 178 free_output_buffer(buffer); in tuntap_open() 184 pri->dev_name = uml_strdup(buffer); in tuntap_open() [all …]
|
/linux-4.4.14/drivers/i2c/busses/ |
D | i2c-taos-evm.c | 45 unsigned char buffer[TAOS_BUFFER_SIZE]; member 76 p = taos->buffer; in taos_smbus_xfer() 102 dev_dbg(&adapter->dev, "Command buffer: %s\n", taos->buffer); in taos_smbus_xfer() 103 for (p = taos->buffer; *p; p++) in taos_smbus_xfer() 120 dev_dbg(&adapter->dev, "Answer buffer: %s\n", taos->buffer); in taos_smbus_xfer() 123 p = taos->buffer + 1; in taos_smbus_xfer() 158 taos->buffer[taos->pos++] = data; in taos_interrupt() 161 taos->buffer[taos->pos] = '\0'; in taos_interrupt() 171 taos->buffer[taos->pos++] = data; in taos_interrupt() 173 taos->buffer[taos->pos] = '\0'; in taos_interrupt() [all …]
|
/linux-4.4.14/drivers/net/ |
D | sb1000.c | 713 unsigned char buffer[], int size) in sb1000_print_status_buffer() argument 718 if (buffer[24] == 0x08 && buffer[25] == 0x00 && buffer[26] == 0x45) { in sb1000_print_status_buffer() 720 "to %d.%d.%d.%d:%d\n", name, buffer[28] << 8 | buffer[29], in sb1000_print_status_buffer() 721 buffer[35], buffer[38], buffer[39], buffer[40], buffer[41], in sb1000_print_status_buffer() 722 buffer[46] << 8 | buffer[47], in sb1000_print_status_buffer() 723 buffer[42], buffer[43], buffer[44], buffer[45], in sb1000_print_status_buffer() 724 buffer[48] << 8 | buffer[49]); in sb1000_print_status_buffer() 729 printk(" %02x", buffer[k]); in sb1000_print_status_buffer() 746 unsigned char st[2], buffer[FRAMESIZE], session_id, frame_id; in sb1000_rx() local 811 insw(ioaddr, buffer, NewDatagramHeaderSize / 2); in sb1000_rx() [all …]
|
/linux-4.4.14/drivers/ide/ |
D | ide-acpi.c | 276 if (!out_obj->buffer.length || !out_obj->buffer.pointer || in do_drive_get_GTF() 277 out_obj->buffer.length % REGS_PER_GTF) { in do_drive_get_GTF() 280 __func__, out_obj->buffer.length, in do_drive_get_GTF() 281 out_obj->buffer.pointer); in do_drive_get_GTF() 287 *gtf_length = out_obj->buffer.length; in do_drive_get_GTF() 288 *gtf_address = (unsigned long)out_obj->buffer.pointer; in do_drive_get_GTF() 436 if (!out_obj->buffer.length || !out_obj->buffer.pointer || in ide_acpi_get_timing() 437 out_obj->buffer.length != sizeof(struct GTM_buffer)) { in ide_acpi_get_timing() 441 __func__, out_obj->buffer.length, in ide_acpi_get_timing() 442 sizeof(struct GTM_buffer), out_obj->buffer.pointer); in ide_acpi_get_timing() [all …]
|
/linux-4.4.14/drivers/media/usb/gspca/ |
D | sq905c.c | 143 u8 *buffer; in sq905c_dostream() local 145 buffer = kmalloc(SQ905C_MAX_TRANSFER, GFP_KERNEL | GFP_DMA); in sq905c_dostream() 146 if (!buffer) { in sq905c_dostream() 159 buffer, FRAME_HEADER_LEN, &act_len, in sq905c_dostream() 167 bytes_left = buffer[0x40]|(buffer[0x41]<<8)|(buffer[0x42]<<16) in sq905c_dostream() 168 |(buffer[0x43]<<24); in sq905c_dostream() 173 buffer, FRAME_HEADER_LEN); in sq905c_dostream() 179 buffer, data_len, &act_len, in sq905c_dostream() 192 buffer, data_len); in sq905c_dostream() 201 kfree(buffer); in sq905c_dostream()
|
/linux-4.4.14/net/irda/ |
D | discovery.c | 155 discinfo_t * buffer = NULL; in irlmp_expire_discoveries() local 178 if(buffer == NULL) { in irlmp_expire_discoveries() 181 buffer = kmalloc(n * sizeof(struct irda_device_info), GFP_ATOMIC); in irlmp_expire_discoveries() 182 if (buffer == NULL) { in irlmp_expire_discoveries() 190 memcpy(&(buffer[i]), &(curr->data), in irlmp_expire_discoveries() 206 if(buffer == NULL) in irlmp_expire_discoveries() 210 irlmp_discovery_expiry(buffer, i); in irlmp_expire_discoveries() 213 kfree(buffer); in irlmp_expire_discoveries() 266 discinfo_t * buffer = NULL; in irlmp_copy_discoveries() local 290 if(buffer == NULL) { in irlmp_copy_discoveries() [all …]
|
/linux-4.4.14/sound/usb/line6/ |
D | driver.c | 50 const char *buffer; member 89 static int line6_send_raw_message(struct usb_line6 *line6, const char *buffer, in line6_send_raw_message() argument 96 const char *frag_buf = buffer + i; in line6_send_raw_message() 145 (char *)msg->buffer + done, bytes, in line6_send_raw_message_async_part() 176 int line6_send_raw_message_async(struct usb_line6 *line6, const char *buffer, in line6_send_raw_message_async() argument 197 msg->buffer = buffer; in line6_send_raw_message_async() 211 char *buffer; in line6_version_request_async() local 214 buffer = kmemdup(line6_request_version, in line6_version_request_async() 216 if (buffer == NULL) in line6_version_request_async() 219 retval = line6_send_raw_message_async(line6, buffer, in line6_version_request_async() [all …]
|
/linux-4.4.14/drivers/gpu/drm/via/ |
D | via_verifier.c | 520 via_check_prim_list(uint32_t const **buffer, const uint32_t * buf_end, in via_check_prim_list() argument 528 const uint32_t *buf = *buffer; in via_check_prim_list() 619 *buffer = buf; in via_check_prim_list() 624 via_check_header2(uint32_t const **buffer, const uint32_t *buf_end, in via_check_header2() argument 630 const uint32_t *buf = *buffer; in via_check_header2() 645 *buffer = buf; in via_check_header2() 664 *buffer = buf; in via_check_header2() 669 *buffer = buf; in via_check_header2() 690 *buffer = buf; in via_check_header2() 711 *buffer = buf; in via_check_header2() [all …]
|
/linux-4.4.14/drivers/net/ethernet/altera/ |
D | altera_sgdma.c | 51 queue_tx(struct altera_tse_private *priv, struct tse_buffer *buffer); 54 queue_rx(struct altera_tse_private *priv, struct tse_buffer *buffer); 178 int sgdma_tx_buffer(struct altera_tse_private *priv, struct tse_buffer *buffer) in sgdma_tx_buffer() argument 193 buffer->dma_addr, /* address of packet to xmit */ in sgdma_tx_buffer() 195 buffer->len, /* length of packet */ in sgdma_tx_buffer() 203 queue_tx(priv, buffer); in sgdma_tx_buffer() 456 queue_tx(struct altera_tse_private *priv, struct tse_buffer *buffer) in queue_tx() argument 458 list_add_tail(&buffer->lh, &priv->txlisthd); in queue_tx() 467 queue_rx(struct altera_tse_private *priv, struct tse_buffer *buffer) in queue_rx() argument 469 list_add_tail(&buffer->lh, &priv->rxlisthd); in queue_rx() [all …]
|
/linux-4.4.14/arch/tile/lib/ |
D | cacheflush.c | 40 finv_buffer_remote(void *buffer, size_t size, int hfh) in finv_buffer_remote() argument 76 __finv_buffer(buffer, size); in finv_buffer_remote() 129 p = (char *)buffer + size - 1; in finv_buffer_remote() 138 if ((unsigned long)base < (unsigned long)buffer) in finv_buffer_remote() 139 base = buffer; in finv_buffer_remote() 158 p = (char *)buffer + size - 1; in finv_buffer_remote()
|
/linux-4.4.14/drivers/media/i2c/ |
D | sony-btf-mpx.c | 61 u8 buffer[5]; in mpx_write() local 64 buffer[0] = dev; in mpx_write() 65 buffer[1] = addr >> 8; in mpx_write() 66 buffer[2] = addr & 0xff; in mpx_write() 67 buffer[3] = val >> 8; in mpx_write() 68 buffer[4] = val & 0xff; in mpx_write() 72 msg.buf = buffer; in mpx_write() 173 u8 buffer[3]; in mpx_setup() local 178 buffer[0] = 0x00; in mpx_setup() 179 buffer[1] = 0x80; in mpx_setup() [all …]
|
/linux-4.4.14/sound/firewire/oxfw/ |
D | oxfw-proc.c | 12 struct snd_info_buffer *buffer) in proc_read_formation() argument 27 snd_iprintf(buffer, "Input Stream to device:\n"); in proc_read_formation() 28 snd_iprintf(buffer, "\tRate\tPCM\tMIDI\n"); in proc_read_formation() 43 snd_iprintf(buffer, "%c\t%d\t%d\t%d\n", flag, in proc_read_formation() 57 snd_iprintf(buffer, "Output Stream from device:\n"); in proc_read_formation() 58 snd_iprintf(buffer, "\tRate\tPCM\tMIDI\n"); in proc_read_formation() 73 snd_iprintf(buffer, "%c\t%d\t%d\t%d\n", flag, in proc_read_formation()
|
/linux-4.4.14/drivers/scsi/esas2r/ |
D | esas2r_log.c | 124 char *buffer = event_buffer; in esas2r_log_master() local 133 if (buffer == NULL) { in esas2r_log_master() 138 memset(buffer, 0, buflen); in esas2r_log_master() 147 snprintf(buffer, buflen, fmt_nodev, slevel, in esas2r_log_master() 150 snprintf(buffer, buflen, fmt_dev, slevel, in esas2r_log_master() 157 buffer += strlen(event_buffer); in esas2r_log_master() 160 retval = vsnprintf(buffer, buflen, format, args); in esas2r_log_master()
|
/linux-4.4.14/drivers/net/wireless/ath/ath10k/ |
D | bmi.c | 92 u32 address, void *buffer, u32 length) in ath10k_bmi_read_memory() argument 123 memcpy(buffer, resp.read_mem.payload, rxlen); in ath10k_bmi_read_memory() 125 buffer += rxlen; in ath10k_bmi_read_memory() 133 u32 address, const void *buffer, u32 length) in ath10k_bmi_write_memory() argument 152 memcpy(cmd.write_mem.payload, buffer, txlen); in ath10k_bmi_write_memory() 171 buffer += txlen; in ath10k_bmi_write_memory() 217 int ath10k_bmi_lz_data(struct ath10k *ar, const void *buffer, u32 length) in ath10k_bmi_lz_data() argument 225 buffer, length); in ath10k_bmi_lz_data() 239 memcpy(cmd.lz_data.payload, buffer, txlen); in ath10k_bmi_lz_data() 248 buffer += txlen; in ath10k_bmi_lz_data() [all …]
|
/linux-4.4.14/drivers/firmware/ |
D | dell_rbu.c | 471 static ssize_t read_packet_data(char *buffer, loff_t pos, size_t count) in read_packet_data() argument 476 char *ptempBuf = buffer; in read_packet_data() 509 static ssize_t read_rbu_mono_data(char *buffer, loff_t pos, size_t count) in read_rbu_mono_data() argument 521 return memory_read_from_buffer(buffer, count, &pos, in read_rbu_mono_data() 527 char *buffer, loff_t pos, size_t count) in read_rbu_data() argument 534 ret_count = read_rbu_mono_data(buffer, pos, count); in read_rbu_data() 536 ret_count = read_packet_data(buffer, pos, count); in read_rbu_data() 581 char *buffer, loff_t pos, size_t count) in read_rbu_image_type() argument 585 size = scnprintf(buffer, count, "%s\n", image_type); in read_rbu_image_type() 591 char *buffer, loff_t pos, size_t count) in write_rbu_image_type() argument [all …]
|
/linux-4.4.14/sound/pci/cs46xx/ |
D | dsp_spos.c | 503 struct snd_info_buffer *buffer) in cs46xx_dsp_proc_symbol_table_read() argument 509 snd_iprintf(buffer, "SYMBOLS:\n"); in cs46xx_dsp_proc_symbol_table_read() 521 snd_iprintf(buffer, "%04X <%02X> %s [%s]\n", in cs46xx_dsp_proc_symbol_table_read() 531 struct snd_info_buffer *buffer) in cs46xx_dsp_proc_modules_read() argument 538 snd_iprintf(buffer, "MODULES:\n"); in cs46xx_dsp_proc_modules_read() 540 snd_iprintf(buffer, "\n%s:\n", ins->modules[i].module_name); in cs46xx_dsp_proc_modules_read() 541 snd_iprintf(buffer, " %d symbols\n", ins->modules[i].symbol_table.nsymbols); in cs46xx_dsp_proc_modules_read() 542 snd_iprintf(buffer, " %d fixups\n", ins->modules[i].nfixups); in cs46xx_dsp_proc_modules_read() 546 snd_iprintf(buffer, " segment %02x offset %08x size %08x\n", in cs46xx_dsp_proc_modules_read() 554 struct snd_info_buffer *buffer) in cs46xx_dsp_proc_task_tree_read() argument [all …]
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_acpi.c | 110 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in amdgpu_atif_call() local 120 atif_arg_elements[1].buffer.length = params->length; in amdgpu_atif_call() 121 atif_arg_elements[1].buffer.pointer = params->pointer; in amdgpu_atif_call() 128 status = acpi_evaluate_object(handle, "ATIF", &atif_arg, &buffer); in amdgpu_atif_call() 134 kfree(buffer.pointer); in amdgpu_atif_call() 138 return buffer.pointer; in amdgpu_atif_call() 213 size = *(u16 *) info->buffer.pointer; in amdgpu_atif_verify_interface() 221 memcpy(&output, info->buffer.pointer, size); in amdgpu_atif_verify_interface() 260 size = *(u16 *) info->buffer.pointer; in amdgpu_atif_get_notification_params() 268 memcpy(¶ms, info->buffer.pointer, size); in amdgpu_atif_get_notification_params() [all …]
|
/linux-4.4.14/ipc/ |
D | ipc_sysctl.c | 31 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec() argument 38 return proc_dointvec(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_dointvec() 42 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax() argument 49 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax() 53 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax_orphans() argument 56 int err = proc_ipc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax_orphans() 66 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_doulongvec_minmax() argument 72 return proc_doulongvec_minmax(&ipc_table, write, buffer, in proc_ipc_doulongvec_minmax() 77 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_auto_msgmni() argument 88 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_auto_msgmni()
|
/linux-4.4.14/arch/powerpc/crypto/ |
D | sha1-spe-glue.c | 88 memcpy((char *)sctx->buffer + offset, src, len); in ppc_spe_sha1_update() 95 memcpy((char *)sctx->buffer + offset, src, avail); in ppc_spe_sha1_update() 98 ppc_spe_sha1_transform(sctx->state, (const u8 *)sctx->buffer, 1); in ppc_spe_sha1_update() 117 memcpy((char *)sctx->buffer, src, len); in ppc_spe_sha1_update() 125 char *p = (char *)sctx->buffer + offset; in ppc_spe_sha1_final() 127 __be64 *pbits = (__be64 *)(((char *)&sctx->buffer) + 56); in ppc_spe_sha1_final() 137 ppc_spe_sha1_transform(sctx->state, sctx->buffer, 1); in ppc_spe_sha1_final() 138 p = (char *)sctx->buffer; in ppc_spe_sha1_final() 144 ppc_spe_sha1_transform(sctx->state, sctx->buffer, 1); in ppc_spe_sha1_final()
|
/linux-4.4.14/drivers/isdn/hardware/eicon/ |
D | capidtmf.h | 70 word capidtmf_recv_indication(t_capidtmf_state *p_state, byte *buffer); 71 void capidtmf_recv_block(t_capidtmf_state *p_state, byte *buffer, word length); 75 …ion(p_state, buffer) (((p_state)->recv.indication_state != (p_state)->recv.indication_state_ack) … argument 76 …rocess_block(p_state, buffer, length) { if ((p_state)->recv.state != CAPIDTMF_RECV_STATE_IDLE) ca… argument
|
/linux-4.4.14/Documentation/fb/ |
D | 00-INDEX | 2 buffer devices needs an entry here, needs correction or you've written one 9 - The frame buffer API between applications and buffer devices. 13 - info on the ATI Rage128 frame buffer driver. 27 - introduction to frame buffer devices. 35 - quick overview of frame buffer device internals. 45 - info on the PowerVR 2 frame buffer driver. 59 - info on the frame buffer driver for 3dfx' Voodoo Graphics boards. 61 - info on the TGA (DECChip 21030) frame buffer driver. 67 - info on the userspace VESA (VBE2+ compliant) frame buffer device. 69 - info on the VESA frame buffer device.
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | syscalls.c | 90 unsigned long __user *buffer = (unsigned long __user *)n; in ppc_select() local 91 if (!access_ok(VERIFY_READ, buffer, 5*sizeof(unsigned long)) in ppc_select() 92 || __get_user(n, buffer) in ppc_select() 93 || __get_user(inp, ((fd_set __user * __user *)(buffer+1))) in ppc_select() 94 || __get_user(outp, ((fd_set __user * __user *)(buffer+2))) in ppc_select() 95 || __get_user(exp, ((fd_set __user * __user *)(buffer+3))) in ppc_select() 96 || __get_user(tvp, ((struct timeval __user * __user *)(buffer+4)))) in ppc_select()
|
/linux-4.4.14/tools/power/acpi/tools/acpidump/ |
D | apfiles.c | 198 struct acpi_table_header *buffer = NULL; in ap_get_table_from_file() local 222 buffer = ACPI_ALLOCATE_ZEROED(file_size); in ap_get_table_from_file() 223 if (!buffer) { in ap_get_table_from_file() 231 actual = acpi_os_read_file(file, buffer, 1, file_size); in ap_get_table_from_file() 234 ACPI_FREE(buffer); in ap_get_table_from_file() 235 buffer = NULL; in ap_get_table_from_file() 243 return (buffer); in ap_get_table_from_file()
|
/linux-4.4.14/drivers/staging/lustre/lustre/include/ |
D | lprocfs_status.h | 382 int lprocfs_write_frac_helper(const char __user *buffer, 384 int lprocfs_read_frac_helper(char *buffer, unsigned long count, 586 int lprocfs_wr_uint(struct file *file, const char __user *buffer, 597 int lprocfs_wr_ping(struct file *file, const char __user *buffer, 599 int lprocfs_wr_import(struct file *file, const char __user *buffer, 602 int lprocfs_wr_pinger_recov(struct file *file, const char __user *buffer, 607 int lprocfs_write_helper(const char __user *buffer, unsigned long count, 609 int lprocfs_write_u64_helper(const char __user *buffer, 611 int lprocfs_write_frac_u64_helper(const char *buffer, 614 char *lprocfs_find_named_value(const char *buffer, const char *name, [all …]
|
/linux-4.4.14/drivers/thunderbolt/ |
D | ctl.c | 19 void *buffer; member 152 struct tb_cfg_header *header = pkg->buffer; in check_header() 203 struct cfg_error_pkg *pkg = response->buffer; in decode_error() 225 struct tb_cfg_header *header = pkg->buffer; in parse_header() 299 pkg->buffer, pkg->frame.buffer_phy); in tb_ctl_pkg_free() 310 pkg->buffer = dma_pool_alloc(ctl->frame_pool, GFP_KERNEL, in tb_ctl_pkg_alloc() 312 if (!pkg->buffer) { in tb_ctl_pkg_alloc() 357 cpu_to_be32_array(pkg->buffer, data, len / 4); in tb_ctl_tx() 358 *(__be32 *) (pkg->buffer + len) = tb_crc(pkg->buffer, len); in tb_ctl_tx() 372 struct cfg_event_pkg *pkg = response->buffer; in tb_ctl_handle_plug_event() [all …]
|
/linux-4.4.14/drivers/cdrom/ |
D | cdrom.c | 424 char buffer[16]; in cdrom_mrw_probe_pc() local 426 init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_READ); in cdrom_mrw_probe_pc() 446 unsigned char buffer[16]; in cdrom_is_mrw() local 451 init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_READ); in cdrom_is_mrw() 455 cgc.cmd[8] = sizeof(buffer); in cdrom_is_mrw() 461 mfd = (struct mrw_feature_desc *)&buffer[sizeof(struct feature_header)]; in cdrom_is_mrw() 477 unsigned char buffer[12]; in cdrom_mrw_bgformat() local 485 init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_WRITE); in cdrom_mrw_bgformat() 494 buffer[1] = 1 << 1; in cdrom_mrw_bgformat() 495 buffer[3] = 8; in cdrom_mrw_bgformat() [all …]
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_minidump.c | 386 struct qlcnic_dump_entry *entry, __le32 *buffer) in qlcnic_dump_crb() argument 396 *buffer++ = cpu_to_le32(addr); in qlcnic_dump_crb() 397 *buffer++ = cpu_to_le32(data); in qlcnic_dump_crb() 404 struct qlcnic_dump_entry *entry, __le32 *buffer) in qlcnic_dump_ctrl() argument 502 struct qlcnic_dump_entry *entry, __le32 *buffer) in qlcnic_dump_mux() argument 512 *buffer++ = cpu_to_le32(val); in qlcnic_dump_mux() 513 *buffer++ = cpu_to_le32(data); in qlcnic_dump_mux() 520 struct qlcnic_dump_entry *entry, __le32 *buffer) in qlcnic_dump_que() argument 534 *buffer++ = cpu_to_le32(data); in qlcnic_dump_que() 543 struct qlcnic_dump_entry *entry, __le32 *buffer) in qlcnic_dump_ocm() argument [all …]
|
/linux-4.4.14/include/net/iucv/ |
D | iucv.h | 346 u8 flags, void *buffer, size_t size, size_t *residual); 366 u8 flags, void *buffer, size_t size, 418 u8 flags, u32 srccls, void *buffer, size_t size); 438 u8 flags, u32 srccls, void *buffer, size_t size); 460 u8 flags, u32 srccls, void *buffer, size_t size, 465 u8 flags, void *buffer, size_t size, size_t *residual); 467 struct iucv_message *msg, u8 flags, void *buffer, size_t size, 473 u8 flags, u32 srccls, void *buffer, size_t size); 475 u8 flags, u32 srccls, void *buffer, size_t size); 477 struct iucv_message *msg, u8 flags, u32 srccls, void *buffer,
|
/linux-4.4.14/lib/ |
D | oid_registry.c | 110 int sprint_oid(const void *data, size_t datasize, char *buffer, size_t bufsize) in sprint_oid() argument 122 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40); in sprint_oid() 123 buffer += count; in sprint_oid() 143 ret += count = snprintf(buffer, bufsize, ".%lu", num); in sprint_oid() 144 buffer += count; in sprint_oid() 163 int sprint_OID(enum OID oid, char *buffer, size_t bufsize) in sprint_OID() argument 171 buffer, bufsize); in sprint_OID()
|