/Zephyr-latest/modules/openthread/platform/ |
D | crypto_psa.c | 222 psa_mac_operation_t *operation; in otPlatCryptoHmacSha256Init() local 228 operation = aContext->mContext; in otPlatCryptoHmacSha256Init() 229 *operation = psa_mac_operation_init(); in otPlatCryptoHmacSha256Init() 236 psa_mac_operation_t *operation; in otPlatCryptoHmacSha256Deinit() local 242 operation = aContext->mContext; in otPlatCryptoHmacSha256Deinit() 244 return psaToOtError(psa_mac_abort(operation)); in otPlatCryptoHmacSha256Deinit() 249 psa_mac_operation_t *operation; in otPlatCryptoHmacSha256Start() local 256 operation = aContext->mContext; in otPlatCryptoHmacSha256Start() 257 status = psa_mac_sign_setup(operation, aKey->mKeyRef, PSA_ALG_HMAC(PSA_ALG_SHA_256)); in otPlatCryptoHmacSha256Start() 265 psa_mac_operation_t *operation; in otPlatCryptoHmacSha256Update() local [all …]
|
/Zephyr-latest/drivers/spi/ |
D | spi_shell.c | 25 .operation = SPI_OP_MODE_MASTER | SPI_WORD_SET(8)}; 79 spi_operation_t operation = SPI_WORD_SET(8) | SPI_OP_MODE_MASTER; in cmd_spi_conf() local 108 operation |= SPI_MODE_CPOL; in cmd_spi_conf() 111 operation |= SPI_MODE_CPHA; in cmd_spi_conf() 114 operation |= SPI_TRANSFER_LSB; in cmd_spi_conf() 117 operation |= SPI_FRAME_FORMAT_TI; in cmd_spi_conf() 132 config.operation = operation; in cmd_spi_conf()
|
D | spi_b91.c | 244 if (config->operation & SPI_HALF_DUPLEX) { in spi_b91_is_config_supported() 250 if (config->operation & SPI_MODE_LOOP) { in spi_b91_is_config_supported() 256 if (config->operation & SPI_TRANSFER_LSB) { in spi_b91_is_config_supported() 262 if (SPI_WORD_SIZE_GET(config->operation) != SPI_WORD_SIZE) { in spi_b91_is_config_supported() 268 if (config->operation & SPI_CS_ACTIVE_HIGH) { in spi_b91_is_config_supported() 275 if ((config->operation & SPI_LINES_MASK) == SPI_LINES_OCTAL) { in spi_b91_is_config_supported() 278 } else if (((config->operation & SPI_LINES_MASK) == in spi_b91_is_config_supported() 287 if (SPI_OP_MODE_GET(config->operation) == SPI_OP_MODE_SLAVE) { in spi_b91_is_config_supported() 316 if (((config->operation & SPI_MODE_CPHA) == 0) && in spi_b91_config() 317 ((config->operation & SPI_MODE_CPOL) == 0)) { in spi_b91_config() [all …]
|
D | spi_litex.c | 62 if (config->operation & SPI_HALF_DUPLEX) { in spi_config() 67 if (SPI_WORD_SIZE_GET(config->operation) > dev_config->data_width) { in spi_config() 72 if (config->operation & SPI_CS_ACTIVE_HIGH) { in spi_config() 77 if (config->operation & SPI_LOCK_ON) { in spi_config() 83 (config->operation & SPI_LINES_MASK) != SPI_LINES_SINGLE) { in spi_config() 88 if (config->operation & SPI_TRANSFER_LSB) { in spi_config() 93 if (config->operation & (SPI_MODE_CPOL | SPI_MODE_CPHA)) { in spi_config() 98 if (config->operation & SPI_OP_MODE_SLAVE) { in spi_config() 104 if (!litex_read8(dev_config->loopback_addr) != !(config->operation & SPI_MODE_LOOP)) { in spi_config() 105 litex_write8(((config->operation & SPI_MODE_LOOP) ? 0x1 : 0x0), in spi_config() [all …]
|
D | spi_ifx_cat1.c | 61 switch (SPI_WORD_SIZE_GET(ctx->config->operation)) { in get_dfs_value() 138 if (SPI_MODE_GET(spi_cfg->operation) & SPI_MODE_LOOP) { in spi_config() 142 if (SPI_WORD_SIZE_GET(spi_cfg->operation) > IFX_CAT1_SPI_MAX_DATA_WIDTH) { in spi_config() 143 LOG_ERR("Word size %d is greater than %d", SPI_WORD_SIZE_GET(spi_cfg->operation), in spi_config() 148 if (SPI_WORD_SIZE_GET(spi_cfg->operation) < IFX_CAT1_SPI_MIN_DATA_WIDTH) { in spi_config() 149 LOG_ERR("Word size %d is less than %d", SPI_WORD_SIZE_GET(spi_cfg->operation), in spi_config() 154 if (SPI_OP_MODE_GET(spi_cfg->operation) == SPI_OP_MODE_SLAVE) { in spi_config() 162 if (SPI_MODE_GET(spi_cfg->operation) & SPI_MODE_CPOL) { in spi_config() 166 if (SPI_MODE_GET(spi_cfg->operation) & SPI_MODE_CPHA) { in spi_config() 170 if (SPI_WORD_SIZE_GET(spi_cfg->operation)) { in spi_config() [all …]
|
D | spi_cc13xx_cc26xx.c | 51 if (config->operation & SPI_HALF_DUPLEX) { in spi_cc13xx_cc26xx_configure() 57 if (SPI_OP_MODE_GET(config->operation) != SPI_OP_MODE_MASTER) { in spi_cc13xx_cc26xx_configure() 63 if (SPI_WORD_SIZE_GET(config->operation) != 8) { in spi_cc13xx_cc26xx_configure() 68 if (config->operation & SPI_TRANSFER_LSB) { in spi_cc13xx_cc26xx_configure() 74 (config->operation & SPI_LINES_MASK) != SPI_LINES_SINGLE) { in spi_cc13xx_cc26xx_configure() 79 if (config->operation & SPI_CS_ACTIVE_HIGH && !spi_cs_is_gpio(config)) { in spi_cc13xx_cc26xx_configure() 94 if (SPI_MODE_GET(config->operation) & SPI_MODE_CPOL) { in spi_cc13xx_cc26xx_configure() 95 if (SPI_MODE_GET(config->operation) & SPI_MODE_CPHA) { in spi_cc13xx_cc26xx_configure() 101 if (SPI_MODE_GET(config->operation) & SPI_MODE_CPHA) { in spi_cc13xx_cc26xx_configure() 123 if (SPI_MODE_GET(config->operation) & SPI_MODE_LOOP) { in spi_cc13xx_cc26xx_configure()
|
D | spi_sifive.c | 32 uint16_t operation) in spi_config() argument 37 if (operation & SPI_HALF_DUPLEX) { in spi_config() 41 if (SPI_OP_MODE_GET(operation) != SPI_OP_MODE_MASTER) { in spi_config() 45 if (operation & SPI_MODE_LOOP) { in spi_config() 54 if (operation & SPI_MODE_CPOL) { in spi_config() 63 if (operation & SPI_MODE_CPHA) { in spi_config() 75 fmt_len = SPI_WORD_SIZE_GET(operation); in spi_config() 86 (operation & SPI_LINES_MASK) != SPI_LINES_SINGLE) { in spi_config() 95 if (operation & SPI_TRANSFER_LSB) { in spi_config() 241 rc = spi_config(dev, config->frequency, config->operation); in spi_sifive_transceive()
|
D | spi_numaker.c | 66 if (SPI_MODE_GET(config->operation) & SPI_MODE_LOOP) { in spi_numaker_configure() 71 if (SPI_OP_MODE_GET(config->operation) == SPI_OP_MODE_SLAVE) { in spi_numaker_configure() 80 if (SPI_MODE_GET(config->operation) & SPI_MODE_CPOL) { in spi_numaker_configure() 81 mode = (SPI_MODE_GET(config->operation) & SPI_MODE_CPHA) ? 3 : 2; in spi_numaker_configure() 83 mode = (SPI_MODE_GET(config->operation) & SPI_MODE_CPHA) ? 1 : 0; in spi_numaker_configure() 89 (SPI_OP_MODE_GET(config->operation) == SPI_OP_MODE_SLAVE) ? QSPI_SLAVE in spi_numaker_configure() 92 SPI_WORD_SIZE_GET(config->operation), config->frequency); in spi_numaker_configure() 95 (SPI_OP_MODE_GET(config->operation) == SPI_OP_MODE_SLAVE) ? SPI_SLAVE in spi_numaker_configure() 98 SPI_WORD_SIZE_GET(config->operation), config->frequency); in spi_numaker_configure() 102 if ((config->operation) & SPI_TRANSFER_LSB) { in spi_numaker_configure() [all …]
|
D | spi_litex_litespi.c | 70 if (config->operation & SPI_HALF_DUPLEX) { in spi_config() 75 if (SPI_WORD_SIZE_GET(config->operation) > SPI_MAX_WORD_SIZE) { in spi_config() 77 SPI_WORD_SIZE_GET(config->operation)); in spi_config() 81 if (config->operation & SPI_CS_ACTIVE_HIGH) { in spi_config() 86 if (config->operation & SPI_LOCK_ON) { in spi_config() 92 (config->operation & SPI_LINES_MASK) != SPI_LINES_SINGLE) { in spi_config() 97 if (config->operation & SPI_TRANSFER_LSB) { in spi_config() 102 if (config->operation & (SPI_MODE_CPOL | SPI_MODE_CPHA)) { in spi_config() 107 if (config->operation & SPI_OP_MODE_SLAVE) { in spi_config() 112 if (config->operation & SPI_MODE_LOOP) { in spi_config()
|
D | spi_opentitan.c | 76 uint16_t operation) in spi_config() argument 82 if (operation & SPI_HALF_DUPLEX) { in spi_config() 86 if (SPI_OP_MODE_GET(operation) != SPI_OP_MODE_MASTER) { in spi_config() 90 if (operation & SPI_MODE_LOOP) { in spi_config() 94 if (SPI_WORD_SIZE_GET(operation) != 8) { in spi_config() 99 (operation & SPI_LINES_MASK) != SPI_LINES_SINGLE) { in spi_config() 104 if (operation & SPI_TRANSFER_LSB) { in spi_config() 118 if (operation & SPI_MODE_CPHA) { in spi_config() 122 if (operation & SPI_MODE_CPOL) { in spi_config() 255 rc = spi_config(dev, config->frequency, config->operation); in spi_opentitan_transceive()
|
D | spi_grlib_spimctrl.c | 53 if (SPI_WORD_SIZE_GET(config->operation) != 8) { in spi_config() 58 if (config->operation & SPI_CS_ACTIVE_HIGH) { in spi_config() 63 if (config->operation & SPI_LOCK_ON) { in spi_config() 68 if ((config->operation & SPI_LINES_MASK) != SPI_LINES_SINGLE) { in spi_config() 73 if (config->operation & SPI_TRANSFER_LSB) { in spi_config() 78 if (config->operation & (SPI_MODE_CPOL | SPI_MODE_CPHA)) { in spi_config() 83 if (config->operation & SPI_OP_MODE_SLAVE) { in spi_config() 88 if (config->operation & SPI_MODE_LOOP) { in spi_config()
|
D | spi_gecko_eusart.c | 69 if (config->operation & SPI_HALF_DUPLEX) { in spi_eusart_config() 74 if (SPI_WORD_SIZE_GET(config->operation) != SPI_WORD_SIZE) { in spi_eusart_config() 80 (config->operation & SPI_LINES_MASK) != SPI_LINES_SINGLE) { in spi_eusart_config() 85 if (config->operation & SPI_OP_MODE_SLAVE) { in spi_eusart_config() 104 if (config->operation & SPI_MODE_LOOP) { in spi_eusart_config() 111 if (config->operation & SPI_MODE_CPOL) { in spi_eusart_config() 112 if (config->operation & SPI_MODE_CPHA) { in spi_eusart_config() 118 if (config->operation & SPI_MODE_CPHA) { in spi_eusart_config() 125 if (config->operation & SPI_CS_ACTIVE_HIGH) { in spi_eusart_config() 131 eusartAdvancedSpiInit.msbFirst = !(config->operation & SPI_TRANSFER_LSB); in spi_eusart_config()
|
D | spi_nrfx_spis.c | 36 static inline nrf_spis_mode_t get_nrf_spis_mode(uint16_t operation) in get_nrf_spis_mode() argument 38 if (SPI_MODE_GET(operation) & SPI_MODE_CPOL) { in get_nrf_spis_mode() 39 if (SPI_MODE_GET(operation) & SPI_MODE_CPHA) { in get_nrf_spis_mode() 45 if (SPI_MODE_GET(operation) & SPI_MODE_CPHA) { in get_nrf_spis_mode() 53 static inline nrf_spis_bit_order_t get_nrf_spis_bit_order(uint16_t operation) in get_nrf_spis_bit_order() argument 55 if (operation & SPI_TRANSFER_LSB) { in get_nrf_spis_bit_order() 74 if (spi_cfg->operation & SPI_HALF_DUPLEX) { in configure() 79 if (SPI_OP_MODE_GET(spi_cfg->operation) == SPI_OP_MODE_MASTER) { in configure() 84 if (spi_cfg->operation & SPI_MODE_LOOP) { in configure() 90 (spi_cfg->operation & SPI_LINES_MASK) != SPI_LINES_SINGLE) { in configure() [all …]
|
D | spi_nrfx_spi.c | 61 static inline nrf_spi_mode_t get_nrf_spi_mode(uint16_t operation) in get_nrf_spi_mode() argument 63 if (SPI_MODE_GET(operation) & SPI_MODE_CPOL) { in get_nrf_spi_mode() 64 if (SPI_MODE_GET(operation) & SPI_MODE_CPHA) { in get_nrf_spi_mode() 70 if (SPI_MODE_GET(operation) & SPI_MODE_CPHA) { in get_nrf_spi_mode() 78 static inline nrf_spi_bit_order_t get_nrf_spi_bit_order(uint16_t operation) in get_nrf_spi_bit_order() argument 80 if (operation & SPI_TRANSFER_LSB) { in get_nrf_spi_bit_order() 101 if (spi_cfg->operation & SPI_HALF_DUPLEX) { in configure() 106 if (SPI_OP_MODE_GET(spi_cfg->operation) != SPI_OP_MODE_MASTER) { in configure() 111 if (spi_cfg->operation & SPI_MODE_LOOP) { in configure() 117 (spi_cfg->operation & SPI_LINES_MASK) != SPI_LINES_SINGLE) { in configure() [all …]
|
D | spi_dw.c | 196 if (config->operation & SPI_HALF_DUPLEX) { in spi_dw_configure() 202 if (config->operation & SPI_OP_MODE_SLAVE) { in spi_dw_configure() 214 if ((config->operation & SPI_TRANSFER_LSB) || in spi_dw_configure() 216 (config->operation & (SPI_LINES_DUAL | in spi_dw_configure() 222 if (info->max_xfer_size < SPI_WORD_SIZE_GET(config->operation)) { in spi_dw_configure() 224 info->max_xfer_size, SPI_WORD_SIZE_GET(config->operation)); in spi_dw_configure() 230 ctrlr0 |= DW_SPI_CTRLR0_DFS_32(SPI_WORD_SIZE_GET(config->operation)); in spi_dw_configure() 232 ctrlr0 |= DW_SPI_CTRLR0_DFS_16(SPI_WORD_SIZE_GET(config->operation)); in spi_dw_configure() 236 spi->dfs = SPI_WS_TO_DFS(SPI_WORD_SIZE_GET(config->operation)); in spi_dw_configure() 239 if (SPI_MODE_GET(config->operation) & SPI_MODE_CPOL) { in spi_dw_configure() [all …]
|
D | spi_npcx_spip.c | 49 spi_operation_t operation = spi_cfg->operation; in spi_npcx_spip_configure() local 57 if (operation & SPI_HALF_DUPLEX) { in spi_npcx_spip_configure() 62 if (SPI_OP_MODE_GET(operation) != SPI_OP_MODE_MASTER) { in spi_npcx_spip_configure() 67 if (operation & SPI_MODE_LOOP) { in spi_npcx_spip_configure() 82 frame_size = SPI_WORD_SIZE_GET(operation); in spi_npcx_spip_configure() 95 (operation & SPI_LINES_MASK) != SPI_LINES_SINGLE) { in spi_npcx_spip_configure() 101 if (operation & SPI_TRANSFER_LSB) { in spi_npcx_spip_configure() 116 if (operation & SPI_MODE_CPOL) { in spi_npcx_spip_configure() 121 if (((operation & SPI_MODE_CPOL) == SPI_MODE_CPOL) != in spi_npcx_spip_configure() 122 ((operation & SPI_MODE_CPHA) == SPI_MODE_CPHA)) { in spi_npcx_spip_configure()
|
D | spi_bitbang.c | 35 if (config->operation & SPI_OP_MODE_SLAVE) { in spi_bitbang_configure() 40 if (config->operation & (SPI_LINES_DUAL | SPI_LINES_QUAD | SPI_LINES_OCTAL)) { in spi_bitbang_configure() 45 const int bits = SPI_WORD_SIZE_GET(config->operation); in spi_bitbang_configure() 87 if (spi_cfg->operation & SPI_HALF_DUPLEX) { in spi_bitbang_transceive() 129 if (SPI_MODE_GET(spi_cfg->operation) & SPI_MODE_CPOL) { in spi_bitbang_transceive() 132 if (SPI_MODE_GET(spi_cfg->operation) & SPI_MODE_CPHA) { in spi_bitbang_transceive() 135 if (SPI_MODE_GET(spi_cfg->operation) & SPI_MODE_LOOP) { in spi_bitbang_transceive() 138 if (spi_cfg->operation & SPI_TRANSFER_LSB) { in spi_bitbang_transceive()
|
D | spi_ambiq_bleif.c | 60 if (SPI_WORD_SIZE_GET(config->operation) != SPI_WORD_SIZE) { in spi_config() 65 if ((config->operation & SPI_LINES_MASK) != SPI_LINES_SINGLE) { in spi_config() 70 if (config->operation & SPI_LOCK_ON) { in spi_config() 75 if (config->operation & SPI_TRANSFER_LSB) { in spi_config() 80 if (config->operation & SPI_OP_MODE_SLAVE) { in spi_config() 84 if (config->operation & SPI_MODE_LOOP) { in spi_config()
|
/Zephyr-latest/tests/drivers/spi/spi_error_cases/src/ |
D | main.c | 21 .operation = SPIS_OP 73 spim_invalid.config.operation |= SPI_HALF_DUPLEX; in ZTEST() 74 spis_config_invalid.operation |= SPI_HALF_DUPLEX; in ZTEST() 89 spim_invalid.config.operation |= SPI_OP_MODE_SLAVE; in ZTEST() 90 spis_config_invalid.operation &= !SPI_OP_MODE_SLAVE; in ZTEST() 107 spim_invalid.config.operation |= SPI_MODE_LOOP; in ZTEST() 108 spis_config_invalid.operation |= SPI_MODE_LOOP; in ZTEST() 123 spim_invalid.config.operation |= SPI_LINES_DUAL; in ZTEST() 124 spis_config_invalid.operation |= SPI_LINES_DUAL; in ZTEST() 133 spim_invalid.config.operation |= SPI_LINES_QUAD; in ZTEST() [all …]
|
/Zephyr-latest/drivers/flash/ |
D | flash_npcx_fiu_qspi.c | 44 uint32_t operation; member 150 static inline void qspi_npcx_fiu_set_operation(const struct device *dev, uint32_t operation) in qspi_npcx_fiu_set_operation() argument 152 if ((operation & NPCX_EX_OP_INT_FLASH_WP) != 0) { in qspi_npcx_fiu_set_operation() 164 if ((data->operation & NPCX_EX_OP_LOCK_UMA) != 0) { in qspi_npcx_fiu_uma_transceive() 210 const uint32_t operation) in qspi_npcx_fiu_mutex_lock_configure() argument 234 if (data->operation != operation) { in qspi_npcx_fiu_mutex_lock_configure() 235 qspi_npcx_fiu_set_operation(dev, operation); in qspi_npcx_fiu_mutex_lock_configure() 236 data->operation = operation; in qspi_npcx_fiu_mutex_lock_configure()
|
/Zephyr-latest/subsys/net/conn_mgr/ |
D | conn_mgr_connectivity.c | 422 enum conn_mgr_conn_all_if_oper operation; member 438 switch (context->operation) { in conn_mgr_conn_all_if_cb() 482 context->operation == ALL_IF_UP ? "net_if_up" : in conn_mgr_conn_all_if_cb() 483 context->operation == ALL_IF_DOWN ? "net_if_down" : in conn_mgr_conn_all_if_cb() 484 context->operation == ALL_IF_CONNECT ? "conn_mgr_if_connect" : in conn_mgr_conn_all_if_cb() 485 context->operation == ALL_IF_DISCONNECT ? "conn_mgr_if_disconnect" : in conn_mgr_conn_all_if_cb() 494 .operation = ALL_IF_UP, in conn_mgr_all_if_up() 507 .operation = ALL_IF_DOWN, in conn_mgr_all_if_down() 524 .operation = ALL_IF_UP, in conn_mgr_all_if_connect() 535 context.operation = ALL_IF_CONNECT; in conn_mgr_all_if_connect() [all …]
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/ |
D | gmap.rst | 70 stream 0x20020060 config operation rsp_code 0 reason 0 71 stream 0x200204d0 config operation rsp_code 0 reason 0 72 stream 0x200204d0 qos operation rsp_code 0 reason 0 73 stream 0x20020060 qos operation rsp_code 0 reason 0 75 stream 0x200204d0 enable operation rsp_code 0 reason 0 77 stream 0x20020060 enable operation rsp_code 0 reason 0 79 stream 0x200204d0 start operation rsp_code 0 reason 0
|
/Zephyr-latest/tests/drivers/uart/uart_async_api/boards/ |
D | samd21_xpro.overlay | 16 /* Configure DMA channels for async operation */ 22 /* configure DMA channels for async operation */
|
D | samc21n_xpro.overlay | 12 /* Configure DMA channels for async operation */ 22 /* configure DMA channels for async operation */
|
/Zephyr-latest/samples/net/sockets/net_mgmt/src/ |
D | main.c | 28 int operation = 0; in trigger_events() local 39 switch (operation) { in trigger_events() 58 operation = -1; in trigger_events() 62 operation++; in trigger_events()
|