/drivers/target/tcm_fc/ |
D | tfc_sess.c | 158 static u32 ft_sess_hash(u32 port_id) in ft_sess_hash() argument 160 return hash_32(port_id, FT_SESS_HASH_BITS); in ft_sess_hash() 168 static struct ft_sess *ft_sess_get(struct fc_lport *lport, u32 port_id) in ft_sess_get() argument 179 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_get() 181 if (sess->port_id == port_id) { in ft_sess_get() 184 pr_debug("port_id %x found %p\n", port_id, sess); in ft_sess_get() 190 pr_debug("port_id %x not found\n", port_id); in ft_sess_get() 198 static struct ft_sess *ft_sess_create(struct ft_tport *tport, u32 port_id, in ft_sess_create() argument 204 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_create() 206 if (sess->port_id == port_id) in ft_sess_create() [all …]
|
/drivers/scsi/ |
D | scsi_transport_srp.c | 75 (p)->port_id[0], (p)->port_id[1], (p)->port_id[2], (p)->port_id[3], \ 76 (p)->port_id[4], (p)->port_id[5], (p)->port_id[6], (p)->port_id[7], \ 77 (p)->port_id[8], (p)->port_id[9], (p)->port_id[10], (p)->port_id[11], \ 78 (p)->port_id[12], (p)->port_id[13], (p)->port_id[14], (p)->port_id[15] 91 static DEVICE_ATTR(port_id, S_IRUGO, show_srp_rport_id, NULL); 210 memcpy(rport->port_id, ids->port_id, sizeof(rport->port_id)); in srp_rport_add() 228 rport->port_id); in srp_rport_add()
|
/drivers/scsi/libfc/ |
D | fc_npiv.c | 61 struct fc_lport *fc_vport_id_lookup(struct fc_lport *n_port, u32 port_id) in fc_vport_id_lookup() argument 66 if (n_port->port_id == port_id) in fc_vport_id_lookup() 69 if (port_id == FC_FID_FLOGI) in fc_vport_id_lookup() 74 if (vn_port->port_id == port_id) { in fc_vport_id_lookup()
|
D | fc_libfc.h | 50 (lport)->port_id, ##args)) 58 #define FC_RPORT_ID_DBG(lport, port_id, fmt, args...) \ argument 62 (port_id), ##args)) 65 FC_RPORT_ID_DBG((rdata)->local_port, (rdata)->ids.port_id, fmt, ##args) 76 (pkt)->rport->port_id, \ 81 (pkt)->rport->port_id, ##args); \
|
D | fc_lport.c | 185 rdata->ids.port_id); in fc_lport_rport_callback() 201 "%d state", rdata->ids.port_id, in fc_lport_rport_callback() 209 if (rdata->ids.port_id == FC_FID_DIR_SERV) in fc_lport_rport_callback() 211 else if (rdata->ids.port_id == FC_FID_MGMT_SERV) in fc_lport_rport_callback() 576 lport->host->host_no, lport->port_id); in fc_linkup() 606 lport->host->host_no, lport->port_id); in fc_linkdown() 711 lport->host->host_no, lport->port_id); in fc_lport_disc_callback() 752 static void fc_lport_set_port_id(struct fc_lport *lport, u32 port_id, in fc_lport_set_port_id() argument 755 if (port_id) in fc_lport_set_port_id() 757 lport->host->host_no, port_id); in fc_lport_set_port_id() [all …]
|
D | fc_disc.c | 141 dp->port_id = ntoh24(pp->rscn_fid); in fc_disc_recv_rscn_req() 444 ids.port_id = ntoh24(np->fp_fid); in fc_disc_gpn_ft_parse() 447 if (ids.port_id != lport->port_id && in fc_disc_gpn_ft_parse() 449 rdata = lport->tt.rport_create(lport, ids.port_id); in fc_disc_gpn_ft_parse() 456 "(%6.6x)\n", ids.port_id); in fc_disc_gpn_ft_parse() 615 rdata->ids.port_id, port_name); in fc_disc_gpn_id_resp() 619 rdata->ids.port_id); in fc_disc_gpn_id_resp() 661 if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, FC_NS_GPN_ID, in fc_disc_gpn_id_req() 681 rdata = lport->tt.rport_create(lport, dp->port_id); in fc_disc_single()
|
D | fc_rport.c | 101 u32 port_id) in fc_rport_lookup() argument 106 if (rdata->ids.port_id == port_id) in fc_rport_lookup() 121 u32 port_id) in fc_rport_create() argument 125 rdata = lport->tt.rport_lookup(lport, port_id); in fc_rport_create() 135 rdata->ids.port_id = port_id; in fc_rport_create() 149 if (port_id != FC_FID_DIR_SERV) { in fc_rport_create() 242 u32 port_id; in fc_rport_work() local 315 port_id = rdata->ids.port_id; in fc_rport_work() 331 lport->tt.exch_mgr_reset(lport, 0, port_id); in fc_rport_work() 332 lport->tt.exch_mgr_reset(lport, port_id, 0); in fc_rport_work() [all …]
|
D | fc_fcp.c | 513 lport->port_id); in fc_fcp_recv_data() 918 fsp->rport->port_id, in fc_fcp_resp() 1149 fc_fill_fc_hdr(fp, FC_RCTL_DD_UNSOL_CMD, rport->port_id, in fc_fcp_cmd_send() 1150 rpriv->local_port->port_id, FC_TYPE_FCP, in fc_fcp_cmd_send() 1421 fc_fill_fc_hdr(fp, FC_RCTL_ELS_REQ, rport->port_id, in fc_fcp_rec() 1422 rpriv->local_port->port_id, FC_TYPE_ELS, in fc_fcp_rec() 1424 if (lport->tt.elsct_send(lport, rport->port_id, fp, ELS_REC, in fc_fcp_rec() 1476 fsp->rport->port_id, rjt->er_reason, in fc_fcp_rec_resp() 1601 fsp, fsp->rport->port_id, error); in fc_fcp_rec_error() 1611 fsp->rport->port_id, error, fsp->recov_retry, in fc_fcp_rec_error() [all …]
|
/drivers/scsi/qla2xxx/ |
D | qla_gs.c | 196 ct_req->req.port_id.port_id[0] = fcport->d_id.b.domain; in qla2x00_ga_nxt() 197 ct_req->req.port_id.port_id[1] = fcport->d_id.b.area; in qla2x00_ga_nxt() 198 ct_req->req.port_id.port_id[2] = fcport->d_id.b.al_pa; in qla2x00_ga_nxt() 212 fcport->d_id.b.domain = ct_rsp->rsp.ga_nxt.port_id[0]; in qla2x00_ga_nxt() 213 fcport->d_id.b.area = ct_rsp->rsp.ga_nxt.port_id[1]; in qla2x00_ga_nxt() 214 fcport->d_id.b.al_pa = ct_rsp->rsp.ga_nxt.port_id[2]; in qla2x00_ga_nxt() 308 list[i].d_id.b.domain = gid_data->port_id[0]; in qla2x00_gid_pt() 309 list[i].d_id.b.area = gid_data->port_id[1]; in qla2x00_gid_pt() 310 list[i].d_id.b.al_pa = gid_data->port_id[2]; in qla2x00_gid_pt() 367 ct_req->req.port_id.port_id[0] = list[i].d_id.b.domain; in qla2x00_gpn_id() [all …]
|
D | qla_fw.h | 54 uint8_t port_id[3]; member 416 uint8_t port_id[3]; /* PortID of destination port.*/ member 454 uint8_t port_id[3]; /* PortID of destination port. */ member 501 uint8_t port_id[3]; /* PortID of destination port. */ member 536 uint8_t port_id[3]; /* PortID of destination port. */ member 695 uint8_t port_id[3]; member 741 uint8_t port_id[3]; member 805 uint8_t port_id[3]; /* PortID of destination port. */ member 857 uint8_t port_id[3]; /* PortID of destination port. */ member 883 uint8_t port_id[3]; /* PortID of destination port. */ member [all …]
|
D | qla_iocb.c | 1513 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_start_scsi() 1514 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_start_scsi() 1515 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_start_scsi() 1727 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_dif_start_scsi() 1728 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_dif_start_scsi() 1729 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_dif_start_scsi() 1889 logio->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_login_iocb() 1890 logio->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_login_iocb() 1891 logio->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_login_iocb() 1926 logio->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_logout_iocb() [all …]
|
/drivers/scsi/fcoe/ |
D | fcoe_ctlr.c | 512 if (!fcf || (ports && !lp->port_id)) in fcoe_ctlr_send_keep_alive() 543 hton24(vn->fd_fc_id, lport->port_id); in fcoe_ctlr_send_keep_alive() 629 hton24(mac->fd_mac + 3, fip->port_id); in fcoe_ctlr_encaps() 1294 if (!fcf || !lport->port_id) { in fcoe_ctlr_recv_clr_vlink() 1982 hton24(frame->eth.h_source + 3, fip->port_id); in fcoe_ctlr_vn_send() 2004 hton24(frame->vn.fd_mac + 3, fip->port_id); in fcoe_ctlr_vn_send() 2005 hton24(frame->vn.fd_fc_id, fip->port_id); in fcoe_ctlr_vn_send() 2057 rdata->ids.port_id, event); in fcoe_ctlr_vn_rport_callback() 2071 rdata->ids.port_id); in fcoe_ctlr_vn_rport_callback() 2137 u32 port_id; in fcoe_ctlr_vn_restart() local [all …]
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc_hwi.c | 184 u32 port_id; in bnx2fc_send_session_ofld_req() local 241 port_id = fc_host_port_id(lport->host); in bnx2fc_send_session_ofld_req() 242 if (port_id == 0) { in bnx2fc_send_session_ofld_req() 252 tgt->sid = port_id; in bnx2fc_send_session_ofld_req() 253 ofld_req3.s_id[0] = (port_id & 0x000000FF); in bnx2fc_send_session_ofld_req() 254 ofld_req3.s_id[1] = (port_id & 0x0000FF00) >> 8; in bnx2fc_send_session_ofld_req() 255 ofld_req3.s_id[2] = (port_id & 0x00FF0000) >> 16; in bnx2fc_send_session_ofld_req() 257 port_id = rport->port_id; in bnx2fc_send_session_ofld_req() 258 ofld_req3.d_id[0] = (port_id & 0x000000FF); in bnx2fc_send_session_ofld_req() 259 ofld_req3.d_id[1] = (port_id & 0x0000FF00) >> 8; in bnx2fc_send_session_ofld_req() [all …]
|
D | bnx2fc_tgt.c | 94 "port_id (%6x)\n", rport->port_id); in bnx2fc_offload_session() 271 tgt->rdata->ids.port_id, tgt->num_active_ios.counter); in bnx2fc_flush_active_ios() 447 u32 port_id; in bnx2fc_rport_event_handler() local 450 event, rdata->ids.port_id); in bnx2fc_rport_event_handler() 459 if (rport->port_id == FC_FID_DIR_SERV) { in bnx2fc_rport_event_handler() 467 rdata->ids.port_id); in bnx2fc_rport_event_handler() 526 port_id = rdata->ids.port_id; in bnx2fc_rport_event_handler() 527 if (port_id == FC_FID_DIR_SERV) in bnx2fc_rport_event_handler() 532 port_id); in bnx2fc_rport_event_handler() 583 u32 port_id) in bnx2fc_tgt_lookup() argument [all …]
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | adapter.h | 69 u8 port_id; member 310 void t3_os_link_changed(struct adapter *adapter, int port_id, int link_status, 312 void t3_os_phymod_changed(struct adapter *adap, int port_id); 313 void t3_os_link_fault(struct adapter *adapter, int port_id, int state); 314 void t3_os_link_fault_handler(struct adapter *adapter, int port_id);
|
D | cxgb3_main.c | 199 void t3_os_link_fault(struct adapter *adap, int port_id, int state) in t3_os_link_fault() argument 201 struct net_device *dev = adap->port[port_id]; in t3_os_link_fault() 215 t3_xgm_intr_disable(adap, pi->port_id); in t3_os_link_fault() 226 t3_xgm_intr_enable(adap, pi->port_id); in t3_os_link_fault() 251 void t3_os_link_changed(struct adapter *adapter, int port_id, int link_stat, in t3_os_link_changed() argument 254 struct net_device *dev = adapter->port[port_id]; in t3_os_link_changed() 269 t3_xgm_intr_disable(adapter, pi->port_id); in t3_os_link_changed() 279 t3_xgm_intr_enable(adapter, pi->port_id); in t3_os_link_changed() 285 t3_xgm_intr_disable(adapter, pi->port_id); in t3_os_link_changed() 315 void t3_os_phymod_changed(struct adapter *adap, int port_id) in t3_os_phymod_changed() argument [all …]
|
/drivers/scsi/cxgbi/cxgb4i/ |
D | cxgb4i.c | 201 set_wr_txq(skb, CPL_PRIORITY_SETUP, csk->port_id); in send_act_open_req() 221 cxgb4_l2t_send(csk->cdev->ports[csk->port_id], skb, csk->l2t); in send_act_open_req() 234 set_wr_txq(skb, CPL_PRIORITY_DATA, csk->port_id); in send_close_req() 254 cxgb4_ofld_send(csk->cdev->ports[csk->port_id], skb); in abort_arp_failure() 283 cxgb4_l2t_send(csk->cdev->ports[csk->port_id], skb, csk->l2t); in send_abort_req() 300 cxgb4_ofld_send(csk->cdev->ports[csk->port_id], skb); in send_abort_rpl() 324 set_wr_txq(skb, CPL_PRIORITY_ACK, csk->port_id); in send_rx_credits() 329 cxgb4_ofld_send(csk->cdev->ports[csk->port_id], skb); in send_rx_credits() 411 cxgb4_ofld_send(csk->cdev->ports[csk->port_id], skb); in send_tx_flowc_wr() 520 cxgb4_l2t_send(csk->cdev->ports[csk->port_id], skb, csk->l2t); in push_tx_frames() [all …]
|
/drivers/scsi/bfa/ |
D | bfa_fcbuild.h | 186 u16 ox_id, u32 port_id); 248 u32 port_id, wwn_t port_name); 251 u32 port_id, wwn_t node_name); 254 u32 port_id, u32 cos); 257 u32 port_id, u8 port_type); 260 u32 port_id); 322 u32 port_id);
|
D | bfa_fcbuild.c | 1077 u32 port_id) in fc_gpnid_build() argument 1087 gpnid->dap = port_id; in fc_gpnid_build() 1093 u32 port_id) in fc_gnnid_build() argument 1103 gnnid->dap = port_id; in fc_gnnid_build() 1300 fc_rpnid_build(struct fchs_s *fchs, void *pyld, u32 s_id, u32 port_id, in fc_rpnid_build() argument 1311 rpnid->port_id = port_id; in fc_rpnid_build() 1318 fc_rnnid_build(struct fchs_s *fchs, void *pyld, u32 s_id, u32 port_id, in fc_rnnid_build() argument 1329 rnnid->port_id = port_id; in fc_rnnid_build() 1336 fc_rcsid_build(struct fchs_s *fchs, void *pyld, u32 s_id, u32 port_id, in fc_rcsid_build() argument 1348 rcsid->port_id = port_id; in fc_rcsid_build() [all …]
|
D | bfa_ioc_cb.c | 119 if (ioc->port_id == 0) { in bfa_ioc_cb_reg_init() 171 ioc->port_id = bfa_ioc_pcifn(ioc); in bfa_ioc_cb_map_port() 173 bfa_trc(ioc, ioc->port_id); in bfa_ioc_cb_map_port()
|
/drivers/scsi/csiostor/ |
D | csio_mb.c | 910 uint32_t mb_tmo, uint8_t port_id, uint32_t sub_opcode, in csio_write_fcoe_link_cond_init_mb() argument 923 FW_FCOE_LINK_CMD_PORTID(port_id))); in csio_write_fcoe_link_cond_init_mb() 1446 csio_mb_portmod_changed(struct csio_hw *hw, uint8_t port_id) in csio_mb_portmod_changed() argument 1452 struct csio_pport *port = &hw->pport[port_id]; in csio_mb_portmod_changed() 1455 csio_info(hw, "Port:%d - port module unplugged\n", port_id); in csio_mb_portmod_changed() 1457 csio_info(hw, "Port:%d - %s port module inserted\n", port_id, in csio_mb_portmod_changed() 1462 "inserted\n", port_id); in csio_mb_portmod_changed() 1466 "TWINAX\n", port_id); in csio_mb_portmod_changed() 1468 csio_info(hw, "Port:%d - transceiver module error\n", port_id); in csio_mb_portmod_changed() 1471 port_id, port->mod_type); in csio_mb_portmod_changed() [all …]
|
/drivers/spi/ |
D | spi-pxa2xx-pci.c | 39 ssp->port_id = dev->devfn; in ce4100_spi_probe() 45 pi.id = ssp->port_id; in ce4100_spi_probe()
|
/drivers/message/fusion/ |
D | mptsas.h | 135 u8 port_id; /* sas physical port this device member 161 u8 port_id; /* firmware port identifier */ member
|
/drivers/usb/host/ |
D | xhci-hub.c | 413 int port_id, u32 link_state) in xhci_set_link_state() argument 417 temp = xhci_readl(xhci, port_array[port_id]); in xhci_set_link_state() 421 xhci_writel(xhci, temp, port_array[port_id]); in xhci_set_link_state() 425 __le32 __iomem **port_array, int port_id, u16 wake_mask) in xhci_set_remote_wake_mask() argument 429 temp = xhci_readl(xhci, port_array[port_id]); in xhci_set_remote_wake_mask() 447 xhci_writel(xhci, temp, port_array[port_id]); in xhci_set_remote_wake_mask() 452 int port_id, u32 port_bit) in xhci_test_and_clear_bit() argument 456 temp = xhci_readl(xhci, port_array[port_id]); in xhci_test_and_clear_bit() 460 xhci_writel(xhci, temp, port_array[port_id]); in xhci_test_and_clear_bit()
|
/drivers/scsi/pm8001/ |
D | pm80xx_hwi.c | 1500 u32 port_id = le32_to_cpu(psspPayload->port_id); in mpi_ssp_event() local 1513 port_id, tag, event)); in mpi_ssp_event() 2071 u32 port_id = le32_to_cpu(psataPayload->port_id); in mpi_sata_event() local 2108 port_id, tag, event)); in mpi_sata_event() 2545 u32 Qnum, u32 SEA, u32 port_id, u32 phyId, u32 param0, u32 param1) in pm80xx_hw_event_ack_req() argument 2556 ((phyId & 0xFF) << 24) | (port_id & 0xFF)); in pm80xx_hw_event_ack_req() 2581 u8 port_id = (u8)(lr_status_evt_portid & 0x000000FF); in hw_event_sas_phy_up() local 2586 struct pm8001_port *port = &pm8001_ha->port[port_id]; in hw_event_sas_phy_up() 2595 port_id, phy_id, link_rate, portstate, deviceType)); in hw_event_sas_phy_up() 2661 u8 port_id = (u8)(lr_status_evt_portid & 0x000000FF); in hw_event_sata_phy_up() local [all …]
|