Lines Matching refs:cfg_idx

259 	int cfg_idx = bnx2x_get_link_cfg_idx(bp);  in bnx2x_get_settings()  local
262 cmd->supported = bp->port.supported[cfg_idx] | in bnx2x_get_settings()
263 (bp->port.supported[cfg_idx ^ 1] & in bnx2x_get_settings()
265 cmd->advertising = bp->port.advertising[cfg_idx]; in bnx2x_get_settings()
290 if (bp->link_params.req_line_speed[cfg_idx] == SPEED_AUTO_NEG) in bnx2x_get_settings()
343 u32 advertising, cfg_idx, old_multi_phy_config, new_multi_phy_config; in bnx2x_set_settings() local
396 cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_set_settings()
444 cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_set_settings()
447 DP(BNX2X_MSG_ETHTOOL, "cfg_idx = %x\n", cfg_idx); in bnx2x_set_settings()
450 u32 an_supported_speed = bp->port.supported[cfg_idx]; in bnx2x_set_settings()
455 if (!(bp->port.supported[cfg_idx] & SUPPORTED_Autoneg)) { in bnx2x_set_settings()
467 bp->link_params.req_line_speed[cfg_idx] = SPEED_AUTO_NEG; in bnx2x_set_settings()
468 bp->link_params.req_duplex[cfg_idx] = cmd->duplex; in bnx2x_set_settings()
469 bp->port.advertising[cfg_idx] = (ADVERTISED_Autoneg | in bnx2x_set_settings()
473 bp->link_params.speed_cap_mask[cfg_idx] = 0; in bnx2x_set_settings()
475 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
479 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
483 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
487 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
491 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()
502 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
506 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
514 if (!(bp->port.supported[cfg_idx] & in bnx2x_set_settings()
524 if (!(bp->port.supported[cfg_idx] & in bnx2x_set_settings()
538 if (!(bp->port.supported[cfg_idx] & in bnx2x_set_settings()
548 if (!(bp->port.supported[cfg_idx] & in bnx2x_set_settings()
567 if (!(bp->port.supported[cfg_idx] & in bnx2x_set_settings()
585 if (!(bp->port.supported[cfg_idx] in bnx2x_set_settings()
603 if (!(bp->port.supported[cfg_idx] in bnx2x_set_settings()
621 bp->link_params.req_line_speed[cfg_idx] = speed; in bnx2x_set_settings()
622 bp->link_params.req_duplex[cfg_idx] = cmd->duplex; in bnx2x_set_settings()
623 bp->port.advertising[cfg_idx] = advertising; in bnx2x_set_settings()
628 bp->link_params.req_line_speed[cfg_idx], in bnx2x_set_settings()
629 bp->link_params.req_duplex[cfg_idx], in bnx2x_set_settings()
630 bp->port.advertising[cfg_idx]); in bnx2x_set_settings()
1877 int cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_get_pauseparam() local
1880 epause->autoneg = (bp->link_params.req_flow_ctrl[cfg_idx] == in bnx2x_get_pauseparam()
1884 cfg_reg = bp->link_params.req_flow_ctrl[cfg_idx]; in bnx2x_get_pauseparam()
1902 u32 cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_set_pauseparam() local
1910 bp->link_params.req_flow_ctrl[cfg_idx] = BNX2X_FLOW_CTRL_AUTO; in bnx2x_set_pauseparam()
1913 bp->link_params.req_flow_ctrl[cfg_idx] |= BNX2X_FLOW_CTRL_RX; in bnx2x_set_pauseparam()
1916 bp->link_params.req_flow_ctrl[cfg_idx] |= BNX2X_FLOW_CTRL_TX; in bnx2x_set_pauseparam()
1918 if (bp->link_params.req_flow_ctrl[cfg_idx] == BNX2X_FLOW_CTRL_AUTO) in bnx2x_set_pauseparam()
1919 bp->link_params.req_flow_ctrl[cfg_idx] = BNX2X_FLOW_CTRL_NONE; in bnx2x_set_pauseparam()
1922 if (!(bp->port.supported[cfg_idx] & SUPPORTED_Autoneg)) { in bnx2x_set_pauseparam()
1927 if (bp->link_params.req_line_speed[cfg_idx] == SPEED_AUTO_NEG) { in bnx2x_set_pauseparam()
1928 bp->link_params.req_flow_ctrl[cfg_idx] = in bnx2x_set_pauseparam()
1943 "req_flow_ctrl 0x%x\n", bp->link_params.req_flow_ctrl[cfg_idx]); in bnx2x_set_pauseparam()
2419 int cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_run_loopback() local
2420 if (bp->port.supported[cfg_idx] & in bnx2x_run_loopback()