Lines Matching refs:p
256 struct ihex_binrec **p = &records; in file_record() local
258 while ((*p) && (!sort_records || (*p)->addr < record->addr)) in file_record()
259 p = &((*p)->next); in file_record()
261 record->next = *p; in file_record()
262 *p = record; in file_record()
265 static uint16_t ihex_binrec_size(struct ihex_binrec *p) in ihex_binrec_size() argument
267 return p->len + sizeof(p->addr) + sizeof(p->len); in ihex_binrec_size()
273 struct ihex_binrec *p = records; in output_records() local
275 while (p) { in output_records()
276 uint16_t writelen = ALIGN(ihex_binrec_size(p), 4); in output_records()
278 p->addr = htonl(p->addr); in output_records()
279 p->len = htons(p->len); in output_records()
280 if (write(outfd, &p->addr, writelen) != writelen) in output_records()
282 p = p->next; in output_records()