rx_sc 65 drivers/net/macsec.c for (sc = rcu_dereference_bh(secy->rx_sc); \ rx_sc 69 drivers/net/macsec.c for (sc = rtnl_dereference(secy->rx_sc); \ rx_sc 250 drivers/net/macsec.c struct macsec_rx_sc __rcu *rx_sc; rx_sc 322 drivers/net/macsec.c struct macsec_rx_sc *rx_sc = container_of(head, struct macsec_rx_sc, rcu_head); rx_sc 324 drivers/net/macsec.c free_percpu(rx_sc->stats); rx_sc 325 drivers/net/macsec.c kfree(rx_sc); rx_sc 890 drivers/net/macsec.c struct macsec_rx_sc *rx_sc = rx_sa->sc; rx_sc 919 drivers/net/macsec.c macsec_rxsc_put(rx_sc); rx_sc 1011 drivers/net/macsec.c struct macsec_rx_sc *rx_sc; rx_sc 1013 drivers/net/macsec.c for_each_rxsc(secy, rx_sc) { rx_sc 1014 drivers/net/macsec.c if (rx_sc->sci == sci) rx_sc 1015 drivers/net/macsec.c return rx_sc; rx_sc 1023 drivers/net/macsec.c struct macsec_rx_sc *rx_sc; rx_sc 1025 drivers/net/macsec.c for_each_rxsc_rtnl(secy, rx_sc) { rx_sc 1026 drivers/net/macsec.c if (rx_sc->sci == sci) rx_sc 1027 drivers/net/macsec.c return rx_sc; rx_sc 1079 drivers/net/macsec.c struct macsec_rx_sc *rx_sc; rx_sc 1146 drivers/net/macsec.c rx_sc = sc; rx_sc 1157 drivers/net/macsec.c rxsc_stats = this_cpu_ptr(rx_sc->stats); rx_sc 1166 drivers/net/macsec.c rx_sa = macsec_rxsa_get(rx_sc->sa[macsec_skb_cb(skb)->assoc_num]); rx_sc 1219 drivers/net/macsec.c macsec_rxsc_put(rx_sc); rx_sc 1236 drivers/net/macsec.c macsec_rxsc_put(rx_sc); rx_sc 1253 drivers/net/macsec.c macsec_rxsc_put(rx_sc); rx_sc 1360 drivers/net/macsec.c static void free_rx_sc(struct macsec_rx_sc *rx_sc) rx_sc 1365 drivers/net/macsec.c struct macsec_rx_sa *sa = rtnl_dereference(rx_sc->sa[i]); rx_sc 1367 drivers/net/macsec.c RCU_INIT_POINTER(rx_sc->sa[i], NULL); rx_sc 1372 drivers/net/macsec.c macsec_rxsc_put(rx_sc); rx_sc 1377 drivers/net/macsec.c struct macsec_rx_sc *rx_sc, __rcu **rx_scp; rx_sc 1379 drivers/net/macsec.c for (rx_scp = &secy->rx_sc, rx_sc = rtnl_dereference(*rx_scp); rx_sc 1380 drivers/net/macsec.c rx_sc; rx_sc 1381 drivers/net/macsec.c rx_scp = &rx_sc->next, rx_sc = rtnl_dereference(*rx_scp)) { rx_sc 1382 drivers/net/macsec.c if (rx_sc->sci == sci) { rx_sc 1383 drivers/net/macsec.c if (rx_sc->active) rx_sc 1385 drivers/net/macsec.c rcu_assign_pointer(*rx_scp, rx_sc->next); rx_sc 1386 drivers/net/macsec.c return rx_sc; rx_sc 1395 drivers/net/macsec.c struct macsec_rx_sc *rx_sc; rx_sc 1406 drivers/net/macsec.c rx_sc = kzalloc(sizeof(*rx_sc), GFP_KERNEL); rx_sc 1407 drivers/net/macsec.c if (!rx_sc) rx_sc 1410 drivers/net/macsec.c rx_sc->stats = netdev_alloc_pcpu_stats(struct pcpu_rx_sc_stats); rx_sc 1411 drivers/net/macsec.c if (!rx_sc->stats) { rx_sc 1412 drivers/net/macsec.c kfree(rx_sc); rx_sc 1416 drivers/net/macsec.c rx_sc->sci = sci; rx_sc 1417 drivers/net/macsec.c rx_sc->active = true; rx_sc 1418 drivers/net/macsec.c refcount_set(&rx_sc->refcnt, 1); rx_sc 1421 drivers/net/macsec.c rcu_assign_pointer(rx_sc->next, secy->rx_sc); rx_sc 1422 drivers/net/macsec.c rcu_assign_pointer(secy->rx_sc, rx_sc); rx_sc 1424 drivers/net/macsec.c if (rx_sc->active) rx_sc 1427 drivers/net/macsec.c return rx_sc; rx_sc 1532 drivers/net/macsec.c struct macsec_rx_sc *rx_sc; rx_sc 1545 drivers/net/macsec.c rx_sc = find_rx_sc_rtnl(secy, sci); rx_sc 1546 drivers/net/macsec.c if (!rx_sc) rx_sc 1552 drivers/net/macsec.c return rx_sc; rx_sc 1564 drivers/net/macsec.c struct macsec_rx_sc *rx_sc; rx_sc 1574 drivers/net/macsec.c rx_sc = get_rxsc_from_nl(net, attrs, tb_rxsc, devp, secyp); rx_sc 1575 drivers/net/macsec.c if (IS_ERR(rx_sc)) rx_sc 1576 drivers/net/macsec.c return ERR_CAST(rx_sc); rx_sc 1578 drivers/net/macsec.c rx_sa = rtnl_dereference(rx_sc->sa[*assoc_num]); rx_sc 1582 drivers/net/macsec.c *scp = rx_sc; rx_sc 1658 drivers/net/macsec.c struct macsec_rx_sc *rx_sc; rx_sc 1678 drivers/net/macsec.c rx_sc = get_rxsc_from_nl(genl_info_net(info), attrs, tb_rxsc, &dev, &secy); rx_sc 1679 drivers/net/macsec.c if (IS_ERR(rx_sc)) { rx_sc 1681 drivers/net/macsec.c return PTR_ERR(rx_sc); rx_sc 1693 drivers/net/macsec.c rx_sa = rtnl_dereference(rx_sc->sa[assoc_num]); rx_sc 1723 drivers/net/macsec.c rx_sa->sc = rx_sc; rx_sc 1724 drivers/net/macsec.c rcu_assign_pointer(rx_sc->sa[assoc_num], rx_sa); rx_sc 1749 drivers/net/macsec.c struct macsec_rx_sc *rx_sc; rx_sc 1770 drivers/net/macsec.c rx_sc = create_rx_sc(dev, sci); rx_sc 1771 drivers/net/macsec.c if (IS_ERR(rx_sc)) { rx_sc 1773 drivers/net/macsec.c return PTR_ERR(rx_sc); rx_sc 1777 drivers/net/macsec.c rx_sc->active = !!nla_get_u8(tb_rxsc[MACSEC_RXSC_ATTR_ACTIVE]); rx_sc 1892 drivers/net/macsec.c struct macsec_rx_sc *rx_sc; rx_sc 1909 drivers/net/macsec.c &dev, &secy, &rx_sc, &assoc_num); rx_sc 1920 drivers/net/macsec.c RCU_INIT_POINTER(rx_sc->sa[assoc_num], NULL); rx_sc 1933 drivers/net/macsec.c struct macsec_rx_sc *rx_sc; rx_sc 1956 drivers/net/macsec.c rx_sc = del_rx_sc(secy, sci); rx_sc 1957 drivers/net/macsec.c if (!rx_sc) { rx_sc 1962 drivers/net/macsec.c free_rx_sc(rx_sc); rx_sc 2075 drivers/net/macsec.c struct macsec_rx_sc *rx_sc; rx_sc 2095 drivers/net/macsec.c &dev, &secy, &rx_sc, &assoc_num); rx_sc 2119 drivers/net/macsec.c struct macsec_rx_sc *rx_sc; rx_sc 2132 drivers/net/macsec.c rx_sc = get_rxsc_from_nl(genl_info_net(info), attrs, tb_rxsc, &dev, &secy); rx_sc 2133 drivers/net/macsec.c if (IS_ERR(rx_sc)) { rx_sc 2135 drivers/net/macsec.c return PTR_ERR(rx_sc); rx_sc 2141 drivers/net/macsec.c if (rx_sc->active != new) rx_sc 2144 drivers/net/macsec.c rx_sc->active = new; rx_sc 2413 drivers/net/macsec.c struct macsec_rx_sc *rx_sc; rx_sc 2499 drivers/net/macsec.c for_each_rxsc_rtnl(secy, rx_sc) { rx_sc 2509 drivers/net/macsec.c if (nla_put_u8(skb, MACSEC_RXSC_ATTR_ACTIVE, rx_sc->active) || rx_sc 2510 drivers/net/macsec.c nla_put_sci(skb, MACSEC_RXSC_ATTR_SCI, rx_sc->sci, rx_sc 2523 drivers/net/macsec.c if (copy_rx_sc_stats(skb, rx_sc->stats)) { rx_sc 2540 drivers/net/macsec.c struct macsec_rx_sa *rx_sa = rtnl_dereference(rx_sc->sa[i]); rx_sc 3104 drivers/net/macsec.c while (macsec->secy.rx_sc) { rx_sc 3105 drivers/net/macsec.c struct macsec_rx_sc *rx_sc = rtnl_dereference(macsec->secy.rx_sc); rx_sc 3107 drivers/net/macsec.c rcu_assign_pointer(macsec->secy.rx_sc, rx_sc->next); rx_sc 3108 drivers/net/macsec.c free_rx_sc(rx_sc);