Lines Matching refs:device
16 struct device;
114 * @dev: device for clock "consumer"
120 int devm_clk_notifier_register(struct device *dev, struct clk *clk,
233 static inline int devm_clk_notifier_register(struct device *dev,
357 * @dev: device for clock "consumer"
370 struct clk *clk_get(struct device *dev, const char *id);
374 * @dev: device for clock "consumer"
392 int __must_check clk_bulk_get(struct device *dev, int num_clks,
397 * @dev: device for clock "consumer"
412 int __must_check clk_bulk_get_all(struct device *dev,
417 * @dev: device for clock "consumer"
425 int __must_check clk_bulk_get_optional(struct device *dev, int num_clks,
429 * @dev: device for clock "consumer"
437 * automatically be freed when the device is unbound.
439 int __must_check devm_clk_bulk_get(struct device *dev, int num_clks,
443 * @dev: device for clock "consumer"
462 int __must_check devm_clk_bulk_get_optional(struct device *dev, int num_clks,
466 * @dev: device for clock "consumer"
475 * automatically be freed when the device is unbound.
478 int __must_check devm_clk_bulk_get_all(struct device *dev,
483 * @dev: device for clock "consumer"
497 * The clock will automatically be freed when the device is unbound
500 struct clk *devm_clk_get(struct device *dev, const char *id);
504 * @dev: device for clock "consumer"
518 * The clock will automatically be unprepared and freed when the device
521 struct clk *devm_clk_get_prepared(struct device *dev, const char *id);
525 * @dev: device for clock "consumer"
539 * when the device is unbound from the bus.
541 struct clk *devm_clk_get_enabled(struct device *dev, const char *id);
546 * @dev: device for clock "consumer"
561 * The clock will automatically be freed when the device is unbound
564 struct clk *devm_clk_get_optional(struct device *dev, const char *id);
568 * @dev: device for clock "consumer"
584 * device is unbound from the bus.
586 struct clk *devm_clk_get_optional_prepared(struct device *dev, const char *id);
591 * @dev: device for clock "consumer"
606 * when the device is unbound from the bus.
608 struct clk *devm_clk_get_optional_enabled(struct device *dev, const char *id);
613 * @dev: device for clock "consumer"
621 * The clock will automatically be freed when the device is unbound
624 struct clk *devm_get_clk_from_child(struct device *dev,
732 * @dev: device used to acquire the clock
741 void devm_clk_put(struct device *dev, struct clk *clk);
859 * clk_get_sys - get a clock based upon the device name
860 * @dev_id: device name
867 * takes the device name instead of the device itself for identification.
894 static inline struct clk *clk_get(struct device *dev, const char *id)
899 static inline int __must_check clk_bulk_get(struct device *dev, int num_clks,
905 static inline int __must_check clk_bulk_get_optional(struct device *dev,
911 static inline int __must_check clk_bulk_get_all(struct device *dev,
917 static inline struct clk *devm_clk_get(struct device *dev, const char *id)
922 static inline struct clk *devm_clk_get_prepared(struct device *dev,
928 static inline struct clk *devm_clk_get_enabled(struct device *dev,
934 static inline struct clk *devm_clk_get_optional(struct device *dev,
940 static inline struct clk *devm_clk_get_optional_prepared(struct device *dev,
946 static inline struct clk *devm_clk_get_optional_enabled(struct device *dev,
952 static inline int __must_check devm_clk_bulk_get(struct device *dev, int num_clks,
958 static inline int __must_check devm_clk_bulk_get_optional(struct device *dev,
964 static inline int __must_check devm_clk_bulk_get_all(struct device *dev,
971 static inline struct clk *devm_get_clk_from_child(struct device *dev,
983 static inline void devm_clk_put(struct device *dev, struct clk *clk) {}
1125 * @dev: device for clock "consumer"
1131 static inline struct clk *clk_get_optional(struct device *dev, const char *id)