Lines Matching defs:ops
389 /* Returns a pointer to the MACsec ops struct if any and updates the MACsec
1849 const struct macsec_ops *ops;
1852 ops = macsec_get_ops(netdev_priv(dev), &ctx);
1853 if (!ops) {
1864 err = macsec_offload(ops->mdo_add_rxsa, &ctx);
1942 const struct macsec_ops *ops;
1945 ops = macsec_get_ops(netdev_priv(dev), &ctx);
1946 if (!ops) {
1954 ret = macsec_offload(ops->mdo_add_rxsc, &ctx);
2092 const struct macsec_ops *ops;
2095 ops = macsec_get_ops(netdev_priv(dev), &ctx);
2096 if (!ops) {
2107 err = macsec_offload(ops->mdo_add_txsa, &ctx);
2169 const struct macsec_ops *ops;
2172 ops = macsec_get_ops(netdev_priv(dev), &ctx);
2173 if (!ops) {
2182 ret = macsec_offload(ops->mdo_del_rxsa, &ctx);
2236 const struct macsec_ops *ops;
2239 ops = macsec_get_ops(netdev_priv(dev), &ctx);
2240 if (!ops) {
2247 ret = macsec_offload(ops->mdo_del_rxsc, &ctx);
2294 const struct macsec_ops *ops;
2297 ops = macsec_get_ops(netdev_priv(dev), &ctx);
2298 if (!ops) {
2307 ret = macsec_offload(ops->mdo_del_txsa, &ctx);
2406 const struct macsec_ops *ops;
2409 ops = macsec_get_ops(netdev_priv(dev), &ctx);
2410 if (!ops) {
2420 ret = macsec_offload(ops->mdo_upd_txsa, &ctx);
2500 const struct macsec_ops *ops;
2503 ops = macsec_get_ops(netdev_priv(dev), &ctx);
2504 if (!ops) {
2514 ret = macsec_offload(ops->mdo_upd_rxsa, &ctx);
2573 const struct macsec_ops *ops;
2576 ops = macsec_get_ops(netdev_priv(dev), &ctx);
2577 if (!ops) {
2585 ret = macsec_offload(ops->mdo_upd_rxsc, &ctx);
2624 const struct macsec_ops *ops;
2682 ops = __macsec_get_ops(offload == MACSEC_OFFLOAD_OFF ? prev_offload : offload,
2684 if (!ops) {
2690 func = ops->mdo_add_secy;
2692 func = ops->mdo_del_secy;
2718 const struct macsec_ops *ops;
2721 ops = macsec_get_ops(macsec, &ctx);
2722 if (ops) {
2727 macsec_offload(ops->mdo_get_tx_sa_stats, &ctx);
2762 const struct macsec_ops *ops;
2765 ops = macsec_get_ops(macsec, &ctx);
2766 if (ops) {
2772 macsec_offload(ops->mdo_get_rx_sa_stats, &ctx);
2815 const struct macsec_ops *ops;
2818 ops = macsec_get_ops(macsec, &ctx);
2819 if (ops) {
2823 macsec_offload(ops->mdo_get_rx_sc_stats, &ctx);
2897 const struct macsec_ops *ops;
2900 ops = macsec_get_ops(macsec, &ctx);
2901 if (ops) {
2904 macsec_offload(ops->mdo_get_tx_sc_stats, &ctx);
2953 const struct macsec_ops *ops;
2956 ops = macsec_get_ops(macsec, &ctx);
2957 if (ops) {
2960 macsec_offload(ops->mdo_get_dev_stats, &ctx);
3546 const struct macsec_ops *ops;
3549 ops = macsec_get_ops(netdev_priv(dev), &ctx);
3550 if (!ops) {
3556 err = macsec_offload(ops->mdo_dev_open, &ctx);
3583 const struct macsec_ops *ops;
3586 ops = macsec_get_ops(macsec, &ctx);
3587 if (ops) {
3589 macsec_offload(ops->mdo_dev_stop, &ctx);
3655 const struct macsec_ops *ops;
3658 ops = macsec_get_ops(macsec, &ctx);
3659 if (ops) {
3661 macsec_offload(ops->mdo_upd_secy, &ctx);
3864 const struct macsec_ops *ops;
3867 ops = macsec_get_ops(netdev_priv(dev), &ctx);
3868 if (!ops) {
3874 ret = macsec_offload(ops->mdo_upd_secy, &ctx);
3916 const struct macsec_ops *ops;
3919 ops = macsec_get_ops(netdev_priv(dev), &ctx);
3920 if (ops) {
3922 macsec_offload(ops->mdo_del_secy, &ctx);
4122 const struct macsec_ops *ops;
4125 ops = macsec_get_ops(macsec, &ctx);
4126 if (ops) {
4128 err = macsec_offload(ops->mdo_add_secy, &ctx);