Lines Matching full:gre

577 	struct uv_gam_range_entry *gre = uv_gre_table;  in build_uv_gr_table()  local
582 if (!gre) in build_uv_gr_table()
591 for (; gre->type != UV_GAM_RANGE_TYPE_UNUSED; gre++) { in build_uv_gr_table()
592 if (gre->type == UV_GAM_RANGE_TYPE_HOLE) { in build_uv_gr_table()
596 last_limit = gre->limit; in build_uv_gr_table()
600 last_limit = gre->limit; in build_uv_gr_table()
601 pr_info("UV: extra hole in GAM RE table @%d\n", (int)(gre - uv_gre_table)); in build_uv_gr_table()
604 if (_max_socket < gre->sockid) { in build_uv_gr_table()
605 …pr_err("UV: GAM table sockid(%d) too large(>%d) @%d\n", gre->sockid, _max_socket, (int)(gre - uv_g… in build_uv_gr_table()
608 sid = gre->sockid - _min_socket; in build_uv_gr_table()
613 grt->nasid = gre->nasid; in build_uv_gr_table()
614 grt->limit = last_limit = gre->limit; in build_uv_gr_table()
623 grt->limit = last_limit = gre->limit; in build_uv_gr_table()
631 grt->nasid = gre->nasid; in build_uv_gr_table()
632 grt->limit = last_limit = gre->limit; in build_uv_gr_table()
639 grt->nasid = gre->nasid; in build_uv_gr_table()
640 grt->limit = last_limit = gre->limit; in build_uv_gr_table()
1261 struct uv_gam_range_entry *gre = (struct uv_gam_range_entry *)ptr; in decode_gam_rng_tbl() local
1267 uv_gre_table = gre; in decode_gam_rng_tbl()
1268 for (; gre->type != UV_GAM_RANGE_TYPE_UNUSED; gre++) { in decode_gam_rng_tbl()
1269 unsigned long size = ((unsigned long)(gre->limit - lgre) in decode_gam_rng_tbl()
1281 if (gre->type == 1 || gre->type == 2) in decode_gam_rng_tbl()
1292 (unsigned long)gre->limit << UV_GAM_RANGE_SHFT, in decode_gam_rng_tbl()
1294 gre->type, gre->nasid, gre->sockid, gre->pnode); in decode_gam_rng_tbl()
1296 if (gre->type == UV_GAM_RANGE_TYPE_HOLE) in decode_gam_rng_tbl()
1297 gend = (unsigned long)gre->limit << UV_GAM_RANGE_SHFT; in decode_gam_rng_tbl()
1300 lgre = gre->limit; in decode_gam_rng_tbl()
1301 if (sock_min > gre->sockid) in decode_gam_rng_tbl()
1302 sock_min = gre->sockid; in decode_gam_rng_tbl()
1303 if (sock_max < gre->sockid) in decode_gam_rng_tbl()
1304 sock_max = gre->sockid; in decode_gam_rng_tbl()
1305 if (pnode_min > gre->pnode) in decode_gam_rng_tbl()
1306 pnode_min = gre->pnode; in decode_gam_rng_tbl()
1307 if (pnode_max < gre->pnode) in decode_gam_rng_tbl()
1308 pnode_max = gre->pnode; in decode_gam_rng_tbl()
1482 struct uv_gam_range_entry *gre = uv_gre_table; in build_socket_tables() local
1490 if (!gre) { in build_socket_tables()
1496 WARN_ON_ONCE(!gre); in build_socket_tables()
1516 for (; gre->type != UV_GAM_RANGE_TYPE_UNUSED; gre++) { in build_socket_tables()
1517 if (gre->type == UV_GAM_RANGE_TYPE_HOLE) in build_socket_tables()
1519 i = gre->sockid - minsock; in build_socket_tables()
1521 _socket_to_pnode[i] = gre->pnode; in build_socket_tables()
1523 i = gre->pnode - minpnode; in build_socket_tables()
1525 _pnode_to_socket[i] = gre->sockid; in build_socket_tables()
1528 gre->sockid, gre->type, gre->nasid, in build_socket_tables()
1529 _socket_to_pnode[gre->sockid - minsock], in build_socket_tables()
1530 _pnode_to_socket[gre->pnode - minpnode]); in build_socket_tables()