Lines Matching full:p_dest
83 void btif_to_bta_uuid(tBT_UUID *p_dest, bt_uuid_t *p_src)
88 p_dest->len = uuidType(p_src->uu);
90 switch (p_dest->len)
93 p_dest->uu.uuid16 = (p_src->uu[13] << 8) + p_src->uu[12];
97 p_dest->uu.uuid32 = (p_src->uu[13] << 8) + p_src->uu[12];
98 p_dest->uu.uuid32 += (p_src->uu[15] << 24) + (p_src->uu[14] << 16);
103 p_dest->uu.uuid128[i] = p_byte[i];
107 LOG_ERROR(LOG_TAG, "%s: Unknown UUID length %d!", __FUNCTION__, p_dest->len);
112 void btif_to_bta_response(tBTA_GATTS_RSP *p_dest, btgatt_response_t* p_src)
114 p_dest->attr_value.auth_req = p_src->attr_value.auth_req;
115 p_dest->attr_value.handle = p_src->attr_value.handle;
116 p_dest->attr_value.len = p_src->attr_value.len;
117 p_dest->attr_value.offset = p_src->attr_value.offset;
118 memcpy(p_dest->attr_value.value, p_src->attr_value.value, GATT_MAX_ATTR_LEN);
151 void bta_to_btif_uuid(bt_uuid_t *p_dest, tBT_UUID *p_src)
158 p_dest->uu[i] = BASE_UUID[i];
167 p_dest->uu[12] = p_src->uu.uuid16 & 0xff;
168 p_dest->uu[13] = (p_src->uu.uuid16 >> 8) & 0xff;
172 p_dest->uu[12] = p_src->uu.uuid16 & 0xff;
173 p_dest->uu[13] = (p_src->uu.uuid16 >> 8) & 0xff;
174 p_dest->uu[14] = (p_src->uu.uuid32 >> 16) & 0xff;
175 p_dest->uu[15] = (p_src->uu.uuid32 >> 24) & 0xff;
180 p_dest->uu[i] = p_src->uu.uuid128[i];
212 uint16_t set_read_value(btgatt_read_params_t *p_dest, tBTA_GATTC_READ *p_src)
216 p_dest->status = p_src->status;
217 p_dest->handle = p_src->handle;
222 p_dest->value.len = p_src->p_value->len;
224 memcpy(p_dest->value.value, p_src->p_value->p_value,
229 p_dest->value.len = 0;
232 p_dest->value_type = GATTC_READ_VALUE_TYPE_VALUE;
285 void btif_gatt_move_track_adv_data(btgatt_track_adv_info_t *p_dest,
288 memset(p_dest, 0, sizeof(btgatt_track_adv_info_t));
290 memcpy(p_dest, p_src, sizeof(btgatt_track_adv_info_t));
294 p_dest->p_adv_pkt_data = osi_malloc(p_src->adv_pkt_len);
295 memcpy(p_dest->p_adv_pkt_data, p_src->p_adv_pkt_data,
302 p_dest->p_scan_rsp_data = osi_malloc(p_src->scan_rsp_len);
303 memcpy(p_dest->p_scan_rsp_data, p_src->p_scan_rsp_data,