/linux-5.19.10/drivers/md/ |
D | raid5.c | 145 if (idx == sh->pd_idx) in raid6_idx_to_slot() 280 WARN_ON(test_bit(R5_InJournal, &sh->dev[sh->pd_idx].flags)); in do_release_stripe() 881 while (dd_idx == sh->pd_idx || dd_idx == sh->qd_idx) in stripe_add_to_batch_list() 1573 if (i == sh->qd_idx || i == sh->pd_idx || in set_syndrome_sources() 1804 int count = 0, pd_idx = sh->pd_idx, i; in ops_run_prexor5() local 1808 unsigned int off_dest = off_srcs[count] = sh->dev[pd_idx].offset; in ops_run_prexor5() 1809 struct page *xor_dest = xor_srcs[count++] = sh->dev[pd_idx].page; in ops_run_prexor5() 1937 int pd_idx = sh->pd_idx; in ops_complete_reconstruct() local 1954 if (dev->written || i == pd_idx || i == qd_idx) { in ops_complete_reconstruct() 1988 int count, pd_idx = sh->pd_idx, i; in ops_run_reconstruct5() local [all …]
|
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() 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() 937 BUG_ON(sh.pd_idx != le32_to_cpu(e->parity_disk)); in ppl_recover_entry() 941 conf->disks[sh.pd_idx].rdev, 1); in ppl_recover_entry()
|
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() 928 if (i == sh->pd_idx || i == sh->qd_idx) in r5l_log_stripe() 947 sh->sector, sh->dev[sh->pd_idx].log_checksum, in r5l_log_stripe() 949 r5l_append_payload_page(log, sh->dev[sh->pd_idx].page); in r5l_log_stripe() 953 sh->sector, sh->dev[sh->pd_idx].log_checksum, in r5l_log_stripe() 955 r5l_append_payload_page(log, sh->dev[sh->pd_idx].page); in r5l_log_stripe() 1004 if (sh->log_io || !test_bit(R5_Wantwrite, &sh->dev[sh->pd_idx].flags) || in r5l_write_stripe() 1839 r5l_recovery_read_page(log, ctx, sh->dev[sh->pd_idx].page, log_offset); in r5l_recovery_load_parity() 1840 sh->dev[sh->pd_idx].log_checksum = in r5l_recovery_load_parity() [all …]
|
D | raid5.h | 208 short pd_idx; /* parity disk index */ member
|
/linux-5.19.10/drivers/infiniband/hw/irdma/ |
D | hmc.c | 50 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 …]
|
D | pble.c | 75 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()
|
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()
|
D | uda.h | 14 u32 pd_idx; member
|
D | pble.h | 57 u32 pd_idx; member
|
D | verbs.c | 4162 ah_info->pd_idx = pd->sc_pd.pd_id; in irdma_setup_ah()
|
/linux-5.19.10/drivers/net/ethernet/intel/i40e/ |
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()
|
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-5.19.10/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 317 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()
|