Lines Matching defs:pinfo
71 mk_pri_pentry(struct disk_info *dinfo, struct part_info *pinfo, int pnum,
97 if (pinfo) {
101 if (pinfo->len_kb != (uint32_t)-1) {
103 len_lba = ((uint64_t)pinfo->len_kb * 1024);
112 cfg_pentry(pentry, ((pinfo->flags & PART_ACTIVE_FLAG) ?
114 pinfo->type, *lba, (uint32_t)len_lba);
116 pinfo->start_lba = *lba;
141 mk_ext_pentry(struct disk_info *dinfo, struct part_info *pinfo, uint32_t *lba,
162 if (pinfo->len_kb != (uint32_t)-1)
163 len = kb_to_lba(pinfo->len_kb, dinfo->sect_size);
167 "(name = '%s')", pinfo->name);
171 /* update the pinfo structure to reflect the new size, for
173 pinfo->len_kb =
179 pinfo->type, 1, len);
181 pinfo->start_lba = *lba;
214 struct part_info *pinfo;
226 pinfo = &dinfo->part_lst[cnt];
245 else if (pinfo->len_kb != (uint32_t)-1) {
246 uint32_t sz_lba = (pinfo->len_kb / dinfo->sect_size) * 1024;
252 temp_wr = mk_pri_pentry(dinfo, pinfo, cnt, &cur_lba);
256 temp_wr = mk_ext_pentry(dinfo, pinfo, &cur_lba, ext_lba, pnext);
262 LOGE("Cannot create partition %d (%s).", cnt, pinfo->name);
282 LOGE("Not enough space to add parttion '%s'.", pinfo->name);