Lines Matching refs:p_src
83 void btif_to_bta_uuid(tBT_UUID *p_dest, bt_uuid_t *p_src) in btif_to_bta_uuid() argument
85 char *p_byte = (char*)p_src; in btif_to_bta_uuid()
88 p_dest->len = uuidType(p_src->uu); 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()
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()
121 void btif_to_bta_uuid_mask(tBTA_DM_BLE_PF_COND_MASK *p_mask, bt_uuid_t *p_src) in btif_to_bta_uuid_mask() argument
123 char *p_byte = (char*)p_src; in btif_to_bta_uuid_mask()
126 switch (uuidType(p_src->uu)) in btif_to_bta_uuid_mask()
129 p_mask->uuid16_mask = (p_src->uu[13] << 8) + p_src->uu[12]; in btif_to_bta_uuid_mask()
133 p_mask->uuid32_mask = (p_src->uu[13] << 8) + p_src->uu[12]; in btif_to_bta_uuid_mask()
134 p_mask->uuid32_mask += (p_src->uu[15] << 24) + (p_src->uu[14] << 16); in btif_to_bta_uuid_mask()
151 void bta_to_btif_uuid(bt_uuid_t *p_dest, tBT_UUID *p_src) in bta_to_btif_uuid() argument
155 if (p_src->len == LEN_UUID_16 || p_src->len == LEN_UUID_32) in bta_to_btif_uuid()
161 switch (p_src->len) 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()
184 LOG_ERROR(LOG_TAG, "%s: Unknown UUID length %d!", __FUNCTION__, p_src->len); 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()
219 if (( p_src->status == BTA_GATT_OK ) &&(p_src->p_value != NULL)) in set_read_value()
221 LOG_INFO(LOG_TAG, "%s len = %d ", __FUNCTION__, p_src->p_value->len); in set_read_value()
222 p_dest->value.len = p_src->p_value->len; in set_read_value()
223 if ( p_src->p_value->len > 0 && p_src->p_value->p_value != NULL ) in set_read_value()
224 memcpy(p_dest->value.value, p_src->p_value->p_value, in set_read_value()
225 p_src->p_value->len); in set_read_value()
227 len += p_src->p_value->len; in set_read_value()
286 btgatt_track_adv_info_t *p_src) in btif_gatt_move_track_adv_data() argument
290 memcpy(p_dest, p_src, sizeof(btgatt_track_adv_info_t)); in btif_gatt_move_track_adv_data()
292 if (p_src->adv_pkt_len > 0) 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()
296 p_src->adv_pkt_len); in btif_gatt_move_track_adv_data()
297 osi_free_and_reset((void **)&p_src->p_adv_pkt_data); in btif_gatt_move_track_adv_data()
300 if (p_src->scan_rsp_len > 0) 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()
304 p_src->scan_rsp_len); in btif_gatt_move_track_adv_data()
305 osi_free_and_reset((void **)&p_src->p_scan_rsp_data); in btif_gatt_move_track_adv_data()