Lines Matching refs:dip
430 struct pvr2_sysfs_debugifc *dip; in pvr2_sysfs_add_debugifc() local
433 dip = kzalloc(sizeof(*dip),GFP_KERNEL); in pvr2_sysfs_add_debugifc()
434 if (!dip) return; in pvr2_sysfs_add_debugifc()
435 sysfs_attr_init(&dip->attr_debugcmd.attr); in pvr2_sysfs_add_debugifc()
436 dip->attr_debugcmd.attr.name = "debugcmd"; in pvr2_sysfs_add_debugifc()
437 dip->attr_debugcmd.attr.mode = S_IRUGO|S_IWUSR|S_IWGRP; in pvr2_sysfs_add_debugifc()
438 dip->attr_debugcmd.show = debugcmd_show; in pvr2_sysfs_add_debugifc()
439 dip->attr_debugcmd.store = debugcmd_store; in pvr2_sysfs_add_debugifc()
440 sysfs_attr_init(&dip->attr_debuginfo.attr); in pvr2_sysfs_add_debugifc()
441 dip->attr_debuginfo.attr.name = "debuginfo"; in pvr2_sysfs_add_debugifc()
442 dip->attr_debuginfo.attr.mode = S_IRUGO; in pvr2_sysfs_add_debugifc()
443 dip->attr_debuginfo.show = debuginfo_show; in pvr2_sysfs_add_debugifc()
444 sfp->debugifc = dip; in pvr2_sysfs_add_debugifc()
445 ret = device_create_file(sfp->class_dev,&dip->attr_debugcmd); in pvr2_sysfs_add_debugifc()
451 dip->debugcmd_created_ok = !0; in pvr2_sysfs_add_debugifc()
453 ret = device_create_file(sfp->class_dev,&dip->attr_debuginfo); in pvr2_sysfs_add_debugifc()
459 dip->debuginfo_created_ok = !0; in pvr2_sysfs_add_debugifc()