Lines Matching refs:p_dest

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