Searched refs:dev_state (Results 1 – 4 of 4) sorted by relevance
| /Zephyr-latest/drivers/usb/device/ |
| D | usb_dc_mcux.c | 144 static struct usb_dc_state dev_state; variable 172 if (dev_state.dev_struct.controllerHandle != NULL) { in usb_dc_reset() 173 dev_state.dev_struct.controllerInterface->deviceControl( in usb_dc_reset() 174 dev_state.dev_struct.controllerHandle, in usb_dc_reset() 185 dev_state.eps = &s_ep_ctrl[0]; in usb_dc_attach() 186 if (dev_state.attached) { in usb_dc_attach() 191 dev_state.dev_struct.controllerInterface = &mcux_usb_iface; in usb_dc_attach() 192 status = dev_state.dev_struct.controllerInterface->deviceInit(CONTROLLER_ID, in usb_dc_attach() 193 &dev_state.dev_struct, in usb_dc_attach() 194 &dev_state.dev_struct.controllerHandle); in usb_dc_attach() [all …]
|
| D | usb_dc_smartbond.c | 172 static struct usb_dc_state dev_state; variable 324 return (ep_idx < EP_MAX) ? &dev_state.ep_state[ep_dir][ep_idx] : NULL; in usb_dc_get_ep_state() 332 &dev_state.ep_state[0][ep_idx] : NULL; in usb_dc_get_ep_out_state() 340 &dev_state.ep_state[1][ep_idx] : NULL; in usb_dc_get_ep_in_state() 345 return dev_state.attached; in dev_attached() 350 return dev_state.vbus_present; in dev_ready() 355 dev_state.nfsr = val; in set_nfsr() 414 if (atomic_ptr_cas(&dev_state.dma_ep[dir_ix], NULL, ep_state)) { in try_allocate_dma() 584 dev_state.ep_out_data |= 1; in handle_ep0_rx() 645 if (dev_state.dma_ep[0] == ep_state) { in handle_epx_rx_ev() [all …]
|
| /Zephyr-latest/tests/subsys/pm/device_wakeup_api/src/ |
| D | main.c | 21 enum pm_device_state dev_state; in pm_state_set() local 31 (void)pm_device_state_get(dev, &dev_state); in pm_state_set() 32 zassert_equal(dev_state, PM_DEVICE_STATE_SUSPENDED, "Wrong device state"); in pm_state_set() 45 (void)pm_device_state_get(dev, &dev_state); in pm_state_set() 46 zassert_equal(dev_state, PM_DEVICE_STATE_ACTIVE, "Wrong device state"); in pm_state_set()
|
| /Zephyr-latest/drivers/usb/udc/ |
| D | udc_ambiq.c | 150 static void udc_ambiq_evt_callback(const struct device *dev, am_hal_usb_dev_event_e dev_state) in udc_ambiq_evt_callback() argument 154 switch (dev_state) { in udc_ambiq_evt_callback() 900 static void udc_ambiq_evt_callback_##n(am_hal_usb_dev_event_e dev_state) \ 902 udc_ambiq_evt_callback(DEVICE_DT_INST_GET(n), dev_state); \
|