Home
last modified time | relevance | path

Searched +full:- +full:sc (Results 1 – 25 of 67) sorted by relevance

123

/Zephyr-latest/drivers/ethernet/
Deth_smsc91x.c3 * SPDX-License-Identifier: Apache-2.0
18 #define SMSC_LOCK(sc) k_mutex_lock(&(sc)->lock, K_FOREVER) argument
19 #define SMSC_UNLOCK(sc) k_mutex_unlock(&(sc)->lock) argument
78 struct smsc_data sc; member
89 static ALWAYS_INLINE void smsc_select_bank(struct smsc_data *sc, uint16_t bank) in smsc_select_bank() argument
91 sys_write16(bank & BSR_BANK_MASK, sc->smsc_reg + BSR); in smsc_select_bank()
94 static ALWAYS_INLINE unsigned int smsc_current_bank(struct smsc_data *sc) in smsc_current_bank() argument
96 return FIELD_GET(BSR_BANK_MASK, sys_read16(sc->smsc_reg + BSR)); in smsc_current_bank()
99 static void smsc_mmu_wait(struct smsc_data *sc) in smsc_mmu_wait() argument
101 __ASSERT((smsc_current_bank(sc) == 2), "%s called when not in bank 2", __func__); in smsc_mmu_wait()
[all …]
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_sc.c4 * SPDX-License-Identifier: Apache-2.0
39 memcpy(scbk, pd->sc.pd_client_uid, 8); in osdp_compute_scbk()
41 scbk[i] = ~scbk[i - 8]; in osdp_compute_scbk()
56 osdp_compute_scbk(pd, ctx->sc_master_key, scbk); in osdp_compute_session_keys()
58 memcpy(scbk, pd->sc.scbk, 16); in osdp_compute_session_keys()
62 memset(pd->sc.s_enc, 0, 16); in osdp_compute_session_keys()
63 memset(pd->sc.s_mac1, 0, 16); in osdp_compute_session_keys()
64 memset(pd->sc.s_mac2, 0, 16); in osdp_compute_session_keys()
66 pd->sc.s_enc[0] = 0x01; in osdp_compute_session_keys()
67 pd->sc.s_enc[1] = 0x82; in osdp_compute_session_keys()
[all …]
Dosdp_cp.c4 * SPDX-License-Identifier: Apache-2.0
53 OSDP_CP_ERR_GENERIC = -1,
54 OSDP_CP_ERR_NO_DATA = -2,
55 OSDP_CP_ERR_RETRY_CMD = -3,
56 OSDP_CP_ERR_CAN_YIELD = -4,
57 OSDP_CP_ERR_INPROG = -5,
58 OSDP_CP_ERR_UNKNOWN = -6,
66 if (k_mem_slab_alloc(&pd->cmd.slab, (void **)&cmd, K_MSEC(100))) { in cp_cmd_alloc()
67 LOG_ERR("Memory allocation time-out"); in cp_cmd_alloc()
75 k_mem_slab_free(&pd->cmd.slab, (void *)cmd); in cp_cmd_free()
[all …]
Dosdp_pd.c4 * SPDX-License-Identifier: Apache-2.0
47 OSDP_PD_ERR_NO_DATA = -1,
48 OSDP_PD_ERR_GENERIC = -2,
49 OSDP_PD_ERR_REPLY = -3,
50 OSDP_PD_ERR_IGNORE = -4,
65 1, /* The PD supports the 16-bit CRC-16 mode */
71 1, /* (Bit-0) AES128 support */
72 1, /* (Bit-0) default AES128 key */
74 0, /* SC not supported */
75 0, /* SC not supported */
[all …]
Dosdp_phy.c4 * SPDX-License-Identifier: Apache-2.0
57 /* pd->seq_num is set to -1 to reset phy cmd state */ in osdp_phy_get_seq_number()
59 pd->seq_number += 1; in osdp_phy_get_seq_number()
60 if (pd->seq_number > 3) { in osdp_phy_get_seq_number()
61 pd->seq_number = 1; in osdp_phy_get_seq_number()
64 return pd->seq_number & PKT_CONTROL_SQN; in osdp_phy_get_seq_number()
78 if (pkt->control & PKT_CONTROL_SCB) { in osdp_phy_packet_get_data_offset()
79 sb_len = pkt->data[0]; in osdp_phy_packet_get_data_offset()
93 if (pkt->control & PKT_CONTROL_SCB) { in osdp_phy_packet_get_smb()
94 return pkt->data; in osdp_phy_packet_get_smb()
[all …]
/Zephyr-latest/doc/_extensions/zephyr/kconfig/
D__init__.py6 SPDX-License-Identifier: Apache-2.0
22 - kconfig_generate_db: Set to True if you want to generate the Kconfig database.
26 - kconfig_ext_paths: A list of base paths where to search for external modules
27 Kconfig files when they use ``kconfig-ext: True``. The extension will look for
69 def kconfig_load(app: Sphinx) -> tuple[kconfiglib.Kconfig, dict[str, str]]:
121 board_str = 'BOARD_' + re.sub(r"[^a-zA-Z0-9_]", "_", board.name).upper()
125 board_str = 'BOARD_' + re.sub(r"[^a-zA-Z0-9_]", "_", qualifier).upper()
148 name_var = module.meta["name-sanitized"].upper()
158 elif build_conf.get("kconfig-ext"):
170 return '<div id="__kconfig-search"></div>'
[all …]
/Zephyr-latest/tests/posix/single_process/src/
Dsysconf.c5 * SPDX-License-Identifier: Apache-2.0
16 /* SC that's implemented */ in ZTEST()
20 /* SC that's not implemented */ in ZTEST()
22 zassert_equal(ret, -1, "sysconf returned unexpected value %d", ret); in ZTEST()
24 /* SC that value depends on target's configuration */ in ZTEST()
29 zassert_equal(ret, -1L, "sysconf returned unexpected value %d", ret); in ZTEST()
/Zephyr-latest/lib/libc/minimal/source/string/
Dstrstr.c1 /* SPDX-License-Identifier: BSD-3-Clause */
3 /*-
43 char c, sc; in strstr() local
51 sc = *s++; in strstr()
52 if (sc == 0) { in strstr()
55 } while (sc != c); in strstr()
57 s--; in strstr()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/sc_indicate/src/
Dcentral.c4 * SPDX-License-Identifier: Apache-2.0
29 SC, enumerator
63 subscribe_params.value_handle = gatt_handles[SC]; in subscribe()
90 if (params->type == BT_GATT_DISCOVER_CHARACTERISTIC) { in discover_func()
91 const struct bt_gatt_chrc *chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func()
94 if (bt_uuid_cmp(chrc->uuid, BT_UUID_GATT_SC) == 0) { in discover_func()
97 LOG_DBG("found sc"); in discover_func()
98 gatt_handles[SC] = chrc->value_handle; in discover_func()
100 params->uuid = &ccc_uuid.uuid; in discover_func()
101 params->start_handle = attr->handle + 2; in discover_func()
[all …]
/Zephyr-latest/tests/bluetooth/controller/ctrl_isoal/src/
Disoal_test_common.c4 * SPDX-License-Identifier: Apache-2.0
53 buf->pdu_meta.meta = &buf->meta; in isoal_test_init_rx_pdu_buffer()
54 buf->pdu_meta.pdu = (struct pdu_iso *) &buf->pdu[0]; in isoal_test_init_rx_pdu_buffer()
85 zassert_not_null(pdu_meta->meta, ""); in isoal_test_create_unframed_pdu()
86 zassert_not_null(pdu_meta->pdu, ""); in isoal_test_create_unframed_pdu()
88 memset(pdu_meta->meta, 0, sizeof(*pdu_meta->meta)); in isoal_test_create_unframed_pdu()
89 memset(pdu_meta->pdu, 0, sizeof(*pdu_meta->pdu)); in isoal_test_create_unframed_pdu()
91 pdu_meta->meta->payload_number = payload_number; in isoal_test_create_unframed_pdu()
92 pdu_meta->meta->timestamp = timestamp; in isoal_test_create_unframed_pdu()
93 pdu_meta->meta->status = status; in isoal_test_create_unframed_pdu()
[all …]
/Zephyr-latest/tests/modules/uoscore/src/oscore_testvector_tests/
Doscore_tests.c4 * SPDX-License-Identifier: Apache-2.0
16 * - Client Key derivation with master salt see RFC8613 Appendix C.1.1
17 * - Generating OSCORE request with key form C.1.1 see RFC8613 Appendix C.4
48 c_client.sc.ssn = 20; in ZTEST()
57 zassert_mem_equal__(c_client.sc.sender_key.ptr, T1__SENDER_KEY, in ZTEST()
58 c_client.sc.sender_key.len, in ZTEST()
75 * - Client Key derivation without master salt see RFC8613 Appendix C.2.1
76 * - Generating OSCORE request with key form C.2.1 see RFC8613 Appendix C.5
107 c_client.sc.ssn = 20; in ZTEST()
123 * - Client Key derivation with ID Context see Appendix 3.1
[all …]
/Zephyr-latest/scripts/kconfig/
Dguiconfig.py4 # SPDX-License-Identifier: ISC
10 # pylint: disable=undefined-variable
16 A Tkinter-based menuconfig implementation, based around a treeview control and
21 single menu (like menuconfig.py). Only single-menu mode distinguishes between
24 A show-all mode is available that shows invisible items in red.
29 Ctrl-S : Save configuration
30 Ctrl-O : Open configuration
31 Ctrl-A : Toggle show-all mode
32 Ctrl-N : Toggle show-name mode
33 Ctrl-M : Toggle single-menu mode
[all …]
Dmenuconfig.py3 # Copyright (c) 2018-2019, Nordic Semiconductor ASA and Ulf Magnusson
4 # SPDX-License-Identifier: ISC
10 A curses-based Python 2/3 menuconfig implementation. The interface should feel
19 Ctrl-D/U: Page Down/Page Up
27 character in it in the current menu isn't supported. A jump-to feature for
33 F: Toggle show-help mode, which shows the help text of the currently selected
37 C: Toggle show-name mode, which shows the symbol name before each symbol menu
40 A: Toggle show-all mode, which shows all items, including currently invisible
52 When run in standalone mode, the top-level Kconfig file to load can be passed
53 as a command-line argument. With no argument, it defaults to "Kconfig".
[all …]
/Zephyr-latest/boards/sc/scobc_module1/dts/bindings/
Dsc,hrmem.yaml1 # SPDX-License-Identifier: Apache-2.0
3 description: Space Cubics HRMEM (High-reliability Memory)
5 compatible: "sc,hrmem"
/Zephyr-latest/drivers/disk/nvme/
Dnvme_cmd.c3 * SPDX-License-Identifier: Apache-2.0
34 uint16_t sc; member
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" },
148 static const char *get_status_string(uint16_t sct, uint16_t sc) in get_status_string() argument
171 while (entry->sc != 0xFFFF) { in get_status_string()
[all …]
/Zephyr-latest/samples/bluetooth/peripheral_sc_only/
Dsample.yaml2 name: Bluetooth Peripheral SC-only
8 - qemu_cortex_m3
9 - qemu_x86
12 - qemu_cortex_m3
DREADME.rst1 .. zephyr:code-sample:: ble_peripheral_sc_only
2 :name: Peripheral SC-only
3 :relevant-api: bt_conn bluetooth
10 Similar to the :zephyr:code-sample:`ble_peripheral` sample, except that this
27 See :zephyr:code-sample-category:`bluetooth` samples for details.
/Zephyr-latest/tests/subsys/fs/ext2/src/
Dutils.c4 * SPDX-License-Identifier: Apache-2.0
13 static int sectors_info(const char *disk, uint32_t *ss, uint32_t *sc) in sectors_info() argument
17 rc = disk_access_ioctl(disk, DISK_IOCTL_GET_SECTOR_COUNT, sc); in sectors_info()
76 return sector_size * (sector_count - CONFIG_EXT2_DISK_STARTING_SECTOR); in get_partition_size()
/Zephyr-latest/cmake/emu/
Dnsim.cmake1 # SPDX-License-Identifier: Apache-2.0
2 if("${BOARD_DEBUG_RUNNER}" STREQUAL "mdb-nsim" OR "${BOARD_FLASH_RUNNER}" STREQUAL "mdb-nsim")
8 set(MDB_BASIC_OPTIONS -nooptions -nogoifmain -toggle=include_local_symbols=1)
10 # remove previous .sc.project folder which has temporary settings for MDB.
11 set(MDB_OPTIONS ${CMAKE_COMMAND} -E rm -rf ${APPLICATION_BINARY_DIR}/.sc.project)
13 set(MULTIFILES ${MDB} -multifiles=)
18 list(APPEND MDB_OPTIONS && ${MDB} -pset=${PSET_NUM} -psetname=core${CORE_NUM})
20 list(APPEND MDB_OPTIONS -prop=download=2)
27 …list(APPEND MDB_OPTIONS ${MDB_BASIC_OPTIONS} -nsim @${BOARD_DIR}/support/${MDB_ARGS} ${APPLICATION…
30 list(APPEND MDB_OPTIONS && NSIM_MULTICORE=1 ${MULTIFILES} -run -cl)
[all …]
/Zephyr-latest/soc/neorv32/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
19 # NEORV32 RISC-V ISA A extension implements only LR/SC, not AMO
26 The targeted NEORV32 version as BCD-coded number. The format is
31 bool "RISC-V ISA Extension \"C\""
34 Enable this if the NEORV32 CPU implementation supports the RISC-V ISA
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings/src/
Dgatt_utils.c4 * SPDX-License-Identifier: Apache-2.0
36 const char *value = attr->user_data; in read_test()
54 uint8_t *value = attr->user_data; in write_test()
110 * - Dynamic service
111 * - Client Features (to set robust caching)
112 * - Service Changed (to sub to indications)
144 if (params->type == BT_GATT_DISCOVER_CHARACTERISTIC) { in discover_func()
145 const struct bt_gatt_chrc *chrc = (struct bt_gatt_chrc *)attr->user_data; in discover_func()
147 if (bt_uuid_cmp(chrc->uuid, BT_UUID_GATT_CLIENT_FEATURES) == 0) { in discover_func()
149 gatt_handles[CLIENT_FEATURES] = chrc->value_handle; in discover_func()
[all …]
Dclient.c4 * SPDX-License-Identifier: Apache-2.0
30 /* subscribe to the SC indication, so we don't have to ATT read to in client_round_0()
31 * become change-aware. in client_round_0()
56 /* server should remember we are change-aware */ in client_round_1()
72 /* We are change-unaware. wait until the Service Changed indication is in client_round_2()
73 * received, that should then make us change-aware. in client_round_2()
97 /* server should remember we are change-aware */ in client_round_3()
100 /* Unsubscribe from the SC indication. in client_round_3()
102 * In the next round, we will be change-unaware, so the first ATT read in client_round_3()
104 * change-aware again. in client_round_3()
/Zephyr-latest/boards/sc/scobc_module1/
Dscobc_module1.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
8 #include <arm/armv7-m.dtsi>
16 zephyr,shell-uart = &uartlite0;
21 #address-cells = <1>;
22 #size-cells = <0>;
26 compatible = "arm,cortex-m3";
28 #address-cells = <1>;
29 #size-cells = <1>;
32 compatible = "arm,armv7m-mpu";
[all …]
/Zephyr-latest/samples/subsys/mgmt/osdp/
DREADME.rst1 .. _osdp-sample:
6 Open Supervised Device Protocol (OSDP) is an IEC standard (IEC 60839-11-5)
8 It supports Secure Channel (SC) for encrypted and authenticated communication
12 Devices (PD) to a Control Panel (CP) over a two-wire RS-485 multi-drop serial
19 too much resource requirements. The security is not top-notch (AES-128) but it
24 - LED
25 - Buzzer
26 - Keypad
27 - Output (GPIOs)
28 - Input Control (GPIOs)
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Dgatt.c1 /* gatt.c - Generic Attribute Profile handling */
4 * Copyright (c) 2015-2016 Intel Corporation
7 * SPDX-License-Identifier: Apache-2.0
287 SC_RANGE_CHANGED, /* SC range changed */
288 SC_INDICATE_PENDING, /* SC indicate pending */
289 SC_LOAD, /* SC has been loaded from settings */
295 /* Total number of flags - must be at the end of the enum */
339 err = bt_settings_store_sc(cfg->id, &cfg->peer, &cfg->data, sizeof(cfg->data)); in sc_store()
341 LOG_ERR("failed to store SC (err %d)", err); in sc_store()
345 LOG_DBG("stored SC for %s (0x%04x-0x%04x)", bt_addr_le_str(&cfg->peer), cfg->data.start, in sc_store()
[all …]

123