Lines Matching refs:smntemp
138 typedef struct smntemp smntemp_t;
171 struct smntemp { struct
441 smntemp_t *smntemp = &smntemp_data; in smntemp_attach() local
449 if (smntemp->smn_dip != NULL) { in smntemp_attach()
453 smntemp->smn_dip = dip; in smntemp_attach()
454 smntemp->smn_fam = chiprev_family(cpuid_getchiprev(CPU)); in smntemp_attach()
460 smntemp->smn_ndf = amdzen_c_df_count(); in smntemp_attach()
461 if (smntemp->smn_ndf == 0) { in smntemp_attach()
465 smntemp->smn_df = kmem_zalloc(sizeof (smntemp_df_t) * smntemp->smn_ndf, in smntemp_attach()
467 for (uint32_t dfno = 0; dfno < smntemp->smn_ndf; dfno++) { in smntemp_attach()
468 smntemp_df_t *df = &smntemp->smn_df[dfno]; in smntemp_attach()
470 df->sd_nccd = THM_DIE_MAX_UNITS(smntemp->smn_fam); in smntemp_attach()
472 if (!smntemp_create_tctl(smntemp, df, &df->sd_tctl)) { in smntemp_attach()
482 if (!smntemp_create_tdie(smntemp, df, in smntemp_attach()
489 ddi_set_driver_private(dip, smntemp); in smntemp_attach()
493 smntemp_cleanup(smntemp); in smntemp_attach()
500 smntemp_t *smntemp = &smntemp_data; in smntemp_detach() local
508 if (smntemp->smn_dip == NULL) { in smntemp_detach()
509 dev_err(smntemp->smn_dip, CE_WARN, "!asked to detach smn " in smntemp_detach()
515 smntemp_cleanup(smntemp); in smntemp_detach()