Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dcore_acl_flex_keys.c128 int block_index) in mlxsw_afk_picker_subtract_hits() argument
134 memcpy(&hits_element, &picker->hits[block_index].element, in mlxsw_afk_picker_subtract_hits()
163 int block_index, in mlxsw_afk_picker_key_info_add() argument
171 for_each_set_bit(element, picker->hits[block_index].element, in mlxsw_afk_picker_key_info_add()
178 &mlxsw_afk->blocks[block_index]; in mlxsw_afk_picker_key_info_add()
214 int block_index; in mlxsw_afk_picker() local
216 block_index = mlxsw_afk_picker_most_hits_get(mlxsw_afk, picker); in mlxsw_afk_picker()
217 if (block_index < 0) { in mlxsw_afk_picker()
218 err = block_index; in mlxsw_afk_picker()
222 block_index, key_info); in mlxsw_afk_picker()
[all …]
Dspectrum_acl_flex_keys.c101 static void mlxsw_sp1_afk_encode_block(char *block, 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()
266 static void mlxsw_sp2_afk_encode_block(char *block, int block_index, in mlxsw_sp2_afk_encode_block() argument
272 if (WARN_ON(block_index < 0 || in mlxsw_sp2_afk_encode_block()
273 block_index >= ARRAY_SIZE(mlxsw_sp2_afk_blocks_layout))) in mlxsw_sp2_afk_encode_block()
276 block_layout = &mlxsw_sp2_afk_blocks_layout[block_index]; in mlxsw_sp2_afk_encode_block()
Dcore_acl_flex_keys.h191 void (*encode_block)(char *block, int block_index, char *output);
209 int block_index);
/Linux-v4.19/net/sched/
Dsch_ingress.c66 static void ingress_ingress_block_set(struct Qdisc *sch, u32 block_index) in ingress_ingress_block_set() argument
70 q->block_info.block_index = block_index; in ingress_ingress_block_set()
77 return q->block_info.block_index; in ingress_ingress_block_get()
183 static void clsact_ingress_block_set(struct Qdisc *sch, u32 block_index) in clsact_ingress_block_set() argument
187 q->ingress_block_info.block_index = block_index; in clsact_ingress_block_set()
190 static void clsact_egress_block_set(struct Qdisc *sch, u32 block_index) in clsact_egress_block_set() argument
194 q->egress_block_info.block_index = block_index; in clsact_egress_block_set()
201 return q->ingress_block_info.block_index; in clsact_ingress_block_get()
208 return q->egress_block_info.block_index; in clsact_egress_block_get()
Dsch_api.c806 u32 block_index; in tc_fill_qdisc() local
824 block_index = q->ops->ingress_block_get(q); in tc_fill_qdisc()
825 if (block_index && in tc_fill_qdisc()
826 nla_put_u32(skb, TCA_INGRESS_BLOCK, block_index)) in tc_fill_qdisc()
830 block_index = q->ops->egress_block_get(q); in tc_fill_qdisc()
831 if (block_index && in tc_fill_qdisc()
832 nla_put_u32(skb, TCA_EGRESS_BLOCK, block_index)) in tc_fill_qdisc()
1025 u32 block_index; in qdisc_block_indexes_set() local
1028 block_index = nla_get_u32(tca[TCA_INGRESS_BLOCK]); in qdisc_block_indexes_set()
1030 if (!block_index) { in qdisc_block_indexes_set()
[all …]
Dcls_api.c500 u32 block_index, in tcf_block_create() argument
517 block->index = block_index; in tcf_block_create()
525 static struct tcf_block *tcf_block_lookup(struct net *net, u32 block_index) in tcf_block_lookup() argument
529 return idr_find(&tn->idr, block_index); in tcf_block_lookup()
538 int ifindex, u32 block_index, in tcf_block_find() argument
544 block = tcf_block_lookup(net, block_index); in tcf_block_find()
672 if (ei->block_index) { in tcf_block_get_ext()
674 block = tcf_block_lookup(net, ei->block_index); in tcf_block_get_ext()
680 block = tcf_block_create(net, q, ei->block_index, extack); in tcf_block_get_ext()
/Linux-v4.19/drivers/md/persistent-data/
Ddm-array.c353 unsigned block_index, uint32_t nr, in insert_new_ablock() argument
365 r = insert_ablock(info, block_index, block, root); in insert_new_ablock()
727 unsigned block_index, end_block, size_of_block, max_entries; in dm_array_new() local
737 for (block_index = 0; block_index != end_block; block_index++) { in dm_array_new()
743 block_index * max_entries, in dm_array_new()
750 r = insert_ablock(info, block_index, block, root); in dm_array_new()
/Linux-v4.19/drivers/net/ethernet/neterion/
Ds2io.h633 u32 block_index; member
639 u32 block_index; member
Ds2io.c719 ring->rx_curr_get_info.block_index = 0; in init_shared_mem()
722 ring->rx_curr_put_info.block_index = 0; in init_shared_mem()
2459 block_no1 = ring->rx_curr_get_info.block_index; in fill_rx_buffers()
2461 block_no = ring->rx_curr_put_info.block_index; in fill_rx_buffers()
2475 ring->rx_curr_put_info.block_index++; in fill_rx_buffers()
2476 if (ring->rx_curr_put_info.block_index == in fill_rx_buffers()
2478 ring->rx_curr_put_info.block_index = 0; in fill_rx_buffers()
2479 block_no = ring->rx_curr_put_info.block_index; in fill_rx_buffers()
2722 ring->rx_curr_put_info.block_index = 0; in free_rx_buffers()
2723 ring->rx_curr_get_info.block_index = 0; in free_rx_buffers()
[all …]
/Linux-v4.19/include/net/
Dsch_generic.h221 u32 block_index);
223 u32 block_index);
Dpkt_cls.h36 u32 block_index; member
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/
Dqed_int.c104 enum block_id block_index; member
772 if (p_aeu->block_index != MAX_BLOCK_ID) in qed_int_deassertion_aeu_bit()
773 qed_int_attn_print(p_hwfn, p_aeu->block_index, in qed_int_deassertion_aeu_bit()
803 u32 block_id = p_aeu->block_index, mask, val; in qed_int_deassertion_parity()
/Linux-v4.19/drivers/usb/atm/
Dueagle-atm.c375 struct block_index { struct
396 struct block_index page_header[E4_NO_SWAPPAGE_HEADERS]; argument
831 struct block_index *blockidx; in check_dsp_e4()
1022 struct block_index *blockidx; in __uea_load_page_e4()
/Linux-v4.19/drivers/staging/rtlwifi/halmac/halmac_88xx/
Dhalmac_func_88xx.c422 u8 block_index; in halmac_eeprom_parser_88xx() local
442 block_index = ((efuse_read_header2 & 0xF0) >> 1) | in halmac_eeprom_parser_88xx()
446 block_index = (efuse_read_header & 0xF0) >> 4; in halmac_eeprom_parser_88xx()
465 eeprom_index = (block_index << 3) + (j << 1); in halmac_eeprom_parser_88xx()