Searched refs:newp (Results 1 – 2 of 2) sorted by relevance
158 void *newp; in qmi_tlv_alloc_item() local164 newp = realloc(tlv->allocated, new_size); in qmi_tlv_alloc_item()165 if (!newp) in qmi_tlv_alloc_item()169 memcpy(newp, tlv->buf, tlv->size); in qmi_tlv_alloc_item()171 item = newp + tlv->size; in qmi_tlv_alloc_item()175 tlv->buf = tlv->allocated = newp; in qmi_tlv_alloc_item()
133 struct pd_map *newp; in pd_load_map() local161 newp = realloc(pd_maps, (num_pd_maps + count + 1) * sizeof(*newp)); in pd_load_map()162 if (!newp) in pd_load_map()164 pd_maps = newp; in pd_load_map()