/drivers/md/persistent-data/ |
D | dm-btree-remove.c | 58 uint32_t nr_entries = le32_to_cpu(n->header.nr_entries); in node_shift() local 63 BUG_ON(shift > nr_entries); in node_shift() 67 (nr_entries - shift) * sizeof(__le64)); in node_shift() 70 (nr_entries - shift) * value_size); in node_shift() 72 BUG_ON(nr_entries + shift > le32_to_cpu(n->header.max_entries)); in node_shift() 75 nr_entries * sizeof(__le64)); in node_shift() 78 nr_entries * value_size); in node_shift() 84 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in node_copy() 113 unsigned nr_entries = le32_to_cpu(n->header.nr_entries); in delete_at() local 114 unsigned nr_to_copy = nr_entries - (index + 1); in delete_at() [all …]
|
D | dm-btree.c | 43 int lo = -1, hi = le32_to_cpu(n->header.nr_entries); in bsearch() 70 uint32_t nr_entries = le32_to_cpu(n->header.nr_entries); in inc_children() local 73 for (i = 0; i < nr_entries; i++) in inc_children() 76 for (i = 0; i < nr_entries; i++) in inc_children() 84 uint32_t nr_entries = le32_to_cpu(node->header.nr_entries); in insert_at() local 87 if (index > nr_entries || in insert_at() 96 array_insert(node->keys, sizeof(*node->keys), nr_entries, index, &key_le); in insert_at() 97 array_insert(value_base(node), value_size, nr_entries, index, value); in insert_at() 98 node->header.nr_entries = cpu_to_le32(nr_entries + 1); in insert_at() 139 n->header.nr_entries = cpu_to_le32(0); in dm_btree_empty() [all …]
|
D | dm-array.c | 26 __le32 nr_entries; member 113 unsigned i, nr_entries = le32_to_cpu(ab->nr_entries); in on_entries() local 115 for (i = 0; i < nr_entries; i++) in on_entries() 164 (*ab)->nr_entries = cpu_to_le32(0); in alloc_ablock() 179 uint32_t nr_entries; in fill_ablock() local 183 BUG_ON(new_nr < le32_to_cpu(ab->nr_entries)); in fill_ablock() 185 nr_entries = le32_to_cpu(ab->nr_entries); in fill_ablock() 186 for (i = nr_entries; i < new_nr; i++) { in fill_ablock() 191 ab->nr_entries = cpu_to_le32(new_nr); in fill_ablock() 203 uint32_t nr_entries; in trim_ablock() local [all …]
|
D | dm-btree-internal.h | 33 __le32 nr_entries; member
|
D | dm-block-manager.c | 81 t->nr_entries = 0; in __add_holder() 113 t.nr_entries = 0; in __check_holder()
|
D | dm-btree-spine.c | 70 if (le32_to_cpu(h->nr_entries) > le32_to_cpu(h->max_entries)) { in node_check()
|
/drivers/pci/pcie/ |
D | portdrv_core.c | 54 struct msix_entry *entries, int new_entry, int nr_entries) in pcie_port_msix_add_entry() argument 58 for (j = 0; j < nr_entries; j++) in pcie_port_msix_add_entry() 78 int nr_entries, status, pos, i, nvec; in pcie_port_enable_msix() local 82 nr_entries = pci_msix_table_size(dev); in pcie_port_enable_msix() 83 if (!nr_entries) in pcie_port_enable_msix() 85 if (nr_entries > PCIE_PORT_MAX_MSIX_ENTRIES) in pcie_port_enable_msix() 86 nr_entries = PCIE_PORT_MAX_MSIX_ENTRIES; in pcie_port_enable_msix() 88 msix_entries = kzalloc(sizeof(*msix_entries) * nr_entries, GFP_KERNEL); in pcie_port_enable_msix() 98 for (i = 0; i < nr_entries; i++) in pcie_port_enable_msix() 101 status = pci_enable_msix(dev, msix_entries, nr_entries); in pcie_port_enable_msix() [all …]
|
/drivers/iommu/ |
D | omap-iovmm.c | 132 unsigned nr_entries = 0, ent_sz; in sgtable_nents() local 142 nr_entries++; in sgtable_nents() 148 return nr_entries; in sgtable_nents() 155 unsigned int nr_entries; in sgtable_alloc() local 166 nr_entries = sgtable_nents(bytes, da, pa); in sgtable_alloc() 167 if (!nr_entries) in sgtable_alloc() 170 nr_entries = bytes / PAGE_SIZE; in sgtable_alloc() 176 err = sg_alloc_table(sgt, nr_entries, GFP_KERNEL); in sgtable_alloc() 182 pr_debug("%s: sgt:%p(%d entries)\n", __func__, sgt, nr_entries); in sgtable_alloc()
|
/drivers/pci/ |
D | msi.c | 602 static void __iomem *msix_map_region(struct pci_dev *dev, unsigned nr_entries) in msix_map_region() argument 614 return ioremap_nocache(phys_addr, nr_entries * PCI_MSIX_ENTRY_SIZE); in msix_map_region() 932 int status, nr_entries; in pci_enable_msix() local 942 nr_entries = pci_msix_table_size(dev); in pci_enable_msix() 943 if (nvec > nr_entries) in pci_enable_msix() 944 return nr_entries; in pci_enable_msix() 948 if (entries[i].entry >= nr_entries) in pci_enable_msix()
|
/drivers/md/ |
D | dm-cache-policy-mq.c | 29 static unsigned long *alloc_bitset(unsigned nr_entries) in alloc_bitset() argument 31 size_t s = sizeof(unsigned long) * dm_div_up(nr_entries, BITS_PER_LONG); in alloc_bitset() 290 unsigned nr_entries; member 335 unsigned u = mq->nr_entries; in alloc_entries() 400 if (mq->nr_entries_allocated >= mq->nr_entries) { in alloc_entry() 1101 mq->nr_entries = 2 * from_cblock(cache_size); in mq_create() 1102 r = alloc_entries(mq, mq->nr_entries); in mq_create()
|
D | dm-cache-target.c | 40 static size_t bitset_size_in_bytes(unsigned nr_entries) in bitset_size_in_bytes() argument 42 return sizeof(unsigned long) * dm_div_up(nr_entries, BITS_PER_LONG); in bitset_size_in_bytes() 45 static unsigned long *alloc_bitset(unsigned nr_entries) in alloc_bitset() argument 47 size_t s = bitset_size_in_bytes(nr_entries); in alloc_bitset() 51 static void clear_bitset(void *bitset, unsigned nr_entries) in clear_bitset() argument 53 size_t s = bitset_size_in_bytes(nr_entries); in clear_bitset()
|
/drivers/mmc/card/ |
D | queue.h | 29 u8 nr_entries; member
|
D | block.c | 146 packed->nr_entries = MMC_PACKED_NR_ZERO; in mmc_blk_clear_packed() 1533 req->rq_disk->disk_name, packed->nr_entries, in mmc_blk_packed_err_check() 1811 mqrq->packed->nr_entries = ++reqs; in mmc_blk_prep_packed_list() 1843 packed_cmd_hdr[0] = (packed->nr_entries << 16) | in mmc_blk_packed_hdr_wrq_prep() 1947 packed->nr_entries -= idx; in mmc_blk_end_packed_req() 1951 if (packed->nr_entries == MMC_PACKED_NR_SINGLE) { in mmc_blk_end_packed_req()
|
/drivers/scsi/ |
D | st.c | 554 mdata->nr_entries = STp->buffer->sg_segs; in st_do_scsi() 558 mdata->nr_entries = in st_do_scsi()
|
D | sg.c | 1688 md->nr_entries = req_schp->k_use_sg; in sg_start_req()
|
D | osst.c | 387 mdata->nr_entries = in osst_execute()
|