Lines Matching refs:bitlen
631 uint32_t offset, bitlen; in nvmem_read_cell() local
661 bitlen = nc->nc_bitlen; in nvmem_read_cell()
662 while (bitlen > 0 && size > 0) { in nvmem_read_cell()
670 if (bitlen >= 8) in nvmem_read_cell()
673 mask = (1 << bitlen) - 1; in nvmem_read_cell()
677 bitlen -= MIN(offset, bitlen); in nvmem_read_cell()
682 if (bitlen > 0 && size > 0) { in nvmem_read_cell()
684 bitlen -= MIN(8 - offset, bitlen); in nvmem_read_cell()
706 uint32_t offset, bitlen; in nvmem_write_cell() local
736 bitlen = nc->nc_bitlen; in nvmem_write_cell()
737 while (bitlen > 0 && size > 0) { in nvmem_write_cell()
745 if (bitlen >= 8) in nvmem_write_cell()
748 mask = (1 << bitlen) - 1; in nvmem_write_cell()
752 bitlen -= MIN(8 - offset, bitlen); in nvmem_write_cell()
755 if (!first && bitlen > 0 && size > 0) { in nvmem_write_cell()
758 bitlen -= MIN(offset, bitlen); in nvmem_write_cell()