Home
last modified time | relevance | path

Searched refs:pd_idx (Results 1 – 13 of 13) sorted by relevance

/linux-6.15/drivers/md/
H A Draid5.c149 if (idx == sh->pd_idx) in raid6_idx_to_slot()
1858 int count = 0, pd_idx = sh->pd_idx, i; in ops_run_prexor5() local
1991 int pd_idx = sh->pd_idx; in ops_complete_reconstruct() local
2042 int count, pd_idx = sh->pd_idx, i; in ops_run_reconstruct5() local
2055 if (pd_idx == i) in ops_run_reconstruct5()
2210 int pd_idx = sh->pd_idx; in ops_run_check_p() local
3014 pd_idx = 0; in raid5_compute_sector()
3057 pd_idx = 0; in raid5_compute_sector()
3132 pd_idx = 0; in raid5_compute_sector()
3144 sh->pd_idx = pd_idx; in raid5_compute_sector()
[all …]
H A Draid5-ppl.c163 int count = 0, pd_idx = sh->pd_idx, i; in ops_run_partial_parity() local
180 srcs[count++] = sh->dev[pd_idx].page; in ops_run_partial_parity()
302 if (i != sh->pd_idx && test_bit(R5_Wantwrite, &dev->flags)) { in ppl_log_stripe()
339 e->parity_disk = cpu_to_le32(sh->pd_idx); in ppl_log_stripe()
368 !test_bit(R5_Wantwrite, &sh->dev[sh->pd_idx].flags) || in ppl_write_stripe()
369 !test_bit(R5_Insync, &sh->dev[sh->pd_idx].flags)) { in ppl_write_stripe()
374 log = &ppl_conf->child_logs[sh->pd_idx]; in ppl_write_stripe()
933 BUG_ON(sh.pd_idx != le32_to_cpu(e->parity_disk)); in ppl_recover_entry()
935 parity_rdev = conf->disks[sh.pd_idx].rdev; in ppl_recover_entry()
H A Draid5-cache.c503 set_bit(R5_InJournal, &sh->dev[sh->pd_idx].flags); in r5c_finish_cache_stripe()
508 set_bit(R5_InJournal, &sh->dev[sh->pd_idx].flags); in r5c_finish_cache_stripe()
926 if (i == sh->pd_idx || i == sh->qd_idx) in r5l_log_stripe()
945 sh->sector, sh->dev[sh->pd_idx].log_checksum, in r5l_log_stripe()
947 r5l_append_payload_page(log, sh->dev[sh->pd_idx].page); in r5l_log_stripe()
951 sh->sector, sh->dev[sh->pd_idx].log_checksum, in r5l_log_stripe()
953 r5l_append_payload_page(log, sh->dev[sh->pd_idx].page); in r5l_log_stripe()
1833 sh->dev[sh->pd_idx].log_checksum = in r5l_recovery_load_parity()
1835 set_bit(R5_Wantwrite, &sh->dev[sh->pd_idx].flags); in r5l_recovery_load_parity()
1870 if (disk_index == sh->qd_idx || disk_index == sh->pd_idx) in r5l_recovery_replay_one_stripe()
[all …]
H A Draid5.h208 short pd_idx; /* parity disk index */ member
/linux-6.15/drivers/infiniband/hw/irdma/
H A Dhmc.c50 u32 idx, u32 cnt, u32 *pd_idx, in irdma_find_pd_index_limit() argument
58 *pd_idx = (u32)(fpm_adr / IRDMA_HMC_PAGED_BP_SIZE); in irdma_find_pd_index_limit()
105 u32 pd_idx) in irdma_invalidate_pf_hmc_pd() argument
109 FIELD_PREP(IRDMA_PFHMC_PDINV_PMPDIDX, pd_idx); in irdma_invalidate_pf_hmc_pd()
225 u32 pd_idx = 0, pd_lmt = 0; in irdma_sc_create_hmc_obj() local
252 info->start_idx, info->count, &pd_idx, in irdma_sc_create_hmc_obj()
266 pd_idx1 = max(pd_idx, (j * IRDMA_HMC_MAX_BP_COUNT)); in irdma_sc_create_hmc_obj()
300 pd_idx1 = max(pd_idx, (j - 1) * IRDMA_HMC_MAX_BP_COUNT); in irdma_sc_create_hmc_obj()
375 u32 pd_idx, pd_lmt, rel_pd_idx; in irdma_sc_del_hmc_obj() local
397 info->start_idx, info->count, &pd_idx, in irdma_sc_del_hmc_obj()
[all …]
H A Dpble.c75 idx->pd_idx = (u32)(pble_rsrc->next_fpm_addr / IRDMA_HMC_PAGED_BP_SIZE); in get_sd_pd_idx()
76 idx->rel_pd_idx = (idx->pd_idx % IRDMA_HMC_PD_CNT_IN_SD); in get_sd_pd_idx()
148 u32 pd_idx = info->idx.pd_idx; in add_bp_pages() local
168 pd_idx++, &mem); in add_bp_pages()
H A Duda.c31 qw1 = FIELD_PREP(IRDMA_UDA_CQPSQ_MAV_PDINDEXLO, info->pd_idx) | in irdma_sc_access_ah()
38 FIELD_PREP(IRDMA_UDA_CQPSQ_MAV_PDINDEXHI, info->pd_idx >> 16); in irdma_sc_access_ah()
H A Duda.h14 u32 pd_idx; member
H A Dpble.h57 u32 pd_idx; member
H A Dverbs.c4458 ah_info->pd_idx = pd->sc_pd.pd_id; in irdma_setup_ah()
/linux-6.15/drivers/net/ethernet/intel/i40e/
H A Di40e_lan_hmc.c281 u32 pd_idx = 0, pd_lmt = 0; in i40e_create_lan_hmc_object() local
329 info->start_idx, info->count, &pd_idx, in i40e_create_lan_hmc_object()
358 pd_idx1 = max(pd_idx, (j * I40E_HMC_MAX_BP_COUNT)); in i40e_create_lan_hmc_object()
406 pd_idx1 = max(pd_idx, in i40e_create_lan_hmc_object()
524 u32 pd_idx, pd_lmt, rel_pd_idx; in i40e_delete_lan_hmc_object() local
572 info->start_idx, info->count, &pd_idx, in i40e_delete_lan_hmc_object()
575 for (j = pd_idx; j < pd_lmt; j++) { in i40e_delete_lan_hmc_object()
981 u32 pd_idx, pd_lmt, rel_pd_idx; in i40e_hmc_get_object_va() local
1022 &pd_idx, &pd_lmt); in i40e_hmc_get_object_va()
1023 rel_pd_idx = pd_idx % I40E_HMC_PD_CNT_IN_SD; in i40e_hmc_get_object_va()
H A Di40e_hmc.h142 #define I40E_INVALIDATE_PF_HMC_PD(hw, sd_idx, pd_idx) \ argument
145 ((pd_idx) << I40E_PFHMC_PDINV_PMPDIDX_SHIFT)))
/linux-6.15/drivers/infiniband/hw/ocrdma/
H A Docrdma_verbs.c317 u16 pd_idx = 0; in ocrdma_get_pd_num() local
324 pd_idx = _ocrdma_pd_mgr_get_bitmap(dev, true); in ocrdma_get_pd_num()
325 pd->id = dev->pd_mgr->pd_dpp_start + pd_idx; in ocrdma_get_pd_num()
326 pd->dpp_page = dev->pd_mgr->dpp_page_index + pd_idx; in ocrdma_get_pd_num()
329 pd_idx = _ocrdma_pd_mgr_get_bitmap(dev, false); in ocrdma_get_pd_num()
330 pd->id = dev->pd_mgr->pd_norm_start + pd_idx; in ocrdma_get_pd_num()
337 pd_idx = _ocrdma_pd_mgr_get_bitmap(dev, false); in ocrdma_get_pd_num()
338 pd->id = dev->pd_mgr->pd_norm_start + pd_idx; in ocrdma_get_pd_num()