Lines Matching refs:item
73 struct write_list *item; in mk_pri_pentry() local
81 if (!(item = alloc_wl(sizeof(struct pc_partition)))) { in mk_pri_pentry()
90 item->offset = (loff_t)((uintptr_t)((uint8_t *)(&mbr->ptable[pnum]))); in mk_pri_pentry()
93 pentry = (struct pc_partition *) &item->data; in mk_pri_pentry()
128 return item; in mk_pri_pentry()
143 struct write_list *item; in mk_ext_pentry() local
147 if (!(item = alloc_wl(sizeof(struct pc_boot_record)))) { in mk_ext_pentry()
154 item->offset = ((loff_t)(*lba)) * dinfo->sect_size; in mk_ext_pentry()
157 ebr = (struct pc_boot_record *) &item->data; in mk_ext_pentry()
202 return item; in mk_ext_pentry()
205 free_wl(item); in mk_ext_pentry()
213 struct write_list *item; in mk_mbr_sig() local
214 if (!(item = alloc_wl(sizeof(uint16_t)))) { in mk_mbr_sig()
223 item->offset = (loff_t)((uintptr_t)((uint8_t *)(&mbr->mbr_sig))); in mk_mbr_sig()
226 *((uint16_t*)item->data) = PC_BIOS_BOOT_SIG; in mk_mbr_sig()
227 return item; in mk_mbr_sig()