Lines Matching refs:pi
284 struct port_info *pi = adap2pinfo(adapter, pidx); in t4vf_port_init() local
298 vi_cmd.type_viid = cpu_to_be16(FW_VI_CMD_VIID_V(pi->viid)); in t4vf_port_init()
303 BUG_ON(pi->port_id != FW_VI_CMD_PORTID_G(vi_rpl.portid_pkd)); in t4vf_port_init()
304 pi->rss_size = FW_VI_CMD_RSSSIZE_G(be16_to_cpu(vi_rpl.rsssize_pkd)); in t4vf_port_init()
318 FW_PORT_CMD_PORTID_V(pi->port_id)); in t4vf_port_init()
327 pi->mdio_addr = (v & FW_PORT_CMD_MDIOCAP_F) ? in t4vf_port_init()
329 pi->port_type = FW_PORT_CMD_PTYPE_G(v); in t4vf_port_init()
330 pi->mod_type = FW_PORT_MOD_TYPE_NA; in t4vf_port_init()
332 init_link_config(&pi->link_cfg, be16_to_cpu(port_rpl.u.info.pcap)); in t4vf_port_init()
1356 struct port_info *pi = adap2pinfo(adapter, pidx); in t4vf_get_port_stats() local
1377 FW_VI_STATS_CMD_VIID_V(pi->viid) | in t4vf_get_port_stats()
1531 struct port_info *pi = adap2pinfo(adapter, pidx); in t4vf_handle_fw_rpl() local
1534 if (pi->port_id != port_id) in t4vf_handle_fw_rpl()
1537 lc = &pi->link_cfg; in t4vf_handle_fw_rpl()
1540 if (mod != pi->mod_type) { in t4vf_handle_fw_rpl()
1541 pi->mod_type = mod; in t4vf_handle_fw_rpl()