/linux-6.6.21/drivers/clk/mediatek/ |
D | reset.c | 15 static inline struct mtk_clk_rst_data *to_mtk_clk_rst_data(struct reset_controller_dev *rcdev) in to_mtk_clk_rst_data() argument 17 return container_of(rcdev, struct mtk_clk_rst_data, rcdev); in to_mtk_clk_rst_data() 20 static int mtk_reset_update(struct reset_controller_dev *rcdev, in mtk_reset_update() argument 23 struct mtk_clk_rst_data *data = to_mtk_clk_rst_data(rcdev); in mtk_reset_update() 31 static int mtk_reset_assert(struct reset_controller_dev *rcdev, in mtk_reset_assert() argument 34 return mtk_reset_update(rcdev, id, false); in mtk_reset_assert() 37 static int mtk_reset_deassert(struct reset_controller_dev *rcdev, in mtk_reset_deassert() argument 40 return mtk_reset_update(rcdev, id, true); in mtk_reset_deassert() 43 static int mtk_reset(struct reset_controller_dev *rcdev, unsigned long id) in mtk_reset() argument 47 ret = mtk_reset_assert(rcdev, id); in mtk_reset() [all …]
|
/linux-6.6.21/drivers/reset/ |
D | reset-mpfs.c | 35 static int mpfs_assert(struct reset_controller_dev *rcdev, unsigned long id) in mpfs_assert() argument 42 reg = mpfs_reset_read(rcdev->dev); in mpfs_assert() 44 mpfs_reset_write(rcdev->dev, reg); in mpfs_assert() 51 static int mpfs_deassert(struct reset_controller_dev *rcdev, unsigned long id) in mpfs_deassert() argument 58 reg = mpfs_reset_read(rcdev->dev); in mpfs_deassert() 60 mpfs_reset_write(rcdev->dev, reg); in mpfs_deassert() 67 static int mpfs_status(struct reset_controller_dev *rcdev, unsigned long id) in mpfs_status() argument 69 u32 reg = mpfs_reset_read(rcdev->dev); in mpfs_status() 78 static int mpfs_reset(struct reset_controller_dev *rcdev, unsigned long id) in mpfs_reset() argument 80 mpfs_assert(rcdev, id); in mpfs_reset() [all …]
|
D | reset-lantiq.c | 22 struct reset_controller_dev rcdev; member 30 struct reset_controller_dev *rcdev) in to_lantiq_rcu_reset_priv() argument 32 return container_of(rcdev, struct lantiq_rcu_reset_priv, rcdev); in to_lantiq_rcu_reset_priv() 35 static int lantiq_rcu_reset_status(struct reset_controller_dev *rcdev, in lantiq_rcu_reset_status() argument 38 struct lantiq_rcu_reset_priv *priv = to_lantiq_rcu_reset_priv(rcdev); in lantiq_rcu_reset_status() 50 static int lantiq_rcu_reset_status_timeout(struct reset_controller_dev *rcdev, in lantiq_rcu_reset_status_timeout() argument 57 ret = lantiq_rcu_reset_status(rcdev, id); in lantiq_rcu_reset_status_timeout() 68 static int lantiq_rcu_reset_update(struct reset_controller_dev *rcdev, in lantiq_rcu_reset_update() argument 71 struct lantiq_rcu_reset_priv *priv = to_lantiq_rcu_reset_priv(rcdev); in lantiq_rcu_reset_update() 84 ret = lantiq_rcu_reset_status_timeout(rcdev, id, assert); in lantiq_rcu_reset_update() [all …]
|
D | reset-k210.c | 19 struct reset_controller_dev rcdev; member 23 to_k210_rst(struct reset_controller_dev *rcdev) in to_k210_rst() argument 25 return container_of(rcdev, struct k210_rst, rcdev); in to_k210_rst() 28 static inline int k210_rst_assert(struct reset_controller_dev *rcdev, in k210_rst_assert() argument 31 struct k210_rst *ksr = to_k210_rst(rcdev); in k210_rst_assert() 36 static inline int k210_rst_deassert(struct reset_controller_dev *rcdev, in k210_rst_deassert() argument 39 struct k210_rst *ksr = to_k210_rst(rcdev); in k210_rst_deassert() 44 static int k210_rst_reset(struct reset_controller_dev *rcdev, in k210_rst_reset() argument 49 ret = k210_rst_assert(rcdev, id); in k210_rst_reset() 52 ret = k210_rst_deassert(rcdev, id); in k210_rst_reset() [all …]
|
D | reset-bcm6345.c | 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 [all …]
|
D | reset-zynqmp.c | 24 struct reset_controller_dev rcdev; member 29 to_zynqmp_reset_data(struct reset_controller_dev *rcdev) in to_zynqmp_reset_data() argument 31 return container_of(rcdev, struct zynqmp_reset_data, rcdev); in to_zynqmp_reset_data() 34 static int zynqmp_reset_assert(struct reset_controller_dev *rcdev, in zynqmp_reset_assert() argument 37 struct zynqmp_reset_data *priv = to_zynqmp_reset_data(rcdev); in zynqmp_reset_assert() 43 static int zynqmp_reset_deassert(struct reset_controller_dev *rcdev, in zynqmp_reset_deassert() argument 46 struct zynqmp_reset_data *priv = to_zynqmp_reset_data(rcdev); in zynqmp_reset_deassert() 52 static int zynqmp_reset_status(struct reset_controller_dev *rcdev, in zynqmp_reset_status() argument 55 struct zynqmp_reset_data *priv = to_zynqmp_reset_data(rcdev); in zynqmp_reset_status() 66 static int zynqmp_reset_reset(struct reset_controller_dev *rcdev, in zynqmp_reset_reset() argument [all …]
|
D | reset-sunplus.c | 102 struct reset_controller_dev rcdev; member 107 static inline struct sp_reset *to_sp_reset(struct reset_controller_dev *rcdev) in to_sp_reset() argument 109 return container_of(rcdev, struct sp_reset, rcdev); in to_sp_reset() 112 static int sp_reset_update(struct reset_controller_dev *rcdev, in sp_reset_update() argument 115 struct sp_reset *reset = to_sp_reset(rcdev); in sp_reset_update() 126 static int sp_reset_assert(struct reset_controller_dev *rcdev, in sp_reset_assert() argument 129 return sp_reset_update(rcdev, id, true); in sp_reset_assert() 132 static int sp_reset_deassert(struct reset_controller_dev *rcdev, in sp_reset_deassert() argument 135 return sp_reset_update(rcdev, id, false); in sp_reset_deassert() 138 static int sp_reset_status(struct reset_controller_dev *rcdev, in sp_reset_status() argument [all …]
|
D | reset-tps380x.c | 21 struct reset_controller_dev rcdev; member 33 struct tps380x_reset *to_tps380x_reset(struct reset_controller_dev *rcdev) in to_tps380x_reset() argument 35 return container_of(rcdev, struct tps380x_reset, rcdev); in to_tps380x_reset() 39 tps380x_reset_assert(struct reset_controller_dev *rcdev, unsigned long id) in tps380x_reset_assert() argument 41 struct tps380x_reset *tps380x = to_tps380x_reset(rcdev); in tps380x_reset_assert() 49 tps380x_reset_deassert(struct reset_controller_dev *rcdev, unsigned long id) in tps380x_reset_deassert() argument 51 struct tps380x_reset *tps380x = to_tps380x_reset(rcdev); in tps380x_reset_deassert() 64 static int tps380x_reset_of_xlate(struct reset_controller_dev *rcdev, in tps380x_reset_of_xlate() argument 92 tps380x->rcdev.ops = &reset_tps380x_ops; in tps380x_reset_probe() 93 tps380x->rcdev.owner = THIS_MODULE; in tps380x_reset_probe() [all …]
|
D | reset-ath79.c | 17 struct reset_controller_dev rcdev; member 25 static int ath79_reset_update(struct reset_controller_dev *rcdev, in ath79_reset_update() argument 29 container_of(rcdev, struct ath79_reset, rcdev); in ath79_reset_update() 45 static int ath79_reset_assert(struct reset_controller_dev *rcdev, in ath79_reset_assert() argument 48 return ath79_reset_update(rcdev, id, true); in ath79_reset_assert() 51 static int ath79_reset_deassert(struct reset_controller_dev *rcdev, in ath79_reset_deassert() argument 54 return ath79_reset_update(rcdev, id, false); in ath79_reset_deassert() 57 static int ath79_reset_status(struct reset_controller_dev *rcdev, in ath79_reset_status() argument 61 container_of(rcdev, struct ath79_reset, rcdev); in ath79_reset_status() 81 ath79_reset_assert(&ath79_reset->rcdev, FULL_CHIP_RESET); in ath79_reset_restart_handler() [all …]
|
D | reset-simple.c | 25 to_reset_simple_data(struct reset_controller_dev *rcdev) in to_reset_simple_data() argument 27 return container_of(rcdev, struct reset_simple_data, rcdev); in to_reset_simple_data() 30 static int reset_simple_update(struct reset_controller_dev *rcdev, in reset_simple_update() argument 33 struct reset_simple_data *data = to_reset_simple_data(rcdev); in reset_simple_update() 54 static int reset_simple_assert(struct reset_controller_dev *rcdev, in reset_simple_assert() argument 57 return reset_simple_update(rcdev, id, true); in reset_simple_assert() 60 static int reset_simple_deassert(struct reset_controller_dev *rcdev, in reset_simple_deassert() argument 63 return reset_simple_update(rcdev, id, false); in reset_simple_deassert() 66 static int reset_simple_reset(struct reset_controller_dev *rcdev, in reset_simple_reset() argument 69 struct reset_simple_data *data = to_reset_simple_data(rcdev); in reset_simple_reset() [all …]
|
D | reset-qcom-aoss.c | 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() [all …]
|
D | reset-ti-sci.c | 37 struct reset_controller_dev rcdev; member 44 container_of((p), struct ti_sci_reset_data, rcdev) 62 static int ti_sci_reset_set(struct reset_controller_dev *rcdev, in ti_sci_reset_set() argument 65 struct ti_sci_reset_data *data = to_ti_sci_reset_data(rcdev); in ti_sci_reset_set() 106 static int ti_sci_reset_assert(struct reset_controller_dev *rcdev, in ti_sci_reset_assert() argument 109 return ti_sci_reset_set(rcdev, id, true); in ti_sci_reset_assert() 124 static int ti_sci_reset_deassert(struct reset_controller_dev *rcdev, in ti_sci_reset_deassert() argument 127 return ti_sci_reset_set(rcdev, id, false); in ti_sci_reset_deassert() 143 static int ti_sci_reset_status(struct reset_controller_dev *rcdev, in ti_sci_reset_status() argument 146 struct ti_sci_reset_data *data = to_ti_sci_reset_data(rcdev); in ti_sci_reset_status() [all …]
|
D | core.c | 43 struct reset_controller_dev *rcdev; member 66 static const char *rcdev_name(struct reset_controller_dev *rcdev) in rcdev_name() argument 68 if (rcdev->dev) in rcdev_name() 69 return dev_name(rcdev->dev); in rcdev_name() 71 if (rcdev->of_node) in rcdev_name() 72 return rcdev->of_node->full_name; in rcdev_name() 87 static int of_reset_simple_xlate(struct reset_controller_dev *rcdev, in of_reset_simple_xlate() argument 90 if (reset_spec->args[0] >= rcdev->nr_resets) in of_reset_simple_xlate() 100 int reset_controller_register(struct reset_controller_dev *rcdev) in reset_controller_register() argument 102 if (!rcdev->of_xlate) { in reset_controller_register() [all …]
|
D | reset-a10sr.c | 20 struct reset_controller_dev rcdev; member 26 return container_of(rc, struct a10sr_reset, rcdev); in to_a10sr_rst() 44 static int a10sr_reset_update(struct reset_controller_dev *rcdev, in a10sr_reset_update() argument 47 struct a10sr_reset *a10r = to_a10sr_rst(rcdev); in a10sr_reset_update() 55 static int a10sr_reset_assert(struct reset_controller_dev *rcdev, in a10sr_reset_assert() argument 58 return a10sr_reset_update(rcdev, id, true); in a10sr_reset_assert() 61 static int a10sr_reset_deassert(struct reset_controller_dev *rcdev, in a10sr_reset_deassert() argument 64 return a10sr_reset_update(rcdev, id, false); in a10sr_reset_deassert() 67 static int a10sr_reset_status(struct reset_controller_dev *rcdev, in a10sr_reset_status() argument 71 struct a10sr_reset *a10r = to_a10sr_rst(rcdev); in a10sr_reset_status() [all …]
|
D | reset-brcmstb.c | 19 struct reset_controller_dev rcdev; member 35 struct brcmstb_reset *to_brcmstb(struct reset_controller_dev *rcdev) in to_brcmstb() argument 37 return container_of(rcdev, struct brcmstb_reset, rcdev); in to_brcmstb() 40 static int brcmstb_reset_assert(struct reset_controller_dev *rcdev, in brcmstb_reset_assert() argument 44 struct brcmstb_reset *priv = to_brcmstb(rcdev); in brcmstb_reset_assert() 51 static int brcmstb_reset_deassert(struct reset_controller_dev *rcdev, in brcmstb_reset_deassert() argument 55 struct brcmstb_reset *priv = to_brcmstb(rcdev); in brcmstb_reset_deassert() 67 static int brcmstb_reset_status(struct reset_controller_dev *rcdev, in brcmstb_reset_status() argument 71 struct brcmstb_reset *priv = to_brcmstb(rcdev); in brcmstb_reset_status() 100 priv->rcdev.owner = THIS_MODULE; in brcmstb_reset_probe() [all …]
|
/linux-6.6.21/drivers/staging/media/av7110/ |
D | av7110_ir.c | 23 struct rc_dev *rcdev = av7110->ir.rcdev; in av7110_ir_handler() local 30 if (rcdev) { in av7110_ir_handler() 67 rc_keydown(rcdev, proto, scancode, toggle != 0); in av7110_ir_handler() 79 static int change_protocol(struct rc_dev *rcdev, u64 *rc_type) in change_protocol() argument 81 struct av7110 *av7110 = rcdev->priv; in change_protocol() 107 struct rc_dev *rcdev; in av7110_ir_init() local 111 rcdev = rc_allocate_device(RC_DRIVER_SCANCODE); in av7110_ir_init() 112 if (!rcdev) in av7110_ir_init() 120 rcdev->device_name = av7110->card_name; in av7110_ir_init() 121 rcdev->driver_name = KBUILD_MODNAME; in av7110_ir_init() [all …]
|
/linux-6.6.21/drivers/clk/mmp/ |
D | reset.c | 10 #define rcdev_to_unit(rcdev) container_of(rcdev, struct mmp_clk_reset_unit, rcdev) argument 12 static int mmp_of_reset_xlate(struct reset_controller_dev *rcdev, in mmp_of_reset_xlate() argument 15 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_of_reset_xlate() 19 if (WARN_ON(reset_spec->args_count != rcdev->of_reset_n_cells)) in mmp_of_reset_xlate() 22 for (i = 0; i < rcdev->nr_resets; i++) { in mmp_of_reset_xlate() 28 if (i == rcdev->nr_resets) in mmp_of_reset_xlate() 34 static int mmp_clk_reset_assert(struct reset_controller_dev *rcdev, in mmp_clk_reset_assert() argument 37 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_clk_reset_assert() 56 static int mmp_clk_reset_deassert(struct reset_controller_dev *rcdev, in mmp_clk_reset_deassert() argument 59 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_clk_reset_deassert() [all …]
|
/linux-6.6.21/drivers/reset/starfive/ |
D | reset-starfive-jh71x0.c | 18 struct reset_controller_dev rcdev; member 27 jh71x0_reset_from(struct reset_controller_dev *rcdev) in jh71x0_reset_from() argument 29 return container_of(rcdev, struct jh71x0_reset, rcdev); in jh71x0_reset_from() 32 static int jh71x0_reset_update(struct reset_controller_dev *rcdev, in jh71x0_reset_update() argument 35 struct jh71x0_reset *data = jh71x0_reset_from(rcdev); in jh71x0_reset_update() 64 static int jh71x0_reset_assert(struct reset_controller_dev *rcdev, in jh71x0_reset_assert() argument 67 return jh71x0_reset_update(rcdev, id, true); in jh71x0_reset_assert() 70 static int jh71x0_reset_deassert(struct reset_controller_dev *rcdev, in jh71x0_reset_deassert() argument 73 return jh71x0_reset_update(rcdev, id, false); in jh71x0_reset_deassert() 76 static int jh71x0_reset_reset(struct reset_controller_dev *rcdev, in jh71x0_reset_reset() argument [all …]
|
/linux-6.6.21/drivers/media/rc/ |
D | gpio-ir-recv.c | 22 struct rc_dev *rcdev; member 50 ir_raw_event_store_edge(gpio_dev->rcdev, val == 1); in gpio_ir_recv_irq() 65 struct rc_dev *rcdev; in gpio_ir_recv_probe() local 84 rcdev = devm_rc_allocate_device(dev, RC_DRIVER_IR_RAW); in gpio_ir_recv_probe() 85 if (!rcdev) in gpio_ir_recv_probe() 88 rcdev->priv = gpio_dev; in gpio_ir_recv_probe() 89 rcdev->device_name = GPIO_IR_DEVICE_NAME; in gpio_ir_recv_probe() 90 rcdev->input_phys = GPIO_IR_DEVICE_NAME "/input0"; in gpio_ir_recv_probe() 91 rcdev->input_id.bustype = BUS_HOST; in gpio_ir_recv_probe() 92 rcdev->input_id.vendor = 0x0001; in gpio_ir_recv_probe() [all …]
|
D | bpf-lirc.c | 137 static int lirc_bpf_attach(struct rc_dev *rcdev, struct bpf_prog *prog) in lirc_bpf_attach() argument 144 if (rcdev->driver_type != RC_DRIVER_IR_RAW) in lirc_bpf_attach() 151 raw = rcdev->raw; in lirc_bpf_attach() 175 static int lirc_bpf_detach(struct rc_dev *rcdev, struct bpf_prog *prog) in lirc_bpf_detach() argument 182 if (rcdev->driver_type != RC_DRIVER_IR_RAW) in lirc_bpf_detach() 189 raw = rcdev->raw; in lirc_bpf_detach() 213 void lirc_bpf_run(struct rc_dev *rcdev, u32 sample) in lirc_bpf_run() argument 215 struct ir_raw_event_ctrl *raw = rcdev->raw; in lirc_bpf_run() 233 void lirc_bpf_free(struct rc_dev *rcdev) in lirc_bpf_free() argument 238 array = lirc_rcu_dereference(rcdev->raw->progs); in lirc_bpf_free() [all …]
|
D | imon_raw.c | 16 struct rc_dev *rcdev; member 66 ir_raw_event_store_with_filter(imon->rcdev, &rawir); in imon_ir_data() 74 if (packet_no == 0x0a && !imon->rcdev->idle) { in imon_ir_data() 75 ir_raw_event_set_idle(imon->rcdev, true); in imon_ir_data() 76 ir_raw_event_handle(imon->rcdev); in imon_ir_data() 111 struct rc_dev *rcdev; in imon_probe() local 152 rcdev = devm_rc_allocate_device(&intf->dev, RC_DRIVER_IR_RAW); in imon_probe() 153 if (!rcdev) { in imon_probe() 160 rcdev->device_name = "iMON Station"; in imon_probe() 161 rcdev->driver_name = KBUILD_MODNAME; in imon_probe() [all …]
|
/linux-6.6.21/drivers/clk/stm32/ |
D | reset-stm32.c | 21 struct reset_controller_dev rcdev; member 27 to_stm32_reset_data(struct reset_controller_dev *rcdev) in to_stm32_reset_data() argument 29 return container_of(rcdev, struct stm32_reset_data, rcdev); in to_stm32_reset_data() 32 static int stm32_reset_update(struct reset_controller_dev *rcdev, in stm32_reset_update() argument 35 struct stm32_reset_data *data = to_stm32_reset_data(rcdev); in stm32_reset_update() 70 static int stm32_reset_assert(struct reset_controller_dev *rcdev, in stm32_reset_assert() argument 73 return stm32_reset_update(rcdev, id, true); in stm32_reset_assert() 76 static int stm32_reset_deassert(struct reset_controller_dev *rcdev, in stm32_reset_deassert() argument 79 return stm32_reset_update(rcdev, id, false); in stm32_reset_deassert() 82 static int stm32_reset_status(struct reset_controller_dev *rcdev, in stm32_reset_status() argument [all …]
|
/linux-6.6.21/drivers/clk/ux500/ |
D | reset-prcc.c | 19 #define to_u8500_prcc_reset(p) container_of((p), struct u8500_prcc_reset, rcdev) 67 static int u8500_prcc_reset(struct reset_controller_dev *rcdev, in u8500_prcc_reset() argument 70 struct u8500_prcc_reset *ur = to_u8500_prcc_reset(rcdev); in u8500_prcc_reset() 88 static int u8500_prcc_reset_assert(struct reset_controller_dev *rcdev, in u8500_prcc_reset_assert() argument 91 struct u8500_prcc_reset *ur = to_u8500_prcc_reset(rcdev); in u8500_prcc_reset_assert() 101 static int u8500_prcc_reset_deassert(struct reset_controller_dev *rcdev, in u8500_prcc_reset_deassert() argument 104 struct u8500_prcc_reset *ur = to_u8500_prcc_reset(rcdev); in u8500_prcc_reset_deassert() 114 static int u8500_prcc_reset_status(struct reset_controller_dev *rcdev, in u8500_prcc_reset_status() argument 117 struct u8500_prcc_reset *ur = to_u8500_prcc_reset(rcdev); in u8500_prcc_reset_status() 136 static int u8500_prcc_reset_xlate(struct reset_controller_dev *rcdev, in u8500_prcc_reset_xlate() argument [all …]
|
/linux-6.6.21/drivers/clk/hisilicon/ |
D | reset.c | 23 struct reset_controller_dev rcdev; member 27 #define to_hisi_reset_controller(rcdev) \ argument 28 container_of(rcdev, struct hisi_reset_controller, rcdev) 30 static int hisi_reset_of_xlate(struct reset_controller_dev *rcdev, in hisi_reset_of_xlate() argument 43 static int hisi_reset_assert(struct reset_controller_dev *rcdev, in hisi_reset_assert() argument 46 struct hisi_reset_controller *rstc = to_hisi_reset_controller(rcdev); in hisi_reset_assert() 64 static int hisi_reset_deassert(struct reset_controller_dev *rcdev, in hisi_reset_deassert() argument 67 struct hisi_reset_controller *rstc = to_hisi_reset_controller(rcdev); in hisi_reset_deassert() 103 rstc->rcdev.owner = THIS_MODULE; in hisi_reset_init() 104 rstc->rcdev.ops = &hisi_reset_ops; in hisi_reset_init() [all …]
|
/linux-6.6.21/drivers/clk/visconti/ |
D | reset.c | 18 static inline struct visconti_reset *to_visconti_reset(struct reset_controller_dev *rcdev) in to_visconti_reset() argument 20 return container_of(rcdev, struct visconti_reset, rcdev); in to_visconti_reset() 23 static int visconti_reset_assert(struct reset_controller_dev *rcdev, unsigned long id) in visconti_reset_assert() argument 25 struct visconti_reset *reset = to_visconti_reset(rcdev); in visconti_reset_assert() 38 static int visconti_reset_deassert(struct reset_controller_dev *rcdev, unsigned long id) in visconti_reset_deassert() argument 40 struct visconti_reset *reset = to_visconti_reset(rcdev); in visconti_reset_deassert() 53 static int visconti_reset_reset(struct reset_controller_dev *rcdev, unsigned long id) in visconti_reset_reset() argument 55 visconti_reset_assert(rcdev, id); in visconti_reset_reset() 57 visconti_reset_deassert(rcdev, id); in visconti_reset_reset() 62 static int visconti_reset_status(struct reset_controller_dev *rcdev, unsigned long id) in visconti_reset_status() argument [all …]
|