Home
last modified time | relevance | path

Searched refs:gdcd (Results 1 – 4 of 4) sorted by relevance

/titanic_41/usr/src/uts/sun4u/starcat/io/
H A Dsc_gptwocfg.c143 gdcd_t *gdcd; in sc_get_common_pcd() local
152 gdcd = (gdcd_t *)kmem_zalloc(sizeof (gdcd_t), KM_SLEEP); in sc_get_common_pcd()
158 if (iosram_rd(GDCD_MAGIC, 0, sizeof (gdcd_t), (caddr_t)gdcd)) { in sc_get_common_pcd()
161 kmem_free(gdcd, sizeof (gdcd_t)); in sc_get_common_pcd()
165 if (gdcd->h.dcd_magic != GDCD_MAGIC) { in sc_get_common_pcd()
168 gdcd->h.dcd_magic); in sc_get_common_pcd()
170 kmem_free(gdcd, sizeof (gdcd_t)); in sc_get_common_pcd()
174 if (gdcd->h.dcd_version != DCD_VERSION) { in sc_get_common_pcd()
177 gdcd->h.dcd_version, DCD_VERSION); in sc_get_common_pcd()
179 kmem_free(gdcd, sizeof (gdcd_t)); in sc_get_common_pcd()
[all …]
H A Ddrmach.c1030 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
[all …]
H A Dschpc.c4001 gdcd_t *gdcd; in schpc_get_slot_status() local
4007 if ((gdcd = (gdcd_t *)kmem_zalloc(sizeof (gdcd_t), in schpc_get_slot_status()
4016 if (iosram_rd(GDCD_MAGIC, 0, sizeof (gdcd_t), (caddr_t)gdcd)) { in schpc_get_slot_status()
4019 kmem_free(gdcd, sizeof (gdcd_t)); in schpc_get_slot_status()
4023 if (gdcd->h.dcd_magic != GDCD_MAGIC) { in schpc_get_slot_status()
4026 gdcd->h.dcd_magic); in schpc_get_slot_status()
4028 kmem_free(gdcd, sizeof (gdcd_t)); in schpc_get_slot_status()
4032 if (gdcd->h.dcd_version != DCD_VERSION) { in schpc_get_slot_status()
4035 gdcd->h.dcd_version, DCD_VERSION); in schpc_get_slot_status()
4037 kmem_free(gdcd, sizeof (gdcd_t)); in schpc_get_slot_status()
[all …]
/titanic_41/usr/src/uts/sun4u/starcat/os/
H A Dstarcat.c457 gdcd_t *gdcd; in check_for_null_lpa() local
464 if ((gdcd = kmem_zalloc(sizeof (gdcd_t), KM_NOSLEEP)) == NULL) in check_for_null_lpa()
467 if ((*iosram_rdp)(GDCD_MAGIC, 0, sizeof (gdcd_t), (caddr_t)gdcd) || in check_for_null_lpa()
468 (gdcd->h.dcd_magic != GDCD_MAGIC) || in check_for_null_lpa()
469 (gdcd->h.dcd_version != DCD_VERSION)) { in check_for_null_lpa()
470 kmem_free(gdcd, sizeof (gdcd_t)); in check_for_null_lpa()
481 if (RSV_GOOD(gdcd->dcd_slot[exp][0].l1ss_rsv) && in check_for_null_lpa()
482 (gdcd->dcd_slot[exp][0].l1ss_flags & in check_for_null_lpa()
487 kmem_free(gdcd, sizeof (gdcd_t)); in check_for_null_lpa()