Lines Matching refs:cfg
227 if (strlen (&nfa_hci_cb.cfg.reg_app_names[xx][0]) > NFA_MAX_HCI_APP_NAME_LEN) in nfa_hci_is_valid_cfg()
231 if ( (nfa_hci_cb.cfg.b_send_conn_evts[xx] != TRUE) in nfa_hci_is_valid_cfg()
232 &&(nfa_hci_cb.cfg.b_send_conn_evts[xx] != FALSE)) in nfa_hci_is_valid_cfg()
235 if (nfa_hci_cb.cfg.reg_app_names[xx][0] != 0) in nfa_hci_is_valid_cfg()
240 if ( (nfa_hci_cb.cfg.reg_app_names[yy][0] != 0) in nfa_hci_is_valid_cfg()
241 …&&(!strncmp (&nfa_hci_cb.cfg.reg_app_names[xx][0], &nfa_hci_cb.cfg.reg_app_names[yy][0], strlen (n… in nfa_hci_is_valid_cfg()
244 …NFA_TRACE_EVENT2 ("nfa_hci_is_valid_cfg (%s) Reusing: %u", &nfa_hci_cb.cfg.reg_app_names[xx][0], … in nfa_hci_is_valid_cfg()
256 if (nfa_hci_cb.cfg.dyn_gates[xx].gate_id != 0) in nfa_hci_is_valid_cfg()
258 if ( ( (nfa_hci_cb.cfg.dyn_gates[xx].gate_id != NFA_HCI_LOOP_BACK_GATE) in nfa_hci_is_valid_cfg()
259 &&(nfa_hci_cb.cfg.dyn_gates[xx].gate_id != NFA_HCI_IDENTITY_MANAGEMENT_GATE) in nfa_hci_is_valid_cfg()
260 … &&(nfa_hci_cb.cfg.dyn_gates[xx].gate_id < NFA_HCI_FIRST_HOST_SPECIFIC_GENERIC_GATE)) in nfa_hci_is_valid_cfg()
261 ||(nfa_hci_cb.cfg.dyn_gates[xx].gate_id > NFA_HCI_LAST_PROP_GATE)) in nfa_hci_is_valid_cfg()
267 if ( (nfa_hci_cb.cfg.dyn_gates[yy].gate_id != 0) in nfa_hci_is_valid_cfg()
268 … &&(nfa_hci_cb.cfg.dyn_gates[xx].gate_id == nfa_hci_cb.cfg.dyn_gates[yy].gate_id) ) in nfa_hci_is_valid_cfg()
270 … NFA_TRACE_EVENT1 ("nfa_hci_is_valid_cfg Reusing: %u", nfa_hci_cb.cfg.dyn_gates[xx].gate_id); in nfa_hci_is_valid_cfg()
274 … if ((nfa_hci_cb.cfg.dyn_gates[xx].gate_owner & (~NFA_HANDLE_GROUP_HCI)) >= NFA_HCI_MAX_APP_CB) in nfa_hci_is_valid_cfg()
276 …NFA_TRACE_EVENT1 ("nfa_hci_is_valid_cfg Invalid Gate owner: %u", nfa_hci_cb.cfg.dyn_gates[xx].gat… in nfa_hci_is_valid_cfg()
279 if (nfa_hci_cb.cfg.dyn_gates[xx].gate_id != NFA_HCI_CONNECTIVITY_GATE) in nfa_hci_is_valid_cfg()
284 if (nfa_hci_cb.cfg.dyn_gates[xx].gate_owner == reg_app[zz]) in nfa_hci_is_valid_cfg()
289 …A_TRACE_EVENT1 ("nfa_hci_is_valid_cfg Invalid Gate owner: %u", nfa_hci_cb.cfg.dyn_gates[xx].gate_… in nfa_hci_is_valid_cfg()
294 valid_gate[gate_count++] = nfa_hci_cb.cfg.dyn_gates[xx].gate_id; in nfa_hci_is_valid_cfg()
297 if ((pipe_inx_mask & nfa_hci_cb.cfg.dyn_gates[xx].pipe_inx_mask) != 0) in nfa_hci_is_valid_cfg()
300 pipe_inx_mask |= nfa_hci_cb.cfg.dyn_gates[xx].pipe_inx_mask; in nfa_hci_is_valid_cfg()
310 if (nfa_hci_cb.cfg.dyn_pipes[xx].pipe_id < NFA_HCI_FIRST_DYNAMIC_PIPE) in nfa_hci_is_valid_cfg()
321 if (nfa_hci_cb.cfg.dyn_pipes[xx].pipe_id != 0) in nfa_hci_is_valid_cfg()
324 if (nfa_hci_cb.cfg.dyn_pipes[xx].pipe_id < NFA_HCI_FIRST_DYNAMIC_PIPE) in nfa_hci_is_valid_cfg()
328 if ( (nfa_hci_cb.cfg.dyn_pipes[xx].pipe_state != NFA_HCI_PIPE_OPENED) in nfa_hci_is_valid_cfg()
329 &&(nfa_hci_cb.cfg.dyn_pipes[xx].pipe_state != NFA_HCI_PIPE_CLOSED)) in nfa_hci_is_valid_cfg()
333 …cfg.dyn_pipes[xx].local_gate != NFA_HCI_LOOP_BACK_GATE) && (nfa_hci_cb.cfg.dyn_pipes[xx].local_gat… in nfa_hci_is_valid_cfg()
334 ||(nfa_hci_cb.cfg.dyn_pipes[xx].local_gate > NFA_HCI_LAST_PROP_GATE)) in nfa_hci_is_valid_cfg()
338 …cfg.dyn_pipes[xx].dest_gate != NFA_HCI_LOOP_BACK_GATE) && (nfa_hci_cb.cfg.dyn_pipes[xx].dest_gate … in nfa_hci_is_valid_cfg()
339 ||(nfa_hci_cb.cfg.dyn_pipes[xx].dest_gate > NFA_HCI_LAST_PROP_GATE)) in nfa_hci_is_valid_cfg()
345 if ( (nfa_hci_cb.cfg.dyn_pipes[yy].pipe_id != 0) in nfa_hci_is_valid_cfg()
346 … &&(nfa_hci_cb.cfg.dyn_pipes[xx].pipe_id == nfa_hci_cb.cfg.dyn_pipes[yy].pipe_id) ) in nfa_hci_is_valid_cfg()
348 … NFA_TRACE_EVENT1 ("nfa_hci_is_valid_cfg Reusing: %u", nfa_hci_cb.cfg.dyn_pipes[xx].pipe_id); in nfa_hci_is_valid_cfg()
355 if (nfa_hci_cb.cfg.dyn_pipes[xx].local_gate == valid_gate[zz]) in nfa_hci_is_valid_cfg()
360 …NFA_TRACE_EVENT1 ("nfa_hci_is_valid_cfg Invalid Gate: %u", nfa_hci_cb.cfg.dyn_pipes[xx].local_gat… in nfa_hci_is_valid_cfg()
367 if ( (nfa_hci_cb.cfg.admin_gate.pipe01_state != NFA_HCI_PIPE_OPENED) in nfa_hci_is_valid_cfg()
368 &&(nfa_hci_cb.cfg.admin_gate.pipe01_state != NFA_HCI_PIPE_CLOSED)) in nfa_hci_is_valid_cfg()
372 if ( (nfa_hci_cb.cfg.link_mgmt_gate.pipe00_state != NFA_HCI_PIPE_OPENED) in nfa_hci_is_valid_cfg()
373 &&(nfa_hci_cb.cfg.link_mgmt_gate.pipe00_state != NFA_HCI_PIPE_CLOSED)) in nfa_hci_is_valid_cfg()
376 pipe_inx_mask = nfa_hci_cb.cfg.id_mgmt_gate.pipe_inx_mask; in nfa_hci_is_valid_cfg()
383 if (nfa_hci_cb.cfg.dyn_pipes[xx].pipe_id < NFA_HCI_FIRST_DYNAMIC_PIPE) in nfa_hci_is_valid_cfg()
386 if (nfa_hci_cb.cfg.dyn_pipes[xx].local_gate != NFA_HCI_IDENTITY_MANAGEMENT_GATE) in nfa_hci_is_valid_cfg()
407 memset (&nfa_hci_cb.cfg, 0, sizeof (nfa_hci_cb.cfg)); in nfa_hci_restore_default_config()
408 memcpy (nfa_hci_cb.cfg.admin_gate.session_id, p_session_id, NFA_HCI_SESSION_ID_LEN); in nfa_hci_restore_default_config()
614 nfa_nv_co_read ((UINT8 *)&nfa_hci_cb.cfg, sizeof (nfa_hci_cb.cfg),DH_NV_BLOCK); in nfa_hci_sys_enable()
681 if (nfa_hci_cb.cfg.admin_gate.pipe01_state == NFA_HCI_PIPE_CLOSED) in nfa_hci_conn_cback()
863 … ||(!(memcmp (nfa_hci_cb.cfg.admin_gate.session_id, default_session, NFA_HCI_SESSION_ID_LEN))) in nfa_hci_handle_nv_read()
864 … ||(!(memcmp (nfa_hci_cb.cfg.admin_gate.session_id, reset_session, NFA_HCI_SESSION_ID_LEN))) ) in nfa_hci_handle_nv_read()
868 …memcpy (&session_id[(NFA_HCI_SESSION_ID_LEN / 2)], nfa_hci_cb.cfg.admin_gate.session_id, (NFA_HCI_… in nfa_hci_handle_nv_read()
1172 nfa_nv_co_write ((UINT8 *)&nfa_hci_cb.cfg, sizeof (nfa_hci_cb.cfg),DH_NV_BLOCK); in nfa_hci_evt_hdlr()