Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/fs/jffs2/
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()
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()
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()
240 vecs[1].iov_len = namelen; in jffs2_write_dirent()
[all …]
A Derase.c422 struct kvec vecs[1]; in jffs2_mark_erased_block() local
433 vecs[0].iov_base = (unsigned char *) ▮ in jffs2_mark_erased_block()
434 vecs[0].iov_len = sizeof(marker); in jffs2_mark_erased_block()
435 ret = jffs2_flash_direct_writev(c, vecs, 1, jeb->offset, &retlen); in jffs2_mark_erased_block()
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()
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()
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,
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-6.3-rc2/drivers/scsi/snic/
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-6.3-rc2/Documentation/devicetree/bindings/interrupt-controller/
A Dloongson,pch-msi.yaml32 loongson,msi-num-vecs:
47 - loongson,msi-num-vecs
59 loongson,msi-num-vecs = <64>;
/linux-6.3-rc2/crypto/
A Dtestmgr.c3989 if (desc->suite.kpp.vecs) in alg_test_kpp()
4028 key = kmalloc(vecs->key_len + sizeof(u32) * 2 + vecs->param_len, in test_akcipher_one()
4032 memcpy(key, vecs->key, vecs->key_len); in test_akcipher_one()
4036 memcpy(ptr, vecs->params, vecs->param_len); in test_akcipher_one()
4038 if (vecs->public_key_vec) in test_akcipher_one()
4056 m = vecs->m; in test_akcipher_one()
4057 m_size = vecs->m_size; in test_akcipher_one()
4058 c = vecs->c; in test_akcipher_one()
4059 c_size = vecs->c_size; in test_akcipher_one()
4066 m_size = vecs->c_size; in test_akcipher_one()
[all …]
/linux-6.3-rc2/drivers/md/
A Ddm-log-writes.c131 struct bio_vec vecs[]; member
204 if (block->vecs[i].bv_page) in free_pending_block()
205 __free_page(block->vecs[i].bv_page); in free_pending_block()
366 ret = bio_add_page(bio, block->vecs[i].bv_page, in log_one_block()
367 block->vecs[i].bv_len, 0); in log_one_block()
368 if (ret != block->vecs[i].bv_len) { in log_one_block()
379 ret = bio_add_page(bio, block->vecs[i].bv_page, in log_one_block()
380 block->vecs[i].bv_len, 0); in log_one_block()
381 if (ret != block->vecs[i].bv_len) { in log_one_block()
749 block->vecs[i].bv_page = page; in log_writes_map()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/aquantia/atlantic/
A Daq_nic.c73 cfg->vecs = min(cfg->aq_hw_caps->vecs, AQ_CFG_VECS_DEF); in aq_nic_cfg_update_num_vecs()
74 cfg->vecs = min(cfg->vecs, num_online_cpus()); in aq_nic_cfg_update_num_vecs()
76 cfg->vecs = min(cfg->vecs, self->irqvecs - AQ_HW_SERVICE_IRQS); in aq_nic_cfg_update_num_vecs()
78 cfg->vecs = rounddown_pow_of_two(cfg->vecs); in aq_nic_cfg_update_num_vecs()
82 cfg->vecs = min(cfg->vecs, 4U); in aq_nic_cfg_update_num_vecs()
85 if (cfg->vecs <= 4) in aq_nic_cfg_update_num_vecs()
131 (cfg->aq_hw_caps->vecs == 1U) || in aq_nic_cfg_start()
132 (cfg->vecs == 1U)) { in aq_nic_cfg_start()
134 cfg->vecs = 1U; in aq_nic_cfg_start()
142 cfg->link_irq_vec = cfg->vecs; in aq_nic_cfg_start()
[all …]
A Daq_ethtool.c188 (rx_stat_cnt + tx_stat_cnt) * cfg->vecs * cfg->tcs; in aq_ethtool_n_stats()
279 for (i = 0; i < cfg->vecs; i++) { in aq_ethtool_get_strings()
519 cmd->data = cfg->vecs; in aq_ethtool_get_rxnfc()
A Daq_nic.h46 u32 vecs; /* allocated rx/tx vectors */ member
/linux-6.3-rc2/drivers/scsi/fnic/
A Dfnic_isr.c242 int vecs = n + m + o + 1; in fnic_set_intr_mode() local
244 if (pci_alloc_irq_vectors(fnic->pdev, vecs, vecs, in fnic_set_intr_mode()
245 PCI_IRQ_MSIX) == vecs) { in fnic_set_intr_mode()
251 fnic->intr_count = vecs; in fnic_set_intr_mode()
/linux-6.3-rc2/block/
A Dfops.c58 struct bio_vec inline_vecs[DIO_INLINE_BIO_VECS], *vecs; in __blkdev_direct_IO_simple() local
68 vecs = inline_vecs; in __blkdev_direct_IO_simple()
70 vecs = kmalloc_array(nr_pages, sizeof(struct bio_vec), in __blkdev_direct_IO_simple()
72 if (!vecs) in __blkdev_direct_IO_simple()
77 bio_init(&bio, bdev, vecs, nr_pages, REQ_OP_READ); in __blkdev_direct_IO_simple()
81 bio_init(&bio, bdev, vecs, nr_pages, dio_bio_write_op(iocb)); in __blkdev_direct_IO_simple()
104 if (vecs != inline_vecs) in __blkdev_direct_IO_simple()
105 kfree(vecs); in __blkdev_direct_IO_simple()
/linux-6.3-rc2/arch/mips/boot/dts/loongson/
A Dloongson64c_4core_ls7a.dts34 loongson,msi-num-vecs = <64>;
A Dloongson64g_4core_ls7a.dts38 loongson,msi-num-vecs = <192>;
/linux-6.3-rc2/drivers/net/ethernet/fungible/funcore/
A Dfun_dev.c599 int vecs, num_msix = pci_msix_vec_count(pdev); in fun_alloc_irqs() local
606 vecs = pci_alloc_irq_vectors(pdev, min_vecs, num_msix, PCI_IRQ_MSIX); in fun_alloc_irqs()
607 if (vecs > 0) { in fun_alloc_irqs()
610 vecs, num_msix); in fun_alloc_irqs()
616 return vecs; in fun_alloc_irqs()
/linux-6.3-rc2/drivers/mtd/lpddr/
A Dlpddr_cmds.c23 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs,
645 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs, in lpddr_writev() argument
657 len += vecs[i].iov_len; in lpddr_writev()
675 ofs, &vecs, &vec_seek, size); in lpddr_writev()
/linux-6.3-rc2/drivers/mtd/
A Dmtdcore.c2319 static int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in default_mtd_writev() argument
2327 if (!vecs[i].iov_len) in default_mtd_writev()
2329 ret = mtd_write(mtd, to, vecs[i].iov_len, &thislen, in default_mtd_writev()
2330 vecs[i].iov_base); in default_mtd_writev()
2332 if (ret || thislen != vecs[i].iov_len) in default_mtd_writev()
2334 to += vecs[i].iov_len; in default_mtd_writev()
2351 int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in mtd_writev() argument
2361 return default_mtd_writev(mtd, vecs, count, to, retlen); in mtd_writev()
2363 return master->_writev(master, vecs, count, in mtd_writev()
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(vecs, sizeof(struct kvec) * count, GFP_KERNEL); in concat_writev()
/linux-6.3-rc2/include/linux/mtd/
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,
/linux-6.3-rc2/drivers/mtd/chips/
A Dcfi_cmdset_0020.c39 static int cfi_staa_writev(struct mtd_info *mtd, const struct kvec *vecs,
663 cfi_staa_writev(struct mtd_info *mtd, const struct kvec *vecs, in cfi_staa_writev() argument
683 size_t elem_len = vecs[i].iov_len; in cfi_staa_writev()
684 void *elem_base = vecs[i].iov_base; in cfi_staa_writev()
/linux-6.3-rc2/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
A Dhw_atl2.c27 .vecs = HW_ATL2_RSS_MAX, \
581 [(aq_nic_cfg->vecs > 1U) ? in hw_atl2_hw_init()

Completed in 62 milliseconds

12