Lines Matching defs:cdev
14 static ssize_t type_show(struct device *cdev,
17 struct atm_dev *adev = to_atm_dev(cdev);
22 static ssize_t address_show(struct device *cdev,
25 struct atm_dev *adev = to_atm_dev(cdev);
30 static ssize_t atmindex_show(struct device *cdev,
33 struct atm_dev *adev = to_atm_dev(cdev);
38 static ssize_t carrier_show(struct device *cdev,
41 struct atm_dev *adev = to_atm_dev(cdev);
47 static ssize_t link_rate_show(struct device *cdev,
50 struct atm_dev *adev = to_atm_dev(cdev);
86 static int atm_uevent(const struct device *cdev, struct kobj_uevent_env *env)
90 if (!cdev)
93 adev = to_atm_dev(cdev);
101 static void atm_release(struct device *cdev)
103 struct atm_dev *adev = to_atm_dev(cdev);
116 struct device *cdev = &adev->class_dev;
119 cdev->class = &atm_class;
120 cdev->parent = parent;
121 dev_set_drvdata(cdev, adev);
123 dev_set_name(cdev, "%s%d", adev->type, adev->number);
124 err = device_register(cdev);
129 err = device_create_file(cdev, atm_attrs[i]);
138 device_remove_file(cdev, atm_attrs[j]);
139 device_del(cdev);
145 struct device *cdev = &adev->class_dev;
147 device_del(cdev);