Home
last modified time | relevance | path

Searched refs:nmask (Results 1 - 25 of 37) sorted by relevance

12

/kernel/linux/linux-5.10/mm/
H A Dmempolicy.c438 nodemask_t *nmask; member
445 * Check if the page's nid is in qp->nmask.
448 * in the invert of qp->nmask.
456 return node_isset(nid, *qp->nmask) == !(flags & MPOL_MF_INVERT); in queue_pages_required()
751 .nmask = nodes, in queue_pages_range()
935 static long do_get_mempolicy(int *policy, nodemask_t *nmask, in do_get_mempolicy() argument
952 *nmask = cpuset_current_mems_allowed; in do_get_mempolicy()
1012 if (nmask) { in do_get_mempolicy()
1014 *nmask = pol->w.user_nodemask; in do_get_mempolicy()
1017 get_policy_nodemask(pol, nmask); in do_get_mempolicy()
1070 nodemask_t nmask; migrate_to_node() local
1264 do_mbind(unsigned long start, unsigned long len, unsigned short mode, unsigned short mode_flags, nodemask_t *nmask, unsigned long flags) do_mbind() argument
1372 get_nodes(nodemask_t *nodes, const unsigned long __user *nmask, unsigned long maxnode) get_nodes() argument
1449 kernel_mbind(unsigned long start, unsigned long len, unsigned long mode, const unsigned long __user *nmask, unsigned long maxnode, unsigned int flags) kernel_mbind() argument
1479 kernel_set_mempolicy(int mode, const unsigned long __user *nmask, unsigned long maxnode) kernel_set_mempolicy() argument
1601 kernel_get_mempolicy(int __user *policy, unsigned long __user *nmask, unsigned long maxnode, unsigned long addr, unsigned long flags) kernel_get_mempolicy() argument
2175 nodemask_t *nmask; alloc_pages_vma() local
[all...]
H A Dmemory_hotplug.c1342 nodemask_t nmask = node_states[N_MEMORY]; in do_migrate_range() local
1344 .nmask = &nmask, in do_migrate_range()
1359 node_clear(mtc.nid, nmask); in do_migrate_range()
1360 if (nodes_empty(nmask)) in do_migrate_range()
1361 node_set(mtc.nid, nmask); in do_migrate_range()
H A Dhugetlb.c1101 nodemask_t *nmask) in dequeue_huge_page_nodemask()
1113 for_each_zone_zonelist_nodemask(zone, z, zonelist, gfp_zone(gfp_mask), nmask) { in dequeue_huge_page_nodemask()
1666 gfp_t gfp_mask, int nid, nodemask_t *nmask, in alloc_buddy_huge_page()
1687 page = __alloc_pages_nodemask(gfp_mask, order, nid, nmask); in alloc_buddy_huge_page()
1717 gfp_t gfp_mask, int nid, nodemask_t *nmask, in alloc_fresh_huge_page()
1723 page = alloc_gigantic_page(h, gfp_mask, nid, nmask); in alloc_fresh_huge_page()
1726 nid, nmask, node_alloc_noretry); in alloc_fresh_huge_page()
1903 int nid, nodemask_t *nmask) in alloc_surplus_huge_page()
1915 page = alloc_fresh_huge_page(h, gfp_mask, nid, nmask, NULL); in alloc_surplus_huge_page()
1944 int nid, nodemask_t *nmask) in alloc_migrate_huge_page()
1100 dequeue_huge_page_nodemask(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask) dequeue_huge_page_nodemask() argument
1665 alloc_buddy_huge_page(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask, nodemask_t *node_alloc_noretry) alloc_buddy_huge_page() argument
1716 alloc_fresh_huge_page(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask, nodemask_t *node_alloc_noretry) alloc_fresh_huge_page() argument
1902 alloc_surplus_huge_page(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask) alloc_surplus_huge_page() argument
1943 alloc_migrate_huge_page(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask) alloc_migrate_huge_page() argument
1985 alloc_huge_page_nodemask(struct hstate *h, int preferred_nid, nodemask_t *nmask, gfp_t gfp_mask) alloc_huge_page_nodemask() argument
[all...]
H A Dinternal.h775 nodemask_t *nmask; member
/kernel/linux/linux-6.6/mm/
H A Dmempolicy.c429 nodemask_t *nmask; member
437 * Check if the folio's nid is in qp->nmask.
440 * in the invert of qp->nmask.
448 return node_isset(nid, *qp->nmask) == !(flags & MPOL_MF_INVERT); in queue_folio_required()
755 .nmask = nodes, in queue_pages_range()
938 static long do_get_mempolicy(int *policy, nodemask_t *nmask, in do_get_mempolicy() argument
955 *nmask = cpuset_current_mems_allowed; in do_get_mempolicy()
1015 if (nmask) { in do_get_mempolicy()
1017 *nmask = pol->w.user_nodemask; in do_get_mempolicy()
1020 get_policy_nodemask(pol, nmask); in do_get_mempolicy()
1074 nodemask_t nmask; migrate_to_node() local
1265 do_mbind(unsigned long start, unsigned long len, unsigned short mode, unsigned short mode_flags, nodemask_t *nmask, unsigned long flags) do_mbind() argument
1383 get_bitmap(unsigned long *mask, const unsigned long __user *nmask, unsigned long maxnode) get_bitmap() argument
1407 get_nodes(nodemask_t *nodes, const unsigned long __user *nmask, unsigned long maxnode) get_nodes() argument
1487 kernel_mbind(unsigned long start, unsigned long len, unsigned long mode, const unsigned long __user *nmask, unsigned long maxnode, unsigned int flags) kernel_mbind() argument
1583 kernel_set_mempolicy(int mode, const unsigned long __user *nmask, unsigned long maxnode) kernel_set_mempolicy() argument
1705 kernel_get_mempolicy(int __user *policy, unsigned long __user *nmask, unsigned long maxnode, unsigned long addr, unsigned long flags) kernel_get_mempolicy() argument
2191 nodemask_t *nmask; vma_alloc_folio() local
[all...]
H A Dmemory-tiers.c138 nodemask_t nmask; in nodelist_show() local
141 nmask = get_memtier_nodemask(to_memory_tier(dev)); in nodelist_show()
142 ret = sysfs_emit(buf, "%*pbl\n", nodemask_pr_args(&nmask)); in nodelist_show()
H A Dmemory_hotplug.c1772 nodemask_t nmask = node_states[N_MEMORY]; in do_migrate_range() local
1774 .nmask = &nmask, in do_migrate_range()
1790 node_clear(mtc.nid, nmask); in do_migrate_range()
1791 if (nodes_empty(nmask)) in do_migrate_range()
1792 node_set(mtc.nid, nmask); in do_migrate_range()
H A Dhugetlb.c1356 int nid, nodemask_t *nmask) in dequeue_hugetlb_folio_nodemask()
1368 for_each_zone_zonelist_nodemask(zone, z, zonelist, gfp_zone(gfp_mask), nmask) { in dequeue_hugetlb_folio_nodemask()
2128 gfp_t gfp_mask, int nid, nodemask_t *nmask, in alloc_buddy_hugetlb_folio()
2151 page = __alloc_pages(gfp_mask, order, nid, nmask); in alloc_buddy_hugetlb_folio()
2198 gfp_t gfp_mask, int nid, nodemask_t *nmask, in alloc_fresh_hugetlb_folio()
2206 folio = alloc_gigantic_folio(h, gfp_mask, nid, nmask); in alloc_fresh_hugetlb_folio()
2209 nid, nmask, node_alloc_noretry); in alloc_fresh_hugetlb_folio()
2408 gfp_t gfp_mask, int nid, nodemask_t *nmask) in alloc_surplus_hugetlb_folio()
2420 folio = alloc_fresh_hugetlb_folio(h, gfp_mask, nid, nmask, NULL); in alloc_surplus_hugetlb_folio()
2449 int nid, nodemask_t *nmask) in alloc_migrate_hugetlb_folio()
1355 dequeue_hugetlb_folio_nodemask(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask) dequeue_hugetlb_folio_nodemask() argument
2127 alloc_buddy_hugetlb_folio(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask, nodemask_t *node_alloc_noretry) alloc_buddy_hugetlb_folio() argument
2197 alloc_fresh_hugetlb_folio(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask, nodemask_t *node_alloc_noretry) alloc_fresh_hugetlb_folio() argument
2407 alloc_surplus_hugetlb_folio(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask) alloc_surplus_hugetlb_folio() argument
2448 alloc_migrate_hugetlb_folio(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask) alloc_migrate_hugetlb_folio() argument
2502 alloc_hugetlb_folio_nodemask(struct hstate *h, int preferred_nid, nodemask_t *nmask, gfp_t gfp_mask) alloc_hugetlb_folio_nodemask() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/include/
H A Dnumaif.h20 long get_mempolicy(int *policy, const unsigned long *nmask, in get_mempolicy() argument
23 return syscall(__NR_get_mempolicy, policy, nmask, in get_mempolicy()
/kernel/linux/linux-6.6/drivers/clk/
H A Dclk-fractional-divider.c74 u32 mmask, nmask; in clk_fd_get_div() local
90 nmask = GENMASK(fd->nwidth - 1, 0) << fd->nshift; in clk_fd_get_div()
93 n = (val & nmask) >> fd->nshift; in clk_fd_get_div()
173 u32 mmask, nmask; in clk_fd_set_rate() local
191 nmask = GENMASK(fd->nwidth - 1, 0) << fd->nshift; in clk_fd_set_rate()
194 val &= ~(mmask | nmask); in clk_fd_set_rate()
/kernel/linux/linux-5.10/drivers/ntb/test/
H A Dntb_pingpong.c105 u64 nmask; member
124 if (link & pp->nmask) in pp_find_next_peer()
125 pidx = __ffs64(link & pp->nmask); in pp_find_next_peer()
307 pp->nmask = GENMASK_ULL(pcnt - 1, pidx); in pp_init_flds()
310 pp->in_db, pp->pmask, pp->nmask); in pp_init_flds()
/kernel/linux/linux-6.6/drivers/ntb/test/
H A Dntb_pingpong.c105 u64 nmask; member
124 if (link & pp->nmask) in pp_find_next_peer()
125 pidx = __ffs64(link & pp->nmask); in pp_find_next_peer()
307 pp->nmask = GENMASK_ULL(pcnt - 1, pidx); in pp_init_flds()
310 pp->in_db, pp->pmask, pp->nmask); in pp_init_flds()
/kernel/linux/linux-5.10/drivers/clk/
H A Dclk-fractional-divider.c55 n = (val & fd->nmask) >> fd->nshift; in clk_fd_recalc_rate()
136 val &= ~(fd->mmask | fd->nmask); in clk_fd_set_rate()
181 fd->nmask = GENMASK(nwidth - 1, 0) << nshift; in clk_hw_register_fractional_divider()
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_debugfs.c92 u8 nvalue[16], nmask[16]; in vcap_debugfs_show_rule_keyfield() local
96 vcap_netbytes_copy(nmask, data->u128.mask, in vcap_debugfs_show_rule_keyfield()
97 sizeof(nmask)); in vcap_debugfs_show_rule_keyfield()
98 out->prf(out->dst, "%pI6/%pI6", nvalue, nmask); in vcap_debugfs_show_rule_keyfield()
/kernel/linux/linux-5.10/drivers/clk/imx/
H A Dclk-composite-7ulp.c60 fd->nmask = PCG_PCD_MASK; in imx7ulp_clk_hw_composite()
/kernel/linux/linux-5.10/drivers/scsi/cxlflash/
H A Dvlun.c1039 rhte->nmask = MC_RHT_NMASK; in cxlflash_disk_virtual_open()
1241 if (ctxi_dst->rht_start[i].nmask != 0) { in cxlflash_disk_clone()
1292 if (ctxi_src->rht_start[i].nmask == 0) in cxlflash_disk_clone()
1297 ctxi_dst->rht_start[i].nmask = ctxi_src->rht_start[i].nmask; in cxlflash_disk_clone()
H A Dsislite.h513 u8 nmask; member
H A Dsuperpipe.c461 if (unlikely(rhte->nmask == 0)) { in get_rhte()
489 if (ctxi->rht_start[i].nmask == 0) { in rhte_checkout()
512 rhte->nmask = 0; in rhte_checkin()
/kernel/linux/linux-6.6/drivers/scsi/cxlflash/
H A Dvlun.c1039 rhte->nmask = MC_RHT_NMASK; in cxlflash_disk_virtual_open()
1241 if (ctxi_dst->rht_start[i].nmask != 0) { in cxlflash_disk_clone()
1292 if (ctxi_src->rht_start[i].nmask == 0) in cxlflash_disk_clone()
1297 ctxi_dst->rht_start[i].nmask = ctxi_src->rht_start[i].nmask; in cxlflash_disk_clone()
H A Dsislite.h513 u8 nmask; member
/kernel/linux/linux-5.10/include/linux/
H A Dcompat.h740 compat_ulong_t __user *nmask,
743 compat_ulong_t __user *nmask,
747 asmlinkage long compat_sys_set_mempolicy(int mode, compat_ulong_t __user *nmask,
H A Dhugetlb.h512 nodemask_t *nmask, gfp_t gfp_mask);
785 nodemask_t *nmask, gfp_t gfp_mask) in alloc_huge_page_nodemask()
784 alloc_huge_page_nodemask(struct hstate *h, int preferred_nid, nodemask_t *nmask, gfp_t gfp_mask) alloc_huge_page_nodemask() argument
/kernel/linux/linux-6.6/include/linux/
H A Dhugetlb.h750 nodemask_t *nmask, gfp_t gfp_mask);
1058 nodemask_t *nmask, gfp_t gfp_mask)
/kernel/linux/linux-5.10/net/sched/
H A Dsch_api.c679 unsigned int nsize, nmask, osize; in qdisc_class_hash_grow() local
686 nmask = nsize - 1; in qdisc_class_hash_grow()
697 h = qdisc_class_hash(cl->classid, nmask); in qdisc_class_hash_grow()
703 clhash->hashmask = nmask; in qdisc_class_hash_grow()
/kernel/linux/linux-6.6/net/sched/
H A Dsch_api.c690 unsigned int nsize, nmask, osize; in qdisc_class_hash_grow() local
697 nmask = nsize - 1; in qdisc_class_hash_grow()
708 h = qdisc_class_hash(cl->classid, nmask); in qdisc_class_hash_grow()
714 clhash->hashmask = nmask; in qdisc_class_hash_grow()

Completed in 45 milliseconds

12