Lines Matching refs:xx
65 UINT8 xx;
68 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++)
71 if ((!bdcmp (bda, bta_hh_cb.kdev[xx].addr) &&
75 APPL_TRACE_DEBUG2("found kdev_cb[%d] hid_handle = %d ", xx,
76 bta_hh_cb.kdev[xx].hid_handle)
78 return xx;
83 bta_hh_cb.kdev[xx].in_use, xx,
84 bta_hh_cb.kdev[xx].hid_handle,
85 bta_hh_cb.kdev[xx].state);
90 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++)
92 if (!bta_hh_cb.kdev[xx].in_use)
94 bdcpy(bta_hh_cb.kdev[xx].addr, bda);
101 xx, BTA_HH_MAX_DEVICE);
104 if (xx == BTA_HH_MAX_DEVICE)
105 xx = BTA_HH_IDX_INVALID;
107 return xx;
229 UINT8 xx;
232 for (xx = 0 ; xx < p_bta_hh_cfg->max_devt_spt; xx ++)
234 if (cod == (UINT8) p_bta_hh_cfg->p_devt_list[xx].tod)
236 p_cb->app_id = p_bta_hh_cfg->p_devt_list[xx].app_id;
266 UINT16 xx, yy, key_idx = 0;
288 for (xx = 0; xx < BTA_HH_MOD_MAX_KEY; xx ++ )
290 if (ctl_shift & bta_hh_mod_key_mask[xx])
292 APPL_TRACE_DEBUG1("Mod Key[%02x] pressed", bta_hh_mod_key_mask[xx] );
293 p_kb->mod_key[xx] = TRUE;
295 else if (p_kb->mod_key[xx])
297 p_kb->mod_key[xx] = FALSE;
300 p_data->mod_key[xx] = p_kb->mod_key[xx];
306 for (xx = 0; xx < report_len; xx++)
310 if (this_report[xx] == p_kb->last_report[yy])
312 this_report[xx] = 0;
319 for (xx = 0; xx < report_len; xx++)
322 APPL_TRACE_DEBUG1("this_char = %02x", this_report[xx]);
324 if ((this_char = this_report[xx]) == 0)
327 if (this_report[xx] == BTA_HH_KB_CAPS_LOCK)
329 else if (this_report[xx] == BTA_HH_KB_NUM_LOCK)
335 APPL_TRACE_DEBUG1("found keycode %02x ", this_report[xx]);
361 UINT8 xx;
374 for (xx = 0; xx < report_len; xx++)
376 APPL_TRACE_DEBUG1("this_char = %02x", p_report[xx]);
467 UINT8 xx;
469 for(xx = 0; xx < BTA_HH_MAX_DEVICE; xx ++)
471 utl_freebuf((void **)&bta_hh_cb.kdev[xx].dscp_info.descriptor.dsc_list);
524 UINT8 xx;
528 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++)
530 APPL_TRACE_DEBUG3("kdev[%d] in_use[%d] handle[%d] ",xx,
531 bta_hh_cb.kdev[xx].in_use, bta_hh_cb.kdev[xx].hid_handle);
534 bta_hh_cb.kdev[xx].attr_mask, bta_hh_cb.kdev[xx].state,
535 bta_hh_cb.kdev[xx].sub_class, bta_hh_cb.kdev[xx].index);