Lines Matching refs:rio_mport

88 struct rio_mport;
126 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,
204 #define to_rio_mport(n) container_of(n, struct rio_mport, dev)
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);
257 struct rio_mport { struct
312 struct rio_mport *hport; /* primary port for accessing net */
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,
344 int (*cwrite) (struct rio_mport *mport, int index, u16 destid,
346 int (*dsend) (struct rio_mport *mport, int index, u16 destid, u16 data);
347 int (*pwenable) (struct rio_mport *mport, int enable);
348 int (*open_outb_mbox)(struct rio_mport *mport, void *dev_id,
350 void (*close_outb_mbox)(struct rio_mport *mport, int mbox);
351 int (*open_inb_mbox)(struct rio_mport *mport, void *dev_id,
353 void (*close_inb_mbox)(struct rio_mport *mport, int mbox);
354 int (*add_outb_message)(struct rio_mport *mport, struct rio_dev *rdev,
356 int (*add_inb_buffer)(struct rio_mport *mport, int mbox, void *buf);
357 void *(*get_inb_message)(struct rio_mport *mport, int mbox);
358 int (*map_inb)(struct rio_mport *mport, dma_addr_t lstart,
360 void (*unmap_inb)(struct rio_mport *mport, dma_addr_t lstart);
447 static inline struct rio_mport *dma_to_mport(struct dma_device *ddev) in dma_to_mport()
449 return container_of(ddev, struct rio_mport, dma); in dma_to_mport()
461 int (*enumerate)(struct rio_mport *mport, u32 flags);
462 int (*discover)(struct rio_mport *mport, u32 flags);
479 extern int rio_register_mport(struct rio_mport *);
480 extern int rio_open_inb_mbox(struct rio_mport *, void *, int, int);
481 extern void rio_close_inb_mbox(struct rio_mport *, int);
482 extern int rio_open_outb_mbox(struct rio_mport *, void *, int, int);
483 extern void rio_close_outb_mbox(struct rio_mport *, int);