Lines Matching refs:vpd

199 	u32 clkdiv = adap->params.vpd.cclk / (2 * adap->params.vpd.mdc) - 1;  in mi1_init()
648 struct t3_vpd vpd; in get_vpd_params() local
661 ret = pci_read_vpd(adapter->pdev, addr, sizeof(vpd), &vpd); in get_vpd_params()
665 ret = vpdstrtouint(vpd.cclk_data, vpd.cclk_len, 10, &p->cclk); in get_vpd_params()
668 ret = vpdstrtouint(vpd.mclk_data, vpd.mclk_len, 10, &p->mclk); in get_vpd_params()
671 ret = vpdstrtouint(vpd.uclk_data, vpd.uclk_len, 10, &p->uclk); in get_vpd_params()
674 ret = vpdstrtouint(vpd.mdc_data, vpd.mdc_len, 10, &p->mdc); in get_vpd_params()
677 ret = vpdstrtouint(vpd.mt_data, vpd.mt_len, 10, &p->mem_timing); in get_vpd_params()
680 memcpy(p->sn, vpd.sn_data, SERNUM_LEN); in get_vpd_params()
683 if (adapter->params.rev == 0 && !vpd.port0_data[0]) { in get_vpd_params()
687 p->port_type[0] = hex_to_bin(vpd.port0_data[0]); in get_vpd_params()
688 p->port_type[1] = hex_to_bin(vpd.port1_data[0]); in get_vpd_params()
689 ret = vpdstrtou16(vpd.xaui0cfg_data, vpd.xaui0cfg_len, 16, in get_vpd_params()
693 ret = vpdstrtou16(vpd.xaui1cfg_data, vpd.xaui1cfg_len, 16, in get_vpd_params()
699 ret = hex2bin(p->eth_base, vpd.na_data, 6); in get_vpd_params()
2975 unsigned int clk = adap->params.vpd.cclk * 1000; in t3_config_sched()
3016 tp_set_timers(adap, adap->params.vpd.cclk * 1000); in tp_init()
3312 const struct vpd_params *vpd = &adapter->params.vpd; in t3_init_hw() local
3319 if (vpd->mclk) { in t3_init_hw()
3322 if (mc7_init(&adapter->pmrx, vpd->mclk, vpd->mem_timing) || in t3_init_hw()
3323 mc7_init(&adapter->pmtx, vpd->mclk, vpd->mem_timing) || in t3_init_hw()
3324 mc7_init(&adapter->cm, vpd->mclk, vpd->mem_timing) || in t3_init_hw()
3364 t3_write_reg(adapter, A_CIM_HOST_ACC_DATA, vpd->uclk | fw_params); in t3_init_hw()
3482 if (devid == 0x37 && !adapter->params.vpd.xauicfg[1]) in mac_prep()
3502 V_I2C_CLKDIV(adapter->params.vpd.cclk / 80 - 1)); in early_hw_init()
3616 ret = get_vpd_params(adapter, &adapter->params.vpd); in t3_prep_adapter()
3625 if (adapter->params.vpd.mclk) { in t3_prep_adapter()
3671 while (!adapter->params.vpd.port_type[++j]) in t3_prep_adapter()
3674 pti = &port_types[adapter->params.vpd.port_type[j]]; in t3_prep_adapter()
3677 adapter->params.vpd.port_type[j]); in t3_prep_adapter()
3693 memcpy(hw_addr, adapter->params.vpd.eth_base, 5); in t3_prep_adapter()
3694 hw_addr[5] = adapter->params.vpd.eth_base[5] + i; in t3_prep_adapter()
3734 while (!adapter->params.vpd.port_type[++j]) in t3_replay_prep_adapter()
3737 pti = &port_types[adapter->params.vpd.port_type[j]]; in t3_replay_prep_adapter()