/drivers/media/v4l2-core/ |
H A D | videobuf2-vmalloc.c | 40 struct vb2_vmalloc_buf *buf; local 42 buf = kzalloc(sizeof(*buf), GFP_KERNEL | gfp_flags); 43 if (!buf) 46 buf->size = size; 47 buf->vaddr = vmalloc_user(buf->size); 48 buf->handler.refcount = &buf->refcount; 49 buf 64 struct vb2_vmalloc_buf *buf = buf_priv; local 75 struct vb2_vmalloc_buf *buf; local 139 struct vb2_vmalloc_buf *buf = buf_priv; local 162 struct vb2_vmalloc_buf *buf = buf_priv; local 175 struct vb2_vmalloc_buf *buf = buf_priv; local 181 struct vb2_vmalloc_buf *buf = buf_priv; local 217 struct vb2_vmalloc_buf *buf = mem_priv; local 226 struct vb2_vmalloc_buf *buf = mem_priv; local 234 struct vb2_vmalloc_buf *buf = mem_priv; local 245 struct vb2_vmalloc_buf *buf; local [all...] |
H A D | videobuf2-dma-sg.c | 48 static int vb2_dma_sg_alloc_compacted(struct vb2_dma_sg_buf *buf, argument 52 int size = buf->size; 73 __free_page(buf->pages[last_page]); 81 buf->pages[last_page++] = &pages[i]; 91 struct vb2_dma_sg_buf *buf; local 95 buf = kzalloc(sizeof *buf, GFP_KERNEL); 96 if (!buf) 99 buf->vaddr = NULL; 100 buf 143 struct vb2_dma_sg_buf *buf = buf_priv; local 167 struct vb2_dma_sg_buf *buf; local 259 struct vb2_dma_sg_buf *buf = buf_priv; local 280 struct vb2_dma_sg_buf *buf = buf_priv; local 296 struct vb2_dma_sg_buf *buf = buf_priv; local 303 struct vb2_dma_sg_buf *buf = buf_priv; local 340 struct vb2_dma_sg_buf *buf = buf_priv; local [all...] |
H A D | videobuf2-dma-contig.c | 13 #include <linux/dma-buf.h> 92 struct vb2_dc_buf *buf = buf_priv; local 94 return &buf->dma_addr; 99 struct vb2_dc_buf *buf = buf_priv; local 101 if (!buf->vaddr && buf->db_attach) 102 buf->vaddr = dma_buf_vmap(buf->db_attach->dmabuf); 104 return buf->vaddr; 109 struct vb2_dc_buf *buf local 116 struct vb2_dc_buf *buf = buf_priv; local 128 struct vb2_dc_buf *buf = buf_priv; local 144 struct vb2_dc_buf *buf = buf_priv; local 162 struct vb2_dc_buf *buf; local 191 struct vb2_dc_buf *buf = buf_priv; local 242 struct vb2_dc_buf *buf = dbuf->priv; local 347 struct vb2_dc_buf *buf = dbuf->priv; local 354 struct vb2_dc_buf *buf = dbuf->priv; local 377 vb2_dc_get_base_sgt(struct vb2_dc_buf *buf) argument 401 struct vb2_dc_buf *buf = buf_priv; local 507 struct vb2_dc_buf *buf = buf_priv; local 557 struct vb2_dc_buf *buf; local 709 struct vb2_dc_buf *buf = mem_priv; local 748 struct vb2_dc_buf *buf = mem_priv; local 773 struct vb2_dc_buf *buf = mem_priv; local 788 struct vb2_dc_buf *buf; local [all...] |
/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/gpu/drm/exynos/ |
H A D | exynos_drm_buf.c | 21 unsigned int flags, struct exynos_drm_gem_buf *buf) 27 if (buf->dma_addr) { 32 init_dma_attrs(&buf->dma_attrs); 40 dma_set_attr(DMA_ATTR_FORCE_CONTIGUOUS, &buf->dma_attrs); 51 dma_set_attr(attr, &buf->dma_attrs); 52 dma_set_attr(DMA_ATTR_NO_KERNEL_MAPPING, &buf->dma_attrs); 54 nr_pages = buf->size >> PAGE_SHIFT; 60 buf->pages = drm_calloc_large(nr_pages, sizeof(struct page *)); 61 if (!buf->pages) { 66 buf 20 lowlevel_buffer_allocate(struct drm_device *dev, unsigned int flags, struct exynos_drm_gem_buf *buf) argument 117 lowlevel_buffer_deallocate(struct drm_device *dev, unsigned int flags, struct exynos_drm_gem_buf *buf) argument 167 exynos_drm_alloc_buf(struct drm_device *dev, struct exynos_drm_gem_buf *buf, unsigned int flags) argument [all...] |
/drivers/gpu/drm/radeon/ |
H A D | drm_buffer.h | 50 static inline int drm_buffer_page(struct drm_buffer *buf) argument 52 return buf->iterator / PAGE_SIZE; 57 static inline int drm_buffer_index(struct drm_buffer *buf) argument 59 return buf->iterator & (PAGE_SIZE - 1); 64 static inline int drm_buffer_unprocessed(struct drm_buffer *buf) argument 66 return buf->size - buf->iterator; 72 static inline void drm_buffer_advance(struct drm_buffer *buf, int bytes) argument 74 buf->iterator += bytes; 80 * buf [all...] |
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 kfree((*buf)->data[idx]); 86 kfree(*buf); 97 int drm_buffer_copy_from_user(struct drm_buffer *buf, argument 129 drm_buffer_free(struct drm_buffer *buf) argument 155 drm_buffer_read_object(struct drm_buffer *buf, int objsize, void *stack_obj) argument [all...] |
/drivers/media/dvb-frontends/ |
H A D | nxt200x.c | 72 static int i2c_writebytes (struct nxt200x_state* state, u8 addr, u8 *buf, u8 len) argument 75 struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = len }; 85 static int i2c_readbytes(struct nxt200x_state *state, u8 addr, u8 *buf, u8 len) argument 88 struct i2c_msg msg = { .addr = addr, .flags = I2C_M_RD, .buf = buf, .len = len }; 99 const u8 *buf, u8 len) 103 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf2, .len = len + 1 }; 112 memcpy(&buf2[1], buf, len); 122 static int nxt200x_readbytes(struct nxt200x_state *state, u8 reg, u8 *buf, u argument 98 nxt200x_writebytes(struct nxt200x_state* state, u8 reg, const u8 *buf, u8 len) argument 157 u8 attr, len2, buf; local 218 u8 buf, len2, attr; local 265 u8 buf, stopval, counter = 0; local 299 u8 buf; local 308 u8 buf[9]; local 339 u8 buf, count = 0; local 399 u8 buf; local 426 u8 buf[3], written = 0, chunkpos = 0; local 493 u8 buf[3]; local 544 u8 buf[5]; local 887 u8 buf[2]; local 950 u8 buf[3]; local 1159 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 94 tty_audit_buf_push(struct tty_audit_buf *buf) argument 114 struct tty_audit_buf *buf; local 144 struct tty_audit_buf *buf; local 183 struct tty_audit_buf *buf = ERR_PTR(-EPERM); local 222 struct tty_audit_buf *buf, *buf2; local 271 struct tty_audit_buf *buf; local 327 struct tty_audit_buf *buf; local [all...] |
H A D | n_tracesink.h | 34 void n_tracesink_datadrain(u8 *buf, int count);
|
/drivers/media/pci/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/staging/iio/ |
H A D | ring_hw.h | 17 * @buf: generic ring buffer elements 21 struct iio_buffer buf; member in struct:iio_hw_buffer 25 #define iio_to_hw_buf(r) container_of(r, struct iio_hw_buffer, buf)
|
/drivers/usb/gadget/ |
H A D | u_os_desc.h | 38 static inline u8 *__usb_ext_prop_ptr(u8 *buf, size_t offset) argument 40 return buf + offset; 43 static inline u8 *usb_ext_prop_size_ptr(u8 *buf) argument 45 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_DW_SIZE); 48 static inline u8 *usb_ext_prop_type_ptr(u8 *buf) argument 50 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_DW_PROPERTY_DATA_TYPE); 53 static inline u8 *usb_ext_prop_name_len_ptr(u8 *buf) argument 55 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_W_PROPERTY_NAME_LENGTH); 58 static inline u8 *usb_ext_prop_name_ptr(u8 *buf) argument 60 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_B_PROPERTY_NAM 63 usb_ext_prop_data_len_ptr(u8 *buf, size_t off) argument 69 usb_ext_prop_data_ptr(u8 *buf, size_t off) argument 74 usb_ext_prop_put_size(u8 *buf, int dw_size) argument 79 usb_ext_prop_put_type(u8 *buf, int type) argument 84 usb_ext_prop_put_name(u8 *buf, const char *name, int pnl) argument 99 usb_ext_prop_put_binary(u8 *buf, int pnl, const u8 *data, int data_len) argument 106 usb_ext_prop_put_unicode(u8 *buf, int pnl, const char *string, int data_len) argument [all...] |
/drivers/media/pci/cx23885/ |
H A D | netup-init.c | 28 u8 buf[3]; local 32 .buf = buf, 36 buf[0] = reg >> 8; 37 buf[1] = reg & 0xff; 38 buf[2] = val; 49 u8 buf[6]; local 53 .buf = buf, 57 buf[ 73 u8 buf[2]; local [all...] |
/drivers/media/usb/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/net/ethernet/mellanox/mlx5/core/ |
H A D | alloc.c | 51 struct mlx5_buf *buf) 55 buf->size = size; 57 buf->nbufs = 1; 58 buf->npages = 1; 59 buf->page_shift = (u8)get_order(size) + PAGE_SHIFT; 60 buf->direct.buf = dma_zalloc_coherent(&dev->pdev->dev, 62 if (!buf->direct.buf) 65 buf 50 mlx5_buf_alloc(struct mlx5_core_dev *dev, int size, int max_direct, struct mlx5_buf *buf) argument 116 mlx5_buf_free(struct mlx5_core_dev *dev, struct mlx5_buf *buf) argument 224 mlx5_fill_page_array(struct mlx5_buf *buf, __be64 *pas) argument [all...] |
/drivers/media/usb/dvb-usb-v2/ |
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 | 32 * @param buf Console input buffer. 41 ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty) argument 48 if ((buf[0] != '^') && (buf[0] != '\252')) 53 if (len == 3 && buf[1] == '-') { 54 ctrlchar_sysrq_key = buf[2]; 63 switch (tolower(buf[1])) {
|
/drivers/net/wireless/ath/ath5k/ |
H A D | debug.c | 199 char buf[500]; local 205 len += snprintf(buf + len, sizeof(buf) - len, 210 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n", 213 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n\n", 217 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", 221 len += snprintf(buf 248 char buf[20]; local 320 char buf[700]; local 350 char buf[20]; local 382 char buf[700]; local 455 char buf[20]; local 495 char buf[700]; local 551 char buf[700]; local 628 char buf[20]; local 671 char buf[700]; local 777 char buf[20]; local 833 char buf[700]; local 875 char buf[20]; local 902 u16 *buf; member in struct:eeprom_private 913 u16 val, *buf; local [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/rtc/ |
H A D | rtc-em3027.c | 49 unsigned char buf[7]; local 55 .buf = &addr 61 .buf = buf 71 tm->tm_sec = bcd2bin(buf[0]); 72 tm->tm_min = bcd2bin(buf[1]); 73 tm->tm_hour = bcd2bin(buf[2]); 74 tm->tm_mday = bcd2bin(buf[3]); 75 tm->tm_wday = bcd2bin(buf[4]); 76 tm->tm_mon = bcd2bin(buf[ 85 unsigned char buf[8]; local [all...] |
/drivers/net/ethernet/qualcomm/ |
H A D | qca_framing.c | 29 qcafrm_create_header(u8 *buf, u16 length) argument 33 if (!buf) 38 buf[0] = 0xAA; 39 buf[1] = 0xAA; 40 buf[2] = 0xAA; 41 buf[3] = 0xAA; 42 buf[4] = len & 0xff; 43 buf[5] = (len >> 8) & 0xff; 44 buf[6] = 0; 45 buf[ 51 qcafrm_create_footer(u8 *buf) argument 73 qcafrm_fsm_decode(struct qcafrm_handle *handle, u8 *buf, u16 buf_len, u8 recv_byte) argument [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/pci/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...] |