Lines Matching refs:chp
2420 static void dasd_path_init_kobj(struct dasd_device *device, int chp) in dasd_path_init_kobj() argument
2422 device->path[chp].kobj.kset = device->paths_info; in dasd_path_init_kobj()
2423 kobject_init(&device->path[chp].kobj, &path_attr_type); in dasd_path_init_kobj()
2426 void dasd_path_create_kobj(struct dasd_device *device, int chp) in dasd_path_create_kobj() argument
2436 if (device->path[chp].in_sysfs) in dasd_path_create_kobj()
2438 if (!device->path[chp].conf_data) in dasd_path_create_kobj()
2441 dasd_path_init_kobj(device, chp); in dasd_path_create_kobj()
2443 rc = kobject_add(&device->path[chp].kobj, NULL, "%x.%02x", in dasd_path_create_kobj()
2444 device->path[chp].cssid, device->path[chp].chpid); in dasd_path_create_kobj()
2446 kobject_put(&device->path[chp].kobj); in dasd_path_create_kobj()
2447 device->path[chp].in_sysfs = true; in dasd_path_create_kobj()
2464 static void dasd_path_remove_kobj(struct dasd_device *device, int chp) in dasd_path_remove_kobj() argument
2466 if (device->path[chp].in_sysfs) { in dasd_path_remove_kobj()
2467 kobject_put(&device->path[chp].kobj); in dasd_path_remove_kobj()
2468 device->path[chp].in_sysfs = false; in dasd_path_remove_kobj()