Lines Matching defs:dip
411 struct pvr2_sysfs_debugifc *dip;
414 dip = kzalloc(sizeof(*dip),GFP_KERNEL);
415 if (!dip) return;
416 sysfs_attr_init(&dip->attr_debugcmd.attr);
417 dip->attr_debugcmd.attr.name = "debugcmd";
418 dip->attr_debugcmd.attr.mode = S_IRUGO|S_IWUSR|S_IWGRP;
419 dip->attr_debugcmd.show = debugcmd_show;
420 dip->attr_debugcmd.store = debugcmd_store;
421 sysfs_attr_init(&dip->attr_debuginfo.attr);
422 dip->attr_debuginfo.attr.name = "debuginfo";
423 dip->attr_debuginfo.attr.mode = S_IRUGO;
424 dip->attr_debuginfo.show = debuginfo_show;
425 sfp->debugifc = dip;
426 ret = device_create_file(sfp->class_dev,&dip->attr_debugcmd);
432 dip->debugcmd_created_ok = !0;
434 ret = device_create_file(sfp->class_dev,&dip->attr_debuginfo);
440 dip->debuginfo_created_ok = !0;