| /include/linux/ |
| D | pm_runtime.h | 67 extern int pm_generic_runtime_suspend(struct device *dev); 68 extern int pm_generic_runtime_resume(struct device *dev); 69 extern bool pm_runtime_need_not_resume(struct device *dev); 70 extern int pm_runtime_force_suspend(struct device *dev); 71 extern int pm_runtime_force_resume(struct device *dev); 73 extern int __pm_runtime_idle(struct device *dev, int rpmflags); 74 extern int __pm_runtime_suspend(struct device *dev, int rpmflags); 75 extern int __pm_runtime_resume(struct device *dev, int rpmflags); 76 extern int pm_runtime_get_if_active(struct device *dev); 77 extern int pm_runtime_get_if_in_use(struct device *dev); [all …]
|
| 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 15 sprintf((buffer), "%u:%u\n", MAJOR(dev), MINOR(dev)) 17 #define format_dev_t(buffer, dev) \ argument 19 sprintf(buffer, "%u:%u", MAJOR(dev), MINOR(dev)); \ 24 static __always_inline bool old_valid_dev(dev_t dev) in old_valid_dev() argument 26 return MAJOR(dev) < 256 && MINOR(dev) < 256; in old_valid_dev() 29 static __always_inline u16 old_encode_dev(dev_t dev) in old_encode_dev() argument 31 return (MAJOR(dev) << 8) | MINOR(dev); in old_encode_dev() [all …]
|
| D | dev_printk.h | 35 int dev_vprintk_emit(int level, const struct device *dev, 38 int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...); 41 void _dev_printk(const char *level, const struct device *dev, 44 void _dev_emerg(const struct device *dev, const char *fmt, ...); 46 void _dev_alert(const struct device *dev, const char *fmt, ...); 48 void _dev_crit(const struct device *dev, const char *fmt, ...); 50 void _dev_err(const struct device *dev, const char *fmt, ...); 52 void _dev_warn(const struct device *dev, const char *fmt, ...); 54 void _dev_notice(const struct device *dev, const char *fmt, ...); 56 void _dev_info(const struct device *dev, const char *fmt, ...); [all …]
|
| D | pm_wakeup.h | 61 struct device *dev; member 77 static inline bool device_can_wakeup(struct device *dev) in device_can_wakeup() argument 79 return dev->power.can_wakeup; in device_can_wakeup() 82 static inline bool device_may_wakeup(struct device *dev) in device_may_wakeup() argument 84 return dev->power.can_wakeup && !!dev->power.wakeup; in device_may_wakeup() 87 static inline bool device_wakeup_path(struct device *dev) in device_wakeup_path() argument 89 return dev->power.wakeup_path; in device_wakeup_path() 92 static inline void device_set_wakeup_path(struct device *dev) in device_set_wakeup_path() argument 94 dev->power.wakeup_path = true; in device_set_wakeup_path() 102 extern struct wakeup_source *wakeup_source_register(struct device *dev, [all …]
|
| D | pm_clock.h | 23 extern int pm_clk_runtime_suspend(struct device *dev); 24 extern int pm_clk_runtime_resume(struct device *dev); 33 static inline bool pm_clk_no_clocks(struct device *dev) in pm_clk_no_clocks() argument 35 return dev && dev->power.subsys_data in pm_clk_no_clocks() 36 && list_empty(&dev->power.subsys_data->clock_list); in pm_clk_no_clocks() 39 extern void pm_clk_init(struct device *dev); 40 extern int pm_clk_create(struct device *dev); 41 extern void pm_clk_destroy(struct device *dev); 42 extern int pm_clk_add(struct device *dev, const char *con_id); 43 extern int pm_clk_add_clk(struct device *dev, struct clk *clk); [all …]
|
| D | device.h | 68 int (*add_dev)(struct device *dev, struct subsys_interface *sif); 69 void (*remove_dev)(struct device *dev, struct subsys_interface *sif); 92 int (*uevent)(const struct device *dev, struct kobj_uevent_env *env); 93 char *(*devnode)(const struct device *dev, umode_t *mode, 95 void (*release)(struct device *dev); 108 ssize_t (*show)(struct device *dev, struct device_attribute *attr, 110 ssize_t (*store)(struct device *dev, struct device_attribute *attr, 124 ssize_t device_show_ulong(struct device *dev, struct device_attribute *attr, 126 ssize_t device_store_ulong(struct device *dev, struct device_attribute *attr, 128 ssize_t device_show_int(struct device *dev, struct device_attribute *attr, [all …]
|
| D | pnp.h | 27 struct resource *pnp_get_resource(struct pnp_dev *dev, unsigned long type, 30 static inline struct resource *pnp_get_resource(struct pnp_dev *dev, in pnp_get_resource() argument 59 static inline resource_size_t pnp_port_start(struct pnp_dev *dev, in pnp_port_start() argument 62 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_start() 69 static inline resource_size_t pnp_port_end(struct pnp_dev *dev, in pnp_port_end() argument 72 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_end() 79 static inline unsigned long pnp_port_flags(struct pnp_dev *dev, in pnp_port_flags() argument 82 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_flags() 89 static inline int pnp_port_valid(struct pnp_dev *dev, unsigned int bar) in pnp_port_valid() argument 91 return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_IO, bar)); in pnp_port_valid() [all …]
|
| D | dma-mapping.h | 96 void debug_dma_mapping_error(struct device *dev, dma_addr_t dma_addr); 97 void debug_dma_map_single(struct device *dev, const void *addr, 100 static inline void debug_dma_mapping_error(struct device *dev, in debug_dma_mapping_error() argument 104 static inline void debug_dma_map_single(struct device *dev, const void *addr, in debug_dma_map_single() argument 111 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error() argument 113 debug_dma_mapping_error(dev, dma_addr); in dma_mapping_error() 120 dma_addr_t dma_map_page_attrs(struct device *dev, struct page *page, 123 void dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, size_t size, 125 unsigned int dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, 127 void dma_unmap_sg_attrs(struct device *dev, struct scatterlist *sg, [all …]
|
| D | pm_opp.h | 49 typedef int (*config_regulators_t)(struct device *dev, 53 typedef int (*config_clks_t)(struct device *dev, struct opp_table *opp_table, 106 struct opp_table *dev_pm_opp_get_opp_table(struct device *dev); 124 int dev_pm_opp_get_opp_count(struct device *dev); 125 unsigned long dev_pm_opp_get_max_clock_latency(struct device *dev); 126 unsigned long dev_pm_opp_get_max_volt_latency(struct device *dev); 127 unsigned long dev_pm_opp_get_max_transition_latency(struct device *dev); 128 unsigned long dev_pm_opp_get_suspend_opp_freq(struct device *dev); 130 struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev, 135 dev_pm_opp_find_freq_exact_indexed(struct device *dev, unsigned long freq, [all …]
|
| D | reset.h | 47 struct reset_control *__reset_control_get(struct device *dev, const char *id, 51 int __reset_control_bulk_get(struct device *dev, int num_rstcs, 56 int __device_reset(struct device *dev, bool optional); 57 struct reset_control *__devm_reset_control_get(struct device *dev, 60 int __devm_reset_control_bulk_get(struct device *dev, int num_rstcs, 64 struct reset_control *devm_reset_control_array_get(struct device *dev, 70 int reset_control_get_count(struct device *dev); 112 static inline int __device_reset(struct device *dev, bool optional) in __device_reset() argument 126 struct device *dev, const char *id, in __reset_control_get() argument 163 __reset_control_bulk_get(struct device *dev, int num_rstcs, in __reset_control_bulk_get() argument [all …]
|
| D | hdlc.h | 20 int (*open)(struct net_device *dev); 21 void (*close)(struct net_device *dev); 22 void (*start)(struct net_device *dev); /* if open & DCD */ 23 void (*stop)(struct net_device *dev); /* if open & !DCD */ 24 void (*detach)(struct net_device *dev); 25 int (*ioctl)(struct net_device *dev, struct if_settings *ifs); 26 __be16 (*type_trans)(struct sk_buff *skb, struct net_device *dev); 28 netdev_tx_t (*xmit)(struct sk_buff *skb, struct net_device *dev); 37 int (*attach)(struct net_device *dev, 41 netdev_tx_t (*xmit)(struct sk_buff *skb, struct net_device *dev); [all …]
|
| D | input.h | 162 int (*setkeycode)(struct input_dev *dev, 165 int (*getkeycode)(struct input_dev *dev, 186 int (*open)(struct input_dev *dev); 187 void (*close)(struct input_dev *dev); 188 int (*flush)(struct input_dev *dev, struct file *file); 189 int (*event)(struct input_dev *dev, unsigned int type, unsigned int code, int value); 199 struct device dev; member 219 #define to_input_dev(d) container_of(d, struct input_dev, dev) 325 bool (*match)(struct input_handler *handler, struct input_dev *dev); 326 …int (*connect)(struct input_handler *handler, struct input_dev *dev, const struct input_device_id … [all …]
|
| D | netdevice.h | 89 void netdev_set_default_ethtool_ops(struct net_device *dev, 91 void netdev_sw_irq_coalesce_default_on(struct net_device *dev); 264 #define netdev_uc_count(dev) netdev_hw_addr_list_count(&(dev)->uc) argument 265 #define netdev_uc_empty(dev) netdev_hw_addr_list_empty(&(dev)->uc) argument 266 #define netdev_for_each_uc_addr(ha, dev) \ argument 267 netdev_hw_addr_list_for_each(ha, &(dev)->uc) 272 #define netdev_mc_count(dev) netdev_hw_addr_list_count(&(dev)->mc) argument 273 #define netdev_mc_empty(dev) netdev_hw_addr_list_empty(&(dev)->mc) argument 274 #define netdev_for_each_mc_addr(ha, dev) \ argument 275 netdev_hw_addr_list_for_each(ha, &(dev)->mc) [all …]
|
| D | dma-map-ops.h | 18 void *(*alloc)(struct device *dev, size_t size, 21 void (*free)(struct device *dev, size_t size, void *vaddr, 23 struct page *(*alloc_pages_op)(struct device *dev, size_t size, 26 void (*free_pages)(struct device *dev, size_t size, struct page *vaddr, 31 int (*get_sgtable)(struct device *dev, struct sg_table *sgt, 35 dma_addr_t (*map_page)(struct device *dev, struct page *page, 38 void (*unmap_page)(struct device *dev, dma_addr_t dma_handle, 46 int (*map_sg)(struct device *dev, struct scatterlist *sg, int nents, 48 void (*unmap_sg)(struct device *dev, struct scatterlist *sg, int nents, 50 dma_addr_t (*map_resource)(struct device *dev, phys_addr_t phys_addr, [all …]
|
| D | of_device.h | 13 const struct of_device_id *matches, const struct device *dev); 20 static inline int of_driver_match_device(struct device *dev, in of_driver_match_device() argument 23 return of_match_device(drv->of_match_table, dev) != NULL; in of_driver_match_device() 26 extern ssize_t of_device_modalias(struct device *dev, char *str, ssize_t len); 28 extern void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env); 29 extern int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env); 31 int of_dma_configure_id(struct device *dev, 34 static inline int of_dma_configure(struct device *dev, in of_dma_configure() argument 38 return of_dma_configure_id(dev, np, force_dma, NULL); in of_dma_configure() 41 void of_device_make_bus_id(struct device *dev); [all …]
|
| D | pm_domain.h | 124 bool (*suspend_ok)(struct device *dev); 128 int (*start)(struct device *dev); 129 int (*stop)(struct device *dev); 156 struct device dev; member 185 struct device *dev, bool enable); 187 struct device *dev); 189 struct device *dev); 191 struct device *dev); 241 struct device *dev; member 264 static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev) in dev_gpd_data() argument [all …]
|
| /include/net/nfc/ |
| D | nfc.h | 18 #define nfc_dbg(dev, fmt, ...) dev_dbg((dev), "NFC: " fmt, ##__VA_ARGS__) argument 19 #define nfc_info(dev, fmt, ...) dev_info((dev), "NFC: " fmt, ##__VA_ARGS__) argument 20 #define nfc_err(dev, fmt, ...) dev_err((dev), "NFC: " fmt, ##__VA_ARGS__) argument 49 int (*dev_up)(struct nfc_dev *dev); 50 int (*dev_down)(struct nfc_dev *dev); 51 int (*start_poll)(struct nfc_dev *dev, 53 void (*stop_poll)(struct nfc_dev *dev); 54 int (*dep_link_up)(struct nfc_dev *dev, struct nfc_target *target, 56 int (*dep_link_down)(struct nfc_dev *dev); 57 int (*activate_target)(struct nfc_dev *dev, struct nfc_target *target, [all …]
|
| /include/linux/pinctrl/ |
| D | machine.h | 80 #define PIN_MAP_DUMMY_STATE(dev, state) \ argument 82 .dev_name = dev, \ 87 #define PIN_MAP_MUX_GROUP(dev, state, pinctrl, grp, func) \ argument 89 .dev_name = dev, \ 99 #define PIN_MAP_MUX_GROUP_DEFAULT(dev, pinctrl, grp, func) \ argument 100 PIN_MAP_MUX_GROUP(dev, PINCTRL_STATE_DEFAULT, pinctrl, grp, func) 102 #define PIN_MAP_MUX_GROUP_HOG(dev, state, grp, func) \ argument 103 PIN_MAP_MUX_GROUP(dev, state, dev, grp, func) 105 #define PIN_MAP_MUX_GROUP_HOG_DEFAULT(dev, grp, func) \ argument 106 PIN_MAP_MUX_GROUP(dev, PINCTRL_STATE_DEFAULT, dev, grp, func) [all …]
|
| /include/net/ |
| D | net_debug.h | 11 void netdev_printk(const char *level, const struct net_device *dev, 14 void netdev_emerg(const struct net_device *dev, const char *format, ...); 16 void netdev_alert(const struct net_device *dev, const char *format, ...); 18 void netdev_crit(const struct net_device *dev, const char *format, ...); 20 void netdev_err(const struct net_device *dev, const char *format, ...); 22 void netdev_warn(const struct net_device *dev, const char *format, ...); 24 void netdev_notice(const struct net_device *dev, const char *format, ...); 26 void netdev_info(const struct net_device *dev, const char *format, ...); 28 #define netdev_level_once(level, dev, fmt, ...) \ argument 34 netdev_printk(level, dev, fmt, ##__VA_ARGS__); \ [all …]
|
| D | ndisc.h | 136 struct ndisc_options *ndisc_parse_options(const struct net_device *dev, 198 int (*parse_options)(const struct net_device *dev, 201 void (*update)(const struct net_device *dev, struct neighbour *n, 204 int (*opt_addr_space)(const struct net_device *dev, u8 icmp6_type, 207 void (*fill_addr_option)(const struct net_device *dev, 210 void (*prefix_rcv_add_addr)(struct net *net, struct net_device *dev, 221 static inline int ndisc_ops_parse_options(const struct net_device *dev, in ndisc_ops_parse_options() argument 225 if (dev->ndisc_ops && dev->ndisc_ops->parse_options) in ndisc_ops_parse_options() 226 return dev->ndisc_ops->parse_options(dev, nd_opt, ndopts); in ndisc_ops_parse_options() 231 static inline void ndisc_ops_update(const struct net_device *dev, in ndisc_ops_update() argument [all …]
|
| /include/linux/ssb/ |
| D | ssb_driver_gige.h | 39 struct ssb_device *dev; member 68 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_is_rgmii() local 69 return (dev ? dev->has_rgmii : 0); in ssb_gige_is_rgmii() 75 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_have_roboswitch() local 76 if (dev) in ssb_gige_have_roboswitch() 77 return !!(dev->dev->bus->sprom.boardflags_lo & in ssb_gige_have_roboswitch() 85 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_one_dma_at_once() local 86 if (dev) in ssb_gige_one_dma_at_once() 87 return ((dev->dev->bus->chip_id == 0x4785) && in ssb_gige_one_dma_at_once() 88 (dev->dev->bus->chip_rev < 2)); in ssb_gige_one_dma_at_once() [all …]
|
| /include/linux/device/ |
| D | devres.h | 17 typedef void (*dr_release_t)(struct device *dev, void *res); 18 typedef int (*dr_match_t)(struct device *dev, void *res, void *match_data); 27 void devres_for_each_res(struct device *dev, dr_release_t release, 32 void devres_add(struct device *dev, void *res); 33 void *devres_find(struct device *dev, dr_release_t release, dr_match_t match, void *match_data); 34 void *devres_get(struct device *dev, void *new_res, dr_match_t match, void *match_data); 35 void *devres_remove(struct device *dev, dr_release_t release, dr_match_t match, void *match_data); 36 int devres_destroy(struct device *dev, dr_release_t release, dr_match_t match, void *match_data); 37 int devres_release(struct device *dev, dr_release_t release, dr_match_t match, void *match_data); 40 void * __must_check devres_open_group(struct device *dev, void *id, gfp_t gfp); [all …]
|
| /include/drm/ |
| D | drm_managed.h | 13 typedef void (*drmres_release_t)(struct drm_device *dev, void *res); 25 #define drmm_add_action(dev, action, data) \ argument 26 __drmm_add_action(dev, action, data, #action) 28 int __must_check __drmm_add_action(struct drm_device *dev, 41 #define drmm_add_action_or_reset(dev, action, data) \ argument 42 __drmm_add_action_or_reset(dev, action, data, #action) 44 int __must_check __drmm_add_action_or_reset(struct drm_device *dev, 48 void drmm_release_action(struct drm_device *dev, 52 void *drmm_kmalloc(struct drm_device *dev, size_t size, gfp_t gfp) __malloc; 64 static inline void *drmm_kzalloc(struct drm_device *dev, size_t size, gfp_t gfp) in drmm_kzalloc() argument [all …]
|
| /include/trace/events/ |
| D | iscsi.h | 15 void iscsi_dbg_trace(void (*trace)(struct device *dev, struct va_format *), 16 struct device *dev, const char *fmt, ...); 23 TP_PROTO(struct device *dev, struct va_format *vaf), 25 TP_ARGS(dev, vaf), 28 __string(dname, dev_name(dev) ) 45 TP_PROTO(struct device *dev, struct va_format *vaf), 47 TP_ARGS(dev, vaf) 54 TP_PROTO(struct device *dev, struct va_format *vaf), 56 TP_ARGS(dev, vaf) 63 TP_PROTO(struct device *dev, struct va_format *vaf), [all …]
|
| /include/linux/can/ |
| D | dev.h | 45 struct net_device *dev; member 79 int (*do_set_bittiming)(struct net_device *dev); 80 int (*do_set_data_bittiming)(struct net_device *dev); 81 int (*do_set_mode)(struct net_device *dev, enum can_mode mode); 82 int (*do_set_termination)(struct net_device *dev, u16 term); 83 int (*do_get_state)(const struct net_device *dev, 85 int (*do_get_berr_counter)(const struct net_device *dev, 87 int (*do_get_auto_tdcv)(const struct net_device *dev, u32 *tdcv); 125 static inline int __must_check can_set_static_ctrlmode(struct net_device *dev, in can_set_static_ctrlmode() argument 128 struct can_priv *priv = netdev_priv(dev); in can_set_static_ctrlmode() [all …]
|