Lines Matching refs:rcdev
24 struct reset_controller_dev rcdev; member
45 struct reset_controller_dev *rcdev) in to_qcom_aoss_reset_data() argument
47 return container_of(rcdev, struct qcom_aoss_reset_data, rcdev); in to_qcom_aoss_reset_data()
50 static int qcom_aoss_control_assert(struct reset_controller_dev *rcdev, in qcom_aoss_control_assert() argument
53 struct qcom_aoss_reset_data *data = to_qcom_aoss_reset_data(rcdev); in qcom_aoss_control_assert()
62 static int qcom_aoss_control_deassert(struct reset_controller_dev *rcdev, in qcom_aoss_control_deassert() argument
65 struct qcom_aoss_reset_data *data = to_qcom_aoss_reset_data(rcdev); in qcom_aoss_control_deassert()
74 static int qcom_aoss_control_reset(struct reset_controller_dev *rcdev, in qcom_aoss_control_reset() argument
77 qcom_aoss_control_assert(rcdev, idx); in qcom_aoss_control_reset()
79 return qcom_aoss_control_deassert(rcdev, idx); in qcom_aoss_control_reset()
109 data->rcdev.owner = THIS_MODULE; in qcom_aoss_reset_probe()
110 data->rcdev.ops = &qcom_aoss_reset_ops; in qcom_aoss_reset_probe()
111 data->rcdev.nr_resets = desc->num_resets; in qcom_aoss_reset_probe()
112 data->rcdev.of_node = dev->of_node; in qcom_aoss_reset_probe()
114 return devm_reset_controller_register(dev, &data->rcdev); in qcom_aoss_reset_probe()