Home
last modified time | relevance | path

Searched +full:op +full:- +full:mode (Results 1 – 25 of 104) sorted by relevance

12345

/Zephyr-latest/drivers/crypto/
Dcrypto_tc_shim.c4 * SPDX-License-Identifier: Apache-2.0
28 static int do_cbc_encrypt(struct cipher_ctx *ctx, struct cipher_pkt *op, in do_cbc_encrypt() argument
31 struct tc_shim_drv_state *data = ctx->drv_sessn_state; in do_cbc_encrypt()
33 if (tc_cbc_mode_encrypt(op->out_buf, in do_cbc_encrypt()
34 op->out_buf_max, in do_cbc_encrypt()
35 op->in_buf, op->in_len, in do_cbc_encrypt()
37 &data->session_key) == TC_CRYPTO_FAIL) { in do_cbc_encrypt()
39 return -EIO; in do_cbc_encrypt()
42 /* out_len is the same as in_len in CBC mode */ in do_cbc_encrypt()
43 op->out_len = op->in_len; in do_cbc_encrypt()
[all …]
Dcrypto_si32.c4 * SPDX-License-Identifier: Apache-2.0
7 * - As there is only one AES controller, this implementation is not using a device configuration.
10 * - If not noted otherwise, chapter numbers refer to the SiM3U1XX/SiM3C1XX reference manual
11 * (SiM3U1xx-SiM3C1xx-RM.pdf, revision 1.0)
12 * - Each DMA channel has one word of unused data (=> 3 x 4 = 12 bytes of unused RAM)
54 uint32_t current_ctr; /* only used for AES-CTR sessions */
110 if (SI32_AES_0->STATUS.ERRI) { in crypto_si32_irq_error_handler()
112 SI32_AES_0->STATUS.DORF, SI32_AES_0->STATUS.DURF, SI32_AES_0->STATUS.XORF); in crypto_si32_irq_error_handler()
130 __ASSERT(SI32_AES_0->CONTROL.RESET == 0, "Reset done"); in crypto_si32_init()
133 * with software mode (SWMDEN bit is set to 1) and not with DMA operations, where the DMA in crypto_si32_init()
[all …]
/Zephyr-latest/include/zephyr/crypto/
Dcrypto.h4 * SPDX-License-Identifier: Apache-2.0
54 * by the op function returning, or it is conveyed by an async notification
73 enum cipher_algo algo, enum cipher_mode mode,
79 /* Register async crypto op completion callback with the driver */
88 /* Register async hash op completion callback with the driver */
95 * have four cipher mode specific (CTR, CCM, CBC ...) calls to perform the
116 api = (struct crypto_driver_api *) dev->api; in crypto_query_hwcaps()
118 tmp = api->query_hw_caps(dev); in crypto_query_hwcaps()
127 "Driver should support at least one op-type: sync/async"); in crypto_query_hwcaps()
147 * mode which may remain constant for all operations in the session. The state
[all …]
Dcipher.h4 * SPDX-License-Identifier: Apache-2.0
40 * Possible cipher mode options.
93 /* CTR mode counter is a split counter composed of iv and counter
114 * begin_session() based on the algo/mode chosen by the app.
148 /** Cypher mode parameters, which remain constant for all ops
189 * the application. Can be NULL for in-place ops. To be populated
190 * with contents by the driver on return from op / async callback.
229 /** Start address for the auth hash. For an encryption op this will
231 * For a decryption op this has to be supplied by the app.
238 * via the pkt->ctx field. For CCM ops the encompassing AEAD packet may be
[all …]
/Zephyr-latest/arch/riscv/core/
Dswitch.S4 * SPDX-License-Identifier: Apache-2.0
17 #define DO_CALLEE_SAVED(op, reg) \ argument
18 RV_E( op ra, _thread_offset_to_ra(reg) );\
19 RV_E( op s0, _thread_offset_to_s0(reg) );\
20 RV_E( op s1, _thread_offset_to_s1(reg) );\
21 RV_I( op s2, _thread_offset_to_s2(reg) );\
22 RV_I( op s3, _thread_offset_to_s3(reg) );\
23 RV_I( op s4, _thread_offset_to_s4(reg) );\
24 RV_I( op s5, _thread_offset_to_s5(reg) );\
25 RV_I( op s6, _thread_offset_to_s6(reg) );\
[all …]
Disr.S2 * Copyright (c) 2016 Jean-Paul Etienne <fractalclone@gmail.com>
6 * SPDX-License-Identifier: Apache-2.0
26 #define DO_CALLER_SAVED(op) \ argument
27 RV_E( op t0, __struct_arch_esf_t0_OFFSET(sp) );\
28 RV_E( op t1, __struct_arch_esf_t1_OFFSET(sp) );\
29 RV_E( op t2, __struct_arch_esf_t2_OFFSET(sp) );\
30 RV_I( op t3, __struct_arch_esf_t3_OFFSET(sp) );\
31 RV_I( op t4, __struct_arch_esf_t4_OFFSET(sp) );\
32 RV_I( op t5, __struct_arch_esf_t5_OFFSET(sp) );\
33 RV_I( op t6, __struct_arch_esf_t6_OFFSET(sp) );\
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Dhci_raw.c1 /* hci_userchan.c - HCI user channel Bluetooth handling */
4 * Copyright (c) 2015-2016 Intel Corporation
6 * SPDX-License-Identifier: Apache-2.0
70 /* The zephyr,bt-hci chosen property is mandatory, except for unit tests */
158 size--; in bt_buf_get_tx()
196 LOG_DBG("buf %p len %u", buf, buf->len); in bt_hci_recv()
198 bt_monitor_send(bt_monitor_opcode(buf), buf->data, buf->len); in bt_hci_recv()
217 return -EINVAL; in bt_hci_recv()
227 static void bt_cmd_complete_ext(uint16_t op, uint8_t status) in bt_cmd_complete_ext() argument
236 buf = bt_hci_cmd_complete_create(op, sizeof(*cc)); in bt_cmd_complete_ext()
[all …]
/Zephyr-latest/include/zephyr/bluetooth/
Dhci_raw.h8 * SPDX-License-Identifier: Apache-2.0
38 /** Passthrough mode
40 * While in this mode the buffers are passed as is between the stack
45 /** H:4 mode
47 * While in this mode H:4 headers will added into the buffers
54 /** @brief Set Bluetooth RAW channel mode
56 * Set access mode of Bluetooth RAW channel.
58 * @param mode Access mode.
62 int bt_hci_raw_set_mode(uint8_t mode);
64 /** @brief Get Bluetooth RAW channel mode
[all …]
/Zephyr-latest/scripts/west_commands/runners/
Dnrfjprog.py4 # SPDX-License-Identifier: Apache-2.0
18 '''Runner front-end for nrfjprog.'''
34 def tool_opt_help(cls) -> str:
35 return 'Additional options for nrfjprog, e.g. "--clockspeed"'
47 parser.add_argument('--qspiini', required=False, dest='qspi_ini',
51 snrs = self.check_output(['nrfjprog', '--ids'])
57 def do_exec_op(self, op, force=False): argument
58 self.logger.debug(f'Executing op: {op}')
59 # Translate the op
67 core_opt = ['--coprocessor', cores[op['core']]] \
[all …]
/Zephyr-latest/soc/nuvoton/npcx/common/
Dsoc_host.h4 * SPDX-License-Identifier: Apache-2.0
21 * @brief Initializes all host sub-modules in Core domain.
23 * This routine initializes all host sub-modules which HW blocks belong to
31 * @retval -EIO if cannot turn on host sub-module source clocks in core domain.
37 * @brief Initializes all host sub-modules in Host domain.
39 * This routine initializes all host sub-modules which HW blocks belong to
41 * de-asserted signal and eSPI peripheral channel is enabled and ready.
46 * @brief Reads data from a host sub-module which is updated via eSPI.
48 * This routine provides a generic interface to read a host sub-module which
51 * @param op Enum representing opcode for peripheral type and read request.
[all …]
/Zephyr-latest/subsys/rtio/
Drtio_handlers.c4 * SPDX-License-Identifier: Apache-2.0
18 * Each op code that is acceptable from user mode must also be validated.
22 if (sqe->iodev != NULL && K_SYSCALL_OBJ(sqe->iodev, K_OBJ_RTIO_IODEV)) { in rtio_vrfy_sqe()
28 switch (sqe->op) { in rtio_vrfy_sqe()
32 valid_sqe &= K_SYSCALL_MEMORY(sqe->tx.buf, sqe->tx.buf_len, false); in rtio_vrfy_sqe()
35 if ((sqe->flags & RTIO_SQE_MEMPOOL_BUFFER) == 0) { in rtio_vrfy_sqe()
36 valid_sqe &= K_SYSCALL_MEMORY(sqe->rx.buf, sqe->rx.buf_len, true); in rtio_vrfy_sqe()
42 valid_sqe &= K_SYSCALL_MEMORY(sqe->txrx.tx_buf, sqe->txrx.buf_len, true); in rtio_vrfy_sqe()
43 valid_sqe &= K_SYSCALL_MEMORY(sqe->txrx.rx_buf, sqe->txrx.buf_len, true); in rtio_vrfy_sqe()
46 /* RTIO OP must be known and allowable from user mode in rtio_vrfy_sqe()
[all …]
/Zephyr-latest/drivers/cache/
Dcache_andes.c4 * SPDX-License-Identifier: Apache-2.0
74 static ALWAYS_INLINE int nds_l2_cache_range(void *addr, size_t size, int op) { return 0; } in nds_l2_cache_range() argument
75 static ALWAYS_INLINE int nds_l2_cache_all(int op) { return 0; } in nds_l2_cache_all() argument
85 last_byte = (unsigned long)addr + size - 1; in nds_cctl_range_operations()
89 * In memory access privilige U mode, applications should use ucctl CSRs in nds_cctl_range_operations()
109 static ALWAYS_INLINE int nds_l1i_cache_all(int op) in nds_l1i_cache_all() argument
116 * In memory access privilige U mode, applications can only use in nds_l1i_cache_all()
120 return -ENOTSUP; in nds_l1i_cache_all()
124 if (op == K_CACHE_INVD) { in nds_l1i_cache_all()
138 static ALWAYS_INLINE int nds_l1d_cache_all(int op) in nds_l1d_cache_all() argument
[all …]
/Zephyr-latest/drivers/sdhc/
Dsdhc_cdns_ll.c3 * SPDX-License-Identifier: Apache-2.0
26 #define CDNSMMC_ADDRESS_MASK (CONFIG_SDHC_BUFFER_ALIGNMENT - 1)
59 return -ENXIO; in sdhc_cdns_write_phy_reg()
71 return -ETIMEDOUT; in sdhc_cdns_wait_ics()
93 return -ETIMEDOUT; in sdhc_cdns_card_present()
107 * CDNS_SRS10_BVS = 7, CDNS_SRS10_BP = 1, BP2 only in UHS2 mode in sdhc_cdns_vol_reset()
117 * with input value- mode sd_ds,
128 sdhc_cdns_combo_phy_reg->cp_clk_wr_delay = 0; in cdns_sdhc_set_sdmmc_params()
129 sdhc_cdns_combo_phy_reg->cp_clk_wrdqs_delay = 0; in cdns_sdhc_set_sdmmc_params()
130 sdhc_cdns_combo_phy_reg->cp_data_select_oe_end = 1; in cdns_sdhc_set_sdmmc_params()
[all …]
/Zephyr-latest/scripts/tests/twister/
Dtest_runner.py4 # SPDX-License-Identifier: Apache-2.0
71 def project_builder(mocked_instance, mocked_env, mocked_jobserver) -> ProjectBuilder:
77 def runners(project_builder: ProjectBuilder) -> dict:
119 "-DCONFIG_t=\"test\"",
120 "-Dcmake1=foo", "-Dcmake2=bar",
121 "-Dbasearg1", "-DSNIPPET_t=test",
122 "-Dhandler_arg1", "-Dhandler_arg2",
123 "-DCONF_FILE=a.conf;b.conf;c.conf",
124 "-DDTC_OVERLAY_FILE=x.overlay;y.overlay;z.overlay",
125 "-DOVERLAY_CONFIG=extra_overlay.conf "
[all …]
/Zephyr-latest/dts/bindings/mspi/
Dmspi-controller.yaml2 # SPDX-License-Identifier: Apache-2.0
11 clock-frequency:
15 "#address-cells":
18 "#size-cells":
22 op-mode:
25 - "MSPI_CONTROLLER"
26 - "MSPI_PERIPHERAL"
28 Indicate MSPI controller or peripheral mode of the controller.
34 - "MSPI_HALF_DUPLEX"
35 - "MSPI_FULL_DUPLEX"
[all …]
/Zephyr-latest/samples/subsys/smf/smf_calculator/src/
Dsmf_calculator_thread.c4 * SPDX-License-Identifier: Apache-2.0
52 static void set_display_mode(enum display_mode mode) in set_display_mode() argument
54 current_display_mode = mode; in set_display_mode()
57 static void setup_operand(struct operand *op) in setup_operand() argument
60 op->index = 1; in setup_operand()
61 op->string[0] = ' '; /* space for sign */ in setup_operand()
62 op->string[1] = '0'; /* A 0 indicator to be overwritten */ in setup_operand()
63 op->string[2] = 0x00; in setup_operand()
66 static int insert(struct operand *op, char digit) in insert() argument
68 if (op->index >= (CALCULATOR_STRING_LENGTH - 1)) { in insert()
[all …]
/Zephyr-latest/drivers/gpio/
Dgpio_cc13xx_cc26xx.c4 * SPDX-License-Identifier: Apache-2.0
14 #include <zephyr/dt-bindings/gpio/ti-cc13xx-cc26xx-gpio.h>
29 /* bits 16-18 in iocfg registers correspond to interrupt settings */
32 /* the rest are for general (non-interrupt) config */
72 return -ENOTSUP; in gpio_cc13xx_cc26xx_config()
92 return -ENOTSUP; in gpio_cc13xx_cc26xx_config()
106 return -EINVAL; in gpio_cc13xx_cc26xx_config()
172 enum gpio_int_mode mode, in gpio_cc13xx_cc26xx_pin_interrupt_configure() argument
177 if (mode != GPIO_INT_MODE_DISABLED) { in gpio_cc13xx_cc26xx_pin_interrupt_configure()
178 if (mode == GPIO_INT_MODE_EDGE) { in gpio_cc13xx_cc26xx_pin_interrupt_configure()
[all …]
Dgpio_nxp_s32.c2 * Copyright 2022-2024 NXP
4 * SPDX-License-Identifier: Apache-2.0
13 #include <zephyr/dt-bindings/gpio/nxp-s32-gpio.h>
33 #define GPIO_READ(r) sys_read16(config->gpio_base + (r))
34 #define GPIO_WRITE(r, v) sys_write16((v), config->gpio_base + (r))
35 #define PORT_READ(p) sys_read32(config->port_base + SIUL2_MSCR(p))
36 #define PORT_WRITE(p, v) sys_write32((v), config->port_base + SIUL2_MSCR(p))
86 const struct gpio_nxp_s32_config *config = dev->config; in nxp_s32_gpio_configure()
91 return -ENOTSUP; in nxp_s32_gpio_configure()
95 struct gpio_nxp_s32_data *data = dev->data; in nxp_s32_gpio_configure()
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_sam_twihs_rtio.c6 * SPDX-License-Identifier: Apache-2.0
14 * Only I2C Controller Mode with 7 bit addressing is currently supported.
33 #include "i2c-priv.h"
35 /** I2C bus speed [Hz] in Standard Mode */
37 /** I2C bus speed [Hz] in Fast Mode */
39 /** I2C bus speed [Hz] in High Speed Mode */
70 cl_div = ((SOC_ATMEL_SAM_MCK_FREQ_HZ / (speed * 2U)) - 3) in i2c_clk_set()
82 return -EIO; in i2c_clk_set()
86 twihs->TWIHS_CWGR = TWIHS_CWGR_CLDIV(cl_div) | TWIHS_CWGR_CHDIV(cl_div) in i2c_clk_set()
94 const struct i2c_sam_twihs_dev_cfg *const dev_cfg = dev->config; in i2c_sam_twihs_configure()
[all …]
/Zephyr-latest/drivers/espi/
Dhost_subs_npcx.c4 * SPDX-License-Identifier: Apache-2.0
13 * This file contains the drivers of NPCX Host Sub-Modules that serve as an
16 * +------------+
17 * | Serial |---> TXD
18 * +<--->| Port |<--- RXD
19 * | | |<--> ...
20 * | +------------+
21 * | +------------+ |
22 * +------------+ |<--->| KBC & PM |<--->|
23 * eSPI_CLK --->| eSPI Bus | | | Channels | |
[all …]
/Zephyr-latest/subsys/shell/backends/
Dshell_telnet.c5 * SPDX-License-Identifier: Apache-2.0
53 (void)zsock_close(sh_telnet->fds[SOCK_ID_CLIENT].fd); in telnet_end_client_connection()
55 sh_telnet->fds[SOCK_ID_CLIENT].fd = -1; in telnet_end_client_connection()
56 sh_telnet->output_lock = false; in telnet_end_client_connection()
58 k_work_cancel_delayable_sync(&sh_telnet->send_work, in telnet_end_client_connection()
59 &sh_telnet->work_sync); in telnet_end_client_connection()
61 ret = net_socket_service_register(&telnet_server, sh_telnet->fds, in telnet_end_client_connection()
62 ARRAY_SIZE(sh_telnet->fds), NULL); in telnet_end_client_connection()
70 if (sh_telnet->fds[SOCK_ID_CLIENT].fd < 0) { in telnet_command_send_reply()
77 ret = zsock_send(sh_telnet->fds[SOCK_ID_CLIENT].fd, msg, len, 0); in telnet_command_send_reply()
[all …]
/Zephyr-latest/include/zephyr/rtio/
Drtio.h4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Real-Time IO device API for moving bytes with low effort
126 * -ECANCELED as the result.
231 * @brief I3C HDR Mode Mask
236 * @brief I3C HDR Mode Mask
242 * @brief I3C HDR Mode Mask
278 * @param sqe Submission for the callback op
287 uint8_t op; /**< Op code */ member
289 uint8_t prio; /**< Op priority */
291 uint16_t flags; /**< Op Flags */
[all …]
/Zephyr-latest/drivers/ieee802154/
Dieee802154_cc13xx_cc26xx_subg.c4 * SPDX-License-Identifier: Apache-2.0
45 /* User-defined CMD_PROP_RADIO_DIV_SETUP structures */
54 /* Radio register overrides for CC13x2R (note: CC26x2 does not support sub-GHz radio)
55 * from SmartRF Studio (200kbps, 50kHz deviation, 2-GFSK, 311.8kHz Rx BW),
56 * approximates SUN FSK PHY, 915 MHz band, operating mode #3.
73 /* Rx: Set RSSI offset to adjust reported RSSI by -1 dB (default: -2),
77 /* Rx: Set anti-aliasing filter bandwidth to 0x8 (in ADI0, set IFAMPCTL3[7:4]=0x8) */
86 /* CC1352P overrides from SmartRF Studio (200kbps, 50kHz deviation, 2-GFSK, 311.8kHz Rx BW) */
92 /* Rx: Set RSSI offset to adjust reported RSSI by -1 dB (default: -2),
96 /* Rx: Set anti-aliasing filter bandwidth to 0x6 (in ADI0, set IFAMPCTL3[7:4]=0x8) */
[all …]
/Zephyr-latest/drivers/tee/optee/
Doptee_smc.h1 /* SPDX-License-Identifier: BSD-2-Clause */
3 * Copyright (c) 2015-2021, Linaro Limited
11 * This file is exported by OP-TEE and is in kept in sync between secure
70 * Normal cached memory (write-back), shareable for SMP systems and not
78 * 32-bit registers.
86 * 384fb3e0-e7f8-11e3-af63-0002a5d5c51b.
110 * Used by non-secure world to figure out which Trusted OS is installed.
113 * Returns UUID in a0-4 in the same way as OPTEE_SMC_CALLS_UID
123 * Used by non-secure world to figure out which version of the Trusted OS
127 * Returns revision in a0-1 in the same way as OPTEE_SMC_CALLS_REVISION
[all …]
/Zephyr-latest/include/zephyr/xen/public/
Darch-arm.h1 /* SPDX-License-Identifier: MIT */
4 * arch-arm.h
42 * 32- or 64-bit), the second argument in x1/r1, the third in x2/r2,
47 * is an inter-procedure-call scratch register (e.g. for use in linker
61 * EABI) and Procedure Call Standard for the ARM 64-bit Architecture
62 * (AAPCS64). Where there is a conflict the 64-bit standard should be
68 * which is mapped as Normal Inner Write-Back Outer Write-Back Inner-Shareable.
70 * - hypercall arguments passed via a pointer to guest memory.
71 * - memory shared via the grant table mechanism (including PV I/O
73 * - memory shared with the hypervisor (struct shared_info, struct
[all …]

12345