/linux-master/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 138 rio_mport_send_doorbell(struct rio_mport *mport, u16 destid, u16 data) argument [all...] |
H A D | rio.c | 38 int (*pwcback)(struct rio_mport *mport, void *context, 83 * rio_query_mport - Query mport device attributes 84 * @port: mport device to query 85 * @mport_attr: mport attributes data structure 87 * Returns attributes of specified mport through the 101 * @mport: Master port associated with the RIO network 108 struct rio_net *rio_alloc_net(struct rio_mport *mport) argument 117 mport->net = net; 223 * @mport: RIO master port from which to allocate the mailbox resource 232 int rio_request_inb_mbox(struct rio_mport *mport, argument 285 rio_release_inb_mbox(struct rio_mport *mport, int mbox) argument 317 rio_request_outb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries, void (*moutb) (struct rio_mport * mport, void *dev_id, int mbox, int slot)) argument 369 rio_release_outb_mbox(struct rio_mport *mport, int mbox) argument 402 rio_setup_inb_dbell(struct rio_mport *mport, void *dev_id, struct resource *res, void (*dinb) (struct rio_mport * mport, void *dev_id, u16 src, u16 dst, u16 info)) argument 433 rio_request_inb_dbell(struct rio_mport *mport, void *dev_id, u16 start, u16 end, void (*dinb) (struct rio_mport * mport, void *dev_id, u16 src, u16 dst, u16 info)) argument 474 rio_release_inb_dbell(struct rio_mport *mport, u16 start, u16 end) argument 562 rio_add_mport_pw_handler(struct rio_mport *mport, void *context, int (*pwcback)(struct rio_mport *mport, void *context, union rio_pw_msg *msg, int step)) argument 589 rio_del_mport_pw_handler(struct rio_mport *mport, void *context, int (*pwcback)(struct rio_mport *mport, void *context, union rio_pw_msg *msg, int step)) argument 664 rio_pw_enable(struct rio_mport *mport, int enable) argument 689 rio_map_inb_region(struct rio_mport *mport, dma_addr_t local, u64 rbase, u32 size, u32 rflags) argument 709 rio_unmap_inb_region(struct rio_mport *mport, dma_addr_t lstart) argument 733 rio_map_outb_region(struct rio_mport *mport, u16 destid, u64 rbase, u32 size, u32 rflags, dma_addr_t *local) argument 757 rio_unmap_outb_region(struct rio_mport *mport, u16 destid, u64 rstart) argument 993 rio_mport_chk_dev_access(struct rio_mport *mport, u16 destid, u8 hopcount) argument 1170 rio_inb_pwrite_handler(struct rio_mport *mport, union rio_pw_msg *pw_msg) argument 1426 rio_std_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, u16 table, u16 route_destid, u8 route_port) argument 1454 rio_std_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, u16 table, u16 route_destid, u8 *route_port) argument 1480 rio_std_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, u16 table) argument 1754 struct rio_mport *mport = arg; local 1767 rio_request_mport_dma(struct rio_mport *mport) argument 2048 struct rio_mport *mport; member in struct:rio_disc_work 2142 rio_mport_initialize(struct rio_mport *mport) argument [all...] |
H A D | rio-scan.c | 829 * @mport: Master port associated with the RIO network 837 static struct rio_net *rio_scan_alloc_net(struct rio_mport *mport, argument 842 net = rio_alloc_net(mport); 850 RIO_MAX_ROUTE_ENTRIES(mport->sys_size) 863 idtab->max = RIO_MAX_ROUTE_ENTRIES(mport->sys_size); 869 net->id = mport->id; 870 net->hport = mport; 872 net->dev.parent = &mport->dev; 938 * @mport: Master port to send transactions 946 static int rio_enum_mport(struct rio_mport *mport, u3 argument 1061 rio_disc_mport(struct rio_mport *mport, u32 flags) argument [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_cm.c | 39 DBG_MPORT = BIT(2), /* mport add/remove */ 147 struct rio_mport *mport; member in struct:cm_dev 307 msg = rio_get_inb_message(cm->mport, cmbox); 343 rio_add_inb_buffer(cm->mport, cmbox, cm->rx_buf[i]); 492 if (!rio_mport_is_running(cm->mport)) 588 if (!rio_mport_is_running(cm->mport)) 619 static void riocm_inb_msg_event(struct rio_mport *mport, void *dev_id, argument 624 if (rio_mport_is_running(cm->mport) && !work_pending(&cm->rx_work)) 646 cm->mport->id, slot, cm->tx_cnt); 680 rc = rio_add_outb_message(cm->mport, re 696 riocm_outb_msg_event(struct rio_mport *mport, void *dev_id, int mbox, int slot) argument 2101 struct rio_mport *mport = to_rio_mport(dev); local 2176 struct rio_mport *mport = to_rio_mport(dev); local [all...] |
H A D | rio-sysfs.c | 332 struct rio_mport *mport = to_rio_mport(dev); local 334 if (mport) 335 return sprintf(buf, "0x%04x\n", mport->host_deviceid); 344 struct rio_mport *mport = to_rio_mport(dev); local 346 if (mport) 347 return sprintf(buf, "%u\n", mport->sys_size);
|
/linux-master/arch/powerpc/sysdev/ |
H A D | fsl_rio.h | 30 #define RIO_REGS_WIN(mport) (((struct rio_priv *)(mport->priv))->regs_win) 88 struct rio_mport *mport[MAX_PORT_NUM]; member in struct:fsl_rio_dbell 96 struct rio_mport *mport[MAX_PORT_NUM]; member in struct:fsl_rio_pw 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, in [all...] |
H A D | fsl_rmu.c | 32 #define GET_RMM_HANDLE(mport) \ 33 (((struct rio_priv *)(mport->priv))->rmm_handle) 326 if (fsl_dbell->mport[i]) { 328 &fsl_dbell->mport[i]->dbells, node) { 338 dbell->dinb(fsl_dbell->mport[i], 506 if (pw->mport[i]) 507 rio_inb_pwrite_handler(pw->mport[i], 515 * @mport: Master port implementing the port write unit 518 int fsl_rio_pw_enable(struct rio_mport *mport, int enable) argument 536 * @mport 624 fsl_rio_doorbell_send(struct rio_mport *mport, int index, u16 destid, u16 data) argument 660 fsl_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, void *buffer, size_t len) argument 720 fsl_open_outb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) argument 823 fsl_close_outb_mbox(struct rio_mport *mport, int mbox) argument 852 fsl_open_inb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) argument 924 fsl_close_inb_mbox(struct rio_mport *mport, int mbox) argument 949 fsl_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf) argument 981 fsl_get_inb_message(struct rio_mport *mport, int mbox) argument 1065 fsl_rio_setup_rmu(struct rio_mport *mport, struct device_node *node) argument [all...] |
H A D | fsl_rio.c | 133 * @mport: RapidIO master port info 142 static int fsl_local_config_read(struct rio_mport *mport, argument 145 struct rio_priv *priv = mport->priv; 155 * @mport: RapidIO master port info 164 static int fsl_local_config_write(struct rio_mport *mport, argument 167 struct rio_priv *priv = mport->priv; 178 * @mport: RapidIO master port info 190 fsl_rio_config_read(struct rio_mport *mport, int index, u16 destid, argument 193 struct rio_priv *priv = mport->priv; 243 * @mport 255 fsl_rio_config_write(struct rio_mport *mport, int index, u16 destid, u8 hopcount, u32 offset, int len, u32 val) argument 307 fsl_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, u64 rstart, u64 size, u32 flags) argument 358 fsl_unmap_inb_mem(struct rio_mport *mport, dma_addr_t lstart) argument [all...] |
/linux-master/include/linux/ |
H A D | rio.h | 122 int (*add_entry) (struct rio_mport *mport, u16 destid, u8 hopcount, 124 int (*get_entry) (struct rio_mport *mport, u16 destid, u8 hopcount, 126 int (*clr_table) (struct rio_mport *mport, u16 destid, u8 hopcount, 128 int (*set_domain) (struct rio_mport *mport, u16 destid, u8 hopcount, 130 int (*get_domain) (struct rio_mport *mport, u16 destid, u8 hopcount, 221 void (*mcback) (struct rio_mport * mport, void *dev_id, int mbox, int slot); 234 void (*dinb) (struct rio_mport *mport, void *dev_id, u16 src, u16 dst, u16 info); 244 * @net: RIO net this mport is attached to 258 * @dev: device structure associated with an mport 260 * @dma: DMA device associated with mport 298 rio_mport_is_running(struct rio_mport *mport) argument [all...] |
H A D | rio_drv.h | 230 extern int rio_mport_send_doorbell(struct rio_mport *mport, u16 destid, 302 * @mport: RIO master port containing the outbound queue 311 static inline int rio_add_outb_message(struct rio_mport *mport, argument 315 return mport->ops->add_outb_message(mport, rdev, mbox, 325 * @mport: Master port containing the inbound mailbox 332 static inline int rio_add_inb_buffer(struct rio_mport *mport, int mbox, argument 335 return mport->ops->add_inb_buffer(mport, mbox, buffer); 340 * @mport 345 rio_get_inb_message(struct rio_mport *mport, int mbox) argument [all...] |
/linux-master/drivers/rapidio/switches/ |
H A D | idtcps.c | 21 idtcps_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, argument 30 rio_mport_write_config_32(mport, destid, hopcount, 33 rio_mport_read_config_32(mport, destid, hopcount, 37 rio_mport_write_config_32(mport, destid, hopcount, 45 idtcps_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, argument 51 rio_mport_write_config_32(mport, destid, hopcount, 54 rio_mport_read_config_32(mport, destid, hopcount, 68 idtcps_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, argument 75 rio_mport_write_config_32(mport, destid, hopcount, 77 rio_mport_write_config_32(mport, desti 90 idtcps_set_domain(struct rio_mport *mport, u16 destid, u8 hopcount, u8 sw_domain) argument 102 idtcps_get_domain(struct rio_mport *mport, u16 destid, u8 hopcount, u8 *sw_domain) argument [all...] |
H A D | idt_gen2.c | 87 idtg2_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, argument 101 rio_mport_write_config_32(mport, destid, hopcount, 107 rio_mport_write_config_32(mport, destid, hopcount, 111 rio_mport_write_config_32(mport, destid, hopcount, 120 idtg2_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, argument 133 rio_mport_write_config_32(mport, destid, hopcount, 136 rio_mport_write_config_32(mport, destid, hopcount, 140 rio_mport_read_config_32(mport, destid, hopcount, 152 idtg2_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, argument 165 rio_mport_write_config_32(mport, desti 184 idtg2_set_domain(struct rio_mport *mport, u16 destid, u8 hopcount, u8 sw_domain) argument 196 idtg2_get_domain(struct rio_mport *mport, u16 destid, u8 hopcount, u8 *sw_domain) argument [all...] |
H A D | idt_gen3.c | 37 idtg3_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, argument 55 err = rio_mport_write_config_32(mport, destid, hopcount, 64 err = rio_mport_read_config_32(mport, destid, hopcount, 72 err = rio_mport_write_config_32(mport, destid, hopcount, 79 idtg3_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, argument 88 err = rio_mport_read_config_32(mport, destid, hopcount, 103 err = rio_mport_read_config_32(mport, destid, hopcount, 118 idtg3_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, argument 127 err = rio_mport_write_config_32(mport, destid, hopcount, 137 err = rio_mport_read_config_32(mport, desti [all...] |
/linux-master/drivers/net/ethernet/sfc/ |
H A D | ef100_rep.h | 33 * @mport: m-port ID of corresponding VF 50 u32 mport; member in struct:efx_rep 69 * @mport is an m-port label, *not* an m-port ID! 72 struct efx_rep *efx_ef100_find_rep_by_mport(struct efx_nic *efx, u16 mport);
|
H A D | efx_devlink.c | 44 "Port not on local interface (mport: %u)", 63 "No internal client_ID for port (mport: %u)", 71 "No available MAC for port (mport: %u)", 93 "port mac change not allowed (mport: %u)", 106 "No internal client_ID for port (mport: %u)", 121 "sfc MC_CMD_SET_CLIENT_MAC_ADDRESSES mcdi error (mport: %u)", 140 struct mae_mport_desc *mport) 144 if (!ef100_mport_on_local_intf(efx, mport)) 147 switch (mport->mport_type) { 149 if (mport 139 efx_devlink_add_port(struct efx_nic *efx, struct mae_mport_desc *mport) argument 625 struct mae_mport_desc *mport; local [all...] |
H A D | ef100_rep.c | 250 /* Look up actual mport ID */ 251 rc = efx_mae_lookup_mport(efx, efv->idx, &efv->mport); 254 pci_dbg(efx->pci_dev, "VF %u has mport ID %#x\n", efv->idx, efv->mport); 255 /* mport label should fit in 16 bits */ 256 WARN_ON(efv->mport >> 16); 483 struct efx_rep *efx_ef100_find_rep_by_mport(struct efx_nic *efx, u16 mport) argument 493 if (efv->mport == mport) {
|
H A D | mae.c | 60 efx_dword_t mport; local 62 EFX_POPULATE_DWORD_2(mport, 65 *out = EFX_DWORD_VAL(mport); 70 efx_dword_t mport; local 72 EFX_POPULATE_DWORD_3(mport, 76 *out = EFX_DWORD_VAL(mport); 81 efx_dword_t mport; local 83 EFX_POPULATE_DWORD_3(mport, 87 *out = EFX_DWORD_VAL(mport); 90 /* Constructs an mport selecto 93 efx_dword_t mport; local 1098 struct mae_mport_desc *mport = desc; local 1108 struct mae_mport_desc *mport; local [all...] |
H A D | tc.c | 67 u32 mport; local 72 efx_mae_mport_uplink(efx, &mport); 74 efx_mae_mport_mport(efx, efv->mport, &mport); 75 return mport; 81 u32 mport; local 86 efx_mae_mport_wire(efx, &mport); 88 efx_mae_mport_mport(efx, efv->mport, &mport); 89 return mport; [all...] |
/linux-master/drivers/rapidio/devices/ |
H A D | rio_mport_cdev.c | 3 * RapidIO mport character device 54 DBG_MPORT = BIT(2), /* mport add/remove */ 86 MODULE_DESCRIPTION("RapidIO mport character device driver"); 145 * mport_dev driver-specific structure that represents mport device 146 * @active mport device status flag 150 * @mport associated subsystem's master port device object 153 * @file_list - list of open files on given mport 154 * @properties properties of this mport 167 struct rio_mport *mport; member in struct:mport_dev 220 * md_node node in mport devic 263 struct rio_mport *mport = priv->md->mport; local 308 struct rio_mport *mport = priv->md->mport; local 365 struct rio_mport *mport = md->mport; local 1205 struct rio_mport *mport = md->mport; local 1399 rio_mport_doorbell_handler(struct rio_mport *mport, void *dev_id, u16 src, u16 dst, u16 info) argument 1519 rio_mport_pw_handler(struct rio_mport *mport, void *context, union rio_pw_msg *msg, int step) argument 1685 struct rio_mport *mport; local 1827 struct rio_mport *mport; local 2152 struct rio_mport *mport = map->md->mport; local 2305 struct rio_mport *mport = priv->md->mport; local 2365 mport_cdev_add(struct rio_mport *mport) argument 2544 struct rio_mport *mport = NULL; local 2564 struct rio_mport *mport = NULL; local [all...] |
H A D | tsi721.c | 3 * RapidIO mport driver for Tsi721 PCIExpress-to-SRIO bridge 48 * @mport: RapidIO master port info 58 static int tsi721_lcread(struct rio_mport *mport, int index, u32 offset, argument 61 struct tsi721_device *priv = mport->priv; 73 * @mport: RapidIO master port info 83 static int tsi721_lcwrite(struct rio_mport *mport, int index, u32 offset, argument 86 struct tsi721_device *priv = mport->priv; 204 * @mport: RapidIO master port control structure 215 static int tsi721_cread_dma(struct rio_mport *mport, int index, u16 destid, argument 218 struct tsi721_device *priv = mport 238 tsi721_cwrite_dma(struct rio_mport *mport, int index, u16 destid, u8 hopcount, u32 offset, int len, u32 data) argument 317 tsi721_pw_enable(struct rio_mport *mport, int enable) argument 349 tsi721_dsend(struct rio_mport *mport, int index, u16 destid, u16 data) argument 395 struct rio_mport *mport; local 943 tsi721_map_outb_win(struct rio_mport *mport, u16 destid, u64 rstart, u32 size, u32 flags, dma_addr_t *laddr) argument 1026 tsi721_unmap_outb_win(struct rio_mport *mport, u16 destid, u64 rstart) argument 1110 tsi721_rio_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, u64 rstart, u64 size, u32 flags) argument 1263 tsi721_rio_unmap_inb_mem(struct rio_mport *mport, dma_addr_t lstart) argument 1694 tsi721_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, void *buffer, size_t len) argument 1764 struct rio_mport *mport = &priv->mport; local 1902 tsi721_open_outb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) argument 2083 tsi721_close_outb_mbox(struct rio_mport *mport, int mbox) argument 2146 struct rio_mport *mport = &priv->mport; local 2191 tsi721_open_inb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) argument 2385 tsi721_close_inb_mbox(struct rio_mport *mport, int mbox) argument 2446 tsi721_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf) argument 2477 tsi721_get_inb_message(struct rio_mport *mport, int mbox) argument 2581 tsi721_query_mport(struct rio_mport *mport, struct rio_mport_attr *attr) argument 2681 struct rio_mport *mport = to_rio_mport(dev); local 2698 struct rio_mport *mport = &priv->mport; local [all...] |
H A D | tsi721_dma.c | 969 struct rio_mport *mport = &priv->mport; local 971 INIT_LIST_HEAD(&mport->dma.channels); 981 bdma_chan->dchan.device = &mport->dma; 996 &mport->dma.channels); 1000 mport->dma.chancnt = nr_channels; 1001 dma_cap_zero(mport->dma.cap_mask); 1002 dma_cap_set(DMA_PRIVATE, mport->dma.cap_mask); 1003 dma_cap_set(DMA_SLAVE, mport->dma.cap_mask); 1005 mport 1022 struct rio_mport *mport = &priv->mport; local [all...] |
/linux-master/drivers/net/ |
H A D | rionet.c | 52 struct rio_mport *mport; member in struct:rionet_private 105 if (!(data = rio_get_inb_message(rnet->mport, RIONET_MAILBOX))) 138 rio_add_inb_buffer(rnet->mport, RIONET_MAILBOX, 150 rio_add_outb_message(rnet->mport, rdev, 0, skb->data, skb->len); 182 add_num = nets[rnet->mport->id].nact; 195 for (i = 0; i < RIO_MAX_ROUTE_ENTRIES(rnet->mport->sys_size); 197 if (nets[rnet->mport->id].active[i]) { 199 nets[rnet->mport->id].active[i]); 206 if (nets[rnet->mport->id].active[destid]) 208 nets[rnet->mport 227 rionet_dbell_event(struct rio_mport *mport, void *dev_id, u16 sid, u16 tid, u16 info) argument 266 rionet_inb_msg_event(struct rio_mport *mport, void *dev_id, int mbox, int slot) argument 282 rionet_outb_msg_event(struct rio_mport *mport, void *dev_id, int mbox, int slot) argument 481 rionet_setup_netdev(struct rio_mport *mport, struct net_device *ndev) argument 667 struct rio_mport *mport = to_rio_mport(dev); local [all...] |
/linux-master/drivers/infiniband/hw/mlx4/ |
H A D | sysfs.c | 700 struct mlx4_port *mport; local 740 mport = container_of(p, struct mlx4_port, kobj); 741 sysfs_remove_group(p, &mport->pkey_group); 742 sysfs_remove_group(p, &mport->gid_group); 743 remove_vf_smi_entries(mport);
|
/linux-master/drivers/net/wireless/marvell/mwifiex/ |
H A D | sdio.c | 1747 u32 pkt_len, pkt_type, mport, pind; local 1841 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | 1844 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | 1850 mport = adapter->ioport + card->mpa_rx.start_port; 1853 card->mpa_rx.buf_len, mport, 1)) 2179 u32 mport; local 2274 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | 2277 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | 2283 mport = adapter->ioport + card->mpa_tx.start_port; 2286 card->mpa_tx.buf_len, mport); [all...] |