Home
last modified time | relevance | path

Searched refs:aq_fw_ops (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/
Daq_drvinfo.c42 if (!aq_nic->aq_fw_ops->get_phy_temp) in aq_hwmon_read()
45 err = aq_nic->aq_fw_ops->get_phy_temp(aq_nic->aq_hw, &temp); in aq_hwmon_read()
49 if (!aq_nic->aq_fw_ops->get_mac_temp && in aq_hwmon_read()
53 if (aq_nic->aq_fw_ops->get_mac_temp) in aq_hwmon_read()
54 err = aq_nic->aq_fw_ops->get_mac_temp(aq_nic->aq_hw, &temp); in aq_hwmon_read()
95 if (channel == 0 && !nic->aq_fw_ops->get_phy_temp) in aq_hwmon_is_visible()
97 else if (channel == 1 && !nic->aq_fw_ops->get_mac_temp && in aq_hwmon_is_visible()
Daq_ethtool.c385 if (!aq_nic->aq_fw_ops->led_control) in aq_ethtool_set_phys_id()
392 ret = aq_nic->aq_fw_ops->led_control(hw, AQ_HW_LED_BLINK | in aq_ethtool_set_phys_id()
396 ret = aq_nic->aq_fw_ops->led_control(hw, AQ_HW_LED_DEFAULT); in aq_ethtool_set_phys_id()
691 if (!aq_nic->aq_fw_ops->get_eee_rate) in aq_ethtool_get_eee()
695 err = aq_nic->aq_fw_ops->get_eee_rate(aq_nic->aq_hw, &rate, in aq_ethtool_get_eee()
726 if (unlikely(!aq_nic->aq_fw_ops->get_eee_rate || in aq_ethtool_set_eee()
727 !aq_nic->aq_fw_ops->set_eee_rate)) in aq_ethtool_set_eee()
731 err = aq_nic->aq_fw_ops->get_eee_rate(aq_nic->aq_hw, &rate, in aq_ethtool_set_eee()
746 err = aq_nic->aq_fw_ops->set_eee_rate(aq_nic->aq_hw, rate); in aq_ethtool_set_eee()
757 if (unlikely(!aq_nic->aq_fw_ops->renegotiate)) in aq_ethtool_nway_reset()
[all …]
Daq_nic.c158 int err = self->aq_fw_ops->update_link_status(self->aq_hw); in aq_nic_update_link_status()
164 if (self->aq_fw_ops->get_flow_control) in aq_nic_update_link_status()
165 self->aq_fw_ops->get_flow_control(self->aq_hw, &fc); in aq_nic_update_link_status()
248 if (self->aq_fw_ops->update_stats) in aq_nic_service_task()
249 self->aq_fw_ops->update_stats(self->aq_hw); in aq_nic_service_task()
287 err = self->aq_hw_ops->hw_prepare(self->aq_hw, &self->aq_fw_ops); in aq_nic_hw_prepare()
319 err = self->aq_fw_ops->get_mac_permanent(self->aq_hw, in aq_nic_ndev_register()
881 if (self->aq_fw_ops->update_stats) { in aq_nic_get_stats()
883 self->aq_fw_ops->update_stats(self->aq_hw); in aq_nic_get_stats()
1176 err = self->aq_fw_ops->set_link_speed(self->aq_hw, rate); in aq_nic_set_link_ksettings()
[all …]
Daq_hw.h179 const struct aq_fw_ops *aq_fw_ops; member
225 const struct aq_fw_ops **fw_ops);
343 struct aq_fw_ops { struct
Daq_nic.h135 const struct aq_fw_ops *aq_fw_ops; member
Daq_ptp.c1180 if (!aq_nic->aq_fw_ops->enable_ptp) { in aq_ptp_init()
1230 aq_nic->aq_fw_ops->enable_ptp(aq_nic->aq_hw, 1); in aq_ptp_init()
1274 aq_nic->aq_fw_ops->enable_ptp(aq_nic->aq_hw, 0); in aq_ptp_free()
Daq_macsec.c1481 if (!nic->aq_fw_ops->get_link_capabilities) in aq_macsec_init()
1484 caps_lo = nic->aq_fw_ops->get_link_capabilities(nic->aq_hw); in aq_macsec_init()
1520 if (nic->aq_fw_ops->send_macsec_req) { in aq_macsec_enable()
1531 ret = nic->aq_fw_ops->send_macsec_req(hw, &msg, &resp); in aq_macsec_enable()
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
Dhw_atl2_utils.c33 int hw_atl2_utils_initfw(struct aq_hw_s *self, const struct aq_fw_ops **fw_ops) in hw_atl2_utils_initfw()
47 self->aq_fw_ops = *fw_ops; in hw_atl2_utils_initfw()
48 err = self->aq_fw_ops->init(self); in hw_atl2_utils_initfw()
120 if (self->aq_fw_ops) { in hw_atl2_utils_soft_reset()
121 err = self->aq_fw_ops->init(self); in hw_atl2_utils_soft_reset()
Dhw_atl2.c91 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl2_hw_reset()
547 self->aq_fw_ops->set_link_speed(self, aq_nic_cfg->link_speed_msk); in hw_atl2_hw_init()
548 self->aq_fw_ops->set_state(self, MPI_INIT); in hw_atl2_hw_init()
558 self->aq_fw_ops->update_stats(self); in hw_atl2_hw_init()
Dhw_atl2_utils.h595 int hw_atl2_utils_initfw(struct aq_hw_s *self, const struct aq_fw_ops **fw_ops);
604 extern const struct aq_fw_ops aq_a2_fw_ops;
Dhw_atl2_utils_fw.c534 const struct aq_fw_ops aq_a2_fw_ops = {
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_utils.h581 struct aq_fw_ops;
585 int hw_atl_utils_initfw(struct aq_hw_s *self, const struct aq_fw_ops **fw_ops);
640 extern const struct aq_fw_ops aq_fw_1x_ops;
641 extern const struct aq_fw_ops aq_fw_2x_ops;
Dhw_atl_b0.c123 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_b0_hw_reset()
579 self->aq_fw_ops->set_link_speed(self, aq_nic_cfg->link_speed_msk); in hw_atl_b0_hw_init()
580 self->aq_fw_ops->set_state(self, MPI_INIT); in hw_atl_b0_hw_init()
599 self->aq_fw_ops->update_stats(self); in hw_atl_b0_hw_init()
1296 self->aq_fw_ops->adjust_ptp(self, self->ptp_clk_offset); in hw_atl_b0_adj_sys_clock()
1333 return self->aq_fw_ops->send_fw_request(self, &fwreq, size); in hw_atl_b0_adj_clock_freq()
1351 return self->aq_fw_ops->send_fw_request(self, &fwreq, size); in hw_atl_b0_gpio_pulse()
Dhw_atl_utils.c67 int hw_atl_utils_initfw(struct aq_hw_s *self, const struct aq_fw_ops **fw_ops) in hw_atl_utils_initfw()
89 self->aq_fw_ops = *fw_ops; in hw_atl_utils_initfw()
90 err = self->aq_fw_ops->init(self); in hw_atl_utils_initfw()
1060 const struct aq_fw_ops aq_fw_1x_ops = {
Dhw_atl_a0.c116 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_a0_hw_reset()
367 self->aq_fw_ops->set_link_speed(self, aq_nic_cfg->link_speed_msk); in hw_atl_a0_hw_init()
368 self->aq_fw_ops->set_state(self, MPI_INIT); in hw_atl_a0_hw_init()
379 self->aq_fw_ops->update_stats(self); in hw_atl_a0_hw_init()
Dhw_atl_utils_fw2x.c709 const struct aq_fw_ops aq_fw_2x_ops = {