Lines Matching refs:pinfo
70 mk_pri_pentry(struct disk_info *dinfo, struct part_info *pinfo, int pnum, in mk_pri_pentry() argument
96 if (pinfo) { in mk_pri_pentry()
100 if (pinfo->len_kb != (uint32_t)-1) { in mk_pri_pentry()
102 len_lba = ((uint64_t)pinfo->len_kb * 1024); in mk_pri_pentry()
111 cfg_pentry(pentry, ((pinfo->flags & PART_ACTIVE_FLAG) ? in mk_pri_pentry()
113 pinfo->type, *lba, (uint32_t)len_lba); in mk_pri_pentry()
115 pinfo->start_lba = *lba; in mk_pri_pentry()
140 mk_ext_pentry(struct disk_info *dinfo, struct part_info *pinfo, uint32_t *lba, in mk_ext_pentry() argument
161 if (pinfo->len_kb != (uint32_t)-1) in mk_ext_pentry()
162 len = kb_to_lba(pinfo->len_kb, dinfo->sect_size); in mk_ext_pentry()
166 "(name = '%s')", pinfo->name); in mk_ext_pentry()
172 pinfo->len_kb = in mk_ext_pentry()
178 pinfo->type, 1, len); in mk_ext_pentry()
180 pinfo->start_lba = *lba; in mk_ext_pentry()
233 struct part_info *pinfo; in config_mbr() local
245 pinfo = &dinfo->part_lst[cnt]; in config_mbr()
264 else if (pinfo->len_kb != (uint32_t)-1) { in config_mbr()
265 uint32_t sz_lba = (pinfo->len_kb / dinfo->sect_size) * 1024; in config_mbr()
271 temp_wr = mk_pri_pentry(dinfo, pinfo, cnt, &cur_lba); in config_mbr()
275 temp_wr = mk_ext_pentry(dinfo, pinfo, &cur_lba, ext_lba, pnext); in config_mbr()
281 ALOGE("Cannot create partition %d (%s).", cnt, pinfo->name); in config_mbr()
308 ALOGE("Not enough space to add parttion '%s'.", pinfo->name); in config_mbr()