• Home
  • Raw
  • Download

Lines Matching refs:p_buf

59   tBTA_HH_API_ENABLE* p_buf =  in BTA_HhEnable()  local
65 p_buf->hdr.event = BTA_HH_API_ENABLE_EVT; in BTA_HhEnable()
66 p_buf->p_cback = p_cback; in BTA_HhEnable()
68 bta_sys_sendmsg(p_buf); in BTA_HhEnable()
82 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HhDisable() local
85 p_buf->event = BTA_HH_API_DISABLE_EVT; in BTA_HhDisable()
87 bta_sys_sendmsg(p_buf); in BTA_HhDisable()
100 BT_HDR* p_buf = (BT_HDR*)osi_calloc(sizeof(BT_HDR)); in BTA_HhClose() local
102 p_buf->event = BTA_HH_API_CLOSE_EVT; in BTA_HhClose()
103 p_buf->layer_specific = (uint16_t)dev_handle; in BTA_HhClose()
105 bta_sys_sendmsg(p_buf); in BTA_HhClose()
119 tBTA_HH_API_CONN* p_buf = in BTA_HhOpen() local
123 p_buf->hdr.event = BTA_HH_API_OPEN_EVT; in BTA_HhOpen()
124 p_buf->hdr.layer_specific = BTA_HH_INVALID_HANDLE; in BTA_HhOpen()
125 p_buf->mode = mode; in BTA_HhOpen()
126 p_buf->bd_addr = dev_bda; in BTA_HhOpen()
128 bta_sys_sendmsg((void*)p_buf); in BTA_HhOpen()
139 tBTA_HH_CMD_DATA* p_buf = in bta_hh_snd_write_dev() local
142 p_buf->hdr.event = BTA_HH_API_WRITE_DEV_EVT; in bta_hh_snd_write_dev()
143 p_buf->hdr.layer_specific = (uint16_t)dev_handle; in bta_hh_snd_write_dev()
144 p_buf->t_type = t_type; in bta_hh_snd_write_dev()
145 p_buf->data = data; in bta_hh_snd_write_dev()
146 p_buf->param = param; in bta_hh_snd_write_dev()
147 p_buf->p_data = p_data; in bta_hh_snd_write_dev()
148 p_buf->rpt_id = rpt_id; in bta_hh_snd_write_dev()
150 bta_sys_sendmsg(p_buf); in bta_hh_snd_write_dev()
289 BT_HDR* p_buf = (BT_HDR*)osi_calloc(sizeof(BT_HDR)); in BTA_HhGetDscpInfo() local
291 p_buf->event = BTA_HH_API_GET_DSCP_EVT; in BTA_HhGetDscpInfo()
292 p_buf->layer_specific = (uint16_t)dev_handle; in BTA_HhGetDscpInfo()
294 bta_sys_sendmsg(p_buf); in BTA_HhGetDscpInfo()
313 tBTA_HH_MAINT_DEV* p_buf = (tBTA_HH_MAINT_DEV*)osi_calloc(len); in BTA_HhAddDev() local
315 p_buf->hdr.event = BTA_HH_API_MAINT_DEV_EVT; in BTA_HhAddDev()
316 p_buf->sub_event = BTA_HH_ADD_DEV_EVT; in BTA_HhAddDev()
317 p_buf->hdr.layer_specific = BTA_HH_INVALID_HANDLE; in BTA_HhAddDev()
319 p_buf->attr_mask = (uint16_t)attr_mask; in BTA_HhAddDev()
320 p_buf->sub_class = sub_class; in BTA_HhAddDev()
321 p_buf->app_id = app_id; in BTA_HhAddDev()
322 p_buf->bda = bda; in BTA_HhAddDev()
324 memcpy(&p_buf->dscp_info, &dscp_info, sizeof(tBTA_HH_DEV_DSCP_INFO)); in BTA_HhAddDev()
326 p_buf->dscp_info.descriptor.dl_len = dscp_info.descriptor.dl_len; in BTA_HhAddDev()
327 p_buf->dscp_info.descriptor.dsc_list = (uint8_t*)(p_buf + 1); in BTA_HhAddDev()
328 memcpy(p_buf->dscp_info.descriptor.dsc_list, dscp_info.descriptor.dsc_list, in BTA_HhAddDev()
331 p_buf->dscp_info.descriptor.dsc_list = NULL; in BTA_HhAddDev()
332 p_buf->dscp_info.descriptor.dl_len = 0; in BTA_HhAddDev()
335 bta_sys_sendmsg(p_buf); in BTA_HhAddDev()
348 tBTA_HH_MAINT_DEV* p_buf = in BTA_HhRemoveDev() local
351 p_buf->hdr.event = BTA_HH_API_MAINT_DEV_EVT; in BTA_HhRemoveDev()
352 p_buf->sub_event = BTA_HH_RMV_DEV_EVT; in BTA_HhRemoveDev()
353 p_buf->hdr.layer_specific = (uint16_t)dev_handle; in BTA_HhRemoveDev()
355 bta_sys_sendmsg(p_buf); in BTA_HhRemoveDev()