Searched refs:rio_dev (Results 1 - 16 of 16) sorted by relevance

/linux-4.4.14/drivers/rapidio/
H A Drio.h30 extern int rio_create_sysfs_dev_files(struct rio_dev *rdev);
34 extern int rio_route_add_entry(struct rio_dev *rdev,
36 extern int rio_route_get_entry(struct rio_dev *rdev, u16 table,
38 extern int rio_route_clr_table(struct rio_dev *rdev, u16 table, int lock);
39 extern int rio_set_port_lockout(struct rio_dev *rdev, u32 pnum, int lock);
40 extern struct rio_dev *rio_get_comptag(u32 comp_tag, struct rio_dev *from);
41 extern int rio_add_device(struct rio_dev *rdev);
46 extern void rio_attach_device(struct rio_dev *rdev);
H A Drio-driver.c31 const struct rio_dev *rdev) rio_match_device()
57 struct rio_dev *rio_dev_get(struct rio_dev *rdev) rio_dev_get()
74 void rio_dev_put(struct rio_dev *rdev) rio_dev_put()
84 * return 0 and set rio_dev->driver when drv claims rio_dev, else error
89 struct rio_dev *rdev = to_rio_dev(dev); rio_device_probe()
120 struct rio_dev *rdev = to_rio_dev(dev); rio_device_remove()
167 void rio_attach_device(struct rio_dev *rdev) rio_attach_device()
185 struct rio_dev *rdev = to_rio_dev(dev); rio_match_bus()
203 struct rio_dev *rdev; rio_uevent()
H A Drio-sysfs.c26 struct rio_dev *rdev = to_rio_dev(dev); \
43 struct rio_dev *rdev = to_rio_dev(dev); routes_show()
63 struct rio_dev *rdev = to_rio_dev(dev); lprev_show()
73 struct rio_dev *rdev = to_rio_dev(dev); lnext_show()
94 struct rio_dev *rdev = to_rio_dev(dev); modalias_show()
128 struct rio_dev *dev = rio_read_config()
200 struct rio_dev *dev = rio_write_config()
270 int rio_create_sysfs_dev_files(struct rio_dev *rdev) rio_create_sysfs_dev_files()
295 void rio_remove_sysfs_dev_files(struct rio_dev *rdev) rio_remove_sysfs_dev_files()
H A Drio.c78 int rio_add_device(struct rio_dev *rdev) rio_add_device()
360 struct resource *rio_request_outb_dbell(struct rio_dev *rdev, u16 start, rio_request_outb_dbell()
387 int rio_release_outb_dbell(struct rio_dev *rdev, struct resource *res) rio_release_outb_dbell()
404 int rio_request_inb_pwrite(struct rio_dev *rdev, rio_request_inb_pwrite()
405 int (*pwcback)(struct rio_dev *rdev, union rio_pw_msg *msg, int step)) rio_request_inb_pwrite()
424 * Removes callback from the rio_dev structure. Returns 0 if the request
427 int rio_release_inb_pwrite(struct rio_dev *rdev) rio_release_inb_pwrite()
547 struct rio_dev *rio_get_comptag(u32 comp_tag, struct rio_dev *from) rio_get_comptag()
550 struct rio_dev *rdev; rio_get_comptag()
574 int rio_set_port_lockout(struct rio_dev *rdev, u32 pnum, int lock) rio_set_port_lockout()
665 rio_chk_dev_route(struct rio_dev *rdev, struct rio_dev **nrdev, int *npnum) rio_chk_dev_route()
669 struct rio_dev *prev = NULL; rio_chk_dev_route()
725 static int rio_chk_dev_access(struct rio_dev *rdev) rio_chk_dev_access()
739 rio_get_input_status(struct rio_dev *rdev, int pnum, u32 *lnkresp) rio_get_input_status()
783 static int rio_clr_err_stopped(struct rio_dev *rdev, u32 pnum, u32 err_status) rio_clr_err_stopped()
785 struct rio_dev *nextdev = rdev->rswitch->nextdev[pnum]; rio_clr_err_stopped()
875 struct rio_dev *rdev; rio_inb_pwrite_handler()
1127 struct rio_dev *rio_get_asm(u16 vid, u16 did, rio_get_asm()
1128 u16 asm_vid, u16 asm_did, struct rio_dev *from) rio_get_asm()
1131 struct rio_dev *rdev; rio_get_asm()
1168 struct rio_dev *rio_get_device(u16 vid, u16 did, struct rio_dev *from) rio_get_device()
1372 int rio_route_add_entry(struct rio_dev *rdev, rio_route_add_entry()
1425 int rio_route_get_entry(struct rio_dev *rdev, u16 table, rio_route_get_entry()
1474 int rio_route_clr_table(struct rio_dev *rdev, u16 table, int lock) rio_route_clr_table()
1542 struct dma_chan *rio_request_dma(struct rio_dev *rdev) rio_request_dma()
1607 struct dma_async_tx_descriptor *rio_dma_prep_slave_sg(struct rio_dev *rdev, rio_dma_prep_slave_sg()
1798 static void rio_fixup_device(struct rio_dev *dev) rio_fixup_device()
1804 struct rio_dev *dev = NULL; rio_init()
H A Drio-scan.c40 static void rio_init_em(struct rio_dev *rdev);
213 struct rio_dev *rdev; rio_clear_locks()
303 struct rio_dev *rdev; rio_release_dev()
318 static int rio_is_switch(struct rio_dev *rdev) rio_is_switch()
341 static struct rio_dev *rio_setup_device(struct rio_net *net, rio_setup_device()
346 struct rio_dev *rdev; rio_setup_device()
352 size = sizeof(struct rio_dev); rio_setup_device()
565 u8 hopcount, struct rio_dev *prev, int prev_port) rio_enum_peer()
567 struct rio_dev *rdev; rio_enum_peer()
765 * @prev: previous rio_dev
773 u8 hopcount, struct rio_dev *prev, int prev_port) rio_disc_peer()
776 struct rio_dev *rdev; rio_disc_peer()
924 struct rio_dev *rdev, *swrdev; rio_update_route_tables()
962 static void rio_init_em(struct rio_dev *rdev) rio_init_em()
1072 struct rio_dev *rdev; rio_build_route_tables()
/linux-4.4.14/include/linux/
H A Drio_drv.h149 static inline int rio_read_config_32(struct rio_dev *rdev, u32 offset, rio_read_config_32()
165 static inline int rio_write_config_32(struct rio_dev *rdev, u32 offset, rio_write_config_32()
181 static inline int rio_read_config_16(struct rio_dev *rdev, u32 offset, rio_read_config_16()
197 static inline int rio_write_config_16(struct rio_dev *rdev, u32 offset, rio_write_config_16()
213 static inline int rio_read_config_8(struct rio_dev *rdev, u32 offset, u8 * data) rio_read_config_8()
228 static inline int rio_write_config_8(struct rio_dev *rdev, u32 offset, u8 data) rio_write_config_8()
245 static inline int rio_send_doorbell(struct rio_dev *rdev, u16 data) rio_send_doorbell()
316 struct rio_dev *rdev, int mbox, rio_add_outb_message()
358 extern struct resource *rio_request_outb_dbell(struct rio_dev *, u16, u16);
359 extern int rio_release_outb_dbell(struct rio_dev *, struct resource *);
362 int rio_claim_resource(struct rio_dev *, int);
363 int rio_request_regions(struct rio_dev *, char *);
364 void rio_release_regions(struct rio_dev *);
365 int rio_request_region(struct rio_dev *, int, char *);
366 void rio_release_region(struct rio_dev *, int);
374 extern int rio_request_inb_pwrite(struct rio_dev *,
375 int (*)(struct rio_dev *, union rio_pw_msg*, int));
376 extern int rio_release_inb_pwrite(struct rio_dev *);
382 struct rio_dev *rio_dev_get(struct rio_dev *);
383 void rio_dev_put(struct rio_dev *);
386 extern struct dma_chan *rio_request_dma(struct rio_dev *rdev);
390 struct rio_dev *rdev, struct dma_chan *dchan,
406 static inline const char *rio_name(struct rio_dev *rdev) rio_name()
418 static inline void *rio_get_drvdata(struct rio_dev *rdev) rio_get_drvdata()
431 static inline void rio_set_drvdata(struct rio_dev *rdev, void *data) rio_set_drvdata()
438 extern struct rio_dev *rio_get_device(u16 vid, u16 did, struct rio_dev *from);
439 extern struct rio_dev *rio_get_asm(u16 vid, u16 did, u16 asm_vid, u16 asm_did,
440 struct rio_dev *from);
H A Drio.h89 struct rio_dev;
107 struct rio_dev *nextdev[0];
136 int (*em_init) (struct rio_dev *dev);
137 int (*em_handle) (struct rio_dev *dev, u8 swport);
141 * struct rio_dev - RIO device info
170 struct rio_dev { struct
193 int (*pwcback) (struct rio_dev *rdev, union rio_pw_msg *msg, int step);
196 struct rio_dev *prev;
200 #define rio_dev_g(n) list_entry(n, struct rio_dev, global_list)
201 #define rio_dev_f(n) list_entry(n, struct rio_dev, net_list)
202 #define to_rio_dev(n) container_of(n, struct rio_dev, dev)
203 #define sw_to_rio_dev(n) container_of(n, struct rio_dev, rswitch[0])
354 int (*add_outb_message)(struct rio_mport *mport, struct rio_dev *rdev,
391 int (*probe) (struct rio_dev * dev, const struct rio_device_id * id);
392 void (*remove) (struct rio_dev * dev);
393 int (*suspend) (struct rio_dev * dev, u32 state);
394 int (*resume) (struct rio_dev * dev);
395 int (*enable_wake) (struct rio_dev * dev, u32 state, int enable);
/linux-4.4.14/drivers/usb/misc/
H A Drio500.c64 struct usb_device *rio_dev; /* init: probe_rio */ member in struct:rio_usb_data
96 dev_info(&rio->rio_dev->dev, "Rio opened.\n"); open_rio()
108 dev_info(&rio->rio_dev->dev, "Rio closed.\n"); close_rio()
124 if (rio->present == 0 || rio->rio_dev == NULL) { ioctl_rio()
155 dev_dbg(&rio->rio_dev->dev, ioctl_rio()
162 result = usb_control_msg(rio->rio_dev, ioctl_rio()
163 usb_rcvctrlpipe(rio-> rio_dev, 0), ioctl_rio()
173 dev_err(&rio->rio_dev->dev, ioctl_rio()
178 dev_dbg(&rio->rio_dev->dev, ioctl_rio()
226 dev_dbg(&rio->rio_dev->dev, ioctl_rio()
233 result = usb_control_msg(rio->rio_dev, ioctl_rio()
234 usb_sndctrlpipe(rio-> rio_dev, 0), ioctl_rio()
244 dev_err(&rio->rio_dev->dev, ioctl_rio()
249 dev_dbg(&rio->rio_dev->dev, ioctl_rio()
290 if (rio->present == 0 || rio->rio_dev == NULL) { write_rio()
309 if (!rio->rio_dev) { write_rio()
318 result = usb_bulk_msg(rio->rio_dev, write_rio()
319 usb_sndbulkpipe(rio->rio_dev, 2), write_rio()
322 dev_dbg(&rio->rio_dev->dev, write_rio()
342 dev_err(&rio->rio_dev->dev, "Write Whoops - %x\n", write_rio()
378 if (rio->present == 0 || rio->rio_dev == NULL) { read_rio()
393 if (!rio->rio_dev) { read_rio()
399 result = usb_bulk_msg(rio->rio_dev, read_rio()
400 usb_rcvbulkpipe(rio->rio_dev, 1), read_rio()
404 dev_dbg(&rio->rio_dev->dev, read_rio()
413 dev_err(&rio->rio_dev->dev, read_rio()
423 dev_err(&rio->rio_dev->dev, read_rio()
478 rio->rio_dev = dev; probe_rio()
518 rio->rio_dev = NULL; disconnect_rio()
/linux-4.4.14/drivers/rapidio/switches/
H A Dtsi568.c115 tsi568_em_init(struct rio_dev *rdev) tsi568_em_init()
144 static int tsi568_probe(struct rio_dev *rdev, const struct rio_device_id *id) tsi568_probe()
160 static void tsi568_remove(struct rio_dev *rdev) tsi568_remove()
H A Didt_gen2.c217 idtg2_em_init(struct rio_dev *rdev) idtg2_em_init()
326 idtg2_em_handler(struct rio_dev *rdev, u8 portnum) idtg2_em_handler()
375 struct rio_dev *rdev = to_rio_dev(dev); idtg2_show_errlog()
393 static int idtg2_sysfs(struct rio_dev *rdev, bool create) idtg2_sysfs()
420 static int idtg2_probe(struct rio_dev *rdev, const struct rio_device_id *id) idtg2_probe()
446 static void idtg2_remove(struct rio_dev *rdev) idtg2_remove()
H A Dtsi57x.c160 tsi57x_em_init(struct rio_dev *rdev) tsi57x_em_init()
215 tsi57x_em_handler(struct rio_dev *rdev, u8 portnum) tsi57x_em_handler()
307 static int tsi57x_probe(struct rio_dev *rdev, const struct rio_device_id *id) tsi57x_probe()
329 static void tsi57x_remove(struct rio_dev *rdev) tsi57x_remove()
H A Didtcps.c133 static int idtcps_probe(struct rio_dev *rdev, const struct rio_device_id *id) idtcps_probe()
159 static void idtcps_remove(struct rio_dev *rdev) idtcps_remove()
/linux-4.4.14/drivers/net/
H A Drionet.c67 struct rio_dev *rdev;
74 struct rio_dev **active;
145 struct rio_dev *rdev) rionet_queue_tx_msg()
401 struct rio_dev *rdev = to_rio_dev(dev); rionet_remove_dev()
470 nets[mport->id].active = (struct rio_dev **)__get_free_pages(GFP_KERNEL, rionet_setup_netdev()
526 struct rio_dev *rdev = to_rio_dev(dev); rionet_add_dev()
/linux-4.4.14/arch/powerpc/sysdev/
H A Dfsl_rio.h137 struct rio_dev *rdev,
H A Dfsl_rmu.c652 fsl_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, fsl_add_outb_message()
/linux-4.4.14/drivers/rapidio/devices/
H A Dtsi721.c1301 tsi721_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, tsi721_add_outb_message()

Completed in 296 milliseconds