Home
last modified time | relevance | path

Searched refs:BA_BYTE_LEN (Results 1 – 4 of 4) sorted by relevance

/linux-6.6.21/drivers/infiniband/hw/hns/
Dhns_roce_hem.c223 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()
[all …]
Dhns_roce_device.h46 #define BA_BYTE_LEN 8 macro
Dhns_roce_mr.c933 ba_per_bt = BIT(pg_shift) / BA_BYTE_LEN; in cal_best_bt_pg_sz()
Dhns_roce_hw_v2.c1945 obj_per_chunk = ctx_bt_num * (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()
1946 (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()
1947 (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()
1951 obj_per_chunk = ctx_bt_num * (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()
1952 (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()
1956 obj_per_chunk = ctx_bt_num * (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()