Home
last modified time | relevance | path

Searched refs:nr_allocations (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/md/persistent-data/
H A Ddm-space-map-disk.c94 int32_t nr_allocations; in sm_disk_set_count() local
97 r = sm_ll_insert(&smd->ll, b, count, &nr_allocations); in sm_disk_set_count()
99 smd->nr_allocated_this_transaction += nr_allocations; in sm_disk_set_count()
107 int32_t nr_allocations; in sm_disk_inc_blocks() local
110 r = sm_ll_inc(&smd->ll, b, e, &nr_allocations); in sm_disk_inc_blocks()
112 smd->nr_allocated_this_transaction += nr_allocations; in sm_disk_inc_blocks()
120 int32_t nr_allocations; in sm_disk_dec_blocks() local
123 r = sm_ll_dec(&smd->ll, b, e, &nr_allocations); in sm_disk_dec_blocks()
125 smd->nr_allocated_this_transaction += nr_allocations; in sm_disk_dec_blocks()
133 int32_t nr_allocations; in sm_disk_new_block() local
[all …]
H A Ddm-space-map-metadata.c198 int32_t nr_allocations; in commit_bop() local
202 r = sm_ll_inc(&smm->ll, op->b, op->e, &nr_allocations); in commit_bop()
206 r = sm_ll_dec(&smm->ll, op->b, op->e, &nr_allocations); in commit_bop()
398 int32_t nr_allocations; in sm_metadata_set_count() local
407 r = sm_ll_insert(&smm->ll, b, count, &nr_allocations); in sm_metadata_set_count()
416 int32_t nr_allocations; in sm_metadata_inc_blocks() local
425 r = sm_ll_inc(&smm->ll, b, e, &nr_allocations); in sm_metadata_inc_blocks()
435 int32_t nr_allocations; in sm_metadata_dec_blocks() local
442 r = sm_ll_dec(&smm->ll, b, e, &nr_allocations); in sm_metadata_dec_blocks()
452 int32_t nr_allocations; in sm_metadata_new_block_() local
[all …]
H A Ddm-space-map-common.c423 uint32_t ref_count, int32_t *nr_allocations) in sm_ll_insert() argument
489 *nr_allocations = 1; in sm_ll_insert()
496 *nr_allocations = -1; in sm_ll_insert()
501 *nr_allocations = 0; in sm_ll_insert()
649 int32_t *nr_allocations, dm_block_t *new_b, in sm_ll_inc_bitmap() argument
671 (*nr_allocations)++; in sm_ll_inc_bitmap()
747 int32_t *nr_allocations) in sm_ll_inc() argument
749 *nr_allocations = 0; in sm_ll_inc()
867 (*nr_allocations)--; in sm_ll_dec_bitmap()
929 int32_t *nr_allocations) in sm_ll_dec() argument
[all …]
H A Ddm-space-map-common.h131 int sm_ll_insert(struct ll_disk *ll, dm_block_t b, uint32_t ref_count, int32_t *nr_allocations);
132 int sm_ll_inc(struct ll_disk *ll, dm_block_t b, dm_block_t e, int32_t *nr_allocations);
133 int sm_ll_dec(struct ll_disk *ll, dm_block_t b, dm_block_t e, int32_t *nr_allocations);
/openbmc/linux/drivers/nvme/host/
H A Dpci.c531 for (i = 0; i < iod->nr_allocations; i++) { in nvme_free_prps()
554 if (iod->nr_allocations == 0) in nvme_unmap_data()
557 else if (iod->nr_allocations == 1) in nvme_unmap_data()
616 iod->nr_allocations = 0; in nvme_pci_setup_prps()
619 iod->nr_allocations = 1; in nvme_pci_setup_prps()
624 iod->nr_allocations = -1; in nvme_pci_setup_prps()
636 iod->list[iod->nr_allocations++].prp_list = prp_list; in nvme_pci_setup_prps()
706 iod->nr_allocations = 0; in nvme_pci_setup_sgls()
709 iod->nr_allocations = 1; in nvme_pci_setup_sgls()
714 iod->nr_allocations = -1; in nvme_pci_setup_sgls()
[all …]