| /include/linux/ |
| A D | pm_runtime.h | 165 static inline bool pm_runtime_active(struct device *dev) in pm_runtime_active() 197 static inline bool pm_runtime_enabled(struct device *dev) in pm_runtime_enabled() 208 static inline bool pm_runtime_blocked(struct device *dev) in pm_runtime_blocked() 318 struct device *dev) { return 0; } in pm_runtime_autosuspend_expiration() 363 static inline int pm_runtime_idle(struct device *dev) in pm_runtime_idle() 384 static inline int pm_runtime_suspend(struct device *dev) in pm_runtime_suspend() 420 static inline int pm_runtime_resume(struct device *dev) in pm_runtime_resume() 444 static inline int pm_request_idle(struct device *dev) in pm_request_idle() 453 static inline int pm_request_resume(struct device *dev) in pm_request_resume() 490 static inline int pm_runtime_get(struct device *dev) in pm_runtime_get() [all …]
|
| A D | dev_printk.h | 147 #define dev_emerg(dev, fmt, ...) \ argument 149 #define dev_crit(dev, fmt, ...) \ argument 151 #define dev_alert(dev, fmt, ...) \ argument 153 #define dev_err(dev, fmt, ...) \ argument 155 #define dev_warn(dev, fmt, ...) \ argument 157 #define dev_notice(dev, fmt, ...) \ argument 159 #define dev_info(dev, fmt, ...) \ argument 164 #define dev_dbg(dev, fmt, ...) \ argument 167 #define dev_dbg(dev, fmt, ...) \ argument 170 #define dev_dbg(dev, fmt, ...) \ argument [all …]
|
| A D | pm_opp.h | 261 static inline int dev_pm_opp_get_opp_count(struct device *dev) in dev_pm_opp_get_opp_count() 375 dev_pm_opp_adjust_voltage(struct device *dev, unsigned long freq, in dev_pm_opp_adjust_voltage() 452 static inline void dev_pm_opp_remove_table(struct device *dev) in dev_pm_opp_remove_table() 460 static inline int dev_pm_opp_sync_regulators(struct device *dev) in dev_pm_opp_sync_regulators() 504 static inline int dev_pm_opp_of_add_table(struct device *dev) in dev_pm_opp_of_add_table() 519 static inline void dev_pm_opp_of_remove_table(struct device *dev) in dev_pm_opp_of_remove_table() 523 static inline int devm_pm_opp_of_add_table(struct device *dev) in devm_pm_opp_of_add_table() 552 static inline int dev_pm_opp_of_register_em(struct device *dev, in dev_pm_opp_of_register_em() 604 static inline int dev_pm_opp_set_regulators(struct device *dev, in dev_pm_opp_set_regulators() 619 static inline int devm_pm_opp_set_regulators(struct device *dev, in devm_pm_opp_set_regulators() [all …]
|
| A D | kdev_t.h | 10 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS)) argument 11 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK)) argument 14 #define print_dev_t(buffer, dev) \ argument 17 #define format_dev_t(buffer, dev) \ argument 24 static __always_inline bool old_valid_dev(dev_t dev) in old_valid_dev() 29 static __always_inline u16 old_encode_dev(dev_t dev) in old_encode_dev() 39 static __always_inline u32 new_encode_dev(dev_t dev) in new_encode_dev() 46 static __always_inline dev_t new_decode_dev(u32 dev) in new_decode_dev() 63 static __always_inline int sysv_valid_dev(dev_t dev) in sysv_valid_dev() 73 static __always_inline unsigned sysv_major(u32 dev) in sysv_major() [all …]
|
| A D | pm_wakeup.h | 61 struct device *dev; member 77 static inline bool device_can_wakeup(struct device *dev) in device_can_wakeup() 82 static inline bool device_may_wakeup(struct device *dev) in device_may_wakeup() 87 static inline bool device_wakeup_path(struct device *dev) in device_wakeup_path() 123 static inline bool device_can_wakeup(struct device *dev) in device_can_wakeup() 153 static inline bool device_may_wakeup(struct device *dev) in device_may_wakeup() 158 static inline bool device_wakeup_path(struct device *dev) in device_wakeup_path() 167 static inline void pm_stay_awake(struct device *dev) {} in pm_stay_awake() 171 static inline void pm_relax(struct device *dev) {} in pm_relax() 181 static inline bool device_awake_path(struct device *dev) in device_awake_path() [all …]
|
| A D | dma-mapping.h | 181 static inline void dma_unmap_sg_attrs(struct device *dev, in dma_unmap_sg_attrs() 235 static inline bool dma_can_mmap(struct device *dev) in dma_can_mmap() 328 static inline bool dma_iova_try_alloc(struct device *dev, in dma_iova_try_alloc() 333 static inline void dma_iova_free(struct device *dev, in dma_iova_free() 337 static inline void dma_iova_destroy(struct device *dev, in dma_iova_destroy() 342 static inline int dma_iova_sync(struct device *dev, in dma_iova_sync() 347 static inline int dma_iova_link(struct device *dev, in dma_iova_link() 353 static inline void dma_iova_unlink(struct device *dev, in dma_iova_unlink() 435 static inline bool dma_need_unmap(struct device *dev) in dma_need_unmap() 570 static inline u64 dma_get_mask(struct device *dev) in dma_get_mask() [all …]
|
| A D | reset.h | 164 struct device *dev, const char *id, in __reset_control_get() 217 struct device *dev, const char *id, in __devm_reset_control_get() 393 struct device *dev, const char *id) in reset_control_get_shared() 427 struct device *dev, const char *id) in reset_control_get_optional_exclusive() 464 struct device *dev, const char *id) in reset_control_get_optional_shared() 744 struct device *dev, const char *id) in devm_reset_control_get_shared() 823 struct device *dev, const char *id) in devm_reset_control_get_optional_exclusive() 881 struct device *dev, const char *id) in devm_reset_control_get_optional_shared() 980 struct device *dev, const char *id) in devm_reset_control_get() 986 struct device *dev, const char *id) in devm_reset_control_get_optional() [all …]
|
| A D | of_device.h | 20 static inline int of_driver_match_device(struct device *dev, in of_driver_match_device() 34 static inline int of_dma_configure(struct device *dev, in of_dma_configure() 45 static inline int of_driver_match_device(struct device *dev, in of_driver_match_device() 51 static inline void of_device_uevent(const struct device *dev, in of_device_uevent() 54 static inline int of_device_modalias(struct device *dev, in of_device_modalias() 60 static inline int of_device_uevent_modalias(const struct device *dev, in of_device_uevent_modalias() 67 const struct of_device_id *matches, const struct device *dev) in of_match_device() 72 static inline int of_dma_configure_id(struct device *dev, in of_dma_configure_id() 79 static inline int of_dma_configure(struct device *dev, in of_dma_configure() 86 static inline void of_device_make_bus_id(struct device *dev) {} in of_device_make_bus_id()
|
| A D | pm_clock.h | 33 static inline bool pm_clk_no_clocks(struct device *dev) in pm_clk_no_clocks() 50 static inline bool pm_clk_no_clocks(struct device *dev) in pm_clk_no_clocks() 54 static inline void pm_clk_init(struct device *dev) in pm_clk_init() 57 static inline int pm_clk_create(struct device *dev) in pm_clk_create() 61 static inline void pm_clk_destroy(struct device *dev) in pm_clk_destroy() 64 static inline int pm_clk_add(struct device *dev, const char *con_id) in pm_clk_add() 69 static inline int pm_clk_add_clk(struct device *dev, struct clk *clk) in pm_clk_add_clk() 73 static inline int of_pm_clk_add_clks(struct device *dev) in of_pm_clk_add_clks() 79 static inline void pm_clk_remove_clk(struct device *dev, struct clk *clk) in pm_clk_remove_clk() 82 static inline int devm_pm_clk_create(struct device *dev) in devm_pm_clk_create()
|
| A D | if_bridge.h | 81 static inline int br_multicast_list_adjacent(struct net_device *dev, in br_multicast_list_adjacent() 97 static inline bool br_multicast_has_router_adjacent(struct net_device *dev, in br_multicast_has_router_adjacent() 103 static inline bool br_multicast_enabled(const struct net_device *dev) in br_multicast_enabled() 107 static inline bool br_multicast_router(const struct net_device *dev) in br_multicast_router() 126 static inline bool br_vlan_enabled(const struct net_device *dev) in br_vlan_enabled() 146 static inline int br_vlan_get_info(const struct net_device *dev, u16 vid, in br_vlan_get_info() 158 static inline bool br_mst_enabled(const struct net_device *dev) in br_mst_enabled() 163 static inline int br_mst_get_info(const struct net_device *dev, u16 msti, in br_mst_get_info() 168 static inline int br_mst_get_state(const struct net_device *dev, u16 msti, in br_mst_get_state() 197 br_port_flag_is_set(const struct net_device *dev, unsigned long flag) in br_port_flag_is_set() [all …]
|
| A D | dma-map-ops.h | 83 static inline void set_dma_ops(struct device *dev, in set_dma_ops() 93 static inline void set_dma_ops(struct device *dev, in set_dma_ops() 102 static inline struct cma *dev_get_cma_area(struct device *dev) in dev_get_cma_area() 122 static inline struct cma *dev_get_cma_area(struct device *dev) in dev_get_cma_area() 175 #define dma_release_from_dev_coherent(dev, order, vaddr) (0) argument 234 static inline bool dev_is_dma_coherent(struct device *dev) in dev_is_dma_coherent() 241 static inline bool dev_is_dma_coherent(struct device *dev) in dev_is_dma_coherent() 247 static inline void dma_reset_need_sync(struct device *dev) in dma_reset_need_sync() 259 static inline bool dma_kmalloc_safe(struct device *dev, in dma_kmalloc_safe() 324 #define arch_dma_set_mask(dev, mask) do { } while (0) argument [all …]
|
| A D | pnp.h | 203 struct device dev; /* Driver Model device interface */ member 278 #define card_for_each_dev(card, dev) \ argument 280 #define pnp_dev_name(dev) (dev)->name argument 309 #define pnp_can_read(dev) (((dev)->protocol->get) && \ argument 317 #define pnp_can_configure(dev) ((!(dev)->active) && \ argument 328 #define pnp_device_is_isapnp(dev) 0 argument 337 #define pnp_device_is_pnpbios(dev) 0 argument 351 #define pnp_acpi_device(dev) 0 argument 363 #define isapnp_csn_number(dev) ((dev)->number) argument 427 struct device dev; /* link to driver model */ member [all …]
|
| A D | pm_qos.h | 114 struct device *dev; member 200 static inline s32 dev_pm_qos_requested_flags(struct device *dev) in dev_pm_qos_requested_flags() 205 static inline s32 dev_pm_qos_raw_resume_latency(struct device *dev) in dev_pm_qos_raw_resume_latency() 218 static inline s32 __dev_pm_qos_resume_latency(struct device *dev) in __dev_pm_qos_resume_latency() 220 static inline s32 dev_pm_qos_read_value(struct device *dev, in dev_pm_qos_read_value() 236 static inline int dev_pm_qos_add_request(struct device *dev, in dev_pm_qos_add_request() 246 static inline int dev_pm_qos_add_notifier(struct device *dev, in dev_pm_qos_add_notifier() 250 static inline int dev_pm_qos_remove_notifier(struct device *dev, in dev_pm_qos_remove_notifier() 254 static inline void dev_pm_qos_constraints_init(struct device *dev) in dev_pm_qos_constraints_init() 272 static inline void dev_pm_qos_hide_flags(struct device *dev) {} in dev_pm_qos_hide_flags() [all …]
|
| A D | of_irq.h | 68 static inline int of_irq_count(struct device_node *dev) in of_irq_count() 72 static inline int of_irq_get(struct device_node *dev, int index) in of_irq_get() 76 static inline int of_irq_get_byname(struct device_node *dev, const char *name) in of_irq_get_byname() 80 static inline int of_irq_to_resource_table(struct device_node *dev, in of_irq_to_resource_table() 90 static inline struct irq_domain *of_msi_get_domain(struct device *dev, in of_msi_get_domain() 96 static inline struct irq_domain *of_msi_map_get_device_domain(struct device *dev, in of_msi_map_get_device_domain() 101 static inline void of_msi_configure(struct device *dev, struct device_node *np) in of_msi_configure() 104 static inline u32 of_msi_xlate(struct device *dev, struct device_node **msi_np, u32 id_in) in of_msi_xlate() 108 static inline u32 of_msi_map_id(struct device *dev, in of_msi_map_id() 124 static inline unsigned int irq_of_parse_and_map(struct device_node *dev, in irq_of_parse_and_map()
|
| A D | device.h | 295 #define devm_alloc_percpu(dev, type) \ argument 765 static inline int dev_to_node(struct device *dev) in dev_to_node() 774 static inline int dev_to_node(struct device *dev) in dev_to_node() 909 static inline void device_lock(struct device *dev) in device_lock() 919 static inline int device_trylock(struct device *dev) in device_trylock() 924 static inline void device_unlock(struct device *dev) in device_unlock() 948 void (*fn)(struct device *dev)) in dev_set_drv_sync_state() 959 static inline void dev_set_removable(struct device *dev, in dev_set_removable() 965 static inline bool dev_is_removable(struct device *dev) in dev_is_removable() 1071 #define device_lock_reset_class(dev) \ argument [all …]
|
| A D | dma-direct.h | 26 static inline dma_addr_t translate_phys_to_dma(struct device *dev, in translate_phys_to_dma() 42 static inline phys_addr_t translate_dma_to_phys(struct device *dev, in translate_dma_to_phys() 81 static inline dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr) in __phys_to_dma() 88 static inline dma_addr_t phys_to_dma_unencrypted(struct device *dev, in phys_to_dma_unencrypted() 99 static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) in phys_to_dma() 104 static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dma_addr) in dma_to_phys() 121 static inline bool force_dma_unencrypted(struct device *dev) in force_dma_unencrypted() 127 static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size, in dma_capable()
|
| /include/net/ |
| A D | netdev_lock.h | 10 static inline bool netdev_trylock(struct net_device *dev) in netdev_trylock() 15 static inline void netdev_assert_locked(const struct net_device *dev) in netdev_assert_locked() 21 netdev_assert_locked_or_invisible(const struct net_device *dev) in netdev_assert_locked_or_invisible() 28 static inline bool netdev_need_ops_lock(const struct net_device *dev) in netdev_need_ops_lock() 39 static inline void netdev_lock_ops(struct net_device *dev) in netdev_lock_ops() 45 static inline void netdev_unlock_ops(struct net_device *dev) in netdev_unlock_ops() 51 static inline void netdev_lock_ops_to_full(struct net_device *dev) in netdev_lock_ops_to_full() 76 netdev_ops_assert_locked_or_invisible(const struct net_device *dev) in netdev_ops_assert_locked_or_invisible() 83 static inline void netdev_lock_ops_compat(struct net_device *dev) in netdev_lock_ops_compat() 113 #define netdev_lockdep_set_classes(dev) \ argument [all …]
|
| A D | net_debug.h | 28 #define netdev_level_once(level, dev, fmt, ...) \ argument 38 #define netdev_emerg_once(dev, fmt, ...) \ argument 40 #define netdev_alert_once(dev, fmt, ...) \ argument 42 #define netdev_crit_once(dev, fmt, ...) \ argument 44 #define netdev_err_once(dev, fmt, ...) \ argument 46 #define netdev_warn_once(dev, fmt, ...) \ argument 48 #define netdev_notice_once(dev, fmt, ...) \ argument 50 #define netdev_info_once(dev, fmt, ...) \ argument 74 #define netdev_vdbg(dev, format, args...) \ argument 100 #define netif_crit(priv, type, dev, fmt, args...) \ argument [all …]
|
| /include/linux/pinctrl/ |
| A D | consumer.h | 54 static inline int pinctrl_pm_select_default_state(struct device *dev) in pinctrl_pm_select_default_state() 58 static inline int pinctrl_pm_select_sleep_state(struct device *dev) in pinctrl_pm_select_sleep_state() 62 static inline int pinctrl_pm_select_idle_state(struct device *dev) in pinctrl_pm_select_idle_state() 106 static inline struct pinctrl * __must_check pinctrl_get(struct device *dev) in pinctrl_get() 127 static inline struct pinctrl * __must_check devm_pinctrl_get(struct device *dev) in devm_pinctrl_get() 136 static inline int pinctrl_select_default_state(struct device *dev) in pinctrl_select_default_state() 141 static inline int pinctrl_pm_select_default_state(struct device *dev) in pinctrl_pm_select_default_state() 146 static inline int pinctrl_pm_select_sleep_state(struct device *dev) in pinctrl_pm_select_sleep_state() 151 static inline int pinctrl_pm_select_idle_state(struct device *dev) in pinctrl_pm_select_idle_state() 158 static inline struct pinctrl * __must_check pinctrl_get_select(struct device *dev, in pinctrl_get_select() [all …]
|
| A D | machine.h | 80 #define PIN_MAP_DUMMY_STATE(dev, state) \ argument 87 #define PIN_MAP_MUX_GROUP(dev, state, pinctrl, grp, func) \ argument 99 #define PIN_MAP_MUX_GROUP_DEFAULT(dev, pinctrl, grp, func) \ argument 102 #define PIN_MAP_MUX_GROUP_HOG(dev, state, grp, func) \ argument 105 #define PIN_MAP_MUX_GROUP_HOG_DEFAULT(dev, grp, func) \ argument 108 #define PIN_MAP_CONFIGS_PIN(dev, state, pinctrl, pin, cfgs) \ argument 121 #define PIN_MAP_CONFIGS_PIN_DEFAULT(dev, pinctrl, pin, cfgs) \ argument 124 #define PIN_MAP_CONFIGS_PIN_HOG(dev, state, pin, cfgs) \ argument 127 #define PIN_MAP_CONFIGS_PIN_HOG_DEFAULT(dev, pin, cfgs) \ argument 146 #define PIN_MAP_CONFIGS_GROUP_HOG(dev, state, grp, cfgs) \ argument [all …]
|
| /include/linux/device/ |
| A D | devres.h | 51 static inline void *devm_kzalloc(struct device *dev, size_t size, gfp_t gfp) in devm_kzalloc() 64 static inline void *devm_kcalloc(struct device *dev, size_t n, size_t size, gfp_t flags) in devm_kcalloc() 69 devm_krealloc_array(struct device *dev, void *p, size_t new_n, size_t new_size, gfp_t flags) in devm_krealloc_array() 83 static inline void *devm_kmemdup_array(struct device *dev, const void *src, in devm_kmemdup_array() 110 void __iomem *devm_ioremap_resource(struct device *dev, const struct resource *res) in devm_ioremap_resource() 116 void __iomem *devm_ioremap_resource_wc(struct device *dev, const struct resource *res) in devm_ioremap_resource_wc() 122 void __iomem *devm_of_iomap(struct device *dev, struct device_node *node, int index, in devm_of_iomap() 143 void devm_remove_action(struct device *dev, void (*action)(void *), void *data) in devm_remove_action() 151 #define devm_add_action(dev, action, data) \ argument 154 static inline int __devm_add_action_or_reset(struct device *dev, void (*action)(void *), in __devm_add_action_or_reset() [all …]
|
| /include/asm-generic/ |
| A D | pci_iomap.h | 29 #define __pci_ioport_map(dev, port, nr) NULL argument 31 #define __pci_ioport_map(dev, port, nr) ioport_map((port), (nr)) argument 35 static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max) in pci_iomap() 40 static inline void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long max) in pci_iomap_wc() 44 static inline void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, in pci_iomap_range() 50 static inline void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar, in pci_iomap_wc_range() 56 static inline void pci_iounmap(struct pci_dev *dev, void __iomem *addr) in pci_iounmap()
|
| /include/drm/ |
| A D | drm_managed.h | 25 #define drmm_add_action(dev, action, data) \ argument 41 #define drmm_add_action_or_reset(dev, action, data) \ argument 64 static inline void *drmm_kzalloc(struct drm_device *dev, size_t size, gfp_t gfp) in drmm_kzalloc() 80 static inline void *drmm_kmalloc_array(struct drm_device *dev, in drmm_kmalloc_array() 102 static inline void *drmm_kcalloc(struct drm_device *dev, in drmm_kcalloc() 125 #define drmm_mutex_init(dev, lock) ({ \ argument 144 #define drmm_alloc_ordered_workqueue(dev, fmt, flags, args...) \ argument
|
| A D | drm_client_event.h | 17 static inline void drm_client_dev_unregister(struct drm_device *dev) in drm_client_dev_unregister() 19 static inline void drm_client_dev_hotplug(struct drm_device *dev) in drm_client_dev_hotplug() 21 static inline void drm_client_dev_restore(struct drm_device *dev) in drm_client_dev_restore() 23 static inline void drm_client_dev_suspend(struct drm_device *dev, bool holds_console_lock) in drm_client_dev_suspend() 25 static inline void drm_client_dev_resume(struct drm_device *dev, bool holds_console_lock) in drm_client_dev_resume()
|
| /include/linux/framer/ |
| A D | framer-provider.h | 91 struct device *dev; member 138 static inline struct framer *framer_create(struct device *dev, struct device_node *node, in framer_create() 149 static inline struct framer *devm_framer_create(struct device *dev, struct device_node *node, in devm_framer_create() 155 static inline struct framer *framer_provider_simple_of_xlate(struct device *dev, in framer_provider_simple_of_xlate() 162 __framer_provider_of_register(struct device *dev, struct module *owner, in __framer_provider_of_register() 163 struct framer *(*of_xlate)(struct device *dev, in __framer_provider_of_register() 174 __devm_framer_provider_of_register(struct device *dev, struct module *owner, in __devm_framer_provider_of_register() 175 struct framer *(*of_xlate)(struct device *dev, in __devm_framer_provider_of_register() 187 #define framer_provider_of_register(dev, xlate) \ argument 190 #define devm_framer_provider_of_register(dev, xlate) \ argument
|