/drivers/rapidio/ |
D | rio-access.c | 44 (struct rio_mport *mport, u32 offset, type *value) \ 51 res = mport->ops->lcread(mport, mport->id, offset, len, &data); \ 68 (struct rio_mport *mport, u32 offset, type value) \ 74 res = mport->ops->lcwrite(mport, mport->id, offset, len, value);\ 104 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type *value) \ 111 res = mport->ops->cread(mport, mport->id, destid, hopcount, offset, len, &data); \ 128 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type value) \ 134 res = mport->ops->cwrite(mport, mport->id, destid, hopcount, offset, len, value); \ 163 int rio_mport_send_doorbell(struct rio_mport *mport, u16 destid, u16 data) in rio_mport_send_doorbell() argument 169 res = mport->ops->dsend(mport, mport->id, destid, data); in rio_mport_send_doorbell()
|
D | rio.c | 107 int rio_request_inb_mbox(struct rio_mport *mport, in rio_request_inb_mbox() argument 111 void (*minb) (struct rio_mport * mport, void *dev_id, int mbox, in rio_request_inb_mbox() 117 if (mport->ops->open_inb_mbox == NULL) in rio_request_inb_mbox() 127 request_resource(&mport->riores[RIO_INB_MBOX_RESOURCE], in rio_request_inb_mbox() 133 mport->inb_msg[mbox].res = res; in rio_request_inb_mbox() 136 mport->inb_msg[mbox].mcback = minb; in rio_request_inb_mbox() 138 rc = mport->ops->open_inb_mbox(mport, dev_id, mbox, entries); in rio_request_inb_mbox() 154 int rio_release_inb_mbox(struct rio_mport *mport, int mbox) in rio_release_inb_mbox() argument 156 if (mport->ops->close_inb_mbox) { in rio_release_inb_mbox() 157 mport->ops->close_inb_mbox(mport, mbox); in rio_release_inb_mbox() [all …]
|
D | rio-scan.c | 991 static int rio_enum_mport(struct rio_mport *mport, u32 flags) in rio_enum_mport() argument 996 printk(KERN_INFO "RIO: enumerate master port %d, %s\n", mport->id, in rio_enum_mport() 997 mport->name); in rio_enum_mport() 1005 if (mport->nnode.next || mport->nnode.prev) in rio_enum_mport() 1009 if (rio_enum_host(mport) < 0) { in rio_enum_mport() 1012 mport->id); in rio_enum_mport() 1018 if (rio_mport_is_active(mport)) { in rio_enum_mport() 1019 net = rio_alloc_net(mport, 1, 0); in rio_enum_mport() 1027 rio_destid_reserve(net, mport->host_deviceid); in rio_enum_mport() 1030 rio_enable_rx_tx_port(mport, 1, 0, 0, 0); in rio_enum_mport() [all …]
|
D | rio-sysfs.c | 349 struct rio_mport *mport = to_rio_mport(dev); in port_destid_show() local 351 if (mport) in port_destid_show() 352 return sprintf(buf, "0x%04x\n", mport->host_deviceid); in port_destid_show() 361 struct rio_mport *mport = to_rio_mport(dev); in sys_size_show() local 363 if (mport) in sys_size_show() 364 return sprintf(buf, "%u\n", mport->sys_size); in sys_size_show()
|
D | rio.h | 22 extern u32 rio_mport_get_feature(struct rio_mport *mport, int local, u16 destid, 28 extern int rio_mport_chk_dev_access(struct rio_mport *mport, u16 destid,
|
/drivers/net/ |
D | rionet.c | 53 struct rio_mport *mport; member 104 if (!(data = rio_get_inb_message(rnet->mport, RIONET_MAILBOX))) in rionet_rx_clean() 137 rio_add_inb_buffer(rnet->mport, RIONET_MAILBOX, in rionet_rx_fill() 149 rio_add_outb_message(rnet->mport, rdev, 0, skb->data, skb->len); in rionet_queue_tx_msg() 184 add_num = nets[rnet->mport->id].nact; in rionet_start_xmit() 197 for (i = 0; i < RIO_MAX_ROUTE_ENTRIES(rnet->mport->sys_size); in rionet_start_xmit() 199 if (nets[rnet->mport->id].active[i]) { in rionet_start_xmit() 201 nets[rnet->mport->id].active[i]); in rionet_start_xmit() 208 if (nets[rnet->mport->id].active[destid]) in rionet_start_xmit() 210 nets[rnet->mport->id].active[destid]); in rionet_start_xmit() [all …]
|
/drivers/rapidio/switches/ |
D | tsi57x.c | 46 tsi57x_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_add_entry() argument 50 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry() 52 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry() 55 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry() 57 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry() 67 tsi57x_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_get_entry() argument 76 rio_mport_read_config_32(mport, destid, hopcount, in tsi57x_route_get_entry() 81 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_get_entry() 83 rio_mport_read_config_32(mport, destid, hopcount, in tsi57x_route_get_entry() 94 tsi57x_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_clr_table() argument [all …]
|
D | tsi568.c | 37 tsi568_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi568_route_add_entry() argument 41 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry() 43 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry() 46 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry() 49 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry() 59 tsi568_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi568_route_get_entry() argument 66 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_get_entry() 68 rio_mport_read_config_32(mport, destid, hopcount, in tsi568_route_get_entry() 71 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_get_entry() 74 rio_mport_read_config_32(mport, destid, hopcount, in tsi568_route_get_entry() [all …]
|
D | idtcps.c | 25 idtcps_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_add_entry() argument 34 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_add_entry() 37 rio_mport_read_config_32(mport, destid, hopcount, in idtcps_route_add_entry() 41 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_add_entry() 49 idtcps_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_get_entry() argument 55 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_get_entry() 58 rio_mport_read_config_32(mport, destid, hopcount, in idtcps_route_get_entry() 72 idtcps_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_clr_table() argument 79 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_clr_table() 81 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_clr_table() [all …]
|
D | idt_gen2.c | 91 idtg2_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_add_entry() argument 105 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() 115 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_add_entry() 124 idtg2_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_get_entry() argument 137 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_get_entry() 140 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_get_entry() 144 rio_mport_read_config_32(mport, destid, hopcount, in idtg2_route_get_entry() 156 idtg2_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_clr_table() argument 169 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_clr_table() [all …]
|
/drivers/rapidio/devices/ |
D | tsi721.c | 55 static int tsi721_lcread(struct rio_mport *mport, int index, u32 offset, in tsi721_lcread() argument 58 struct tsi721_device *priv = mport->priv; in tsi721_lcread() 79 static int tsi721_lcwrite(struct rio_mport *mport, int index, u32 offset, in tsi721_lcwrite() argument 82 struct tsi721_device *priv = mport->priv; in tsi721_lcwrite() 204 static int tsi721_cread_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cread_dma() argument 207 struct tsi721_device *priv = mport->priv; in tsi721_cread_dma() 209 return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, in tsi721_cread_dma() 227 static int tsi721_cwrite_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cwrite_dma() argument 230 struct tsi721_device *priv = mport->priv; in tsi721_cwrite_dma() 233 return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, in tsi721_cwrite_dma() [all …]
|
D | tsi721_dma.c | 858 struct rio_mport *mport = priv->mport; in tsi721_register_dma() local 860 INIT_LIST_HEAD(&mport->dma.channels); in tsi721_register_dma() 870 bdma_chan->dchan.device = &mport->dma; in tsi721_register_dma() 885 &mport->dma.channels); in tsi721_register_dma() 889 mport->dma.chancnt = nr_channels; in tsi721_register_dma() 890 dma_cap_zero(mport->dma.cap_mask); in tsi721_register_dma() 891 dma_cap_set(DMA_PRIVATE, mport->dma.cap_mask); in tsi721_register_dma() 892 dma_cap_set(DMA_SLAVE, mport->dma.cap_mask); in tsi721_register_dma() 894 mport->dma.dev = &priv->pdev->dev; in tsi721_register_dma() 895 mport->dma.device_alloc_chan_resources = tsi721_alloc_chan_resources; in tsi721_register_dma() [all …]
|
D | tsi721.h | 813 struct rio_mport *mport; member
|
/drivers/infiniband/hw/mlx4/ |
D | sysfs.c | 709 struct mlx4_port *mport; in register_one_pkey_tree() local 749 mport = container_of(p, struct mlx4_port, kobj); in register_one_pkey_tree() 750 sysfs_remove_group(p, &mport->pkey_group); in register_one_pkey_tree() 751 sysfs_remove_group(p, &mport->gid_group); in register_one_pkey_tree() 752 remove_vf_smi_entries(mport); in register_one_pkey_tree()
|
/drivers/net/wireless/mwifiex/ |
D | sdio.c | 1252 u32 pkt_len, pkt_type, mport, pind; in mwifiex_sdio_card_to_host_mp_aggr() local 1346 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | in mwifiex_sdio_card_to_host_mp_aggr() 1349 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | in mwifiex_sdio_card_to_host_mp_aggr() 1355 card->mpa_rx.buf_len, mport, 1)) in mwifiex_sdio_card_to_host_mp_aggr() 1682 u32 mport; in mwifiex_host_to_card_mp_aggr() local 1776 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | in mwifiex_host_to_card_mp_aggr() 1779 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | in mwifiex_host_to_card_mp_aggr() 1785 card->mpa_tx.buf_len, mport); in mwifiex_host_to_card_mp_aggr()
|
/drivers/gpu/drm/ |
D | drm_dp_mst_topology.c | 961 struct drm_dp_mst_port *port, *mport; in drm_dp_mst_get_port_ref_locked() local 969 mport = drm_dp_mst_get_port_ref_locked(port->mstb, to_find); in drm_dp_mst_get_port_ref_locked() 970 if (mport) in drm_dp_mst_get_port_ref_locked() 971 return mport; in drm_dp_mst_get_port_ref_locked()
|