Home
last modified time | relevance | path

Searched refs:prestera_port (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_hw.h93 struct prestera_port;
111 int prestera_hw_port_info_get(const struct prestera_port *port,
113 int prestera_hw_port_state_set(const struct prestera_port *port,
115 int prestera_hw_port_mtu_set(const struct prestera_port *port, u32 mtu);
116 int prestera_hw_port_mtu_get(const struct prestera_port *port, u32 *mtu);
117 int prestera_hw_port_mac_set(const struct prestera_port *port, const char *mac);
118 int prestera_hw_port_mac_get(const struct prestera_port *port, char *mac);
119 int prestera_hw_port_cap_get(const struct prestera_port *port,
121 int prestera_hw_port_remote_cap_get(const struct prestera_port *port,
123 int prestera_hw_port_remote_fc_get(const struct prestera_port *port,
[all …]
Dprestera_main.c27 int prestera_port_pvid_set(struct prestera_port *port, u16 vid) in prestera_port_pvid_set()
50 struct prestera_port *prestera_port_find_by_hwid(struct prestera_switch *sw, in prestera_port_find_by_hwid()
53 struct prestera_port *port = NULL; in prestera_port_find_by_hwid()
65 struct prestera_port *prestera_find_port(struct prestera_switch *sw, u32 id) in prestera_find_port()
67 struct prestera_port *port = NULL; in prestera_find_port()
81 struct prestera_port *port = netdev_priv(dev); in prestera_port_open()
95 struct prestera_port *port = netdev_priv(dev); in prestera_port_close()
113 static int prestera_is_valid_mac_addr(struct prestera_port *port, u8 *addr) in prestera_is_valid_mac_addr()
129 struct prestera_port *port = netdev_priv(dev); in prestera_port_set_mac_address()
148 struct prestera_port *port = netdev_priv(dev); in prestera_port_change_mtu()
[all …]
Dprestera_devlink.h15 int prestera_devlink_port_register(struct prestera_port *port);
16 void prestera_devlink_port_unregister(struct prestera_port *port);
18 void prestera_devlink_port_set(struct prestera_port *port);
19 void prestera_devlink_port_clear(struct prestera_port *port);
Dprestera_hw.c480 int prestera_hw_port_info_get(const struct prestera_port *port, in prestera_hw_port_info_get()
556 int prestera_hw_port_state_set(const struct prestera_port *port, in prestera_hw_port_state_set()
572 int prestera_hw_port_mtu_set(const struct prestera_port *port, u32 mtu) in prestera_hw_port_mtu_set()
587 int prestera_hw_port_mac_set(const struct prestera_port *port, const char *mac) in prestera_hw_port_mac_set()
601 int prestera_hw_port_accept_frm_type(struct prestera_port *port, in prestera_hw_port_accept_frm_type()
617 int prestera_hw_port_cap_get(const struct prestera_port *port, in prestera_hw_port_cap_get()
641 int prestera_hw_port_remote_cap_get(const struct prestera_port *port, in prestera_hw_port_remote_cap_get()
662 int prestera_hw_port_remote_fc_get(const struct prestera_port *port, in prestera_hw_port_remote_fc_get()
699 int prestera_hw_port_type_get(const struct prestera_port *port, u8 *type) in prestera_hw_port_type_get()
719 int prestera_hw_port_fec_get(const struct prestera_port *port, u8 *fec) in prestera_hw_port_fec_get()
[all …]
Dprestera_switchdev.c65 struct prestera_port *port;
74 static int prestera_port_vid_stp_set(struct prestera_port *port, u16 vid,
139 prestera_port_vlan_by_vid(struct prestera_port *port, u16 vid) in prestera_port_vlan_by_vid()
152 prestera_port_vlan_create(struct prestera_port *port, u16 vid, bool untagged) in prestera_port_vlan_create()
187 struct prestera_port *port = port_vlan->port; in prestera_port_vlan_bridge_leave()
216 struct prestera_port *port = port_vlan->port; in prestera_port_vlan_destroy()
399 struct prestera_port *port = netdev_priv(br_port->dev); in prestera_bridge_1d_port_join()
425 static int prestera_port_bridge_join(struct prestera_port *port, in prestera_port_bridge_join()
464 struct prestera_port *port = netdev_priv(br_port->dev); in prestera_bridge_1q_port_leave()
472 struct prestera_port *port = netdev_priv(br_port->dev); in prestera_bridge_1d_port_leave()
[all …]
Dprestera_devlink.c69 int prestera_devlink_port_register(struct prestera_port *port) in prestera_devlink_port_register()
92 void prestera_devlink_port_unregister(struct prestera_port *port) in prestera_devlink_port_unregister()
97 void prestera_devlink_port_set(struct prestera_port *port) in prestera_devlink_port_set()
102 void prestera_devlink_port_clear(struct prestera_port *port) in prestera_devlink_port_clear()
109 struct prestera_port *port = netdev_priv(dev); in prestera_devlink_get_port()
Dprestera_rxtx.h10 struct prestera_port;
15 int prestera_rxtx_port_init(struct prestera_port *port);
17 netdev_tx_t prestera_rxtx_xmit(struct prestera_port *port, struct sk_buff *skb);
Dprestera.h63 struct prestera_port { struct
192 struct prestera_port *prestera_port_find_by_hwid(struct prestera_switch *sw,
195 int prestera_port_autoneg_set(struct prestera_port *port, bool enable,
198 struct prestera_port *prestera_find_port(struct prestera_switch *sw, u32 id);
200 struct prestera_port *prestera_port_dev_lower_find(struct net_device *dev);
202 int prestera_port_pvid_set(struct prestera_port *port, u16 vid);
Dprestera_ethtool.c300 struct prestera_port *port = netdev_priv(dev); in prestera_ethtool_get_drvinfo()
313 static u8 prestera_port_type_get(struct prestera_port *port) in prestera_port_type_get()
322 struct prestera_port *port) in prestera_port_type_set()
418 struct prestera_port *port) in prestera_port_supp_types_get()
435 struct prestera_port *port) in prestera_port_remote_cap_get()
470 struct prestera_port *port) in prestera_port_speed_get()
480 struct prestera_port *port) in prestera_port_duplex_get()
499 struct prestera_port *port = netdev_priv(dev); in prestera_ethtool_get_link_ksettings()
555 struct prestera_port *port) in prestera_port_mdix_set()
566 static int prestera_port_link_mode_set(struct prestera_port *port, in prestera_port_link_mode_set()
[all …]
Dprestera_rxtx.c217 const struct prestera_port *port; in prestera_rxtx_process_skb()
790 int prestera_rxtx_port_init(struct prestera_port *port) in prestera_rxtx_port_init()
803 netdev_tx_t prestera_rxtx_xmit(struct prestera_port *port, struct sk_buff *skb) in prestera_rxtx_xmit()