Lines Matching refs:parent

793 	if (dev->parent)
794 pm_runtime_get_sync(dev->parent);
803 if (dev->parent)
804 pm_runtime_put(dev->parent);
820 * USB interface, @dev->parent lock must be held as well.
822 * If the device has a parent, runtime-resume the parent before driver probing.
984 if (dev->parent)
985 pm_runtime_get_sync(dev->parent);
992 if (dev->parent)
993 pm_runtime_put(dev->parent);
1027 if (dev->parent)
1028 pm_runtime_get_sync(dev->parent);
1047 if (dev->parent)
1048 pm_runtime_put(dev->parent);
1069 * When called for a USB interface, @dev->parent lock must be held.
1085 * @parent: Parent device. Needed if the bus requires parent lock
1089 * interface, @parent lock will be held as well.
1091 static void __device_driver_lock(struct device *dev, struct device *parent)
1093 if (parent && dev->bus->need_parent_lock)
1094 device_lock(parent);
1101 * @parent: Parent device. Needed if the bus requires parent lock
1105 * USB interface, @parent lock will be released as well.
1107 static void __device_driver_unlock(struct device *dev, struct device *parent)
1110 if (parent && dev->bus->need_parent_lock)
1111 device_unlock(parent);
1120 * @dev->parent lock if needed. Returns 0 on success, -ERR on failure.
1126 __device_driver_lock(dev, dev->parent);
1128 __device_driver_unlock(dev, dev->parent);
1145 __device_driver_lock(dev, dev->parent);
1149 __device_driver_unlock(dev, dev->parent);
1215 __device_driver_lock(dev, dev->parent);
1217 __device_driver_unlock(dev, dev->parent);
1239 * When called for a USB interface, @dev->parent lock must be held as well.
1241 static void __device_release_driver(struct device *dev, struct device *parent)
1250 __device_driver_unlock(dev, parent);
1254 __device_driver_lock(dev, parent);
1290 struct device *parent)
1292 __device_driver_lock(dev, parent);
1295 __device_release_driver(dev, parent);
1297 __device_driver_unlock(dev, parent);
1305 * When called for a USB interface, @dev->parent lock must be held.
1307 * If this function is to be called with @dev->parent lock held, ensure that
1309 * acquired under the @dev->parent lock.
1326 * Detach driver from device. Will acquire both @dev lock and @dev->parent
1331 device_release_driver_internal(dev, NULL, dev->parent);
1358 device_release_driver_internal(dev, drv, dev->parent);