Lines Matching refs:fops
194 struct node_fetchops *fops; in fetchop_alloc_page() local
200 fops = node_fetchops[nid]; in fetchop_alloc_page()
201 while (fops && (bit = find_first_zero_bit(fops->bits, fops->count)) < fops->count) { in fetchop_alloc_page()
202 if (test_and_set_bit(bit, fops->bits) == 0) { in fetchop_alloc_page()
204 maddr = fops->maddr + (bit<<PAGE_SHIFT); in fetchop_alloc_page()
373 struct node_fetchops *fops; in fetchop_read_proc() local
382 fops = node_fetchops[nid]; in fetchop_read_proc()
383 …len += sprintf(page + len, "%4d %7d %7d\n", nid, fops ? fops->count : 0, fops ? atomic_read(&fops-… in fetchop_read_proc()
415 struct node_fetchops *fops; in fetchop_build_memmap() local
420 fops = vmalloc(bytes); in fetchop_build_memmap()
421 memset(fops, 0, bytes); in fetchop_build_memmap()
422 fops->maddr = FETCHOP_KADDR_TO_MSPEC_ADDR(start); in fetchop_build_memmap()
423 fops->count = count; in fetchop_build_memmap()
424 atomic_add(count, &fops->free); in fetchop_build_memmap()
426 node_fetchops[MSPEC_TO_NID(start)] = fops; in fetchop_build_memmap()