Home
last modified time | relevance | path

Searched +full:- +full:- +full:request (Results 1 – 25 of 1048) sorted by relevance

12345678910>>...42

/Zephyr-latest/drivers/disk/nvme/
Dnvme_controller_cmd.c3 * SPDX-License-Identifier: Apache-2.0
22 struct nvme_request *request; in nvme_ctrlr_cmd_identify_controller() local
24 request = nvme_allocate_request_vaddr( in nvme_ctrlr_cmd_identify_controller()
25 &ctrlr->cdata, sizeof(struct nvme_controller_data), in nvme_ctrlr_cmd_identify_controller()
27 if (!request) { in nvme_ctrlr_cmd_identify_controller()
28 return -ENOMEM; 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()
[all …]
Dnvme_cmd.c3 * SPDX-License-Identifier: Apache-2.0
44 { NVME_SC_ABORTED_POWER_LOSS, "ABORTED - POWER LOSS" },
46 { NVME_SC_ABORTED_BY_REQUEST, "ABORTED - BY REQUEST" },
47 { NVME_SC_ABORTED_SQ_DELETION, "ABORTED - SQ DELETION" },
48 { NVME_SC_ABORTED_FAILED_FUSED, "ABORTED - FAILED FUSED" },
49 { NVME_SC_ABORTED_MISSING_FUSED, "ABORTED - MISSING FUSED" },
109 { NVME_SC_SELF_TEST_IN_PROGRESS, "DEVICE SELF-TEST IN PROGRESS" },
171 while (entry->sc != 0xFFFF) { in get_status_string()
172 if (entry->sc == sc) { in get_status_string()
173 return entry->str; in get_status_string()
[all …]
Dnvme_disk.c3 * SPDX-License-Identifier: Apache-2.0
24 struct nvme_namespace *ns = CONTAINER_OF(disk->name, in nvme_disk_read()
28 struct nvme_request *request; in nvme_disk_read() local
33 LOG_WRN("Data buffer pointer needs to be 4-bytes aligned"); in nvme_disk_read()
34 return -EINVAL; in nvme_disk_read()
37 nvme_lock(disk->dev); in nvme_disk_read()
41 request = nvme_allocate_request_vaddr((void *)data_buf, payload_size, in nvme_disk_read()
43 if (request == NULL) { in nvme_disk_read()
44 ret = -ENOMEM; in nvme_disk_read()
48 nvme_namespace_read_cmd(&request->cmd, ns->id, in nvme_disk_read()
[all …]
/Zephyr-latest/soc/nordic/common/
Dmram_latency.h3 * SPDX-License-Identifier: Apache-2.0
24 /** @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
36 * @retval non-negative the observed state of the on-off service associated
38 * @retval -EIO if MRAM latency service returned error.
39 * @retval -EINVAL if the parameters are invalid.
40 * @retval -EAGAIN if the reference count would overflow.
44 /** @brief Request MRAM operations without latency.
[all …]
/Zephyr-latest/tests/kernel/timer/timer_behavior/pytest/
Dconftest.py3 # SPDX-License-Identifier: Apache-2.0
11 parser.addoption('--tool')
12 parser.addoption('--tool-options')
13 parser.addoption('--sys-clock-hw-cycles-per-sec', default=None)
17 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'))
[all …]
/Zephyr-latest/subsys/dap/
Dcmsis_dap.c2 * Copyright (c) 2018-2019 PHYTEC Messtechnik GmbH
5 * SPDX-License-Identifier: Apache-2.0
9 * This file is based on DAP.c from CMSIS-DAP Source (Revision: V2.0.0)
10 * https://github.com/ARM-software/CMSIS_5/tree/develop/CMSIS/DAP/Firmware
11 * Copyright (c) 2013-2017 ARM Limited. All rights reserved.
12 * SPDX-License-Identifier: Apache-2.0
51 MIN(CONFIG_CMSIS_DAP_PACKET_SIZE - 2, UINT8_MAX - 2),
54 MIN(CONFIG_CMSIS_DAP_PACKET_SIZE - 2, UINT8_MAX - 2),
57 MIN(CONFIG_CMSIS_DAP_PACKET_SIZE - 2, UINT8_MAX - 2),
60 MIN(CONFIG_CMSIS_DAP_PACKET_SIZE - 2, UINT8_MAX - 2),
[all …]
/Zephyr-latest/samples/net/sockets/coap_server/src/
Dlarge.c5 * SPDX-License-Identifier: Apache-2.0
17 struct coap_packet *request, in large_get() argument
37 r = coap_update_from_block(request, &ctx); in large_get()
39 return -EINVAL; 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()
55 return -EINVAL; in large_get()
75 ctx.total_size - ctx.current); in large_get()
[all …]
Dtest.c5 * SPDX-License-Identifier: Apache-2.0
17 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()
63 /* The response that coap-client expects */ 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()
[all …]
/Zephyr-latest/samples/subsys/usb/webusb/src/
Dwebusb.h2 * Copyright (c) 2015-2019 Intel Corporation
4 * SPDX-License-Identifier: Apache-2.0
18 * 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/tests/subsys/debug/gdbstub/pytest/
Dconftest.py4 # SPDX-License-Identifier: Apache-2.0
11 parser.addoption('--gdb_target_remote')
12 parser.addoption('--gdb_timeout')
13 parser.addoption('--gdb_script')
17 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/samples/net/sockets/coap_client/src/
Dcoap-client.c4 * SPDX-License-Identifier: Apache-2.0
45 if (poll(fds, nfds, -1) < 0) { in wait()
72 return -errno; in start_coap_client()
78 return -errno; in start_coap_client()
97 return -ENOMEM; in process_simple_coap_reply()
102 ret = -EIO; in process_simple_coap_reply()
110 ret = -errno; in process_simple_coap_reply()
132 struct coap_packet request; in send_simple_coap_request() local
139 return -ENOMEM; in send_simple_coap_request()
142 r = coap_packet_init(&request, data, MAX_COAP_MSG_LEN, in send_simple_coap_request()
[all …]
/Zephyr-latest/soc/nordic/nrf54h/gpd/include/nrf/
Dgpd.h3 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/dt-bindings/power/nordic-nrf-gpd.h>
15 * @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/drivers/fpga/
Dfpga_altera_agilex_bridge.c4 * SPDX-License-Identifier: Apache-2.0
37 return -ENODEV; in svc_client_open()
40 struct fpga_bridge_dev_data *const data = (struct fpga_bridge_dev_data *const)(dev->data); in svc_client_open()
42 if ((!data->mailbox_smc_dev) || (data->mailbox_client_token == 0)) { in svc_client_open()
44 return -ENODEV; in svc_client_open()
47 if (sip_svc_open(data->mailbox_smc_dev, data->mailbox_client_token, in svc_client_open()
50 return -ENODEV; in svc_client_open()
65 struct sip_svc_request request; in svc_client_close() local
69 return -ENODEV; in svc_client_close()
72 struct fpga_bridge_dev_data *const data = (struct fpga_bridge_dev_data *const)(dev->data); in svc_client_close()
[all …]
/Zephyr-latest/subsys/mgmt/ec_host_cmd/backends/
Dec_host_cmd_backend_shi.h4 * SPDX-License-Identifier: Apache-2.0
20 * 1. - - AP asserts chip select (CS#)
21 * 2. EC_SHI_OLD_READY - AP sends first byte(s) of request
22 * 3. - - EC starts handling CS# interrupt
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
26 * 6. - - EC finishes processing and sets up response
27 * 7. EC_SHI_FRAME_START - AP reads frame byte
28 * 8. (response packet) - AP reads response packet
29 * 9. EC_SHI_PAST_END - Any additional bytes read by AP
[all …]
/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:
25 .. code-block:: c
41 * destination address of the request or NULL if the socket is already connected.
43 ret = coap_client_req(&client, sock, &address, &req, -1);
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
[all …]
/Zephyr-latest/doc/project/
Dmodifying_contributions.rst19 * a developer cherry-picks commits submitted by other contributors into their
22 * 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
37 A developer who intends to cherry-pick and potentially modify patches sent by
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
[all …]
/Zephyr-latest/include/zephyr/net/
Dicmp.h4 * SPDX-License-Identifier: Apache-2.0
11 * @defgroup icmp Send and receive IPv4 or IPv6 ICMP Echo Request messages.
33 #define NET_ICMPV4_ECHO_REQUEST 8 /**< ICMPv4 Echo-Request */
34 #define NET_ICMPV4_ECHO_REPLY 0 /**< ICMPv4 Echo-Reply */
35 #define NET_ICMPV6_ECHO_REQUEST 128 /**< ICMPv6 Echo-Request */
36 #define NET_ICMPV6_ECHO_REPLY 129 /**< ICMPv6 Echo-Reply */
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
[all …]
Dcoap_client.h10 * SPDX-License-Identifier: Apache-2.0
33 * @brief Callback for CoAP request.
53 * @brief Representation of a CoAP client request.
56 enum coap_method method; /**< Method of the request */
57 bool confirmable; /**< CoAP Confirmable/Non-confirmable message */
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
[all …]
/Zephyr-latest/subsys/sip_svc/
Dsip_svc_agilex_mailbox_shell.c2 * Copyright (c) 2022-2023, Intel Corporation.
4 * SPDX-License-Identifier: Apache-2.0
40 return -ENODEV; in cmd_reg()
47 err = -1; in cmd_reg()
94 return -ERANGE; in cmd_open()
96 return -errno; in cmd_open()
120 struct sip_svc_request request; in cmd_close() local
130 return -ENOMEM; in cmd_close()
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()
[all …]
/Zephyr-latest/samples/boards/nordic/clock_control/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
5 int "Frequency specification to request from clock in Hz"
8 0 -> ignore frequency
9 >0 -> use at minimum selected frequency. To select the
13 int "Accuracy specification to request from clock in PPM"
16 0 -> ignore accuracy
17 1 -> use max accuracy
18 >1 -> use at minimum selected accuracy
21 int "Precision specification to request from clock"
24 0 -> low precision
[all …]
/Zephyr-latest/drivers/serial/
Duart_sy1xx.c2 * SPDX-License-Identifier: Apache-2.0
53 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);
58 struct sy1xx_uart_config *config = (struct sy1xx_uart_config *)dev->config; in sy1xx_uart_configure()
60 if (uart_cfg->baudrate == 0) { in sy1xx_uart_configure()
61 return -1; in sy1xx_uart_configure()
66 * and then will restart from 0, so we must give div - 1 as in sy1xx_uart_configure()
69 uint32_t divider = sy1xx_soc_get_peripheral_clock() / uart_cfg->baudrate - 1; in sy1xx_uart_configure()
85 volatile uint32_t setup = 0x0306 | uart_cfg->parity; in sy1xx_uart_configure()
88 SY1XX_UDMA_WRITE_REG(config->base, SY1XX_UDMA_SETUP_REG, setup); in sy1xx_uart_configure()
[all …]
/Zephyr-latest/include/zephyr/drivers/clock_control/
Dnrf_clock_control.h4 * SPDX-License-Identifier: Apache-2.0
108 * @return Number of calibrations or -1 if feature is disabled.
116 * @return Number of calibrations or -1 if feature is disabled.
138 * 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
175 /* Specifies the required clock accuracy in parts-per-million. */
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
[all …]
/Zephyr-latest/tests/net/socket/tls_configurations/pytest/
Dconftest.py3 # SPDX-License-Identifier: Apache-2.0
9 parser.addoption('--server-type')
10 parser.addoption('--port')
14 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/tests/subsys/modbus/src/
Dtest_modbus_client.c4 * SPDX-License-Identifier: Apache-2.0
33 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()
39 zassert_equal(coil[0], 0xff, "FC05 verify coil 0-7 failed"); in test_coil_wr_rd()
40 zassert_equal(coil[1], 0xff, "FC05 verify coil 8-15 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()
54 zassert_equal(coil[0], 0xaa, "FC15 verify coil 0-7 failed"); in test_coil_wr_rd()
55 zassert_equal(coil[1], 0xbb, "FC15 verify coil 8-15 failed"); in test_coil_wr_rd()
[all …]
/Zephyr-latest/include/zephyr/mgmt/mcumgr/transport/
Dserial.h4 * SPDX-License-Identifier: Apache-2.0
26 * @brief Maintains state for an incoming mcumgr request packet.
29 /* Contains the partially- or fully-received mcumgr request. Data
30 * stored in this buffer has already been base64-decoded.
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>>...42