Home
last modified time | relevance | path

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

/linux-4.1.27/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.c107 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 …]
Drio-scan.c991 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 …]
Drio-sysfs.c349 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()
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,
/linux-4.1.27/include/linux/
Drio.h126 int (*add_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,
128 int (*get_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,
130 int (*clr_table) (struct rio_mport *mport, u16 destid, u8 hopcount,
132 int (*set_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,
134 int (*get_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,
213 void (*mcback) (struct rio_mport * mport, void *dev_id, int mbox, int slot);
226 void (*dinb) (struct rio_mport *mport, void *dev_id, u16 src, u16 dst, u16 info);
338 int (*lcread) (struct rio_mport *mport, int index, u32 offset, int len,
340 int (*lcwrite) (struct rio_mport *mport, int index, u32 offset, int len,
342 int (*cread) (struct rio_mport *mport, int index, u16 destid,
[all …]
Drio_drv.h234 extern int rio_mport_send_doorbell(struct rio_mport *mport, u16 destid,
315 static inline int rio_add_outb_message(struct rio_mport *mport, in rio_add_outb_message() argument
319 return mport->ops->add_outb_message(mport, rdev, mbox, in rio_add_outb_message()
336 static inline int rio_add_inb_buffer(struct rio_mport *mport, int mbox, in rio_add_inb_buffer() argument
339 return mport->ops->add_inb_buffer(mport, mbox, buffer); in rio_add_inb_buffer()
349 static inline void *rio_get_inb_message(struct rio_mport *mport, int mbox) in rio_get_inb_message() argument
351 return mport->ops->get_inb_message(mport, mbox); in rio_get_inb_message()
369 extern int rio_map_inb_region(struct rio_mport *mport, dma_addr_t local,
371 extern void rio_unmap_inb_region(struct rio_mport *mport, dma_addr_t lstart);
387 extern struct dma_chan *rio_request_mport_dma(struct rio_mport *mport);
/linux-4.1.27/arch/powerpc/sysdev/
Dfsl_rio.h34 #define RIO_REGS_WIN(mport) (((struct rio_priv *)(mport->priv))->regs_win) argument
92 struct rio_mport *mport[MAX_PORT_NUM]; member
127 extern int fsl_rio_setup_rmu(struct rio_mport *mport,
130 extern int fsl_rio_pw_enable(struct rio_mport *mport, int enable);
134 extern int fsl_rio_doorbell_send(struct rio_mport *mport,
136 extern int fsl_add_outb_message(struct rio_mport *mport,
139 extern int fsl_open_outb_mbox(struct rio_mport *mport,
141 extern void fsl_close_outb_mbox(struct rio_mport *mport, int mbox);
142 extern int fsl_open_inb_mbox(struct rio_mport *mport,
144 extern void fsl_close_inb_mbox(struct rio_mport *mport, int mbox);
[all …]
Dfsl_rmu.c36 #define GET_RMM_HANDLE(mport) \ argument
37 (((struct rio_priv *)(mport->priv))->rmm_handle)
328 if (fsl_dbell->mport[i]) { in fsl_rio_dbell_handler()
330 &fsl_dbell->mport[i]->dbells, node) { in fsl_rio_dbell_handler()
340 dbell->dinb(fsl_dbell->mport[i], in fsl_rio_dbell_handler()
516 int fsl_rio_pw_enable(struct rio_mport *mport, int enable) in fsl_rio_pw_enable() argument
622 int fsl_rio_doorbell_send(struct rio_mport *mport, in fsl_rio_doorbell_send() argument
652 fsl_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, in fsl_add_outb_message() argument
655 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); in fsl_add_outb_message()
679 desc->dattr = 0x28000000 | ((mport->index) << 20); in fsl_add_outb_message()
[all …]
Dfsl_rio.c137 static int fsl_local_config_read(struct rio_mport *mport, in fsl_local_config_read() argument
140 struct rio_priv *priv = mport->priv; in fsl_local_config_read()
159 static int fsl_local_config_write(struct rio_mport *mport, in fsl_local_config_write() argument
162 struct rio_priv *priv = mport->priv; in fsl_local_config_write()
185 fsl_rio_config_read(struct rio_mport *mport, int index, u16 destid, in fsl_rio_config_read() argument
188 struct rio_priv *priv = mport->priv; in fsl_rio_config_read()
245 fsl_rio_config_write(struct rio_mport *mport, int index, u16 destid, in fsl_rio_config_write() argument
248 struct rio_priv *priv = mport->priv; in fsl_rio_config_write()
291 int fsl_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, in fsl_map_inb_mem() argument
294 struct rio_priv *priv = mport->priv; in fsl_map_inb_mem()
[all …]
/linux-4.1.27/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 …]
/linux-4.1.27/drivers/rapidio/switches/
Dtsi568.c37 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 …]
Dtsi57x.c46 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 …]
Didtcps.c25 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 …]
Didt_gen2.c91 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 …]
/linux-4.1.27/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.c858 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 …]
Dtsi721.h813 struct rio_mport *mport; member
/linux-4.1.27/Documentation/rapidio/
Dsysfs.txt102 process on specific mport device, a user needs to write mport_ID (not
104 number (0 ... RIO_MAX_MPORTS) assigned to the mport device.
115 "Master Port" or "mport") are presented in sysfs as the special class of
119 named as "rapidioN" where N = mport ID registered with RapidIO subsystem.
121 NOTE: An mport ID is not a RapidIO destination ID assigned to a given local
122 mport device.
124 Each mport device subdirectory in addition to standard entries contains the
128 mport device. If value 0xFFFFFFFF is returned this means that
129 no valid destination ID have been assigned to the mport (yet).
137 After enumeration or discovery was performed for a given mport device,
[all …]
Dtsi721.txt1 RapidIO subsystem mport driver for IDT Tsi721 PCI Express-to-SRIO bridge.
6 This driver implements all currently defined RapidIO mport callback functions.
25 Tsi721 mport driver supports DMA data transfers between local system memory and
34 If Tsi721 mport driver have been built with RAPIDIO_DMA_ENGINE support included,
Drapidio.txt34 A master port (or mport) is a RapidIO interface controller that is local to the
42 RapidIO master ports are serviced by subsystem specific mport device drivers
50 A RapidIO device is any endpoint (other than mport) or switch in the network.
96 register at least one master port within the RapidIO network. To register mport
117 simply to all available mports OR individually to the specified mport device.
162 "rapidio.hdid=" with a list of destination ID assignments in order of mport
177 (i) if "hdid=" parameter is omitted all available mport will be assigned
210 discovery for all known mport devices.
222 an enumeration or discovery process on specific mport device, a user needs to
224 sequential number (0 ... RIO_MAX_MPORTS) assigned during mport device
[all …]
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dsysfs.c713 struct mlx4_port *mport; in register_one_pkey_tree() local
753 mport = container_of(p, struct mlx4_port, kobj); in register_one_pkey_tree()
754 sysfs_remove_group(p, &mport->pkey_group); in register_one_pkey_tree()
755 sysfs_remove_group(p, &mport->gid_group); in register_one_pkey_tree()
756 remove_vf_smi_entries(mport); in register_one_pkey_tree()
/linux-4.1.27/drivers/net/wireless/mwifiex/
Dsdio.c1208 u32 pkt_len, pkt_type, mport, pind; in mwifiex_sdio_card_to_host_mp_aggr() local
1295 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | in mwifiex_sdio_card_to_host_mp_aggr()
1298 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | in mwifiex_sdio_card_to_host_mp_aggr()
1304 card->mpa_rx.buf_len, mport, 1)) in mwifiex_sdio_card_to_host_mp_aggr()
1617 u32 mport; in mwifiex_host_to_card_mp_aggr() local
1706 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | in mwifiex_host_to_card_mp_aggr()
1709 mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | in mwifiex_host_to_card_mp_aggr()
1715 card->mpa_tx.buf_len, mport); in mwifiex_host_to_card_mp_aggr()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_dp_mst_topology.c951 struct drm_dp_mst_port *port, *mport; in drm_dp_mst_get_port_ref_locked() local
959 mport = drm_dp_mst_get_port_ref_locked(port->mstb, to_find); in drm_dp_mst_get_port_ref_locked()
960 if (mport) in drm_dp_mst_get_port_ref_locked()
961 return mport; in drm_dp_mst_get_port_ref_locked()