Lines Matching refs:api
81 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_is_dead_battery_mode() local
83 if (api->is_dead_battery_mode == NULL) { in ppc_is_dead_battery_mode()
87 return api->is_dead_battery_mode(dev); in ppc_is_dead_battery_mode()
104 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_exit_dead_battery_mode() local
106 if (api->exit_dead_battery_mode == NULL) { in ppc_exit_dead_battery_mode()
110 return api->exit_dead_battery_mode(dev); in ppc_exit_dead_battery_mode()
124 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_is_vbus_source() local
126 if (api->is_vbus_source == NULL) { in ppc_is_vbus_source()
130 return api->is_vbus_source(dev); in ppc_is_vbus_source()
144 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_is_vbus_sink() local
146 if (api->is_vbus_sink == NULL) { in ppc_is_vbus_sink()
150 return api->is_vbus_sink(dev); in ppc_is_vbus_sink()
164 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_set_snk_ctrl() local
166 if (api->set_snk_ctrl == NULL) { in ppc_set_snk_ctrl()
170 return api->set_snk_ctrl(dev, enable); in ppc_set_snk_ctrl()
184 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_set_src_ctrl() local
186 if (api->set_src_ctrl == NULL) { in ppc_set_src_ctrl()
190 return api->set_src_ctrl(dev, enable); in ppc_set_src_ctrl()
204 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_set_vbus_discharge() local
206 if (api->set_vbus_discharge == NULL) { in ppc_set_vbus_discharge()
210 return api->set_vbus_discharge(dev, enable); in ppc_set_vbus_discharge()
224 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_is_vbus_present() local
226 if (api->is_vbus_present == NULL) { in ppc_is_vbus_present()
230 return api->is_vbus_present(dev); in ppc_is_vbus_present()
245 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_set_event_handler() local
247 if (api->set_event_handler == NULL) { in ppc_set_event_handler()
251 return api->set_event_handler(dev, handler, data); in ppc_set_event_handler()
264 const struct usbc_ppc_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_dump_regs() local
266 if (api->dump_regs == NULL) { in ppc_dump_regs()
270 return api->dump_regs(dev); in ppc_dump_regs()