Lines Matching refs:pack_bits
228 static void pack_bits(uint8_t **addr, int *pos, uint32_t val, int nrbits) in pack_bits() function
352 pack_bits(&addr, &pos, UBIFS_LPT_PNODE, UBIFS_LPT_TYPE_BITS); in ubifs_pack_pnode()
354 pack_bits(&addr, &pos, pnode->num, c->pcnt_bits); in ubifs_pack_pnode()
356 pack_bits(&addr, &pos, pnode->lprops[i].free >> 3, in ubifs_pack_pnode()
358 pack_bits(&addr, &pos, pnode->lprops[i].dirty >> 3, in ubifs_pack_pnode()
361 pack_bits(&addr, &pos, 1, 1); in ubifs_pack_pnode()
363 pack_bits(&addr, &pos, 0, 1); in ubifs_pack_pnode()
369 pack_bits(&addr, &pos, crc, UBIFS_LPT_CRC_BITS); in ubifs_pack_pnode()
385 pack_bits(&addr, &pos, UBIFS_LPT_NNODE, UBIFS_LPT_TYPE_BITS); in ubifs_pack_nnode()
387 pack_bits(&addr, &pos, nnode->num, c->pcnt_bits); in ubifs_pack_nnode()
393 pack_bits(&addr, &pos, lnum - c->lpt_first, c->lpt_lnum_bits); in ubifs_pack_nnode()
394 pack_bits(&addr, &pos, nnode->nbranch[i].offs, in ubifs_pack_nnode()
401 pack_bits(&addr, &pos, crc, UBIFS_LPT_CRC_BITS); in ubifs_pack_nnode()
417 pack_bits(&addr, &pos, UBIFS_LPT_LTAB, UBIFS_LPT_TYPE_BITS); in ubifs_pack_ltab()
419 pack_bits(&addr, &pos, ltab[i].free, c->lpt_spc_bits); in ubifs_pack_ltab()
420 pack_bits(&addr, &pos, ltab[i].dirty, c->lpt_spc_bits); in ubifs_pack_ltab()
426 pack_bits(&addr, &pos, crc, UBIFS_LPT_CRC_BITS); in ubifs_pack_ltab()
441 pack_bits(&addr, &pos, UBIFS_LPT_LSAVE, UBIFS_LPT_TYPE_BITS); in ubifs_pack_lsave()
443 pack_bits(&addr, &pos, lsave[i], c->lnum_bits); in ubifs_pack_lsave()
448 pack_bits(&addr, &pos, crc, UBIFS_LPT_CRC_BITS); in ubifs_pack_lsave()