Lines Matching defs:ahw

290 	struct qlcnic_hardware_context *ahw = adapter->ahw;
293 u16 pcifn = ahw->pci_func;
297 if (adapter->ahw->port_type == QLCNIC_GBE) {
310 ecmd->base.speed = adapter->ahw->link_speed;
311 ecmd->base.duplex = adapter->ahw->link_duplex;
312 ecmd->base.autoneg = adapter->ahw->link_autoneg;
314 } else if (adapter->ahw->port_type == QLCNIC_XGBE) {
326 if (netif_running(adapter->netdev) && ahw->has_link_events) {
327 if (ahw->linkup) {
331 ahw->link_speed = speed * P3P_LINK_SPEED_MHZ;
334 ecmd->base.speed = ahw->link_speed;
335 ecmd->base.autoneg = ahw->link_autoneg;
336 ecmd->base.duplex = ahw->link_duplex;
347 ecmd->base.phy_address = adapter->ahw->physical_port;
349 switch (adapter->ahw->board_type) {
362 ecmd->base.autoneg = adapter->ahw->link_autoneg;
378 ahw->has_link_events;
387 if (adapter->ahw->port_type == QLCNIC_XGBE) {
394 ahw->has_link_events;
405 adapter->ahw->board_type);
410 switch (adapter->ahw->module_type) {
492 if (adapter->ahw->port_type != QLCNIC_GBE)
503 adapter->ahw->link_speed = ecmd->base.speed;
504 adapter->ahw->link_duplex = ecmd->base.duplex;
505 adapter->ahw->link_autoneg = ecmd->base.autoneg;
542 (adapter->ahw->revision_id << 16) | (adapter->pdev)->device;
547 if (adapter->ahw->capabilities & QLC_83XX_ESWITCH_CAPABILITY)
548 regs_buff[2] = adapter->ahw->max_vnic_func;
603 val = XG_LINK_STATE_P3P(adapter->ahw->pci_func, val);
792 int port = adapter->ahw->physical_port;
800 if (adapter->ahw->port_type == QLCNIC_GBE) {
826 } else if (adapter->ahw->port_type == QLCNIC_XGBE) {
839 adapter->ahw->port_type);
848 int port = adapter->ahw->physical_port;
856 if (adapter->ahw->port_type == QLCNIC_GBE) {
904 } else if (adapter->ahw->port_type == QLCNIC_XGBE) {
928 adapter->ahw->port_type);
978 struct qlcnic_hardware_context *ahw = adapter->ahw;
993 ahw->diag_cnt = 0;
998 cmd.req.arg[1] = ahw->pci_func;
1004 ret = !ahw->diag_cnt;
1058 adapter->ahw->diag_cnt = 0;
1067 } while (!adapter->ahw->diag_cnt);
1071 if (!adapter->ahw->diag_cnt)
1096 struct qlcnic_hardware_context *ahw = adapter->ahw;
1103 if (!(ahw->capabilities & QLCNIC_FW_CAPABILITY_MULTI_LOOPBACK)) {
1111 if (ahw->op_mode == QLCNIC_NON_PRIV_FUNC) {
1129 ahw->diag_cnt = 0;
1138 } else if (adapter->ahw->diag_cnt) {
1139 ret = adapter->ahw->diag_cnt;
1142 } while (!QLCNIC_IS_LB_CONFIGURED(ahw->loopback_state));
1372 if (adapter->ahw->linkup)
1386 ret = qlcnic_get_port_stats(adapter, adapter->ahw->pci_func,
1392 ret = qlcnic_get_port_stats(adapter, adapter->ahw->pci_func,
1410 if (adapter->ahw->op_mode == QLCNIC_NON_PRIV_FUNC) {
1565 ethcoal->rx_coalesce_usecs = adapter->ahw->coal.rx_time_us;
1566 ethcoal->rx_max_coalesced_frames = adapter->ahw->coal.rx_packets;
1567 ethcoal->tx_coalesce_usecs = adapter->ahw->coal.tx_time_us;
1568 ethcoal->tx_max_coalesced_frames = adapter->ahw->coal.tx_packets;
1577 return adapter->ahw->msg_enable;
1584 adapter->ahw->msg_enable = msglvl;
1589 struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
1596 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL);
1598 QLCWRX(adapter->ahw, QLC_83XX_IDC_CTRL, val);
1612 struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
1619 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL);
1621 QLCWRX(adapter->ahw, QLC_83XX_IDC_CTRL, val);
1635 struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
1640 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL);
1653 struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
1682 struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
1716 struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
1739 struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;