Lines Matching full:const

34 	const struct device *tcpc_dev;
43 static int numaker_ppc_init(const struct device *dev) in numaker_ppc_init()
45 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_init()
46 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_init()
64 static int numaker_ppc_is_dead_battery_mode(const struct device *dev) in numaker_ppc_is_dead_battery_mode()
66 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_is_dead_battery_mode()
67 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_is_dead_battery_mode()
78 static int numaker_ppc_exit_dead_battery_mode(const struct device *dev) in numaker_ppc_exit_dead_battery_mode()
80 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_exit_dead_battery_mode()
81 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_exit_dead_battery_mode()
93 static int numaker_ppc_is_vbus_source(const struct device *dev) in numaker_ppc_is_vbus_source()
95 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_is_vbus_source()
96 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_is_vbus_source()
108 static int numaker_ppc_is_vbus_sink(const struct device *dev) in numaker_ppc_is_vbus_sink()
110 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_is_vbus_sink()
111 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_is_vbus_sink()
122 static int numaker_ppc_set_snk_ctrl(const struct device *dev, bool enable) in numaker_ppc_set_snk_ctrl()
124 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_set_snk_ctrl()
125 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_set_snk_ctrl()
136 static int numaker_ppc_set_src_ctrl(const struct device *dev, bool enable) in numaker_ppc_set_src_ctrl()
138 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_set_src_ctrl()
139 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_set_src_ctrl()
150 static int numaker_ppc_set_vbus_discharge(const struct device *dev, bool enable) in numaker_ppc_set_vbus_discharge()
152 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_set_vbus_discharge()
153 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_set_vbus_discharge()
165 static int numaker_ppc_is_vbus_present(const struct device *dev) in numaker_ppc_is_vbus_present()
167 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_is_vbus_present()
168 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_is_vbus_present()
178 static int numaker_ppc_set_event_handler(const struct device *dev, usbc_ppc_event_cb_t handler, in numaker_ppc_set_event_handler()
181 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_set_event_handler()
182 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_set_event_handler()
193 static int numaker_ppc_dump_regs(const struct device *dev) in numaker_ppc_dump_regs()
195 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_dump_regs()
196 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_dump_regs()
217 static const struct numaker_ppc_config numaker_ppc_config_##inst = { \