Lines Matching refs:kobj
493 static ssize_t pch_phub_bin_read(struct file *filp, struct kobject *kobj, in pch_phub_bin_read() argument
507 dev_get_drvdata(container_of(kobj, struct device, kobj)); in pch_phub_bin_read()
562 static ssize_t pch_phub_bin_write(struct file *filp, struct kobject *kobj, in pch_phub_bin_write() argument
571 dev_get_drvdata(container_of(kobj, struct device, kobj)); in pch_phub_bin_write()
715 ret = sysfs_create_file(&pdev->dev.kobj, in pch_phub_probe()
720 ret = sysfs_create_bin_file(&pdev->dev.kobj, &pch_bin_attr); in pch_phub_probe()
745 ret = sysfs_create_bin_file(&pdev->dev.kobj, &pch_bin_attr); in pch_phub_probe()
768 ret = sysfs_create_file(&pdev->dev.kobj, in pch_phub_probe()
772 ret = sysfs_create_bin_file(&pdev->dev.kobj, &pch_bin_attr); in pch_phub_probe()
785 ret = sysfs_create_file(&pdev->dev.kobj, in pch_phub_probe()
790 ret = sysfs_create_bin_file(&pdev->dev.kobj, &pch_bin_attr); in pch_phub_probe()
807 sysfs_remove_file(&pdev->dev.kobj, &dev_attr_pch_mac.attr); in pch_phub_probe()
825 sysfs_remove_file(&pdev->dev.kobj, &dev_attr_pch_mac.attr); in pch_phub_remove()
826 sysfs_remove_bin_file(&pdev->dev.kobj, &pch_bin_attr); in pch_phub_remove()