Home
last modified time | relevance | path

Searched refs:vecs (Results 1 – 25 of 30) sorted by relevance

12

/linux/fs/jffs2/
H A Dwritev.c16 int jffs2_flash_direct_writev(struct jffs2_sb_info *c, const struct kvec *vecs, in jffs2_flash_direct_writev() argument
22 res = jffs2_sum_add_kvec(c, vecs, count, (uint32_t) to); in jffs2_flash_direct_writev()
29 return mtd_writev(c->mtd, vecs, count, to, retlen); in jffs2_flash_direct_writev()
39 struct kvec vecs[1]; in jffs2_flash_direct_write() local
42 vecs[0].iov_base = (unsigned char *) buf; in jffs2_flash_direct_write()
43 vecs[0].iov_len = len; in jffs2_flash_direct_write()
45 res = jffs2_sum_add_kvec(c, vecs, 1, (uint32_t) ofs); in jffs2_flash_direct_write()
H A Dwrite.c67 struct kvec vecs[2]; in jffs2_write_dnode() local
77 vecs[0].iov_base = ri; in jffs2_write_dnode()
78 vecs[0].iov_len = sizeof(*ri); in jffs2_write_dnode()
79 vecs[1].iov_base = (unsigned char *)data; in jffs2_write_dnode()
80 vecs[1].iov_len = datalen; in jffs2_write_dnode()
98 jffs2_dbg_prewrite_paranoia_check(c, flash_ofs, vecs[0].iov_len + vecs[1].iov_len); in jffs2_write_dnode()
109 ret = jffs2_flash_writev(c, vecs, cnt, flash_ofs, &retlen, in jffs2_write_dnode()
211 struct kvec vecs[2]; in jffs2_write_dirent() local
237 vecs[0].iov_base = rd; in jffs2_write_dirent()
238 vecs[0].iov_len = sizeof(*rd); in jffs2_write_dirent()
[all …]
H A Derase.c421 struct kvec vecs[1]; in jffs2_mark_erased_block() local
432 vecs[0].iov_base = (unsigned char *) ▮ in jffs2_mark_erased_block()
433 vecs[0].iov_len = sizeof(marker); in jffs2_mark_erased_block()
434 ret = jffs2_flash_direct_writev(c, vecs, 1, jeb->offset, &retlen); in jffs2_mark_erased_block()
H A Dxattr.c288 struct kvec vecs[2]; in save_xattr_datum() local
296 vecs[0].iov_base = ℞ in save_xattr_datum()
297 vecs[0].iov_len = sizeof(rx); in save_xattr_datum()
298 vecs[1].iov_base = xd->xname; in save_xattr_datum()
299 vecs[1].iov_len = xd->name_len + 1 + xd->value_len; in save_xattr_datum()
300 totlen = vecs[0].iov_len + vecs[1].iov_len; in save_xattr_datum()
314 rx.data_crc = cpu_to_je32(crc32(0, vecs[1].iov_base, vecs[1].iov_len)); in save_xattr_datum()
317 rc = jffs2_flash_writev(c, vecs, 2, phys_ofs, &length, 0); in save_xattr_datum()
H A Dsummary.c680 struct kvec vecs[2]; in jffs2_sum_write_data() local
812 vecs[0].iov_base = &isum; in jffs2_sum_write_data()
813 vecs[0].iov_len = sizeof(isum); in jffs2_sum_write_data()
814 vecs[1].iov_base = c->summary->sum_buf; in jffs2_sum_write_data()
815 vecs[1].iov_len = datasize; in jffs2_sum_write_data()
821 ret = jffs2_flash_writev(c, vecs, 2, sum_ofs, &retlen, 0); in jffs2_sum_write_data()
H A Dos-linux.h116 int jffs2_flash_writev(struct jffs2_sb_info *c, const struct kvec *vecs, unsigned long count, loff_…
190 int jffs2_flash_direct_writev(struct jffs2_sb_info *c, const struct kvec *vecs,
H A Dwbuf.c944 struct kvec vecs[1]; in jffs2_flash_write() local
949 vecs[0].iov_base = (unsigned char *) buf; in jffs2_flash_write()
950 vecs[0].iov_len = len; in jffs2_flash_write()
951 return jffs2_flash_writev(c, vecs, 1, ofs, retlen, 0); in jffs2_flash_write()
/linux/drivers/iio/buffer/
H A Dindustrialio-buffer-dmaengine.c69 struct dma_vec *vecs; in iio_dmaengine_buffer_submit_block() local
90 vecs = kmalloc_array(nents, sizeof(*vecs), GFP_ATOMIC); in iio_dmaengine_buffer_submit_block()
91 if (!vecs) in iio_dmaengine_buffer_submit_block()
97 vecs[i].addr = sg_dma_address(sgl); in iio_dmaengine_buffer_submit_block()
98 vecs[i].len = min(sg_dma_len(sgl), len_total); in iio_dmaengine_buffer_submit_block()
99 len_total -= vecs[i].len; in iio_dmaengine_buffer_submit_block()
105 vecs, nents, dma_dir, in iio_dmaengine_buffer_submit_block()
107 kfree(vecs); in iio_dmaengine_buffer_submit_block()
/linux/crypto/
H A Dtestmgr.c85 const struct aead_testvec *vecs; member
104 const struct cipher_testvec *vecs; member
110 const struct comp_testvec *vecs; member
116 const struct hash_testvec *vecs; member
121 const struct cprng_testvec *vecs; member
126 const struct drbg_testvec *vecs; member
131 const struct akcipher_testvec *vecs; member
136 const struct sig_testvec *vecs; member
141 const struct kpp_testvec *vecs; member
1927 static int __alg_test_hash(const struct hash_testvec *vecs, in __alg_test_hash() argument
[all …]
/linux/drivers/scsi/snic/
H A Dsnic_isr.c147 unsigned int vecs = n + m + 1; in snic_set_intr_mode() local
159 if (pci_alloc_irq_vectors(snic->pdev, vecs, vecs, PCI_IRQ_MSIX) < 0) in snic_set_intr_mode()
164 snic->intr_count = vecs; in snic_set_intr_mode()
/linux/tools/testing/vsock/
H A Dvsock_test_zerocopy.c47 struct iovec vecs[VSOCK_TEST_DATA_MAX_IOV]; member
167 iovec = alloc_test_iovec(test_data->vecs, test_data->vecs_cnt); in test_client()
215 free_test_iovec(test_data->vecs, iovec, test_data->vecs_cnt); in test_client()
260 data_len = iovec_bytes(test_data->vecs, test_data->vecs_cnt); in test_server()
H A Dvsock_uring_test.c34 struct iovec vecs[VSOCK_TEST_DATA_MAX_IOV]; member
78 iovec = alloc_test_iovec(test_data->vecs, test_data->vecs_cnt); in vsock_io_uring_client()
108 free_test_iovec(test_data->vecs, iovec, test_data->vecs_cnt); in vsock_io_uring_client()
129 data_len = iovec_bytes(test_data->vecs, test_data->vecs_cnt); in vsock_io_uring_server()
/linux/block/
H A Dfops.c51 struct bio_vec inline_vecs[DIO_INLINE_BIO_VECS], *vecs; in __blkdev_direct_IO_simple() local
58 vecs = inline_vecs; in __blkdev_direct_IO_simple()
60 vecs = kmalloc_array(nr_pages, sizeof(struct bio_vec), in __blkdev_direct_IO_simple()
62 if (!vecs) in __blkdev_direct_IO_simple()
67 bio_init(&bio, bdev, vecs, nr_pages, REQ_OP_READ); in __blkdev_direct_IO_simple()
71 bio_init(&bio, bdev, vecs, nr_pages, dio_bio_write_op(iocb)); in __blkdev_direct_IO_simple()
97 if (vecs != inline_vecs) in __blkdev_direct_IO_simple()
98 kfree(vecs); in __blkdev_direct_IO_simple()
/linux/drivers/scsi/fnic/
H A Dfnic_isr.c264 int vecs = fnic->rq_count + fnic->raw_wq_count + fnic->wq_copy_count + 1; in fnic_set_intr_mode_msix() local
266 vec_count = pci_alloc_irq_vectors(fnic->pdev, min_irqs, vecs, in fnic_set_intr_mode_msix()
273 if (vec_count < vecs) { in fnic_set_intr_mode_msix()
276 vec_count, vecs); in fnic_set_intr_mode_msix()
/linux/drivers/net/ethernet/fungible/funcore/
H A Dfun_dev.c595 int vecs, num_msix = pci_msix_vec_count(pdev); in fun_alloc_irqs() local
602 vecs = pci_alloc_irq_vectors(pdev, min_vecs, num_msix, PCI_IRQ_MSIX); in fun_alloc_irqs()
603 if (vecs > 0) { in fun_alloc_irqs()
606 vecs, num_msix); in fun_alloc_irqs()
612 return vecs; in fun_alloc_irqs()
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-loongson.c415 int i, ret, vecs; in loongson_dwmac_msi_config() local
417 vecs = roundup_pow_of_two(CHANNEL_NUM * 2 + 1); in loongson_dwmac_msi_config()
418 ret = pci_alloc_irq_vectors(pdev, vecs, vecs, PCI_IRQ_MSI); in loongson_dwmac_msi_config()
/linux/arch/mips/boot/dts/loongson/
H A Dloongson64c_4core_ls7a.dts34 loongson,msi-num-vecs = <64>;
H A Dloongson64g_4core_ls7a.dts39 loongson,msi-num-vecs = <192>;
/linux/drivers/dma/
H A Ddma-axi-dmac.c624 axi_dmac_prep_peripheral_dma_vec(struct dma_chan *c, const struct dma_vec *vecs, in axi_dmac_prep_peripheral_dma_vec() argument
638 num_sgs += DIV_ROUND_UP(vecs[i].len, chan->max_length); in axi_dmac_prep_peripheral_dma_vec()
647 if (!axi_dmac_check_addr(chan, vecs[i].addr) || in axi_dmac_prep_peripheral_dma_vec()
648 !axi_dmac_check_len(chan, vecs[i].len)) { in axi_dmac_prep_peripheral_dma_vec()
653 dsg = axi_dmac_fill_linear_sg(chan, direction, vecs[i].addr, 1, in axi_dmac_prep_peripheral_dma_vec()
654 vecs[i].len, dsg); in axi_dmac_prep_peripheral_dma_vec()
/linux/drivers/mtd/lpddr/
H A Dlpddr_cmds.c23 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs,
642 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs, in lpddr_writev() argument
654 len += vecs[i].iov_len; in lpddr_writev()
672 ofs, &vecs, &vec_seek, size); in lpddr_writev()
/linux/drivers/mtd/
H A Dmtdcore.c2373 static int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in default_mtd_writev() argument
2381 if (!vecs[i].iov_len) in default_mtd_writev()
2383 ret = mtd_write(mtd, to, vecs[i].iov_len, &thislen, in default_mtd_writev()
2384 vecs[i].iov_base); in default_mtd_writev()
2386 if (ret || thislen != vecs[i].iov_len) in default_mtd_writev()
2388 to += vecs[i].iov_len; in default_mtd_writev()
2405 int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in mtd_writev() argument
2415 return default_mtd_writev(mtd, vecs, count, to, retlen); in mtd_writev()
2417 return master->_writev(master, vecs, count, in mtd_writev()
H A Dmtdconcat.c185 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, in concat_writev() argument
197 total_len += vecs[i].iov_len; in concat_writev()
207 vecs_copy = kmemdup_array(vecs, count, sizeof(struct kvec), GFP_KERNEL); in concat_writev()
/linux/include/linux/
H A Ddmaengine.h924 struct dma_chan *chan, const struct dma_vec *vecs,
999 struct dma_chan *chan, const struct dma_vec *vecs, size_t nents, in dmaengine_prep_peripheral_dma_vec() argument
1005 return chan->device->device_prep_peripheral_dma_vec(chan, vecs, nents, in dmaengine_prep_peripheral_dma_vec()
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ethtool.c190 (rx_stat_cnt + tx_stat_cnt) * cfg->vecs * cfg->tcs; in aq_ethtool_n_stats()
281 for (i = 0; i < cfg->vecs; i++) { in aq_ethtool_get_strings()
515 cmd->data = cfg->vecs; in aq_ethtool_get_rxnfc()
/linux/include/linux/mtd/
H A Dmtd.h345 int (*_writev) (struct mtd_info *mtd, const struct kvec *vecs,
528 int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs,

12