/drivers/target/tcm_fc/ |
D | tfc_sess.c | 33 (lport)->port_id, ##args ) 148 static u32 ft_sess_hash(u32 port_id) in ft_sess_hash() argument 150 return hash_32(port_id, FT_SESS_HASH_BITS); in ft_sess_hash() 158 static struct ft_sess *ft_sess_get(struct fc_lport *lport, u32 port_id) in ft_sess_get() argument 172 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_get() 174 if (sess->port_id == port_id) { in ft_sess_get() 178 port_id, sess); in ft_sess_get() 185 port_id, reason); in ft_sess_get() 194 struct hlist_head *head = &tport->hash[ft_sess_hash(sess->port_id)]; in ft_sess_alloc_cb() 196 TFC_SESS_DBG(tport->lport, "port_id %x sess %p\n", sess->port_id, sess); in ft_sess_alloc_cb() [all …]
|
/drivers/net/ethernet/ti/ |
D | am65-cpsw-switchdev.c | 49 ret = cpsw_ale_control_set(cpsw->ale, port->port_id, in am65_cpsw_port_stp_state_set() 69 unreg_mcast_add, port->port_id); in am65_cpsw_port_attr_br_flags_set() 71 cpsw_ale_set_unreg_mcast(cpsw->ale, BIT(port->port_id), in am65_cpsw_port_attr_br_flags_set() 94 netdev_dbg(ndev, "attr: id %u port: %u\n", attr->id, port->port_id); in am65_cpsw_port_attr_set() 123 if (port->port_id) in am65_cpsw_get_pvid() 143 if (port->port_id) in am65_cpsw_set_pvid() 166 port_mask = BIT(port->port_id); in am65_cpsw_port_vlan_add() 208 port_mask = BIT(port->port_id); in am65_cpsw_port_vlan_del() 268 port_mask = BIT(port->port_id); in am65_cpsw_port_mdb_add() 290 del_mask = BIT(port->port_id); in am65_cpsw_port_mdb_del() [all …]
|
/drivers/fpga/ |
D | dfl-fme-pr.c | 33 dfl_fme_region_find_by_port_id(struct dfl_fme *fme, int port_id) in dfl_fme_region_find_by_port_id() argument 38 if (fme_region->port_id == port_id) in dfl_fme_region_find_by_port_id() 49 static struct fpga_region *dfl_fme_region_find(struct dfl_fme *fme, int port_id) in dfl_fme_region_find() argument 54 fme_region = dfl_fme_region_find_by_port_id(fme, port_id); in dfl_fme_region_find() 95 if (port_pr.port_id >= FIELD_GET(FME_CAP_NUM_PORTS, v)) { in fme_pr() 134 region = dfl_fme_region_find(fme, port_pr.port_id); in fme_pr() 144 info->region_id = port_pr.port_id; in fme_pr() 230 dfl_fme_create_bridge(struct dfl_feature_platform_data *pdata, int port_id) in dfl_fme_create_bridge() argument 242 br_pdata.port_id = port_id; in dfl_fme_create_bridge() 303 struct platform_device *br, int port_id) in dfl_fme_create_region() argument [all …]
|
/drivers/spi/ |
D | spi-pxa2xx-pci.c | 66 snprintf(buf, sizeof(buf), "pxa2xx-spi.%d", ssp->port_id); in pxa2xx_spi_pci_clk_register() 100 ssp->port_id = 0; in lpss_spi_setup() 106 ssp->port_id = 0; in lpss_spi_setup() 112 ssp->port_id = 1; in lpss_spi_setup() 118 ssp->port_id = 2; in lpss_spi_setup() 125 ssp->port_id = 0; in lpss_spi_setup() 132 ssp->port_id = 1; in lpss_spi_setup() 176 ssp->port_id = dev->devfn; in ce4100_spi_setup() 197 ssp->port_id = 3; in mrfld_spi_setup() 203 ssp->port_id = 5; in mrfld_spi_setup() [all …]
|
/drivers/tty/serial/ |
D | serial_base_bus.c | 67 unsigned int port_id) in serial_base_device_init() argument 85 ctrl_id, port_id); in serial_base_device_init() 156 if (port->port_id) { in serial_base_port_add() 157 min = port->port_id; in serial_base_port_add() 158 max = port->port_id; in serial_base_port_add() 167 port->port_id = err; in serial_base_port_add() 172 port->ctrl_id, port->port_id); in serial_base_port_add() 186 ida_free(&ctrl_dev->port_ida, port->port_id); in serial_base_port_add() 203 ida_free(&ctrl_dev->port_ida, port_dev->port->port_id); in serial_base_port_device_remove()
|
/drivers/scsi/libfc/ |
D | fc_npiv.c | 49 struct fc_lport *fc_vport_id_lookup(struct fc_lport *n_port, u32 port_id) in fc_vport_id_lookup() argument 54 if (n_port->port_id == port_id) in fc_vport_id_lookup() 57 if (port_id == FC_FID_FLOGI) in fc_vport_id_lookup() 62 if (vn_port->port_id == port_id) { in fc_vport_id_lookup()
|
D | fc_libfc.h | 38 (lport)->port_id, ##args)) 46 #define FC_RPORT_ID_DBG(lport, port_id, fmt, args...) \ argument 50 (port_id), ##args)) 53 FC_RPORT_ID_DBG((rdata)->local_port, (rdata)->ids.port_id, fmt, ##args) 64 (pkt)->rport->port_id, \ 69 (pkt)->rport->port_id, ##args); \
|
D | fc_rport.c | 105 u32 port_id) in fc_rport_lookup() argument 111 if (tmp_rdata->ids.port_id == port_id && in fc_rport_lookup() 128 struct fc_rport_priv *fc_rport_create(struct fc_lport *lport, u32 port_id) in fc_rport_create() argument 135 rdata = fc_rport_lookup(lport, port_id); in fc_rport_create() 149 rdata->ids.port_id = port_id; in fc_rport_create() 163 if (port_id != FC_FID_DIR_SERV) { in fc_rport_create() 260 u32 port_id; in fc_rport_work() local 335 port_id = rdata->ids.port_id; in fc_rport_work() 352 lport->tt.exch_mgr_reset(lport, 0, port_id); in fc_rport_work() 353 lport->tt.exch_mgr_reset(lport, port_id, 0); in fc_rport_work() [all …]
|
D | fc_disc.c | 125 dp->port_id = ntoh24(pp->rscn_fid); in fc_disc_recv_rscn_req() 428 ids.port_id = ntoh24(np->fp_fid); in fc_disc_gpn_ft_parse() 431 if (ids.port_id != lport->port_id && in fc_disc_gpn_ft_parse() 433 rdata = fc_rport_create(lport, ids.port_id); in fc_disc_gpn_ft_parse() 440 "(%6.6x)\n", ids.port_id); in fc_disc_gpn_ft_parse() 603 rdata->ids.port_id, port_name); in fc_disc_gpn_id_resp() 607 new_rdata = fc_rport_create(lport, rdata->ids.port_id); in fc_disc_gpn_id_resp() 653 if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, FC_NS_GPN_ID, in fc_disc_gpn_id_req() 672 rdata = fc_rport_create(lport, dp->port_id); in fc_disc_single()
|
D | fc_lport.c | 176 rdata->ids.port_id); in fc_lport_rport_callback() 192 "%d state", rdata->ids.port_id, in fc_lport_rport_callback() 200 if (rdata->ids.port_id == FC_FID_DIR_SERV) in fc_lport_rport_callback() 202 else if (rdata->ids.port_id == FC_FID_MGMT_SERV) in fc_lport_rport_callback() 246 lport->port_id); in fc_lport_ptp_setup() 568 lport->host->host_no, lport->port_id); in fc_linkup() 598 lport->host->host_no, lport->port_id); in fc_linkdown() 703 lport->host->host_no, lport->port_id); in fc_lport_disc_callback() 740 static void fc_lport_set_port_id(struct fc_lport *lport, u32 port_id, in fc_lport_set_port_id() argument 745 if (port_id) in fc_lport_set_port_id() [all …]
|
/drivers/net/ethernet/sfc/ |
D | ef10_sriov.h | 61 unsigned int port_id, const u8 *mac); 63 unsigned int port_id, const u8 *mac); 64 int efx_ef10_vadaptor_alloc(struct efx_nic *efx, unsigned int port_id); 65 int efx_ef10_vadaptor_query(struct efx_nic *efx, unsigned int port_id, 68 int efx_ef10_vadaptor_free(struct efx_nic *efx, unsigned int port_id);
|
/drivers/pci/controller/ |
D | pcie-hisi-error.c | 53 u8 port_id; member 109 u32 chip_id, u32 port_id) in hisi_pcie_port_reset() argument 121 arg[1].integer.value = HISI_PCIE_CORE_ID(port_id); in hisi_pcie_port_reset() 123 arg[2].integer.value = HISI_PCIE_CORE_PORT_ID(port_id); in hisi_pcie_port_reset() 143 u32 chip_id, u32 port_id) in hisi_pcie_port_do_recovery() argument 163 devfn = PCI_DEVFN(port_id, 0); in hisi_pcie_port_do_recovery() 174 if (hisi_pcie_port_reset(dev, chip_id, port_id)) in hisi_pcie_port_do_recovery() 221 dev_info(dev, "Port ID = port%d\n", edata->port_id); in hisi_pcie_handle_error() 244 HISI_PCIE_PORT_ID(edata->core_id, edata->port_id)); in hisi_pcie_handle_error()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_dcb.c | 45 __func__, pi->port_id); in cxgb4_dcb_state_init() 450 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg() 452 INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg() 463 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg() 465 INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg() 517 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_setpgtccfg_tx() 531 INIT_PORT_DCB_WRITE_CMD(pcmd, pi->port_id); in cxgb4_setpgtccfg_tx() 542 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_setpgtccfg_tx() 554 INIT_PORT_DCB_WRITE_CMD(pcmd, pi->port_id); in cxgb4_setpgtccfg_tx() 573 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_getpgbwgcfg() [all …]
|
D | cxgb4_tc_matchall.c | 187 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_alloc_tc() 230 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_free_tc() 250 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_mirror_alloc() 274 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_mirror_free() 289 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_del_filter() 322 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_add_filter() 355 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_alloc_filter() 386 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_free_filter() 413 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_tc_matchall_replace() 452 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_tc_matchall_destroy() [all …]
|
/drivers/gpu/drm/bridge/imx/ |
D | imx8qxp-pixel-link.c | 271 u32 port_id; in imx8qxp_pixel_link_find_next_bridge() local 277 for (port_id = 1; port_id <= PL_MAX_MST_ADDR + 1; port_id++) { in imx8qxp_pixel_link_find_next_bridge() 278 port = of_graph_get_port_by_id(np, port_id); in imx8qxp_pixel_link_find_next_bridge() 297 remote = of_graph_get_remote_node(np, port_id, reg); in imx8qxp_pixel_link_find_next_bridge() 304 port_id, reg); in imx8qxp_pixel_link_find_next_bridge() 324 pl->mst_addr = port_id - 1; in imx8qxp_pixel_link_find_next_bridge()
|
/drivers/scsi/mpi3mr/ |
D | mpi3mr_transport.c | 128 u64 sas_address, struct sas_expander_device *edev, u8 port_id) in mpi3mr_report_manufacture() argument 174 mpi_request.io_unit_port = (u8) port_id; in mpi3mr_report_manufacture() 185 (unsigned long long)sas_address, port_id); in mpi3mr_report_manufacture() 1001 mpi3mr_alloc_hba_port(struct mpi3mr_ioc *mrioc, u16 port_id) in mpi3mr_alloc_hba_port() argument 1009 hba_port->port_id = port_id; in mpi3mr_alloc_hba_port() 1011 hba_port, hba_port->port_id); in mpi3mr_alloc_hba_port() 1025 u8 port_id) in mpi3mr_get_hba_port_by_id() argument 1031 if (port->port_id != port_id) in mpi3mr_get_hba_port_by_id() 1113 u16 sz, port_id, attached_handle; in mpi3mr_sas_host_refresh() local 1143 port_id = sas_io_unit_pg0->phy_data[i].io_unit_port; in mpi3mr_sas_host_refresh() [all …]
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_init_fw_funcs.c | 293 u8 port_id, u8 tc, u8 max_phys_tcs_per_port) in qed_get_ext_voq() argument 296 return NUM_OF_PHYS_TCS * MAX_NUM_PORTS_BB + port_id; in qed_get_ext_voq() 298 return port_id * max_phys_tcs_per_port + tc; in qed_get_ext_voq() 399 u8 tc, ext_voq, port_id, num_tcs_in_port; in qed_cmdq_lines_rt_init() local 406 for (port_id = 0; port_id < max_ports_per_engine; port_id++) { in qed_cmdq_lines_rt_init() 409 if (!port_params[port_id].active) in qed_cmdq_lines_rt_init() 415 phys_lines = port_params[port_id].num_pbf_cmd_lines; in qed_cmdq_lines_rt_init() 421 if (((port_params[port_id].active_phys_tcs >> in qed_cmdq_lines_rt_init() 429 port_id, in qed_cmdq_lines_rt_init() 431 if (((port_params[port_id].active_phys_tcs >> in qed_cmdq_lines_rt_init() [all …]
|
/drivers/scsi/fcoe/ |
D | fcoe_ctlr.c | 546 if (!fcf || (ports && !lp->port_id)) in fcoe_ctlr_send_keep_alive() 577 hton24(vn->fd_fc_id, lport->port_id); in fcoe_ctlr_send_keep_alive() 663 hton24(mac->fd_mac + 3, fip->port_id); in fcoe_ctlr_encaps() 1356 if (!lport->port_id) { in fcoe_ctlr_recv_clr_vlink() 2051 hton24(frame->eth.h_source + 3, fip->port_id); in fcoe_ctlr_vn_send() 2073 hton24(frame->vn.fd_mac + 3, fip->port_id); in fcoe_ctlr_vn_send() 2074 hton24(frame->vn.fd_fc_id, fip->port_id); in fcoe_ctlr_vn_send() 2126 rdata->ids.port_id, event); in fcoe_ctlr_vn_rport_callback() 2140 rdata->ids.port_id); in fcoe_ctlr_vn_rport_callback() 2214 u32 port_id; in fcoe_ctlr_vn_restart() local [all …]
|
/drivers/scsi/qedf/ |
D | qedf_attr.c | 31 u32 port_id; in fcoe_mac_show() local 35 port_id = fc_host_port_id(lport->host); in fcoe_mac_show() 36 lport_src_id[2] = (port_id & 0x000000FF); in fcoe_mac_show() 37 lport_src_id[1] = (port_id & 0x0000FF00) >> 8; in fcoe_mac_show() 38 lport_src_id[0] = (port_id & 0x00FF0000) >> 16; in fcoe_mac_show()
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc_hwi.c | 186 u32 port_id; in bnx2fc_send_session_ofld_req() local 243 port_id = fc_host_port_id(lport->host); in bnx2fc_send_session_ofld_req() 244 if (port_id == 0) { in bnx2fc_send_session_ofld_req() 254 tgt->sid = port_id; in bnx2fc_send_session_ofld_req() 255 ofld_req3.s_id[0] = (port_id & 0x000000FF); in bnx2fc_send_session_ofld_req() 256 ofld_req3.s_id[1] = (port_id & 0x0000FF00) >> 8; in bnx2fc_send_session_ofld_req() 257 ofld_req3.s_id[2] = (port_id & 0x00FF0000) >> 16; in bnx2fc_send_session_ofld_req() 259 port_id = rport->port_id; in bnx2fc_send_session_ofld_req() 260 ofld_req3.d_id[0] = (port_id & 0x000000FF); in bnx2fc_send_session_ofld_req() 261 ofld_req3.d_id[1] = (port_id & 0x0000FF00) >> 8; in bnx2fc_send_session_ofld_req() [all …]
|
D | bnx2fc_tgt.c | 95 "port_id (%6x)\n", rport->port_id); in bnx2fc_offload_session() 272 tgt->rdata->ids.port_id, tgt->num_active_ios.counter); in bnx2fc_flush_active_ios() 449 u32 port_id; in bnx2fc_rport_event_handler() local 452 event, rdata->ids.port_id); in bnx2fc_rport_event_handler() 461 if (rport->port_id == FC_FID_DIR_SERV) { in bnx2fc_rport_event_handler() 469 rdata->ids.port_id); in bnx2fc_rport_event_handler() 528 port_id = rdata->ids.port_id; in bnx2fc_rport_event_handler() 529 if (port_id == FC_FID_DIR_SERV) in bnx2fc_rport_event_handler() 534 port_id); in bnx2fc_rport_event_handler() 579 u32 port_id) in bnx2fc_tgt_lookup() argument [all …]
|
/drivers/net/ethernet/freescale/fman/ |
D | fman.c | 557 static irqreturn_t fman_bus_error(struct fman *fman, u8 __maybe_unused port_id, in fman_bus_error() argument 563 __func__, fman->state->fm_id, port_id); in fman_bus_error() 594 u8 port_id) in set_port_order_restoration() argument 598 tmp = port_id << FPM_PORT_FM_CTL_PORTID_SHIFT; in set_port_order_restoration() 603 if (port_id % 2) in set_port_order_restoration() 611 static void set_port_liodn(struct fman *fman, u8 port_id, in set_port_liodn() argument 616 iowrite32be(liodn_ofst, &fman->bmi_regs->fmbm_spliodn[port_id - 1]); in set_port_liodn() 620 tmp = ioread32be(&fman->dma_regs->fmdmplr[port_id / 2]); in set_port_liodn() 621 if (port_id % 2) { in set_port_liodn() 628 iowrite32be(tmp, &fman->dma_regs->fmdmplr[port_id / 2]); in set_port_liodn() [all …]
|
/drivers/net/ethernet/netronome/nfp/flower/ |
D | main.c | 104 nfp_flower_get_netdev_from_internal_port_id(struct nfp_app *app, int port_id) in nfp_flower_get_netdev_from_internal_port_id() argument 110 netdev = idr_find(&priv->internal_ports.port_ids, port_id); in nfp_flower_get_netdev_from_internal_port_id() 220 nfp_flower_repr_get_type_and_port(struct nfp_app *app, u32 port_id, u8 *port) in nfp_flower_repr_get_type_and_port() argument 222 switch (FIELD_GET(NFP_FLOWER_CMSG_PORT_TYPE, port_id)) { in nfp_flower_repr_get_type_and_port() 225 port_id); in nfp_flower_repr_get_type_and_port() 229 *port = FIELD_GET(NFP_FLOWER_CMSG_PORT_VNIC, port_id); in nfp_flower_repr_get_type_and_port() 230 if (FIELD_GET(NFP_FLOWER_CMSG_PORT_VNIC_TYPE, port_id) == in nfp_flower_repr_get_type_and_port() 241 nfp_flower_dev_get(struct nfp_app *app, u32 port_id, bool *redir_egress) in nfp_flower_dev_get() argument 248 if (FIELD_GET(NFP_FLOWER_CMSG_PORT_TYPE, port_id) == in nfp_flower_dev_get() 252 port = FIELD_GET(NFP_FLOWER_CMSG_PORT_PHYS_PORT_NUM, port_id); in nfp_flower_dev_get() [all …]
|
/drivers/scsi/mpt3sas/ |
D | mpt3sas_transport.c | 72 u8 port_id = 0xFF; in _transport_get_port_id_by_sas_phy() local 76 port_id = port->port_id; in _transport_get_port_id_by_sas_phy() 78 return port_id; in _transport_get_port_id_by_sas_phy() 116 u8 port_id = 0xFF; in _transport_get_port_id_by_rphy() local 119 return port_id; in _transport_get_port_id_by_rphy() 127 port_id = sas_expander->port->port_id; in _transport_get_port_id_by_rphy() 136 port_id = sas_device->port->port_id; in _transport_get_port_id_by_rphy() 142 return port_id; in _transport_get_port_id_by_rphy() 354 u64 sas_address, struct sas_expander_device *edev, u8 port_id) in _transport_expander_report_manufacture() argument 421 mpi_request->PhysicalPort = port_id; in _transport_expander_report_manufacture() [all …]
|
/drivers/phy/marvell/ |
D | phy-mvebu-cp110-utmi.c | 313 u32 port_id; in mvebu_cp110_utmi_phy_probe() local 315 ret = of_property_read_u32(child, "reg", &port_id); in mvebu_cp110_utmi_phy_probe() 316 if ((ret < 0) || (port_id >= UTMI_PHY_PORTS)) { in mvebu_cp110_utmi_phy_probe() 334 port_id); in mvebu_cp110_utmi_phy_probe() 343 port_id); in mvebu_cp110_utmi_phy_probe() 360 port->id = port_id; in mvebu_cp110_utmi_phy_probe()
|