Lines Matching refs:hw_cfg

575 	struct cdns_i3c_hw_config hw_cfg;  member
814 if (REV_ID_REV(data->hw_cfg.rev_id) >= REV_ID_VERSION(1, 7)) { in cdns_i3c_target_read_rx_fifo()
1147 if (request->payload_len > data->hw_cfg.ibi_mem_depth) { in cdns_i3c_target_ibi_raise_intr()
1173 if (REV_ID_REV(data->hw_cfg.rev_id) >= REV_ID_VERSION(1, 7)) { in cdns_i3c_target_ibi_raise()
1361 if (num_msgs > data->hw_cfg.cmd_mem_depth || num_msgs > data->hw_cfg.cmdr_mem_depth) { in cdns_i3c_do_ccc()
1378 if ((rxsize > data->hw_cfg.rx_mem_depth) || (txsize > data->hw_cfg.tx_mem_depth)) { in cdns_i3c_do_ccc()
1406 if (REV_ID_REV(data->hw_cfg.rev_id) >= REV_ID_VERSION(1, 7)) { in cdns_i3c_do_ccc()
1412 dev->name, REV_ID_REV_MAJOR(data->hw_cfg.rev_id), in cdns_i3c_do_ccc()
1413 REV_ID_REV_MINOR(data->hw_cfg.rev_id)); in cdns_i3c_do_ccc()
1860 if (num_msgs > data->hw_cfg.cmd_mem_depth || num_msgs > data->hw_cfg.cmdr_mem_depth) { in cdns_i3c_i2c_transfer()
1875 if ((rxsize > data->hw_cfg.rx_mem_depth) || (txsize > data->hw_cfg.tx_mem_depth)) { in cdns_i3c_i2c_transfer()
2155 if (num_msgs > data->hw_cfg.cmd_mem_depth || num_msgs > data->hw_cfg.cmdr_mem_depth) { in cdns_i3c_transfer()
2174 if ((rxsize > data->hw_cfg.rx_mem_depth) || (txsize > data->hw_cfg.tx_mem_depth)) { in cdns_i3c_transfer()
2451 if (REV_ID_REV(data->hw_cfg.rev_id) >= REV_ID_VERSION(1, 7)) { in cdns_i3c_target_sdr_tx_thr_int_handler()
2751 data->hw_cfg.rev_id = revid; in cdns_i3c_read_hw_cfg()
2752 data->hw_cfg.cmdr_mem_depth = CONF_STATUS0_CMDR_DEPTH(cfg0) * 4; in cdns_i3c_read_hw_cfg()
2753 data->hw_cfg.cmd_mem_depth = CONF_STATUS1_CMD_DEPTH(cfg1) * 4; in cdns_i3c_read_hw_cfg()
2754 data->hw_cfg.rx_mem_depth = CONF_STATUS1_RX_DEPTH(cfg1) * 4; in cdns_i3c_read_hw_cfg()
2755 data->hw_cfg.tx_mem_depth = CONF_STATUS1_TX_DEPTH(cfg1) * 4; in cdns_i3c_read_hw_cfg()
2756 data->hw_cfg.ddr_rx_mem_depth = CONF_STATUS1_SLV_DDR_RX_DEPTH(cfg1) * 4; in cdns_i3c_read_hw_cfg()
2757 data->hw_cfg.ddr_tx_mem_depth = CONF_STATUS1_SLV_DDR_TX_DEPTH(cfg1) * 4; in cdns_i3c_read_hw_cfg()
2758 data->hw_cfg.ibir_mem_depth = CONF_STATUS0_IBIR_DEPTH(cfg0) * 4; in cdns_i3c_read_hw_cfg()
2759 data->hw_cfg.ibi_mem_depth = CONF_STATUS1_IBI_DEPTH(cfg0) * 4; in cdns_i3c_read_hw_cfg()
2770 dev->name, data->hw_cfg.cmd_mem_depth, data->hw_cfg.cmdr_mem_depth, in cdns_i3c_read_hw_cfg()
2771 data->hw_cfg.rx_mem_depth, data->hw_cfg.tx_mem_depth, data->hw_cfg.ddr_rx_mem_depth, in cdns_i3c_read_hw_cfg()
2772 data->hw_cfg.ddr_tx_mem_depth, data->hw_cfg.ibi_mem_depth, in cdns_i3c_read_hw_cfg()
2773 data->hw_cfg.ibir_mem_depth); in cdns_i3c_read_hw_cfg()
2776 data->hw_cfg.cmd_mem_depth = MIN(data->hw_cfg.cmd_mem_depth, ARRAY_SIZE(data->xfer.cmds)); in cdns_i3c_read_hw_cfg()
2865 thr_ctrl |= TX_THR(MIN((data->hw_cfg.tx_mem_depth / 4) / 2, len / 2)); in cdns_i3c_target_tx_ddr_write()
2911 if (REV_ID_REV(data->hw_cfg.rev_id) >= REV_ID_VERSION(1, 7)) { in cdns_i3c_target_tx_write()
2929 if (REV_ID_REV(data->hw_cfg.rev_id) >= REV_ID_VERSION(1, 7)) { in cdns_i3c_target_tx_write()
2954 thr_ctrl |= TX_THR(MIN((data->hw_cfg.tx_mem_depth / 4) / 2, len / 2)); in cdns_i3c_target_tx_write()
3154 if (REV_ID_REV(data->hw_cfg.rev_id) >= REV_ID_VERSION(1, 7)) { in cdns_i3c_bus_init()
3214 if (REV_ID_REV(data->hw_cfg.rev_id) >= REV_ID_VERSION(1, 4)) { in cdns_i3c_bus_init()
3223 if (REV_ID_REV(data->hw_cfg.rev_id) >= REV_ID_VERSION(1, 5)) { in cdns_i3c_bus_init()
3240 sys_write32(TX_THR(I3C_TX_THR) | RX_THR(data->hw_cfg.rx_mem_depth), in cdns_i3c_bus_init()