• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/rapidio/

Lines Matching refs:mport

55  * @mport: RIO master port from which to allocate the mailbox resource
64 int rio_request_inb_mbox(struct rio_mport *mport,
68 void (*minb) (struct rio_mport * mport, void *dev_id, int mbox,
80 request_resource(&mport->riores[RIO_INB_MBOX_RESOURCE],
86 mport->inb_msg[mbox].res = res;
89 mport->inb_msg[mbox].mcback = minb;
91 rc = rio_open_inb_mbox(mport, dev_id, mbox, entries);
101 * @mport: RIO master port from which to release the mailbox resource
107 int rio_release_inb_mbox(struct rio_mport *mport, int mbox)
109 rio_close_inb_mbox(mport, mbox);
112 return release_resource(mport->inb_msg[mbox].res);
117 * @mport: RIO master port from which to allocate the mailbox resource
126 int rio_request_outb_mbox(struct rio_mport *mport,
130 void (*moutb) (struct rio_mport * mport, void *dev_id, int mbox, int slot))
141 request_resource(&mport->riores[RIO_OUTB_MBOX_RESOURCE],
147 mport->outb_msg[mbox].res = res;
150 mport->outb_msg[mbox].mcback = moutb;
152 rc = rio_open_outb_mbox(mport, dev_id, mbox, entries);
162 * @mport: RIO master port from which to release the mailbox resource
168 int rio_release_outb_mbox(struct rio_mport *mport, int mbox)
170 rio_close_outb_mbox(mport, mbox);
173 return release_resource(mport->outb_msg[mbox].res);
178 * @mport: RIO master port to bind the doorbell callback
188 rio_setup_inb_dbell(struct rio_mport *mport, void *dev_id, struct resource *res,
189 void (*dinb) (struct rio_mport * mport, void *dev_id, u16 src, u16 dst,
204 list_add_tail(&dbell->node, &mport->dbells);
212 * @mport: RIO master port from which to allocate the doorbell resource
222 int rio_request_inb_dbell(struct rio_mport *mport,
226 void (*dinb) (struct rio_mport * mport, void *dev_id, u16 src,
238 request_resource(&mport->riores[RIO_DOORBELL_RESOURCE],
245 rc = rio_setup_inb_dbell(mport, dev_id, res, dinb);
255 * @mport: RIO master port from which to release the doorbell resource
263 int rio_release_inb_dbell(struct rio_mport *mport, u16 start, u16 end)
268 list_for_each_entry(dbell, &mport->dbells, node) {
507 struct rio_mport *mport;
558 mport = rdev->net->hport;
571 rio_mport_read_config_32(mport, destid, hopcount,
580 rio_mport_write_config_32(mport, destid, hopcount,
588 rio_mport_write_config_32(mport, destid, hopcount,
593 rio_mport_write_config_32(mport, destid, hopcount,
602 rio_mport_write_config_32(mport, destid, hopcount,
623 rio_mport_write_config_32(mport, destid, hopcount,
786 * @mport: Master port to issue transaction
793 int rio_std_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount,
797 rio_mport_write_config_32(mport, destid, hopcount,
800 rio_mport_write_config_32(mport, destid, hopcount,
813 * @mport: Master port to issue transaction
820 int rio_std_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount,
826 rio_mport_write_config_32(mport, destid, hopcount,
828 rio_mport_read_config_32(mport, destid, hopcount,
840 * @mport: Master port to issue transaction
845 int rio_std_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount,
853 rio_mport_read_config_32(mport, destid, hopcount,
856 if (mport->sys_size) {
857 rio_mport_read_config_32(mport, destid, hopcount,
873 rio_mport_write_config_32(mport, destid, hopcount,
876 rio_mport_write_config_32(mport, destid, hopcount,