Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 5 of 5) sorted by relevance

/mm/
Dpercpu.c321 static bool pcpu_check_block_hint(struct pcpu_block_md *block, int bits, in pcpu_check_block_hint() argument
327 return bit_off + bits <= block->contig_hint; in pcpu_check_block_hint()
370 int *bits) in pcpu_next_md_free_region() argument
376 *bits = 0; in pcpu_next_md_free_region()
380 if (*bits) { in pcpu_next_md_free_region()
381 *bits += block->left_free; in pcpu_next_md_free_region()
395 *bits = block->contig_hint; in pcpu_next_md_free_region()
396 if (*bits && block->contig_hint_start >= block_off && in pcpu_next_md_free_region()
397 *bits + block->contig_hint_start < PCPU_BITMAP_BLOCK_BITS) { in pcpu_next_md_free_region()
405 *bits = block->right_free; in pcpu_next_md_free_region()
[all …]
Dmempolicy.c1391 unsigned long bits = min_t(unsigned long, maxnode, BITS_PER_LONG); in get_nodes() local
1394 if (get_bitmap(&t, &nmask[(maxnode - 1) / BITS_PER_LONG], bits)) in get_nodes()
1397 if (maxnode - bits >= MAX_NUMNODES) { in get_nodes()
1398 maxnode -= bits; in get_nodes()
DKconfig930 # make sure page->flags has enough spare bits
Dpage_alloc.c7961 highest = find_last_bit(node_possible_map.bits, MAX_NUMNODES); in setup_nr_node_ids()
/mm/kasan/
Dkasan_test.c1049 long *bits; in kasan_bitops_generic() local
1058 bits = kzalloc(sizeof(*bits) + 1, GFP_KERNEL); in kasan_bitops_generic()
1059 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, bits); in kasan_bitops_generic()
1066 kasan_bitops_modify(test, BITS_PER_LONG, bits); in kasan_bitops_generic()
1071 kasan_bitops_test_and_modify(test, BITS_PER_LONG + BITS_PER_BYTE, bits); in kasan_bitops_generic()
1073 kfree(bits); in kasan_bitops_generic()
1078 long *bits; in kasan_bitops_tags() local
1084 bits = kzalloc(48, GFP_KERNEL); in kasan_bitops_tags()
1085 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, bits); in kasan_bitops_tags()
1088 kasan_bitops_modify(test, BITS_PER_LONG, (void *)bits + 48); in kasan_bitops_tags()
[all …]