Searched refs:hem_idx (Results 1 – 2 of 2) sorted by relevance
450 u64 hem_idx; in hns_roce_table_mhop_get() local472 hem_idx = mhop.l0_idx * chunk_ba_num * chunk_ba_num + in hns_roce_table_mhop_get()478 hem_idx = mhop.l0_idx * chunk_ba_num + mhop.l1_idx; in hns_roce_table_mhop_get()482 hem_idx = mhop.l0_idx; in hns_roce_table_mhop_get()490 if (unlikely(hem_idx >= table->num_hem)) { in hns_roce_table_mhop_get()492 table->type, hem_idx, table->num_hem); in hns_roce_table_mhop_get()498 if (table->hem[hem_idx]) { in hns_roce_table_mhop_get()499 ++table->hem[hem_idx]->refcount; in hns_roce_table_mhop_get()555 table->hem[hem_idx] = hns_roce_alloc_hem(hr_dev, in hns_roce_table_mhop_get()560 if (!table->hem[hem_idx]) { in hns_roce_table_mhop_get()[all …]
3044 u64 hem_idx = 0; in hns_roce_v2_set_hem() local3062 hem_idx = i * chunk_ba_num * chunk_ba_num + j * chunk_ba_num + in hns_roce_v2_set_hem()3066 hem_idx = i * chunk_ba_num + j; in hns_roce_v2_set_hem()3068 hem_idx = i; in hns_roce_v2_set_hem()3083 hem = table->hem[hem_idx]; in hns_roce_v2_set_hem()