Lines Matching refs:rio_mport

84 struct rio_mport;
122 int (*add_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,
124 int (*get_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,
126 int (*clr_table) (struct rio_mport *mport, u16 destid, u8 hopcount,
128 int (*set_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,
130 int (*get_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,
211 #define to_rio_mport(n) container_of(n, struct rio_mport, dev)
221 void (*mcback) (struct rio_mport * mport, void *dev_id, int mbox, int slot);
234 void (*dinb) (struct rio_mport *mport, void *dev_id, u16 src, u16 dst, u16 info);
265 struct rio_mport { struct
298 static inline int rio_mport_is_running(struct rio_mport *mport) in rio_mport_is_running() argument
325 struct rio_mport *hport; /* primary port for accessing net */
400 int (*lcread) (struct rio_mport *mport, int index, u32 offset, int len,
402 int (*lcwrite) (struct rio_mport *mport, int index, u32 offset, int len,
404 int (*cread) (struct rio_mport *mport, int index, u16 destid,
406 int (*cwrite) (struct rio_mport *mport, int index, u16 destid,
408 int (*dsend) (struct rio_mport *mport, int index, u16 destid, u16 data);
409 int (*pwenable) (struct rio_mport *mport, int enable);
410 int (*open_outb_mbox)(struct rio_mport *mport, void *dev_id,
412 void (*close_outb_mbox)(struct rio_mport *mport, int mbox);
413 int (*open_inb_mbox)(struct rio_mport *mport, void *dev_id,
415 void (*close_inb_mbox)(struct rio_mport *mport, int mbox);
416 int (*add_outb_message)(struct rio_mport *mport, struct rio_dev *rdev,
418 int (*add_inb_buffer)(struct rio_mport *mport, int mbox, void *buf);
419 void *(*get_inb_message)(struct rio_mport *mport, int mbox);
420 int (*map_inb)(struct rio_mport *mport, dma_addr_t lstart,
422 void (*unmap_inb)(struct rio_mport *mport, dma_addr_t lstart);
423 int (*query_mport)(struct rio_mport *mport,
425 int (*map_outb)(struct rio_mport *mport, u16 destid, u64 rstart,
427 void (*unmap_outb)(struct rio_mport *mport, u16 destid, u64 rstart);
516 static inline struct rio_mport *dma_to_mport(struct dma_device *ddev) in dma_to_mport()
518 return container_of(ddev, struct rio_mport, dma); in dma_to_mport()
530 int (*enumerate)(struct rio_mport *mport, u32 flags);
531 int (*discover)(struct rio_mport *mport, u32 flags);
548 extern int rio_mport_initialize(struct rio_mport *);
549 extern int rio_register_mport(struct rio_mport *);
550 extern int rio_unregister_mport(struct rio_mport *);
551 extern int rio_open_inb_mbox(struct rio_mport *, void *, int, int);
552 extern void rio_close_inb_mbox(struct rio_mport *, int);
553 extern int rio_open_outb_mbox(struct rio_mport *, void *, int, int);
554 extern void rio_close_outb_mbox(struct rio_mport *, int);
555 extern int rio_query_mport(struct rio_mport *port,