Home
last modified time | relevance | path

Searched full:port_id (Results 1 – 25 of 291) sorted by relevance

12345678910>>...12

/linux/drivers/target/tcm_fc/
H A Dtfc_sess.c33 (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()
177 TFC_SESS_DBG(lport, "port_id %x found %p\n", in ft_sess_get()
178 port_id, sess); in ft_sess_get()
184 TFC_SESS_DBG(lport, "port_id %x not found, %s\n", in ft_sess_get()
185 port_id, reason); in ft_sess_get()
[all …]
/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-switchdev.c49 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 …]
/linux/drivers/misc/
H A Dti_fpc202.c139 static void fpc202_fill_alias_table(struct i2c_client *client, u16 *aliases, int port_id) in fpc202_fill_alias_table() argument
150 first_alias = 0x10 + 4 * port_id + 8 * ((u16)client->addr - 2); in fpc202_fill_alias_table()
322 static int fpc202_write_dev_addr(struct fpc202_priv *priv, u32 port_id, int dev_num, u16 addr) in fpc202_write_dev_addr() argument
329 reg_mod = FPC202_REG_MOD_DEV(port_id, dev_num); in fpc202_write_dev_addr()
330 reg_aux = FPC202_REG_AUX_DEV(port_id, dev_num); in fpc202_write_dev_addr()
344 priv->addr_caches[port_id][dev_num] = val; in fpc202_write_dev_addr()
561 static int fpc202_probe_port(struct fpc202_priv *priv, struct device_node *i2c_handle, int port_id) in fpc202_probe_port() argument
568 desc.chan_id = port_id; in fpc202_probe_port()
573 fpc202_fill_alias_table(priv->client, aliases, port_id); in fpc202_probe_port()
580 set_bit(port_id, priv->probed_ports); in fpc202_probe_port()
[all …]
/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_switchdev.c65 emac_state, emac->port_id); in prueth_switchdev_attr_br_flags_set()
88 netdev_dbg(ndev, "attr: id %u port: %u\n", attr->id, emac->port_id); in prueth_switchdev_attr_set()
131 int port_id = emac->port_id; in prueth_switchdev_event_work() local
141 fdb->offloaded, port_id); in prueth_switchdev_event_work()
149 BIT(port_id), true); in prueth_switchdev_event_work()
158 fdb->offloaded, port_id); in prueth_switchdev_event_work()
165 BIT(port_id), false); in prueth_switchdev_event_work()
241 port_mask = BIT(emac->port_id); in prueth_switchdev_vlan_add()
254 icssg_set_pvid(emac->prueth, vid, emac->port_id); in prueth_switchdev_vlan_add()
269 port_mask = BIT(emac->port_id); in prueth_switchdev_vlan_del()
[all …]
/linux/drivers/tty/serial/
H A Dserial_base_bus.c70 unsigned int port_id) in serial_base_device_init() argument
91 ctrl_id, port_id); in serial_base_device_init()
163 /* Device driver specified port_id vs automatic assignment? */ in serial_base_port_add()
164 if (port->port_id) { in serial_base_port_add()
165 min = port->port_id; in serial_base_port_add()
166 max = port->port_id; in serial_base_port_add()
175 port->port_id = err; in serial_base_port_add()
180 port->ctrl_id, port->port_id); in serial_base_port_add()
194 ida_free(&ctrl_dev->port_ida, port->port_id); in serial_base_port_add()
211 ida_free(&ctrl_dev->port_ida, port_dev->port->port_id); in serial_base_port_device_remove()
[all …]
/linux/sound/soc/qcom/qdsp6/
H A Dq6adm.c155 int port_id, int copp_idx) in q6adm_device_close() argument
163 close.hdr.src_port = port_id; in q6adm_device_close()
165 close.hdr.token = port_id << 16 | copp_idx; in q6adm_device_close()
302 int port_id, int topology, in q6adm_find_matching_copp() argument
314 if ((port_id == c->afe_port) && (topology == c->topology) && in q6adm_find_matching_copp()
327 int port_id, int path, int topology, in q6adm_device_open() argument
331 int afe_port = q6afe_get_port_id(port_id); in q6adm_device_open()
347 pkt->hdr.token = port_id << 16 | copp->copp_idx; in q6adm_device_open()
369 * @port_id: port id
381 struct q6copp *q6adm_open(struct device *dev, int port_id, int path, int rate, in q6adm_open() argument
[all …]
/linux/drivers/net/ethernet/ti/icssm/
H A Dicssm_prueth_switch.c543 other_port_id = (emac->port_id == PRUETH_PORT_MII0) ? in icssm_prueth_sw_insert_fdb_entry()
578 emac->port_id - 1); in icssm_prueth_sw_insert_fdb_entry()
599 writeb(emac->port_id - 1, &mac_info->port); in icssm_prueth_sw_insert_fdb_entry()
622 mac, emac->port_id, total_fdb_entries); in icssm_prueth_sw_insert_fdb_entry()
890 enum prueth_port port_id) in icssm_prueth_sw_port_config() argument
898 emac = prueth->emac[port_id - 1]; in icssm_prueth_sw_port_config()
899 switch (port_id) { in icssm_prueth_sw_port_config()
929 sw_queue_infos[port_id], in icssm_prueth_sw_port_config()
930 sizeof(sw_queue_infos[port_id])); in icssm_prueth_sw_port_config()
933 rx_queue_infos[port_id], in icssm_prueth_sw_port_config()
[all …]
/linux/drivers/spi/
H A Dspi-pxa2xx-pci.c72 snprintf(buf, sizeof(buf), "pxa2xx-spi.%d", ssp->port_id); in pxa2xx_spi_pci_clk_register()
106 ssp->port_id = 0; in lpss_spi_setup()
112 ssp->port_id = 0; in lpss_spi_setup()
118 ssp->port_id = 1; in lpss_spi_setup()
124 ssp->port_id = 2; in lpss_spi_setup()
131 ssp->port_id = 0; in lpss_spi_setup()
138 ssp->port_id = 1; in lpss_spi_setup()
182 ssp->port_id = dev->devfn; in ce4100_spi_setup()
203 ssp->port_id = 3; in mrfld_spi_setup()
209 ssp->port_id = 5; in mrfld_spi_setup()
[all …]
/linux/drivers/scsi/libfc/
H A Dfc_npiv.c45 * @port_id: Fabric ID to find a match for
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()
H A Dfc_libfc.h38 (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); \
/linux/drivers/fpga/
H A Ddfl-fme-pr.h28 * @port_id: indicate which port this region connected to.
33 int port_id; member
41 * @region_id: region id (same as port_id).
64 * @port_id: port id.
68 int port_id; member
/linux/drivers/net/ethernet/sfc/
H A Def10_sriov.h61 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);
/linux/drivers/gpu/drm/rockchip/
H A Ddw_hdmi_qp-rockchip.c99 int port_id; member
191 val &= hdmi->port_id ? RK3588_HDMI1_LEVEL_INT : RK3588_HDMI0_LEVEL_INT; in dw_hdmi_qp_rk3588_read_hpd()
201 if (hdmi->port_id) in dw_hdmi_qp_rk3588_setup_hpd()
304 if (hdmi->port_id) in dw_hdmi_qp_rk3588_hardirq()
320 if (hdmi->port_id) in dw_hdmi_qp_rk3588_irq()
329 if (hdmi->port_id) in dw_hdmi_qp_rk3588_irq()
362 hdmi->port_id ? RK3588_GRF_VO1_CON6 : RK3588_GRF_VO1_CON3, in dw_hdmi_qp_rk3588_io_init()
369 if (hdmi->port_id) in dw_hdmi_qp_rk3588_io_init()
375 if (hdmi->port_id) in dw_hdmi_qp_rk3588_io_init()
406 hdmi->port_id ? RK3588_GRF_VO1_CON6 : RK3588_GRF_VO1_CON3, in dw_hdmi_qp_rk3588_enc_init()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_dcb.c45 __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 …]
H A Dcxgb4_tc_matchall.c187 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 …]
/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr_transport.c123 * @port_id: ID of the HBA port
130 u64 sas_address, struct sas_expander_device *edev, u8 port_id) in mpi3mr_report_manufacture() argument
181 mpi_request.io_unit_port = (u8) port_id; in mpi3mr_report_manufacture()
192 (unsigned long long)sas_address, port_id); in mpi3mr_report_manufacture()
1016 * @port_id: Port number
1021 mpi3mr_alloc_hba_port(struct mpi3mr_ioc *mrioc, u16 port_id) in mpi3mr_alloc_hba_port() argument
1028 hba_port->port_id = port_id; in mpi3mr_alloc_hba_port()
1030 hba_port, hba_port->port_id); in mpi3mr_alloc_hba_port()
1041 * @port_id: Port ID to search
1047 u8 port_id) in mpi3mr_get_hba_port_by_id() argument
[all …]
/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_tgt.c95 "port_id (%6x)\n", rport->port_id); in bnx2fc_offload_session()
270 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
449 BNX2FC_HBA_DBG(lport, "rport_event_hdlr: event = %d, port_id = 0x%x\n", in bnx2fc_rport_event_handler()
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()
[all …]
H A Dbnx2fc_hwi.c186 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()
245 BNX2FC_HBA_DBG(lport, "ofld_req: port_id = 0, link down?\n"); in bnx2fc_send_session_ofld_req()
252 * when the lport is reset, the port_id also is reset to 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()
[all …]
/linux/drivers/hv/
H A Dmshv_synic.c611 union hv_port_id port_id = { 0 }; in mshv_register_doorbell() local
627 port_id.u.id = ret; in mshv_register_doorbell()
631 ret = hv_call_create_port(hv_current_partition_id, port_id, partition_id, in mshv_register_doorbell()
636 mshv_portid_free(port_id.u.id); in mshv_register_doorbell()
640 connection_id.u.id = port_id.u.id; in mshv_register_doorbell()
646 ret = hv_call_connect_port(hv_current_partition_id, port_id, partition_id, in mshv_register_doorbell()
649 hv_call_delete_port(hv_current_partition_id, port_id); in mshv_register_doorbell()
650 mshv_portid_free(port_id.u.id); in mshv_register_doorbell()
654 // lets use the port_id as the doorbell_id in mshv_register_doorbell()
655 return port_id.u.id; in mshv_register_doorbell()
[all …]
/linux/sound/soc/renesas/
H A Dsiu_dai.c154 if (!info->port_id) in siu_dai_spbAselect()
179 if (!info->port_id) in siu_dai_spbBselect()
200 switch (info->port_id) { in siu_dai_open()
230 switch (info->port_id) { in siu_dai_pcmdatapack()
502 info->port_id, port_info); in siu_dai_startup()
522 info->port_id, port_info); in siu_dai_shutdown()
551 __func__, info->port_id, port_info->play_cap, rt->channels); in siu_dai_prepare()
597 __func__, fmt, info->port_id); in siu_dai_set_fmt()
599 if (info->port_id < 0) in siu_dai_set_fmt()
605 ifctl = siu_flags[info->port_id].playback.i2s | in siu_dai_set_fmt()
[all …]
/linux/drivers/scsi/fcoe/
H A Dfcoe_ctlr.c546 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()
1475 * 'port_id' is already validated, check MAC address and in fcoe_ctlr_recv_clr_vlink()
2050 hton24(frame->eth.h_source + 3, fip->port_id); in fcoe_ctlr_vn_send()
2072 hton24(frame->vn.fd_mac + 3, fip->port_id); in fcoe_ctlr_vn_send()
2073 hton24(frame->vn.fd_fc_id, fip->port_id); in fcoe_ctlr_vn_send()
2125 rdata->ids.port_id, event); in fcoe_ctlr_vn_rport_callback()
2138 "rport FLOGI limited port_id %6.6x\n", in fcoe_ctlr_vn_rport_callback()
[all …]
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_init_fw_funcs.c283 u8 port_id, u8 tc, u8 max_phys_tcs_per_port) in qed_get_ext_voq() argument
286 return NUM_OF_PHYS_TCS * MAX_NUM_PORTS_BB + port_id; in qed_get_ext_voq()
288 return port_id * max_phys_tcs_per_port + tc; in qed_get_ext_voq()
389 u8 tc, ext_voq, port_id, num_tcs_in_port; in qed_cmdq_lines_rt_init() local
396 for (port_id = 0; port_id < max_ports_per_engine; port_id++) { in qed_cmdq_lines_rt_init()
399 if (!port_params[port_id].active) in qed_cmdq_lines_rt_init()
405 phys_lines = port_params[port_id].num_pbf_cmd_lines; in qed_cmdq_lines_rt_init()
411 if (((port_params[port_id].active_phys_tcs >> in qed_cmdq_lines_rt_init()
419 port_id, in qed_cmdq_lines_rt_init()
421 if (((port_params[port_id].active_phys_tcs >> in qed_cmdq_lines_rt_init()
[all …]
/linux/drivers/scsi/pm8001/
H A Dpm80xx_hwi.c2119 u32 port_id = le32_to_cpu(psspPayload->port_id); in mpi_ssp_event() local
2129 pm8001_dbg(pm8001_ha, IOERR, "port_id:0x%x, tag:0x%x, event:0x%x\n", in mpi_ssp_event()
2130 port_id, tag, event); in mpi_ssp_event()
2710 u32 port_id = le32_to_cpu(psataPayload->port_id); in mpi_sata_event() local
2748 pm8001_dbg(pm8001_ha, IOERR, "port_id:0x%x, tag:0x%x, event:0x%x\n", in mpi_sata_event()
2749 port_id, tag, event); in mpi_sata_event()
3122 * @port_id: port id.
3128 u32 Qnum, u32 SEA, u32 port_id, u32 phyId, u32 param0, u32 param1) in pm80xx_hw_event_ack_req() argument
3136 ((phyId & 0xFF) << 24) | (port_id & 0xFF)); in pm80xx_hw_event_ack_req()
3158 u8 port_id = (u8)(lr_status_evt_portid & 0x000000FF); in hw_event_port_recover() local
[all …]
/linux/drivers/scsi/qedf/
H A Dqedf_attr.c31 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()
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dmain.c104 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 …]

12345678910>>...12