Home
last modified time | relevance | path

Searched refs:nid (Results 1 – 25 of 62) sorted by relevance

123

/drivers/base/
Dnode.c58 int nid = dev->id; in node_read_meminfo() local
61 si_meminfo_node(&i, nid); in node_read_meminfo()
74 nid, K(i.totalram), in node_read_meminfo()
75 nid, K(i.freeram), in node_read_meminfo()
76 nid, K(i.totalram - i.freeram), in node_read_meminfo()
77 nid, K(node_page_state(nid, NR_ACTIVE_ANON) + in node_read_meminfo()
78 node_page_state(nid, NR_ACTIVE_FILE)), in node_read_meminfo()
79 nid, K(node_page_state(nid, NR_INACTIVE_ANON) + in node_read_meminfo()
80 node_page_state(nid, NR_INACTIVE_FILE)), in node_read_meminfo()
81 nid, K(node_page_state(nid, NR_ACTIVE_ANON)), in node_read_meminfo()
[all …]
/drivers/char/
Dmspec.c115 int nid; in mspec_zero_block() local
119 nid = nasid_to_cnodeid(get_node_number(__pa(addr))); in mspec_zero_block()
120 p = (void *)TO_AMO(scratch_page[nid]); in mspec_zero_block()
360 int nid; in mspec_init() local
371 for_each_node_state(nid, N_ONLINE) { in mspec_init()
376 scratch_page[nid] = uncached_alloc_page(nid, 1); in mspec_init()
377 if (scratch_page[nid] == 0) in mspec_init()
379 phys = __pa(scratch_page[nid]); in mspec_init()
382 if (actual_nid != nid) in mspec_init()
421 for_each_node(nid) { in mspec_init()
[all …]
/drivers/staging/lustre/lustre/obdclass/
Dlustre_peer.c97 int class_add_uuid(const char *uuid, __u64 nid) in class_add_uuid() argument
102 LASSERT(nid != 0); /* valid newconfig NID is never zero */ in class_add_uuid()
112 data->un_nids[0] = nid; in class_add_uuid()
122 if (nid == entry->un_nids[i]) in class_add_uuid()
127 entry->un_nids[entry->un_nid_count++] = nid; in class_add_uuid()
138 libcfs_nid2str(nid), entry->un_nid_count); in class_add_uuid()
141 CDEBUG(D_INFO, "add uuid %s %s\n", uuid, libcfs_nid2str(nid)); in class_add_uuid()
190 int class_check_uuid(struct obd_uuid *uuid, __u64 nid) in class_check_uuid() argument
196 obd_uuid2str(uuid), libcfs_nid2str(nid)); in class_check_uuid()
207 if (entry->un_nids[i] == nid) { in class_check_uuid()
Dobd_mount.c145 static int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd, in do_lcfg() argument
166 lcfg->lcfg_nid = nid; in do_lcfg()
211 lnet_nid_t nid; in lustre_start_mgc() local
221 if (class_parse_nid(ptr, &nid, &ptr) == 0) in lustre_start_mgc()
230 libcfs_nid2str_r(nid, nidstr, sizeof(nidstr)); in lustre_start_mgc()
306 while (class_parse_nid(ptr, &nid, &ptr) == 0) { in lustre_start_mgc()
307 rc = do_lcfg(mgcname, nid, in lustre_start_mgc()
346 while (class_parse_nid_quiet(ptr, &nid, &ptr) == 0) { in lustre_start_mgc()
348 rc = do_lcfg(mgcname, nid, in lustre_start_mgc()
835 lnet_nid_t nid; in lmd_parse_mgs() local
[all …]
/drivers/staging/lustre/lnet/lnet/
Dpeer.c187 lnet_find_peer_locked(struct lnet_peer_table *ptable, lnet_nid_t nid) in lnet_find_peer_locked() argument
194 peers = &ptable->pt_hash[lnet_nid2peerhash(nid)]; in lnet_find_peer_locked()
196 if (lp->lp_nid == nid) { in lnet_find_peer_locked()
206 lnet_nid2peer_locked(lnet_peer_t **lpp, lnet_nid_t nid, int cpt) in lnet_nid2peer_locked() argument
219 cpt2 = cpt != LNET_LOCK_EX ? cpt : lnet_cpt_of_nid_locked(nid); in lnet_nid2peer_locked()
222 lp = lnet_find_peer_locked(ptable, nid); in lnet_nid2peer_locked()
266 lp->lp_nid = nid; in lnet_nid2peer_locked()
278 lp2 = lnet_find_peer_locked(ptable, nid); in lnet_nid2peer_locked()
284 lp->lp_ni = lnet_net2ni_locked(LNET_NIDNET(nid), cpt2); in lnet_nid2peer_locked()
296 &ptable->pt_hash[lnet_nid2peerhash(nid)]); in lnet_nid2peer_locked()
[all …]
Dapi-ni.c686 lnet_nid_cpt_hash(lnet_nid_t nid, unsigned int number) in lnet_nid_cpt_hash() argument
688 __u64 key = nid; in lnet_nid_cpt_hash()
705 lnet_cpt_of_nid_locked(lnet_nid_t nid) in lnet_cpt_of_nid_locked() argument
716 if (LNET_NIDNET(ni->ni_nid) != LNET_NIDNET(nid)) in lnet_cpt_of_nid_locked()
721 (nid, ni->ni_ncpts)]; in lnet_cpt_of_nid_locked()
725 return lnet_nid_cpt_hash(nid, LNET_CPT_NUMBER); in lnet_cpt_of_nid_locked()
729 lnet_cpt_of_nid(lnet_nid_t nid) in lnet_cpt_of_nid() argument
738 return lnet_nid_cpt_hash(nid, LNET_CPT_NUMBER); in lnet_cpt_of_nid()
741 cpt2 = lnet_cpt_of_nid_locked(nid); in lnet_cpt_of_nid()
766 lnet_nid2ni_locked(lnet_nid_t nid, int cpt) in lnet_nid2ni_locked() argument
[all …]
Drouter.c641 lnet_nid_t nid = stat->ns_nid; in lnet_parse_rc_info() local
643 if (nid == LNET_NID_ANY) { in lnet_parse_rc_info()
650 if (LNET_NETTYP(LNET_NIDNET(nid)) == LOLND) in lnet_parse_rc_info()
654 if (LNET_NETTYP(LNET_NIDNET(nid)) != PTLLND) in lnet_parse_rc_info()
662 if (LNET_NIDNET(nid) == rtr->lr_net) { in lnet_parse_rc_info()
668 if (LNET_NETTYP(LNET_NIDNET(nid)) == PTLLND) in lnet_parse_rc_info()
974 id.nid = rtr->lp_nid; in lnet_ping_router_locked()
1493 lnet_notify(lnet_ni_t *ni, lnet_nid_t nid, int alive, unsigned long when) in lnet_notify() argument
1497 int cpt = lnet_cpt_of_nid(nid); in lnet_notify()
1503 libcfs_nid2str(nid), in lnet_notify()
[all …]
Dlib-move.c50 lnet_fail_nid(lnet_nid_t nid, unsigned int threshold) in lnet_fail_nid() argument
66 tp->tp_nid = nid; in lnet_fail_nid()
84 nid == LNET_NID_ANY || /* removing all entries */ in lnet_fail_nid()
85 tp->tp_nid == nid) { /* matched this one */ in lnet_fail_nid()
103 fail_peer(lnet_nid_t nid, int outgoing) in fail_peer() argument
132 nid == tp->tp_nid) { /* fail this peer */ in fail_peer()
634 msg->msg_hdr.dest_nid = cpu_to_le64(target.nid); in lnet_prep_send()
1182 lnet_nid_t dst_nid = msg->msg_target.nid; in lnet_send()
1326 msg->msg_target.nid = lp->lp_nid; in lnet_send()
1392 info.mi_id.nid = hdr->src_nid; in lnet_parse_put()
[all …]
Dnidstrings.c367 int cfs_match_nid(lnet_nid_t nid, struct list_head *nidlist) in cfs_match_nid() argument
373 if (nr->nr_netstrfns->nf_type != LNET_NETTYP(LNET_NIDNET(nid))) in cfs_match_nid()
375 if (nr->nr_netnum != LNET_NETNUM(LNET_NIDNET(nid))) in cfs_match_nid()
380 if (nr->nr_netstrfns->nf_match_addr(LNET_NIDADDR(nid), in cfs_match_nid()
1123 libcfs_nid2str_r(lnet_nid_t nid, char *buf, size_t buf_size) in libcfs_nid2str_r() argument
1125 __u32 addr = LNET_NIDADDR(nid); in libcfs_nid2str_r()
1126 __u32 net = LNET_NIDNET(nid); in libcfs_nid2str_r()
1131 if (nid == LNET_NID_ANY) { in libcfs_nid2str_r()
1238 "LNET_PID_ANY-%s", libcfs_nid2str(id.nid)); in libcfs_id2str()
1244 (id.pid & ~LNET_PID_USERFLAG), libcfs_nid2str(id.nid)); in libcfs_id2str()
Dconfig.c638 lnet_nid_t nid; in lnet_parse_route() local
721 nid = libcfs_str2nid(ltb->ltb_text); in lnet_parse_route()
722 if (nid == LNET_NID_ANY || in lnet_parse_route()
723 LNET_NETTYP(LNET_NIDNET(nid)) == LOLND) in lnet_parse_route()
743 nid = libcfs_str2nid(ltb->ltb_text); in lnet_parse_route()
744 LASSERT(nid != LNET_NID_ANY); in lnet_parse_route()
746 if (lnet_islocalnid(nid)) { in lnet_parse_route()
751 rc = lnet_add_route(net, hops, nid, priority); in lnet_parse_route()
755 libcfs_nid2str(nid)); in lnet_parse_route()
Dlib-ptl.c54 match_id.nid != LNET_NID_ANY && in lnet_ptl_match_type()
157 if (me->me_match_id.nid != LNET_NID_ANY && in lnet_try_match_md()
158 me->me_match_id.nid != info->mi_id.nid) in lnet_try_match_md()
223 ptl->ptl_mtables[lnet_cpt_of_nid(id.nid)] : NULL; in lnet_match2mt()
364 unsigned long hash = mbits + id.nid + id.pid; in lnet_mt_match_head()
657 info.mi_id.nid = hdr->src_nid; in lnet_ptl_attach_md()
Drouter_proc.c242 lnet_nid_t nid = route->lr_gateway->lp_nid; in proc_lnet_routes() local
250 libcfs_nid2str(nid)); in proc_lnet_routes()
345 lnet_nid_t nid = peer->lp_nid; in proc_lnet_routers() local
377 libcfs_nid2str(nid)); in proc_lnet_routers()
385 down_ni, libcfs_nid2str(nid)); in proc_lnet_routers()
509 lnet_nid_t nid = peer->lp_nid; in proc_lnet_peers() local
543 libcfs_nid2str(nid), nrefs, aliveness, in proc_lnet_peers()
/drivers/staging/lustre/include/linux/lnet/
Dnidstr.h77 char *libcfs_nid2str_r(lnet_nid_t nid, char *buf, size_t buf_size);
78 static inline char *libcfs_nid2str(lnet_nid_t nid) in libcfs_nid2str() argument
80 return libcfs_nid2str_r(nid, libcfs_next_nidstring(), in libcfs_nid2str()
85 int libcfs_str2anynid(lnet_nid_t *nid, const char *str);
90 int cfs_match_nid(lnet_nid_t nid, struct list_head *list);
Dtypes.h80 static inline __u32 LNET_NIDADDR(lnet_nid_t nid) in LNET_NIDADDR() argument
82 return nid & 0xffffffff; in LNET_NIDADDR()
85 static inline __u32 LNET_NIDNET(lnet_nid_t nid) in LNET_NIDNET() argument
87 return (nid >> 32) & 0xffffffff; in LNET_NIDNET()
115 lnet_nid_t nid; member
314 lnet_nid_t nid; member
Dlib-lnet.h411 lnet_nid2peerhash(lnet_nid_t nid) in lnet_nid2peerhash() argument
413 return hash_long(nid, LNET_PEER_HASH_BITS); in lnet_nid2peerhash()
427 int lnet_cpt_of_nid_locked(lnet_nid_t nid);
428 int lnet_cpt_of_nid(lnet_nid_t nid);
429 lnet_ni_t *lnet_nid2ni_locked(lnet_nid_t nid, int cpt);
452 int lnet_islocalnid(lnet_nid_t nid);
466 int lnet_send(lnet_nid_t nid, lnet_msg_t *msg, lnet_nid_t rtr_nid);
542 int lnet_fail_nid(lnet_nid_t nid, unsigned int threshold);
672 int lnet_nid2peer_locked(lnet_peer_t **lpp, lnet_nid_t nid, int cpt);
674 lnet_nid_t nid);
[all …]
/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd.c108 LASSERT(id.nid != LNET_NID_ANY); in ksocknal_create_peer()
178 struct list_head *peer_list = ksocknal_nid2peerlist(id.nid); in ksocknal_find_peer_locked()
191 if (peer->ksnp_id.nid != id.nid || in ksocknal_find_peer_locked()
457 if (id.nid == LNET_NID_ANY || in ksocknal_add_peer()
484 ksocknal_nid2peerlist(id.nid)); in ksocknal_add_peer()
578 if (id.nid != LNET_NID_ANY) in ksocknal_del_peer()
579 lo = hi = (int)(ksocknal_nid2peerlist(id.nid) - ksocknal_data.ksnd_peers); in ksocknal_del_peer()
593 if (!((id.nid == LNET_NID_ANY || peer->ksnp_id.nid == id.nid) && in ksocknal_del_peer()
1097 rc = ksocknal_send_hello(ni, conn, peerid.nid, hello); in ksocknal_create_conn()
1101 peerid.nid = LNET_NID_ANY; in ksocknal_create_conn()
[all …]
/drivers/edac/
Damd64_edac.c271 static bool base_limit_match(struct amd64_pvt *pvt, u64 sys_addr, u8 nid) in base_limit_match() argument
283 return ((addr >= get_dram_base(pvt, nid)) && in base_limit_match()
284 (addr <= get_dram_limit(pvt, nid))); in base_limit_match()
1526 static int f1x_lookup_addr_in_dct(u64 in_addr, u8 nid, u8 dct) in f1x_lookup_addr_in_dct() argument
1534 mci = edac_mc_find(nid); in f1x_lookup_addr_in_dct()
2490 static void get_cpus_on_this_dct_cpumask(struct cpumask *mask, u16 nid) in get_cpus_on_this_dct_cpumask() argument
2495 if (amd_get_nb_id(cpu) == nid) in get_cpus_on_this_dct_cpumask()
2500 static bool nb_mce_bank_enabled_on_node(u16 nid) in nb_mce_bank_enabled_on_node() argument
2511 get_cpus_on_this_dct_cpumask(mask, nid); in nb_mce_bank_enabled_on_node()
2533 static int toggle_ecc_err_reporting(struct ecc_settings *s, u16 nid, bool on) in toggle_ecc_err_reporting() argument
[all …]
/drivers/staging/lustre/lustre/ptlrpc/
Dconnection.c85 libcfs_nid2str(conn->c_peer.nid)); in ptlrpc_connection_get()
120 libcfs_nid2str(conn->c_peer.nid)); in ptlrpc_connection_put()
132 libcfs_nid2str(conn->c_peer.nid)); in ptlrpc_connection_addref()
179 return conn_key->nid == conn->c_peer.nid && in conn_keycmp()
Dsec_config.c380 lnet_nid_t nid, in sptlrpc_rule_set_choose() argument
389 if (LNET_NIDNET(nid) != LNET_NIDNET(LNET_NID_ANY) && in sptlrpc_rule_set_choose()
391 LNET_NIDNET(nid) != r->sr_netid) in sptlrpc_rule_set_choose()
762 lnet_nid_t nid, in sptlrpc_conf_choose_flavor() argument
787 from, to, nid, sf); in sptlrpc_conf_choose_flavor()
792 rc = sptlrpc_rule_set_choose(&conf->sc_rset, from, to, nid, sf); in sptlrpc_conf_choose_flavor()
/drivers/media/platform/sti/bdisp/
Dbdisp-hw.c700 unsigned int i, nid = 0; in bdisp_hw_build_all_nodes() local
716 bdisp_hw_build_node(ctx, &cfg, ctx->node[nid], in bdisp_hw_build_all_nodes()
719 if (nid) in bdisp_hw_build_all_nodes()
720 ctx->node[nid - 1]->nip = ctx->node_paddr[nid]; in bdisp_hw_build_all_nodes()
721 nid++; in bdisp_hw_build_all_nodes()
725 bdisp_hw_build_node(ctx, &cfg, ctx->node[nid], in bdisp_hw_build_all_nodes()
727 ctx->node[nid - 1]->nip = ctx->node_paddr[nid]; in bdisp_hw_build_all_nodes()
728 nid++; in bdisp_hw_build_all_nodes()
738 ctx->node[nid - 1]->nip = 0; in bdisp_hw_build_all_nodes()
/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd_cb.c1296 kiblnd_launch_tx(lnet_ni_t *ni, kib_tx_t *tx, lnet_nid_t nid) in kiblnd_launch_tx() argument
1315 peer = kiblnd_find_peer_locked(nid); in kiblnd_launch_tx()
1333 peer = kiblnd_find_peer_locked(nid); in kiblnd_launch_tx()
1359 rc = kiblnd_create_peer(ni, &peer, nid); in kiblnd_launch_tx()
1361 CERROR("Can't create peer %s\n", libcfs_nid2str(nid)); in kiblnd_launch_tx()
1372 peer2 = kiblnd_find_peer_locked(nid); in kiblnd_launch_tx()
1408 list_add_tail(&peer->ibp_list, kiblnd_nid2peerlist(nid)); in kiblnd_launch_tx()
1466 tx = kiblnd_get_idle_tx(ni, target.nid); in kiblnd_send()
1469 libcfs_nid2str(target.nid)); in kiblnd_send()
1487 libcfs_nid2str(target.nid), rc); in kiblnd_send()
[all …]
Do2iblnd.c322 int kiblnd_create_peer(lnet_ni_t *ni, kib_peer_t **peerp, lnet_nid_t nid) in kiblnd_create_peer() argument
326 int cpt = lnet_cpt_of_nid(nid); in kiblnd_create_peer()
330 LASSERT(nid != LNET_NID_ANY); in kiblnd_create_peer()
341 peer->ibp_nid = nid; in kiblnd_create_peer()
385 kib_peer_t *kiblnd_find_peer_locked(lnet_nid_t nid) in kiblnd_find_peer_locked() argument
389 struct list_head *peer_list = kiblnd_nid2peerlist(nid); in kiblnd_find_peer_locked()
401 if (peer->ibp_nid != nid) in kiblnd_find_peer_locked()
405 peer, libcfs_nid2str(nid), in kiblnd_find_peer_locked()
481 static int kiblnd_del_peer(lnet_ni_t *ni, lnet_nid_t nid) in kiblnd_del_peer() argument
495 if (nid != LNET_NID_ANY) { in kiblnd_del_peer()
[all …]
/drivers/staging/lustre/lustre/include/
Dlustre_param.h59 int class_parse_nid(char *buf, lnet_nid_t *nid, char **endh);
60 int class_parse_nid_quiet(char *buf, lnet_nid_t *nid, char **endh);
/drivers/acpi/
Dacpi_memhotplug.c275 int nid = acpi_get_node(handle); in acpi_memory_remove_memory() local
281 if (nid == NUMA_NO_NODE) in acpi_memory_remove_memory()
282 nid = memory_add_physaddr_to_nid(info->start_addr); in acpi_memory_remove_memory()
285 remove_memory(nid, info->start_addr, info->length); in acpi_memory_remove_memory()
/drivers/char/agp/
Dsgi-agp.c44 int nid; in sgi_tioca_alloc_page() local
48 nid = info->ca_closest_node; in sgi_tioca_alloc_page()
49 page = alloc_pages_node(nid, GFP_KERNEL, 0); in sgi_tioca_alloc_page()

123