Home
last modified time | relevance | path

Searched full:descriptors (Results 1 – 25 of 199) sorted by relevance

12345678

/Zephyr-latest/doc/services/binary_descriptors/
Dindex.rst3 Binary Descriptors
6 Binary Descriptors are constant data objects storing information about the binary executable.
7 Unlike "regular" constants, binary descriptors are linked to a known offset in the binary, making
9 A few examples of constants that would make useful binary descriptors are: kernel version, app vers…
12 Binary descriptors are created by using the ``DEFINE_BINDESC_*`` macros. For example:
35 Binary descriptors are implemented with a TLV (tag, length, value) header linked
37 but generally the descriptors are linked as close to the beginning of the image as
39 ARM), the descriptors are linked right after the vector table. The reset vector points
40 to the beginning of the text section, which is after the descriptors. In architectures
42 the beginning of the image, in order to skip over the binary descriptors, which are right
[all …]
/Zephyr-latest/subsys/bindesc/
DKconfig5 bool "Binary Descriptors"
8 Binary Descriptors - constant data accessible outside of the executable image
13 bool "Binary Descriptors Define"
15 Enable the app to define its own binary descriptors
35 bool "Binary Descriptors Read"
37 Enable the app to read the binary descriptors of another image
48 Enable reading and parsing binary descriptors from RAM.
53 Enable reading and parsing binary descriptors from memory mapped flash.
58 Enable reading and parsing binary descriptors from non memory mapped flash
68 The maximum expected size of the descriptors' data. This should be set to
DKconfig.host_info5 bool "Host info binary descriptors"
7 Add the host info binary descriptors
/Zephyr-latest/samples/subsys/bindesc/hello_bindesc/
Dprj.conf1 # Enable binary descriptors
4 # Enable definition of binary descriptors
7 # Enable default build time binary descriptors
11 # Enable default version binary descriptors
18 # Enable default host info binary descriptors
DREADME.rst2 :name: Binary descriptors "Hello World"
5 Set and access binary descriptors for a basic Zephyr application.
23 To dump all binary descriptors in the image, run:
/Zephyr-latest/samples/subsys/bindesc/read_bindesc/
Dprj.conf1 # Enable binary descriptors
4 # Enable definition of binary descriptors
7 # Enable default version binary descriptors
14 # Enable default host info binary descriptors
DREADME.rst2 :name: Binary descriptors read
5 Define some binary descriptors and read them.
/Zephyr-latest/drivers/can/
DKconfig.nxp_s3222 int "Maximum number of RX descriptors"
27 Maximum number of RX descriptors.
30 int "Maximum number of TX descriptors"
34 Maximum number of TX descriptors.
/Zephyr-latest/drivers/ethernet/
DKconfig.xmc4xxx23 int "Number of TX DMA descriptors"
26 Number of TX DMA descriptors. Each descriptor stores the memory address of a
30 int "Number of RX DMA descriptors"
33 Number of RX DMA descriptors. Each descriptor stores the memory address of a
37 in the descriptors are replaced by new pre-allocated buffers.
/Zephyr-latest/drivers/ethernet/eth_nxp_enet_qos/
DKconfig27 int "Number of tx buffer descriptors"
31 Number of TX buffer descriptors.
34 int "Number of rx buffer descriptors"
38 Number of RX buffer descriptors.
Deth_nxp_enet_qos_mac.c61 volatile union nxp_enet_qos_tx_desc *tx_desc_ptr = data->tx.descriptors; in eth_nxp_enet_qos_tx()
91 LOG_DBG("Setting up TX descriptors for packet %p", pkt); in eth_nxp_enet_qos_tx()
93 /* Reset the descriptors */ in eth_nxp_enet_qos_tx()
94 memset((void *)data->tx.descriptors, 0, sizeof(union nxp_enet_qos_tx_desc) * frags_count); in eth_nxp_enet_qos_tx()
96 /* Setting up the descriptors */ in eth_nxp_enet_qos_tx()
115 /* Set the DMA ownership of all the used descriptors */ in eth_nxp_enet_qos_tx()
117 data->tx.descriptors[i].read.control2 |= OWN_FLAG; in eth_nxp_enet_qos_tx()
168 volatile union nxp_enet_qos_rx_desc *desc_arr = data->rx.descriptors; in eth_nxp_enet_qos_rx()
175 /* We are going to find all of the descriptors we own and update them */ in eth_nxp_enet_qos_rx()
427 memset((void *)tx->descriptors, 0, sizeof(union nxp_enet_qos_tx_desc) * NUM_TX_BUFDESC); in enet_qos_tx_desc_init()
[all …]
/Zephyr-latest/subsys/usb/device_next/
Dusbd_desc.h27 * @brief Remove all descriptors from an USB device context
29 * This removes all loose descriptors like string descriptors.
30 * Descriptors like configuration, or interface are not touched
Dusbd_desc.c27 * and sorted by bDescriptorType. For the string descriptors, the function
36 SYS_DLIST_FOR_EACH_CONTAINER(&uds_ctx->descriptors, tmp_nd, node) { in desc_add_and_update_idx()
43 next_nd = SYS_DLIST_PEEK_NEXT_CONTAINER(&uds_ctx->descriptors, in desc_add_and_update_idx()
50 sys_dlist_append(&uds_ctx->descriptors, &new_nd->node); in desc_add_and_update_idx()
77 sys_dlist_append(&uds_ctx->descriptors, &new_nd->node); in desc_add_and_update_idx()
88 SYS_DLIST_FOR_EACH_CONTAINER(&uds_ctx->descriptors, desc_nd, node) { in usbd_get_descriptor()
110 while ((node = sys_dlist_get(&uds_ctx->descriptors))) { in usbd_desc_remove_all()
135 if (!sys_dnode_is_linked(&uds_ctx->descriptors)) { in usbd_add_descriptor()
136 LOG_DBG("Initialize descriptors list"); in usbd_add_descriptor()
137 sys_dlist_init(&uds_ctx->descriptors); in usbd_add_descriptor()
[all …]
/Zephyr-latest/samples/arch/smp/pktqueue/src/
Dmain.c42 /* Array of packet header descriptors */
43 struct phdr_desc descriptors[QUEUE_NUM][SIZE_OF_QUEUE]; variable
59 queue->head = descriptors[queue_num]; in init_datagram_queue()
62 queue->tail = &descriptors[queue_num][i]; in init_datagram_queue()
63 descriptors[queue_num][i].ptr = (uint8_t *)&headers[queue_num][i]; in init_datagram_queue()
68 descriptors[queue_num][i].ptr[j] = sys_rand8_get(); in init_datagram_queue()
70 descriptors[queue_num][i].ptr[j] = 0; in init_datagram_queue()
77 descriptors[queue_num][i].ptr, SIZE_OF_HEADER); in init_datagram_queue()
80 descriptors[queue_num][i].ptr[CRC_BYTE_1] = (uint8_t)(crc >> 8); in init_datagram_queue()
81 descriptors[queue_num][i].ptr[CRC_BYTE_2] = (uint8_t)(crc); in init_datagram_queue()
[all …]
/Zephyr-latest/drivers/dma/
DKconfig.xilinx_axi_dma15 bool "Disable data cache while accessing Scatter-Gather Descriptors."
19 Disable dcache while operating on Scatter-Gather descriptors.
25 int "Number of transfer descriptors allocated for transmission (TX)."
29 The Xilinx AXI DMA uses a ring of in-memory DMA descriptors which reference
31 Increasing the number of descriptors increases the amount of packets in flight,
35 int "Number of transfer descriptors allocated for reception (RX)."
DKconfig.esp3212 int "Maximal number of available DMA descriptors"
15 Reserves memory for a maximal number of descriptors
/Zephyr-latest/tests/subsys/bindesc/reading/src/
Dmain.c25 static __aligned(BINDESC_ALIGNMENT) const uint8_t descriptors[] = {
38 0xff, 0xff, 0x00, 0x00, /* tag: 0xffff (descriptors end), length: 0x0000 */
44 flash_write(flash_dev, 0, descriptors, sizeof(descriptors)); in test_setup()
79 bindesc_open_ram(&handle, descriptors, sizeof(descriptors)); in ZTEST()
/Zephyr-latest/lib/os/zvfs/
DKconfig12 types of file descriptors such as those from the non-virtual FS, sockets, eventfds, FILE *'s
21 Enable support for ZVFS event file descriptors. An eventfd can
32 The maximum number of supported event file descriptors.
/Zephyr-latest/drivers/sdhc/
DKconfig.sdhc_cdns19 int "Allocate number of descriptors"
23 Creates static descriptors which can be used by ADMA. Devices should
/Zephyr-latest/scripts/west_commands/
Dbindesc.py104 'work with Binary Descriptors',
106 Work with Binary Descriptors - constant data objects
117 dump_parser = subparsers.add_parser('dump', help='Dump all binary descriptors in the image')
144 list_parser = subparsers.add_parser('list', help='List all known descriptors')
147 … get_offset_parser = subparsers.add_parser('get_offset', help='Get the offset of the descriptors')
159 descriptors = self.parse_descriptors(image)
160 for tag, value in descriptors.items():
172 descriptors = self.parse_descriptors(image)
174 if search_term in descriptors:
175 value = descriptors[search_term]
[all …]
/Zephyr-latest/samples/subsys/bindesc/read_bindesc/src/
Dmain.c44 printk("Descriptors terminator\n"); in dump_descriptors_callback()
67 * In a normal application, the offset of the descriptors should be constant and known, in main()
71 * the descriptors in order to remain generic. in main()
75 printk("Found descriptors at 0x%x\n", i); in main()
81 printk("Descriptors not found\n"); in main()
/Zephyr-latest/dts/arm/xilinx/
Dzynqmp.dtsi122 rx-buffer-descriptors = <32>;
123 tx-buffer-descriptors = <32>;
149 rx-buffer-descriptors = <32>;
150 tx-buffer-descriptors = <32>;
176 rx-buffer-descriptors = <32>;
177 tx-buffer-descriptors = <32>;
203 rx-buffer-descriptors = <32>;
204 tx-buffer-descriptors = <32>;
/Zephyr-latest/drivers/usb/device/
Dusb_dc_native_posix_adapt.c73 void get_interface(uint8_t *descriptors) in get_interface() argument
75 while (descriptors[0]) { in get_interface()
76 if (descriptors[1] == USB_DESC_INTERFACE) { in get_interface()
81 descriptors += descriptors[0]; in get_interface()
85 static int send_interfaces(const uint8_t *descriptors, int connfd) in send_interfaces() argument
94 while (descriptors[0]) { in send_interfaces()
95 if (descriptors[1] == USB_DESC_INTERFACE) { in send_interfaces()
96 struct usb_if_descriptor *desc = (void *)descriptors; in send_interfaces()
111 descriptors += descriptors[0]; in send_interfaces()
276 LOG_ERR("Descriptors are not set"); in usbip_start()
/Zephyr-latest/doc/connectivity/usb/api/
Dhid.rst19 HID Mouse and Keyboard report descriptors
22 The pre-defined Mouse and Keyboard report descriptors can be used by
/Zephyr-latest/samples/subsys/bindesc/hello_bindesc/src/
Dmain.c18 /* Builtin descriptors */ in main()
25 /* Custom descriptors */ in main()

12345678