/linux-6.3-rc2/drivers/rapidio/ |
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()
|
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 …]
|
A D | rio-scan.c | 870 net->hport = mport; in rio_scan_alloc_net() 952 mport->name); in rio_enum_mport() 960 if (mport->nnode.next || mport->nnode.prev) in rio_enum_mport() 967 mport->id); in rio_enum_mport() 997 mport->id); in rio_enum_mport() 1009 mport->id); in rio_enum_mport() 1067 mport->name); in rio_disc_mport() 1086 mport->id, mport->name); in rio_disc_mport() 1100 mport->host_deviceid = RIO_GET_DID(mport->sys_size, in rio_disc_mport() 1103 if (rio_disc_peer(net, mport, RIO_ANY_DESTID(mport->sys_size), in rio_disc_mport() [all …]
|
A D | rio_cm.c | 147 struct rio_mport *mport; member 741 if (cm->mport == NULL) { in riocm_post_send() 1239 if ((cm->mport->id == mport_id) && in riocm_ch_bind() 1544 if (cm->mport->id == mport_id) { in cm_ep_get_list_size() 1580 if (cm->mport->id == (u8)info[1]) in cm_ep_get_list() 1639 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() 2191 if (cm->mport == mport) { in riocm_remove_mport() [all …]
|
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);
|
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.3-rc2/include/linux/ |
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 …]
|
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.3-rc2/arch/powerpc/sysdev/ |
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 …]
|
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() 1074 if (!mport || !mport->priv) in fsl_rio_setup_rmu() [all …]
|
A D | fsl_rio.c | 141 static int fsl_local_config_read(struct rio_mport *mport, in fsl_local_config_read() argument 144 struct rio_priv *priv = mport->priv; in fsl_local_config_read() 163 static int fsl_local_config_write(struct rio_mport *mport, in fsl_local_config_write() argument 166 struct rio_priv *priv = mport->priv; in fsl_local_config_write() 192 struct rio_priv *priv = mport->priv; in fsl_rio_config_read() 257 struct rio_priv *priv = mport->priv; in fsl_rio_config_write() 306 int fsl_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, in fsl_map_inb_mem() argument 309 struct rio_priv *priv = mport->priv; in fsl_map_inb_mem() 360 struct rio_priv *priv = mport->priv; in fsl_unmap_inb_mem() 736 dbell->mport[i] = port; in fsl_rio_setup() [all …]
|
/linux-6.3-rc2/drivers/rapidio/switches/ |
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 …]
|
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 …]
|
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.3-rc2/drivers/net/ |
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.3-rc2/drivers/rapidio/devices/ |
A D | rio_mport_cdev.c | 261 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_rd() local 306 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_wr() local 363 struct rio_mport *mport = md->mport; in rio_mport_create_outbound_mapping() local 1203 struct rio_mport *mport = md->mport; in rio_mport_create_inbound_mapping() local 1707 mport = md->mport; in rio_mport_add_riodev() 1832 mport = priv->md->mport; in rio_mport_del_riodev() 2150 struct rio_mport *mport = map->md->mport; in mport_release_mapping() local 2303 struct rio_mport *mport = priv->md->mport; in mport_write() local 2375 md->mport = mport; in mport_cdev_add() 2437 mport->name, MAJOR(dev_number), mport->id); in mport_cdev_add() [all …]
|
A D | tsi721.c | 385 struct rio_mport *mport; in tsi721_db_dpc() local 399 mport = &priv->mport; in tsi721_db_dpc() 1737 struct rio_mport *mport = &priv->mport; in tsi721_omsg_handler() local 1863 mport->outb_msg[ch].mcback(mport, dev_id, ch, tx_slot); in tsi721_omsg_handler() 2117 struct rio_mport *mport = &priv->mport; in tsi721_imsg_handler() local 2138 mport->inb_msg[mbox].mcback(mport, in tsi721_imsg_handler() 2648 tsi_debug(EXIT, dev, "%s id=%d", mport->name, mport->id); in tsi721_mport_release() 2661 struct rio_mport *mport = &priv->mport; in tsi721_setup_mport() local 2668 mport->index = 0; in tsi721_setup_mport() 2671 mport->phys_efptr = 0x100; in tsi721_setup_mport() [all …]
|
A D | tsi721_dma.c | 967 struct rio_mport *mport = &priv->mport; in tsi721_register_dma() local 969 INIT_LIST_HEAD(&mport->dma.channels); in tsi721_register_dma() 979 bdma_chan->dchan.device = &mport->dma; in tsi721_register_dma() 994 &mport->dma.channels); in tsi721_register_dma() 998 mport->dma.chancnt = nr_channels; in tsi721_register_dma() 999 dma_cap_zero(mport->dma.cap_mask); in tsi721_register_dma() 1001 dma_cap_set(DMA_SLAVE, mport->dma.cap_mask); in tsi721_register_dma() 1003 mport->dma.dev = &priv->pdev->dev; in tsi721_register_dma() 1011 err = dma_async_device_register(&mport->dma); in tsi721_register_dma() 1020 struct rio_mport *mport = &priv->mport; in tsi721_unregister_dma() local [all …]
|
/linux-6.3-rc2/Documentation/driver-api/rapidio/ |
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 …]
|
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.3-rc2/Documentation/ABI/testing/ |
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.3-rc2/drivers/net/ethernet/sfc/ |
A D | efx_devlink.c | 36 struct mae_mport_desc *mport) in efx_devlink_add_port() argument 43 switch (mport->mport_type) { in efx_devlink_add_port() 46 devlink_port_attrs_pci_vf_set(&mport->dl_port, 0, mport->pf_idx, in efx_devlink_add_port() 47 mport->vf_idx, in efx_devlink_add_port() 50 devlink_port_attrs_pci_pf_set(&mport->dl_port, 0, mport->pf_idx, in efx_devlink_add_port() 58 mport->dl_port.index = mport->mport_id; in efx_devlink_add_port() 60 return devl_port_register(efx->devlink, &mport->dl_port, mport->mport_id); in efx_devlink_add_port() 626 struct mae_mport_desc *mport; in ef100_set_devlink_port() local 640 mport = efx_mae_get_mport(efx, id); in ef100_set_devlink_port() 641 if (!mport) { in ef100_set_devlink_port() [all …]
|
A D | mae.c | 58 efx_dword_t mport; in efx_mae_mport_wire() local 60 EFX_POPULATE_DWORD_2(mport, in efx_mae_mport_wire() 63 *out = EFX_DWORD_VAL(mport); in efx_mae_mport_wire() 68 efx_dword_t mport; in efx_mae_mport_uplink() local 70 EFX_POPULATE_DWORD_3(mport, in efx_mae_mport_uplink() 74 *out = EFX_DWORD_VAL(mport); in efx_mae_mport_uplink() 79 efx_dword_t mport; in efx_mae_mport_vf() local 81 EFX_POPULATE_DWORD_3(mport, in efx_mae_mport_vf() 91 efx_dword_t mport; in efx_mae_mport_mport() local 93 EFX_POPULATE_DWORD_2(mport, in efx_mae_mport_mport() [all …]
|
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);
|
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()
|