Lines Matching defs:ops
372 /* Returns a pointer to the MACsec ops struct if any and updates the MACsec
1824 const struct macsec_ops *ops;
1827 ops = macsec_get_ops(netdev_priv(dev), &ctx);
1828 if (!ops) {
1839 err = macsec_offload(ops->mdo_add_rxsa, &ctx);
1911 const struct macsec_ops *ops;
1914 ops = macsec_get_ops(netdev_priv(dev), &ctx);
1915 if (!ops) {
1923 ret = macsec_offload(ops->mdo_add_rxsc, &ctx);
2067 const struct macsec_ops *ops;
2070 ops = macsec_get_ops(netdev_priv(dev), &ctx);
2071 if (!ops) {
2082 err = macsec_offload(ops->mdo_add_txsa, &ctx);
2138 const struct macsec_ops *ops;
2141 ops = macsec_get_ops(netdev_priv(dev), &ctx);
2142 if (!ops) {
2151 ret = macsec_offload(ops->mdo_del_rxsa, &ctx);
2205 const struct macsec_ops *ops;
2208 ops = macsec_get_ops(netdev_priv(dev), &ctx);
2209 if (!ops) {
2216 ret = macsec_offload(ops->mdo_del_rxsc, &ctx);
2263 const struct macsec_ops *ops;
2266 ops = macsec_get_ops(netdev_priv(dev), &ctx);
2267 if (!ops) {
2276 ret = macsec_offload(ops->mdo_del_txsa, &ctx);
2375 const struct macsec_ops *ops;
2378 ops = macsec_get_ops(netdev_priv(dev), &ctx);
2379 if (!ops) {
2389 ret = macsec_offload(ops->mdo_upd_txsa, &ctx);
2469 const struct macsec_ops *ops;
2472 ops = macsec_get_ops(netdev_priv(dev), &ctx);
2473 if (!ops) {
2483 ret = macsec_offload(ops->mdo_upd_rxsa, &ctx);
2542 const struct macsec_ops *ops;
2545 ops = macsec_get_ops(netdev_priv(dev), &ctx);
2546 if (!ops) {
2554 ret = macsec_offload(ops->mdo_upd_rxsc, &ctx);
2589 const struct macsec_ops *ops;
2613 ops = __macsec_get_ops(offload == MACSEC_OFFLOAD_OFF ? prev_offload : offload,
2615 if (!ops)
2621 ret = offload == MACSEC_OFFLOAD_OFF ? macsec_offload(ops->mdo_del_secy, &ctx)
2622 : macsec_offload(ops->mdo_add_secy, &ctx);
2681 const struct macsec_ops *ops;
2684 ops = macsec_get_ops(macsec, &ctx);
2685 if (ops) {
2690 macsec_offload(ops->mdo_get_tx_sa_stats, &ctx);
2725 const struct macsec_ops *ops;
2728 ops = macsec_get_ops(macsec, &ctx);
2729 if (ops) {
2735 macsec_offload(ops->mdo_get_rx_sa_stats, &ctx);
2778 const struct macsec_ops *ops;
2781 ops = macsec_get_ops(macsec, &ctx);
2782 if (ops) {
2786 macsec_offload(ops->mdo_get_rx_sc_stats, &ctx);
2860 const struct macsec_ops *ops;
2863 ops = macsec_get_ops(macsec, &ctx);
2864 if (ops) {
2867 macsec_offload(ops->mdo_get_tx_sc_stats, &ctx);
2916 const struct macsec_ops *ops;
2919 ops = macsec_get_ops(macsec, &ctx);
2920 if (ops) {
2923 macsec_offload(ops->mdo_get_dev_stats, &ctx);
3518 const struct macsec_ops *ops;
3521 ops = macsec_get_ops(netdev_priv(dev), &ctx);
3522 if (!ops) {
3528 err = macsec_offload(ops->mdo_dev_open, &ctx);
3555 const struct macsec_ops *ops;
3558 ops = macsec_get_ops(macsec, &ctx);
3559 if (ops) {
3561 macsec_offload(ops->mdo_dev_stop, &ctx);
3626 const struct macsec_ops *ops;
3629 ops = macsec_get_ops(macsec, &ctx);
3630 if (ops) {
3632 macsec_offload(ops->mdo_upd_secy, &ctx);
3851 const struct macsec_ops *ops;
3854 ops = macsec_get_ops(netdev_priv(dev), &ctx);
3855 if (!ops) {
3861 ret = macsec_offload(ops->mdo_upd_secy, &ctx);
3903 const struct macsec_ops *ops;
3906 ops = macsec_get_ops(netdev_priv(dev), &ctx);
3907 if (ops) {
3909 macsec_offload(ops->mdo_del_secy, &ctx);
4120 const struct macsec_ops *ops;
4123 ops = macsec_get_ops(macsec, &ctx);
4124 if (ops) {
4126 err = macsec_offload(ops->mdo_add_secy, &ctx);