Lines Matching refs:qcom_swrm_ctrl

84 struct qcom_swrm_ctrl {
109 int (*reg_read)(struct qcom_swrm_ctrl *ctrl, int reg, u32 *val);
110 int (*reg_write)(struct qcom_swrm_ctrl *ctrl, int reg, int val);
128 #define to_qcom_sdw(b) container_of(b, struct qcom_swrm_ctrl, bus)
130 static int qcom_swrm_ahb_reg_read(struct qcom_swrm_ctrl *ctrl, int reg,
150 static int qcom_swrm_ahb_reg_write(struct qcom_swrm_ctrl *ctrl,
170 static int qcom_swrm_cpu_reg_read(struct qcom_swrm_ctrl *ctrl, int reg,
177 static int qcom_swrm_cpu_reg_write(struct qcom_swrm_ctrl *ctrl, int reg,
184 static int qcom_swrm_cmd_fifo_wr_cmd(struct qcom_swrm_ctrl *ctrl, u8 cmd_data,
216 static int qcom_swrm_cmd_fifo_rd_cmd(struct qcom_swrm_ctrl *ctrl,
257 static void qcom_swrm_get_device_status(struct qcom_swrm_ctrl *ctrl)
275 struct qcom_swrm_ctrl *ctrl = dev_id;
309 static int qcom_swrm_init(struct qcom_swrm_ctrl *ctrl)
350 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus);
384 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus);
407 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus);
432 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus);
458 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus);
498 struct qcom_swrm_ctrl *ctrl =
499 container_of(work, struct qcom_swrm_ctrl, slave_work);
506 static void qcom_swrm_stream_free_ports(struct qcom_swrm_ctrl *ctrl,
528 static int qcom_swrm_stream_alloc_ports(struct qcom_swrm_ctrl *ctrl,
595 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
610 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
622 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
631 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
639 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
668 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
687 static int qcom_swrm_register_dais(struct qcom_swrm_ctrl *ctrl)
724 static int qcom_swrm_get_port_config(struct qcom_swrm_ctrl *ctrl)
790 struct qcom_swrm_ctrl *ctrl;
905 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(&pdev->dev);