Home
last modified time | relevance | path

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

/drivers/md/
Ddm-log-writes.c124 struct bio_vec vecs[0]; member
177 if (block->vecs[i].bv_page) in free_pending_block()
178 __free_page(block->vecs[i].bv_page); in free_pending_block()
276 ret = bio_add_page(bio, block->vecs[i].bv_page, in log_one_block()
277 block->vecs[i].bv_len, 0); in log_one_block()
278 if (ret != block->vecs[i].bv_len) { in log_one_block()
293 ret = bio_add_page(bio, block->vecs[i].bv_page, in log_one_block()
294 block->vecs[i].bv_len, 0); in log_one_block()
295 if (ret != block->vecs[i].bv_len) { in log_one_block()
301 sector += block->vecs[i].bv_len >> SECTOR_SHIFT; in log_one_block()
[all …]
/drivers/mtd/
Dmtdcore.c1645 static int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in default_mtd_writev() argument
1653 if (!vecs[i].iov_len) in default_mtd_writev()
1655 ret = mtd_write(mtd, to, vecs[i].iov_len, &thislen, in default_mtd_writev()
1656 vecs[i].iov_base); in default_mtd_writev()
1658 if (ret || thislen != vecs[i].iov_len) in default_mtd_writev()
1660 to += vecs[i].iov_len; in default_mtd_writev()
1677 int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in mtd_writev() argument
1684 return default_mtd_writev(mtd, vecs, count, to, retlen); in mtd_writev()
1685 return mtd->_writev(mtd, vecs, count, to, retlen); in mtd_writev()
Dmtdconcat.c158 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, in concat_writev() argument
170 total_len += vecs[i].iov_len; in concat_writev()
180 vecs_copy = kmemdup(vecs, sizeof(struct kvec) * count, GFP_KERNEL); in concat_writev()
Dmtdpart.c220 static int part_writev(struct mtd_info *mtd, const struct kvec *vecs, in part_writev() argument
224 return part->master->_writev(part->master, vecs, count, in part_writev()
/drivers/pci/
Dmsi.c1204 int vecs = -ENOSPC; in pci_alloc_irq_vectors() local
1207 vecs = __pci_enable_msix_range(dev, NULL, min_vecs, max_vecs, in pci_alloc_irq_vectors()
1209 if (vecs > 0) in pci_alloc_irq_vectors()
1210 return vecs; in pci_alloc_irq_vectors()
1214 vecs = __pci_enable_msi_range(dev, min_vecs, max_vecs, flags); in pci_alloc_irq_vectors()
1215 if (vecs > 0) in pci_alloc_irq_vectors()
1216 return vecs; in pci_alloc_irq_vectors()
1225 return vecs; in pci_alloc_irq_vectors()
/drivers/mtd/lpddr/
Dlpddr_cmds.c36 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs,
631 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs, in lpddr_writev() argument
643 len += vecs[i].iov_len; in lpddr_writev()
661 ofs, &vecs, &vec_seek, size); in lpddr_writev()
/drivers/mtd/chips/
Dcfi_cmdset_0020.c39 static int cfi_staa_writev(struct mtd_info *mtd, const struct kvec *vecs,
662 cfi_staa_writev(struct mtd_info *mtd, const struct kvec *vecs, in cfi_staa_writev() argument
682 size_t elem_len = vecs[i].iov_len; in cfi_staa_writev()
683 void *elem_base = vecs[i].iov_base; in cfi_staa_writev()
Dcfi_cmdset_0001.c1843 static int cfi_intelext_writev (struct mtd_info *mtd, const struct kvec *vecs, in cfi_intelext_writev() argument
1855 len += vecs[i].iov_len; in cfi_intelext_writev()
1871 ofs, &vecs, &vec_seek, size); in cfi_intelext_writev()
/drivers/net/ethernet/netronome/nfp/
Dnfp_net_common.c334 int vecs; in nfp_net_irqs_wanted() local
338 vecs = max_t(int, nn->num_tx_rings, nn->num_rx_rings); in nfp_net_irqs_wanted()
339 vecs = min_t(int, vecs, ncpus); in nfp_net_irqs_wanted()
341 return vecs + NFP_NET_NON_Q_VECTORS; in nfp_net_irqs_wanted()