Searched refs:ISSET_FLAG (Results 1 – 6 of 6) sorted by relevance
/Zephyr-Core-2.7.6/subsys/mgmt/osdp/src/ |
D | osdp_phy.c | 95 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 …]
|
D | osdp_sc.c | 40 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()
|
D | osdp_cp.c | 220 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()
|
D | osdp_pd.c | 302 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()
|
D | osdp_common.c | 193 if (ISSET_FLAG(pd, PD_FLAG_SC_ACTIVE)) { in osdp_get_sc_status_mask()
|
D | osdp_common.h | 18 #define ISSET_FLAG(p, f) (((p)->flags & (f)) == (f)) macro
|