Lines Matching +defs:dev +defs:attrs

123 static struct macsec_dev *macsec_priv(const struct net_device *dev)  in macsec_priv()
128 static struct macsec_rxh_data *macsec_data_rcu(const struct net_device *dev) in macsec_data_rcu()
133 static struct macsec_rxh_data *macsec_data_rtnl(const struct net_device *dev) in macsec_data_rtnl()
448 static sci_t dev_to_sci(struct net_device *dev, __be16 port) in dev_to_sci()
490 static void macsec_encrypt_finish(struct sk_buff *skb, struct net_device *dev) in macsec_encrypt_finish()
517 static void count_tx(struct net_device *dev, int ret, int len) in count_tx()
532 struct net_device *dev = skb->dev; in macsec_encrypt_done() local
582 struct net_device *dev) in macsec_encrypt()
801 static void macsec_reset_skb(struct sk_buff *skb, struct net_device *dev) in macsec_reset_skb()
820 static void count_rx(struct net_device *dev, int len) in count_rx()
833 struct net_device *dev = skb->dev; in macsec_decrypt_done() local
870 struct net_device *dev, in macsec_decrypt()
1073 struct net_device *dev = skb->dev; in macsec_handle_frame() local
1392 static struct macsec_rx_sc *create_rx_sc(struct net_device *dev, sci_t sci) in create_rx_sc()
1460 struct nlattr **attrs) in get_dev_from_nl()
1463 struct net_device *dev; in get_dev_from_nl() local
1502 struct nlattr **attrs, in get_txsa_from_nl()
1509 struct net_device *dev; in get_txsa_from_nl() local
1540 struct nlattr **attrs, in get_rxsc_from_nl()
1545 struct net_device *dev; in get_rxsc_from_nl() local
1571 struct nlattr **attrs, in get_rxsa_from_nl()
1664 static int parse_sa_config(struct nlattr **attrs, struct nlattr **tb_sa) in parse_sa_config()
1675 static int parse_rxsc_config(struct nlattr **attrs, struct nlattr **tb_rxsc) in parse_rxsc_config()
1686 static bool validate_add_rxsa(struct nlattr **attrs) in validate_add_rxsa()
1713 struct net_device *dev; in macsec_add_rxsa() local
1714 struct nlattr **attrs = info->attrs; in macsec_add_rxsa() local
1847 static bool validate_add_rxsc(struct nlattr **attrs) in validate_add_rxsc()
1862 struct net_device *dev; in macsec_add_rxsc() local
1864 struct nlattr **attrs = info->attrs; in macsec_add_rxsc() local
1928 static bool validate_add_txsa(struct nlattr **attrs) in validate_add_txsa()
1955 struct net_device *dev; in macsec_add_txsa() local
1956 struct nlattr **attrs = info->attrs; in macsec_add_txsa() local
2092 struct nlattr **attrs = info->attrs; in macsec_del_rxsa() local
2093 struct net_device *dev; in macsec_del_rxsa() local
2158 struct nlattr **attrs = info->attrs; in macsec_del_rxsc() local
2159 struct net_device *dev; in macsec_del_rxsc() local
2221 struct nlattr **attrs = info->attrs; in macsec_del_txsa() local
2222 struct net_device *dev; in macsec_del_txsa() local
2281 static bool validate_upd_sa(struct nlattr **attrs) in validate_upd_sa()
2306 struct nlattr **attrs = info->attrs; in macsec_upd_txsa() local
2307 struct net_device *dev; in macsec_upd_txsa() local
2399 struct nlattr **attrs = info->attrs; in macsec_upd_rxsa() local
2400 struct net_device *dev; in macsec_upd_rxsa() local
2490 struct nlattr **attrs = info->attrs; in macsec_upd_rxsc() local
2491 struct net_device *dev; in macsec_upd_rxsc() local
2577 struct nlattr **attrs = info->attrs; in macsec_upd_offload() local
2578 struct net_device *dev; in macsec_upd_offload() local
2661 static void get_tx_sa_stats(struct net_device *dev, int an, in get_tx_sa_stats()
2704 static void get_rx_sa_stats(struct net_device *dev, in get_rx_sa_stats()
2758 static void get_rx_sc_stats(struct net_device *dev, in get_rx_sc_stats()
2841 static void get_tx_sc_stats(struct net_device *dev, in get_tx_sc_stats()
2898 static void get_secy_stats(struct net_device *dev, struct macsec_dev_stats *sum) in get_secy_stats()
3021 dump_secy(struct macsec_secy *secy, struct net_device *dev, in dump_secy()
3258 struct net_device *dev; in macsec_dump_txsc() local
3371 struct net_device *dev) in macsec_start_xmit()
3425 #define REAL_DEV_FEATURES(dev) \ argument
3428 static int macsec_dev_init(struct net_device *dev) in macsec_dev_init()
3464 static void macsec_dev_uninit(struct net_device *dev) in macsec_dev_uninit()
3472 static netdev_features_t macsec_fix_features(struct net_device *dev, in macsec_fix_features()
3488 static int macsec_dev_open(struct net_device *dev) in macsec_dev_open()
3540 static int macsec_dev_stop(struct net_device *dev) in macsec_dev_stop()
3573 static void macsec_dev_change_rx_flags(struct net_device *dev, int change) in macsec_dev_change_rx_flags()
3588 static void macsec_dev_set_rx_mode(struct net_device *dev) in macsec_dev_set_rx_mode()
3596 static int macsec_set_mac_address(struct net_device *dev, void *p) in macsec_set_mac_address()
3634 static int macsec_change_mtu(struct net_device *dev, int new_mtu) in macsec_change_mtu()
3647 static void macsec_get_stats64(struct net_device *dev, in macsec_get_stats64()
3659 static int macsec_get_iflink(const struct net_device *dev) in macsec_get_iflink()
3699 static void macsec_free_netdev(struct net_device *dev) in macsec_free_netdev()
3708 static void macsec_setup(struct net_device *dev) in macsec_setup()
3722 static int macsec_changelink_common(struct net_device *dev, in macsec_changelink_common()
3791 static int macsec_changelink(struct net_device *dev, struct nlattr *tb[], in macsec_changelink()
3867 static void macsec_common_dellink(struct net_device *dev, struct list_head *head) in macsec_common_dellink()
3880 static void macsec_dellink(struct net_device *dev, struct list_head *head) in macsec_dellink()
3907 struct net_device *dev) in register_macsec_dev()
3933 static bool sci_exists(struct net_device *dev, sci_t sci) in sci_exists()
3946 static int macsec_add_dev(struct net_device *dev, sci_t sci, u8 icv_len) in macsec_add_dev()
3986 static int macsec_newlink(struct net *net, struct net_device *dev, in macsec_newlink()
4179 static struct net *macsec_get_link_net(const struct net_device *dev) in macsec_get_link_net()
4184 static size_t macsec_get_size(const struct net_device *dev) in macsec_get_size()
4202 const struct net_device *dev) in macsec_fill_info()
4261 static bool is_macsec_master(struct net_device *dev) in is_macsec_master()
4284 struct net_device *dev = m->secy.netdev; in macsec_notify() local
4311 struct net_device *dev = m->secy.netdev; in macsec_notify() local