drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
1137
struct macsec_rx_sa *rx_sa;
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
1160
rx_sa = rcu_dereference_bh(aq_rxsc->sw_rxsc->sa[ctx->sa.assoc_num]);
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
1163
spin_lock_bh(&rx_sa->lock);
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
1164
rx_sa->next_pn = next_pn;
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
1165
spin_unlock_bh(&rx_sa->lock);
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
1203
struct macsec_rx_sa *rx_sa;
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
1215
rx_sa = rcu_dereference_bh(aq_rxsc->sw_rxsc->sa[i]);
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
1216
if (rx_sa) {
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
1218
rx_sa, aq_rxsc->rx_sa_key[i], i);
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
860
const struct macsec_rx_sa *rx_sa,
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
864
const u32 next_pn = rx_sa->next_pn_halves.lower;
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
871
sa_record.valid = rx_sa->active;
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
910
const struct macsec_rx_sc *rx_sc = ctx->sa.rx_sa->sc;
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
928
ctx->sa.rx_sa, ctx->sa.key,
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
937
const struct macsec_rx_sc *rx_sc = ctx->sa.rx_sa->sc;
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
949
secy, ctx->sa.rx_sa, NULL,
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c
986
const struct macsec_rx_sc *rx_sc = ctx->sa.rx_sa->sc;
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
1241
size = sizeof(struct rx_sa) * IXGBE_IPSEC_MAX_SA_COUNT;
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
319
struct rx_sa *r = &ipsec->rx_tbl[i];
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
396
struct rx_sa *rsa;
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
598
struct rx_sa rsa;
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
770
struct rx_sa *rsa;
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
800
memset(rsa, 0, sizeof(struct rx_sa));
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
997
struct rx_sa *rsa;
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.h
70
struct rx_sa *rx_tbl;
drivers/net/ethernet/intel/ixgbevf/ipsec.c
112
struct rx_sa *r = &ipsec->rx_tbl[i];
drivers/net/ethernet/intel/ixgbevf/ipsec.c
183
struct rx_sa *rsa;
drivers/net/ethernet/intel/ixgbevf/ipsec.c
295
struct rx_sa rsa;
drivers/net/ethernet/intel/ixgbevf/ipsec.c
425
memset(&ipsec->rx_tbl[sa_idx], 0, sizeof(struct rx_sa));
drivers/net/ethernet/intel/ixgbevf/ipsec.c
636
size = sizeof(struct rx_sa) * IXGBE_IPSEC_MAX_SA_COUNT;
drivers/net/ethernet/intel/ixgbevf/ipsec.h
53
struct rx_sa *rx_tbl;
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
1469
struct macsec_rx_sc *sw_rx_sc = ctx->sa.rx_sa->sc;
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
1471
struct macsec_rx_sa *rx_sa = ctx->sa.rx_sa;
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
1473
bool sa_in_use = rx_sa->active;
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
1489
memcpy(&rxsc->salt[sa_num], rx_sa->key.salt.bytes, MACSEC_SALT_LEN);
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
1490
rxsc->ssci[sa_num] = rx_sa->ssci;
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
1501
rx_sa->next_pn);
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
1512
struct macsec_rx_sc *sw_rx_sc = ctx->sa.rx_sa->sc;
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
1514
struct macsec_rx_sa *rx_sa = ctx->sa.rx_sa;
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
1516
bool sa_in_use = rx_sa->active;
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
1537
rx_sa->next_pn);
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
1548
struct macsec_rx_sc *sw_rx_sc = ctx->sa.rx_sa->sc;
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
1693
struct macsec_rx_sc *sw_rx_sc = ctx->sa.rx_sa->sc;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1008
err = macsec_rx_sa_active_update(ctx, rx_sa, ctx_rx_sa->active,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1020
sci_t sci = ctx->sa.rx_sa->sc->sci;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1023
struct mlx5e_macsec_sa *rx_sa;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1043
ctx->sa.rx_sa->sc->sci);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1048
rx_sa = rx_sc->rx_sa[assoc_num];
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1049
if (!rx_sa) {
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1057
if (rx_sa->active)
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1058
mlx5e_macsec_cleanup_sa(macsec, rx_sa, false, ctx->secy->netdev,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1060
mlx5_destroy_encryption_key(macsec->mdev, rx_sa->enc_key_id);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1061
kfree(rx_sa);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1062
rx_sc->rx_sa[assoc_num] = NULL;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1128
struct mlx5e_macsec_sa *rx_sa;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1136
rx_sa = rx_sc->rx_sa[i];
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1137
if (!rx_sa || !rx_sa->macsec_rule)
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1140
mlx5e_macsec_cleanup_sa_fs(macsec, rx_sa, false, ctx->secy->netdev,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1147
rx_sa = rx_sc->rx_sa[i];
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1148
if (!rx_sa)
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1151
if (rx_sa->active) {
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1152
err = mlx5e_macsec_init_sa_fs(ctx, rx_sa, true, false,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
1469
macsec_sa = mlx5e_rx_sc->rx_sa[i];
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
422
struct mlx5e_macsec_sa *rx_sa,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
429
if (rx_sa->active == active)
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
432
rx_sa->active = active;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
434
mlx5e_macsec_cleanup_sa(macsec, rx_sa, false, ctx->secy->netdev, *fs_id);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
438
err = mlx5e_macsec_init_sa(ctx, rx_sa, true, false, fs_id);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
440
rx_sa->active = false;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
762
struct mlx5e_macsec_sa *rx_sa;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
790
rx_sa = rx_sc->rx_sa[i];
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
791
if (!rx_sa)
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
794
err = macsec_rx_sa_active_update(ctx, rx_sa, rx_sa->active && ctx_rx_sc->active,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
809
struct mlx5e_macsec_sa *rx_sa;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
813
rx_sa = rx_sc->rx_sa[i];
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
814
if (!rx_sa)
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
817
mlx5e_macsec_cleanup_sa(macsec, rx_sa, false, netdev,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
819
mlx5_destroy_encryption_key(macsec->mdev, rx_sa->enc_key_id);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
821
kfree(rx_sa);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
822
rx_sc->rx_sa[i] = NULL;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
83
struct mlx5e_macsec_sa *rx_sa[MACSEC_NUM_AN];
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
861
ctx->sa.rx_sa->sc->sci);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
876
const struct macsec_rx_sa *ctx_rx_sa = ctx->sa.rx_sa;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
882
struct mlx5e_macsec_sa *rx_sa;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
902
ctx->sa.rx_sa->sc->sci);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
907
if (rx_sc->rx_sa[assoc_num]) {
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
915
rx_sa = kzalloc_obj(*rx_sa);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
916
if (!rx_sa) {
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
921
rx_sa->active = ctx_rx_sa->active;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
922
rx_sa->next_pn = ctx_rx_sa->next_pn;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
923
rx_sa->sci = sci;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
924
rx_sa->assoc_num = assoc_num;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
927
update_macsec_epn(rx_sa, &ctx_rx_sa->key, &ctx_rx_sa->next_pn_halves,
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
932
&rx_sa->enc_key_id);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
936
rx_sc->rx_sa[assoc_num] = rx_sa;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
937
if (!rx_sa->active)
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
941
err = mlx5e_macsec_init_sa(ctx, rx_sa, true, false, &rx_sc->sc_xarray_element->fs_id);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
948
rx_sc->rx_sa[assoc_num] = NULL;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
949
mlx5_destroy_encryption_key(mdev, rx_sa->enc_key_id);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
951
kfree(rx_sa);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
961
const struct macsec_rx_sa *ctx_rx_sa = ctx->sa.rx_sa;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
966
struct mlx5e_macsec_sa *rx_sa;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
986
ctx->sa.rx_sa->sc->sci);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
991
rx_sa = rx_sc->rx_sa[assoc_num];
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c
992
if (!rx_sa) {
drivers/net/macsec.c
1132
struct macsec_rx_sa *rx_sa;
drivers/net/macsec.c
1219
rx_sa = macsec_rxsa_get(rx_sc->sa[macsec_skb_cb(skb)->assoc_num]);
drivers/net/macsec.c
1220
if (!rx_sa) {
drivers/net/macsec.c
1249
spin_lock(&rx_sa->lock);
drivers/net/macsec.c
1250
late = rx_sa->next_pn_halves.lower >= secy->replay_window &&
drivers/net/macsec.c
1251
hdr_pn < (rx_sa->next_pn_halves.lower - secy->replay_window);
drivers/net/macsec.c
1254
late = late && pn_same_half(rx_sa->next_pn_halves.lower, hdr_pn);
drivers/net/macsec.c
1255
spin_unlock(&rx_sa->lock);
drivers/net/macsec.c
1266
macsec_skb_cb(skb)->rx_sa = rx_sa;
drivers/net/macsec.c
1271
skb = macsec_decrypt(skb, dev, rx_sa, sci, secy);
drivers/net/macsec.c
1276
macsec_rxsa_put(rx_sa);
drivers/net/macsec.c
1293
if (rx_sa)
drivers/net/macsec.c
1294
macsec_rxsa_put(rx_sa);
drivers/net/macsec.c
1310
macsec_rxsa_put(rx_sa);
drivers/net/macsec.c
138
struct macsec_rx_sa *rx_sa;
drivers/net/macsec.c
1392
static int init_rx_sa(struct macsec_rx_sa *rx_sa, char *sak, int key_len,
drivers/net/macsec.c
1395
rx_sa->stats = alloc_percpu(struct macsec_rx_sa_stats);
drivers/net/macsec.c
1396
if (!rx_sa->stats)
drivers/net/macsec.c
1399
rx_sa->key.tfm = macsec_alloc_tfm(sak, key_len, icv_len);
drivers/net/macsec.c
1400
if (IS_ERR(rx_sa->key.tfm)) {
drivers/net/macsec.c
1401
free_percpu(rx_sa->stats);
drivers/net/macsec.c
1402
return PTR_ERR(rx_sa->key.tfm);
drivers/net/macsec.c
1405
rx_sa->ssci = MACSEC_UNDEF_SSCI;
drivers/net/macsec.c
1406
rx_sa->active = false;
drivers/net/macsec.c
1407
rx_sa->next_pn = 1;
drivers/net/macsec.c
1408
refcount_set(&rx_sa->refcnt, 1);
drivers/net/macsec.c
1409
spin_lock_init(&rx_sa->lock);
drivers/net/macsec.c
1414
static void clear_rx_sa(struct macsec_rx_sa *rx_sa)
drivers/net/macsec.c
1416
rx_sa->active = false;
drivers/net/macsec.c
1418
macsec_rxsa_put(rx_sa);
drivers/net/macsec.c
1640
struct macsec_rx_sa *rx_sa;
drivers/net/macsec.c
1651
rx_sa = rtnl_dereference(rx_sc->sa[*assoc_num]);
drivers/net/macsec.c
1652
if (!rx_sa)
drivers/net/macsec.c
1656
return rx_sa;
drivers/net/macsec.c
1743
struct macsec_rx_sa *rx_sa;
drivers/net/macsec.c
1794
rx_sa = rtnl_dereference(rx_sc->sa[assoc_num]);
drivers/net/macsec.c
1795
if (rx_sa) {
drivers/net/macsec.c
1800
rx_sa = kmalloc_obj(*rx_sa);
drivers/net/macsec.c
1801
if (!rx_sa) {
drivers/net/macsec.c
1806
err = init_rx_sa(rx_sa, nla_data(tb_sa[MACSEC_SA_ATTR_KEY]),
drivers/net/macsec.c
1809
kfree(rx_sa);
drivers/net/macsec.c
1815
spin_lock_bh(&rx_sa->lock);
drivers/net/macsec.c
1816
rx_sa->next_pn = nla_get_uint(tb_sa[MACSEC_SA_ATTR_PN]);
drivers/net/macsec.c
1817
spin_unlock_bh(&rx_sa->lock);
drivers/net/macsec.c
1821
rx_sa->active = !!nla_get_u8(tb_sa[MACSEC_SA_ATTR_ACTIVE]);
drivers/net/macsec.c
1823
rx_sa->sc = rx_sc;
drivers/net/macsec.c
1826
rx_sa->ssci = nla_get_ssci(tb_sa[MACSEC_SA_ATTR_SSCI]);
drivers/net/macsec.c
1827
nla_memcpy(rx_sa->key.salt.bytes, tb_sa[MACSEC_SA_ATTR_SALT],
drivers/net/macsec.c
1843
ctx.sa.rx_sa = rx_sa;
drivers/net/macsec.c
1854
nla_memcpy(rx_sa->key.id, tb_sa[MACSEC_SA_ATTR_KEYID], MACSEC_KEYID_LEN);
drivers/net/macsec.c
1855
rcu_assign_pointer(rx_sc->sa[assoc_num], rx_sa);
drivers/net/macsec.c
1862
macsec_rxsa_put(rx_sa);
drivers/net/macsec.c
2082
struct macsec_rx_sa *rx_sa;
drivers/net/macsec.c
2098
rx_sa = get_rxsa_from_nl(genl_info_net(info), attrs, tb_rxsc, tb_sa,
drivers/net/macsec.c
2100
if (IS_ERR(rx_sa)) {
drivers/net/macsec.c
2102
return PTR_ERR(rx_sa);
drivers/net/macsec.c
2105
if (rx_sa->active) {
drivers/net/macsec.c
2122
ctx.sa.rx_sa = rx_sa;
drivers/net/macsec.c
2131
clear_rx_sa(rx_sa);
drivers/net/macsec.c
2379
struct macsec_rx_sa *rx_sa;
drivers/net/macsec.c
2402
rx_sa = get_rxsa_from_nl(genl_info_net(info), attrs, tb_rxsc, tb_sa,
drivers/net/macsec.c
2404
if (IS_ERR(rx_sa)) {
drivers/net/macsec.c
2406
return PTR_ERR(rx_sa);
drivers/net/macsec.c
2420
spin_lock_bh(&rx_sa->lock);
drivers/net/macsec.c
2421
prev_pn = rx_sa->next_pn_halves;
drivers/net/macsec.c
2422
rx_sa->next_pn = nla_get_uint(tb_sa[MACSEC_SA_ATTR_PN]);
drivers/net/macsec.c
2423
spin_unlock_bh(&rx_sa->lock);
drivers/net/macsec.c
2426
was_active = rx_sa->active;
drivers/net/macsec.c
2428
rx_sa->active = nla_get_u8(tb_sa[MACSEC_SA_ATTR_ACTIVE]);
drivers/net/macsec.c
2442
ctx.sa.rx_sa = rx_sa;
drivers/net/macsec.c
2456
spin_lock_bh(&rx_sa->lock);
drivers/net/macsec.c
2457
rx_sa->next_pn_halves = prev_pn;
drivers/net/macsec.c
2458
spin_unlock_bh(&rx_sa->lock);
drivers/net/macsec.c
2460
rx_sa->active = was_active;
drivers/net/macsec.c
2727
struct macsec_rx_sa *rx_sa,
drivers/net/macsec.c
2741
ctx.sa.rx_sa = rx_sa;
drivers/net/macsec.c
2752
per_cpu_ptr(rx_sa->stats, cpu);
drivers/net/macsec.c
3203
struct macsec_rx_sa *rx_sa = rtnl_dereference(rx_sc->sa[i]);
drivers/net/macsec.c
3208
if (!rx_sa)
drivers/net/macsec.c
3228
get_rx_sa_stats(dev, rx_sc, i, rx_sa, &rx_sa_stats);
drivers/net/macsec.c
3239
pn = rx_sa->next_pn;
drivers/net/macsec.c
3242
pn = rx_sa->next_pn_halves.lower;
drivers/net/macsec.c
3248
nla_put(skb, MACSEC_SA_ATTR_KEYID, MACSEC_KEYID_LEN, rx_sa->key.id) ||
drivers/net/macsec.c
3249
(secy->xpn && nla_put_ssci(skb, MACSEC_SA_ATTR_SSCI, rx_sa->ssci)) ||
drivers/net/macsec.c
3250
nla_put_u8(skb, MACSEC_SA_ATTR_ACTIVE, rx_sa->active)) {
drivers/net/macsec.c
737
struct macsec_rx_sa *rx_sa = macsec_skb_cb(skb)->rx_sa;
drivers/net/macsec.c
738
struct pcpu_rx_sc_stats *rxsc_stats = this_cpu_ptr(rx_sa->sc->stats);
drivers/net/macsec.c
742
spin_lock(&rx_sa->lock);
drivers/net/macsec.c
743
if (rx_sa->next_pn_halves.lower >= secy->replay_window)
drivers/net/macsec.c
744
lowest_pn = rx_sa->next_pn_halves.lower - secy->replay_window;
drivers/net/macsec.c
751
spin_unlock(&rx_sa->lock);
drivers/net/macsec.c
770
spin_unlock(&rx_sa->lock);
drivers/net/macsec.c
778
this_cpu_inc(rx_sa->stats->InPktsNotValid);
drivers/net/macsec.c
786
this_cpu_inc(rx_sa->stats->InPktsInvalid);
drivers/net/macsec.c
799
this_cpu_inc(rx_sa->stats->InPktsOK);
drivers/net/macsec.c
804
if (pn + 1 > rx_sa->next_pn_halves.lower) {
drivers/net/macsec.c
805
rx_sa->next_pn_halves.lower = pn + 1;
drivers/net/macsec.c
807
!pn_same_half(pn, rx_sa->next_pn_halves.lower)) {
drivers/net/macsec.c
808
rx_sa->next_pn_halves.upper++;
drivers/net/macsec.c
809
rx_sa->next_pn_halves.lower = pn + 1;
drivers/net/macsec.c
812
spin_unlock(&rx_sa->lock);
drivers/net/macsec.c
847
struct macsec_rx_sa *rx_sa = macsec_skb_cb(skb)->rx_sa;
drivers/net/macsec.c
848
struct macsec_rx_sc *rx_sc = rx_sa->sc;
drivers/net/macsec.c
876
macsec_rxsa_put(rx_sa);
drivers/net/macsec.c
883
struct macsec_rx_sa *rx_sa,
drivers/net/macsec.c
906
req = macsec_alloc_req(rx_sa->key.tfm, &iv, &sg, ret);
drivers/net/macsec.c
916
pn_t recovered_pn = rx_sa->next_pn_halves;
drivers/net/macsec.c
919
if (hdr_pn < rx_sa->next_pn_halves.lower &&
drivers/net/macsec.c
920
!pn_same_half(hdr_pn, rx_sa->next_pn_halves.lower))
drivers/net/macsec.c
923
macsec_fill_iv_xpn(iv, rx_sa->ssci, recovered_pn.full64,
drivers/net/macsec.c
924
rx_sa->key.salt);
drivers/net/netdevsim/macsec.c
206
idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci);
drivers/net/netdevsim/macsec.c
209
__func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci));
drivers/net/netdevsim/macsec.c
214
__func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num);
drivers/net/netdevsim/macsec.c
233
idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci);
drivers/net/netdevsim/macsec.c
236
__func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci));
drivers/net/netdevsim/macsec.c
241
__func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num);
drivers/net/netdevsim/macsec.c
260
idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci);
drivers/net/netdevsim/macsec.c
263
__func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci));
drivers/net/netdevsim/macsec.c
268
__func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num);
drivers/net/phy/mscc/mscc_macsec.c
387
if (bank == MACSEC_INGR && flow->match.sci && flow->rx_sa->sc->sci) {
drivers/net/phy/mscc/mscc_macsec.c
388
u64 sci = (__force u64)flow->rx_sa->sc->sci;
drivers/net/phy/mscc/mscc_macsec.c
467
if ((flow->bank == MACSEC_INGR && flow->rx_sa && !flow->rx_sa->active) ||
drivers/net/phy/mscc/mscc_macsec.c
577
flow->rx_sa->next_pn : flow->tx_sa->next_pn);
drivers/net/phy/mscc/mscc_macsec.c
586
sci = (__force u64)(bank == MACSEC_INGR ? flow->rx_sa->sc->sci : priv->secy->sci);
drivers/net/phy/mscc/mscc_macsec.c
698
flow->rx_sa = ctx->sa.rx_sa;
drivers/net/phy/mscc/mscc_macsec.c
820
if (flow->bank == MACSEC_INGR && flow->rx_sa &&
drivers/net/phy/mscc/mscc_macsec.c
821
flow->rx_sa->sc->sci == ctx->rx_sc->sci)
drivers/net/phy/mscc/mscc_macsec.h
85
struct macsec_rx_sa *rx_sa;
drivers/net/phy/nxp-c45-tja11xx-macsec.c
1189
struct macsec_rx_sa *rx_sa = ctx->sa.rx_sa;
drivers/net/phy/nxp-c45-tja11xx-macsec.c
1197
an, rx_sa->active ? "enabled" : "disabled",
drivers/net/phy/nxp-c45-tja11xx-macsec.c
1198
sci_to_cpu(rx_sa->sc->sci));
drivers/net/phy/nxp-c45-tja11xx-macsec.c
1204
sa = nxp_c45_sa_alloc(&phy_secy->sa_list, rx_sa, RX_SA, an);
drivers/net/phy/nxp-c45-tja11xx-macsec.c
1209
nxp_c45_sa_set_pn(phydev, sa, rx_sa->next_pn,
drivers/net/phy/nxp-c45-tja11xx-macsec.c
1211
nxp_c45_sa_set_key(ctx, sa->regs, rx_sa->key.salt.bytes, rx_sa->ssci);
drivers/net/phy/nxp-c45-tja11xx-macsec.c
1212
nxp_c45_rx_sa_update(phydev, sa, rx_sa->active);
drivers/net/phy/nxp-c45-tja11xx-macsec.c
1219
struct macsec_rx_sa *rx_sa = ctx->sa.rx_sa;
drivers/net/phy/nxp-c45-tja11xx-macsec.c
1227
an, rx_sa->active ? "enabled" : "disabled",
drivers/net/phy/nxp-c45-tja11xx-macsec.c
1228
sci_to_cpu(rx_sa->sc->sci));
drivers/net/phy/nxp-c45-tja11xx-macsec.c
1240
nxp_c45_sa_set_pn(phydev, sa, rx_sa->next_pn,
drivers/net/phy/nxp-c45-tja11xx-macsec.c
1242
nxp_c45_rx_sa_update(phydev, sa, rx_sa->active);
drivers/net/phy/nxp-c45-tja11xx-macsec.c
1249
struct macsec_rx_sa *rx_sa = ctx->sa.rx_sa;
drivers/net/phy/nxp-c45-tja11xx-macsec.c
1257
an, rx_sa->active ? "enabled" : "disabled",
drivers/net/phy/nxp-c45-tja11xx-macsec.c
1258
sci_to_cpu(rx_sa->sc->sci));
include/net/macsec.h
282
struct macsec_rx_sa *rx_sa;