/Zephyr-Core-2.7.6/subsys/usb/ |
D | usb_device.c | 110 struct usb_setup_packet setup; member 159 static void usb_print_setup(struct usb_setup_packet *setup) in usb_print_setup() argument 162 ARG_UNUSED(setup); in usb_print_setup() 166 setup->bmRequestType, in usb_print_setup() 167 setup->bRequest, in usb_print_setup() 168 setup->wValue, in usb_print_setup() 169 setup->wIndex, in usb_print_setup() 170 setup->wLength); in usb_print_setup() 211 static bool usb_handle_request(struct usb_setup_packet *setup, in usb_handle_request() argument 214 uint32_t type = setup->RequestType.type; in usb_handle_request() [all …]
|
D | os_desc.c | 18 int usb_handle_os_desc(struct usb_setup_packet *setup, in usb_handle_os_desc() argument 25 if (USB_GET_DESCRIPTOR_TYPE(setup->wValue) == USB_DESC_STRING && in usb_handle_os_desc() 26 USB_GET_DESCRIPTOR_INDEX(setup->wValue) == USB_OSDESC_STRING_DESC_INDEX) { in usb_handle_os_desc() 37 int usb_handle_os_desc_feature(struct usb_setup_packet *setup, in usb_handle_os_desc_feature() argument 40 LOG_DBG("bRequest 0x%x", setup->bRequest); in usb_handle_os_desc_feature() 46 if (setup->bRequest == os_desc->vendor_code) { in usb_handle_os_desc_feature() 47 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,
|
D | bos.c | 50 int usb_handle_bos(struct usb_setup_packet *setup, in usb_handle_bos() argument 53 if (USB_GET_DESCRIPTOR_TYPE(setup->wValue) == USB_DESC_BOS) { in usb_handle_bos()
|
/Zephyr-Core-2.7.6/subsys/usb/class/hid/ |
D | core.c | 155 struct usb_setup_packet *setup, int32_t *len, in hid_on_get_idle() argument 159 uint8_t report_id = (uint8_t)setup->wValue; in hid_on_get_idle() 188 struct usb_setup_packet *setup, int32_t *len, in hid_on_get_report() argument 199 struct usb_setup_packet *setup, int32_t *len, in hid_on_get_protocol() argument 205 if (setup->wValue) { in hid_on_get_protocol() 221 struct usb_setup_packet *setup, int32_t *len, in hid_on_set_idle() argument 225 uint8_t rate = (uint8_t)(setup->wValue >> 8); in hid_on_set_idle() 226 uint8_t report_id = (uint8_t)setup->wValue; in hid_on_set_idle() 245 dev_data->idle_on = (bool)setup->wValue; in hid_on_set_idle() 254 struct usb_setup_packet *setup, int32_t *len, in hid_on_set_report() argument [all …]
|
/Zephyr-Core-2.7.6/subsys/usb/class/ |
D | loopback.c | 126 static int loopback_vendor_handler(struct usb_setup_packet *setup, in loopback_vendor_handler() argument 130 setup->bRequest, setup->bmRequestType, *len); in loopback_vendor_handler() 132 if (setup->RequestType.recipient != USB_REQTYPE_RECIPIENT_DEVICE) { in loopback_vendor_handler() 136 if (usb_reqtype_is_to_device(setup) && in loopback_vendor_handler() 137 setup->bRequest == 0x5b) { in loopback_vendor_handler() 144 MIN(sizeof(loopback_buf), setup->wLength)); in loopback_vendor_handler() 148 if ((usb_reqtype_is_to_host(setup)) && in loopback_vendor_handler() 149 (setup->bRequest == 0x5c)) { in loopback_vendor_handler() 151 setup->wLength, *data); in loopback_vendor_handler() 153 *len = MIN(sizeof(loopback_buf), setup->wLength); in loopback_vendor_handler()
|
/Zephyr-Core-2.7.6/subsys/usb/class/dfu/ |
D | usb_dfu.c | 388 static int dfu_class_handle_to_host(struct usb_setup_packet *setup, in dfu_class_handle_to_host() argument 395 switch (setup->bRequest) { in dfu_class_handle_to_host() 424 setup->wValue, setup->wLength, dfu_data.state); in dfu_class_handle_to_host() 436 if (!setup->wLength || in dfu_class_handle_to_host() 437 dfu_data.block_nr != setup->wValue) { in dfu_class_handle_to_host() 439 "len %d", setup->wValue, in dfu_class_handle_to_host() 440 dfu_data.block_nr, setup->wLength); in dfu_class_handle_to_host() 449 if (bytes_left < setup->wLength) { in dfu_class_handle_to_host() 452 len = setup->wLength; in dfu_class_handle_to_host() 489 len < setup->wLength) { in dfu_class_handle_to_host() [all …]
|
/Zephyr-Core-2.7.6/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() 117 struct litex_clk_setup setup = { in litex_clk_test_freq() local 122 clock_control_subsys_t sub_system = (clock_control_subsys_t *)&setup; in litex_clk_test_freq() 130 setup.clkout_nr = LITEX_CLK_TEST_CLK1; in litex_clk_test_freq() 131 setup.rate = i; in litex_clk_test_freq() 132 sub_system = (clock_control_subsys_t *)&setup; in litex_clk_test_freq() 148 setup.clkout_nr = LITEX_CLK_TEST_CLK2; in litex_clk_test_freq() [all …]
|
/Zephyr-Core-2.7.6/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-Core-2.7.6/tests/drivers/bbram/emul/src/ |
D | main.c | 103 static void setup(void) in setup() function 116 ztest_unit_test_setup_teardown(test_get_size, setup, unit_test_noop), in test_main() 117 ztest_unit_test_setup_teardown(test_bbram_out_of_bounds, setup, unit_test_noop), in test_main() 118 ztest_unit_test_setup_teardown(test_read_write, setup, unit_test_noop), in test_main() 119 ztest_unit_test_setup_teardown(test_set_invalid, setup, unit_test_noop), in test_main() 120 ztest_unit_test_setup_teardown(test_set_standby, setup, unit_test_noop), in test_main() 121 ztest_unit_test_setup_teardown(test_set_power, setup, unit_test_noop), in test_main() 122 ztest_unit_test_setup_teardown(test_reset_invalid_on_read, setup, unit_test_noop), in test_main() 123 ztest_unit_test_setup_teardown(test_reset_invalid_on_write, setup, unit_test_noop)); in test_main()
|
/Zephyr-Core-2.7.6/subsys/testsuite/ztest/include/ |
D | ztest_test.h | 25 void (*setup)(void); member 88 #define ztest_unit_test_setup_teardown(fn, setup, teardown) { \ argument 89 STRINGIFY(fn), fn, setup, teardown, 0 \ 105 #define ztest_user_unit_test_setup_teardown(fn, setup, teardown) { \ argument 106 STRINGIFY(fn), fn, setup, teardown, K_USER \
|
/Zephyr-Core-2.7.6/samples/net/sockets/echo_server/ |
D | Kconfig | 18 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-Core-2.7.6/samples/net/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-Core-2.7.6/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-Core-2.7.6/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-Core-2.7.6/samples/net/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-Core-2.7.6/samples/net/sockets/echo_client/ |
D | Kconfig | 11 The value depends on your network setup. 16 The value depends on your network setup. 30 The value depends on your network setup. 35 The value depends on your network setup.
|
/Zephyr-Core-2.7.6/subsys/usb/class/netusb/ |
D | function_ecm.c | 194 static int ecm_class_handler(struct usb_setup_packet *setup, int32_t *len, in ecm_class_handler() argument 198 *len, setup->bmRequestType, setup->bRequest, in ecm_class_handler() 206 if (setup->bmRequestType != USB_CDC_ECM_REQ_TYPE) { in ecm_class_handler() 214 if (setup->bRequest == USB_CDC_SET_ETH_PKT_FILTER) { in ecm_class_handler() 216 setup->wIndex, setup->wValue); in ecm_class_handler()
|
/Zephyr-Core-2.7.6/tests/subsys/logging/log_output/src/ |
D | log_output_test.c | 33 static void setup(void) in setup() function 154 setup, teardown), in test_main() 156 setup, teardown) in test_main()
|
/Zephyr-Core-2.7.6/samples/net/eth_native_posix/ |
D | README.rst | 45 execute the ``net-setup.sh`` script from Zephyr `net-tools`_ repository. 48 While running ``net-setup.sh`` requires root access, afterwards Zephyr 51 You can run the ``net-setup.sh`` script like this:: 54 sudo ./net-setup.sh 58 sudo ./net-setup.sh --config ./zeth-vlan.conf 60 See also other command line options by typing ``net-setup.sh --help``. 141 Note that in this setup you cannot access these two Zephyr devices from
|
/Zephyr-Core-2.7.6/include/usb/ |
D | usb_ch9.h | 78 static inline bool usb_reqtype_is_to_host(struct usb_setup_packet *setup) in usb_reqtype_is_to_host() argument 80 return setup->RequestType.direction == USB_REQTYPE_DIR_TO_HOST; in usb_reqtype_is_to_host() 89 static inline bool usb_reqtype_is_to_device(struct usb_setup_packet *setup) in usb_reqtype_is_to_device() argument 91 return setup->RequestType.direction == USB_REQTYPE_DIR_TO_DEVICE; in usb_reqtype_is_to_device()
|
/Zephyr-Core-2.7.6/samples/net/vlan/ |
D | README.rst | 9 The VLAN sample application for Zephyr will setup two virtual LAN networks. 25 file when running *net-setup.sh* script in Linux like this: 29 ./net-setup.sh -c zeth-vlan.conf 52 The :zephyr_file:`samples/net/vlan/vlan-setup-linux.sh` provides a script that
|
/Zephyr-Core-2.7.6/samples/net/wpanusb/src/ |
D | wpanusb.c | 130 static int wpanusb_vendor_handler(struct usb_setup_packet *setup, in wpanusb_vendor_handler() argument 135 if (usb_reqtype_is_to_host(setup)) { in wpanusb_vendor_handler() 146 net_pkt_write_u8(pkt, setup->bRequest); in wpanusb_vendor_handler() 149 if (setup->bRequest == TX) { in wpanusb_vendor_handler() 150 net_pkt_write_u8(pkt, setup->wIndex); in wpanusb_vendor_handler() 155 LOG_DBG("pkt %p len %u seq %u", pkt, *len, setup->wIndex); in wpanusb_vendor_handler()
|
/Zephyr-Core-2.7.6/doc/guides/networking/ |
D | native_posix_setup.rst | 51 ./net-setup.sh 53 You can tweak the behavior of the net-setup.sh script. See various options 54 by running ``net-setup.sh`` like this: 58 ./net-setup.sh --help
|
D | network_monitoring.rst | 22 The instructions here describe how to setup a Linux host to capture Zephyr 32 The ``net-tools`` project provides a configure file to setup IP-to-IP tunnel 39 ./net-setup.sh -c zeth-tunnel.conf 132 ``net-shell`` to setup and enable the monitoring. 134 The network packet monitoring needs to be setup first. The ``net-shell`` has 135 ``net capture setup`` command for doing that. The command syntax is 139 net capture setup <remote-ip-addr> <local-ip-addr> <peer-ip-addr> 150 net capture setup 192.0.2.2 2001:db8:200::1 2001:db8:200::2 158 setup command like this for IPv6-over-IPv4 tunnel 162 net capture setup 192.0.2.2 [2001:db8:200::1]:9999 [2001:db8:200::2]:9998 [all …]
|