Lines Matching refs:cfg_idx

265 	int cfg_idx = bnx2x_get_link_cfg_idx(bp);  in bnx2x_get_link_ksettings()  local
273 supported = bp->port.supported[cfg_idx] | in bnx2x_get_link_ksettings()
274 (bp->port.supported[cfg_idx ^ 1] & in bnx2x_get_link_ksettings()
276 advertising = bp->port.advertising[cfg_idx]; in bnx2x_get_link_ksettings()
300 if (bp->link_params.req_line_speed[cfg_idx] == SPEED_AUTO_NEG) in bnx2x_get_link_ksettings()
372 u32 advertising, cfg_idx, old_multi_phy_config, new_multi_phy_config; in bnx2x_set_link_ksettings() local
432 cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_set_link_ksettings()
480 cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_set_link_ksettings()
483 DP(BNX2X_MSG_ETHTOOL, "cfg_idx = %x\n", cfg_idx); in bnx2x_set_link_ksettings()
486 u32 an_supported_speed = bp->port.supported[cfg_idx]; in bnx2x_set_link_ksettings()
491 if (!(bp->port.supported[cfg_idx] & SUPPORTED_Autoneg)) { in bnx2x_set_link_ksettings()
503 bp->link_params.req_line_speed[cfg_idx] = SPEED_AUTO_NEG; in bnx2x_set_link_ksettings()
504 bp->link_params.req_duplex[cfg_idx] = duplex; in bnx2x_set_link_ksettings()
505 bp->port.advertising[cfg_idx] = (ADVERTISED_Autoneg | in bnx2x_set_link_ksettings()
509 bp->link_params.speed_cap_mask[cfg_idx] = 0; in bnx2x_set_link_ksettings()
511 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_link_ksettings()
515 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_link_ksettings()
519 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_link_ksettings()
523 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_link_ksettings()
527 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_link_ksettings()
532 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_link_ksettings()
538 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_link_ksettings()
542 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_link_ksettings()
550 if (!(bp->port.supported[cfg_idx] & in bnx2x_set_link_ksettings()
560 if (!(bp->port.supported[cfg_idx] & in bnx2x_set_link_ksettings()
574 if (!(bp->port.supported[cfg_idx] & in bnx2x_set_link_ksettings()
584 if (!(bp->port.supported[cfg_idx] & in bnx2x_set_link_ksettings()
603 if (bp->port.supported[cfg_idx] & in bnx2x_set_link_ksettings()
608 } else if (bp->port.supported[cfg_idx] & in bnx2x_set_link_ksettings()
626 if (!(bp->port.supported[cfg_idx] in bnx2x_set_link_ksettings()
644 if ((bp->port.supported[cfg_idx] & in bnx2x_set_link_ksettings()
650 } else if (bp->port.supported[cfg_idx] & in bnx2x_set_link_ksettings()
667 bp->link_params.req_line_speed[cfg_idx] = speed; in bnx2x_set_link_ksettings()
668 bp->link_params.req_duplex[cfg_idx] = duplex; in bnx2x_set_link_ksettings()
669 bp->port.advertising[cfg_idx] = advertising; in bnx2x_set_link_ksettings()
674 bp->link_params.req_line_speed[cfg_idx], in bnx2x_set_link_ksettings()
675 bp->link_params.req_duplex[cfg_idx], in bnx2x_set_link_ksettings()
676 bp->port.advertising[cfg_idx]); in bnx2x_set_link_ksettings()
1982 int cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_get_pauseparam() local
1985 epause->autoneg = (bp->link_params.req_flow_ctrl[cfg_idx] == in bnx2x_get_pauseparam()
1989 cfg_reg = bp->link_params.req_flow_ctrl[cfg_idx]; in bnx2x_get_pauseparam()
2007 u32 cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_set_pauseparam() local
2015 bp->link_params.req_flow_ctrl[cfg_idx] = BNX2X_FLOW_CTRL_AUTO; in bnx2x_set_pauseparam()
2018 bp->link_params.req_flow_ctrl[cfg_idx] |= BNX2X_FLOW_CTRL_RX; in bnx2x_set_pauseparam()
2021 bp->link_params.req_flow_ctrl[cfg_idx] |= BNX2X_FLOW_CTRL_TX; in bnx2x_set_pauseparam()
2023 if (bp->link_params.req_flow_ctrl[cfg_idx] == BNX2X_FLOW_CTRL_AUTO) in bnx2x_set_pauseparam()
2024 bp->link_params.req_flow_ctrl[cfg_idx] = BNX2X_FLOW_CTRL_NONE; in bnx2x_set_pauseparam()
2027 if (!(bp->port.supported[cfg_idx] & SUPPORTED_Autoneg)) { in bnx2x_set_pauseparam()
2032 if (bp->link_params.req_line_speed[cfg_idx] == SPEED_AUTO_NEG) { in bnx2x_set_pauseparam()
2033 bp->link_params.req_flow_ctrl[cfg_idx] = in bnx2x_set_pauseparam()
2048 "req_flow_ctrl 0x%x\n", bp->link_params.req_flow_ctrl[cfg_idx]); in bnx2x_set_pauseparam()
2525 int cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_run_loopback() local
2526 if (bp->port.supported[cfg_idx] & in bnx2x_run_loopback()