Searched refs:BA_BYTE_LEN (Results 1 – 4 of 4) sorted by relevance
223 chunk_ba_num = mhop->bt_chunk_size / BA_BYTE_LEN; in hns_roce_calc_hem_mhop()317 chunk_ba_num = mhop->bt_chunk_size / BA_BYTE_LEN; in calc_hem_config()585 chunk_ba_num = mhop->bt_chunk_size / BA_BYTE_LEN; in clear_mhop_hem()714 hem_idx = i * (mhop.bt_chunk_size / BA_BYTE_LEN) + j; in hns_roce_table_find()769 bt_chunk_num = bt_chunk_size / BA_BYTE_LEN; in hns_roce_init_hem_table()954 hem->addr = dma_alloc_coherent(hr_dev->dev, count * BA_BYTE_LEN, in hem_list_alloc_item()975 dma_free_coherent(hr_dev->dev, hem->count * BA_BYTE_LEN, in hem_list_free_item()1167 step = (cur->start - pre->start) / step * BA_BYTE_LEN; in hem_list_alloc_mid_bt()1248 offset = (hem->start - r->offset) / step * BA_BYTE_LEN; in setup_middle_bt()1280 cpu_base = root_hem->addr + total * BA_BYTE_LEN; in setup_root_hem()[all …]
983 unit *= ba_pg_sz / BA_BYTE_LEN; in get_best_hop_num()1086 ba_per_bt = BIT(pg_shift) / BA_BYTE_LEN; in cal_best_bt_pg_sz()
47 #define BA_BYTE_LEN 8 macro
1978 obj_per_chunk = ctx_bt_num * (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()1979 (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()1980 (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()1984 obj_per_chunk = ctx_bt_num * (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()1985 (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()1989 obj_per_chunk = ctx_bt_num * (bt_chunk_size / BA_BYTE_LEN) * in calc_pg_sz()