Home
last modified time | relevance | path

Searched refs:leading_zero_bits (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/tools/testing/selftests/powerpc/primitives/
Dword-at-a-time.h31 long leading_zero_bits; in find_zero() local
33 asm (PPC_CNTLZL "%0,%1" : "=r" (leading_zero_bits) : "r" (mask)); in find_zero()
34 return leading_zero_bits >> 3; in find_zero()
79 unsigned long leading_zero_bits; in create_zero_mask() local
85 : "=r" (leading_zero_bits), "=&r" (trailing_zero_bit_mask) in create_zero_mask()
88 return leading_zero_bits; in create_zero_mask()
/linux-6.1.9/arch/powerpc/include/asm/
Dword-at-a-time.h31 long leading_zero_bits; in find_zero() local
33 asm (PPC_CNTLZL "%0,%1" : "=r" (leading_zero_bits) : "r" (mask)); in find_zero()
34 return leading_zero_bits >> 3; in find_zero()
79 unsigned long leading_zero_bits; in create_zero_mask() local
85 : "=r" (leading_zero_bits), "=&r" (trailing_zero_bit_mask) in create_zero_mask()
88 return leading_zero_bits; in create_zero_mask()
/linux-6.1.9/drivers/media/platform/allegro-dvt/
Dnal-rbsp.c167 int leading_zero_bits = 0; in rbsp_read_uev() local
172 leading_zero_bits++; in rbsp_read_uev()
176 if (leading_zero_bits > 0) { in rbsp_read_uev()
177 ret = rbsp_read_bits(rbsp, leading_zero_bits, &tmp); in rbsp_read_uev()
183 *value = (1 << leading_zero_bits) - 1 + tmp; in rbsp_read_uev()
191 int leading_zero_bits; in rbsp_write_uev() local
196 leading_zero_bits = ilog2(*value + 1); in rbsp_write_uev()
198 ret = rbsp_write_bits(rbsp, leading_zero_bits, 0); in rbsp_write_uev()
202 return rbsp_write_bits(rbsp, leading_zero_bits + 1, *value + 1); in rbsp_write_uev()
/linux-6.1.9/drivers/media/platform/chips-media/
Dcoda-h264.c182 int leading_zero_bits = 0; in rbsp_read_uev() local
187 leading_zero_bits++; in rbsp_read_uev()
191 if (leading_zero_bits > 0) { in rbsp_read_uev()
192 ret = rbsp_read_bits(rbsp, leading_zero_bits, &tmp); in rbsp_read_uev()
198 *val = (1 << leading_zero_bits) - 1 + tmp; in rbsp_read_uev()
208 int leading_zero_bits = fls(tmp) - 1; in rbsp_write_uev() local
210 for (i = 0; i < leading_zero_bits; i++) { in rbsp_write_uev()
216 return rbsp_write_bits(rbsp, leading_zero_bits + 1, tmp); in rbsp_write_uev()