Home
last modified time | relevance | path

Searched refs:region_cnt (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Dopal-fadump.c98 pr_debug("Boot memory regions count: %d\n", be16_to_cpu(fdm->region_cnt)); in opal_fadump_update_config()
129 for (i = 0; i < be16_to_cpu(fdm->region_cnt); i++) { in opal_fadump_get_config()
158 if (be16_to_cpu(fdm->region_cnt) > be16_to_cpu(fdm->registered_regions)) { in opal_fadump_get_config()
162 while (i < be16_to_cpu(fdm->region_cnt)) { in opal_fadump_get_config()
174 fadump_conf->boot_mem_regs_cnt = be16_to_cpu(fdm->region_cnt); in opal_fadump_get_config()
182 fdm->region_cnt = cpu_to_be16(0); in opal_fadump_init_metadata()
197 reg_cnt = be16_to_cpu(opal_fdm->region_cnt); in opal_fadump_init_mem_struct()
206 opal_fdm->region_cnt = cpu_to_be16(reg_cnt); in opal_fadump_init_mem_struct()
280 for (i = 0; i < be16_to_cpu(opal_fdm->region_cnt); i++) { in opal_fadump_register()
301 (be16_to_cpu(opal_fdm->region_cnt) - in opal_fadump_register()
[all …]
Dopal-fadump.h39 __be16 region_cnt; /* number of regions */ member
Dopal-core.c510 idx = be32_to_cpu(opalc_metadata->region_cnt); in opalcore_config_init()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_hem.c1190 int region_cnt, int unit) in hns_roce_hem_list_calc_root_ba() argument
1197 for (i = 0; i < region_cnt; i++) { in hns_roce_hem_list_calc_root_ba()
1299 int region_cnt) in hem_list_alloc_root_bt() argument
1320 ba_num = hns_roce_hem_list_calc_root_ba(regions, region_cnt, unit); in hem_list_alloc_root_bt()
1327 r = &regions[region_cnt - 1]; in hem_list_alloc_root_bt()
1337 for (i = 0; i < region_cnt; i++) in hem_list_alloc_root_bt()
1341 for (i = 0; i < region_cnt && total < ba_num; i++) { in hem_list_alloc_root_bt()
1385 for (i = 0; i < region_cnt; i++) in hem_list_alloc_root_bt()
1391 for (i = 0; i < region_cnt; i++) in hem_list_alloc_root_bt()
1403 int region_cnt, unsigned int bt_pg_shift) in hns_roce_hem_list_request() argument
[all …]
Dhns_roce_mr.c949 int region_cnt; in mtr_init_buf_cfg() local
977 for (page_cnt = 0, region_cnt = 0; page_cnt < cfg->buf_pg_count && in mtr_init_buf_cfg()
978 region_cnt < attr->region_count && in mtr_init_buf_cfg()
979 region_cnt < ARRAY_SIZE(cfg->region); region_cnt++) { in mtr_init_buf_cfg()
980 r = &cfg->region[region_cnt]; in mtr_init_buf_cfg()
982 buf_size = hr_hw_page_align(attr->region[region_cnt].size); in mtr_init_buf_cfg()
985 r->hopnum = to_hr_hem_hopnum(attr->region[region_cnt].hopnum, in mtr_init_buf_cfg()
989 if (region_cnt < 1) { in mtr_init_buf_cfg()
996 cfg->region_count = region_cnt; in mtr_init_buf_cfg()
Dhns_roce_hem.h132 int region_cnt, int unit);
136 int region_cnt, unsigned int bt_pg_shift);
/kernel/linux/linux-5.10/drivers/video/fbdev/omap/
Domapfb_main.c135 fbdev->mem_desc.region_cnt = i; in ctrl_init()
138 if (!fbdev->mem_desc.region_cnt) { in ctrl_init()
147 fbdev->mem_desc.region_cnt = 1; in ctrl_init()
158 for (i = 0; i < fbdev->mem_desc.region_cnt; i++) { in ctrl_init()
1483 for (i = 0; i < fbdev->mem_desc.region_cnt; i++) { in planes_cleanup()
1497 for (i = 0; i < fbdev->mem_desc.region_cnt; i++) { in planes_init()
1532 for (i = 0; i < fbdev->mem_desc.region_cnt; i++) in omapfb_free_resources()
1722 for (i = 0; i < fbdev->mem_desc.region_cnt; i++) { in omapfb_do_probe()
1742 vram, fbdev->mem_desc.region_cnt); in omapfb_do_probe()
Dlcdc.c656 if (!req_md->region_cnt) { in setup_fbmem()
661 if (req_md->region_cnt > 1) { in setup_fbmem()
663 req_md->region_cnt = 1; in setup_fbmem()
Domapfb.h54 int region_cnt; member
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dopal-api.h1181 __be32 region_cnt; member