/linux/drivers/staging/media/av7110/ |
A D | av7110_ir.c | 23 struct rc_dev *rcdev = av7110->ir.rcdev; in av7110_ir_handler() local 30 if (rcdev) { in av7110_ir_handler() 107 struct rc_dev *rcdev; in av7110_ir_init() local 112 if (!rcdev) in av7110_ir_init() 124 rcdev->input_id.version = 2; in av7110_ir_init() 133 rcdev->dev.parent = &pci->dev; in av7110_ir_init() 137 rcdev->priv = av7110; in av7110_ir_init() 139 av7110->ir.rcdev = rcdev; in av7110_ir_init() 143 ret = rc_register_device(rcdev); in av7110_ir_init() 145 av7110->ir.rcdev = NULL; in av7110_ir_init() [all …]
|
/linux/drivers/reset/ |
A 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() 57 ret = lantiq_rcu_reset_status(rcdev, id); in lantiq_rcu_reset_status_timeout() 109 ret = lantiq_rcu_reset_assert(rcdev, id); in lantiq_rcu_reset_reset() 160 if (set >= rcdev->nr_resets || status >= rcdev->nr_resets) in lantiq_rcu_reset_xlate() 182 priv->rcdev.ops = &lantiq_rcu_reset_ops; in lantiq_rcu_reset_probe() 183 priv->rcdev.owner = THIS_MODULE; in lantiq_rcu_reset_probe() 184 priv->rcdev.of_node = pdev->dev.of_node; in lantiq_rcu_reset_probe() 185 priv->rcdev.nr_resets = 32; in lantiq_rcu_reset_probe() [all …]
|
A D | reset-k210.c | 20 struct reset_controller_dev rcdev; member 26 return container_of(rcdev, struct k210_rst, rcdev); in to_k210_rst() 32 struct k210_rst *ksr = to_k210_rst(rcdev); in k210_rst_assert() 50 ret = k210_rst_assert(rcdev, id); in k210_rst_reset() 53 ret = k210_rst_deassert(rcdev, id); in k210_rst_reset() 108 ksr->rcdev.owner = THIS_MODULE; in k210_rst_probe() 109 ksr->rcdev.dev = dev; in k210_rst_probe() 110 ksr->rcdev.of_node = dev->of_node; in k210_rst_probe() 111 ksr->rcdev.ops = &k210_rst_ops; in k210_rst_probe() 113 ksr->rcdev.of_reset_n_cells = 1; in k210_rst_probe() [all …]
|
A 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() 53 return bcm6345_reset_update(rcdev, id, true); in bcm6345_reset_assert() 59 return bcm6345_reset_update(rcdev, id, false); in bcm6345_reset_deassert() 65 bcm6345_reset_update(rcdev, id, true); in bcm6345_reset_reset() 69 bcm6345_reset_update(rcdev, id, false); in bcm6345_reset_reset() 112 bcm6345_reset->rcdev.ops = &bcm6345_reset_ops; in bcm6345_reset_probe() 113 bcm6345_reset->rcdev.owner = THIS_MODULE; in bcm6345_reset_probe() 115 bcm6345_reset->rcdev.of_reset_n_cells = 1; in bcm6345_reset_probe() [all …]
|
A 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() 37 struct zynqmp_reset_data *priv = to_zynqmp_reset_data(rcdev); in zynqmp_reset_assert() 46 struct zynqmp_reset_data *priv = to_zynqmp_reset_data(rcdev); in zynqmp_reset_deassert() 112 priv->rcdev.ops = &zynqmp_reset_ops; in zynqmp_reset_probe() 113 priv->rcdev.owner = THIS_MODULE; in zynqmp_reset_probe() 114 priv->rcdev.of_node = pdev->dev.of_node; in zynqmp_reset_probe() 115 priv->rcdev.nr_resets = priv->data->num_resets; in zynqmp_reset_probe() 116 priv->rcdev.of_reset_n_cells = 1; in zynqmp_reset_probe() [all …]
|
A D | reset-ath79.c | 17 struct reset_controller_dev rcdev; member 29 container_of(rcdev, struct ath79_reset, rcdev); in ath79_reset_update() 48 return ath79_reset_update(rcdev, id, true); in ath79_reset_assert() 54 return ath79_reset_update(rcdev, id, false); in ath79_reset_deassert() 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() 105 ath79_reset->rcdev.ops = &ath79_reset_ops; in ath79_reset_probe() 106 ath79_reset->rcdev.owner = THIS_MODULE; in ath79_reset_probe() 107 ath79_reset->rcdev.of_node = pdev->dev.of_node; in ath79_reset_probe() 108 ath79_reset->rcdev.of_reset_n_cells = 1; in ath79_reset_probe() [all …]
|
A D | core.c | 67 if (rcdev->dev) in rcdev_name() 159 *rcdevp = rcdev; in devm_reset_controller_register() 353 ret = rstc->rcdev->ops->reset(rstc->rcdev, rstc->id); in reset_control_reset() 484 return rstc->rcdev->ops->assert(rstc->rcdev, rstc->id); in reset_control_assert() 564 return rstc->rcdev->ops->deassert(rstc->rcdev, rstc->id); in reset_control_deassert() 613 return rstc->rcdev->ops->status(rstc->rcdev, rstc->id); in reset_control_status() 782 rstc->rcdev = rcdev; in __reset_control_get_internal() 842 rcdev = NULL; in __of_reset_control_get() 845 rcdev = r; in __of_reset_control_get() 850 if (!rcdev) { in __of_reset_control_get() [all …]
|
A D | reset-simple.c | 26 to_reset_simple_data(struct reset_controller_dev *rcdev) in to_reset_simple_data() argument 28 return container_of(rcdev, struct reset_simple_data, rcdev); in to_reset_simple_data() 34 struct reset_simple_data *data = to_reset_simple_data(rcdev); in reset_simple_update() 58 return reset_simple_update(rcdev, id, true); in reset_simple_assert() 64 return reset_simple_update(rcdev, id, false); in reset_simple_deassert() 76 ret = reset_simple_assert(rcdev, id); in reset_simple_reset() 82 return reset_simple_deassert(rcdev, id); in reset_simple_reset() 179 data->rcdev.owner = THIS_MODULE; in reset_simple_probe() 181 data->rcdev.ops = &reset_simple_ops; in reset_simple_probe() 182 data->rcdev.of_node = dev->of_node; in reset_simple_probe() [all …]
|
A D | reset-ti-sci.c | 45 struct reset_controller_dev rcdev; member 52 container_of((p), struct ti_sci_reset_data, rcdev) 117 return ti_sci_reset_set(rcdev, id, true); in ti_sci_reset_assert() 135 return ti_sci_reset_set(rcdev, id, false); in ti_sci_reset_deassert() 233 data->rcdev.ops = &ti_sci_reset_ops; in ti_sci_reset_probe() 234 data->rcdev.owner = THIS_MODULE; in ti_sci_reset_probe() 235 data->rcdev.of_node = pdev->dev.of_node; in ti_sci_reset_probe() 236 data->rcdev.of_reset_n_cells = 2; in ti_sci_reset_probe() 237 data->rcdev.of_xlate = ti_sci_reset_of_xlate; in ti_sci_reset_probe() 243 return reset_controller_register(&data->rcdev); in ti_sci_reset_probe() [all …]
|
A 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() 53 struct qcom_aoss_reset_data *data = to_qcom_aoss_reset_data(rcdev); in qcom_aoss_control_assert() 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() [all …]
|
A D | reset-oxnas.c | 26 struct reset_controller_dev rcdev; member 29 static int oxnas_reset_reset(struct reset_controller_dev *rcdev, in oxnas_reset_reset() argument 33 container_of(rcdev, struct oxnas_reset, rcdev); in oxnas_reset_reset() 42 static int oxnas_reset_assert(struct reset_controller_dev *rcdev, in oxnas_reset_assert() argument 46 container_of(rcdev, struct oxnas_reset, rcdev); in oxnas_reset_assert() 57 container_of(rcdev, struct oxnas_reset, rcdev); in oxnas_reset_deassert() 99 data->rcdev.owner = THIS_MODULE; in oxnas_reset_probe() 100 data->rcdev.nr_resets = 32; in oxnas_reset_probe() 101 data->rcdev.ops = &oxnas_reset_ops; in oxnas_reset_probe() 102 data->rcdev.of_node = pdev->dev.of_node; in oxnas_reset_probe() [all …]
|
A 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() 58 return a10sr_reset_update(rcdev, id, true); in a10sr_reset_assert() 64 return a10sr_reset_update(rcdev, id, false); in a10sr_reset_deassert() 71 struct a10sr_reset *a10r = to_a10sr_rst(rcdev); in a10sr_reset_status() 100 a10r->rcdev.owner = THIS_MODULE; in a10sr_reset_probe() 101 a10r->rcdev.nr_resets = A10SR_RESET_NUM; in a10sr_reset_probe() 102 a10r->rcdev.ops = &a10sr_reset_ops; in a10sr_reset_probe() [all …]
|
A D | reset-brcmstb.c | 19 struct reset_controller_dev rcdev; member 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() 55 struct brcmstb_reset *priv = to_brcmstb(rcdev); in brcmstb_reset_deassert() 71 struct brcmstb_reset *priv = to_brcmstb(rcdev); in brcmstb_reset_status() 100 priv->rcdev.owner = THIS_MODULE; in brcmstb_reset_probe() 101 priv->rcdev.nr_resets = DIV_ROUND_DOWN_ULL(resource_size(res), in brcmstb_reset_probe() 103 priv->rcdev.ops = &brcmstb_reset_ops; in brcmstb_reset_probe() 104 priv->rcdev.of_node = kdev->of_node; in brcmstb_reset_probe() [all …]
|
A D | reset-meson.c | 29 struct reset_controller_dev rcdev; member 33 static int meson_reset_reset(struct reset_controller_dev *rcdev, in meson_reset_reset() argument 37 container_of(rcdev, struct meson_reset, rcdev); in meson_reset_reset() 47 static int meson_reset_level(struct reset_controller_dev *rcdev, in meson_reset_level() argument 51 container_of(rcdev, struct meson_reset, rcdev); in meson_reset_level() 76 return meson_reset_level(rcdev, id, true); in meson_reset_assert() 82 return meson_reset_level(rcdev, id, false); in meson_reset_deassert() 132 data->rcdev.owner = THIS_MODULE; in meson_reset_probe() 133 data->rcdev.nr_resets = data->param->reg_count * BITS_PER_REG; in meson_reset_probe() 134 data->rcdev.ops = &meson_reset_ops; in meson_reset_probe() [all …]
|
A D | reset-scmi.c | 22 struct reset_controller_dev rcdev; member 40 scmi_reset_assert(struct reset_controller_dev *rcdev, unsigned long id) in scmi_reset_assert() argument 42 const struct scmi_protocol_handle *ph = to_scmi_handle(rcdev); in scmi_reset_assert() 60 const struct scmi_protocol_handle *ph = to_scmi_handle(rcdev); in scmi_reset_deassert() 76 scmi_reset_reset(struct reset_controller_dev *rcdev, unsigned long id) in scmi_reset_reset() argument 78 const struct scmi_protocol_handle *ph = to_scmi_handle(rcdev); in scmi_reset_reset() 108 data->rcdev.ops = &scmi_reset_ops; in scmi_reset_probe() 109 data->rcdev.owner = THIS_MODULE; in scmi_reset_probe() 110 data->rcdev.of_node = np; in scmi_reset_probe() 111 data->rcdev.nr_resets = reset_ops->num_domains_get(ph); in scmi_reset_probe() [all …]
|
A D | reset-lpc18xx.c | 33 struct reset_controller_dev rcdev; member 69 struct lpc18xx_rgu_data *rc = to_rgu_data(rcdev); in lpc18xx_rgu_setclear_reset() 106 struct lpc18xx_rgu_data *rc = to_rgu_data(rcdev); in lpc18xx_rgu_reset() 108 lpc18xx_rgu_assert(rcdev, id); in lpc18xx_rgu_reset() 114 lpc18xx_rgu_setclear_reset(rcdev, id, false); in lpc18xx_rgu_reset() 123 struct lpc18xx_rgu_data *rc = to_rgu_data(rcdev); in lpc18xx_rgu_status() 188 rc->rcdev.owner = THIS_MODULE; in lpc18xx_rgu_probe() 189 rc->rcdev.nr_resets = 64; in lpc18xx_rgu_probe() 190 rc->rcdev.ops = &lpc18xx_rgu_ops; in lpc18xx_rgu_probe() 191 rc->rcdev.of_node = pdev->dev.of_node; in lpc18xx_rgu_probe() [all …]
|
/linux/drivers/clk/mediatek/ |
A D | reset.c | 19 struct reset_controller_dev rcdev; member 25 struct mtk_reset *data = container_of(rcdev, struct mtk_reset, rcdev); in mtk_reset_assert_set_clr() 34 struct mtk_reset *data = container_of(rcdev, struct mtk_reset, rcdev); in mtk_reset_deassert_set_clr() 43 struct mtk_reset *data = container_of(rcdev, struct mtk_reset, rcdev); in mtk_reset_assert() 52 struct mtk_reset *data = container_of(rcdev, struct mtk_reset, rcdev); in mtk_reset_deassert() 63 ret = mtk_reset_assert(rcdev, id); in mtk_reset() 67 return mtk_reset_deassert(rcdev, id); in mtk_reset() 114 data->rcdev.owner = THIS_MODULE; in mtk_register_reset_controller_common() 115 data->rcdev.nr_resets = num_regs * 32; in mtk_register_reset_controller_common() 116 data->rcdev.ops = reset_ops; in mtk_register_reset_controller_common() [all …]
|
/linux/drivers/media/rc/ |
A D | gpio-ir-recv.c | 22 struct rc_dev *rcdev; member 65 struct rc_dev *rcdev; in gpio_ir_recv_probe() local 89 if (!rcdev) in gpio_ir_recv_probe() 92 rcdev->priv = gpio_dev; in gpio_ir_recv_probe() 96 rcdev->input_id.vendor = 0x0001; in gpio_ir_recv_probe() 97 rcdev->input_id.product = 0x0001; in gpio_ir_recv_probe() 99 rcdev->dev.parent = dev; in gpio_ir_recv_probe() 101 rcdev->min_timeout = 1; in gpio_ir_recv_probe() 106 if (!rcdev->map_name) in gpio_ir_recv_probe() 107 rcdev->map_name = RC_MAP_EMPTY; in gpio_ir_recv_probe() [all …]
|
A D | bpf-lirc.c | 151 raw = rcdev->raw; in lirc_bpf_attach() 189 raw = rcdev->raw; in lirc_bpf_detach() 246 struct rc_dev *rcdev; in lirc_prog_attach() local 253 if (IS_ERR(rcdev)) in lirc_prog_attach() 254 return PTR_ERR(rcdev); in lirc_prog_attach() 266 struct rc_dev *rcdev; in lirc_prog_detach() local 278 if (IS_ERR(rcdev)) { in lirc_prog_detach() 280 return PTR_ERR(rcdev); in lirc_prog_detach() 295 struct rc_dev *rcdev; in lirc_prog_query() local 303 if (IS_ERR(rcdev)) in lirc_prog_query() [all …]
|
A D | imon_raw.c | 16 struct rc_dev *rcdev; member 76 ir_raw_event_handle(imon->rcdev); in imon_ir_data() 111 struct rc_dev *rcdev; in imon_probe() local 147 if (!rcdev) { in imon_probe() 154 rcdev->device_name = "iMON Station"; in imon_probe() 155 rcdev->driver_name = KBUILD_MODNAME; in imon_probe() 156 rcdev->input_phys = imon->phys; in imon_probe() 158 rcdev->dev.parent = &intf->dev; in imon_probe() 160 rcdev->map_name = RC_MAP_IMON_RSC; in imon_probe() 162 rcdev->priv = imon; in imon_probe() [all …]
|
A D | serial_ir.c | 130 struct rc_dev *rcdev; member 485 struct rc_dev *rcdev; in serial_ir_probe() local 489 if (!rcdev) in serial_ir_probe() 493 rcdev->tx_ir = serial_ir_tx; in serial_ir_probe() 519 rcdev->input_id.vendor = 0x0001; in serial_ir_probe() 520 rcdev->input_id.product = 0x0001; in serial_ir_probe() 522 rcdev->open = serial_ir_open; in serial_ir_probe() 523 rcdev->close = serial_ir_close; in serial_ir_probe() 528 rcdev->min_timeout = 1; in serial_ir_probe() 531 rcdev->rx_resolution = 250; in serial_ir_probe() [all …]
|
/linux/drivers/clk/mmp/ |
A D | reset.c | 10 #define rcdev_to_unit(rcdev) container_of(rcdev, struct mmp_clk_reset_unit, rcdev) argument 15 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); 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() 37 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_clk_reset_assert() 93 unit->rcdev.of_reset_n_cells = 1; in mmp_clk_reset_register() 94 unit->rcdev.nr_resets = nr_resets; in mmp_clk_reset_register() 95 unit->rcdev.ops = &mmp_clk_reset_ops; in mmp_clk_reset_register() 96 unit->rcdev.of_node = np; in mmp_clk_reset_register() 97 unit->rcdev.of_xlate = mmp_of_reset_xlate; in mmp_clk_reset_register() [all …]
|
/linux/drivers/clk/ux500/ |
A D | reset-prcc.c | 70 struct u8500_prcc_reset *ur = to_u8500_prcc_reset(rcdev); in u8500_prcc_reset() 91 struct u8500_prcc_reset *ur = to_u8500_prcc_reset(rcdev); in u8500_prcc_reset_assert() 104 struct u8500_prcc_reset *ur = to_u8500_prcc_reset(rcdev); in u8500_prcc_reset_deassert() 117 struct u8500_prcc_reset *ur = to_u8500_prcc_reset(rcdev); in u8500_prcc_reset_status() 161 struct reset_controller_dev *rcdev = &ur->rcdev; in u8500_prcc_reset_init() local 172 rcdev->owner = THIS_MODULE; in u8500_prcc_reset_init() 173 rcdev->ops = &u8500_prcc_reset_ops; in u8500_prcc_reset_init() 174 rcdev->of_node = np; in u8500_prcc_reset_init() 175 rcdev->of_reset_n_cells = 2; in u8500_prcc_reset_init() 176 rcdev->of_xlate = u8500_prcc_reset_xlate; in u8500_prcc_reset_init() [all …]
|
/linux/drivers/clk/hisilicon/ |
A 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) 43 static int hisi_reset_assert(struct reset_controller_dev *rcdev, in hisi_reset_assert() argument 103 rstc->rcdev.owner = THIS_MODULE; in hisi_reset_init() 104 rstc->rcdev.ops = &hisi_reset_ops; in hisi_reset_init() 105 rstc->rcdev.of_node = pdev->dev.of_node; in hisi_reset_init() 106 rstc->rcdev.of_reset_n_cells = 2; in hisi_reset_init() 107 rstc->rcdev.of_xlate = hisi_reset_of_xlate; in hisi_reset_init() 108 reset_controller_register(&rstc->rcdev); in hisi_reset_init() [all …]
|
/linux/include/linux/ |
A D | reset-controller.h | 19 int (*reset)(struct reset_controller_dev *rcdev, unsigned long id); 20 int (*assert)(struct reset_controller_dev *rcdev, unsigned long id); 21 int (*deassert)(struct reset_controller_dev *rcdev, unsigned long id); 22 int (*status)(struct reset_controller_dev *rcdev, unsigned long id); 77 int (*of_xlate)(struct reset_controller_dev *rcdev, 83 int reset_controller_register(struct reset_controller_dev *rcdev); 84 void reset_controller_unregister(struct reset_controller_dev *rcdev); 88 struct reset_controller_dev *rcdev); 93 static inline int reset_controller_register(struct reset_controller_dev *rcdev) in reset_controller_register() argument 98 static inline void reset_controller_unregister(struct reset_controller_dev *rcdev) in reset_controller_unregister() argument [all …]
|