Home
last modified time | relevance | path

Searched full:request (Results 1 – 25 of 1191) sorted by relevance

12345678910>>...48

/Zephyr-latest/drivers/disk/nvme/
Dnvme_controller_cmd.c22 struct nvme_request *request; in nvme_ctrlr_cmd_identify_controller() local
24 request = nvme_allocate_request_vaddr( in nvme_ctrlr_cmd_identify_controller()
27 if (!request) { in nvme_ctrlr_cmd_identify_controller()
31 memset(&request->cmd, 0, sizeof(request->cmd)); in nvme_ctrlr_cmd_identify_controller()
32 request->cmd.cdw0.opc = NVME_OPC_IDENTIFY; in nvme_ctrlr_cmd_identify_controller()
33 request->cmd.cdw10 = sys_cpu_to_le32(1); in nvme_ctrlr_cmd_identify_controller()
35 return nvme_cmd_qpair_submit_request(ctrlr->adminq, request); in nvme_ctrlr_cmd_identify_controller()
42 struct nvme_request *request; in nvme_ctrlr_cmd_identify_namespace() local
44 request = nvme_allocate_request_vaddr( in nvme_ctrlr_cmd_identify_namespace()
47 if (!request) { in nvme_ctrlr_cmd_identify_namespace()
[all …]
Dnvme_cmd.c46 { NVME_SC_ABORTED_BY_REQUEST, "ABORTED - BY REQUEST" },
238 void nvme_cmd_request_free(struct nvme_request *request) in nvme_cmd_request_free() argument
240 if (sys_dnode_is_linked(&request->node)) { in nvme_cmd_request_free()
241 sys_dlist_remove(&request->node); in nvme_cmd_request_free()
244 if (request->prp_list != NULL) { in nvme_cmd_request_free()
245 nvme_prp_list_free(request->prp_list); in nvme_cmd_request_free()
248 memset(request, 0, sizeof(struct nvme_request)); in nvme_cmd_request_free()
249 sys_dlist_append(&free_request, &request->node); in nvme_cmd_request_free()
258 LOG_ERR("Could not allocate request"); in nvme_cmd_request_alloc()
267 static void nvme_cmd_register_request(struct nvme_request *request) in nvme_cmd_register_request() argument
[all …]
Dnvme_disk.c28 struct nvme_request *request; in nvme_disk_read() local
41 request = nvme_allocate_request_vaddr((void *)data_buf, payload_size, in nvme_disk_read()
43 if (request == NULL) { in nvme_disk_read()
48 nvme_namespace_read_cmd(&request->cmd, ns->id, in nvme_disk_read()
54 nvme_cmd_qpair_submit_request(ns->ctrlr->ioq, request); in nvme_disk_read()
77 struct nvme_request *request; in nvme_disk_write() local
90 request = nvme_allocate_request_vaddr((void *)data_buf, payload_size, in nvme_disk_write()
92 if (request == NULL) { in nvme_disk_write()
97 nvme_namespace_write_cmd(&request->cmd, ns->id, in nvme_disk_write()
103 nvme_cmd_qpair_submit_request(ns->ctrlr->ioq, request); in nvme_disk_write()
[all …]
/Zephyr-latest/soc/nordic/common/
Dmram_latency.h24 /** @brief Request MRAM operations without latency.
27 * an operation to request the MRAM low latency. If initiation of the
28 * operation succeeds, the result of the request operation is provided through
32 * expectations and how to notify the client when the request
44 /** @brief Request MRAM operations without latency.
46 * Request is synchronous and blocks until it is completed. It can be called only
49 * @retval 0 on successful request.
51 * @retval -EAGAIN if request was not completed on time.
56 * @brief Safely cancel a request for MRAM operations without latency.
58 * It may be that a client has issued a reservation request but needs to
[all …]
/Zephyr-latest/tests/kernel/timer/timer_behavior/pytest/
Dconftest.py17 def tool(request): argument
18 return request.config.getoption('--tool')
22 def tool_options(request): argument
23 return request.config.getoption('--tool-options')
27 def config(request): argument
28 build_dir = Path(request.config.getoption('--build-dir'))
42 def sys_clock_hw_cycles_per_sec(request, config): argument
43 if request.config.getoption('--sys-clock-hw-cycles-per-sec'):
44 return int(request.config.getoption('--sys-clock-hw-cycles-per-sec'))
/Zephyr-latest/samples/net/sockets/coap_server/src/
Dlarge.c17 struct coap_packet *request, in large_get() argument
37 r = coap_update_from_block(request, &ctx); in large_get()
42 code = coap_header_get_code(request); in large_get()
43 type = coap_header_get_type(request); in large_get()
44 id = coap_header_get_id(request); in large_get()
45 tkl = coap_header_get_token(request, token); in large_get()
96 struct coap_packet *request, in large_update_put() argument
112 r = coap_get_option_int(request, COAP_OPTION_BLOCK1); in large_update_put()
124 r = coap_update_from_block(request, &ctx); in large_update_put()
126 LOG_ERR("Invalid block size option from request"); in large_update_put()
[all …]
Dtest.c17 struct coap_packet *request, in piggyback_get() argument
30 code = coap_header_get_code(request); in piggyback_get()
31 type = coap_header_get_type(request); in piggyback_get()
32 id = coap_header_get_id(request); in piggyback_get()
33 tkl = coap_header_get_token(request, token); in piggyback_get()
82 struct coap_packet *request, in test_del() argument
94 code = coap_header_get_code(request); in test_del()
95 type = coap_header_get_type(request); in test_del()
96 id = coap_header_get_id(request); in test_del()
97 tkl = coap_header_get_token(request, token); in test_del()
[all …]
/Zephyr-latest/subsys/dap/
Dcmsis_dap.c71 const uint8_t *const request, in dap_info() argument
75 uint8_t id = request[0]; in dap_info()
167 const uint8_t *const request, in dap_host_status() argument
170 switch (request[0]) { in dap_host_status()
172 if (request[1]) { in dap_host_status()
192 const uint8_t *const request, in dap_connect() argument
198 if (request[0] == DAP_PORT_AUTODETECT) { in dap_connect()
201 port = request[0]; in dap_connect()
255 const uint8_t *const request, in dap_delay() argument
258 uint16_t delay = sys_get_le16(&request[0]); in dap_delay()
[all …]
/Zephyr-latest/samples/subsys/usb/webusb/src/
Dwebusb.h18 * WebUSB request handlers
24 * The custom request handler gets a first chance at handling
25 * the request before it is handed over to the 'chapter 9' request
32 * @brief Register Custom and Vendor request callbacks
34 * Function to register Custom and Vendor request callbacks
37 * @param [in] handlers Pointer to WebUSB request handlers structure
/Zephyr-latest/samples/net/sockets/coap_client/src/
Dcoap-client.c132 struct coap_packet request; in send_simple_coap_request() local
142 r = coap_packet_init(&request, data, MAX_COAP_MSG_LEN, in send_simple_coap_request()
152 r = coap_packet_append_option(&request, COAP_OPTION_URI_PATH, in send_simple_coap_request()
155 LOG_ERR("Unable add option to request"); in send_simple_coap_request()
167 r = coap_packet_append_payload_marker(&request); in send_simple_coap_request()
173 r = coap_packet_append_payload(&request, (uint8_t *)payload, in send_simple_coap_request()
186 net_hexdump("Request", request.data, request.offset); in send_simple_coap_request()
188 r = send(sock, request.data, request.offset, 0); in send_simple_coap_request()
314 struct coap_packet request; in send_large_coap_request() local
329 r = coap_packet_init(&request, data, MAX_COAP_MSG_LEN, in send_large_coap_request()
[all …]
/Zephyr-latest/tests/subsys/debug/gdbstub/pytest/
Dconftest.py17 def gdb_script(request): argument
18 return request.config.getoption('--gdb_script')
22 def gdb_timeout(request): argument
23 return int(request.config.getoption('--gdb_timeout', default=60))
27 def gdb_target_remote(request): argument
28 return request.config.getoption('--gdb_target_remote', default=":5678")
/Zephyr-latest/soc/nordic/nrf54h/gpd/include/nrf/
Dgpd.h15 * @brief Request a global power domain.
19 * @retval 0 If the request was successful.
20 * @retval -errno If the request was not successful.
29 * @retval 0 If the request was successful.
30 * @retval -errno If the request was not successful.
40 * @retval 0 If the request was successful.
41 * @retval -errno If the request was not successful.
/Zephyr-latest/doc/connectivity/networking/api/
Dcoap_client.rst16 in the request. The CoAP client handles the communication over sockets.
23 The following is an example of a CoAP client initialization and request sending:
41 * destination address of the request or NULL if the socket is already connected.
46 After initialization, the application can send a CoAP request and wait for the response.
47 Currently only one request can be sent for a single CoAP client at a time. There can be multiple
52 - There is a response for the request
53 - The request failed for some reason
57 ``last_block`` is set to true, the response is finished and the client is ready for the next request
60 If the server responds to the request, the library provides the response to the
61 application through the response callback registered in the request structure.
[all …]
/Zephyr-latest/drivers/fpga/
Dfpga_altera_agilex_bridge.c65 struct sip_svc_request request; in svc_client_close() local
80 /* Fill the SiP SVC buffer with CANCEL request */ in svc_client_close()
83 request.header = SIP_SVC_PROTO_HEADER(SIP_SVC_PROTO_CMD_ASYNC, 0); in svc_client_close()
84 request.a0 = SMC_FUNC_ID_MAILBOX_SEND_COMMAND; in svc_client_close()
85 request.a1 = 0; in svc_client_close()
86 request.a2 = (uint64_t)cmd_addr; in svc_client_close()
87 request.a3 = (uint64_t)cmd_size; in svc_client_close()
88 request.a4 = 0; in svc_client_close()
89 request.a5 = 0; in svc_client_close()
90 request.a6 = 0; in svc_client_close()
[all …]
/Zephyr-latest/subsys/mgmt/ec_host_cmd/backends/
Dec_host_cmd_backend_shi.h21 * 2. EC_SHI_OLD_READY - AP sends first byte(s) of request
23 * 4. EC_SHI_RECEIVING - AP sends remaining byte(s) of request
24 * 5. EC_SHI_PROCESSING - EC starts processing request; AP is clocking in
32 * next request
41 * Then the EC found an error in the request, or was not ready for the request
43 * because the EC is unable to tell when the AP is done sending its request.
48 * request, the AP will clock in bytes until it sees the framing byte, then
70 * EC has started receiving the request from the AP, but hasn't started
75 /* EC has received the entire request from the AP and is processing it. */
92 * EC was ready to receive a request from the AP. EC has treated the byte sent
[all …]
/Zephyr-latest/doc/project/
Dmodifying_contributions.rst22 * integrate useful content which is part of a stale pull request, or
26 * a developer pushes to a branch or pull request opened by another
40 * clarify in their pull request the reason for cherry-picking the patches,
42 pull request, and
43 * invite the original author of the patches to their pull request review.
45 A developer who intends to force-push to a branch or pull request of
46 another Zephyr contributor shall clarify in the pull request the reason
48 is done to drive the pull request review to completion, when the pull
49 request author is not able to do so).
58 * (preferably) reach out to the original author and request them to
[all …]
/Zephyr-latest/include/zephyr/net/
Dicmp.h11 * @defgroup icmp Send and receive IPv4 or IPv6 ICMP Echo Request messages.
33 #define NET_ICMPV4_ECHO_REQUEST 8 /**< ICMPv4 Echo-Request */
35 #define NET_ICMPV6_ECHO_REQUEST 128 /**< ICMPv6 Echo-Request */
60 * @brief Handler function that is called when an Echo-Request is sent
62 * device driver so that it can catch the ping request and send
65 * @param ctx ICMP context used in this request.
69 * @param params Echo-Request specific parameters. May be NULL in which case
90 /** Network interface where the ICMP request was sent */
121 * Echo-Request (ping) messages.
124 /** An identifier to aid in matching Echo Replies to this Echo Request.
[all …]
Dcoap_client.h33 * @brief Callback for CoAP request.
53 * @brief Representation of a CoAP client request.
56 enum coap_method method; /**< Method of the request */
60 const uint8_t *payload; /**< User allocated buffer for send request */
63 const struct coap_client_option *options; /**< Extra options to be added to request */
69 * @brief Representation of extra options for the CoAP client request
99 struct coap_packet request; member
132 * @brief Send CoAP request
142 * @param addr the destination address of the request, NULL if socket is already connected.
143 * @param req CoAP request structure
[all …]
/Zephyr-latest/tests/subsys/modbus/src/
Dtest_modbus_client.c33 zassert_equal(err, 0, "FC05 request failed"); in test_coil_wr_rd()
37 zassert_equal(err, 0, "FC01 request failed"); in test_coil_wr_rd()
44 zassert_equal(err, 0, "FC15 request failed"); in test_coil_wr_rd()
49 zassert_equal(err, 0, "FC15 request failed"); in test_coil_wr_rd()
52 zassert_equal(err, 0, "FC01 request failed"); in test_coil_wr_rd()
58 zassert_not_equal(err, 0, "FC05 out of range request not failed"); in test_coil_wr_rd()
61 zassert_not_equal(err, 0, "FC15 out of range request not failed"); in test_coil_wr_rd()
71 zassert_equal(err, 0, "FC02 request failed"); in test_di_rd()
77 zassert_not_equal(err, 0, "FC02 out of range request not failed"); in test_di_rd()
80 zassert_not_equal(err, 0, "FC02 out of range request not failed"); in test_di_rd()
[all …]
/Zephyr-latest/subsys/sip_svc/
Dsip_svc_agilex_mailbox_shell.c120 struct sip_svc_request request; in cmd_close() local
135 request.header = SIP_SVC_PROTO_HEADER(SIP_SVC_PROTO_CMD_ASYNC, 0); in cmd_close()
136 request.a0 = SMC_FUNC_ID_MAILBOX_SEND_COMMAND; in cmd_close()
137 request.a1 = 0; in cmd_close()
138 request.a2 = (uint64_t)cmd_addr; in cmd_close()
139 request.a3 = (uint64_t)cmd_size; in cmd_close()
140 request.a4 = 0; in cmd_close()
141 request.a5 = 0; in cmd_close()
142 request.a6 = 0; in cmd_close()
143 request.a7 = 0; in cmd_close()
[all …]
/Zephyr-latest/samples/boards/nordic/clock_control/
DKconfig5 int "Frequency specification to request from clock in Hz"
13 int "Accuracy specification to request from clock in PPM"
21 int "Precision specification to request from clock"
32 before a clock request can be met.
35 int "Time to keep request alive in seconds"
/Zephyr-latest/include/zephyr/drivers/clock_control/
Dnrf_clock_control.h138 * of long startup time and low power consumption. Multiple modules can request
145 /** @brief Request high frequency clock from Bluetooth Controller.
149 * any confirmation when clock is ready because it assumes that request is
192 int (*request)(const struct device *dev, member
203 * @brief Request a reservation to use a given clock with specified attributes.
206 * an operation to request the clock be made available. If initiation of the
207 * operation succeeds, the result of the request operation is provided through
211 * request fails. Always check the operation completion result.
221 * expectations and how to notify the client when the request
226 * with the clock machine at the time the request was
[all …]
/Zephyr-latest/drivers/serial/
Duart_sy1xx.c53 static int32_t sy1xx_uart_read(const struct device *dev, sy1xx_uartTransfer_t *request);
54 static int32_t sy1xx_uart_write(const struct device *dev, sy1xx_uartTransfer_t *request);
90 /* start initial reading request to get the dma running */ in sy1xx_uart_configure()
108 int32_t sy1xx_uart_read(const struct device *dev, sy1xx_uartTransfer_t *request) in sy1xx_uart_read() argument
113 if (request == 0) { in sy1xx_uart_read()
117 uint32_t max_read_size = request->data_len; in sy1xx_uart_read()
119 request->data_len = 0; in sy1xx_uart_read()
136 request->data[i] = data->read[i]; in sy1xx_uart_read()
140 request->data_len = bytes_transferred; in sy1xx_uart_read()
145 /* start another read request, with maximum buffer size */ in sy1xx_uart_read()
[all …]
/Zephyr-latest/tests/net/socket/tls_configurations/pytest/
Dconftest.py14 def server_type(request): argument
15 return request.config.getoption('--server-type')
19 def port(request): argument
20 return request.config.getoption('--port')
/Zephyr-latest/include/zephyr/mgmt/mcumgr/transport/
Dserial.h26 * @brief Maintains state for an incoming mcumgr request packet.
29 /* Contains the partially- or fully-received mcumgr request. Data
49 * @brief Processes an mcumgr request fragment received over a serial
52 * Processes an mcumgr request fragment received over a serial transport. If
53 * the fragment is the end of a valid mcumgr request, this function returns a
54 * net_buf containing the decoded request. It is the caller's responsibility
62 * @return A net_buf containing the decoded request if a
63 * complete and valid request has been

12345678910>>...48