Lines Matching refs:BA_BYTE_LEN
223 chunk_ba_num = mhop->bt_chunk_size / BA_BYTE_LEN; in hns_roce_calc_hem_mhop()
354 chunk_ba_num = mhop->bt_chunk_size / BA_BYTE_LEN; in calc_hem_config()
625 chunk_ba_num = mhop->bt_chunk_size / BA_BYTE_LEN; in clear_mhop_hem()
756 hem_idx = i * (mhop.bt_chunk_size / BA_BYTE_LEN) + j; in hns_roce_table_find()
826 bt_chunk_num = bt_chunk_size / BA_BYTE_LEN; in hns_roce_init_hem_table()
1009 hem->addr = dma_alloc_coherent(hr_dev->dev, count * BA_BYTE_LEN, in hem_list_alloc_item()
1030 dma_free_coherent(hr_dev->dev, hem->count * BA_BYTE_LEN, in hem_list_free_item()
1222 step = (cur->start - pre->start) / step * BA_BYTE_LEN; in hem_list_alloc_mid_bt()
1304 offset = (hem->start - r->offset) / step * BA_BYTE_LEN; in setup_middle_bt()
1336 cpu_base = root_hem->addr + total * BA_BYTE_LEN; in setup_root_hem()
1337 phy_base = root_hem->dma_addr + total * BA_BYTE_LEN; in setup_root_hem()
1422 unit = (1 << bt_pg_shift) / BA_BYTE_LEN; in hns_roce_hem_list_request()
1492 cpu_base = hem->addr + nr * BA_BYTE_LEN; in hns_roce_hem_list_find_mtt()