Lines Matching refs:p_link

1226 				    struct qed_mcp_link_state *p_link)  in qed_mcp_read_eee_config()  argument
1230 p_link->eee_adv_caps = 0; in qed_mcp_read_eee_config()
1231 p_link->eee_lp_adv_caps = 0; in qed_mcp_read_eee_config()
1236 p_link->eee_active = !!(eee_status & EEE_ACTIVE_BIT); in qed_mcp_read_eee_config()
1239 p_link->eee_adv_caps |= QED_EEE_1G_ADV; in qed_mcp_read_eee_config()
1241 p_link->eee_adv_caps |= QED_EEE_10G_ADV; in qed_mcp_read_eee_config()
1244 p_link->eee_lp_adv_caps |= QED_EEE_1G_ADV; in qed_mcp_read_eee_config()
1246 p_link->eee_lp_adv_caps |= QED_EEE_10G_ADV; in qed_mcp_read_eee_config()
1298 struct qed_mcp_link_state *p_link; in qed_mcp_handle_link_change() local
1305 p_link = &p_hwfn->mcp_info->link_output; in qed_mcp_handle_link_change()
1306 memset(p_link, 0, sizeof(*p_link)); in qed_mcp_handle_link_change()
1332 p_link->link_up = !!(shmem_info.status & in qed_mcp_handle_link_change()
1336 "Virtual link_up = %d\n", p_link->link_up); in qed_mcp_handle_link_change()
1338 p_link->link_up = !!(status & LINK_STATUS_LINK_UP); in qed_mcp_handle_link_change()
1340 "Physical link_up = %d\n", p_link->link_up); in qed_mcp_handle_link_change()
1343 p_link->link_up = false; in qed_mcp_handle_link_change()
1346 p_link->full_duplex = true; in qed_mcp_handle_link_change()
1349 p_link->speed = 100000; in qed_mcp_handle_link_change()
1352 p_link->speed = 50000; in qed_mcp_handle_link_change()
1355 p_link->speed = 40000; in qed_mcp_handle_link_change()
1358 p_link->speed = 25000; in qed_mcp_handle_link_change()
1361 p_link->speed = 20000; in qed_mcp_handle_link_change()
1364 p_link->speed = 10000; in qed_mcp_handle_link_change()
1367 p_link->full_duplex = false; in qed_mcp_handle_link_change()
1370 p_link->speed = 1000; in qed_mcp_handle_link_change()
1373 p_link->speed = 0; in qed_mcp_handle_link_change()
1374 p_link->link_up = 0; in qed_mcp_handle_link_change()
1377 if (p_link->link_up && p_link->speed) in qed_mcp_handle_link_change()
1378 p_link->line_speed = p_link->speed; in qed_mcp_handle_link_change()
1380 p_link->line_speed = 0; in qed_mcp_handle_link_change()
1386 __qed_configure_pf_max_bandwidth(p_hwfn, p_ptt, p_link, max_bw); in qed_mcp_handle_link_change()
1389 __qed_configure_pf_min_bandwidth(p_hwfn, p_ptt, p_link, min_bw); in qed_mcp_handle_link_change()
1391 p_link->min_pf_rate); in qed_mcp_handle_link_change()
1393 p_link->an = !!(status & LINK_STATUS_AUTO_NEGOTIATE_ENABLED); in qed_mcp_handle_link_change()
1394 p_link->an_complete = !!(status & in qed_mcp_handle_link_change()
1396 p_link->parallel_detection = !!(status & in qed_mcp_handle_link_change()
1398 p_link->pfc_enabled = !!(status & LINK_STATUS_PFC_ENABLED); in qed_mcp_handle_link_change()
1400 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1403 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1406 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1409 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1412 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1415 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1418 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1421 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1425 p_link->partner_tx_flow_ctrl_en = in qed_mcp_handle_link_change()
1427 p_link->partner_rx_flow_ctrl_en = in qed_mcp_handle_link_change()
1432 p_link->partner_adv_pause = QED_LINK_PARTNER_SYMMETRIC_PAUSE; in qed_mcp_handle_link_change()
1435 p_link->partner_adv_pause = QED_LINK_PARTNER_ASYMMETRIC_PAUSE; in qed_mcp_handle_link_change()
1438 p_link->partner_adv_pause = QED_LINK_PARTNER_BOTH_PAUSE; in qed_mcp_handle_link_change()
1441 p_link->partner_adv_pause = 0; in qed_mcp_handle_link_change()
1444 p_link->sfp_tx_fault = !!(status & LINK_STATUS_SFP_TX_FAULT); in qed_mcp_handle_link_change()
1447 qed_mcp_read_eee_config(p_hwfn, p_ptt, p_link); in qed_mcp_handle_link_change()
1453 p_link->fec_active = QED_FEC_MODE_NONE; in qed_mcp_handle_link_change()
1456 p_link->fec_active = QED_FEC_MODE_FIRECODE; in qed_mcp_handle_link_change()
1459 p_link->fec_active = QED_FEC_MODE_RS; in qed_mcp_handle_link_change()
1462 p_link->fec_active = QED_FEC_MODE_AUTO; in qed_mcp_handle_link_change()
1465 p_link->fec_active = QED_FEC_MODE_UNSUPPORTED; in qed_mcp_handle_link_change()