Searched refs:dev_state (Results 1 – 3 of 3) sorted by relevance
/Zephyr-Core-3.7.0/drivers/usb/device/ |
D | usb_dc_mcux.c | 146 static struct usb_dc_state dev_state; variable 174 if (dev_state.dev_struct.controllerHandle != NULL) { in usb_dc_reset() 175 dev_state.dev_struct.controllerInterface->deviceControl( in usb_dc_reset() 176 dev_state.dev_struct.controllerHandle, in usb_dc_reset() 187 dev_state.eps = &s_ep_ctrl[0]; in usb_dc_attach() 188 if (dev_state.attached) { in usb_dc_attach() 193 dev_state.dev_struct.controllerInterface = &mcux_usb_iface; in usb_dc_attach() 194 status = dev_state.dev_struct.controllerInterface->deviceInit(CONTROLLER_ID, in usb_dc_attach() 195 &dev_state.dev_struct, in usb_dc_attach() 196 &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-Core-3.7.0/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()
|