Home
last modified time | relevance | path

Searched refs:block_idx (Results 1 – 6 of 6) sorted by relevance

/drivers/net/ethernet/mellanox/mlx5/core/lib/
Ddm.c105 u64 block_idx; in mlx5_dm_sw_icm_alloc() local
147 block_idx = bitmap_find_next_zero_area(block_map, max_blocks, 0, in mlx5_dm_sw_icm_alloc()
150 if (block_idx < max_blocks) in mlx5_dm_sw_icm_alloc()
152 block_idx, num_blocks); in mlx5_dm_sw_icm_alloc()
156 if (block_idx >= max_blocks) in mlx5_dm_sw_icm_alloc()
160 icm_start_addr += block_idx << MLX5_LOG_SW_ICM_BLOCK_SIZE(dev); in mlx5_dm_sw_icm_alloc()
169 block_idx, num_blocks); in mlx5_dm_sw_icm_alloc()
/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c46 + (wq)->block_idx * WQ_BLOCK_SIZE)
50 + (wq)->block_idx * WQ_BLOCK_SIZE)
54 + (wq)->block_idx * WQ_BLOCK_SIZE)
58 + (wq)->block_idx * CMDQ_BLOCK_SIZE)
62 + (wq)->block_idx * CMDQ_BLOCK_SIZE)
66 + (wq)->block_idx * CMDQ_BLOCK_SIZE)
234 int *block_idx) in wqs_next_block() argument
252 *block_idx = wqs->free_blocks[pos].block_idx; in wqs_next_block()
255 wqs->free_blocks[pos].block_idx = -1; in wqs_next_block()
262 int block_idx) in wqs_return_block() argument
[all …]
Dhinic_hw_wq.h19 int block_idx; member
26 int block_idx; member
/drivers/staging/most/dim2/
Dhal.c106 int i, block_idx = 0; in alloc_dbr() local
122 return block_idx * DBR_BLOCK_SIZE; in alloc_dbr()
124 block_idx += mask_size; in alloc_dbr()
135 int block_idx = offs / DBR_BLOCK_SIZE; in free_dbr() local
139 mask <<= block_idx % 32; in free_dbr()
140 g.dbr_map[block_idx / 32] &= ~mask; in free_dbr()
/drivers/net/ethernet/brocade/bna/
Dbna_tx_rx.c256 bna_bfi_rx_vlan_filter_set(struct bna_rxf *rxf, u8 block_idx) in bna_bfi_rx_vlan_filter_set() argument
266 req->block_idx = block_idx; in bna_bfi_rx_vlan_filter_set()
268 j = (block_idx * (BFI_ENET_VLAN_BLOCK_SIZE / 32)) + i; in bna_bfi_rx_vlan_filter_set()
450 int block_idx = 0; in bna_rxf_vlan_cfg_apply() local
455 block_idx++; in bna_rxf_vlan_cfg_apply()
458 rxf->vlan_pending_bitmask &= ~BIT(block_idx); in bna_rxf_vlan_cfg_apply()
459 bna_bfi_rx_vlan_filter_set(rxf, block_idx); in bna_rxf_vlan_cfg_apply()
Dbfi_enet.h616 u8 block_idx; member