Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_erp.c35 #define __MASK_IDX(i) (__MASK_LEN - (i) - 1) macro
1112 tmp = (unsigned char) enc_key[__MASK_IDX(start / 8)]; in mlxsw_sp_acl_erp_delta_value()
1114 tmp |= (unsigned char) enc_key[__MASK_IDX(start / 8 + 1)] << 8; in mlxsw_sp_acl_erp_delta_value()
1132 byte = (unsigned char *) &enc_key[__MASK_IDX(start / 8)]; in mlxsw_sp_acl_erp_delta_clear()
1135 byte = (unsigned char *) &enc_key[__MASK_IDX(start / 8 + 1)]; in mlxsw_sp_acl_erp_delta_clear()
1168 if (parent_key->mask[__MASK_IDX(i)] == key->mask[__MASK_IDX(i)]) in mlxsw_sp_acl_erp_delta_fill()
1183 pmask = (unsigned char) parent_key->mask[__MASK_IDX(si)]; in mlxsw_sp_acl_erp_delta_fill()
1184 mask = (unsigned char) key->mask[__MASK_IDX(si)]; in mlxsw_sp_acl_erp_delta_fill()
1186 pmask |= (unsigned char) parent_key->mask[__MASK_IDX(si + 1)] << 8; in mlxsw_sp_acl_erp_delta_fill()
1187 mask |= (unsigned char) key->mask[__MASK_IDX(si + 1)] << 8; in mlxsw_sp_acl_erp_delta_fill()