Lines Matching refs:rcdev
20 struct reset_controller_dev rcdev; member
26 to_bcm6345_reset(struct reset_controller_dev *rcdev) in to_bcm6345_reset() argument
28 return container_of(rcdev, struct bcm6345_reset, rcdev); in to_bcm6345_reset()
31 static int bcm6345_reset_update(struct reset_controller_dev *rcdev, in bcm6345_reset_update() argument
34 struct bcm6345_reset *bcm6345_reset = to_bcm6345_reset(rcdev); in bcm6345_reset_update()
50 static int bcm6345_reset_assert(struct reset_controller_dev *rcdev, in bcm6345_reset_assert() argument
53 return bcm6345_reset_update(rcdev, id, true); in bcm6345_reset_assert()
56 static int bcm6345_reset_deassert(struct reset_controller_dev *rcdev, in bcm6345_reset_deassert() argument
59 return bcm6345_reset_update(rcdev, id, false); in bcm6345_reset_deassert()
62 static int bcm6345_reset_reset(struct reset_controller_dev *rcdev, in bcm6345_reset_reset() argument
65 bcm6345_reset_update(rcdev, id, true); in bcm6345_reset_reset()
69 bcm6345_reset_update(rcdev, id, false); in bcm6345_reset_reset()
81 static int bcm6345_reset_status(struct reset_controller_dev *rcdev, in bcm6345_reset_status() argument
84 struct bcm6345_reset *bcm6345_reset = to_bcm6345_reset(rcdev); in bcm6345_reset_status()
110 bcm6345_reset->rcdev.ops = &bcm6345_reset_ops; in bcm6345_reset_probe()
111 bcm6345_reset->rcdev.owner = THIS_MODULE; in bcm6345_reset_probe()
112 bcm6345_reset->rcdev.of_node = pdev->dev.of_node; in bcm6345_reset_probe()
113 bcm6345_reset->rcdev.of_reset_n_cells = 1; in bcm6345_reset_probe()
114 bcm6345_reset->rcdev.nr_resets = BCM6345_RESET_NUM; in bcm6345_reset_probe()
117 &bcm6345_reset->rcdev); in bcm6345_reset_probe()