Searched refs:max_code (Results 1 – 5 of 5) sorted by relevance
| /linux-6.15/lib/zlib_deflate/ |
| H A D | deftree.c | 359 int max_code = desc->max_code; in gen_bitlen() local 421 if (m > max_code) continue; in gen_bitlen() 465 for (n = 0; n <= max_code; n++) { in gen_codes() 504 s->heap[++(s->heap_len)] = max_code = n; in build_tree() 517 node = s->heap[++(s->heap_len)] = (max_code < 2 ? ++max_code : 0); in build_tree() 523 desc->max_code = max_code; in build_tree() 565 gen_codes ((ct_data *)tree, max_code, s->bl_count); in build_tree() 587 tree[max_code+1].Len = (ush)0xffff; /* guard */ in scan_tree() 589 for (n = 0; n <= max_code; n++) { in scan_tree() 635 for (n = 0; n <= max_code; n++) { in send_tree() [all …]
|
| H A D | defutil.h | 62 int max_code; /* largest code with non zero frequency */ member
|
| /linux-6.15/net/netfilter/ |
| H A D | xt_tcpudp.c | 168 static bool type_code_in_range(u8 test_type, u8 min_code, u8 max_code, in type_code_in_range() argument 171 return type == test_type && code >= min_code && code <= max_code; in type_code_in_range() 174 static bool icmp_type_code_match(u8 test_type, u8 min_code, u8 max_code, in icmp_type_code_match() argument 178 type_code_in_range(test_type, min_code, max_code, type, code)) in icmp_type_code_match() 182 static bool icmp6_type_code_match(u8 test_type, u8 min_code, u8 max_code, in icmp6_type_code_match() argument 185 return type_code_in_range(test_type, min_code, max_code, type, code) ^ invert; in icmp6_type_code_match()
|
| /linux-6.15/drivers/input/misc/ |
| H A D | twl6040-vibra.c | 123 int vpk, max_code; in twl6040_vibra_code() local 131 max_code = vpk / 50; in twl6040_vibra_code() 132 if (max_code > TWL6040_VIBDAT_MAX) in twl6040_vibra_code() 133 max_code = TWL6040_VIBDAT_MAX; in twl6040_vibra_code() 136 vibdat = (u8)((speed * max_code) / USHRT_MAX); in twl6040_vibra_code()
|
| /linux-6.15/drivers/leds/ |
| H A D | leds-lm3692x.c | 367 u32 max_code; in lm3692x_max_brightness() local 370 max_code = ((max_cur * 1000) - 37806) / 12195; in lm3692x_max_brightness() 371 if (max_code > 0x7FF) in lm3692x_max_brightness() 372 max_code = 0x7FF; in lm3692x_max_brightness() 374 return max_code >> 3; in lm3692x_max_brightness()
|