Home
last modified time | relevance | path

Searched refs:setup (Results 1 – 25 of 444) sorted by relevance

12345678910>>...18

/Zephyr-latest/subsys/usb/device_next/
Dusbd_ch9.c36 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-latest/subsys/usb/device/
Dusb_device.c106 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 …]
Dos_desc.c17 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()
Dos_desc.h26 int usb_handle_os_desc(struct usb_setup_packet *setup,
28 int usb_handle_os_desc_feature(struct usb_setup_packet *setup,
/Zephyr-latest/subsys/usb/device/class/
Dloopback.c125 static int loopback_vendor_handler(struct usb_setup_packet *setup, in loopback_vendor_handler() argument
129 setup->bRequest, setup->bmRequestType, *len); in loopback_vendor_handler()
131 if (setup->RequestType.recipient != USB_REQTYPE_RECIPIENT_DEVICE) { in loopback_vendor_handler()
135 if (usb_reqtype_is_to_device(setup) && in loopback_vendor_handler()
136 setup->bRequest == 0x5b) { in loopback_vendor_handler()
143 MIN(sizeof(loopback_buf), setup->wLength)); in loopback_vendor_handler()
147 if ((usb_reqtype_is_to_host(setup)) && in loopback_vendor_handler()
148 (setup->bRequest == 0x5c)) { in loopback_vendor_handler()
150 setup->wLength, *data); in loopback_vendor_handler()
152 *len = MIN(sizeof(loopback_buf), setup->wLength); in loopback_vendor_handler()
/Zephyr-latest/subsys/usb/device/class/hid/
Dcore.c154 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-latest/samples/drivers/clock_control_litex/src/
Dmain.c65 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-latest/subsys/usb/device/class/dfu/
Dusb_dfu.c465 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-latest/tests/subsys/usb/os_desc/src/
Dusb_osdesc.c91 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-latest/tests/drivers/i2s/i2s_api/src/
Dmain.c21 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-latest/subsys/usb/device_next/class/
Dusbd_hid.c135 const struct usb_setup_packet *const setup) in handle_set_idle() argument
137 const uint32_t duration = HID_GET_IDLE_DURATION(setup->wValue); in handle_set_idle()
138 const uint8_t id = HID_GET_IDLE_ID(setup->wValue); in handle_set_idle()
159 const struct usb_setup_packet *const setup, in handle_get_idle() argument
162 const uint8_t id = HID_GET_IDLE_ID(setup->wValue); in handle_get_idle()
167 if (setup->wLength != 1U) { in handle_get_idle()
195 const struct usb_setup_packet *const setup, in handle_set_report() argument
198 const uint8_t type = HID_GET_REPORT_TYPE(setup->wValue); in handle_set_report()
199 const uint8_t id = HID_GET_REPORT_ID(setup->wValue); in handle_set_report()
231 const struct usb_setup_packet *const setup, in handle_get_report() argument
[all …]
Dusbd_uac2.c60 #define CONTROL_ATTRIBUTE(setup) (setup->bRequest) argument
61 #define CONTROL_ENTITY_ID(setup) ((setup->wIndex & 0xFF00) >> 8) argument
62 #define CONTROL_SELECTOR(setup) ((setup->wValue & 0xFF00) >> 8) argument
63 #define CONTROL_CHANNEL_NUMBER(setup) (setup->wValue & 0x00FF) argument
582 const struct usb_setup_packet *const setup, in get_clock_source_request() argument
588 const uint32_t clock_id = CONTROL_ENTITY_ID(setup); in get_clock_source_request()
592 if (CONTROL_CHANNEL_NUMBER(setup) != 0) { in get_clock_source_request()
594 CONTROL_CHANNEL_NUMBER(setup)); in get_clock_source_request()
601 if (CONTROL_SELECTOR(setup) == CS_SAM_FREQ_CONTROL) { in get_clock_source_request()
602 if (CONTROL_ATTRIBUTE(setup) == CUR) { in get_clock_source_request()
[all …]
Dloopback.c66 const struct usb_setup_packet *const setup, in lb_control_to_host() argument
69 if (setup->RequestType.recipient != USB_REQTYPE_RECIPIENT_DEVICE) { in lb_control_to_host()
74 if (setup->bRequest == LB_VENDOR_REQ_IN) { in lb_control_to_host()
76 MIN(sizeof(lb_buf), setup->wLength)); in lb_control_to_host()
78 LOG_WRN("Device-to-Host, wLength %u | %zu", setup->wLength, in lb_control_to_host()
79 MIN(sizeof(lb_buf), setup->wLength)); in lb_control_to_host()
84 LOG_ERR("Class request 0x%x not supported", setup->bRequest); in lb_control_to_host()
91 const struct usb_setup_packet *const setup, in lb_control_to_dev() argument
94 if (setup->RequestType.recipient != USB_REQTYPE_RECIPIENT_DEVICE) { in lb_control_to_dev()
99 if (setup->bRequest == LB_VENDOR_REQ_OUT) { in lb_control_to_dev()
[all …]
/Zephyr-latest/samples/net/mdns_responder/
DKconfig11 The value depends on your network setup.
16 The value depends on your network setup.
21 The value depends on your network setup.
35 The value depends on your network setup.
40 The value depends on your network setup.
45 The value depends on your network setup.
/Zephyr-latest/samples/net/gptp/
DKconfig9 # 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-latest/samples/net/vlan/
DKconfig11 The value depends on your network setup.
16 The value depends on your network setup.
21 The value depends on your network setup.
35 The value depends on your network setup.
40 The value depends on your network setup.
45 The value depends on your network setup.
/Zephyr-latest/samples/subsys/usb/webusb-next/src/
Dwebusb.h65 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()
Dmsosv2.h117 const struct usb_setup_packet *const setup, in msosv2_to_host_cb() argument
122 if (setup->bRequest == SAMPLE_MSOS2_VENDOR_CODE && in msosv2_to_host_cb()
123 setup->wIndex == MS_OS_20_DESCRIPTOR_INDEX) { in msosv2_to_host_cb()
/Zephyr-latest/boards/nordic/thingy53/
Dboard.c33 static int setup(void) in setup() function
47 SYS_INIT(setup, POST_KERNEL, CONFIG_THINGY53_INIT_PRIORITY);
/Zephyr-latest/tests/net/virtual/
DKconfig12 The value depends on your network setup.
18 The value depends on your network setup.
24 The value depends on your network setup.
/Zephyr-latest/samples/net/virtual/
DKconfig11 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-latest/tests/lib/hash_map/src/
D_main.c18 static void *setup(void) in setup() function
33 ZTEST_SUITE(hash_map, NULL, setup, NULL, after, NULL);
/Zephyr-latest/samples/net/lldp/
DKconfig17 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-latest/samples/net/sockets/echo_server/
DKconfig18 The value depends on your network setup.
23 The value depends on your network setup.
28 The value depends on your network setup.
42 The value depends on your network setup.
47 The value depends on your network setup.
52 The value depends on your network setup.
67 Use overlay-tunnel.conf to setup the tunnel support.
73 The value depends on your network setup.
/Zephyr-latest/doc/develop/toolchains/
Dzephyr_sdk.rst33 The installation consists of extracting the file and running the included setup
43 by running the setup script. If you decide not to register the Zephyr SDK in the CMake registry,
121 #. Run the Zephyr SDK bundle setup script:
126 ./setup.sh
129 You only need to run the setup script once after extracting the Zephyr SDK bundle.
131 You must rerun the setup script if you relocate the Zephyr SDK bundle directory after
132 the initial setup.
177 #. Run the Zephyr SDK bundle setup script:
182 ./setup.sh
185 You only need to run the setup script once after extracting the Zephyr SDK bundle.
[all …]

12345678910>>...18