Searched refs:buffers (Results 1 - 25 of 52) sorted by relevance

123

/drivers/scsi/isci/
H A Dunsolicited_frame_control.c69 * The Unsolicited Frame buffers are set at the start of the UF
71 * placed after the buffers.
106 * Program the actual used UF buffers into the UF address table and
110 uf = &uf_control->buffers.array[i];
136 *frame_header = &uf_control->buffers.array[frame_index].header->data;
149 *frame_buffer = uf_control->buffers.array[frame_index].buffer;
184 uf_control->buffers.array[frame_index].state = UNSOLICITED_FRAME_RELEASED;
198 while (uf_control->buffers.array[frame_get].state == UNSOLICITED_FRAME_RELEASED) {
199 uf_control->buffers.array[frame_get].state = UNSOLICITED_FRAME_EMPTY;
H A Dunsolicited_frame_control.h209 * 1KB buffers into which the silicon will DMA unsolicited frames.
250 struct sci_uf_buffer_array buffers; member in struct:sci_unsolicited_frame_control
/drivers/media/pci/ivtv/
H A Divtv-queue.c47 q->buffers = 0;
65 q->buffers++;
80 q->buffers--;
94 from->buffers--;
100 to->buffers++;
105 /* Move 'needed_bytes' worth of buffers from queue 'from' into queue 'to'.
106 If 'needed_bytes' == 0, then move all buffers from 'from' into 'to'.
107 If 'steal' != NULL, then buffers may also taken from that queue if
111 also cleared if buffers need to be taken from the 'steal' queue and
119 -ENOMEM is returned if the buffers coul
[all...]
H A Divtv-fileops.c275 /* New buffers might have become available before we were added to the waitqueue */
276 if (!s->q_full.buffers)
623 /* Gather buffers */
629 if (q.buffers)
635 /* New buffers might have become free before we were added to the waitqueue */
636 if (!s->q_free.buffers)
646 /* copy user data into buffers */
712 /* more user data is available, wait until buffers become free
761 /* Allow write if buffers are available for writing */
762 if (s->q_free.buffers)
[all...]
/drivers/media/pci/zoran/
H A Dzoran_driver.c195 fh->buffers.buffer_size = v4l_bufsize;
196 fh->buffers.num_buffers = v4l_nbufs;
201 fh->buffers.buffer_size = jpg_bufsize;
202 fh->buffers.num_buffers = jpg_nbufs;
210 * Allocate the V4L grab buffers
221 for (i = 0; i < fh->buffers.num_buffers; i++) {
222 if (fh->buffers.buffer[i].v4l.fbuffer)
229 mem = kmalloc(fh->buffers.buffer_size,
239 fh->buffers.buffer[i].v4l.fbuffer = mem;
240 fh->buffers
[all...]
H A Dzoran.h66 # error "Too many video frame buffers to handle"
209 struct zoran_buffer buffer[MAX_FRAME]; /* buffers */
210 u8 allocated; /* Flag if buffers are allocated */
211 u8 need_contiguous; /* Flag if contiguous buffers are needed */
212 /* only applies to jpg buffers, raw buffers are always contiguous */
227 struct zoran_buffer_col buffers; /* buffers' info */ member in struct:zoran_fh
328 struct zoran_buffer_col v4l_buffers; /* V4L buffers' info */
355 struct zoran_buffer_col jpg_buffers; /* MJPEG buffers' inf
[all...]
/drivers/media/usb/pvrusb2/
H A Dpvrusb2-io.c62 /* Pointers to all buffers */
63 struct pvr2_buffer **buffers; member in struct:pvr2_stream
64 /* Array size of buffers */
66 /* Total buffers actually in circulation */
68 /* Designed number of buffers to be in circulation */
305 /* Allocate buffers pointer array in multiples of 32 entries */
324 memcpy(nb,sp->buffers,
326 kfree(sp->buffers);
328 sp->buffers = nb;
340 sp->buffers[s
[all...]
/drivers/media/pci/cx18/
H A Dcx18-queue.c257 /* Reset MDL id's and move all buffers back to the stream's buf_pool */
287 * Attach buffers to MDLs, give the MDLs ids, and add MDLs to q_free
289 * Excess buffers are left in buf_pool and/or on an MDL in q_idle
316 * case of a non-integral number of buffers to meet
328 /* Not enough buffers for this MDL; we won't use it */
352 if (s->buffers == 0)
355 CX18_DEBUG_INFO("Allocate %s stream: %d x %d buffers "
357 s->name, s->buffers, s->buf_size,
358 s->buffers * s->buf_size / 1024,
359 (s->buffers *
[all...]
H A Dcx18-ioctl.c732 * For some reason we've exhausted the buffers, but the MDL
742 /* Skip any empty buffers in the MDL */
769 tmp = s->buffers -
780 /* Pull IDX MDLs and buffers from q_full and populate the entries */
786 /* Extract the Index entry data from the MDL and buffers */
1038 if (s->video_dev == NULL || s->buffers == 0)
1040 CX18_INFO("Stream %s: status 0x%04lx, %d%% of %d KiB (%d buffers) in use\n",
1043 / s->buffers,
1044 (s->buffers * s->buf_size) / 1024, s->buffers);
[all...]
/drivers/media/usb/cpia2/
H A Dcpia2_v4l.c56 MODULE_PARM_DESC(num_buffers, "Number of frame buffers (1-"
190 struct framebuf *frame = &cam->buffers[frame_nr];
442 if (cam->buffers[frame].status == FRAME_READING)
446 cam->buffers[frame].status = FRAME_EMPTY;
783 * NOTE: The user's request is ignored. For now the buffers are fixed.
818 buf->m.offset = cam->buffers[buf->index].data - cam->frame_buffer;
830 switch (cam->buffers[buf->index].status) {
838 buf->bytesused = cam->buffers[buf->index].length;
839 buf->timestamp = cam->buffers[buf->index].timestamp;
840 buf->sequence = cam->buffers[bu
[all...]
H A Dcpia2_core.c138 * the camera, copy the buffers into the proper param structures.
2237 if(!cam->buffers) {
2239 cam->buffers = kmalloc(size, GFP_KERNEL);
2240 if(!cam->buffers) {
2250 kfree(cam->buffers);
2251 cam->buffers = NULL;
2257 cam->buffers[i].next = &cam->buffers[i+1];
2258 cam->buffers[i].data = cam->frame_buffer +i*cam->frame_size;
2259 cam->buffers[
[all...]
H A Dcpia2_usb.c124 /* No junk in the buffers */
137 * mmapped, or we have few buffers, we need to
141 * buffers, but it would take an EXTREMELY
153 DBG("Changed buffers, work:%d, current:%d\n",
257 break; /* No READING or EMPTY buffers left */
718 DBG("Flushing buffers\n");
720 cam->buffers[i].status = FRAME_EMPTY;
721 cam->buffers[i].length = 0;
723 cam->curbuff = &cam->buffers[0];
889 if(cam->buffers) {
[all...]
/drivers/iio/
H A DKconfig42 Provides helper functions for setting up triggered buffers.
51 buffers. The triggers are effectively a 'capture
/drivers/staging/speakup/
H A DMakefile19 buffers.o \
/drivers/net/ethernet/pasemi/
H A Dpasemi_mac.h51 u64 *buffers; /* RX interface buffer ring */ member in struct:pasemi_mac_rxring
114 #define RX_BUFF(rx, num) ((rx)->buffers[(num) & (RX_RING_SIZE-1)])
/drivers/media/platform/exynos4-is/
H A Dfimc-isp.h119 * @pending_buf_q: pending buffers queue head
120 * @active_buf_q: a queue head of buffers scheduled in hardware
122 * @active_buf_count: number of video buffers scheduled in hardware
124 * @reqbufs_count: number of buffers requested with REQBUFS ioctl
139 struct isp_video_buf *buffers[FIMC_ISP_MAX_BUFS]; member in struct:fimc_is_video
H A Dfimc-isp-video.c181 /* Check if we get one of the already known buffers. */
187 if (video->buffers[i]->dma_addr[0] == dma_addr)
212 video->buffers[ivb->index] = ivb;
253 vb = &video->buffers[buf_index]->vb;
/drivers/media/platform/marvell-ccic/
H A Dmcam-core.c37 * we must have physically contiguous buffers to bring frames into.
38 * These parameters control how many buffers we use, whether we
43 * The controller can cycle through three buffers. We could use
51 "Non-zero value causes DMA buffers to be allocated when the "
54 "successfully getting those buffers. This parameter is "
60 "The number of DMA buffers to allocate. Can be either two "
66 "The size of the allocated DMA buffers. If actual operating "
67 "parameters require larger buffers, an attempt to reallocate "
349 * Allocate in-kernel DMA buffers for vmalloc mode.
381 cam_err(cam, "Insufficient DMA buffers, canno
[all...]
H A Dmcam-core.h42 S_BUFWAIT /* streaming requested but no buffers yet */
161 struct list_head buffers; /* Available frames */ member in struct:mcam_camera
166 /* DMA buffers - vmalloc mode */
176 /* DMA buffers - DMA modes */
359 #define C1_TWOBUFS 0x08000000 /* Use only two DMA buffers */
/drivers/net/ethernet/sun/
H A Dsunqe.c126 struct sunqe_buffers *qbufs = qep->buffers;
415 struct sunqe_buffers *qbufs = qep->buffers;
574 struct sunqe_buffers *qbufs = qep->buffers;
884 qe->buffers = dma_alloc_coherent(&op->dev, sizeof(struct sunqe_buffers),
887 qe->buffers == NULL || qe->buffers_dvma == 0)
919 if (qe->buffers)
922 qe->buffers,
947 qp->buffers, qp->buffers_dvma);
/drivers/char/xillybus/
H A Dxillybus_core.c81 * buffers' end_offset fields against changes made by IRQ handler (and in
323 struct xilly_buffer **buffers,
331 if (buffers) { /* Not the message buffer */
383 if (buffers) { /* Not the message buffer */
386 buffers[i] = this_buffer++;
486 struct xilly_buffer **buffers = NULL; local
515 buffers = devm_kcalloc(dev, bufnum,
518 if (!buffers)
531 channel->rd_buffers = buffers;
532 rc = xilly_get_dma_buffers(ep, &rd_alloc, buffers,
321 xilly_get_dma_buffers(struct xilly_endpoint *ep, struct xilly_alloc_state *s, struct xilly_buffer **buffers, int bufnum, int bytebufsize) argument
[all...]
/drivers/media/platform/
H A DKconfig139 use system memory for both source and destination buffers, as opposed
140 to capture and output drivers, which use memory buffers for just
207 MX2X chips have a PrP that can be used to process buffers from
/drivers/mtd/nand/
H A Dnand_base.c1164 uint8_t *ecc_calc = chip->buffers->ecccalc;
1165 uint8_t *ecc_code = chip->buffers->ecccode;
1236 chip->ecc.calculate(mtd, p, &chip->buffers->ecccalc[i]);
1269 chip->buffers->ecccode[i] = chip->oob_poi[eccpos[i + index]];
1276 &chip->buffers->ecccode[i], &chip->buffers->ecccalc[i]);
1304 uint8_t *ecc_calc = chip->buffers->ecccalc;
1305 uint8_t *ecc_code = chip->buffers->ecccode;
1357 uint8_t *ecc_code = chip->buffers->ecccode;
1359 uint8_t *ecc_calc = chip->buffers
[all...]
/drivers/md/
H A Ddm-bufio.c22 * Limit the number of buffers to DM_BUFIO_MEMORY_PERCENT of main memory
24 * Always allocate at least DM_BUFIO_MIN_BUFFERS buffers.
26 * dirty buffers.
40 * Free buffers when they are older than this (seconds)
73 * Linking of buffers:
74 * All buffers are linked to cache_hash with their hash_list field.
76 * Clean buffers that are not being written (B_WRITING not set)
79 * Dirty and clean buffers that are being written are linked to
83 * context), so some clean-not-writing buffers can be held on
304 * Small buffers ar
844 unsigned long buffers; local
[all...]
/drivers/atm/
H A Dsolos-pci.c76 #define RX_BUF(card, nr) ((card->buffers) + (nr)*(card->buffer_size)*2)
77 #define TX_BUF(card, nr) ((card->buffers) + (nr)*(card->buffer_size)*2 + (card->buffer_size))
78 #define FLASH_BUF ((card->buffers) + 4*(card->buffer_size)*2)
116 void __iomem *buffers; member in struct:solos_card
1231 card->buffers = pci_iomap(dev, 1, DATA_RAM_SIZE);
1232 if (!card->buffers) {
1233 dev_warn(&dev->dev, "Failed to ioremap data buffers\n");
1282 dev_warn(&card->dev->dev, "Failed to allocate DMA bounce buffers\n");
1341 pci_iounmap(dev, card->buffers);
1456 pci_iounmap(dev, card->buffers);
[all...]

Completed in 780 milliseconds

123