Lines Matching refs:dis_cb

63 tDIS_CB dis_cb;  variable
96 if (handle >= dis_cb.service_handle && handle <= dis_cb.max_handle) in dis_valid_handle_range()
117 tDIS_DB_ENTRY* p_db_attr = dis_cb.dis_attr; in dis_read_attr_value()
141 pp = dis_cb.dis_value in dis_read_attr_value()
164 uint64_t_TO_STREAM(p, dis_cb.dis_value.system_id); /* int_min */ in dis_read_attr_value()
169 UINT8_TO_STREAM(p, dis_cb.dis_value.pnp_id.vendor_id_src); in dis_read_attr_value()
170 UINT16_TO_STREAM(p, dis_cb.dis_value.pnp_id.vendor_id); in dis_read_attr_value()
171 UINT16_TO_STREAM(p, dis_cb.dis_value.pnp_id.product_id); in dis_read_attr_value()
172 UINT16_TO_STREAM(p, dis_cb.dis_value.pnp_id.product_version); in dis_read_attr_value()
195 dis_cb.dis_read_uuid_idx = 0xff; in dis_gatt_c_read_dis_value_cmpl()
199 if (dis_cb.p_read_dis_cback && p_clcb) { in dis_gatt_c_read_dis_value_cmpl()
203 (*dis_cb.p_read_dis_cback)(p_clcb->bda, &p_clcb->dis_value); in dis_gatt_c_read_dis_value_cmpl()
204 dis_cb.p_read_dis_cback = NULL; in dis_gatt_c_read_dis_value_cmpl()
226 while (dis_cb.dis_read_uuid_idx < DIS_MAX_CHAR_NUM) { in dis_gatt_c_read_dis_req()
227 if (dis_uuid_to_attr(dis_attr_uuid[dis_cb.dis_read_uuid_idx]) & in dis_gatt_c_read_dis_req()
228 dis_cb.request_mask) { in dis_gatt_c_read_dis_req()
230 bluetooth::Uuid::From16Bit(dis_attr_uuid[dis_cb.dis_read_uuid_idx]); in dis_gatt_c_read_dis_req()
239 dis_cb.dis_read_uuid_idx++; in dis_gatt_c_read_dis_req()
258 uint16_t read_type = dis_attr_uuid[dis_cb.dis_read_uuid_idx]; in dis_c_cmpl_cback()
316 dis_cb.dis_read_uuid_idx++; in dis_c_cmpl_cback()
331 if (dis_cb.enabled) { in DIS_SrInit()
336 memset(&dis_cb, 0, sizeof(tDIS_CB)); in DIS_SrInit()
346 dis_cb.dis_attr[i].uuid = dis_attr_uuid[i]; in DIS_SrInit()
349 bluetooth::Uuid::From16Bit(dis_cb.dis_attr[i].uuid); in DIS_SrInit()
367 dis_cb.service_handle = service[0].attribute_handle; in DIS_SrInit()
368 dis_cb.max_handle = dis_cb.service_handle + DIS_MAX_ATTR_NUM; in DIS_SrInit()
371 dis_cb.dis_attr[i].handle = service[i + 1].attribute_handle; in DIS_SrInit()
374 __func__, dis_cb.dis_attr[i].uuid, in DIS_SrInit()
375 dis_cb.dis_attr[i].handle); in DIS_SrInit()
378 dis_cb.enabled = true; in DIS_SrInit()
393 dis_cb.dis_value.system_id = p_info->system_id; in DIS_SrUpdate()
395 dis_cb.dis_value.pnp_id.vendor_id = p_info->pnp_id.vendor_id; in DIS_SrUpdate()
396 dis_cb.dis_value.pnp_id.vendor_id_src = p_info->pnp_id.vendor_id_src; in DIS_SrUpdate()
397 dis_cb.dis_value.pnp_id.product_id = p_info->pnp_id.product_id; in DIS_SrUpdate()
398 dis_cb.dis_value.pnp_id.product_version = p_info->pnp_id.product_version; in DIS_SrUpdate()
404 osi_free(dis_cb.dis_value.data_string[i - 1]); in DIS_SrUpdate()
405 dis_cb.dis_value.data_string[i - 1] = in DIS_SrUpdate()
407 memcpy(dis_cb.dis_value.data_string[i - 1], p_info->data_str.p_data, in DIS_SrUpdate()
409 dis_cb.dis_value.data_string[i - 1][p_info->data_str.len] = in DIS_SrUpdate()
437 if (dis_cb.dis_read_uuid_idx != 0xff) return (false); in DIS_ReadDISInfo()
441 dis_cb.p_read_dis_cback = p_cback; in DIS_ReadDISInfo()
443 dis_cb.dis_read_uuid_idx = 0; in DIS_ReadDISInfo()
445 dis_cb.request_mask = mask; in DIS_ReadDISInfo()
449 dis_attr_uuid[dis_cb.dis_read_uuid_idx]); in DIS_ReadDISInfo()