Home
last modified time | relevance | path

Searched refs:max_mask (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/mailbox/
Dbcm-pdc-mailbox.c69 #define XXD(x, max_mask) ((x) & (max_mask)) argument
70 #define TXD(x, max_mask) XXD((x), (max_mask)) argument
71 #define RXD(x, max_mask) XXD((x), (max_mask)) argument
72 #define NEXTTXD(i, max_mask) TXD((i) + 1, (max_mask)) argument
73 #define PREVTXD(i, max_mask) TXD((i) - 1, (max_mask)) argument
74 #define NEXTRXD(i, max_mask) RXD((i) + 1, (max_mask)) argument
75 #define PREVRXD(i, max_mask) RXD((i) - 1, (max_mask)) argument
76 #define NTXDACTIVE(h, t, max_mask) TXD((t) - (h), (max_mask)) argument
77 #define NRXDACTIVE(h, t, max_mask) RXD((t) - (h), (max_mask)) argument
/linux-6.1.9/samples/pktgen/
Dfunctions.sh274 local min_mask max_mask
284 max_mask="$(printf '0%.s' $(seq $prefix))$(printf '1%.s' $(seq $remain))"
/linux-6.1.9/net/sched/
Dcls_flower.c212 u16 min_mask, max_mask, min_val, max_val; in fl_range_port_dst_cmp() local
215 max_mask = ntohs(filter->mask->key.tp_range.tp_max.dst); in fl_range_port_dst_cmp()
219 if (min_mask && max_mask) { in fl_range_port_dst_cmp()
235 u16 min_mask, max_mask, min_val, max_val; in fl_range_port_src_cmp() local
238 max_mask = ntohs(filter->mask->key.tp_range.tp_max.src); in fl_range_port_src_cmp()
242 if (min_mask && max_mask) { in fl_range_port_src_cmp()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c175 u32 max_mask = GENMASK(match_len - 1, 0); in mlx5e_tc_match_to_reg_match() local
189 WARN_ON(mask > max_mask); in mlx5e_tc_match_to_reg_match()
192 max_mask <<= moffset; in mlx5e_tc_match_to_reg_match()
195 curr_mask &= ~max_mask; in mlx5e_tc_match_to_reg_match()
196 curr_val &= ~max_mask; in mlx5e_tc_match_to_reg_match()
222 u32 max_mask = GENMASK(match_len - 1, 0); in mlx5e_tc_match_to_reg_get_match() local
235 *mask = (curr_mask >> moffset) & max_mask; in mlx5e_tc_match_to_reg_get_match()
236 *val = (curr_val >> moffset) & max_mask; in mlx5e_tc_match_to_reg_get_match()