/linux/drivers/md/ |
A D | raid5.c | 141 if (idx == sh->pd_idx) in raid6_idx_to_slot() 1798 int count = 0, pd_idx = sh->pd_idx, i; in ops_run_prexor5() local 1931 int pd_idx = sh->pd_idx; in ops_complete_reconstruct() local 1982 int count, pd_idx = sh->pd_idx, i; in ops_run_reconstruct5() local 1995 if (pd_idx == i) in ops_run_reconstruct5() 2150 int pd_idx = sh->pd_idx; in ops_run_check_p() local 2976 pd_idx = 0; in raid5_compute_sector() 3019 pd_idx = 0; in raid5_compute_sector() 3094 pd_idx = 0; in raid5_compute_sector() 3106 sh->pd_idx = pd_idx; in raid5_compute_sector() [all …]
|
A D | raid5-ppl.c | 163 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() 301 if (i != sh->pd_idx && test_bit(R5_Wantwrite, &dev->flags)) { in ppl_log_stripe() 338 e->parity_disk = cpu_to_le32(sh->pd_idx); in ppl_log_stripe() 367 !test_bit(R5_Wantwrite, &sh->dev[sh->pd_idx].flags) || in ppl_write_stripe() 368 !test_bit(R5_Insync, &sh->dev[sh->pd_idx].flags)) { in ppl_write_stripe() 373 log = &ppl_conf->child_logs[sh->pd_idx]; in ppl_write_stripe() 945 BUG_ON(sh.pd_idx != le32_to_cpu(e->parity_disk)); in ppl_recover_entry() 946 parity_rdev = conf->disks[sh.pd_idx].rdev; in ppl_recover_entry()
|
A D | raid5-cache.c | 504 set_bit(R5_InJournal, &sh->dev[sh->pd_idx].flags); in r5c_finish_cache_stripe() 509 set_bit(R5_InJournal, &sh->dev[sh->pd_idx].flags); in r5c_finish_cache_stripe() 929 if (i == sh->pd_idx || i == sh->qd_idx) in r5l_log_stripe() 948 sh->sector, sh->dev[sh->pd_idx].log_checksum, in r5l_log_stripe() 950 r5l_append_payload_page(log, sh->dev[sh->pd_idx].page); in r5l_log_stripe() 954 sh->sector, sh->dev[sh->pd_idx].log_checksum, in r5l_log_stripe() 956 r5l_append_payload_page(log, sh->dev[sh->pd_idx].page); in r5l_log_stripe() 1843 sh->dev[sh->pd_idx].log_checksum = in r5l_recovery_load_parity() 1845 set_bit(R5_Wantwrite, &sh->dev[sh->pd_idx].flags); in r5l_recovery_load_parity() 1880 if (disk_index == sh->qd_idx || disk_index == sh->pd_idx) in r5l_recovery_replay_one_stripe() [all …]
|
A D | raid5.h | 207 short pd_idx; /* parity disk index */ member
|
/linux/drivers/infiniband/hw/irdma/ |
A D | hmc.c | 51 u32 idx, u32 cnt, u32 *pd_idx, in irdma_find_pd_index_limit() argument 59 *pd_idx = (u32)(fpm_adr / IRDMA_HMC_PAGED_BP_SIZE); in irdma_find_pd_index_limit() 106 u32 pd_idx) in irdma_invalidate_pf_hmc_pd() argument 110 FIELD_PREP(IRDMA_PFHMC_PDINV_PMPDIDX, pd_idx); in irdma_invalidate_pf_hmc_pd() 231 u32 pd_idx = 0, pd_lmt = 0; in irdma_sc_create_hmc_obj() local 258 info->start_idx, info->count, &pd_idx, in irdma_sc_create_hmc_obj() 272 pd_idx1 = max(pd_idx, (j * IRDMA_HMC_MAX_BP_COUNT)); in irdma_sc_create_hmc_obj() 306 pd_idx1 = max(pd_idx, (j - 1) * IRDMA_HMC_MAX_BP_COUNT); in irdma_sc_create_hmc_obj() 382 u32 pd_idx, pd_lmt, rel_pd_idx; in irdma_sc_del_hmc_obj() local 404 info->start_idx, info->count, &pd_idx, in irdma_sc_del_hmc_obj() [all …]
|
A D | pble.c | 78 idx->pd_idx = (u32)(pble_rsrc->next_fpm_addr / IRDMA_HMC_PAGED_BP_SIZE); in get_sd_pd_idx() 79 idx->rel_pd_idx = (idx->pd_idx % IRDMA_HMC_PD_CNT_IN_SD); in get_sd_pd_idx() 153 u32 pd_idx = info->idx.pd_idx; in add_bp_pages() local 173 pd_idx++, &mem); in add_bp_pages()
|
A D | uda.c | 31 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()
|
A D | uda.h | 14 u32 pd_idx; member
|
A D | pble.h | 57 u32 pd_idx; member
|
A D | verbs.c | 4181 ah_info->pd_idx = pd->sc_pd.pd_id; in irdma_create_ah()
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_lan_hmc.c | 285 u32 pd_idx = 0, pd_lmt = 0; in i40e_create_lan_hmc_object() local 332 info->start_idx, info->count, &pd_idx, in i40e_create_lan_hmc_object() 361 pd_idx1 = max(pd_idx, (j * I40E_HMC_MAX_BP_COUNT)); in i40e_create_lan_hmc_object() 409 pd_idx1 = max(pd_idx, in i40e_create_lan_hmc_object() 528 u32 pd_idx, pd_lmt, rel_pd_idx; in i40e_delete_lan_hmc_object() local 575 info->start_idx, info->count, &pd_idx, in i40e_delete_lan_hmc_object() 578 for (j = pd_idx; j < pd_lmt; j++) { in i40e_delete_lan_hmc_object() 984 u32 pd_idx, pd_lmt, rel_pd_idx; in i40e_hmc_get_object_va() local 1025 &pd_idx, &pd_lmt); in i40e_hmc_get_object_va() 1026 rel_pd_idx = pd_idx % I40E_HMC_PD_CNT_IN_SD; in i40e_hmc_get_object_va()
|
A D | i40e_hmc.h | 138 #define I40E_INVALIDATE_PF_HMC_PD(hw, sd_idx, pd_idx) \ argument 141 ((pd_idx) << I40E_PFHMC_PDINV_PMPDIDX_SHIFT)))
|
/linux/drivers/infiniband/hw/ocrdma/ |
A D | ocrdma_verbs.c | 315 u16 pd_idx = 0; in ocrdma_get_pd_num() local 322 pd_idx = _ocrdma_pd_mgr_get_bitmap(dev, true); in ocrdma_get_pd_num() 323 pd->id = dev->pd_mgr->pd_dpp_start + pd_idx; in ocrdma_get_pd_num() 324 pd->dpp_page = dev->pd_mgr->dpp_page_index + pd_idx; in ocrdma_get_pd_num() 327 pd_idx = _ocrdma_pd_mgr_get_bitmap(dev, false); in ocrdma_get_pd_num() 328 pd->id = dev->pd_mgr->pd_norm_start + pd_idx; in ocrdma_get_pd_num() 335 pd_idx = _ocrdma_pd_mgr_get_bitmap(dev, false); in ocrdma_get_pd_num() 336 pd->id = dev->pd_mgr->pd_norm_start + pd_idx; in ocrdma_get_pd_num()
|