Lines Matching refs:id
75 UINT8 id; in nfa_sys_event() local
81 id = (UINT8) (p_msg->event >> 8); in nfa_sys_event()
84 if ((id < NFA_ID_MAX) && (nfa_sys_cb.is_reg[id])) in nfa_sys_event()
86 freebuf = (*nfa_sys_cb.reg[id]->evt_hdlr) (p_msg); in nfa_sys_event()
90 NFA_TRACE_WARNING1 ("NFA got unregistered event id %d", id); in nfa_sys_event()
127 void nfa_sys_register (UINT8 id, const tNFA_SYS_REG *p_reg) in nfa_sys_register() argument
129 nfa_sys_cb.reg[id] = (tNFA_SYS_REG *) p_reg; in nfa_sys_register()
130 nfa_sys_cb.is_reg[id] = TRUE; in nfa_sys_register()
132 if ((id != NFA_ID_DM) && (id != NFA_ID_SYS)) in nfa_sys_register()
133 nfa_sys_cb.enable_cplt_mask |= (0x0001 << id); in nfa_sys_register()
135 if (id != NFA_ID_SYS) in nfa_sys_register()
138 nfa_sys_cb.proc_nfcc_pwr_mode_cplt_mask |= (0x0001 << id); in nfa_sys_register()
142 id, nfa_sys_cb.enable_cplt_mask); in nfa_sys_register()
158 UINT8 id; in nfa_sys_check_disabled() local
162 for (id = (NFA_ID_DM+1); id < NFA_ID_MAX; id++) in nfa_sys_check_disabled()
164 if (nfa_sys_cb.is_reg[id]) in nfa_sys_check_disabled()
191 void nfa_sys_deregister (UINT8 id) in nfa_sys_deregister() argument
193 NFA_TRACE_DEBUG1 ("nfa_sys: deregistering subsystem %i", id); in nfa_sys_deregister()
195 nfa_sys_cb.is_reg[id] = FALSE; in nfa_sys_deregister()
199 if (id != NFA_ID_DM) in nfa_sys_deregister()
222 BOOLEAN nfa_sys_is_register (UINT8 id) in nfa_sys_is_register() argument
224 return nfa_sys_cb.is_reg[id]; in nfa_sys_is_register()
254 UINT8 id; in nfa_sys_enable_subsystems() local
259 for (id = NFA_ID_DM; id < NFA_ID_MAX; id++) in nfa_sys_enable_subsystems()
261 if (nfa_sys_cb.is_reg[id]) in nfa_sys_enable_subsystems()
263 if (nfa_sys_cb.reg[id]->enable != NULL) in nfa_sys_enable_subsystems()
266 (*nfa_sys_cb.reg[id]->enable) (); in nfa_sys_enable_subsystems()
271 nfa_sys_cback_notify_enable_complete (id); in nfa_sys_enable_subsystems()
288 UINT8 id; in nfa_sys_disable_subsystems() local
295 for (id = (NFA_ID_DM+1); id < NFA_ID_MAX; id++) in nfa_sys_disable_subsystems()
297 if (nfa_sys_cb.is_reg[id]) in nfa_sys_disable_subsystems()
300 if (nfa_sys_cb.reg[id]->disable != NULL) in nfa_sys_disable_subsystems()
303 (*nfa_sys_cb.reg[id]->disable) (); in nfa_sys_disable_subsystems()
308 nfa_sys_deregister (id); in nfa_sys_disable_subsystems()
331 UINT8 id; in nfa_sys_notify_nfcc_power_mode() local
336 for (id = NFA_ID_DM; id < NFA_ID_MAX; id++) in nfa_sys_notify_nfcc_power_mode()
338 if ((nfa_sys_cb.is_reg[id]) && (nfa_sys_cb.reg[id]->proc_nfcc_pwr_mode)) in nfa_sys_notify_nfcc_power_mode()
341 (*nfa_sys_cb.reg[id]->proc_nfcc_pwr_mode) (nfcc_power_mode); in nfa_sys_notify_nfcc_power_mode()