Lines Matching refs:qcom_swrm_ctrl

141 struct qcom_swrm_ctrl {  struct
173 int (*reg_read)(struct qcom_swrm_ctrl *ctrl, int reg, u32 *val); argument
174 int (*reg_write)(struct qcom_swrm_ctrl *ctrl, int reg, int val); argument
203 #define to_qcom_sdw(b) container_of(b, struct qcom_swrm_ctrl, bus)
205 static int qcom_swrm_ahb_reg_read(struct qcom_swrm_ctrl *ctrl, int reg, in qcom_swrm_ahb_reg_read()
225 static int qcom_swrm_ahb_reg_write(struct qcom_swrm_ctrl *ctrl, in qcom_swrm_ahb_reg_write()
245 static int qcom_swrm_cpu_reg_read(struct qcom_swrm_ctrl *ctrl, int reg, in qcom_swrm_cpu_reg_read()
252 static int qcom_swrm_cpu_reg_write(struct qcom_swrm_ctrl *ctrl, int reg, in qcom_swrm_cpu_reg_write()
277 static int swrm_wait_for_rd_fifo_avail(struct qcom_swrm_ctrl *swrm) in swrm_wait_for_rd_fifo_avail()
302 static int swrm_wait_for_wr_fifo_avail(struct qcom_swrm_ctrl *swrm) in swrm_wait_for_wr_fifo_avail()
327 static int qcom_swrm_cmd_fifo_wr_cmd(struct qcom_swrm_ctrl *swrm, u8 cmd_data, in qcom_swrm_cmd_fifo_wr_cmd()
375 static int qcom_swrm_cmd_fifo_rd_cmd(struct qcom_swrm_ctrl *swrm, in qcom_swrm_cmd_fifo_rd_cmd()
425 static int qcom_swrm_get_alert_slave_dev_num(struct qcom_swrm_ctrl *ctrl) in qcom_swrm_get_alert_slave_dev_num()
444 static void qcom_swrm_get_device_status(struct qcom_swrm_ctrl *ctrl) in qcom_swrm_get_device_status()
464 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus); in qcom_swrm_set_slave_dev_num()
482 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus); in qcom_swrm_enumerate()
532 struct qcom_swrm_ctrl *swrm = dev_id; in qcom_swrm_wake_irq_handler()
556 struct qcom_swrm_ctrl *swrm = dev_id; in qcom_swrm_irq_handler()
672 static int qcom_swrm_init(struct qcom_swrm_ctrl *ctrl) in qcom_swrm_init()
730 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus); in qcom_swrm_xfer_msg()
764 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus); in qcom_swrm_pre_bank_switch()
779 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus); in qcom_swrm_port_params()
790 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus); in qcom_swrm_transport_params()
850 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus); in qcom_swrm_port_enable()
876 struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus); in qcom_swrm_compute_params()
937 static void qcom_swrm_stream_free_ports(struct qcom_swrm_ctrl *ctrl, in qcom_swrm_stream_free_ports()
959 static int qcom_swrm_stream_alloc_ports(struct qcom_swrm_ctrl *ctrl, in qcom_swrm_stream_alloc_ports()
1034 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev); in qcom_swrm_hw_params()
1049 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev); in qcom_swrm_hw_free()
1061 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev); in qcom_swrm_set_sdw_stream()
1070 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev); in qcom_swrm_get_sdw_stream()
1078 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev); in qcom_swrm_startup()
1115 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev); in qcom_swrm_shutdown()
1137 static int qcom_swrm_register_dais(struct qcom_swrm_ctrl *ctrl) in qcom_swrm_register_dais()
1174 static int qcom_swrm_get_port_config(struct qcom_swrm_ctrl *ctrl) in qcom_swrm_get_port_config()
1274 struct qcom_swrm_ctrl *swrm = s_file->private; in swrm_reg_show()
1303 struct qcom_swrm_ctrl *ctrl;
1463 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(&pdev->dev);
1471 static bool swrm_wait_for_frame_gen_enabled(struct qcom_swrm_ctrl *swrm)
1493 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dev);
1544 struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dev);