Lines Matching refs:pack_bits
222 static void pack_bits(const struct ubifs_info *c, uint8_t **addr, int *pos, uint32_t val, int nrbit… in pack_bits() function
347 pack_bits(c, &addr, &pos, UBIFS_LPT_PNODE, UBIFS_LPT_TYPE_BITS); in ubifs_pack_pnode()
349 pack_bits(c, &addr, &pos, pnode->num, c->pcnt_bits); in ubifs_pack_pnode()
351 pack_bits(c, &addr, &pos, pnode->lprops[i].free >> 3, in ubifs_pack_pnode()
353 pack_bits(c, &addr, &pos, pnode->lprops[i].dirty >> 3, in ubifs_pack_pnode()
356 pack_bits(c, &addr, &pos, 1, 1); in ubifs_pack_pnode()
358 pack_bits(c, &addr, &pos, 0, 1); in ubifs_pack_pnode()
364 pack_bits(c, &addr, &pos, crc, UBIFS_LPT_CRC_BITS); in ubifs_pack_pnode()
380 pack_bits(c, &addr, &pos, UBIFS_LPT_NNODE, UBIFS_LPT_TYPE_BITS); in ubifs_pack_nnode()
382 pack_bits(c, &addr, &pos, nnode->num, c->pcnt_bits); in ubifs_pack_nnode()
388 pack_bits(c, &addr, &pos, lnum - c->lpt_first, c->lpt_lnum_bits); in ubifs_pack_nnode()
389 pack_bits(c, &addr, &pos, nnode->nbranch[i].offs, in ubifs_pack_nnode()
396 pack_bits(c, &addr, &pos, crc, UBIFS_LPT_CRC_BITS); in ubifs_pack_nnode()
412 pack_bits(c, &addr, &pos, UBIFS_LPT_LTAB, UBIFS_LPT_TYPE_BITS); in ubifs_pack_ltab()
414 pack_bits(c, &addr, &pos, ltab[i].free, c->lpt_spc_bits); in ubifs_pack_ltab()
415 pack_bits(c, &addr, &pos, ltab[i].dirty, c->lpt_spc_bits); in ubifs_pack_ltab()
421 pack_bits(c, &addr, &pos, crc, UBIFS_LPT_CRC_BITS); in ubifs_pack_ltab()
436 pack_bits(c, &addr, &pos, UBIFS_LPT_LSAVE, UBIFS_LPT_TYPE_BITS); in ubifs_pack_lsave()
438 pack_bits(c, &addr, &pos, lsave[i], c->lnum_bits); in ubifs_pack_lsave()
443 pack_bits(c, &addr, &pos, crc, UBIFS_LPT_CRC_BITS); in ubifs_pack_lsave()