Home
last modified time | relevance | path

Searched refs:mport (Results 1 – 21 of 21) sorted by relevance

/drivers/rapidio/
Drio.c38 int (*pwcback)(struct rio_mport *mport, void *context,
108 struct rio_net *rio_alloc_net(struct rio_mport *mport) in rio_alloc_net() argument
117 mport->net = net; in rio_alloc_net()
232 int rio_request_inb_mbox(struct rio_mport *mport, in rio_request_inb_mbox() argument
236 void (*minb) (struct rio_mport * mport, void *dev_id, int mbox, in rio_request_inb_mbox()
242 if (!mport->ops->open_inb_mbox) in rio_request_inb_mbox()
250 rc = request_resource(&mport->riores[RIO_INB_MBOX_RESOURCE], in rio_request_inb_mbox()
257 mport->inb_msg[mbox].res = res; in rio_request_inb_mbox()
260 mport->inb_msg[mbox].mcback = minb; in rio_request_inb_mbox()
262 rc = mport->ops->open_inb_mbox(mport, dev_id, mbox, entries); in rio_request_inb_mbox()
[all …]
Drio-access.c34 (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()
Drio-scan.c837 static struct rio_net *rio_scan_alloc_net(struct rio_mport *mport, in rio_scan_alloc_net() argument
842 net = rio_alloc_net(mport); in rio_scan_alloc_net()
850 RIO_MAX_ROUTE_ENTRIES(mport->sys_size) in rio_scan_alloc_net()
863 idtab->max = RIO_MAX_ROUTE_ENTRIES(mport->sys_size); in rio_scan_alloc_net()
869 net->id = mport->id; in rio_scan_alloc_net()
870 net->hport = mport; in rio_scan_alloc_net()
872 net->dev.parent = &mport->dev; in rio_scan_alloc_net()
946 static int rio_enum_mport(struct rio_mport *mport, u32 flags) in rio_enum_mport() argument
951 printk(KERN_INFO "RIO: enumerate master port %d, %s\n", mport->id, in rio_enum_mport()
952 mport->name); in rio_enum_mport()
[all …]
Drio_cm.c147 struct rio_mport *mport; member
305 msg = rio_get_inb_message(cm->mport, cmbox); in riocm_rx_get_msg()
341 rio_add_inb_buffer(cm->mport, cmbox, cm->rx_buf[i]); in riocm_rx_fill()
490 if (!rio_mport_is_running(cm->mport)) in rio_cm_handler()
586 if (!rio_mport_is_running(cm->mport)) in rio_ibmsg_handler()
617 static void riocm_inb_msg_event(struct rio_mport *mport, void *dev_id, in riocm_inb_msg_event() argument
622 if (rio_mport_is_running(cm->mport) && !work_pending(&cm->rx_work)) in riocm_inb_msg_event()
644 cm->mport->id, slot, cm->tx_cnt); in rio_txcq_handler()
678 rc = rio_add_outb_message(cm->mport, req->rdev, cmbox, in rio_txcq_handler()
694 static void riocm_outb_msg_event(struct rio_mport *mport, void *dev_id, in riocm_outb_msg_event() argument
[all …]
Drio-sysfs.c332 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()
Drio.h18 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);
DKconfig92 tristate "RapidIO /dev mport device driver"
95 This option includes generic RapidIO mport device driver which
97 operations through selected RapidIO mport.
/drivers/rapidio/switches/
Dtsi57x.c42 tsi57x_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_add_entry() argument
46 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
48 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
51 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
53 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
63 tsi57x_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_get_entry() argument
72 rio_mport_read_config_32(mport, destid, hopcount, in tsi57x_route_get_entry()
77 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_get_entry()
79 rio_mport_read_config_32(mport, destid, hopcount, in tsi57x_route_get_entry()
90 tsi57x_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_clr_table() argument
[all …]
Dtsi568.c33 tsi568_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi568_route_add_entry() argument
37 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
39 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
42 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
45 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
55 tsi568_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi568_route_get_entry() argument
62 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
64 rio_mport_read_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
67 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
70 rio_mport_read_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
[all …]
Didtcps.c21 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()
45 idtcps_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_get_entry() argument
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()
68 idtcps_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_clr_table() argument
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()
[all …]
Didt_gen2.c87 idtg2_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_add_entry() argument
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()
120 idtg2_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_get_entry() argument
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()
152 idtg2_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_clr_table() argument
165 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_clr_table()
[all …]
Didt_gen3.c37 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 …]
/drivers/net/
Drionet.c52 struct rio_mport *mport; member
105 if (!(data = rio_get_inb_message(rnet->mport, RIONET_MAILBOX))) in rionet_rx_clean()
138 rio_add_inb_buffer(rnet->mport, RIONET_MAILBOX, in rionet_rx_fill()
150 rio_add_outb_message(rnet->mport, rdev, 0, skb->data, skb->len); in rionet_queue_tx_msg()
182 add_num = nets[rnet->mport->id].nact; in rionet_start_xmit()
195 for (i = 0; i < RIO_MAX_ROUTE_ENTRIES(rnet->mport->sys_size); in rionet_start_xmit()
197 if (nets[rnet->mport->id].active[i]) { in rionet_start_xmit()
199 nets[rnet->mport->id].active[i]); in rionet_start_xmit()
206 if (nets[rnet->mport->id].active[destid]) in rionet_start_xmit()
208 nets[rnet->mport->id].active[destid]); in rionet_start_xmit()
[all …]
/drivers/rapidio/devices/
Drio_mport_cdev.c167 struct rio_mport *mport; member
261 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_rd() local
284 ret = __rio_local_read_config_32(mport, in rio_mport_maint_rd()
287 ret = rio_mport_read_config_32(mport, maint_io.rioid, in rio_mport_maint_rd()
306 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_wr() local
337 ret = __rio_local_write_config_32(mport, in rio_mport_maint_wr()
340 ret = rio_mport_write_config_32(mport, maint_io.rioid, in rio_mport_maint_wr()
363 struct rio_mport *mport = md->mport; in rio_mport_create_outbound_mapping() local
373 ret = rio_map_outb_region(mport, rioid, raddr, size, 0, paddr); in rio_mport_create_outbound_mapping()
466 if (!md->mport->ops->unmap_outb) in rio_mport_obw_free()
[all …]
Dtsi721.c57 static int tsi721_lcread(struct rio_mport *mport, int index, u32 offset, in tsi721_lcread() argument
60 struct tsi721_device *priv = mport->priv; in tsi721_lcread()
81 static int tsi721_lcwrite(struct rio_mport *mport, int index, u32 offset, in tsi721_lcwrite() argument
84 struct tsi721_device *priv = mport->priv; in tsi721_lcwrite()
213 static int tsi721_cread_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cread_dma() argument
216 struct tsi721_device *priv = mport->priv; in tsi721_cread_dma()
218 return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, in tsi721_cread_dma()
236 static int tsi721_cwrite_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cwrite_dma() argument
239 struct tsi721_device *priv = mport->priv; in tsi721_cwrite_dma()
242 return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, in tsi721_cwrite_dma()
[all …]
Dtsi721_dma.c967 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()
1000 dma_cap_set(DMA_PRIVATE, 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()
1004 mport->dma.device_alloc_chan_resources = tsi721_alloc_chan_resources; in tsi721_register_dma()
[all …]
Dtsi721.h869 struct rio_mport mport; member
/drivers/infiniband/hw/mlx4/
Dsysfs.c700 struct mlx4_port *mport; in register_one_pkey_tree() local
740 mport = container_of(p, struct mlx4_port, kobj); in register_one_pkey_tree()
741 sysfs_remove_group(p, &mport->pkey_group); in register_one_pkey_tree()
742 sysfs_remove_group(p, &mport->gid_group); in register_one_pkey_tree()
743 remove_vf_smi_entries(mport); in register_one_pkey_tree()
/drivers/net/wireless/marvell/mwifiex/
Dsdio.c1712 u32 pkt_len, pkt_type, mport, pind; in mwifiex_sdio_card_to_host_mp_aggr() local
1806 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | in mwifiex_sdio_card_to_host_mp_aggr()
1809 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | in mwifiex_sdio_card_to_host_mp_aggr()
1815 mport = adapter->ioport + card->mpa_rx.start_port; in mwifiex_sdio_card_to_host_mp_aggr()
1818 card->mpa_rx.buf_len, mport, 1)) in mwifiex_sdio_card_to_host_mp_aggr()
2144 u32 mport; in mwifiex_host_to_card_mp_aggr() local
2239 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | in mwifiex_host_to_card_mp_aggr()
2242 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | in mwifiex_host_to_card_mp_aggr()
2248 mport = adapter->ioport + card->mpa_tx.start_port; in mwifiex_host_to_card_mp_aggr()
2251 card->mpa_tx.buf_len, mport); in mwifiex_host_to_card_mp_aggr()
[all …]
/drivers/scsi/mpt3sas/
Dmpt3sas_scsih.c5937 struct hba_port *port, *port_next, *mport; in _scsih_update_vphys_after_reset() local
6055 mport = mpt3sas_get_port_by_id(ioc, port_id, 1); in _scsih_update_vphys_after_reset()
6056 if (!mport) { in _scsih_update_vphys_after_reset()
6057 mport = kzalloc( in _scsih_update_vphys_after_reset()
6059 if (!mport) in _scsih_update_vphys_after_reset()
6061 mport->port_id = port_id; in _scsih_update_vphys_after_reset()
6064 __func__, mport, mport->port_id); in _scsih_update_vphys_after_reset()
6065 list_add_tail(&mport->list, in _scsih_update_vphys_after_reset()
6075 if (port != mport) { in _scsih_update_vphys_after_reset()
6076 if (!mport->vphys_mask) in _scsih_update_vphys_after_reset()
[all …]
/drivers/gpu/drm/
Ddrm_dp_mst_topology.c2006 struct drm_dp_mst_port *port, *mport; in drm_dp_mst_topology_get_port_validated_locked() local
2013 mport = drm_dp_mst_topology_get_port_validated_locked( in drm_dp_mst_topology_get_port_validated_locked()
2015 if (mport) in drm_dp_mst_topology_get_port_validated_locked()
2016 return mport; in drm_dp_mst_topology_get_port_validated_locked()