Searched refs:alloc_bits (Results 1 – 2 of 2) sorted by relevance
| /OK3568_Linux_fs/kernel/mm/ |
| H A D | percpu.c | 316 static int pcpu_next_hint(struct pcpu_block_md *block, int alloc_bits) in pcpu_next_hint() argument 327 alloc_bits > block->scan_hint) in pcpu_next_hint() 399 static void pcpu_next_fit_region(struct pcpu_chunk *chunk, int alloc_bits, in pcpu_next_fit_region() argument 412 if (*bits >= alloc_bits) in pcpu_next_fit_region() 427 block->contig_hint >= *bits + alloc_bits) { in pcpu_next_fit_region() 428 int start = pcpu_next_hint(block, alloc_bits); in pcpu_next_fit_region() 430 *bits += alloc_bits + block->contig_hint_start - in pcpu_next_fit_region() 442 if (*bits >= alloc_bits) in pcpu_next_fit_region() 462 #define pcpu_for_each_fit_region(chunk, alloc_bits, align, bit_off, bits) \ argument 463 for (pcpu_next_fit_region((chunk), (alloc_bits), (align), &(bit_off), \ [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/rc/ |
| H A D | rc_model_v2.c | 432 RK_S32 alloc_bits = 0; in bits_model_alloc() local 471 alloc_bits = total_bits / (i_scale + 16 * (gop_len - vi_num) + vi_num * vi_scale); in bits_model_alloc() 473 if (!alloc_bits) { in bits_model_alloc() 504 alloc_bits = total_bits / (i_scale + 16 * (gop_len - 1)); in bits_model_alloc() 506 alloc_bits = total_bits / in bits_model_alloc() 510 alloc_bits = total_bits / i_scale; in bits_model_alloc() 514 if (alloc_bits > super_bit_thr && in bits_model_alloc() 516 alloc_bits = super_bit_thr - (super_bit_thr >> 4); in bits_model_alloc() 521 cfg->bit_target = alloc_bits; in bits_model_alloc() 523 mpp_assert(alloc_bits); in bits_model_alloc()
|