Lines Matching refs:qcom_swrm_ctrl

176 struct qcom_swrm_ctrl {
208 int (*reg_read)(struct qcom_swrm_ctrl *ctrl, int reg, u32 *val);
209 int (*reg_write)(struct qcom_swrm_ctrl *ctrl, int reg, int val);
278 #define to_qcom_sdw(b) container_of(b, struct qcom_swrm_ctrl, bus)
280 static int qcom_swrm_ahb_reg_read(struct qcom_swrm_ctrl *ctrl, int reg,
300 static int qcom_swrm_ahb_reg_write(struct qcom_swrm_ctrl *ctrl,
320 static int qcom_swrm_cpu_reg_read(struct qcom_swrm_ctrl *ctrl, int reg,
327 static int qcom_swrm_cpu_reg_write(struct qcom_swrm_ctrl *ctrl, int reg,
352 static int swrm_wait_for_rd_fifo_avail(struct qcom_swrm_ctrl *ctrl)
378 static int swrm_wait_for_wr_fifo_avail(struct qcom_swrm_ctrl *ctrl)
404 static bool swrm_wait_for_wr_fifo_done(struct qcom_swrm_ctrl *ctrl)
430 static int qcom_swrm_cmd_fifo_wr_cmd(struct qcom_swrm_ctrl *ctrl, u8 cmd_data,
478 static int qcom_swrm_cmd_fifo_rd_cmd(struct qcom_swrm_ctrl *ctrl,
531 static int qcom_swrm_get_alert_slave_dev_num(struct qcom_swrm_ctrl *ctrl)
550 static void qcom_swrm_get_device_status(struct qcom_swrm_ctrl *ctrl)
570 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus);
588 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus);
642 struct qcom_swrm_ctrl *ctrl = dev_id;
667 struct qcom_swrm_ctrl *ctrl = dev_id;
798 static bool swrm_wait_for_frame_gen_enabled(struct qcom_swrm_ctrl *ctrl)
818 static int qcom_swrm_init(struct qcom_swrm_ctrl *ctrl)
899 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus);
933 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus);
948 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus);
959 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus);
1027 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus);
1053 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus);
1114 static void qcom_swrm_stream_free_ports(struct qcom_swrm_ctrl *ctrl,
1136 static int qcom_swrm_stream_alloc_ports(struct qcom_swrm_ctrl *ctrl,
1211 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
1226 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
1238 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
1247 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
1255 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
1302 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
1325 static int qcom_swrm_register_dais(struct qcom_swrm_ctrl *ctrl)
1362 static int qcom_swrm_get_port_config(struct qcom_swrm_ctrl *ctrl)
1474 struct qcom_swrm_ctrl *ctrl = s_file->private;
1504 struct qcom_swrm_ctrl *ctrl;
1660 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(&pdev->dev);
1670 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dev);
1735 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dev);