/drivers/staging/iio/ |
H A D | ring_hw.h | 14 * @buf: generic ring buffer elements 18 struct iio_buffer buf; member in struct:iio_hw_buffer 22 #define iio_to_hw_buf(r) container_of(r, struct iio_hw_buffer, buf)
|
/drivers/ata/ |
H A D | sata_promise.h | 46 unsigned int devno, u8 *buf) 49 __le32 *buf32 = (__le32 *) buf; 80 buf[12] = (1 << 5) | PDC_PKT_CLEAR_BSY | ATA_REG_DEVICE; 81 buf[13] = dev_reg; 84 buf[14] = (1 << 5) | PDC_REG_DEVCTL; 85 buf[15] = tf->ctl; 90 static inline unsigned int pdc_pkt_footer(struct ata_taskfile *tf, u8 *buf, argument 94 buf[i++] = (1 << 5) | ATA_REG_DEVICE; 95 buf[i++] = tf->device; 99 buf[ 44 pdc_pkt_header(struct ata_taskfile *tf, dma_addr_t sg_table, unsigned int devno, u8 *buf) argument 105 pdc_prep_lba28(struct ata_taskfile *tf, u8 *buf, unsigned int i) argument 128 pdc_prep_lba48(struct ata_taskfile *tf, u8 *buf, unsigned int i) argument [all...] |
/drivers/media/video/ |
H A D | videobuf2-dma-sg.c | 38 struct vb2_dma_sg_buf *buf; local 41 buf = kzalloc(sizeof *buf, GFP_KERNEL); 42 if (!buf) 45 buf->vaddr = NULL; 46 buf->write = 0; 47 buf->offset = 0; 48 buf->sg_desc.size = size; 49 buf->sg_desc.num_pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; 51 buf 95 struct vb2_dma_sg_buf *buf = buf_priv; local 114 struct vb2_dma_sg_buf *buf; local 185 struct vb2_dma_sg_buf *buf = buf_priv; local 204 struct vb2_dma_sg_buf *buf = buf_priv; local 220 struct vb2_dma_sg_buf *buf = buf_priv; local 227 struct vb2_dma_sg_buf *buf = buf_priv; local 264 struct vb2_dma_sg_buf *buf = buf_priv; local [all...] |
H A D | videobuf2-dma-contig.c | 40 struct vb2_dc_buf *buf; local 42 buf = kzalloc(sizeof *buf, GFP_KERNEL); 43 if (!buf) 46 buf->vaddr = dma_alloc_coherent(conf->dev, size, &buf->dma_addr, 48 if (!buf->vaddr) { 51 kfree(buf); 55 buf->conf = conf; 56 buf 69 struct vb2_dc_buf *buf = buf_priv; local 80 struct vb2_dc_buf *buf = buf_priv; local 87 struct vb2_dc_buf *buf = buf_priv; local 96 struct vb2_dc_buf *buf = buf_priv; local 103 struct vb2_dc_buf *buf = buf_priv; local 117 struct vb2_dc_buf *buf; local 143 struct vb2_dc_buf *buf = mem_priv; local [all...] |
H A D | videobuf2-vmalloc.c | 38 struct vb2_vmalloc_buf *buf; local 40 buf = kzalloc(sizeof(*buf), GFP_KERNEL); 41 if (!buf) 44 buf->size = size; 45 buf->vaddr = vmalloc_user(buf->size); 46 buf->handler.refcount = &buf->refcount; 47 buf 62 struct vb2_vmalloc_buf *buf = buf_priv; local 73 struct vb2_vmalloc_buf *buf; local 137 struct vb2_vmalloc_buf *buf = buf_priv; local 160 struct vb2_vmalloc_buf *buf = buf_priv; local 173 struct vb2_vmalloc_buf *buf = buf_priv; local 179 struct vb2_vmalloc_buf *buf = buf_priv; local [all...] |
/drivers/media/dvb/frontends/ |
H A D | nxt200x.c | 70 static int i2c_writebytes (struct nxt200x_state* state, u8 addr, u8 *buf, u8 len) argument 73 struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = len }; 83 static int i2c_readbytes(struct nxt200x_state *state, u8 addr, u8 *buf, u8 len) argument 86 struct i2c_msg msg = { .addr = addr, .flags = I2C_M_RD, .buf = buf, .len = len }; 97 const u8 *buf, u8 len) 101 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf2, .len = len + 1 }; 104 memcpy(&buf2[1], buf, len); 114 static int nxt200x_readbytes(struct nxt200x_state *state, u8 reg, u8 *buf, u argument 96 nxt200x_writebytes(struct nxt200x_state* state, u8 reg, const u8 *buf, u8 len) argument 149 u8 attr, len2, buf; local 210 u8 buf, len2, attr; local 257 u8 buf, stopval, counter = 0; local 290 u8 buf; local 299 u8 buf[9]; local 330 u8 buf, count = 0; local 390 u8 buf; local 417 u8 buf[3], written = 0, chunkpos = 0; local 484 u8 buf[3]; local 535 u8 buf[5]; local 878 u8 buf[2]; local 939 u8 buf[3]; local 1146 u8 buf [] = {0,0,0,0,0}; local [all...] |
/drivers/tty/ |
H A D | tty_audit.c | 28 struct tty_audit_buf *buf; local 30 buf = kmalloc(sizeof(*buf), GFP_KERNEL); 31 if (!buf) 33 buf->data = kmalloc(N_TTY_BUF_SIZE, GFP_KERNEL); 34 if (!buf->data) 36 atomic_set(&buf->count, 1); 37 mutex_init(&buf->mutex); 38 buf->major = major; 39 buf 50 tty_audit_buf_free(struct tty_audit_buf *buf) argument 57 tty_audit_buf_put(struct tty_audit_buf *buf) argument 92 tty_audit_buf_push(struct task_struct *tsk, uid_t loginuid, unsigned int sessionid, struct tty_audit_buf *buf) argument 113 tty_audit_buf_push_current(struct tty_audit_buf *buf) argument 128 struct tty_audit_buf *buf; local 161 struct tty_audit_buf *buf; local 204 struct tty_audit_buf *buf = ERR_PTR(-EPERM); local 241 struct tty_audit_buf *buf, *buf2; local 289 struct tty_audit_buf *buf; local 337 struct tty_audit_buf *buf; local [all...] |
H A D | n_tracesink.h | 34 void n_tracesink_datadrain(u8 *buf, int count);
|
/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_buf.c | 35 unsigned int flags, struct exynos_drm_gem_buf *buf) 49 if (buf->dma_addr) { 54 if (buf->size >= SZ_1M) { 55 npages = buf->size >> SECTION_SHIFT; 57 } else if (buf->size >= SZ_64K) { 58 npages = buf->size >> 16; 61 npages = buf->size >> PAGE_SHIFT; 65 buf->sgt = kzalloc(sizeof(struct sg_table), GFP_KERNEL); 66 if (!buf->sgt) { 71 ret = sg_alloc_table(buf 34 lowlevel_buffer_allocate(struct drm_device *dev, unsigned int flags, struct exynos_drm_gem_buf *buf) argument 124 lowlevel_buffer_deallocate(struct drm_device *dev, unsigned int flags, struct exynos_drm_gem_buf *buf) argument 194 exynos_drm_alloc_buf(struct drm_device *dev, struct exynos_drm_gem_buf *buf, unsigned int flags) argument [all...] |
/drivers/media/video/saa7164/ |
H A D | saa7164-buffer.c | 69 void saa7164_buffer_display(struct saa7164_buffer *buf) argument 71 struct saa7164_dev *dev = buf->port->dev; 75 __func__, buf, buf->idx); 77 buf->cpu, (long long)buf->dma, buf->pci_size); 79 buf->pt_cpu, (long long)buf->pt_dma, buf 96 struct saa7164_buffer *buf = NULL; local 165 saa7164_buffer_dealloc(struct saa7164_buffer *buf) argument 202 saa7164_buffer_activate(struct saa7164_buffer *buf, int i) argument 239 struct saa7164_buffer *buf; local 289 struct saa7164_user_buffer *buf; local 312 saa7164_buffer_dealloc_user(struct saa7164_user_buffer *buf) argument [all...] |
/drivers/media/video/cx23885/ |
H A D | netup-init.c | 31 u8 buf[3]; local 35 .buf = buf, 39 buf[0] = reg >> 8; 40 buf[1] = reg & 0xff; 41 buf[2] = val; 52 u8 buf[6]; local 56 .buf = buf, 60 buf[ 76 u8 buf[2]; local [all...] |
/drivers/media/video/uvc/ |
H A D | uvc_isight.c | 39 static int isight_decode(struct uvc_video_queue *queue, struct uvc_buffer *buf, argument 52 if (buf == NULL) 62 if (buf->state != UVC_BUF_STATE_ACTIVE) { 69 buf->state = UVC_BUF_STATE_ACTIVE; 77 if (is_header && buf->bytesused != 0) { 78 buf->state = UVC_BUF_STATE_DONE; 86 maxlen = buf->length - buf->bytesused; 87 mem = buf->mem + buf 102 uvc_video_decode_isight(struct urb *urb, struct uvc_streaming *stream, struct uvc_buffer *buf) argument [all...] |
/drivers/gpu/drm/ |
H A D | drm_buffer.c | 41 * buf: Pointer to a pointer where the object is stored. 44 int drm_buffer_alloc(struct drm_buffer **buf, int size) argument 51 *buf = kzalloc(sizeof(struct drm_buffer) + nr_pages*sizeof(char *), 54 if (*buf == NULL) { 61 (*buf)->size = size; 65 (*buf)->data[idx] = 70 if ((*buf)->data[idx] == NULL) { 84 if ((*buf)->data[idx]) 85 kfree((*buf)->data[idx]); 88 kfree((*buf) 102 drm_buffer_copy_from_user(struct drm_buffer *buf, void __user *user_data, int size) argument 135 drm_buffer_free(struct drm_buffer *buf) argument 162 drm_buffer_read_object(struct drm_buffer *buf, int objsize, void *stack_obj) argument [all...] |
/drivers/media/dvb/dvb-usb/ |
H A D | mxl111sf-i2c.c | 260 &msg->buf[i]); 291 msg->buf[i]); 343 u8 buf[26]; local 347 buf[0] = USB_READ_I2C_CMD; 348 buf[1] = 0x00; 350 buf[2] = I2C_INT_STATUS_REG; 351 buf[3] = 0x00; 352 buf[4] = 0x00; 354 buf[5] = USB_END_I2C_CMD; 356 mxl111sf_i2c_get_data(state, 0, buf, bu 367 u8 buf[26]; local 445 u8 buf[26]; local [all...] |
/drivers/s390/char/ |
H A D | ctrlchar.c | 33 * @param buf Console input buffer. 42 ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty) argument 49 if ((buf[0] != '^') && (buf[0] != '\252')) 54 if (len == 3 && buf[1] == '-') { 55 ctrlchar_sysrq_key = buf[2]; 64 switch (tolower(buf[1])) {
|
/drivers/staging/ozwpan/ |
H A D | ozeltbuf.c | 21 int oz_elt_buf_init(struct oz_elt_buf *buf) argument 23 memset(buf, 0, sizeof(struct oz_elt_buf)); 24 INIT_LIST_HEAD(&buf->stream_list); 25 INIT_LIST_HEAD(&buf->order_list); 26 INIT_LIST_HEAD(&buf->isoc_list); 27 buf->max_free_elts = 32; 28 spin_lock_init(&buf->lock); 34 void oz_elt_buf_term(struct oz_elt_buf *buf) argument 42 list = &buf->order_list; 44 list = &buf 65 oz_elt_info_alloc(struct oz_elt_buf *buf) argument 98 oz_elt_info_free(struct oz_elt_buf *buf, struct oz_elt_info *ei) argument 116 oz_elt_info_free_chain(struct oz_elt_buf *buf, struct list_head *list) argument 131 oz_elt_stream_create(struct oz_elt_buf *buf, u8 id, int max_buf_count) argument 151 oz_elt_stream_delete(struct oz_elt_buf *buf, u8 id) argument 208 oz_queue_elt_info(struct oz_elt_buf *buf, u8 isoc, u8 id, struct oz_elt_info *ei) argument 268 oz_select_elts_for_tx(struct oz_elt_buf *buf, u8 isoc, unsigned *len, unsigned max_len, struct list_head *list) argument 314 oz_are_elts_available(struct oz_elt_buf *buf) argument 320 oz_trim_elt_pool(struct oz_elt_buf *buf) argument [all...] |
/drivers/pci/ |
H A D | vpd.c | 11 int pci_vpd_find_tag(const u8 *buf, unsigned int off, unsigned int len, u8 rdt) argument 16 u8 val = buf[i]; 27 pci_vpd_lrdt_size(&buf[i]); 38 pci_vpd_srdt_size(&buf[i]); 46 int pci_vpd_find_info_keyword(const u8 *buf, unsigned int off, argument 52 if (buf[i + 0] == kw[0] && 53 buf[i + 1] == kw[1]) 57 pci_vpd_info_field_size(&buf[i]);
|
/drivers/scsi/pcmcia/ |
H A D | nsp_io.h | 69 void *buf, 72 insb(BaseAddr + Register, buf, count); 76 void *buf, 79 /*nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx", buf, count);*/ 80 nsp_multi_read_1(base, FIFODATA, buf, count); 88 void *buf, 91 insw(BaseAddr + Register, buf, count); 95 void *buf, 98 //nsp_dbg(NSP_DEBUG_DATA_IO, "buf 67 nsp_multi_read_1(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument 75 nsp_fifo8_read(unsigned int base, void *buf, unsigned long count) argument 86 nsp_multi_read_2(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument 94 nsp_fifo16_read(unsigned int base, void *buf, unsigned long count) argument 105 nsp_multi_read_4(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument 113 nsp_fifo32_read(unsigned int base, void *buf, unsigned long count) argument 124 nsp_multi_write_1(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument 132 nsp_fifo8_write(unsigned int base, void *buf, unsigned long count) argument 142 nsp_multi_write_2(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument 150 nsp_fifo16_write(unsigned int base, void *buf, unsigned long count) argument 160 nsp_multi_write_4(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument 168 nsp_fifo32_write(unsigned int base, void *buf, unsigned long count) argument 219 nsp_mmio_multi_read_4(unsigned long base, unsigned int Register, void *buf, unsigned long count) argument 237 nsp_mmio_fifo32_read(unsigned int base, void *buf, unsigned long count) argument 245 nsp_mmio_multi_write_4(unsigned long base, unsigned int Register, void *buf, unsigned long count) argument 263 nsp_mmio_fifo32_write(unsigned int base, void *buf, unsigned long count) argument [all...] |
/drivers/media/video/omap3isp/ |
H A D | ispqueue.c | 67 static void isp_video_buffer_cache_sync(struct isp_video_buffer *buf) argument 69 if (buf->skip_cache) 72 if (buf->vbuf.m.userptr == 0 || buf->npages == 0 || 73 buf->npages > ISP_CACHE_FLUSH_PAGES_MAX) 76 dmac_map_area((void *)buf->vbuf.m.userptr, buf->vbuf.length, 78 outer_inv_range(buf->vbuf.m.userptr, 79 buf->vbuf.m.userptr + buf 97 isp_video_buffer_lock_vma(struct isp_video_buffer *buf, int lock) argument 153 isp_video_buffer_sglist_kernel(struct isp_video_buffer *buf) argument 191 isp_video_buffer_sglist_user(struct isp_video_buffer *buf) argument 226 isp_video_buffer_sglist_pfnmap(struct isp_video_buffer *buf) argument 261 isp_video_buffer_cleanup(struct isp_video_buffer *buf) argument 317 isp_video_buffer_prepare_user(struct isp_video_buffer *buf) argument 362 isp_video_buffer_prepare_pfnmap(struct isp_video_buffer *buf) argument 419 isp_video_buffer_prepare_vm_flags(struct isp_video_buffer *buf) argument 480 isp_video_buffer_prepare(struct isp_video_buffer *buf) argument 545 isp_video_buffer_query(struct isp_video_buffer *buf, struct v4l2_buffer *vbuf) argument 577 isp_video_buffer_wait(struct isp_video_buffer *buf, int nonblocking) argument 615 struct isp_video_buffer *buf = queue->buffers[i]; local 640 struct isp_video_buffer *buf; local 813 struct isp_video_buffer *buf; local 850 struct isp_video_buffer *buf; local 922 struct isp_video_buffer *buf; local 962 struct isp_video_buffer *buf; local 994 struct isp_video_buffer *buf; local 1035 struct isp_video_buffer *buf; local 1056 struct isp_video_buffer *buf = vma->vm_private_data; local 1063 struct isp_video_buffer *buf = vma->vm_private_data; local 1135 struct isp_video_buffer *buf; local [all...] |
/drivers/macintosh/ |
H A D | macio_sysfs.c | 9 char *buf) \ 12 return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \ 16 compatible_show (struct device *dev, struct device_attribute *attr, char *buf) argument 26 *buf = '\0'; 31 length += sprintf (buf, "%s\n", compat); 32 buf += length; 42 char *buf) 44 int len = of_device_get_modalias(dev, buf, PAGE_SIZE - 2); 46 buf[len] = '\n'; 47 buf[le 41 modalias_show(struct device *dev, struct device_attribute *attr, char *buf) argument 52 devspec_show(struct device *dev, struct device_attribute *attr, char *buf) argument [all...] |
/drivers/media/video/ivtv/ |
H A D | ivtv-queue.c | 25 int ivtv_buf_copy_from_user(struct ivtv_stream *s, struct ivtv_buffer *buf, const char __user *src, int copybytes) argument 27 if (s->buf_size - buf->bytesused < copybytes) 28 copybytes = s->buf_size - buf->bytesused; 29 if (copy_from_user(buf->buf + buf->bytesused, src, copybytes)) { 32 buf->bytesused += copybytes; 36 void ivtv_buf_swap(struct ivtv_buffer *buf) argument 40 for (i = 0; i < buf->bytesused; i += 4) 41 swab32s((u32 *)(buf 52 ivtv_enqueue(struct ivtv_stream *s, struct ivtv_buffer *buf, struct ivtv_queue *q) argument 73 struct ivtv_buffer *buf = NULL; local 91 struct ivtv_buffer *buf = list_entry(from->list.next, struct ivtv_buffer, list); local 145 struct ivtv_buffer *buf = list_entry(steal->list.prev, struct ivtv_buffer, list); local 240 struct ivtv_buffer *buf = kzalloc(sizeof(struct ivtv_buffer), local 267 struct ivtv_buffer *buf; local [all...] |
/drivers/media/video/au0828/ |
H A D | au0828-vbi.c | 38 free_buffer(struct videobuf_queue *vq, struct au0828_buffer *buf) argument 56 if (dev->isoc_ctl.vbi_buf == buf) 60 videobuf_vmalloc_free(&buf->vb); 61 buf->vb.state = VIDEOBUF_NEEDS_INIT; 87 struct au0828_buffer *buf = container_of(vb, struct au0828_buffer, vb); local 90 buf->vb.size = dev->vbi_width * dev->vbi_height * 2; 92 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) 95 buf 116 struct au0828_buffer *buf = container_of(vb, local 129 struct au0828_buffer *buf = container_of(vb, struct au0828_buffer, vb); local [all...] |
/drivers/net/wireless/ath/ath5k/ |
H A D | debug.c | 194 char buf[500]; local 200 len += snprintf(buf + len, sizeof(buf) - len, 205 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n", 208 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n\n", 212 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", 216 len += snprintf(buf 243 char buf[20]; local 313 char buf[700]; local 343 char buf[20]; local 373 char buf[700]; local 446 char buf[20]; local 484 char buf[700]; local 540 char buf[700]; local 617 char buf[20]; local 658 char buf[700]; local 764 char buf[20]; local 818 char buf[700]; local 860 char buf[20]; local [all...] |
/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_resources.c | 67 int mlx4_en_map_buffer(struct mlx4_buf *buf) argument 72 if (BITS_PER_LONG == 64 || buf->nbufs == 1) 75 pages = kmalloc(sizeof *pages * buf->nbufs, GFP_KERNEL); 79 for (i = 0; i < buf->nbufs; ++i) 80 pages[i] = virt_to_page(buf->page_list[i].buf); 82 buf->direct.buf = vmap(pages, buf->nbufs, VM_MAP, PAGE_KERNEL); 84 if (!buf 90 mlx4_en_unmap_buffer(struct mlx4_buf *buf) argument [all...] |
/drivers/media/common/tuners/ |
H A D | mt20xx.c | 104 unsigned char *buf, 163 buf[0]=lo1n-1; 164 buf[1]=lo1a | (sel<<4); 165 buf[2]=0x86; // LOGC 166 buf[3]=0x0f; //reserved 167 buf[4]=0x1f; 168 buf[5]=(lo2n-1) | (lo2a<<5); 170 buf[6]=0xe4; 172 buf[6]=0xf4; // set PKEN per rev 1.2 173 buf[ 99 mt2032_compute_freq(struct dvb_frontend *fe, unsigned int rfin, unsigned int if1, unsigned int if2, unsigned int spectrum_from, unsigned int spectrum_to, unsigned char *buf, int *ret_sel, unsigned int xogc) argument 187 unsigned char buf[2]; local 208 unsigned char buf[2]; local 246 unsigned char buf[21]; local 376 unsigned char buf[21]; local 432 unsigned char buf[2]; local 446 unsigned char buf[6]; local 575 unsigned char buf[2]; local 602 unsigned char buf[21]; local [all...] |