Home
last modified time | relevance | path

Searched refs:nents (Results 1 – 7 of 7) sorted by relevance

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dscatterlist.h60 unsigned int nents;
69 unsigned int nents;
94 #define for_each_sg_page(sgl, iter, nents, pgoffset) \ argument
95 for (_sg_iter_init(sgl, iter, nents, pgoffset); \
97 #define for_each_sg_dma_page(sgl, iter, nents, pgoffset) \
98 for_each_sg_page(sgl, &(iter)->base, nents, pgoffset)
110 for_each_sg((sgt)->sgl, sg, (sgt)->nents, iter)
113 for_each_sg_dma_page((sgt)->sgl, iter, (sgt)->nents, pgoffset)
192 sg_init_table(struct scatterlist *sg, unsigned int nents) in sg_init_table()
194 bzero(sg, sizeof(*sg) * nents);
57 unsigned int nents; global() member
66 unsigned int nents; global() member
91 for_each_sg_page(sgl,iter,nents,pgoffset) global() argument
189 sg_init_table(struct scatterlist * sg,unsigned int nents) sg_init_table() argument
203 sg_kmalloc(unsigned int nents,gfp_t gfp_mask) sg_kmalloc() argument
212 sg_kfree(struct scatterlist * sg,unsigned int nents) sg_kfree() argument
261 __sg_alloc_table(struct sg_table * table,unsigned int nents,unsigned int max_ents,struct scatterlist * first_chunk,gfp_t gfp_mask,sg_alloc_fn * alloc_fn) __sg_alloc_table() argument
316 sg_alloc_table(struct sg_table * table,unsigned int nents,gfp_t gfp_mask) sg_alloc_table() argument
451 int nents; sg_nents() local
460 __sg_page_iter_start(struct sg_page_iter * piter,struct scatterlist * sglist,unsigned int nents,unsigned long pgoffset) __sg_page_iter_start() argument
530 _sg_iter_init(struct scatterlist * sgl,struct sg_page_iter * iter,unsigned int nents,unsigned long pgoffset) _sg_iter_init() argument
566 sg_pcopy_from_buffer(struct scatterlist * sgl,unsigned int nents,const void * buf,size_t buflen,off_t skip) sg_pcopy_from_buffer() argument
618 sg_copy_from_buffer(struct scatterlist * sgl,unsigned int nents,const void * buf,size_t buflen) sg_copy_from_buffer() argument
625 sg_pcopy_to_buffer(struct scatterlist * sgl,unsigned int nents,void * buf,size_t buflen,off_t offset) sg_pcopy_to_buffer() argument
[all...]
H A Ddma-mapping.h69 int nents, enum dma_data_direction dir, unsigned long attrs);
70 void (*unmap_sg)(struct device *dev, struct scatterlist *sg, int nents,
83 int nents, enum dma_data_direction dir);
85 int nents, enum dma_data_direction dir);
102 int nents, enum dma_data_direction dir __unused,
105 int nents __unused, enum dma_data_direction dir __unused,
189 #define dma_map_sg_attrs(dev, sgl, nents, dir, attrs) \ argument
190 linux_dma_map_sg_attrs(dev, sgl, nents, dir, 0)
192 #define dma_unmap_sg_attrs(dev, sg, nents, dir, attrs) \ argument
193 linux_dma_unmap_sg_attrs(dev, sg, nents, dir, 0)
[all …]
/freebsd/sys/ofed/include/rdma/
H A Dib_verbs.h2017 struct scatterlist *sg, int nents,
2020 struct scatterlist *sg, int nents,
2023 struct scatterlist *sg, int nents,
2027 struct scatterlist *sg, int nents,
3598 struct scatterlist *sg, int nents, in ib_dma_map_sg() argument
3602 return dev->dma_ops->map_sg(dev, sg, nents, direction); in ib_dma_map_sg()
3603 return dma_map_sg(dev->dma_device, sg, nents, direction); in ib_dma_map_sg()
3614 struct scatterlist *sg, int nents, in ib_dma_unmap_sg() argument
3618 dev->dma_ops->unmap_sg(dev, sg, nents, direction); in ib_dma_unmap_sg()
3620 dma_unmap_sg(dev->dma_device, sg, nents, direction); in ib_dma_unmap_sg()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dabd_os.c346 if (table.nents == 1) { in abd_alloc_chunks()
372 } else if (table.nents > 1) { in abd_alloc_chunks()
382 ABD_SCATTER(abd).abd_nents = table.nents; in abd_alloc_chunks()
407 ASSERT3U(table.nents, ==, nr_pages); in abd_alloc_chunks()
439 table.nents = table.orig_nents = ABD_SCATTER(abd).abd_nents; in abd_free_sg_table()
503 ASSERT3U(table.nents, ==, nr_pages); in abd_alloc_zero_scatter()
767 ABD_SCATTER(abd).abd_nents = table.nents; in abd_alloc_from_pages()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_pci.c1631 linux_dma_map_sg_attrs(struct device *dev, struct scatterlist *sgl, int nents, in linux_dma_map_sg_attrs() argument
1650 for_each_sg(sgl, sg, nents, i) { in linux_dma_map_sg_attrs()
1682 return (nents); in linux_dma_map_sg_attrs()
1687 int nents __unused, enum dma_data_direction direction, in linux_dma_unmap_sg_attrs()
/freebsd/usr.sbin/syslogd/
H A Dsyslogd.c2383 int i, nents; in parseconfigfile() local
2414 nents = scandir(p, &ent, configfiles, alphasort); in parseconfigfile()
2415 if (nents == -1) { in parseconfigfile()
2420 for (i = 0; i < nents; i++) { in parseconfigfile()
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Ddbg.c570 int alloc_size, nents, i; in alloc_sgtable()
575 nents = DIV_ROUND_UP(size, PAGE_SIZE); in alloc_sgtable()
576 table = kcalloc(nents, sizeof(*table), GFP_KERNEL); in alloc_sgtable()
579 sg_init_table(table, nents); in alloc_sgtable()
571 int alloc_size, nents, i; alloc_sgtable() local