| /Zephyr-4.3.0/subsys/usb/device_next/ |
| D | usbd_ch9.c | 36 static bool reqtype_is_to_host(const struct usb_setup_packet *const setup) in reqtype_is_to_host() argument 38 return setup->wLength && USB_REQTYPE_GET_DIR(setup->bmRequestType); in reqtype_is_to_host() 41 static bool reqtype_is_to_device(const struct usb_setup_packet *const setup) in reqtype_is_to_device() argument 43 return !reqtype_is_to_host(setup); in reqtype_is_to_device() 59 struct usb_setup_packet *setup = usbd_get_setup_pkt(uds_ctx); in post_status_stage() local 62 if (setup->bRequest == USB_SREQ_SET_ADDRESS) { in post_status_stage() 63 ret = udc_set_address(uds_ctx->dev, setup->wValue); in post_status_stage() 65 LOG_ERR("Failed to set device address 0x%x", setup->wValue); in post_status_stage() 69 if (setup->bRequest == USB_SREQ_SET_FEATURE && in post_status_stage() 70 setup->wValue == USB_SFS_TEST_MODE) { in post_status_stage() [all …]
|
| /Zephyr-4.3.0/subsys/usb/device/ |
| D | usb_device.c | 106 struct usb_setup_packet setup; member 161 static void usb_print_setup(struct usb_setup_packet *setup) in usb_print_setup() argument 164 ARG_UNUSED(setup); in usb_print_setup() 168 setup->bmRequestType, in usb_print_setup() 169 setup->bRequest, in usb_print_setup() 170 setup->wValue, in usb_print_setup() 171 setup->wIndex, in usb_print_setup() 172 setup->wLength); in usb_print_setup() 213 static bool usb_handle_request(struct usb_setup_packet *setup, in usb_handle_request() argument 216 uint32_t type = setup->RequestType.type; in usb_handle_request() [all …]
|
| D | os_desc.c | 17 int usb_handle_os_desc(struct usb_setup_packet *setup, in usb_handle_os_desc() argument 24 if (USB_GET_DESCRIPTOR_TYPE(setup->wValue) == USB_DESC_STRING && in usb_handle_os_desc() 25 USB_GET_DESCRIPTOR_INDEX(setup->wValue) == USB_OSDESC_STRING_DESC_INDEX) { in usb_handle_os_desc() 36 int usb_handle_os_desc_feature(struct usb_setup_packet *setup, in usb_handle_os_desc_feature() argument 39 LOG_DBG("bRequest 0x%x", setup->bRequest); in usb_handle_os_desc_feature() 45 if (setup->bRequest == os_desc->vendor_code) { in usb_handle_os_desc_feature() 46 switch (setup->wIndex) { in usb_handle_os_desc_feature()
|
| D | os_desc.h | 26 int usb_handle_os_desc(struct usb_setup_packet *setup, 28 int usb_handle_os_desc_feature(struct usb_setup_packet *setup,
|
| /Zephyr-4.3.0/subsys/usb/device_next/class/ |
| D | usbd_dfu.c | 228 const struct usb_setup_packet *const setup) in app_idle_next() argument 232 switch (setup->bRequest) { in app_idle_next() 246 const struct usb_setup_packet *const setup) in app_detach_next() argument 248 switch (setup->bRequest) { in app_detach_next() 259 const struct usb_setup_packet *const setup) in dfu_idle_next() argument 263 switch (setup->bRequest) { in dfu_idle_next() 275 if (setup->wLength == 0) { in dfu_idle_next() 293 if (setup->wLength > sys_le16_to_cpu(dfu_desc.wTransferSize)) { in dfu_idle_next() 313 const struct usb_setup_packet *const setup) in dfu_dnload_sync_next() argument 317 switch (setup->bRequest) { in dfu_dnload_sync_next() [all …]
|
| D | usbd_hid.c | 147 const struct usb_setup_packet *const setup) in handle_set_idle() argument 149 const uint32_t duration = HID_GET_IDLE_DURATION(setup->wValue); in handle_set_idle() 150 const uint8_t id = HID_GET_IDLE_ID(setup->wValue); in handle_set_idle() 171 const struct usb_setup_packet *const setup, in handle_get_idle() argument 174 const uint8_t id = HID_GET_IDLE_ID(setup->wValue); in handle_get_idle() 179 if (setup->wLength != 1U) { in handle_get_idle() 207 const struct usb_setup_packet *const setup, in handle_set_report() argument 210 const uint8_t type = HID_GET_REPORT_TYPE(setup->wValue); in handle_set_report() 211 const uint8_t id = HID_GET_REPORT_ID(setup->wValue); in handle_set_report() 243 const struct usb_setup_packet *const setup, in handle_get_report() argument [all …]
|
| D | usbd_uac2.c | 65 #define CONTROL_ATTRIBUTE(setup) (setup->bRequest) argument 66 #define CONTROL_ENTITY_ID(setup) ((setup->wIndex & 0xFF00) >> 8) argument 67 #define CONTROL_SELECTOR(setup) ((setup->wValue & 0xFF00) >> 8) argument 68 #define CONTROL_CHANNEL_NUMBER(setup) (setup->wValue & 0x00FF) argument 636 const struct usb_setup_packet *const setup, in get_clock_source_request() argument 642 const uint32_t clock_id = CONTROL_ENTITY_ID(setup); in get_clock_source_request() 646 if (CONTROL_CHANNEL_NUMBER(setup) != 0) { in get_clock_source_request() 648 CONTROL_CHANNEL_NUMBER(setup)); in get_clock_source_request() 655 if (CONTROL_SELECTOR(setup) == CS_SAM_FREQ_CONTROL) { in get_clock_source_request() 656 if (CONTROL_ATTRIBUTE(setup) == CUR) { in get_clock_source_request() [all …]
|
| /Zephyr-4.3.0/subsys/usb/device/class/hid/ |
| D | core.c | 154 struct usb_setup_packet *setup, int32_t *len, in hid_on_get_idle() argument 158 uint8_t report_id = (uint8_t)setup->wValue; in hid_on_get_idle() 187 struct usb_setup_packet *setup, int32_t *len, in hid_on_get_report() argument 198 struct usb_setup_packet *setup, int32_t *len, in hid_on_get_protocol() argument 204 if (setup->wValue) { in hid_on_get_protocol() 220 struct usb_setup_packet *setup, int32_t *len, in hid_on_set_idle() argument 224 uint8_t rate = (uint8_t)(setup->wValue >> 8); in hid_on_set_idle() 225 uint8_t report_id = (uint8_t)setup->wValue; in hid_on_set_idle() 244 dev_data->idle_on = (bool)setup->wValue; in hid_on_set_idle() 253 struct usb_setup_packet *setup, int32_t *len, in hid_on_set_report() argument [all …]
|
| /Zephyr-4.3.0/samples/drivers/clock_control_litex/src/ |
| D | main.c | 65 struct litex_clk_setup setup; in litex_clk_test_getters() local 69 clock_control_subsys_t sub_system = (clock_control_subsys_t)&setup; in litex_clk_test_getters() 73 setup.clkout_nr = i; in litex_clk_test_getters() 76 i, setup.rate, setup.phase, setup.duty); in litex_clk_test_getters() 119 struct litex_clk_setup setup = { in litex_clk_test_freq() local 124 clock_control_subsys_t sub_system = (clock_control_subsys_t)&setup; in litex_clk_test_freq() 132 setup.clkout_nr = LITEX_CLK_TEST_CLK1; in litex_clk_test_freq() 133 setup.rate = i; in litex_clk_test_freq() 134 sub_system = (clock_control_subsys_t)&setup; in litex_clk_test_freq() 151 setup.clkout_nr = LITEX_CLK_TEST_CLK2; in litex_clk_test_freq() [all …]
|
| /Zephyr-4.3.0/tests/subsys/usb/os_desc/src/ |
| D | usb_osdesc.c | 91 struct usb_setup_packet setup; in test_handle_os_desc() local 96 setup.wValue = (USB_DESC_STRING & 0xFF) << 8; in test_handle_os_desc() 97 setup.wValue |= USB_OSDESC_STRING_DESC_INDEX; in test_handle_os_desc() 99 ret = usb_handle_os_desc(&setup, &len, &data); in test_handle_os_desc() 111 struct usb_setup_packet setup; in test_handle_os_desc_feature() local 116 setup.bRequest = os_desc.vendor_code; in test_handle_os_desc_feature() 117 setup.wIndex = USB_OSDESC_EXTENDED_COMPAT_ID; in test_handle_os_desc_feature() 119 ret = usb_handle_os_desc_feature(&setup, &len, &data); in test_handle_os_desc_feature()
|
| /Zephyr-4.3.0/subsys/usb/device/class/dfu/ |
| D | usb_dfu.c | 465 static int dfu_class_handle_to_host(struct usb_setup_packet *setup, in dfu_class_handle_to_host() argument 472 switch (setup->bRequest) { in dfu_class_handle_to_host() 507 setup->wValue, setup->wLength, dfu_data.state); in dfu_class_handle_to_host() 526 if (!setup->wLength || in dfu_class_handle_to_host() 527 dfu_data.block_nr != setup->wValue) { in dfu_class_handle_to_host() 529 "len %d", setup->wValue, in dfu_class_handle_to_host() 530 dfu_data.block_nr, setup->wLength); in dfu_class_handle_to_host() 539 if (bytes_left < setup->wLength) { in dfu_class_handle_to_host() 542 len = setup->wLength; in dfu_class_handle_to_host() 579 len < setup->wLength) { in dfu_class_handle_to_host() [all …]
|
| /Zephyr-4.3.0/samples/net/ethernet/bridge/ |
| D | README.rst | 28 The :zephyr_file:`samples/net/ethernet/bridge/bridge-test-setup.sh` provides a script for host set-… 31 1. Run script for pre-setup. Two tap interfaces zeth0 and zeth1 will be created. 35 bridge-test-setup.sh pre-setup 39 3. Run script for post-setup. zeth1 will be moved to another net name space. (We couldn't complete … 40 post-setup before running native_sim application, because it seems zephyr iface will not connect 45 bridge-test-setup.sh post-setup 62 bridge-test-setup.sh clean
|
| /Zephyr-4.3.0/tests/drivers/i2s/i2s_api/src/ |
| D | main.c | 21 static void *setup(void) in setup() function 77 ZTEST_SUITE(i2s_loopback, NULL, setup, before, NULL, NULL); 78 ZTEST_SUITE(i2s_states, NULL, setup, before, NULL, NULL); 79 ZTEST_SUITE(i2s_dir_both_states, NULL, setup, before_dir_both, NULL, NULL); 80 ZTEST_SUITE(i2s_dir_both_loopback, NULL, setup, before_dir_both, NULL, NULL); 81 ZTEST_SUITE(i2s_errors, NULL, setup, before, NULL, NULL);
|
| /Zephyr-4.3.0/samples/net/ethernet/gptp/ |
| D | Kconfig | 9 # how to do this kind of setup. See also VLAN sample application 10 # for vlan-setup-linux.sh script that can be used to setup the 20 The value depends on your network setup. 25 The value depends on your network setup. 39 The value depends on your network setup. 44 The value depends on your network setup.
|
| /Zephyr-4.3.0/boards/nordic/thingy53/ |
| D | board.c | 33 static int setup(void) in setup() function 47 SYS_INIT(setup, POST_KERNEL, CONFIG_THINGY53_INIT_PRIORITY);
|
| /Zephyr-4.3.0/drivers/wifi/siwx91x/ |
| D | siwx91x_wifi_ps.c | 234 .wake_int_mantissa = params->setup.twt_mantissa, in siwx91x_set_twt_setup() 235 .un_announced_twt = !params->setup.announce, in siwx91x_set_twt_setup() 236 .wake_duration = params->setup.twt_wake_interval, in siwx91x_set_twt_setup() 237 .triggered_twt = params->setup.trigger, in siwx91x_set_twt_setup() 238 .wake_int_exp = params->setup.twt_exponent, in siwx91x_set_twt_setup() 251 if (!params->setup.twt_info_disable) { in siwx91x_set_twt_setup() 256 if (params->setup.responder) { in siwx91x_set_twt_setup() 264 if (!params->setup.implicit) { in siwx91x_set_twt_setup() 270 if (params->setup.twt_wake_interval > 255 * 256) { in siwx91x_set_twt_setup() 272 twt_req.wake_duration = params->setup.twt_wake_interval / 1024; in siwx91x_set_twt_setup() [all …]
|
| /Zephyr-4.3.0/samples/subsys/dap/src/ |
| D | webusb.h | 67 const struct usb_setup_packet *const setup, in webusb_to_host_cb() argument 72 if (setup->wIndex == WEBUSB_REQ_GET_URL) { in webusb_to_host_cb() 73 uint8_t index = USB_GET_DESCRIPTOR_INDEX(setup->wValue); in webusb_to_host_cb()
|
| /Zephyr-4.3.0/samples/subsys/usb/webusb/src/ |
| D | webusb.h | 65 const struct usb_setup_packet *const setup, in webusb_to_host_cb() argument 70 if (setup->wIndex == WEBUSB_REQ_GET_URL) { in webusb_to_host_cb() 71 uint8_t index = USB_GET_DESCRIPTOR_INDEX(setup->wValue); in webusb_to_host_cb()
|
| /Zephyr-4.3.0/samples/net/common/ |
| D | Kconfig | 15 string "VLAN setup for the 1st VLAN interface" 19 This can setup the first VLAN network interface. 29 string "VLAN setup for the 2nd VLAN interface" 33 This can setup the first VLAN network interface. 46 Use overlay-tunnel.conf to setup the tunnel support. 52 The value depends on your network setup.
|
| /Zephyr-4.3.0/tests/net/virtual/ |
| D | Kconfig | 12 The value depends on your network setup. 18 The value depends on your network setup. 24 The value depends on your network setup.
|
| /Zephyr-4.3.0/tests/lib/hash_map/src/ |
| D | _main.c | 18 static void *setup(void) in setup() function 33 ZTEST_SUITE(hash_map, NULL, setup, NULL, after, NULL);
|
| /Zephyr-4.3.0/samples/net/virtual/ |
| D | Kconfig | 11 The value depends on your network setup. 16 The value depends on your network setup. 28 The value depends on your network setup. 33 The value depends on your network setup.
|
| /Zephyr-4.3.0/doc/develop/west/ |
| D | install.rst | 66 *One-time setup*: 72 *Permanent setup*: 80 *One-time setup*: 86 *Permanent setup*: 94 *One-time setup*: 100 *Permanent setup*: 108 *One-time setup*: 114 *Permanent setup*:
|
| /Zephyr-4.3.0/samples/net/ethernet/lldp/ |
| D | Kconfig | 17 The value depends on your network setup. 22 The value depends on your network setup. 36 The value depends on your network setup. 41 The value depends on your network setup.
|
| /Zephyr-4.3.0/doc/develop/toolchains/ |
| D | zephyr_sdk.rst | 35 The installation consists of extracting the file and running the included setup 45 by running the setup script. If you decide not to register the Zephyr SDK in the CMake registry, 123 #. Run the Zephyr SDK bundle setup script: 128 ./setup.sh 131 You only need to run the setup script once after extracting the Zephyr SDK bundle. 133 You must rerun the setup script if you relocate the Zephyr SDK bundle directory after 134 the initial setup. 179 #. Run the Zephyr SDK bundle setup script: 184 ./setup.sh 187 You only need to run the setup script once after extracting the Zephyr SDK bundle. [all …]
|