Home
last modified time | relevance | path

Searched refs:link_params (Results 1 – 21 of 21) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.h127 struct link_params;
130 typedef void (*config_init_t)(struct bnx2x_phy *phy, struct link_params *params,
132 typedef u8 (*read_status_t)(struct bnx2x_phy *phy, struct link_params *params,
135 struct link_params *params);
137 struct link_params *params);
139 typedef void (*hw_reset_t)(struct bnx2x_phy *phy, struct link_params *params);
141 struct link_params *params, u8 mode);
143 struct link_params *params, u32 action);
237 struct link_params { struct
378 int bnx2x_phy_init(struct link_params *params, struct link_vars *vars);
[all …]
Dbnx2x_ethtool.c196 switch (bp->link_params.phy[phy_idx].media_type) { in bnx2x_get_port_type()
277 media_type = bp->link_params.phy[bnx2x_get_cur_phy_idx(bp)].media_type; in bnx2x_get_link_ksettings()
300 if (bp->link_params.req_line_speed[cfg_idx] == SPEED_AUTO_NEG) in bnx2x_get_link_ksettings()
433 old_multi_phy_config = bp->link_params.multi_phy_config; in bnx2x_set_link_ksettings()
443 bp->link_params.multi_phy_config &= in bnx2x_set_link_ksettings()
445 if (bp->link_params.multi_phy_config & in bnx2x_set_link_ksettings()
447 bp->link_params.multi_phy_config |= in bnx2x_set_link_ksettings()
450 bp->link_params.multi_phy_config |= in bnx2x_set_link_ksettings()
462 bp->link_params.multi_phy_config &= in bnx2x_set_link_ksettings()
464 if (bp->link_params.multi_phy_config & in bnx2x_set_link_ksettings()
[all …]
Dbnx2x_link.c33 struct link_params *params,
215 static int bnx2x_check_half_open_conn(struct link_params *params,
218 struct link_params *params);
246 static int bnx2x_check_lfa(struct link_params *params) in bnx2x_check_lfa()
440 static void bnx2x_ets_e2e3a0_disabled(struct link_params *params) in bnx2x_ets_e2e3a0_disabled()
531 const struct link_params *params, in bnx2x_ets_e3b0_set_credit_upper_bound_nig()
569 static void bnx2x_ets_e3b0_nig_disabled(const struct link_params *params, in bnx2x_ets_e3b0_nig_disabled()
653 const struct link_params *params, in bnx2x_ets_e3b0_set_credit_upper_bound_pbf()
686 static void bnx2x_ets_e3b0_pbf_disabled(const struct link_params *params) in bnx2x_ets_e3b0_pbf_disabled()
744 static int bnx2x_ets_e3b0_disabled(const struct link_params *params, in bnx2x_ets_e3b0_disabled()
[all …]
Dbnx2x_main.c2333 bp->link_params.req_fc_auto_adv = BNX2X_FLOW_CTRL_TX; in bnx2x_set_requested_fc()
2335 bp->link_params.req_fc_auto_adv = BNX2X_FLOW_CTRL_BOTH; in bnx2x_set_requested_fc()
2358 u16 req_line_speed = bp->link_params.req_line_speed[cfx_idx]; in bnx2x_initial_phy_init()
2365 struct link_params *lp = &bp->link_params; in bnx2x_initial_phy_init()
2384 struct link_params *lp = &bp->link_params; in bnx2x_initial_phy_init()
2388 rc = bnx2x_phy_init(&bp->link_params, &bp->link_vars); in bnx2x_initial_phy_init()
2401 bp->link_params.req_line_speed[cfx_idx] = req_line_speed; in bnx2x_initial_phy_init()
2412 bnx2x_phy_init(&bp->link_params, &bp->link_vars); in bnx2x_link_set()
2426 bnx2x_lfa_reset(&bp->link_params, &bp->link_vars); in bnx2x__link_reset()
2435 bnx2x_link_reset(&bp->link_params, &bp->link_vars, 1); in bnx2x_force_link_reset()
[all …]
Dbnx2x_dcb.c111 bp->link_params.feature_config_flags |= FEATURE_CONFIG_PFC_ENABLED; in bnx2x_pfc_set()
112 bnx2x_update_pfc(&bp->link_params, &bp->link_vars, &pfc_params); in bnx2x_pfc_set()
121 bp->link_params.feature_config_flags &= ~FEATURE_CONFIG_PFC_ENABLED; in bnx2x_pfc_clear()
122 bnx2x_update_pfc(&bp->link_params, &bp->link_vars, &nig_params); in bnx2x_pfc_clear()
552 bnx2x_ets_bw_limit(&bp->link_params, bw_tbl_0, bw_tbl_1); in bnx2x_dcbx_2cos_limit_update_ets_config()
555 rc = bnx2x_ets_strict(&bp->link_params, 0); in bnx2x_dcbx_2cos_limit_update_ets_config()
558 rc = bnx2x_ets_strict(&bp->link_params, 1); in bnx2x_dcbx_2cos_limit_update_ets_config()
598 if (bnx2x_ets_e3b0_config(&bp->link_params, &bp->link_vars, in bnx2x_dcbx_update_ets_config()
601 bnx2x_ets_disabled(&bp->link_params, &bp->link_vars); in bnx2x_dcbx_update_ets_config()
611 bnx2x_ets_disabled(&bp->link_params, &bp->link_vars); in bnx2x_dcbx_update_ets_params()
Dbnx2x_cmn.c149 bnx2x_get_ext_phy_fw_version(&bp->link_params, in bnx2x_fill_fw_str()
2841 bp->link_params.feature_config_flags &= ~FEATURE_CONFIG_BOOT_FROM_SAN; in bnx2x_nic_load()
4802 if (bp->link_params.num_phys <= 1) in bnx2x_get_cur_phy_idx()
4809 (bp->link_params.phy[EXT_PHY2].supported & SUPPORTED_FIBRE)) in bnx2x_get_cur_phy_idx()
4813 switch (bnx2x_phy_selection(&bp->link_params)) { in bnx2x_get_cur_phy_idx()
4837 if (bp->link_params.multi_phy_config & in bnx2x_get_link_cfg_idx()
4945 if (bp->link_params.loopback_mode != LOOPBACK_BMAC) { in bnx2x_set_features()
4946 bp->link_params.loopback_mode = LOOPBACK_BMAC; in bnx2x_set_features()
4950 if (bp->link_params.loopback_mode != LOOPBACK_NONE) { in bnx2x_set_features()
4951 bp->link_params.loopback_mode = LOOPBACK_NONE; in bnx2x_set_features()
Dbnx2x.h1533 struct link_params link_params; member
Dbnx2x_vfpf.c369 bp->link_params.chip_id = bp->common.chip_id; in bnx2x_vfpf_acquire()
/linux-6.1.9/drivers/gpu/drm/msm/dp/
Ddp_ctrl.c144 config |= ((ctrl->link->link_params.num_lanes - 1) in dp_ctrl_config_ctrl()
949 in.lclk = ctrl->link->link_params.rate / 1000; in dp_ctrl_calc_tu_parameters()
953 in.nlanes = ctrl->link->link_params.num_lanes; in dp_ctrl_calc_tu_parameters()
1038 lane_cnt = ctrl->link->link_params.num_lanes; in dp_ctrl_update_vx_px()
1115 ctrl->link->link_params.num_lanes)) { in dp_ctrl_link_train_1()
1144 switch (ctrl->link->link_params.rate) { in dp_ctrl_link_rate_down_shift()
1146 ctrl->link->link_params.rate = 540000; in dp_ctrl_link_rate_down_shift()
1149 ctrl->link->link_params.rate = 270000; in dp_ctrl_link_rate_down_shift()
1152 ctrl->link->link_params.rate = 162000; in dp_ctrl_link_rate_down_shift()
1162 ctrl->link->link_params.rate); in dp_ctrl_link_rate_down_shift()
[all …]
Ddp_link.c788 link->dp_link.link_params.num_lanes = link->request.test_lane_count; in dp_link_process_link_training_request()
789 link->dp_link.link_params.rate = in dp_link_process_link_training_request()
920 link->dp_link.link_params.rate, in dp_link_process_phy_test_pattern_request()
921 link->dp_link.link_params.num_lanes); in dp_link_process_phy_test_pattern_request()
928 link->dp_link.link_params.num_lanes = link->request.test_lane_count; in dp_link_process_phy_test_pattern_request()
929 link->dp_link.link_params.rate = in dp_link_process_phy_test_pattern_request()
956 link->dp_link.link_params.num_lanes); in dp_link_process_link_status_update()
959 link->dp_link.link_params.num_lanes); in dp_link_process_link_status_update()
1114 for (i = 0; i < dp_link->link_params.num_lanes; i++) { in dp_link_adjust_levels()
Ddp_debug.c81 debug->link->link_params.num_lanes); in dp_debug_show()
82 link_params_rate = debug->link->link_params.rate; in dp_debug_show()
85 lclk = debug->link->link_params.rate * 1000; in dp_debug_show()
Ddp_link.h83 struct dp_link_info link_params; member
Ddp_display.c892 rate = dp->link->link_params.rate; in dp_display_post_enable()
896 dp->audio->lane_count = dp->link->link_params.num_lanes; in dp_display_post_enable()
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_main.c1520 static void qed_set_ext_speed_params(struct qed_mcp_link_params *link_params, in qed_set_ext_speed_params() argument
1523 struct qed_mcp_link_speed_params *ext_speed = &link_params->ext_speed; in qed_set_ext_speed_params()
1579 link_params->ext_fec_mode = ETH_EXT_FEC_25G_NONE; in qed_set_ext_speed_params()
1582 link_params->ext_fec_mode = ETH_EXT_FEC_25G_BASE_R; in qed_set_ext_speed_params()
1585 link_params->ext_fec_mode = ETH_EXT_FEC_25G_RS528; in qed_set_ext_speed_params()
1588 link_params->ext_fec_mode = ETH_EXT_FEC_25G_RS528 | in qed_set_ext_speed_params()
1600 link_params->ext_fec_mode = ETH_EXT_FEC_40G_NONE; in qed_set_ext_speed_params()
1603 link_params->ext_fec_mode = ETH_EXT_FEC_40G_BASE_R; in qed_set_ext_speed_params()
1606 link_params->ext_fec_mode = ETH_EXT_FEC_40G_BASE_R | in qed_set_ext_speed_params()
1617 link_params->ext_fec_mode = ETH_EXT_FEC_50G_NONE; in qed_set_ext_speed_params()
[all …]
Dqed_sriov.c982 struct qed_mcp_link_params link_params; in qed_iov_init_hw_for_vf() local
1068 memcpy(&link_params, qed_mcp_get_link_params(p_hwfn), in qed_iov_init_hw_for_vf()
1069 sizeof(link_params)); in qed_iov_init_hw_for_vf()
1074 &link_params, &link_state, &link_caps); in qed_iov_init_hw_for_vf()
/linux-6.1.9/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c731 struct qed_link_params link_params; in qede_nway_reset() local
747 memset(&link_params, 0, sizeof(link_params)); in qede_nway_reset()
748 link_params.link_up = false; in qede_nway_reset()
749 edev->ops->common->set_link(edev->cdev, &link_params); in qede_nway_reset()
750 link_params.link_up = true; in qede_nway_reset()
751 edev->ops->common->set_link(edev->cdev, &link_params); in qede_nway_reset()
1624 struct qed_link_params link_params; in qede_selftest_run_loopback() local
1638 memset(&link_params, 0, sizeof(link_params)); in qede_selftest_run_loopback()
1639 link_params.link_up = true; in qede_selftest_run_loopback()
1640 link_params.override_flags = QED_LINK_OVERRIDE_LOOPBACK_MODE; in qede_selftest_run_loopback()
[all …]
Dqede_main.c2330 struct qed_link_params link_params; in qede_unload() local
2351 memset(&link_params, 0, sizeof(link_params)); in qede_unload()
2352 link_params.link_up = false; in qede_unload()
2353 edev->ops->common->set_link(edev->cdev, &link_params); in qede_unload()
2414 struct qed_link_params link_params; in qede_load() local
2472 memset(&link_params, 0, sizeof(link_params)); in qede_load()
2473 link_params.link_up = true; in qede_load()
2474 edev->ops->common->set_link(edev->cdev, &link_params); in qede_load()
/linux-6.1.9/drivers/gpu/drm/gma500/
Dintel_bios.h463 struct edp_link_params link_params[16]; member
Dintel_bios.c79 edp_link_params = &edp->link_params[panel_type]; in parse_edp()
/linux-6.1.9/drivers/scsi/qedi/
Dqedi_main.c2517 struct qed_link_params link_params; in __qedi_probe() local
2686 memset(&link_params, 0, sizeof(link_params)); in __qedi_probe()
2687 link_params.link_up = true; in __qedi_probe()
2688 rc = qedi_ops->common->set_link(qedi->cdev, &link_params); in __qedi_probe()
/linux-6.1.9/drivers/scsi/qedf/
Dqedf_main.c3291 struct qed_link_params link_params; in __qedf_probe() local
3669 memset(&link_params, 0, sizeof(struct qed_link_params)); in __qedf_probe()
3670 link_params.link_up = true; in __qedf_probe()
3671 status = qed_ops->common->set_link(qedf->cdev, &link_params); in __qedf_probe()