Searched refs:sglist (Results 1 - 25 of 71) sorted by relevance

123

/drivers/parisc/
H A Dccio-rm-dma.c115 static int ccio_map_sg(struct pci_dev *dev, struct scatterlist *sglist, int nents, int direction) argument
121 sg_dma_address(sglist) = ccio_map_single(dev, sglist->address, sglist->length, direction);
122 sg_dma_len(sglist) = sglist->length;
124 sglist++;
131 static void ccio_unmap_sg(struct pci_dev *dev, struct scatterlist *sglist, int nents, int direction) argument
135 ccio_unmap_single(dev, sg_dma_address(sglist), sg_dma_len(sglist), directio
[all...]
H A Dccio-dma.c894 * @sglist: The scatter/gather list to be mapped in the IOMMU.
901 ccio_map_sg(struct device *dev, struct scatterlist *sglist, int nents, argument
918 sg_dma_address(sglist) = ccio_map_single(dev,
919 (void *)sg_virt_addr(sglist), sglist->length,
921 sg_dma_len(sglist) = sglist->length;
926 prev_len += sglist[i].length;
942 coalesced = iommu_coalesce_chunks(ioc, dev, sglist, nents, ccio_alloc_range);
952 filled = iommu_fill_pdir(ioc, sglist, nent
978 ccio_unmap_sg(struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction direction) argument
[all...]
H A Dsba_iommu.c928 * @sglist: array of buffer/length pairs
935 sba_map_sg(struct device *dev, struct scatterlist *sglist, int nents, argument
948 sg_dma_address(sglist) = sba_map_single(dev,
949 (void *)sg_virt_addr(sglist),
950 sglist->length, direction);
951 sg_dma_len(sglist) = sglist->length;
960 sba_dump_sg(ioc, sglist, nents);
977 coalesced = iommu_coalesce_chunks(ioc, dev, sglist, nents, sba_alloc_range);
987 filled = iommu_fill_pdir(ioc, sglist, nent
1019 sba_unmap_sg(struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction direction) argument
[all...]
/drivers/media/video/
H A Dvideobuf-dma-sg.c68 struct scatterlist *sglist; local
72 sglist = vzalloc(nr_pages * sizeof(*sglist));
73 if (NULL == sglist)
75 sg_init_table(sglist, nr_pages);
81 sg_set_page(&sglist[i], pg, PAGE_SIZE, 0);
83 return sglist;
86 vfree(sglist);
98 struct scatterlist *sglist; local
103 sglist
[all...]
H A Dvideobuf2-dma-sg.c51 buf->sg_desc.sglist = vzalloc(buf->sg_desc.num_pages *
52 sizeof(*buf->sg_desc.sglist));
53 if (!buf->sg_desc.sglist)
55 sg_init_table(buf->sg_desc.sglist, buf->sg_desc.num_pages);
66 sg_set_page(&buf->sg_desc.sglist[i],
86 vfree(buf->sg_desc.sglist);
103 vfree(buf->sg_desc.sglist);
131 buf->sg_desc.sglist = vzalloc(
132 buf->sg_desc.num_pages * sizeof(*buf->sg_desc.sglist));
133 if (!buf->sg_desc.sglist)
[all...]
H A Domap24xxcam-dma.c416 /* Queue for this sglist is empty, so check to see if we're
424 /* All done with this sglist */
455 const struct scatterlist *sglist; local
458 sglist = sg_state->sglist + sg_state->next_sglist;
467 len = sg_dma_len(sglist);
471 sg_dma_address(sglist),
503 const struct scatterlist *sglist, int sglen,
509 if ((sglen < 0) || ((sglen > 0) && !sglist))
521 sg_state->sglist
502 omap24xxcam_sgdma_queue(struct omap24xxcam_sgdma *sgdma, const struct scatterlist *sglist, int sglen, int len, sgdma_callback_t callback, void *arg) argument
[all...]
H A Domap24xxcam.c237 if (dma->sglist == NULL)
243 alloc_size = sg_dma_len(&dma->sglist[i]);
244 page = sg_page(&dma->sglist[i]);
248 __free_pages(sg_page(&dma->sglist[i]),
249 get_order(sg_dma_len(&dma->sglist[i])));
252 kfree(dma->sglist);
253 dma->sglist = NULL;
296 dma->sglist = kcalloc(max_pages, sizeof(*dma->sglist), GFP_KERNEL);
297 if (dma->sglist
[all...]
H A Domap24xxcam.h416 const struct scatterlist *sglist; member in struct:sgdma_state
417 int sglen; /* number of sglist entries */
418 int next_sglist; /* index of next sglist entry to process */
420 unsigned int len; /* total length of sglist (excluding
422 int queued_sglist; /* number of sglist entries queued for DMA */
584 const struct scatterlist *sglist, int sglen,
/drivers/media/video/omap3isp/
H A Dispqueue.c155 struct scatterlist *sglist; local
163 sglist = vmalloc(npages * sizeof(*sglist));
164 if (sglist == NULL)
167 sg_init_table(sglist, npages);
173 vfree(sglist);
177 sg_set_page(&sglist[i], page, PAGE_SIZE, 0);
181 buf->sglist = sglist;
193 struct scatterlist *sglist; local
228 struct scatterlist *sglist; local
[all...]
H A Dispqueue.h76 * @sglist: Scatter list (for non-VM_PFNMAP buffers)
101 struct scatterlist *sglist; member in struct:isp_video_buffer
/drivers/staging/rts5139/
H A Drts51x_transport.h40 unsigned int buflen, void *sglist,
/drivers/video/
H A Dsh_mobile_lcdcfb.h106 struct scatterlist *sglist; member in struct:sh_mobile_lcdc_chan
/drivers/media/common/
H A Dsaa7146_core.c154 struct scatterlist *sglist; local
158 sglist = kcalloc(nr_pages, sizeof(struct scatterlist), GFP_KERNEL);
159 if (NULL == sglist)
161 sg_init_table(sglist, nr_pages);
167 sg_set_page(&sglist[i], pg, PAGE_SIZE, 0);
169 return sglist;
172 kfree(sglist);
/drivers/media/video/bt8xx/
H A Dbttv-risc.c48 struct scatterlist *sglist,
80 sg = sglist;
127 struct scatterlist *sglist,
158 ysg = sglist;
159 usg = sglist;
160 vsg = sglist;
727 bttv_risc_packed(btv,&buf->top,dma->sglist,
733 bttv_risc_packed(btv,&buf->bottom,dma->sglist,
737 bttv_risc_packed(btv,&buf->top,dma->sglist,
739 bttv_risc_packed(btv,&buf->bottom,dma->sglist,
47 bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int offset, unsigned int bpl, unsigned int padding, unsigned int skip_lines, unsigned int store_lines) argument
126 bttv_risc_planar(struct bttv *btv, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int yoffset, unsigned int ybpl, unsigned int ypadding, unsigned int ylines, unsigned int uoffset, unsigned int voffset, unsigned int hshift, unsigned int vshift, unsigned int cpadding) argument
[all...]
/drivers/firmware/
H A Ddcdbas.h99 sglist[MAX_SYSMGMT_LONGCMD_SGENTRY_NUM]; member in struct:apm_cmd::__anon495::__anon497
/drivers/hv/
H A Dring_buffer.c332 struct scatterlist *sglist, u32 sgcount)
344 for_each_sg(sglist, sg, sgcount, i)
369 for_each_sg(sglist, sg, sgcount, i)
331 hv_ringbuffer_write(struct hv_ring_buffer_info *outring_info, struct scatterlist *sglist, u32 sgcount) argument
/drivers/scsi/
H A Dpmcraid.c3260 struct scatterlist *sglist; local
3292 scsi_for_each_sg(scsi_cmd, sglist, nseg, i) {
3293 ioadl[i].data_len = cpu_to_le32(sg_dma_len(sglist));
3294 ioadl[i].address = cpu_to_le64(sg_dma_address(sglist));
3305 * @sglist: scatter/gather list pointer
3312 static void pmcraid_free_sglist(struct pmcraid_sglist *sglist) argument
3316 for (i = 0; i < sglist->num_sg; i++)
3317 __free_pages(sg_page(&(sglist->scatterlist[i])),
3318 sglist->order);
3320 kfree(sglist);
3335 struct pmcraid_sglist *sglist; local
3396 pmcraid_copy_sglist( struct pmcraid_sglist *sglist, unsigned long buffer, u32 len, int direction ) argument
3651 struct pmcraid_sglist *sglist = NULL; local
3710 struct pmcraid_sglist *sglist = cmd->sglist; local
[all...]
H A D3w-sas.c333 struct scatterlist *sglist = NULL, *sg; local
339 sglist = scsi_sglist(srb);
371 /* Map sglist from scsi layer to cmd packet */
413 TW_SG_Entry_ISO sglist[1]; local
425 /* Initialize sglist */
426 memset(&sglist, 0, sizeof(TW_SG_Entry_ISO));
427 sglist[0].length = TW_SECTOR_SIZE;
428 sglist[0].address = tw_dev->generic_buffer_phys[request_id];
434 if (twl_scsiop_execute_scsi(tw_dev, request_id, cdb, 1, sglist)) {
597 TW_SG_Entry_ISO sglist[ local
[all...]
H A Dipr.c3472 * pointer to sglist / NULL on failure
3477 struct ipr_sglist *sglist; local
3497 sglist = kzalloc(sizeof(struct ipr_sglist) +
3501 if (sglist == NULL) {
3506 scatterlist = sglist->scatterlist;
3509 sglist->order = order;
3510 sglist->num_sg = num_elem;
3521 kfree(sglist);
3528 return sglist;
3541 static void ipr_free_ucode_buffer(struct ipr_sglist *sglist) argument
3563 ipr_copy_ucode_buffer(struct ipr_sglist *sglist, u8 *buffer, u32 len) argument
3612 ipr_build_ucode_ioadl64(struct ipr_cmnd *ipr_cmd, struct ipr_sglist *sglist) argument
3643 ipr_build_ucode_ioadl(struct ipr_cmnd *ipr_cmd, struct ipr_sglist *sglist) argument
3679 ipr_update_ioa_ucode(struct ipr_ioa_cfg *ioa_cfg, struct ipr_sglist *sglist) argument
3738 struct ipr_sglist *sglist; local
7894 struct ipr_sglist *sglist = ioa_cfg->ucode_sglist; local
7916 struct ipr_sglist *sglist = ioa_cfg->ucode_sglist; local
[all...]
H A D3w-9xxx.c288 TW_SG_Entry sglist[1]; local
308 /* Initialize sglist */
309 memset(&sglist, 0, sizeof(TW_SG_Entry));
310 sglist[0].length = TW_SECTOR_SIZE;
311 sglist[0].address = tw_dev->generic_buffer_phys[request_id];
313 if (sglist[0].address & TW_ALIGNMENT_9000_SGL) {
323 if (twa_scsiop_execute_scsi(tw_dev, request_id, cdb, 1, sglist)) {
434 TW_SG_Entry sglist[1]; local
446 /* Initialize sglist */
447 memset(&sglist,
1827 struct scatterlist *sglist = NULL, *sg; local
[all...]
/drivers/scsi/osd/
H A Dosd_initiator.c898 const struct osd_sg_entry *sglist, unsigned numentries, u64 *len)
927 oscd->entries[i].offset = cpu_to_be64(sglist[i].offset);
928 oscd->entries[i].len = cpu_to_be64(sglist[i].len);
929 *len += sglist[i].len;
981 * @sglist that has the scatter gather entries. Scatter-gather enables a write
984 * total_bytes(sglist) >= total_bytes(bio)
988 const struct osd_sg_entry *sglist, unsigned numentries)
991 int ret = _add_sg_continuation_descriptor(or, sglist, numentries, &len);
1006 const struct osd_sg_entry *sglist, unsigned numentries)
1014 ret = _add_sg_continuation_descriptor(or, sglist, numentrie
897 _add_sg_continuation_descriptor(struct osd_request *or, const struct osd_sg_entry *sglist, unsigned numentries, u64 *len) argument
986 osd_req_write_sg(struct osd_request *or, const struct osd_obj_id *obj, struct bio *bio, const struct osd_sg_entry *sglist, unsigned numentries) argument
1004 osd_req_read_sg(struct osd_request *or, const struct osd_obj_id *obj, struct bio *bio, const struct osd_sg_entry *sglist, unsigned numentries) argument
1039 _create_sg_bios(struct osd_request *or, void **buff, const struct osd_sg_entry *sglist, unsigned numentries) argument
1071 osd_req_write_sg_kern(struct osd_request *or, const struct osd_obj_id *obj, void **buff, const struct osd_sg_entry *sglist, unsigned numentries) argument
1086 osd_req_read_sg_kern(struct osd_request *or, const struct osd_obj_id *obj, void **buff, const struct osd_sg_entry *sglist, unsigned numentries) argument
[all...]
/drivers/staging/media/solo6x10/
H A Dv4l2-enc.c273 static void enc_write_sg(struct scatterlist *sglist, void *buf, int size) argument
278 for (sg = sglist; sg && size > 0; sg = sg_next(sg)) {
290 struct scatterlist *sglist, int skip,
300 desc, 0, sglist, skip,
306 sglist, skip, SOLO_MP4E_EXT_ADDR(solo_dev) + off,
310 sglist, skip + SOLO_MP4E_EXT_SIZE(solo_dev) - off,
359 struct scatterlist *sglist, int skip,
369 desc, 0, sglist, skip,
375 sglist, skip, SOLO_JPEG_EXT_ADDR(solo_dev) + off,
379 sglist, ski
288 enc_get_mpeg_dma_sg(struct solo_dev *solo_dev, struct p2m_desc *desc, struct scatterlist *sglist, int skip, unsigned int off, unsigned int size) argument
357 enc_get_jpeg_dma_sg(struct solo_dev *solo_dev, struct p2m_desc *desc, struct scatterlist *sglist, int skip, unsigned int off, unsigned int size) argument
[all...]
/drivers/media/video/cx88/
H A Dcx88-core.c74 static __le32* cx88_risc_field(__le32 *rp, struct scatterlist *sglist, argument
87 sg = sglist;
129 struct scatterlist *sglist,
155 rp = cx88_risc_field(rp, sglist, top_offset, 0,
158 rp = cx88_risc_field(rp, sglist, bottom_offset, 0x200,
168 struct scatterlist *sglist, unsigned int bpl,
186 rp = cx88_risc_field(rp, sglist, 0, NO_SYNC_LINE, bpl, 0, lines, lpi);
128 cx88_risc_buffer(struct pci_dev *pci, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int top_offset, unsigned int bottom_offset, unsigned int bpl, unsigned int padding, unsigned int lines) argument
167 cx88_risc_databuffer(struct pci_dev *pci, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int bpl, unsigned int lines, unsigned int lpi) argument
/drivers/media/video/cx25821/
H A Dcx25821-core.c1081 static __le32 *cx25821_risc_field(__le32 * rp, struct scatterlist *sglist, argument
1094 sg = sglist;
1138 struct scatterlist *sglist, unsigned int top_offset,
1170 rp = cx25821_risc_field(rp, sglist, top_offset, 0, bpl, padding,
1175 rp = cx25821_risc_field(rp, sglist, bottom_offset, 0x200, bpl,
1186 static __le32 *cx25821_risc_field_audio(__le32 * rp, struct scatterlist *sglist, argument
1199 sg = sglist;
1249 struct scatterlist *sglist,
1271 rp = cx25821_risc_field_audio(rp, sglist, 0, NO_SYNC_LINE, bpl, 0,
1137 cx25821_risc_buffer(struct pci_dev *pci, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int top_offset, unsigned int bottom_offset, unsigned int bpl, unsigned int padding, unsigned int lines) argument
1247 cx25821_risc_databuffer_audio(struct pci_dev *pci, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int bpl, unsigned int lines, unsigned int lpi) argument
/drivers/media/video/cx23885/
H A Dcx23885.h518 struct scatterlist *sglist,
523 struct btcx_riscmem *risc, struct scatterlist *sglist,
632 struct scatterlist *sglist,

Completed in 2475 milliseconds

123