Lines Matching refs:umc_dev
64 struct umc_dev { struct
73 #define to_umc_dev(d) container_of(d, struct umc_dev, dev) argument
85 int (*match)(struct umc_driver *, struct umc_dev *);
88 int (*probe)(struct umc_dev *);
89 void (*remove)(struct umc_dev *);
90 int (*pre_reset)(struct umc_dev *);
91 int (*post_reset)(struct umc_dev *);
100 struct umc_dev *umc_device_create(struct device *parent, int n);
101 int __must_check umc_device_register(struct umc_dev *umc);
102 void umc_device_unregister(struct umc_dev *umc);
122 int umc_match_pci_id(struct umc_driver *umc_drv, struct umc_dev *umc);
141 static inline struct pci_dev *umc_parent_pci_dev(struct umc_dev *umc_dev) in umc_parent_pci_dev() argument
144 if (dev_is_pci(umc_dev->dev.parent)) in umc_parent_pci_dev()
145 pci_dev = to_pci_dev(umc_dev->dev.parent); in umc_parent_pci_dev()
157 static inline struct umc_dev *umc_dev_get(struct umc_dev *umc_dev) in umc_dev_get() argument
159 get_device(&umc_dev->dev); in umc_dev_get()
160 return umc_dev; in umc_dev_get()
167 static inline void umc_dev_put(struct umc_dev *umc_dev) in umc_dev_put() argument
169 put_device(&umc_dev->dev); in umc_dev_put()
177 static inline void umc_set_drvdata(struct umc_dev *umc_dev, void *data) in umc_set_drvdata() argument
179 dev_set_drvdata(&umc_dev->dev, data); in umc_set_drvdata()
186 static inline void *umc_get_drvdata(struct umc_dev *umc_dev) in umc_get_drvdata() argument
188 return dev_get_drvdata(&umc_dev->dev); in umc_get_drvdata()
191 int umc_controller_reset(struct umc_dev *umc);