Lines Matching refs:cfg_idx

261 	int cfg_idx = bnx2x_get_link_cfg_idx(bp);  in bnx2x_get_settings()  local
265 cmd->supported = bp->port.supported[cfg_idx] | in bnx2x_get_settings()
266 (bp->port.supported[cfg_idx ^ 1] & in bnx2x_get_settings()
268 cmd->advertising = bp->port.advertising[cfg_idx]; in bnx2x_get_settings()
293 if (bp->link_params.req_line_speed[cfg_idx] == SPEED_AUTO_NEG) in bnx2x_get_settings()
360 u32 advertising, cfg_idx, old_multi_phy_config, new_multi_phy_config; in bnx2x_set_settings() local
413 cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_set_settings()
461 cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_set_settings()
464 DP(BNX2X_MSG_ETHTOOL, "cfg_idx = %x\n", cfg_idx); in bnx2x_set_settings()
467 u32 an_supported_speed = bp->port.supported[cfg_idx]; in bnx2x_set_settings()
472 if (!(bp->port.supported[cfg_idx] & SUPPORTED_Autoneg)) { in bnx2x_set_settings()
484 bp->link_params.req_line_speed[cfg_idx] = SPEED_AUTO_NEG; in bnx2x_set_settings()
485 bp->link_params.req_duplex[cfg_idx] = cmd->duplex; in bnx2x_set_settings()
486 bp->port.advertising[cfg_idx] = (ADVERTISED_Autoneg | in bnx2x_set_settings()
490 bp->link_params.speed_cap_mask[cfg_idx] = 0; in bnx2x_set_settings()
492 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
496 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
500 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
504 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
508 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
513 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
519 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
523 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
531 if (!(bp->port.supported[cfg_idx] & in bnx2x_set_settings()
541 if (!(bp->port.supported[cfg_idx] & in bnx2x_set_settings()
555 if (!(bp->port.supported[cfg_idx] & in bnx2x_set_settings()
565 if (!(bp->port.supported[cfg_idx] & in bnx2x_set_settings()
584 if (bp->port.supported[cfg_idx] & in bnx2x_set_settings()
589 } else if (bp->port.supported[cfg_idx] & in bnx2x_set_settings()
607 if (!(bp->port.supported[cfg_idx] in bnx2x_set_settings()
625 if ((bp->port.supported[cfg_idx] & in bnx2x_set_settings()
631 } else if (bp->port.supported[cfg_idx] & in bnx2x_set_settings()
648 bp->link_params.req_line_speed[cfg_idx] = speed; in bnx2x_set_settings()
649 bp->link_params.req_duplex[cfg_idx] = cmd->duplex; in bnx2x_set_settings()
650 bp->port.advertising[cfg_idx] = advertising; in bnx2x_set_settings()
655 bp->link_params.req_line_speed[cfg_idx], in bnx2x_set_settings()
656 bp->link_params.req_duplex[cfg_idx], in bnx2x_set_settings()
657 bp->port.advertising[cfg_idx]); in bnx2x_set_settings()
1921 int cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_get_pauseparam() local
1924 epause->autoneg = (bp->link_params.req_flow_ctrl[cfg_idx] == in bnx2x_get_pauseparam()
1928 cfg_reg = bp->link_params.req_flow_ctrl[cfg_idx]; in bnx2x_get_pauseparam()
1946 u32 cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_set_pauseparam() local
1954 bp->link_params.req_flow_ctrl[cfg_idx] = BNX2X_FLOW_CTRL_AUTO; in bnx2x_set_pauseparam()
1957 bp->link_params.req_flow_ctrl[cfg_idx] |= BNX2X_FLOW_CTRL_RX; in bnx2x_set_pauseparam()
1960 bp->link_params.req_flow_ctrl[cfg_idx] |= BNX2X_FLOW_CTRL_TX; in bnx2x_set_pauseparam()
1962 if (bp->link_params.req_flow_ctrl[cfg_idx] == BNX2X_FLOW_CTRL_AUTO) in bnx2x_set_pauseparam()
1963 bp->link_params.req_flow_ctrl[cfg_idx] = BNX2X_FLOW_CTRL_NONE; in bnx2x_set_pauseparam()
1966 if (!(bp->port.supported[cfg_idx] & SUPPORTED_Autoneg)) { in bnx2x_set_pauseparam()
1971 if (bp->link_params.req_line_speed[cfg_idx] == SPEED_AUTO_NEG) { in bnx2x_set_pauseparam()
1972 bp->link_params.req_flow_ctrl[cfg_idx] = in bnx2x_set_pauseparam()
1987 "req_flow_ctrl 0x%x\n", bp->link_params.req_flow_ctrl[cfg_idx]); in bnx2x_set_pauseparam()
2464 int cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_run_loopback() local
2465 if (bp->port.supported[cfg_idx] & in bnx2x_run_loopback()