Home | History | Annotate | Download | only in sys

Lines Matching refs:id

74   uint8_t id;
80 /* get subsystem id from event */
81 id = (uint8_t)(p_msg->event >> 8);
83 /* verify id and call subsystem event handler */
84 if ((id < NFA_ID_MAX) && (nfa_sys_cb.is_reg[id])) {
85 freebuf = (*nfa_sys_cb.reg[id]->evt_hdlr)(p_msg);
87 LOG(WARNING) << StringPrintf("NFA got unregistered event id %d", id);
121 void nfa_sys_register(uint8_t id, const tNFA_SYS_REG* p_reg) {
122 nfa_sys_cb.reg[id] = (tNFA_SYS_REG*)p_reg;
123 nfa_sys_cb.is_reg[id] = true;
125 if ((id != NFA_ID_DM) && (id != NFA_ID_SYS))
126 nfa_sys_cb.enable_cplt_mask |= (0x0001 << id);
128 if (id != NFA_ID_SYS) {
130 nfa_sys_cb.proc_nfcc_pwr_mode_cplt_mask |= (0x0001 << id);
134 "id=%i, enable_cplt_mask=0x%x", id, nfa_sys_cb.enable_cplt_mask);
148 uint8_t id;
152 for (id = (NFA_ID_DM + 1); id < NFA_ID_MAX; id++) {
153 if (nfa_sys_cb.is_reg[id]) {
177 void nfa_sys_deregister(uint8_t id) {
179 << StringPrintf("nfa_sys: deregistering subsystem %i", id);
181 nfa_sys_cb.is_reg[id] = false;
186 if (id != NFA_ID_DM) {
209 bool nfa_sys_is_register(uint8_t id) { return nfa_sys_cb.is_reg[id]; }
234 uint8_t id;
240 for (id = NFA_ID_DM; id < NFA_ID_MAX; id++) {
241 if (nfa_sys_cb.is_reg[id]) {
242 if (nfa_sys_cb.reg[id]->enable != NULL) {
244 (*nfa_sys_cb.reg[id]->enable)();
248 nfa_sys_cback_notify_enable_complete(id);
264 uint8_t id;
273 for (id = (NFA_ID_DM + 1); id < NFA_ID_MAX; id++) {
274 if (nfa_sys_cb.is_reg[id]) {
276 if (nfa_sys_cb.reg[id]->disable != NULL) {
278 (*nfa_sys_cb.reg[id]->disable)();
282 nfa_sys_deregister(id);
303 uint8_t id;
309 for (id = NFA_ID_DM; id < NFA_ID_MAX; id++) {
310 if ((nfa_sys_cb.is_reg[id]) && (nfa_sys_cb.reg[id]->proc_nfcc_pwr_mode)) {
312 (*nfa_sys_cb.reg[id]->proc_nfcc_pwr_mode)(nfcc_power_mode);