| /linux-6.15/drivers/rapidio/ |
| H A D | rio-access.c | 34 (struct rio_mport *mport, u32 offset, type *value) \ 39 res = mport->ops->lcread(mport, mport->id, offset, len, &data); \ 55 (struct rio_mport *mport, u32 offset, type value) \ 58 return mport->ops->lcwrite(mport, mport->id, offset, len, value);\ 86 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type *value) \ 91 res = mport->ops->cread(mport, mport->id, destid, hopcount, offset, len, &data); \ 107 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type value) \ 110 return mport->ops->cwrite(mport, mport->id, destid, hopcount, \ 138 int rio_mport_send_doorbell(struct rio_mport *mport, u16 destid, u16 data) in rio_mport_send_doorbell() argument 140 return mport->ops->dsend(mport, mport->id, destid, data); in rio_mport_send_doorbell()
|
| H A D | rio.c | 262 rc = mport->ops->open_inb_mbox(mport, dev_id, mbox, entries); in rio_request_inb_mbox() 289 if (!mport->ops->close_inb_mbox || !mport->inb_msg[mbox].res) in rio_release_inb_mbox() 292 mport->ops->close_inb_mbox(mport, mbox); in rio_release_inb_mbox() 376 mport->ops->close_outb_mbox(mport, mbox); in rio_release_outb_mbox() 671 mport->ops->pwenable(mport, enable); in rio_pw_enable() 715 mport->ops->unmap_inb(mport, lstart); in rio_unmap_inb_region() 743 rc = mport->ops->map_outb(mport, destid, rbase, size, in rio_map_outb_region() 765 mport->ops->unmap_outb(mport, destid, rstart); in rio_unmap_outb_region() 2057 work->mport->id, work->mport->name); in disc_work_handler() 2059 work->mport->nscan->discover(work->mport, 0); in disc_work_handler() [all …]
|
| H A D | rio-scan.c | 870 net->hport = mport; in rio_scan_alloc_net() 955 mport->name); in rio_enum_mport() 963 if (mport->nnode.next || mport->nnode.prev) in rio_enum_mport() 970 mport->id); in rio_enum_mport() 1000 mport->id); in rio_enum_mport() 1012 mport->id); in rio_enum_mport() 1070 mport->name); in rio_disc_mport() 1089 mport->id, mport->name); in rio_disc_mport() 1103 mport->host_deviceid = RIO_GET_DID(mport->sys_size, in rio_disc_mport() 1106 if (rio_disc_peer(net, mport, RIO_ANY_DESTID(mport->sys_size), in rio_disc_mport() [all …]
|
| H A D | rio_cm.c | 147 struct rio_mport *mport; member 743 if (cm->mport == NULL) { in riocm_post_send() 1241 if ((cm->mport->id == mport_id) && in riocm_ch_bind() 1546 if (cm->mport->id == mport_id) { in cm_ep_get_list_size() 1582 if (cm->mport->id == (u8)info[1]) in cm_ep_get_list() 1641 cm->mport->host_deviceid; in cm_mport_get_list() 2109 cm->mport = mport; in riocm_add_mport() 2115 cmbox, mport->name); in riocm_add_mport() 2124 cmbox, mport->name); in riocm_add_mport() 2189 if (cm->mport == mport) { in riocm_remove_mport() [all …]
|
| H A D | rio.h | 18 extern u32 rio_mport_get_feature(struct rio_mport *mport, int local, u16 destid, 24 extern int rio_mport_chk_dev_access(struct rio_mport *mport, u16 destid, 36 extern struct rio_net *rio_alloc_net(struct rio_mport *mport);
|
| H A D | rio-sysfs.c | 332 struct rio_mport *mport = to_rio_mport(dev); in port_destid_show() local 334 if (mport) in port_destid_show() 335 return sprintf(buf, "0x%04x\n", mport->host_deviceid); in port_destid_show() 344 struct rio_mport *mport = to_rio_mport(dev); in sys_size_show() local 346 if (mport) in sys_size_show() 347 return sprintf(buf, "%u\n", mport->sys_size); in sys_size_show()
|
| /linux-6.15/include/linux/ |
| H A D | rio.h | 300 return atomic_read(&mport->state) == RIO_DEVICE_RUNNING; in rio_mport_is_running() 409 int (*pwenable) (struct rio_mport *mport, int enable); 410 int (*open_outb_mbox)(struct rio_mport *mport, void *dev_id, 412 void (*close_outb_mbox)(struct rio_mport *mport, int mbox); 413 int (*open_inb_mbox)(struct rio_mport *mport, void *dev_id, 415 void (*close_inb_mbox)(struct rio_mport *mport, int mbox); 419 void *(*get_inb_message)(struct rio_mport *mport, int mbox); 420 int (*map_inb)(struct rio_mport *mport, dma_addr_t lstart, 423 int (*query_mport)(struct rio_mport *mport, 530 int (*enumerate)(struct rio_mport *mport, u32 flags); [all …]
|
| H A D | rio_drv.h | 230 extern int rio_mport_send_doorbell(struct rio_mport *mport, u16 destid, 311 static inline int rio_add_outb_message(struct rio_mport *mport, in rio_add_outb_message() argument 315 return mport->ops->add_outb_message(mport, rdev, mbox, in rio_add_outb_message() 332 static inline int rio_add_inb_buffer(struct rio_mport *mport, int mbox, in rio_add_inb_buffer() argument 335 return mport->ops->add_inb_buffer(mport, mbox, buffer); in rio_add_inb_buffer() 347 return mport->ops->get_inb_message(mport, mbox); in rio_get_inb_message() 370 extern void rio_unmap_outb_region(struct rio_mport *mport, 378 int (*pwcback)(struct rio_mport *mport, void *dev_id, 381 int (*pwcback)(struct rio_mport *mport, void *dev_id, 383 extern int rio_inb_pwrite_handler(struct rio_mport *mport, [all …]
|
| /linux-6.15/arch/powerpc/sysdev/ |
| H A D | fsl_rio.h | 30 #define RIO_REGS_WIN(mport) (((struct rio_priv *)(mport->priv))->regs_win) argument 88 struct rio_mport *mport[MAX_PORT_NUM]; member 96 struct rio_mport *mport[MAX_PORT_NUM]; member 124 extern int fsl_rio_setup_rmu(struct rio_mport *mport, 127 extern int fsl_rio_pw_enable(struct rio_mport *mport, int enable); 131 extern int fsl_rio_doorbell_send(struct rio_mport *mport, 133 extern int fsl_add_outb_message(struct rio_mport *mport, 136 extern int fsl_open_outb_mbox(struct rio_mport *mport, 138 extern void fsl_close_outb_mbox(struct rio_mport *mport, int mbox); 139 extern int fsl_open_inb_mbox(struct rio_mport *mport, [all …]
|
| H A D | fsl_rmu.c | 32 #define GET_RMM_HANDLE(mport) \ argument 326 if (fsl_dbell->mport[i]) { in fsl_rio_dbell_handler() 338 dbell->dinb(fsl_dbell->mport[i], in fsl_rio_dbell_handler() 506 if (pw->mport[i]) in fsl_pw_dpc() 723 struct rio_priv *priv = mport->priv; in fsl_open_outb_mbox() 777 "msg_tx", (void *)mport); in fsl_open_outb_mbox() 837 free_irq(IRQ_RIO_TX(mport), (void *)mport); in fsl_close_outb_mbox() 889 "msg_rx", (void *)mport); in fsl_open_inb_mbox() 937 free_irq(IRQ_RIO_RX(mport), (void *)mport); in fsl_close_inb_mbox() 1071 if (!mport || !mport->priv) in fsl_rio_setup_rmu() [all …]
|
| H A D | fsl_rio.c | 142 static int fsl_local_config_read(struct rio_mport *mport, in fsl_local_config_read() argument 145 struct rio_priv *priv = mport->priv; in fsl_local_config_read() 164 static int fsl_local_config_write(struct rio_mport *mport, in fsl_local_config_write() argument 167 struct rio_priv *priv = mport->priv; in fsl_local_config_write() 190 fsl_rio_config_read(struct rio_mport *mport, int index, u16 destid, in fsl_rio_config_read() argument 193 struct rio_priv *priv = mport->priv; in fsl_rio_config_read() 258 struct rio_priv *priv = mport->priv; in fsl_rio_config_write() 310 struct rio_priv *priv = mport->priv; in fsl_map_inb_mem() 361 struct rio_priv *priv = mport->priv; in fsl_unmap_inb_mem() 694 dbell->mport[i] = port; in fsl_rio_setup() [all …]
|
| /linux-6.15/drivers/rapidio/switches/ |
| H A D | idtcps.c | 21 idtcps_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_add_entry() argument 30 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_add_entry() 33 rio_mport_read_config_32(mport, destid, hopcount, in idtcps_route_add_entry() 37 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_add_entry() 51 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_get_entry() 54 rio_mport_read_config_32(mport, destid, hopcount, in idtcps_route_get_entry() 75 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_clr_table() 77 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_clr_table() 90 idtcps_set_domain(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_set_domain() argument 96 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_set_domain() [all …]
|
| H A D | idt_gen2.c | 101 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_add_entry() 107 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_add_entry() 111 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_add_entry() 133 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_get_entry() 136 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_get_entry() 140 rio_mport_read_config_32(mport, destid, hopcount, in idtg2_route_get_entry() 165 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_clr_table() 170 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_clr_table() 172 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_clr_table() 190 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_set_domain() [all …]
|
| H A D | idt_gen3.c | 37 idtg3_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg3_route_add_entry() argument 55 err = rio_mport_write_config_32(mport, destid, hopcount, in idtg3_route_add_entry() 64 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_add_entry() 72 err = rio_mport_write_config_32(mport, destid, hopcount, in idtg3_route_add_entry() 79 idtg3_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg3_route_get_entry() argument 88 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_get_entry() 103 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_get_entry() 118 idtg3_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg3_route_clr_table() argument 127 err = rio_mport_write_config_32(mport, destid, hopcount, in idtg3_route_clr_table() 137 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_clr_table() [all …]
|
| /linux-6.15/drivers/net/ |
| H A D | rionet.c | 52 struct rio_mport *mport; member 182 add_num = nets[rnet->mport->id].nact; in rionet_start_xmit() 199 nets[rnet->mport->id].active[i]); in rionet_start_xmit() 233 unsigned char netid = rnet->mport->id; in rionet_dbell_event() 249 rio_mport_send_doorbell(mport, sid, in rionet_dbell_event() 314 unsigned char netid = rnet->mport->id; in rionet_open() 492 if (!nets[mport->id].active) { in rionet_setup_netdev() 500 rnet->mport = mport; in rionet_setup_netdev() 519 SET_NETDEV_DEV(ndev, &mport->dev); in rionet_setup_netdev() 540 mport->name); in rionet_setup_netdev() [all …]
|
| /linux-6.15/drivers/rapidio/devices/ |
| H A D | rio_mport_cdev.c | 263 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_rd() local 308 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_wr() local 365 struct rio_mport *mport = md->mport; in rio_mport_create_outbound_mapping() local 1205 struct rio_mport *mport = md->mport; in rio_mport_create_inbound_mapping() local 1709 mport = md->mport; in rio_mport_add_riodev() 1835 mport = priv->md->mport; in rio_mport_del_riodev() 2153 struct rio_mport *mport = map->md->mport; in mport_release_mapping() local 2306 struct rio_mport *mport = priv->md->mport; in mport_write() local 2378 md->mport = mport; in mport_cdev_add() 2440 mport->name, MAJOR(dev_number), mport->id); in mport_cdev_add() [all …]
|
| H A D | tsi721.c | 395 struct rio_mport *mport; in tsi721_db_dpc() local 409 mport = &priv->mport; in tsi721_db_dpc() 1764 struct rio_mport *mport = &priv->mport; in tsi721_omsg_handler() local 1890 mport->outb_msg[ch].mcback(mport, dev_id, ch, tx_slot); in tsi721_omsg_handler() 2146 struct rio_mport *mport = &priv->mport; in tsi721_imsg_handler() local 2167 mport->inb_msg[mbox].mcback(mport, in tsi721_imsg_handler() 2683 tsi_debug(EXIT, dev, "%s id=%d", mport->name, mport->id); in tsi721_mport_release() 2698 struct rio_mport *mport = &priv->mport; in tsi721_setup_mport() local 2705 mport->index = 0; in tsi721_setup_mport() 2708 mport->phys_efptr = 0x100; in tsi721_setup_mport() [all …]
|
| H A D | tsi721_dma.c | 969 struct rio_mport *mport = &priv->mport; in tsi721_register_dma() local 971 INIT_LIST_HEAD(&mport->dma.channels); in tsi721_register_dma() 981 bdma_chan->dchan.device = &mport->dma; in tsi721_register_dma() 996 &mport->dma.channels); in tsi721_register_dma() 1000 mport->dma.chancnt = nr_channels; in tsi721_register_dma() 1001 dma_cap_zero(mport->dma.cap_mask); in tsi721_register_dma() 1003 dma_cap_set(DMA_SLAVE, mport->dma.cap_mask); in tsi721_register_dma() 1005 mport->dma.dev = &priv->pdev->dev; in tsi721_register_dma() 1013 err = dma_async_device_register(&mport->dma); in tsi721_register_dma() 1022 struct rio_mport *mport = &priv->mport; in tsi721_unregister_dma() local [all …]
|
| /linux-6.15/Documentation/driver-api/rapidio/ |
| H A D | mport_cdev.rst | 2 RapidIO subsystem mport character device driver (rio_mport_cdev.c) 21 directory for each registered RapidIO mport device. 'X' in the node name matches 22 to unique port ID assigned to each local mport device. 27 - Reads and writes from/to configuration registers of mport devices 32 - Set RapidIO Destination ID for mport devices (RIO_MPORT_MAINT_HDID_SET) 33 - Set RapidIO Component Tag for mport devices (RIO_MPORT_MAINT_COMPTAG_SET) 34 - Query logical index of mport devices (RIO_MPORT_MAINT_PORT_IDX_GET) 35 - Query capabilities and RapidIO link configuration of mport devices 43 - Configure/Map mport's outbound requests window(s) for specific size, 46 - Configure/Map mport's inbound requests window(s) for specific size, [all …]
|
| H A D | rio_cm.rst | 37 in /dev directory common for all registered RapidIO mport devices. 42 Returns to caller list of local mport devices that 44 Each list entry is combination of mport's index in the system and RapidIO 48 in a RapidIO network associated with the specified mport device. 52 with the specified mport device. 58 mport device. 93 and therefore it can be used with any mport device driver registered by RapidIO 94 subsystem with limitations set by available mport HW implementation of messaging
|
| /linux-6.15/Documentation/ABI/testing/ |
| H A D | sysfs-class-rapidio | 4 (referenced as "Master Port" or "mport") are presented in sysfs 7 subdirectories named as "rapidioN" where N = mport ID registered 10 NOTE: An mport ID is not a RapidIO destination ID assigned to a 11 given local mport device. 33 RapidIO mport device. If value 0xFFFFFFFF is returned this means 34 that no valid destination ID have been assigned to the mport 39 After enumeration or discovery was performed for a given mport device, 41 child RapidIO device connected to the mport. 43 The example below shows mport device subdirectory with several child RapidIO
|
| /linux-6.15/drivers/net/ethernet/sfc/ |
| H A D | efx_devlink.c | 141 struct mae_mport_desc *mport) in efx_devlink_add_port() argument 148 switch (mport->mport_type) { in efx_devlink_add_port() 151 devlink_port_attrs_pci_vf_set(&mport->dl_port, 0, mport->pf_idx, in efx_devlink_add_port() 152 mport->vf_idx, in efx_devlink_add_port() 155 devlink_port_attrs_pci_pf_set(&mport->dl_port, 0, mport->pf_idx, in efx_devlink_add_port() 163 mport->dl_port.index = mport->mport_id; in efx_devlink_add_port() 166 mport->mport_id, in efx_devlink_add_port() 638 struct mae_mport_desc *mport; in ef100_set_devlink_port() local 655 mport = efx_mae_get_mport(efx, id); in ef100_set_devlink_port() 656 if (!mport) { in ef100_set_devlink_port() [all …]
|
| H A D | ef100_rep.h | 50 u32 mport; member 72 struct efx_rep *efx_ef100_find_rep_by_mport(struct efx_nic *efx, u16 mport);
|
| H A D | ef100_rep.c | 251 rc = efx_mae_lookup_mport(efx, efv->idx, &efv->mport); in efx_ef100_configure_rep() 254 pci_dbg(efx->pci_dev, "VF %u has mport ID %#x\n", efv->idx, efv->mport); in efx_ef100_configure_rep() 256 WARN_ON(efv->mport >> 16); in efx_ef100_configure_rep() 483 struct efx_rep *efx_ef100_find_rep_by_mport(struct efx_nic *efx, u16 mport) in efx_ef100_find_rep_by_mport() argument 493 if (efv->mport == mport) { in efx_ef100_find_rep_by_mport()
|
| /linux-6.15/drivers/net/ethernet/microchip/sparx5/ |
| H A D | sparx5_mirror.c | 119 struct sparx5_port *mport, u32 dir, u32 *idx) in sparx5_mirror_get() argument 134 sparx5_mirror_has_monitor(sparx5, i, mport->portno)) { in sparx5_mirror_get() 154 struct sparx5_port *sport, *mport; in sparx5_mirror_add() local 161 mport = entry->mirror.port; in sparx5_mirror_add() 164 if (sport->portno == mport->portno) in sparx5_mirror_add() 167 err = sparx5_mirror_get(sport, mport, dir, &mirror_idx); in sparx5_mirror_add() 181 sparx5_mirror_monitor_set(sparx5, mirror_idx, mport->portno); in sparx5_mirror_add()
|