Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/md/
Ddm-log.c226 unsigned int region_count; member
376 unsigned int region_count; in create_log_context() local
403 region_count = dm_sector_div_up(ti->len, region_size); in create_log_context()
416 lc->region_count = region_count; in create_log_context()
422 bitset_size = dm_round_up(region_count, BITS_PER_LONG); in create_log_context()
498 lc->sync_count = (sync == NOSYNC) ? region_count : 0; in create_log_context()
614 for (i = lc->header.nr_regions; i < lc->region_count; i++) in disk_resume()
618 for (i = lc->header.nr_regions; i < lc->region_count; i++) in disk_resume()
623 for (i = lc->region_count; i % BITS_PER_LONG; i++) in disk_resume()
633 lc->header.nr_regions = lc->region_count; in disk_resume()
[all …]
Ddm-log-userspace-base.c45 region_t region_count; member
286 lc->region_count = dm_sector_div_up(ti->len, lc->region_size); in userspace_ctr()
717 if (lc->in_sync_hint >= lc->region_count) in userspace_get_resync_work()
777 if (sync_count >= lc->region_count) in userspace_get_sync_count()
778 lc->in_sync_hint = lc->region_count; in userspace_get_sync_count()
/linux-6.6.21/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()
146 info.num_regions = mc_dev->obj_desc.region_count; in vfio_fsl_mc_ioctl()
164 if (info.index >= mc_dev->obj_desc.region_count) in vfio_fsl_mc_ioctl()
252 if (index >= mc_dev->obj_desc.region_count) in vfio_fsl_mc_read()
331 if (index >= mc_dev->obj_desc.region_count) in vfio_fsl_mc_write()
402 if (index >= mc_dev->obj_desc.region_count) in vfio_fsl_mc_mmap()
/linux-6.6.21/arch/powerpc/platforms/ps3/
Dplatform.h179 int ps3_repository_read_highmem_region_count(unsigned int *region_count);
188 int ps3_repository_write_highmem_region_count(unsigned int region_count);
198 unsigned int region_count) {return 0;} in ps3_repository_write_highmem_region_count() argument
Drepository.c764 int ps3_repository_read_highmem_region_count(unsigned int *region_count) in ps3_repository_read_highmem_region_count() argument
775 *region_count = v1; in ps3_repository_read_highmem_region_count()
1103 int ps3_repository_write_highmem_region_count(unsigned int region_count) in ps3_repository_write_highmem_region_count() argument
1106 u64 v1 = (u64)region_count; in ps3_repository_write_highmem_region_count()
/linux-6.6.21/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()
/linux-6.6.21/drivers/infiniband/hw/hns/
Dhns_roce_mr.c102 buf_attr.region_count = 1; in alloc_mr_pbl()
442 mtr->hem_cfg.region_count = 1; in hns_roce_map_mr_sg()
609 for (i = 0; i < attr->region_count; i++) in mtr_has_mtt()
626 for (i = 0; i < attr->region_count; i++) in mtr_bufs_size()
762 for (i = 0, mapped_cnt = 0; i < mtr->hem_cfg.region_count && in hns_roce_mtr_map()
817 for (mtt_count = 0; mtt_count < cfg->region_count && in hns_roce_mtr_find()
894 for (page_cnt = 0, region_cnt = 0; region_cnt < attr->region_count && in mtr_init_buf_cfg()
907 cfg->region_count = region_cnt; in mtr_init_buf_cfg()
935 for (i = 0; i < mtr->hem_cfg.region_count; i++) { in cal_best_bt_pg_sz()
964 cfg->region, cfg->region_count, in mtr_alloc_mtt()
Dhns_roce_srq.c179 buf_attr.region_count = 1; in alloc_srq_idx()
234 buf_attr.region_count = 1; in alloc_srq_wqe_buf()
Dhns_roce_device.h275 unsigned int region_count; /* valid region count */ member
288 unsigned int region_count; member
Dhns_roce_cq.c209 buf_attr.region_count = 1; in alloc_cq_buf()
Dhns_roce_qp.c690 buf_attr->region_count = idx; in set_wqe_buf_attr()
Dhns_roce_hw_v2.c6359 buf_attr.region_count = 1; in alloc_eq_buf()
/linux-6.6.21/Documentation/translations/zh_CN/mm/
Dhugetlbfs_reserv.rst290 long region_count(struct resv_map *resv, long f, long t);
331 region_count()在解除私有巨页映射时被调用。在私有映射中,预留映射中没有条目表明存在一个预留。
333 (Outstanding = (end - start) - region_count(resv, start, end))。由于映射正在消
/linux-6.6.21/drivers/remoteproc/
Dqcom_common.c66 __le32 region_count; member
120 seg_cnt = le32_to_cpu(subsystem->region_count); in qcom_add_minidump_segments()
/linux-6.6.21/drivers/bus/fsl-mc/
Dfsl-mc-bus.c684 regions = kmalloc_array(obj_desc->region_count, in fsl_mc_device_get_mmio_regions()
689 for (i = 0; i < obj_desc->region_count; i++) { in fsl_mc_device_get_mmio_regions()
883 if (parent_mc_dev && obj_desc->region_count != 0) { in fsl_mc_device_add()
1151 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.h187 u8 region_count; member
Ddprc-driver.c644 if (mc_dev->obj_desc.region_count == 0) in dprc_setup()
/linux-6.6.21/drivers/mtd/spi-nor/
Dsfdp.c829 u32 region_count; in spi_nor_init_non_uniform_erase_map() local
834 region_count = SMPT_MAP_REGION_COUNT(*smpt); in spi_nor_init_non_uniform_erase_map()
839 region = devm_kcalloc(nor->dev, region_count, sizeof(*region), in spi_nor_init_non_uniform_erase_map()
849 for (i = 0; i < region_count; i++) { in spi_nor_init_non_uniform_erase_map()
/linux-6.6.21/drivers/soc/fsl/dpio/
Ddpio-driver.c197 if (dpio_dev->obj_desc.region_count < 3) { in dpaa2_dpio_probe()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_tcam.c107 unsigned int region_count; member
390 if (group->region_count == group->tcam->max_group_size) { in mlxsw_sp_acl_tcam_group_region_attach()
416 group->region_count++; in mlxsw_sp_acl_tcam_group_region_attach()
435 group->region_count--; in mlxsw_sp_acl_tcam_group_region_detach()
/linux-6.6.21/include/linux/fsl/
Dmc.h150 u8 region_count; member
/linux-6.6.21/Documentation/mm/
Dhugetlbfs_reserv.rst380 long region_count(struct resv_map *resv, long f, long t);
443 region_count() is called when unmapping a private huge page mapping. In
447 outstanding (outstanding = (end - start) - region_count(resv, start, end)).
/linux-6.6.21/mm/
Dhugetlb.c958 static long region_count(struct resv_map *resv, long f, long t) in region_count() function
4893 reserve = (end - start) - region_count(resv, start, end); in hugetlb_vm_op_close()