Searched refs:assoc_num (Results 1 – 4 of 4) sorted by relevance
/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_macsec.c | 609 set_bit(ctx->sa.assoc_num, &aq_txsc->tx_sa_idx_busy); in aq_mdo_add_txsa() 611 memcpy(aq_txsc->tx_sa_key[ctx->sa.assoc_num], ctx->sa.key, in aq_mdo_add_txsa() 617 ctx->sa.assoc_num); in aq_mdo_add_txsa() 641 ctx->sa.tx_sa, NULL, ctx->sa.assoc_num); in aq_mdo_upd_txsa() 688 ret = aq_clear_txsa(nic, &cfg->aq_txsc[txsc_idx], ctx->sa.assoc_num, in aq_mdo_del_txsa() 957 set_bit(ctx->sa.assoc_num, &aq_rxsc->rx_sa_idx_busy); in aq_mdo_add_rxsa() 959 memcpy(aq_rxsc->rx_sa_key[ctx->sa.assoc_num], ctx->sa.key, in aq_mdo_add_rxsa() 965 ctx->sa.assoc_num); in aq_mdo_add_rxsa() 989 ctx->sa.assoc_num); in aq_mdo_upd_rxsa() 1037 ret = aq_clear_rxsa(nic, &cfg->aq_rxsc[rxsc_idx], ctx->sa.assoc_num, in aq_mdo_del_rxsa() [all …]
|
/drivers/net/ |
D | macsec.c | 144 u8 assoc_num; member 1128 macsec_skb_cb(skb)->assoc_num = hdr->tci_an & MACSEC_AN_MASK; in macsec_handle_frame() 1161 rx_sa = macsec_rxsa_get(rx_sc->sa[macsec_skb_cb(skb)->assoc_num]); in macsec_handle_frame() 1508 u8 *assoc_num) in get_txsa_from_nl() argument 1518 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_txsa_from_nl() 1524 if (*assoc_num >= MACSEC_NUM_AN) in get_txsa_from_nl() 1530 tx_sa = rtnl_dereference(tx_sc->sa[*assoc_num]); in get_txsa_from_nl() 1578 u8 *assoc_num) in get_rxsa_from_nl() argument 1586 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_rxsa_from_nl() 1587 if (*assoc_num >= MACSEC_NUM_AN) in get_rxsa_from_nl() [all …]
|
/drivers/net/phy/mscc/ |
D | mscc_macsec.c | 382 if (bank == MACSEC_INGR && flow->assoc_num >= 0) { in vsc8584_macsec_flow() 383 match |= MSCC_MS_SAM_MISC_MATCH_AN(flow->assoc_num); in vsc8584_macsec_flow() 455 if (pos->assoc_num == ctx->sa.assoc_num && pos->bank == bank) in vsc8584_macsec_find_flow() 621 flow->assoc_num = -1; in vsc8584_macsec_alloc_flow() 718 flow->assoc_num = ctx->sa.assoc_num; in __vsc8584_macsec_add_rxsa() 745 flow->assoc_num = ctx->sa.assoc_num; in __vsc8584_macsec_add_txsa()
|
D | mscc_macsec.h | 78 int assoc_num; member
|