Lines Matching refs:oct

16 int octep_get_link_status(struct octep_device *oct)  in octep_get_link_status()  argument
29 err = octep_ctrl_mbox_send(&oct->ctrl_mbox, &msg); in octep_get_link_status()
37 void octep_set_link_status(struct octep_device *oct, bool up) in octep_set_link_status() argument
49 octep_ctrl_mbox_send(&oct->ctrl_mbox, &msg); in octep_set_link_status()
52 void octep_set_rx_state(struct octep_device *oct, bool up) in octep_set_rx_state() argument
64 octep_ctrl_mbox_send(&oct->ctrl_mbox, &msg); in octep_set_rx_state()
67 int octep_get_mac_addr(struct octep_device *oct, u8 *addr) in octep_get_mac_addr() argument
80 err = octep_ctrl_mbox_send(&oct->ctrl_mbox, &msg); in octep_get_mac_addr()
90 int octep_set_mac_addr(struct octep_device *oct, u8 *addr) in octep_set_mac_addr() argument
103 return octep_ctrl_mbox_send(&oct->ctrl_mbox, &msg); in octep_set_mac_addr()
106 int octep_set_mtu(struct octep_device *oct, int mtu) in octep_set_mtu() argument
119 return octep_ctrl_mbox_send(&oct->ctrl_mbox, &msg); in octep_set_mtu()
122 int octep_get_if_stats(struct octep_device *oct) in octep_get_if_stats() argument
132 req.get_stats.offset = oct->ctrl_mbox_ifstats_offset; in octep_get_if_stats()
137 err = octep_ctrl_mbox_send(&oct->ctrl_mbox, &msg); in octep_get_if_stats()
141 iface_rx_stats = oct->ctrl_mbox.barmem + oct->ctrl_mbox_ifstats_offset; in octep_get_if_stats()
142 iface_tx_stats = oct->ctrl_mbox.barmem + oct->ctrl_mbox_ifstats_offset + in octep_get_if_stats()
144 memcpy_fromio(&oct->iface_rx_stats, iface_rx_stats, sizeof(struct octep_iface_rx_stats)); in octep_get_if_stats()
145 memcpy_fromio(&oct->iface_tx_stats, iface_tx_stats, sizeof(struct octep_iface_tx_stats)); in octep_get_if_stats()
150 int octep_get_link_info(struct octep_device *oct) in octep_get_link_info() argument
163 err = octep_ctrl_mbox_send(&oct->ctrl_mbox, &msg); in octep_get_link_info()
168 oct->link_info.supported_modes = resp->link_info.supported_modes; in octep_get_link_info()
169 oct->link_info.advertised_modes = resp->link_info.advertised_modes; in octep_get_link_info()
170 oct->link_info.autoneg = resp->link_info.autoneg; in octep_get_link_info()
171 oct->link_info.pause = resp->link_info.pause; in octep_get_link_info()
172 oct->link_info.speed = resp->link_info.speed; in octep_get_link_info()
177 int octep_set_link_info(struct octep_device *oct, struct octep_iface_link_info *link_info) in octep_set_link_info() argument
193 return octep_ctrl_mbox_send(&oct->ctrl_mbox, &msg); in octep_set_link_info()