Lines Matching refs:scd
74 struct sysctl_data_s *scd; in scdrv_open() local
79 scd = container_of(inode->i_cdev, struct sysctl_data_s, scd_cdev); in scdrv_open()
90 sd->sd_nasid = scd->scd_nasid; in scdrv_open()
91 sd->sd_subch = ia64_sn_irtr_open(scd->scd_nasid); in scdrv_open()
378 struct sysctl_data_s *scd; in scdrv_init() local
406 scd = kzalloc(sizeof (struct sysctl_data_s), in scdrv_init()
408 if (!scd) { in scdrv_init()
416 scd->scd_nasid = cnodeid_to_nasid(cnode); in scdrv_init()
421 kfree(scd); in scdrv_init()
425 if (ia64_sn_irtr_init(scd->scd_nasid, salbuf, in scdrv_init()
432 kfree(scd); in scdrv_init()
438 cdev_init(&scd->scd_cdev, &scdrv_fops); in scdrv_init()
439 if (cdev_add(&scd->scd_cdev, dev, 1)) { in scdrv_init()
443 kfree(scd); in scdrv_init()
451 ia64_sn_irtr_intr_enable(scd->scd_nasid, in scdrv_init()
458 if(scd->scd_nasid == event_nasid) { in scdrv_init()
459 scdrv_event_init(scd); in scdrv_init()