Lines Matching refs:portid

108  * csio_ln_match_by_portid - lookup lnode using given portid.
110 * @portid: port-id.
112 * If found, returns lnode matching given portid otherwise returns NULL.
115 csio_ln_lookup_by_portid(struct csio_hw *hw, uint8_t portid)
120 /* Match siblings lnode with portid */
123 if (ln->portid == portid)
352 if (hw->pport[ln->portid].link_speed == FW_PORT_CAP_SPEED_1G)
354 else if (hw->pport[ln->portid].link_speed == FW_PORT_CAP_SPEED_10G)
356 else if (hw->pport[ln->portid].link_speed == FW_PORT_CAP32_SPEED_25G)
358 else if (hw->pport[ln->portid].link_speed == FW_PORT_CAP32_SPEED_40G)
360 else if (hw->pport[ln->portid].link_speed == FW_PORT_CAP32_SPEED_50G)
362 else if (hw->pport[ln->portid].link_speed == FW_PORT_CAP32_SPEED_100G)
723 uint8_t portid;
734 portid = ln->portid;
738 sub_op ? "UP" : "DOWN", portid);
741 portid, sub_op, 0, 0, 0, NULL);
745 portid);
754 "ret:x%x\n", sub_op ? "UP" : "DOWN", portid, retval);
768 if (hw->pport[i].portid == portid)
811 fcf_info->portid = FW_FCOE_FCF_CMD_PORTID_GET(rsp->fpma_to_portid);
845 ln->portid, ln->fcf_flowid, cbfn);
859 * @portid - Physical port number
873 csio_handle_link_up(struct csio_hw *hw, uint8_t portid, uint32_t fcfi,
881 /* Pick lnode based on portid */
882 ln = csio_ln_lookup_by_portid(hw, portid);
885 portid);
900 portid, vnpi);
904 ln->portid = portid;
914 csio_info(hw, "Port:%d - FCOE LINK UP\n", portid);
1023 * @portid - Physical port number
1035 csio_handle_link_down(struct csio_hw *hw, uint8_t portid, uint32_t fcfi,
1051 "Ignoring Fcoe linkdown event on portid %d\n",
1052 portid);
1057 /* Verify portid */
1058 if (fp->portid != portid) {
1061 "invalid port %d\n", portid);
1075 csio_info(hw, "Port:%d - FCOE LINK DOWN\n", portid);
1176 "Ignoring linkup on port:%d\n", ln->portid);
1386 csio_get_phy_port_stats(struct csio_hw *hw, uint8_t portid,
1399 portparams.portid = portid;
1487 uint8_t portid, opcode = *(uint8_t *)cmd;
1499 portid = FW_FCOE_LINK_CMD_PORTID_GET(
1508 csio_handle_link_up(hw, portid, fcfi, vnpi);
1516 csio_handle_link_down(hw, portid, fcfi, vnpi);
1673 * @sid - source portid.
1674 * @did - destination portid
1958 * @portid:port id
1965 csio_disable_lnodes(struct csio_hw *hw, uint8_t portid, bool disable)
1970 csio_dbg(hw, "Notifying event to all nodes of port:%d\n", portid);
1975 if (ln->portid != portid)