Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_erp.c35 #define __MASK_IDX(i) (__MASK_LEN - (i) - 1) macro
1110 tmp = (unsigned char) enc_key[__MASK_IDX(start / 8)]; in mlxsw_sp_acl_erp_delta_value()
1112 tmp |= (unsigned char) enc_key[__MASK_IDX(start / 8 + 1)] << 8; in mlxsw_sp_acl_erp_delta_value()
1130 byte = (unsigned char *) &enc_key[__MASK_IDX(start / 8)]; in mlxsw_sp_acl_erp_delta_clear()
1133 byte = (unsigned char *) &enc_key[__MASK_IDX(start / 8 + 1)]; in mlxsw_sp_acl_erp_delta_clear()
1166 if (parent_key->mask[__MASK_IDX(i)] == key->mask[__MASK_IDX(i)]) in mlxsw_sp_acl_erp_delta_fill()
1181 pmask = (unsigned char) parent_key->mask[__MASK_IDX(si)]; in mlxsw_sp_acl_erp_delta_fill()
1182 mask = (unsigned char) key->mask[__MASK_IDX(si)]; in mlxsw_sp_acl_erp_delta_fill()
1184 pmask |= (unsigned char) parent_key->mask[__MASK_IDX(si + 1)] << 8; in mlxsw_sp_acl_erp_delta_fill()
1185 mask |= (unsigned char) key->mask[__MASK_IDX(si + 1)] << 8; in mlxsw_sp_acl_erp_delta_fill()