Home
last modified time | relevance | path

Searched refs:region_count (Results 1 – 18 of 18) sorted by relevance

/drivers/md/
Ddm-log.c223 unsigned int region_count; member
371 unsigned int region_count; in create_log_context() local
399 region_count = dm_sector_div_up(ti->len, region_size); in create_log_context()
412 lc->region_count = region_count; in create_log_context()
418 bitset_size = dm_round_up(region_count, BITS_PER_LONG); in create_log_context()
495 lc->sync_count = (sync == NOSYNC) ? region_count : 0; in create_log_context()
609 for (i = lc->header.nr_regions; i < lc->region_count; i++) in disk_resume()
613 for (i = lc->header.nr_regions; i < lc->region_count; i++) in disk_resume()
618 for (i = lc->region_count; i % BITS_PER_LONG; i++) in disk_resume()
628 lc->header.nr_regions = lc->region_count; in disk_resume()
[all …]
Ddm-log-userspace-base.c44 region_t region_count; member
285 lc->region_count = dm_sector_div_up(ti->len, lc->region_size); in userspace_ctr()
722 if (lc->in_sync_hint >= lc->region_count) in userspace_get_resync_work()
783 if (sync_count >= lc->region_count) in userspace_get_sync_count()
784 lc->in_sync_hint = lc->region_count; in userspace_get_sync_count()
/drivers/vfio/fsl-mc/
Dvfio_fsl_mc.c27 int count = mc_dev->obj_desc.region_count; in vfio_fsl_mc_open_device()
63 for (i = 0; i < mc_dev->obj_desc.region_count; i++) in vfio_fsl_mc_regions_cleanup()
120 info.num_regions = mc_dev->obj_desc.region_count; in vfio_fsl_mc_ioctl()
138 if (info.index >= mc_dev->obj_desc.region_count) in vfio_fsl_mc_ioctl()
237 if (index >= mc_dev->obj_desc.region_count) in vfio_fsl_mc_read()
316 if (index >= mc_dev->obj_desc.region_count) in vfio_fsl_mc_write()
387 if (index >= mc_dev->obj_desc.region_count) in vfio_fsl_mc_mmap()
/drivers/mtd/parsers/
Dafs.c226 u32 region_count; in afs_parse_v2_partition() local
280 region_count = imginfo[pad+2]; in afs_parse_v2_partition()
286 entrypoint, attributes, region_count, in afs_parse_v2_partition()
289 for (i = 0; i < region_count; i++) { in afs_parse_v2_partition()
/drivers/infiniband/hw/hns/
Dhns_roce_mr.c121 buf_attr.region_count = 1; in alloc_mr_pbl()
465 mtr->hem_cfg.region_count = 1; in hns_roce_map_mr_sg()
635 for (i = 0; i < attr->region_count; i++) in mtr_has_mtt()
652 for (i = 0; i < attr->region_count; i++) in mtr_bufs_size()
788 for (i = 0, mapped_cnt = 0; i < mtr->hem_cfg.region_count && in hns_roce_mtr_map()
843 for (mtt_count = 0; mtt_count < cfg->region_count && in hns_roce_mtr_find()
923 for (page_cnt = 0, region_cnt = 0; region_cnt < attr->region_count && in mtr_init_buf_cfg()
936 cfg->region_count = region_cnt; in mtr_init_buf_cfg()
964 for (i = 0; i < mtr->hem_cfg.region_count; i++) { in cal_best_bt_pg_sz()
993 cfg->region, cfg->region_count, in mtr_alloc_mtt()
Dhns_roce_srq.c178 buf_attr.region_count = 1; in alloc_srq_idx()
233 buf_attr.region_count = 1; in alloc_srq_wqe_buf()
Dhns_roce_device.h302 unsigned int region_count; /* valid region count */ member
315 unsigned int region_count; member
Dhns_roce_cq.c208 buf_attr.region_count = 1; in alloc_cq_buf()
Dhns_roce_qp.c666 buf_attr->region_count = idx; in set_wqe_buf_attr()
Dhns_roce_hw_v2.c5974 buf_attr.region_count = 1; in alloc_eq_buf()
/drivers/mtd/spi-nor/
Dsfdp.c812 u32 region_count; in spi_nor_init_non_uniform_erase_map() local
817 region_count = SMPT_MAP_REGION_COUNT(*smpt); in spi_nor_init_non_uniform_erase_map()
822 region = devm_kcalloc(nor->dev, region_count, sizeof(*region), in spi_nor_init_non_uniform_erase_map()
832 for (i = 0; i < region_count; i++) { in spi_nor_init_non_uniform_erase_map()
/drivers/remoteproc/
Dqcom_common.c66 __le32 region_count; member
118 seg_cnt = le32_to_cpu(subsystem->region_count); in qcom_add_minidump_segments()
/drivers/bus/fsl-mc/
Dfsl-mc-bus.c686 regions = kmalloc_array(obj_desc->region_count, in fsl_mc_device_get_mmio_regions()
691 for (i = 0; i < obj_desc->region_count; i++) { in fsl_mc_device_get_mmio_regions()
885 if (parent_mc_dev && obj_desc->region_count != 0) { in fsl_mc_device_add()
1217 obj_desc.region_count = 0; in fsl_mc_bus_probe()
Ddprc.c448 obj_desc->region_count = rsp_params->region_count; in dprc_get_obj()
Dfsl-mc-private.h189 u8 region_count; member
Ddprc-driver.c639 if (mc_dev->obj_desc.region_count == 0) in dprc_setup()
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_tcam.c106 unsigned int region_count; member
389 if (group->region_count == group->tcam->max_group_size) { in mlxsw_sp_acl_tcam_group_region_attach()
415 group->region_count++; in mlxsw_sp_acl_tcam_group_region_attach()
434 group->region_count--; in mlxsw_sp_acl_tcam_group_region_detach()
/drivers/soc/fsl/dpio/
Ddpio-driver.c197 if (dpio_dev->obj_desc.region_count < 3) { in dpaa2_dpio_probe()