Home
last modified time | relevance | path

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

/Zephyr-Core-2.7.6/subsys/mgmt/osdp/src/
Dosdp_phy.c95 pd_mode = ISSET_FLAG(pd, PD_FLAG_PD_MODE); in osdp_phy_packet_init()
118 if (ISSET_FLAG(pd, PD_FLAG_SC_ACTIVE)) { in osdp_phy_packet_init()
153 if (ISSET_FLAG(pd, PD_FLAG_SC_ACTIVE) && in osdp_phy_packet_finalize()
156 is_cmd = !ISSET_FLAG(pd, PD_FLAG_PD_MODE); in osdp_phy_packet_finalize()
224 pd_mode = ISSET_FLAG(pd, PD_FLAG_PD_MODE); in osdp_phy_decode_packet()
287 if (comp != cur && !ISSET_FLAG(pd, PD_FLAG_SKIP_SEQ_CHECK)) { in osdp_phy_decode_packet()
326 if (pd_mode && !ISSET_FLAG(pd, PD_FLAG_SC_CAPABLE)) { in osdp_phy_decode_packet()
346 if (ISSET_FLAG(pd, PD_FLAG_INSTALL_MODE) && in osdp_phy_decode_packet()
354 if (ISSET_FLAG(pd, PD_FLAG_SC_ACTIVE)) { in osdp_phy_decode_packet()
362 if (ISSET_FLAG(pd, PD_FLAG_SC_ACTIVE) && in osdp_phy_decode_packet()
[all …]
Dosdp_sc.c40 if (ISSET_FLAG(pd, PD_FLAG_SC_USE_SCBKD)) { in osdp_compute_session_keys()
47 if (ISSET_FLAG(pd, PD_FLAG_PD_MODE) == 0) { in osdp_compute_session_keys()
229 if (ISSET_FLAG(pd, PD_FLAG_PD_MODE)) { in osdp_sc_init()
233 if (ISSET_FLAG(pd, PD_FLAG_PD_MODE)) { in osdp_sc_init()
236 if (ISSET_FLAG(pd, PD_FLAG_PD_MODE)) { in osdp_sc_init()
Dosdp_cp.c220 if (!ISSET_FLAG(pd, PD_FLAG_SC_ACTIVE)) { in cp_build_command()
241 smb[2] = ISSET_FLAG(pd, PD_FLAG_SC_USE_SCBKD) ? 0 : 1; in cp_build_command()
254 smb[2] = ISSET_FLAG(pd, PD_FLAG_SC_USE_SCBKD) ? 0 : 1; in cp_build_command()
267 if (smb && (smb[1] > SCS_14) && ISSET_FLAG(pd, PD_FLAG_SC_ACTIVE)) { in cp_build_command()
701 if (ISSET_FLAG(pd, PD_FLAG_AWAIT_RESP)) { in cp_cmd_dispatcher()
741 if (ISSET_FLAG(pd, PD_FLAG_SC_ACTIVE) == false && in state_update()
742 ISSET_FLAG(pd, PD_FLAG_SC_CAPABLE) == true && in state_update()
781 if (ISSET_FLAG(pd, PD_FLAG_SC_CAPABLE)) { in state_update()
800 if (ISSET_FLAG(pd, PD_FLAG_SC_SCBKD_DONE)) { in state_update()
831 if (ISSET_FLAG(pd, PD_FLAG_SC_USE_SCBKD)) { in state_update()
Dosdp_pd.c302 if (ISSET_FLAG(pd, PD_FLAG_SC_ACTIVE) == 0) { in pd_decode_command()
464 buf[len++] = ISSET_FLAG(pd, PD_FLAG_TAMPER); in pd_build_reply()
465 buf[len++] = ISSET_FLAG(pd, PD_FLAG_POWER); in pd_build_reply()
474 buf[len++] = ISSET_FLAG(pd, PD_FLAG_R_TAMPER); in pd_build_reply()
544 smb[2] = ISSET_FLAG(pd, PD_FLAG_SC_USE_SCBKD) ? 0 : 1; in pd_build_reply()
565 if (ISSET_FLAG(pd, PD_FLAG_SC_USE_SCBKD)) { in pd_build_reply()
580 if (smb && (smb[1] > SCS_14) && ISSET_FLAG(pd, PD_FLAG_SC_ACTIVE)) { in pd_build_reply()
713 ISSET_FLAG(pd, PD_FLAG_SC_ACTIVE)) && in osdp_update()
Dosdp_common.c193 if (ISSET_FLAG(pd, PD_FLAG_SC_ACTIVE)) { in osdp_get_sc_status_mask()
Dosdp_common.h18 #define ISSET_FLAG(p, f) (((p)->flags & (f)) == (f)) macro