Home
last modified time | relevance | path

Searched refs:macio_dev (Results 1 – 16 of 16) sorted by relevance

/linux/arch/powerpc/include/asm/
H A Dmacio.h39 struct macio_dev struct
42 struct macio_dev *media_bay; /* Device is part of a media bay */ argument
50 #define to_macio_device(d) container_of(d, struct macio_dev, ofdev.dev) argument
51 #define of_to_macio_device(d) container_of(d, struct macio_dev, ofdev)
53 extern struct macio_dev *macio_dev_get(struct macio_dev *dev);
54 extern void macio_dev_put(struct macio_dev *dev);
61 static inline int macio_resource_count(struct macio_dev *dev) in macio_resource_count()
66 static inline unsigned long macio_resource_start(struct macio_dev *dev, int resource_no) in macio_resource_start()
71 static inline unsigned long macio_resource_end(struct macio_dev *dev, int resource_no) in macio_resource_end()
76 static inline unsigned long macio_resource_len(struct macio_dev *dev, int resource_no) in macio_resource_len()
[all …]
H A Dmediabay.h21 struct macio_dev;
28 extern int check_media_bay(struct macio_dev *bay);
33 extern void lock_media_bay(struct macio_dev *bay);
34 extern void unlock_media_bay(struct macio_dev *bay);
38 static inline int check_media_bay(struct macio_dev *bay) in check_media_bay()
43 static inline void lock_media_bay(struct macio_dev *bay) { } in lock_media_bay()
44 static inline void unlock_media_bay(struct macio_dev *bay) { } in unlock_media_bay()
/linux/drivers/macintosh/
H A Dmacio_asic.c49 struct macio_dev *macio_dev_get(struct macio_dev *dev) in macio_dev_get()
62 void macio_dev_put(struct macio_dev *dev) in macio_dev_put()
73 struct macio_dev *macio_dev; in macio_device_probe() local
77 macio_dev = to_macio_device(dev); in macio_device_probe()
82 macio_dev_get(macio_dev); in macio_device_probe()
86 error = drv->probe(macio_dev, match); in macio_device_probe()
88 macio_dev_put(macio_dev); in macio_device_probe()
95 struct macio_dev * macio_dev = to_macio_device(dev); in macio_device_remove() local
99 drv->remove(macio_dev); in macio_device_remove()
100 macio_dev_put(macio_dev); in macio_device_remove()
[all …]
H A Dmediabay.c61 struct macio_dev *mdev;
390 int check_media_bay(struct macio_dev *baydev) in check_media_bay()
415 void lock_media_bay(struct macio_dev *baydev) in lock_media_bay()
429 void unlock_media_bay(struct macio_dev *baydev) in unlock_media_bay()
448 struct macio_dev *mdev; in mb_broadcast_hotplug()
555 static int media_bay_attach(struct macio_dev *mdev, in media_bay_attach()
615 static int media_bay_suspend(struct macio_dev *mdev, pm_message_t state) in media_bay_suspend()
631 static int media_bay_resume(struct macio_dev *mdev) in media_bay_resume()
H A Drack-meter.c58 struct macio_dev *mdev;
366 static int rackmeter_probe(struct macio_dev* mdev, in rackmeter_probe()
526 static void rackmeter_remove(struct macio_dev *mdev) in rackmeter_remove()
563 static int rackmeter_shutdown(struct macio_dev* mdev) in rackmeter_shutdown()
/linux/sound/aoa/soundbus/i2sbus/
H A Dcore.c153 static int i2sbus_add_dev(struct macio_dev *macio, in i2sbus_add_dev()
336 static int i2sbus_probe(struct macio_dev* dev, const struct of_device_id *match) in i2sbus_probe()
368 static void i2sbus_remove(struct macio_dev *dev) in i2sbus_remove()
378 static int i2sbus_suspend(struct macio_dev* dev, pm_message_t state) in i2sbus_suspend()
402 static int i2sbus_resume(struct macio_dev* dev) in i2sbus_resume()
427 static int i2sbus_shutdown(struct macio_dev* dev) in i2sbus_shutdown()
H A Di2sbus.h59 struct macio_dev *macio;
109 extern int i2sbus_control_init(struct macio_dev* dev,
H A Dcontrol.c20 int i2sbus_control_init(struct macio_dev* dev, struct i2sbus_control **c) in i2sbus_control_init()
/linux/drivers/ata/
H A Dpata_macio.c246 struct macio_dev *mdev;
1130 static int pata_macio_attach(struct macio_dev *mdev, in pata_macio_attach()
1205 static void pata_macio_detach(struct macio_dev *mdev) in pata_macio_detach()
1223 static int pata_macio_suspend(struct macio_dev *mdev, pm_message_t mesg) in pata_macio_suspend()
1230 static int pata_macio_resume(struct macio_dev *mdev) in pata_macio_resume()
1239 static void pata_macio_mb_event(struct macio_dev* mdev, int mb_state) in pata_macio_mb_event()
/linux/drivers/scsi/
H A Dmac53c94.c59 struct macio_dev *mdev;
407 static int mac53c94_probe(struct macio_dev *mdev, const struct of_device_id *match) in mac53c94_probe()
511 static void mac53c94_remove(struct macio_dev *mdev) in mac53c94_remove()
H A Dmesh.c174 struct macio_dev *mdev;
1756 static int mesh_suspend(struct macio_dev *mdev, pm_message_t mesg) in mesh_suspend()
1787 static int mesh_resume(struct macio_dev *mdev) in mesh_resume()
1813 static int mesh_shutdown(struct macio_dev *mdev) in mesh_shutdown()
1847 static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match) in mesh_probe()
1989 static void mesh_remove(struct macio_dev *mdev) in mesh_remove()
/linux/drivers/net/ethernet/apple/
H A Dbmac.c67 struct macio_dev *mdev;
452 static int bmac_suspend(struct macio_dev *mdev, pm_message_t state) in bmac_suspend()
502 static int bmac_resume(struct macio_dev *mdev) in bmac_resume()
1233 static int bmac_probe(struct macio_dev *mdev, const struct of_device_id *match) in bmac_probe()
1593 static void bmac_remove(struct macio_dev *mdev) in bmac_remove()
H A Dmace.c66 struct macio_dev *mdev;
108 static int mace_probe(struct macio_dev *mdev, const struct of_device_id *match) in mace_probe()
275 static void mace_remove(struct macio_dev *mdev) in mace_remove()
/linux/drivers/block/
H A Dswim3.c202 struct macio_dev *mdev;
1082 static void swim3_mb_event(struct macio_dev* mdev, int mb_state) in swim3_mb_event()
1101 static int swim3_add_device(struct macio_dev *mdev, int index) in swim3_add_device()
1189 static int swim3_attach(struct macio_dev *mdev, in swim3_attach()
/linux/drivers/tty/serial/
H A Dpmac_zilog.h23 struct macio_dev *dev;
H A Dpmac_zilog.c1460 static int pmz_attach(struct macio_dev *mdev, const struct of_device_id *match) in pmz_attach()
1496 static void pmz_detach(struct macio_dev *mdev) in pmz_detach()
1514 static int pmz_suspend(struct macio_dev *mdev, pm_message_t pm_state) in pmz_suspend()
1529 static int pmz_resume(struct macio_dev *mdev) in pmz_resume()