Home
last modified time | relevance | path

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

/drivers/rapidio/
Drio-access.c44 (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()
Drio.c96 int rio_request_inb_mbox(struct rio_mport *mport, in rio_request_inb_mbox() argument
100 void (*minb) (struct rio_mport * mport, void *dev_id, int mbox, in rio_request_inb_mbox()
106 if (mport->ops->open_inb_mbox == NULL) in rio_request_inb_mbox()
116 request_resource(&mport->riores[RIO_INB_MBOX_RESOURCE], in rio_request_inb_mbox()
122 mport->inb_msg[mbox].res = res; in rio_request_inb_mbox()
125 mport->inb_msg[mbox].mcback = minb; in rio_request_inb_mbox()
127 rc = mport->ops->open_inb_mbox(mport, dev_id, mbox, entries); in rio_request_inb_mbox()
143 int rio_release_inb_mbox(struct rio_mport *mport, int mbox) in rio_release_inb_mbox() argument
145 if (mport->ops->close_inb_mbox) { in rio_release_inb_mbox()
146 mport->ops->close_inb_mbox(mport, mbox); in rio_release_inb_mbox()
[all …]
Drio-scan.c1144 int rio_enum_mport(struct rio_mport *mport, u32 flags) in rio_enum_mport() argument
1149 printk(KERN_INFO "RIO: enumerate master port %d, %s\n", mport->id, in rio_enum_mport()
1150 mport->name); in rio_enum_mport()
1158 if (mport->nnode.next || mport->nnode.prev) in rio_enum_mport()
1162 if (rio_enum_host(mport) < 0) { in rio_enum_mport()
1165 mport->id); in rio_enum_mport()
1171 if (rio_mport_is_active(mport)) { in rio_enum_mport()
1172 net = rio_alloc_net(mport, 1, 0); in rio_enum_mport()
1180 rio_destid_reserve(net, mport->host_deviceid); in rio_enum_mport()
1183 rio_enable_rx_tx_port(mport, 1, 0, 0, 0); in rio_enum_mport()
[all …]
Drio.h22 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,
31 extern int rio_std_route_add_entry(struct rio_mport *mport, u16 destid,
34 extern int rio_std_route_get_entry(struct rio_mport *mport, u16 destid,
37 extern int rio_std_route_clr_table(struct rio_mport *mport, u16 destid,
/drivers/rapidio/switches/
Dtsi568.c36 tsi568_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi568_route_add_entry() argument
40 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()
48 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
58 tsi568_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi568_route_get_entry() argument
65 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
67 rio_mport_read_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
70 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
73 rio_mport_read_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
[all …]
Dtsi57x.c45 tsi57x_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_add_entry() argument
49 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()
54 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
56 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
66 tsi57x_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_get_entry() argument
75 rio_mport_read_config_32(mport, destid, hopcount, in tsi57x_route_get_entry()
80 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_get_entry()
82 rio_mport_read_config_32(mport, destid, hopcount, in tsi57x_route_get_entry()
93 tsi57x_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_clr_table() argument
[all …]
Didtcps.c24 idtcps_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_add_entry() argument
33 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_add_entry()
36 rio_mport_read_config_32(mport, destid, hopcount, in idtcps_route_add_entry()
40 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_add_entry()
48 idtcps_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_get_entry() argument
54 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_get_entry()
57 rio_mport_read_config_32(mport, destid, hopcount, in idtcps_route_get_entry()
71 idtcps_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_clr_table() argument
78 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_clr_table()
80 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_clr_table()
[all …]
Didt_gen2.c88 idtg2_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_add_entry() argument
102 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_add_entry()
108 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_add_entry()
112 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_add_entry()
121 idtg2_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_get_entry() argument
134 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_get_entry()
137 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_get_entry()
141 rio_mport_read_config_32(mport, destid, hopcount, in idtg2_route_get_entry()
153 idtg2_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_clr_table() argument
166 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_clr_table()
[all …]
Dtsi500.c23 tsi500_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, u16 table, u16 route_desti… in tsi500_route_add_entry() argument
30 rio_mport_read_config_32(mport, destid, hopcount, offset, &result); in tsi500_route_add_entry()
33 …rio_mport_write_config_32(mport, destid, hopcount, offset + (0x20000*i), result | (route_port << (… in tsi500_route_add_entry()
36 rio_mport_read_config_32(mport, destid, hopcount, offset + (0x20000*table), &result); in tsi500_route_add_entry()
38 …rio_mport_write_config_32(mport, destid, hopcount, offset + (0x20000*table), result | (route_port … in tsi500_route_add_entry()
45 tsi500_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, u16 table, u16 route_desti… in tsi500_route_get_entry() argument
52 rio_mport_read_config_32(mport, destid, hopcount, offset, &result); in tsi500_route_get_entry()
54 rio_mport_read_config_32(mport, destid, hopcount, offset + (0x20000*table), &result); in tsi500_route_get_entry()
/drivers/net/
Drionet.c53 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/devices/
Dtsi721.c55 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 …]
Dtsi721_dma.c773 struct rio_mport *mport = priv->mport; in tsi721_register_dma() local
775 mport->dma.dev = &priv->pdev->dev; in tsi721_register_dma()
776 mport->dma.chancnt = nr_channels; in tsi721_register_dma()
778 INIT_LIST_HEAD(&mport->dma.channels); in tsi721_register_dma()
789 bdma_chan->dchan.device = &mport->dma; in tsi721_register_dma()
804 &mport->dma.channels); in tsi721_register_dma()
807 dma_cap_zero(mport->dma.cap_mask); in tsi721_register_dma()
808 dma_cap_set(DMA_PRIVATE, mport->dma.cap_mask); in tsi721_register_dma()
809 dma_cap_set(DMA_SLAVE, mport->dma.cap_mask); in tsi721_register_dma()
811 mport->dma.device_alloc_chan_resources = tsi721_alloc_chan_resources; in tsi721_register_dma()
[all …]
Dtsi721.h812 struct rio_mport *mport; member
/drivers/infiniband/hw/mlx4/
Dsysfs.c625 struct mlx4_port *mport; in register_one_pkey_tree() local
660 mport = container_of(p, struct mlx4_port, kobj); in register_one_pkey_tree()
661 sysfs_remove_group(p, &mport->pkey_group); in register_one_pkey_tree()
662 sysfs_remove_group(p, &mport->gid_group); in register_one_pkey_tree()