Searched refs:is_cp_mode (Results 1 – 3 of 3) sorted by relevance
124 (is_cp_mode(pd) && !ISSET_FLAG(pd, PD_FLAG_PKT_SKIP_MARK))) { in osdp_phy_packet_init()142 pkt->control = osdp_phy_get_seq_number(pd, is_cp_mode(pd)); in osdp_phy_packet_init()173 is_cp_mode(pd) ? pd->cmd_id : pd->reply_id); in osdp_phy_packet_finalize()184 is_cp_mode(pd) ? pd->cmd_id : pd->reply_id); in osdp_phy_packet_finalize()219 len += osdp_encrypt_data(pd, is_cp_mode(pd), data, data_len); in osdp_phy_packet_finalize()231 osdp_compute_mac(pd, is_cp_mode(pd), buf, len); in osdp_phy_packet_finalize()232 data = is_cp_mode(pd) ? pd->sc.c_mac : pd->sc.r_mac; in osdp_phy_packet_finalize()286 if (is_cp_mode(pd) && !(pkt->pd_address & 0x80)) { in osdp_phy_check_packet()334 if (is_cp_mode(pd)) { in osdp_phy_check_packet()458 if (is_cp_mode(pd) && pd->cmd_id == CMD_KEYSET && in osdp_phy_decode_packet()
577 static inline bool is_cp_mode(struct osdp_pd *pd) in is_cp_mode() function
55 if (is_cp_mode(pd) && !ISSET_FLAG(pd, PD_FLAG_HAS_SCBK)) { in osdp_compute_session_keys()