Home
last modified time | relevance | path

Searched refs:ISSET_FLAG (Results 1 – 6 of 6) sorted by relevance

/Zephyr-Core-3.7.0/subsys/mgmt/osdp/src/
Dosdp_common.h23 #define ISSET_FLAG(p, f) (((p)->flags & (f)) == (f)) macro
574 return ISSET_FLAG(pd, PD_FLAG_PD_MODE); in is_pd_mode()
579 return !ISSET_FLAG(pd, PD_FLAG_PD_MODE); in is_cp_mode()
584 return ISSET_FLAG(pd, PD_FLAG_SC_CAPABLE); in sc_is_capable()
589 return ISSET_FLAG(pd, PD_FLAG_SC_ACTIVE); in sc_is_active()
Dosdp_phy.c30 return ISSET_FLAG(pd, PD_FLAG_PKT_HAS_MARK); in packet_has_mark()
124 (is_cp_mode(pd) && !ISSET_FLAG(pd, PD_FLAG_PKT_SKIP_MARK))) { in osdp_phy_packet_init()
380 if (cur != comp && !ISSET_FLAG(pd, PD_FLAG_SKIP_SEQ_CHECK)) { in osdp_phy_check_packet()
440 if (ISSET_FLAG(pd, PD_FLAG_INSTALL_MODE) && in osdp_phy_decode_packet()
Dosdp_sc.c52 if (ISSET_FLAG(pd, PD_FLAG_SC_USE_SCBKD)) { in osdp_compute_session_keys()
55 if (is_cp_mode(pd) && !ISSET_FLAG(pd, PD_FLAG_HAS_SCBK)) { in osdp_compute_session_keys()
241 bool preserve_scbk = is_pd_mode(pd) || ISSET_FLAG(pd, PD_FLAG_HAS_SCBK); in osdp_sc_setup()
Dosdp_cp.c303 smb[2] = ISSET_FLAG(pd, PD_FLAG_SC_USE_SCBKD) ? 0 : 1; in cp_build_command()
319 smb[2] = ISSET_FLAG(pd, PD_FLAG_SC_USE_SCBKD) ? 0 : 1; in cp_build_command()
803 if (ISSET_FLAG(pd, PD_FLAG_AWAIT_RESP)) { in cp_cmd_dispatcher()
921 if (ISSET_FLAG(pd, PD_FLAG_SC_USE_SCBKD)) { in state_update()
954 if (ISSET_FLAG(pd, PD_FLAG_SC_USE_SCBKD)) { in state_update()
964 if (!ISSET_FLAG(pd, PD_FLAG_AWAIT_RESP)) { in state_update()
966 if (ISSET_FLAG(pd, PD_FLAG_HAS_SCBK)) { in state_update()
1004 if (!ISSET_FLAG(pd, PD_FLAG_SC_ACTIVE)) { in osdp_cp_send_command_keyset()
Dosdp_common.c159 if (ISSET_FLAG(pd, PD_FLAG_SC_ACTIVE)) { in osdp_get_sc_status_mask()
Dosdp_pd.c642 buf[len++] = ISSET_FLAG(pd, PD_FLAG_TAMPER); in pd_build_reply()
643 buf[len++] = ISSET_FLAG(pd, PD_FLAG_POWER); in pd_build_reply()
651 buf[len++] = ISSET_FLAG(pd, PD_FLAG_R_TAMPER); in pd_build_reply()
751 smb[2] = ISSET_FLAG(pd, PD_FLAG_SC_USE_SCBKD) ? 0 : 1; in pd_build_reply()
771 if (ISSET_FLAG(pd, PD_FLAG_SC_USE_SCBKD)) { in pd_build_reply()