Home
last modified time | relevance | path

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

/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_cpplib.c159 u8 byte_mask; in nfp_cpp_explicit_read() local
176 byte_mask = nfp_bytemask(width_read, addr); in nfp_cpp_explicit_read()
179 incr / width_read - 1, byte_mask); in nfp_cpp_explicit_read()
212 u8 byte_mask; in nfp_cpp_explicit_write() local
229 byte_mask = nfp_bytemask(width_write, addr); in nfp_cpp_explicit_write()
232 incr / width_write - 1, byte_mask); in nfp_cpp_explicit_write()
Dnfp_arm.h166 byte_mask, token, signal_master) \ argument
170 NFP_ARM_GCSR_EXPL2_BAR_BYTE_MASK(byte_mask) | \
Dnfp_cpp.h302 u8 byte_mask; member
Dnfp_cppcore.c1348 expl->cmd.byte_mask = mask; in nfp_cpp_explicit_set_target()
Dnfp6000_pcie.c1173 NFP_PCIE_BAR_EXPLICIT_BAR2_ByteMask(cmd->byte_mask) | in nfp6000_explicit_do()
/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste_v0.c263 static void dr_ste_v0_set_byte_mask(u8 *hw_ste_p, u16 byte_mask) in dr_ste_v0_set_byte_mask() argument
265 MLX5_SET(ste_general, hw_ste_p, byte_mask, byte_mask); in dr_ste_v0_set_byte_mask()
270 return MLX5_GET(ste_general, hw_ste_p, byte_mask); in dr_ste_v0_get_byte_mask()
784 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v0_build_eth_l2_src_dst_init()
810 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v0_build_eth_l3_ipv6_dst_init()
836 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v0_build_eth_l3_ipv6_src_init()
873 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v0_build_eth_l3_ipv4_5_tuple_init()
1020 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v0_build_eth_l2_src_init()
1057 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v0_build_eth_l2_dst_init()
1142 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v0_build_eth_l2_tnl_init()
[all …]
Ddr_ste_v1.c281 static void dr_ste_v1_set_byte_mask(u8 *hw_ste_p, u16 byte_mask) in dr_ste_v1_set_byte_mask() argument
283 MLX5_SET(ste_match_bwc_v1, hw_ste_p, byte_mask, byte_mask); in dr_ste_v1_set_byte_mask()
288 return MLX5_GET(ste_match_bwc_v1, hw_ste_p, byte_mask); in dr_ste_v1_get_byte_mask()
983 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v1_build_eth_l2_src_dst_init()
1007 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v1_build_eth_l3_ipv6_dst_init()
1031 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v1_build_eth_l3_ipv6_src_init()
1066 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v1_build_eth_l3_ipv4_5_tuple_init()
1207 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v1_build_eth_l2_src_init()
1240 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v1_build_eth_l2_dst_init()
1320 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v1_build_eth_l2_tnl_init()
[all …]
Ddr_ste.c36 if (htbl->chunk->num_of_entries == 1 || htbl->byte_mask == 0) in mlx5dr_ste_calc_hash_index()
42 if (htbl->byte_mask & bit) in mlx5dr_ste_calc_hash_index()
56 u16 byte_mask = 0; in mlx5dr_ste_conv_bit_to_byte_mask() local
60 byte_mask = byte_mask << 1; in mlx5dr_ste_conv_bit_to_byte_mask()
62 byte_mask |= 1; in mlx5dr_ste_conv_bit_to_byte_mask()
64 return byte_mask; in mlx5dr_ste_conv_bit_to_byte_mask()
143 ste_ctx->set_byte_mask(hw_ste, next_htbl->byte_mask); in dr_ste_always_hit_htbl()
432 u16 byte_mask; in mlx5dr_ste_create_next_htbl() local
435 byte_mask = ste_ctx->get_byte_mask(cur_hw_ste); in mlx5dr_ste_create_next_htbl()
440 byte_mask); in mlx5dr_ste_create_next_htbl()
[all …]
Dmlx5_ifc_dr.h15 u8 byte_mask[0x10]; member
35 u8 byte_mask[0x10]; member
79 u8 byte_mask[0x10]; member
117 u8 byte_mask[0x10]; member
Ddr_rule.c398 cur_htbl->byte_mask); in dr_rule_rehash_htbl()
648 static u16 dr_get_bits_per_mask(u16 byte_mask) in dr_get_bits_per_mask() argument
652 while (byte_mask) { in dr_get_bits_per_mask()
653 byte_mask = byte_mask & (byte_mask - 1); in dr_get_bits_per_mask()
673 if (dr_get_bits_per_mask(htbl->byte_mask) * BITS_PER_BYTE <= htbl->chunk_size) in dr_rule_need_enlarge_hash()
Ddr_types.h178 u16 byte_mask; member
214 u16 byte_mask; member
224 u16 lu_type, u16 byte_mask);
1108 if (htbl->chunk_size == DR_CHUNK_SIZE_MAX - 1 || !htbl->byte_mask) in mlx5dr_ste_htbl_may_grow()
Ddr_ste.h155 void (*set_byte_mask)(u8 *hw_ste_p, u16 byte_mask);
Dmlx5_ifc_dr_ste_v1.h134 u8 byte_mask[0x10]; member
Ddr_matcher.c827 nic_matcher->ste_builder[0].byte_mask); in dr_matcher_init_nic()