Home
last modified time | relevance | path

Searched refs:block_index (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dcore_acl_flex_keys.c164 int block_index) in mlxsw_afk_picker_subtract_hits() argument
170 memcpy(&hits_element, &picker[block_index].element, in mlxsw_afk_picker_subtract_hits()
199 int block_index, in mlxsw_afk_picker_key_info_add() argument
207 for_each_set_bit(element, picker[block_index].element, in mlxsw_afk_picker_key_info_add()
214 &mlxsw_afk->blocks[block_index]; in mlxsw_afk_picker_key_info_add()
248 int block_index; in mlxsw_afk_picker() local
250 block_index = mlxsw_afk_picker_most_hits_get(mlxsw_afk, picker); in mlxsw_afk_picker()
251 if (block_index < 0) { in mlxsw_afk_picker()
252 err = block_index; in mlxsw_afk_picker()
256 block_index, key_info); in mlxsw_afk_picker()
[all …]
Dspectrum_acl_flex_keys.c101 static void mlxsw_sp1_afk_encode_block(char *output, int block_index, in mlxsw_sp1_afk_encode_block() argument
104 unsigned int offset = block_index * MLXSW_SP1_AFK_KEY_BLOCK_SIZE; in mlxsw_sp1_afk_encode_block()
110 static void mlxsw_sp1_afk_clear_block(char *output, int block_index) in mlxsw_sp1_afk_clear_block() argument
112 unsigned int offset = block_index * MLXSW_SP1_AFK_KEY_BLOCK_SIZE; in mlxsw_sp1_afk_clear_block()
281 static void __mlxsw_sp2_afk_block_value_set(char *output, int block_index, in __mlxsw_sp2_afk_block_value_set() argument
286 if (WARN_ON(block_index < 0 || in __mlxsw_sp2_afk_block_value_set()
287 block_index >= ARRAY_SIZE(mlxsw_sp2_afk_blocks_layout))) in __mlxsw_sp2_afk_block_value_set()
290 block_layout = &mlxsw_sp2_afk_blocks_layout[block_index]; in __mlxsw_sp2_afk_block_value_set()
295 static void mlxsw_sp2_afk_encode_block(char *output, int block_index, in mlxsw_sp2_afk_encode_block() argument
300 __mlxsw_sp2_afk_block_value_set(output, block_index, block_value); in mlxsw_sp2_afk_encode_block()
[all …]
Dcore_acl_flex_keys.h177 void (*encode_block)(char *output, int block_index, char *block);
178 void (*clear_block)(char *output, int block_index);
196 int block_index);
/linux-6.1.9/net/sched/
Dsch_ingress.c62 static void ingress_ingress_block_set(struct Qdisc *sch, u32 block_index) in ingress_ingress_block_set() argument
66 q->block_info.block_index = block_index; in ingress_ingress_block_set()
73 return q->block_info.block_index; in ingress_ingress_block_get()
187 static void clsact_ingress_block_set(struct Qdisc *sch, u32 block_index) in clsact_ingress_block_set() argument
191 q->ingress_block_info.block_index = block_index; in clsact_ingress_block_set()
194 static void clsact_egress_block_set(struct Qdisc *sch, u32 block_index) in clsact_egress_block_set() argument
198 q->egress_block_info.block_index = block_index; in clsact_egress_block_set()
205 return q->ingress_block_info.block_index; in clsact_ingress_block_get()
212 return q->egress_block_info.block_index; in clsact_egress_block_get()
Dcls_api.c879 u32 block_index, in tcf_block_create() argument
899 block->index = block_index; in tcf_block_create()
907 static struct tcf_block *tcf_block_lookup(struct net *net, u32 block_index) in tcf_block_lookup() argument
911 return idr_find(&tn->idr, block_index); in tcf_block_lookup()
914 static struct tcf_block *tcf_block_refcnt_get(struct net *net, u32 block_index) in tcf_block_refcnt_get() argument
919 block = tcf_block_lookup(net, block_index); in tcf_block_refcnt_get()
1140 u32 block_index, in __tcf_block_find() argument
1146 block = tcf_block_refcnt_get(net, block_index); in __tcf_block_find()
1214 int ifindex, u32 block_index, in tcf_block_find() argument
1230 block = __tcf_block_find(net, *q, *cl, ifindex, block_index, extack); in tcf_block_find()
[all …]
Dsch_api.c913 u32 block_index; in tc_fill_qdisc() local
931 block_index = q->ops->ingress_block_get(q); in tc_fill_qdisc()
932 if (block_index && in tc_fill_qdisc()
933 nla_put_u32(skb, TCA_INGRESS_BLOCK, block_index)) in tc_fill_qdisc()
937 block_index = q->ops->egress_block_get(q); in tc_fill_qdisc()
938 if (block_index && in tc_fill_qdisc()
939 nla_put_u32(skb, TCA_EGRESS_BLOCK, block_index)) in tc_fill_qdisc()
1151 u32 block_index; in qdisc_block_indexes_set() local
1154 block_index = nla_get_u32(tca[TCA_INGRESS_BLOCK]); in qdisc_block_indexes_set()
1156 if (!block_index) { in qdisc_block_indexes_set()
[all …]
/linux-6.1.9/drivers/crypto/hisilicon/
Dsgl.c163 u32 block_index, offset; in acc_get_sgl() local
169 block_index = index / pool->sgl_num_per_block; in acc_get_sgl()
172 *hw_sgl_dma = block[block_index].sgl_dma + pool->sgl_size * offset; in acc_get_sgl()
173 return (void *)block[block_index].sgl + pool->sgl_size * offset; in acc_get_sgl()
/linux-6.1.9/drivers/md/persistent-data/
Ddm-array.c349 unsigned block_index, uint32_t nr, in insert_new_ablock() argument
361 r = insert_ablock(info, block_index, block, root); in insert_new_ablock()
731 unsigned block_index, end_block, size_of_block, max_entries; in dm_array_new() local
741 for (block_index = 0; block_index != end_block; block_index++) { in dm_array_new()
747 block_index * max_entries, in dm_array_new()
754 r = insert_ablock(info, block_index, block, root); in dm_array_new()
/linux-6.1.9/drivers/net/ethernet/neterion/
Ds2io.h634 u32 block_index; member
640 u32 block_index; member
Ds2io.c721 ring->rx_curr_get_info.block_index = 0; in init_shared_mem()
724 ring->rx_curr_put_info.block_index = 0; in init_shared_mem()
2471 block_no1 = ring->rx_curr_get_info.block_index; in fill_rx_buffers()
2473 block_no = ring->rx_curr_put_info.block_index; in fill_rx_buffers()
2487 ring->rx_curr_put_info.block_index++; in fill_rx_buffers()
2488 if (ring->rx_curr_put_info.block_index == in fill_rx_buffers()
2490 ring->rx_curr_put_info.block_index = 0; in fill_rx_buffers()
2491 block_no = ring->rx_curr_put_info.block_index; in fill_rx_buffers()
2728 ring->rx_curr_put_info.block_index = 0; in free_rx_buffers()
2729 ring->rx_curr_get_info.block_index = 0; in free_rx_buffers()
[all …]
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_int.c79 enum block_id block_index; member
941 if (p_aeu->block_index != MAX_BLOCK_ID) in qed_int_deassertion_aeu_bit()
942 qed_int_attn_print(p_hwfn, p_aeu->block_index, in qed_int_deassertion_aeu_bit()
982 u32 block_id = p_aeu->block_index, mask, val; in qed_int_deassertion_parity()
/linux-6.1.9/include/net/
Dsch_generic.h311 u32 block_index);
313 u32 block_index);
Dpkt_cls.h32 u32 block_index; member
/linux-6.1.9/drivers/usb/atm/
Dueagle-atm.c331 struct block_index { struct
352 struct block_index page_header[E4_NO_SWAPPAGE_HEADERS]; argument
787 struct block_index *blockidx; in check_dsp_e4()
978 struct block_index *blockidx; in __uea_load_page_e4()