Home | History | Annotate | Download | only in linux

Lines Matching refs:pnp_dev

24 struct pnp_dev;
31 /* Use these instead of directly reading pnp_dev to get resource information */
178 struct pnp_dev {
208 #define global_to_pnp_dev(n) list_entry(n, struct pnp_dev, global_list)
209 #define card_to_pnp_dev(n) list_entry(n, struct pnp_dev, card_list)
210 #define protocol_to_pnp_dev(n) list_entry(n, struct pnp_dev, protocol_list)
211 #define to_pnp_dev(n) container_of(n, struct pnp_dev, dev)
222 static inline void *pnp_get_drvdata (struct pnp_dev *pdev)
227 static inline void pnp_set_drvdata (struct pnp_dev *pdev, void *data)
234 void (*quirk_function)(struct pnp_dev *dev); /* fixup function */
296 int (*probe) (struct pnp_dev *dev, const struct pnp_device_id *dev_id);
297 void (*remove) (struct pnp_dev *dev);
298 int (*suspend) (struct pnp_dev *dev, pm_message_t state);
299 int (*resume) (struct pnp_dev *dev);
333 int (*get)(struct pnp_dev *dev, struct pnp_resource_table *res);
334 int (*set)(struct pnp_dev *dev, struct pnp_resource_table *res);
335 int (*disable)(struct pnp_dev *dev);
360 int pnp_add_device(struct pnp_dev *dev);
361 int pnp_device_attach(struct pnp_dev *pnp_dev);
362 void pnp_device_detach(struct pnp_dev *pnp_dev);
368 int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev);
369 void pnp_remove_card_device(struct pnp_dev *dev);
371 struct pnp_dev * pnp_request_card_device(struct pnp_card_link *clink, const char * id, struct pnp_dev * from);
372 void pnp_release_card_device(struct pnp_dev * dev);
378 struct pnp_option * pnp_register_independent_option(struct pnp_dev *dev);
379 struct pnp_option * pnp_register_dependent_option(struct pnp_dev *dev, int priority);
385 int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res, int mode);
386 int pnp_auto_config_dev(struct pnp_dev *dev);
387 int pnp_validate_config(struct pnp_dev *dev);
388 int pnp_start_dev(struct pnp_dev *dev);
389 int pnp_stop_dev(struct pnp_dev *dev);
390 int pnp_activate_dev(struct pnp_dev *dev);
391 int pnp_disable_dev(struct pnp_dev *dev);
396 int pnp_is_active(struct pnp_dev * dev);
398 int pnp_add_id(struct pnp_id *id, struct pnp_dev *dev);
407 static inline int pnp_init_device(struct pnp_dev *dev) { return -ENODEV; }
408 static inline int pnp_add_device(struct pnp_dev *dev) { return -ENODEV; }
409 static inline int pnp_device_attach(struct pnp_dev *pnp_dev) { return -ENODEV; }
410 static inline void pnp_device_detach(struct pnp_dev *pnp_dev) { ; }
415 static inline int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev) { return -ENODEV; }
416 static inline void pnp_remove_card_device(struct pnp_dev *dev) { ; }
418 static inline struct pnp_dev * pnp_request_card_device(struct pnp_card_link *clink, const char * id, struct pnp_dev * from) { return NULL; }
419 static inline void pnp_release_card_device(struct pnp_dev * dev) { ; }
424 static inline struct pnp_option * pnp_register_independent_option(struct pnp_dev *dev) { return NULL; }
425 static inline struct pnp_option * pnp_register_dependent_option(struct pnp_dev *dev, int priority) { return NULL; }
431 static inline int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res, int mode) { return -ENODEV; }
432 static inline int pnp_auto_config_dev(struct pnp_dev *dev) { return -ENODEV; }
433 static inline int pnp_validate_config(struct pnp_dev *dev) { return -ENODEV; }
434 static inline int pnp_start_dev(struct pnp_dev *dev) { return -ENODEV; }
435 static inline int pnp_stop_dev(struct pnp_dev *dev) { return -ENODEV; }
436 static inline int pnp_activate_dev(struct pnp_dev *dev) { return -ENODEV; }
437 static inline int pnp_disable_dev(struct pnp_dev *dev) { return -ENODEV; }
443 static inline int pnp_is_active(struct pnp_dev * dev) { return 0; }
445 pnp_dev *dev) { return -ENODEV; }