Searched refs:BYTES_TO_BITS (Results 1 – 2 of 2) sorted by relevance
526 #define BYTES_TO_BITS(nb) ((BITS_PER_LONG * (nb)) / sizeof(long)) macro556 code->lshift = BYTES_TO_BITS(t->size) - (bw + bo); in __parse_bitfield_probe_arg()557 code->rshift = BYTES_TO_BITS(t->size) - bw; in __parse_bitfield_probe_arg()560 return (BYTES_TO_BITS(t->size) < (bw + bo)) ? -EINVAL : 0; in __parse_bitfield_probe_arg()
307 #define BYTES_TO_BITS(nb) ((nb) * BITS_PER_LONG / sizeof(long)) macro339 BYTES_TO_BITS(total)); in convert_variable_type()404 ret = BYTES_TO_BITS(ret); in convert_variable_type()