Lines Matching refs:gdcd

1030 	gdcd_t *gdcd;  in drmach_gdcd_new()  local
1032 gdcd = kmem_zalloc(sizeof (gdcd_t), KM_SLEEP); in drmach_gdcd_new()
1035 if (iosram_rd(GDCD_MAGIC, 0, sizeof (gdcd_t), (caddr_t)gdcd)) { in drmach_gdcd_new()
1037 kmem_free(gdcd, sizeof (gdcd_t)); in drmach_gdcd_new()
1039 } else if (gdcd->h.dcd_magic != GDCD_MAGIC) { in drmach_gdcd_new()
1041 } else if (gdcd->h.dcd_version != DCD_VERSION) { in drmach_gdcd_new()
1045 return (gdcd); in drmach_gdcd_new()
1049 drmach_gdcd_dispose(gdcd_t *gdcd) in drmach_gdcd_dispose() argument
1051 kmem_free(gdcd, sizeof (gdcd_t)); in drmach_gdcd_dispose()
2639 gdcd_t *gdcd; in drmach_init() local
2650 gdcd = drmach_gdcd_new(); in drmach_init()
2651 if (gdcd == NULL) { in drmach_init()
2685 drmach_gdcd_dispose(gdcd); in drmach_init()
2699 dcd = &gdcd->dcd_slot[exp][slot]; in drmach_init()
2705 if (gdcd->dcd_slot[exp][slot].l1ss_flags & in drmach_init()
2715 if (gdcd->dcd_testcage_log2_mbytes_size != DCD_DR_TESTCAGE_DISABLED) { in drmach_init()
2716 ASSERT(gdcd->dcd_testcage_log2_mbytes_size == in drmach_init()
2717 gdcd->dcd_testcage_log2_mbytes_align); in drmach_init()
2719 (uint64_t)gdcd->dcd_testcage_mbyte_PA << 20; in drmach_init()
2721 1 << (gdcd->dcd_testcage_log2_mbytes_size + 20); in drmach_init()
2731 gdcd->dcd_testcage_log2_mbytes_size, in drmach_init()
2732 gdcd->dcd_testcage_log2_mbytes_align, in drmach_init()
2733 gdcd->dcd_testcage_mbyte_PA); in drmach_init()
2743 drmach_gdcd_dispose(gdcd); in drmach_init()
2749 drmach_gdcd_dispose(gdcd); in drmach_init()
3962 drmach_board_non_panther_cpus(gdcd_t *gdcd, uint_t exp, uint_t slot) in drmach_board_non_panther_cpus() argument
3968 ASSERT(gdcd != NULL); in drmach_board_non_panther_cpus()
3991 if (gdcd->dcd_prd[exp][port].prd_ptype == SAFPTYPE_CPU && in drmach_board_non_panther_cpus()
3992 RSV_GOOD(gdcd->dcd_prd[exp][port].prd_prsv)) { in drmach_board_non_panther_cpus()
3997 impl = (gdcd->dcd_prd[exp][port].prd_ver_reg >> 32) in drmach_board_non_panther_cpus()
4030 gdcd_t *gdcd = NULL; in drmach_board_connect() local
4062 gdcd = drmach_gdcd_new(); in drmach_board_connect()
4063 if (gdcd == NULL) { in drmach_board_connect()
4075 gdcd->dcd_slot[exp][slot].l1ss_cpu_drblock_xwd_offset << 3; in drmach_board_connect()
4083 if (gdcd->dcd_slot[exp][slot].l1ss_flags & in drmach_board_connect()
4095 if (drmach_board_non_panther_cpus(gdcd, exp, slot) > 0 && in drmach_board_connect()
4149 if (gdcd != NULL) in drmach_board_connect()
4150 drmach_gdcd_dispose(gdcd); in drmach_board_connect()
6204 gdcd_t *gdcd; in drmach_mem_init_size() local
6219 gdcd = drmach_gdcd_new(); in drmach_mem_init_size()
6220 if (gdcd == NULL) in drmach_mem_init_size()
6224 chunk = gdcd->dcd_chunk_list.dcl_chunk; in drmach_mem_init_size()
6225 chunks = gdcd->dcd_chunk_list.dcl_chunks; in drmach_mem_init_size()
6235 drmach_gdcd_dispose(gdcd); in drmach_mem_init_size()
6623 gdcd_t *gdcd; in drmach_mem_get_memlist() local
6631 gdcd = drmach_gdcd_new(); in drmach_mem_get_memlist()
6632 if (gdcd == NULL) in drmach_mem_get_memlist()
6639 chunk = gdcd->dcd_chunk_list.dcl_chunk; in drmach_mem_get_memlist()
6640 chunks = gdcd->dcd_chunk_list.dcl_chunks; in drmach_mem_get_memlist()
6650 drmach_gdcd_dispose(gdcd); in drmach_mem_get_memlist()