Searched refs:roundup_size (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/drivers/misc/habanalabs/common/ |
D | command_buffer.c | 39 cb->roundup_size = roundup(cb->size, page_size); in cb_map_mem() 41 cb->virtual_addr = (u64) gen_pool_alloc(ctx->cb_va_pool, cb->roundup_size); in cb_map_mem() 48 rc = hl_mmu_map_contiguous(ctx, cb->virtual_addr, cb->bus_address, cb->roundup_size); in cb_map_mem() 61 gen_pool_free(ctx->cb_va_pool, cb->virtual_addr, cb->roundup_size); in cb_map_mem() 70 hl_mmu_unmap_contiguous(ctx, cb->virtual_addr, cb->roundup_size); in cb_unmap_mem() 74 gen_pool_free(ctx->cb_va_pool, cb->virtual_addr, cb->roundup_size); in cb_unmap_mem()
|
D | habanalabs.h | 943 u32 roundup_size; member
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
D | hclge_comm_rss.c | 69 u16 roundup_size; in hclge_comm_get_rss_tc_info() local 72 roundup_size = roundup_pow_of_two(rss_size); in hclge_comm_get_rss_tc_info() 73 roundup_size = ilog2(roundup_size); in hclge_comm_get_rss_tc_info() 77 tc_size[i] = roundup_size; in hclge_comm_get_rss_tc_info()
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_main.c | 4916 u16 roundup_size; in hclge_init_rss_tc_mode() local 4940 roundup_size = roundup_pow_of_two(rss_size); in hclge_init_rss_tc_mode() 4941 roundup_size = ilog2(roundup_size); in hclge_init_rss_tc_mode() 4944 tc_size[i] = roundup_size; in hclge_init_rss_tc_mode() 12176 u16 roundup_size; in hclge_set_rss_tc_mode_cfg() local 12179 roundup_size = roundup_pow_of_two(vport->nic.kinfo.rss_size); in hclge_set_rss_tc_mode_cfg() 12180 roundup_size = ilog2(roundup_size); in hclge_set_rss_tc_mode_cfg() 12189 tc_size[i] = roundup_size; in hclge_set_rss_tc_mode_cfg()
|