Lines Matching refs:kobj
60 static struct esas2r_adapter *esas2r_adapter_from_kobj(struct kobject *kobj) in esas2r_adapter_from_kobj() argument
62 struct device *dev = container_of(kobj, struct device, kobj); in esas2r_adapter_from_kobj()
68 static ssize_t read_fw(struct file *file, struct kobject *kobj, in read_fw() argument
72 struct esas2r_adapter *a = esas2r_adapter_from_kobj(kobj); in read_fw()
77 static ssize_t write_fw(struct file *file, struct kobject *kobj, in write_fw() argument
81 struct esas2r_adapter *a = esas2r_adapter_from_kobj(kobj); in write_fw()
86 static ssize_t read_fs(struct file *file, struct kobject *kobj, in read_fs() argument
90 struct esas2r_adapter *a = esas2r_adapter_from_kobj(kobj); in read_fs()
95 static ssize_t write_fs(struct file *file, struct kobject *kobj, in write_fs() argument
99 struct esas2r_adapter *a = esas2r_adapter_from_kobj(kobj); in write_fs()
111 static ssize_t read_vda(struct file *file, struct kobject *kobj, in read_vda() argument
115 struct esas2r_adapter *a = esas2r_adapter_from_kobj(kobj); in read_vda()
120 static ssize_t write_vda(struct file *file, struct kobject *kobj, in write_vda() argument
124 struct esas2r_adapter *a = esas2r_adapter_from_kobj(kobj); in write_vda()
129 static ssize_t read_live_nvram(struct file *file, struct kobject *kobj, in read_live_nvram() argument
133 struct esas2r_adapter *a = esas2r_adapter_from_kobj(kobj); in read_live_nvram()
140 static ssize_t write_live_nvram(struct file *file, struct kobject *kobj, in write_live_nvram() argument
144 struct esas2r_adapter *a = esas2r_adapter_from_kobj(kobj); in write_live_nvram()
160 static ssize_t read_default_nvram(struct file *file, struct kobject *kobj, in read_default_nvram() argument
164 struct esas2r_adapter *a = esas2r_adapter_from_kobj(kobj); in read_default_nvram()
171 static ssize_t read_hw(struct file *file, struct kobject *kobj, in read_hw() argument
175 struct esas2r_adapter *a = esas2r_adapter_from_kobj(kobj); in read_hw()
189 static ssize_t write_hw(struct file *file, struct kobject *kobj, in write_hw() argument
193 struct esas2r_adapter *a = esas2r_adapter_from_kobj(kobj); in write_hw()
479 if (sysfs_create_bin_file(&host->shost_dev.kobj, &bin_attr_fw)) in esas2r_probe()
485 if (sysfs_create_bin_file(&host->shost_dev.kobj, &bin_attr_fs)) in esas2r_probe()
491 if (sysfs_create_bin_file(&host->shost_dev.kobj, &bin_attr_vda)) in esas2r_probe()
497 if (sysfs_create_bin_file(&host->shost_dev.kobj, &bin_attr_hw)) in esas2r_probe()
503 if (sysfs_create_bin_file(&host->shost_dev.kobj, &bin_attr_live_nvram)) in esas2r_probe()
509 if (sysfs_create_bin_file(&host->shost_dev.kobj, in esas2r_probe()