Searched refs:bp_cnt (Results 1 – 3 of 3) sorted by relevance
154 static int detect_share(int wp_cnt, int bp_cnt) in detect_share() argument159 if (wp_cnt + bp_cnt == 0) in detect_share()162 fd = malloc(sizeof(int) * (wp_cnt + bp_cnt)); in detect_share()174 for (; i < (bp_cnt + wp_cnt); i++) { in detect_share()180 ret = i != (bp_cnt + wp_cnt); in detect_share()208 int bp_cnt = detect_cnt(true); in test__bp_accounting() local209 int share = detect_share(wp_cnt, bp_cnt); in test__bp_accounting()217 wp_cnt, bp_cnt, has_ioctl, share); in test__bp_accounting()219 if (!wp_cnt || !bp_cnt || !has_ioctl) in test__bp_accounting()
76 uint32_t i = 0, bp_cnt = 0, group_cnt = 0; in ras_cmd_get_group_bad_pages() local83 bp_cnt = ras_umc_get_badpage_count(ras_core); in ras_cmd_get_group_bad_pages()84 if (bp_cnt) { in ras_cmd_get_group_bad_pages()86 group_cnt = bp_cnt / RAS_CMD_MAX_BAD_PAGES_PER_GROUP in ras_cmd_get_group_bad_pages()87 + ((bp_cnt % RAS_CMD_MAX_BAD_PAGES_PER_GROUP) ? 1 : 0); in ras_cmd_get_group_bad_pages()96 i < bp_cnt && output_data->bp_in_group < RAS_CMD_MAX_BAD_PAGES_PER_GROUP; in ras_cmd_get_group_bad_pages()110 output_data->bp_total_cnt = bp_cnt; in ras_cmd_get_group_bad_pages()
509 uint32_t bp_idx, bp_cnt; in amdgpu_virt_add_bad_page() local519 bp_cnt = bp_block_size / sizeof(uint64_t); in amdgpu_virt_add_bad_page()520 for (bp_idx = 0; bp_idx < bp_cnt; bp_idx++) { in amdgpu_virt_add_bad_page()