Home
last modified time | relevance | path

Searched refs:sc (Results 1 – 25 of 27) sorted by relevance

12

/Zephyr-latest/drivers/ethernet/
Deth_smsc91x.c18 #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()
102 while (sys_read16(sc->smsc_reg + MMUCR) & MMUCR_BUSY) { in smsc_mmu_wait()
[all …]
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_sc.c39 memcpy(scbk, pd->sc.pd_client_uid, 8); in osdp_compute_scbk()
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()
68 pd->sc.s_mac1[0] = 0x01; in osdp_compute_session_keys()
69 pd->sc.s_mac1[1] = 0x01; in osdp_compute_session_keys()
70 pd->sc.s_mac2[0] = 0x01; in osdp_compute_session_keys()
[all …]
Dosdp_pd.c497 memcpy(pd->sc.scbk, cmd.keyset.data, 16); in pd_decode_command()
514 memcpy(pd->sc.cp_random, buf + pos, 8); in pd_decode_command()
532 memcpy(pd->sc.cp_cryptogram, buf + pos, CMD_SCRYPT_DATA_LEN); in pd_decode_command()
741 osdp_fill_random(pd->sc.pd_random, 8); in pd_build_reply()
745 memcpy(buf + len, pd->sc.pd_client_uid, 8); in pd_build_reply()
746 memcpy(buf + len + 8, pd->sc.pd_random, 8); in pd_build_reply()
747 memcpy(buf + len + 16, pd->sc.pd_cryptogram, 16); in pd_build_reply()
763 memcpy(buf + len, pd->sc.r_mac, 16); in pd_build_reply()
1041 memcpy(pd->sc.scbk, key, 16); in osdp_setup()
Dosdp_phy.c232 data = is_cp_mode(pd) ? pd->sc.c_mac : pd->sc.r_mac; in osdp_phy_packet_finalize()
476 mac = is_cmd ? pd->sc.c_mac : pd->sc.r_mac; in osdp_phy_decode_packet()
Dosdp_cp.c305 memcpy(buf + len, pd->sc.cp_random, 8); in cp_build_command()
321 memcpy(buf + len, pd->sc.cp_cryptogram, 16); in cp_build_command()
521 memcpy(pd->sc.pd_client_uid, buf + pos, 8); in cp_decode_response()
522 memcpy(pd->sc.pd_random, buf + pos + 8, 8); in cp_decode_response()
523 memcpy(pd->sc.pd_cryptogram, buf + pos + 16, 16); in cp_decode_response()
540 memcpy(pd->sc.r_mac, buf + pos, 16); in cp_decode_response()
967 memcpy(keyset->data, pd->sc.scbk, 16); in state_update()
1043 memcpy(pd->sc.scbk, c->keyset.data, 16); in cp_keyset_complete()
Dosdp_common.h486 struct osdp_secure_channel sc; member
/Zephyr-latest/lib/libc/minimal/source/string/
Dstrstr.c43 char c, sc; in strstr() local
51 sc = *s++; in strstr()
52 if (sc == 0) { in strstr()
55 } while (sc != c); in strstr()
/Zephyr-latest/doc/_extensions/zephyr/kconfig/
D__init__.py274 def sc_fmt(sc): argument
275 if isinstance(sc, kconfiglib.Symbol):
276 if sc.nodes:
278 elif isinstance(sc, kconfiglib.Choice):
279 if not sc.name:
283 return kconfiglib.standard_sc_expr_str(sc)
296 for sc in sorted(
298 key=lambda sc: sc.name if sc.name else "",
301 if not sc.name:
306 for node in sc.nodes:
[all …]
/Zephyr-latest/scripts/kconfig/
Dguiconfig.py1002 sc = node.item
1004 if not isinstance(sc, (Symbol, Choice)):
1013 return sc.orig_type in (STRING, INT, HEX) or len(sc.assignable) > 1 \
1014 or _is_y_mode_choice_sym(sc)
1039 sc = _id_to_node[sel].item
1040 if isinstance(sc, (Symbol, Choice)) and tri_val in sc.assignable:
1041 _set_val(sc, tri_val)
1122 sc = node.item
1124 if sc.type in (INT, HEX, STRING):
1133 _set_val(sc, s)
[all …]
Dmenuconfig.py1578 sc = node.item
1580 if sc.orig_type in (INT, HEX, STRING):
1581 s = sc.str_value
1585 "{} ({})".format(node.prompt[0], TYPE_TO_STR[sc.orig_type]),
1586 s, _range_info(sc))
1591 if sc.orig_type in (INT, HEX):
1596 if sc.orig_type == HEX and not s.startswith(("0x", "0X")):
1599 if _check_valid(sc, s):
1600 _set_val(sc, s)
1603 elif len(sc.assignable) == 1:
[all …]
Dkconfiglib.py3289 def _set_type(self, sc, new_type): argument
3293 if sc.orig_type and sc.orig_type is not new_type:
3295 .format(sc.name_and_loc, TYPE_TO_STR[new_type]))
3297 sc.orig_type = new_type
5854 sc = self.item
5856 if sc.__class__ is Symbol:
5863 lines = [t + sc.name]
5865 lines = ["choice " + sc.name if sc.name else "choice"]
5867 if sc.orig_type and not self.prompt: # sc.orig_type != UNKNOWN
5870 indent_add(TYPE_TO_STR[sc.orig_type])
[all …]
/Zephyr-latest/tests/bluetooth/controller/ctrl_isoal/src/
Disoal_test_common.c112 uint16_t isoal_test_insert_segment(bool sc, bool cmplt, uint32_t time_offset, uint8_t *dataptr, in isoal_test_insert_segment() argument
121 (sc ? 0 : PDU_ISO_SEG_TIMEOFFSET_SIZE); in isoal_test_insert_segment()
122 hdr_write_size = PDU_ISO_SEG_HDR_SIZE + (sc ? 0 : PDU_ISO_SEG_TIMEOFFSET_SIZE); in isoal_test_insert_segment()
129 WRITE_BIT(seg_hdr[0], 0, sc); /* sc */ in isoal_test_insert_segment()
131 seg_hdr[1] = length + (sc ? 0 : PDU_ISO_SEG_TIMEOFFSET_SIZE); in isoal_test_insert_segment()
133 if (!sc) { in isoal_test_insert_segment()
Disoal_test_common.h87 extern uint16_t isoal_test_insert_segment(bool sc,
/Zephyr-latest/drivers/disk/nvme/
Dnvme_cmd.c34 uint16_t sc; member
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()
172 if (entry->sc == sc) { in get_status_string()
183 uint8_t sct, sc, crd, m, dnr, p; in nvme_completion_print() local
186 sc = NVME_STATUS_GET_SC(cpl->status); in nvme_completion_print()
194 get_status_string(sct, sc), sct, sc, crd, m, dnr, p, in nvme_completion_print()
319 uint8_t sct, sc, dnr; in nvme_completion_is_retry() local
322 sc = NVME_STATUS_GET_SC(cpl->status); in nvme_completion_is_retry()
334 switch (sc) { in nvme_completion_is_retry()
[all …]
/Zephyr-latest/tests/modules/uoscore/src/oscore_testvector_tests/
Doscore_tests.c48 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()
107 c_client.sc.ssn = 20; in ZTEST()
155 c_client.sc.ssn = 20; in ZTEST()
246 zassert_mem_equal__(c_server.sc.sender_key.ptr, T4__SENDER_KEY, in ZTEST()
247 c_server.sc.sender_key.len, in ZTEST()
287 zassert_mem_equal__(c_server.sc.sender_key.ptr, T6__SENDER_KEY, in ZTEST()
288 c_server.sc.sender_key.len, in ZTEST()
/Zephyr-latest/tests/subsys/fs/ext2/src/
Dutils.c13 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()
/Zephyr-latest/cmake/emu/
Dnsim.cmake10 # 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)
/Zephyr-latest/boards/sc/scobc_module1/
Dscobc_module1.dts40 compatible = "sc,hrmem";
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Disoal.c1164 const uint8_t sc = seg_hdr->sc; in isoal_rx_framed_consume() local
1175 if (!sc) { in isoal_rx_framed_consume()
1209 if (sc && !cmplt) { in isoal_rx_framed_consume()
1216 } else if (sc && cmplt) { in isoal_rx_framed_consume()
1232 if (!sc) { in isoal_rx_framed_consume()
1285 if (!sc) { in isoal_rx_framed_consume()
2187 const bool sc, in isoal_insert_seg_header_timeoffset() argument
2201 write_size = PDU_ISO_SEG_HDR_SIZE + (sc ? 0 : PDU_ISO_SEG_TIMEOFFSET_SIZE); in isoal_insert_seg_header_timeoffset()
2214 seg_hdr.sc = sc; in isoal_insert_seg_header_timeoffset()
2216 seg_hdr.len = sc ? 0 : PDU_ISO_SEG_TIMEOFFSET_SIZE; in isoal_insert_seg_header_timeoffset()
[all …]
Dpdu.h1044 uint8_t sc:1; member
1055 uint8_t sc:1;
/Zephyr-latest/tests/bluetooth/controller/ctrl_isoal/src/sub_sets/
Disoal_test_tx.c4049 seg_hdr[0].sc = 0; in ZTEST()
4205 seg_hdr[0].sc = 0; in ZTEST()
4588 seg_hdr[0].sc = 0; in ZTEST()
4855 seg_hdr[0].sc = 0; in ZTEST()
4951 seg_hdr[2].sc = 1; in ZTEST()
5162 seg_hdr[0].sc = 0; in ZTEST()
5258 seg_hdr[2].sc = 1; in ZTEST()
5389 seg_hdr[0].sc = 0; in ZTEST()
5485 seg_hdr[2].sc = 1; in ZTEST()
5697 seg_hdr[0].sc = 0; in ZTEST()
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Dgatt.c1332 struct gatt_sc *sc = CONTAINER_OF(dwork, struct gatt_sc, work); in sc_process() local
1335 __ASSERT(!atomic_test_bit(sc->flags, SC_INDICATE_PENDING), in sc_process()
1338 LOG_DBG("start 0x%04x end 0x%04x", sc->start, sc->end); in sc_process()
1340 sc_range[0] = sys_cpu_to_le16(sc->start); in sc_process()
1341 sc_range[1] = sys_cpu_to_le16(sc->end); in sc_process()
1343 atomic_clear_bit(sc->flags, SC_RANGE_CHANGED); in sc_process()
1344 sc->start = 0U; in sc_process()
1345 sc->end = 0U; in sc_process()
1347 sc->params.attr = &_1_gatt_svc.attrs[2]; in sc_process()
1348 sc->params.func = sc_indicate_rsp; in sc_process()
[all …]
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Denvironment.py951 sc = SizeCalculator(fn, [])
952 sc.size_report()
/Zephyr-latest/tests/lib/cbprintf_package/src/
Dmain.c100 volatile signed char sc = -11; in ZTEST() local
121 TEST_PACKAGING(0, "test %d %hd %hhd", i, s, sc); in ZTEST()
/Zephyr-latest/dts/bindings/
Dvendor-prefixes.txt583 sc Space Cubics, LLC

12