Lines Matching refs:cmd_regs

482 				      u32 cmd_regs[6])  in cdns_xspi_trigger_command()
484 writel(cmd_regs[5], cdns_xspi->iobase + CDNS_XSPI_CMD_REG_5); in cdns_xspi_trigger_command()
485 writel(cmd_regs[4], cdns_xspi->iobase + CDNS_XSPI_CMD_REG_4); in cdns_xspi_trigger_command()
486 writel(cmd_regs[3], cdns_xspi->iobase + CDNS_XSPI_CMD_REG_3); in cdns_xspi_trigger_command()
487 writel(cmd_regs[2], cdns_xspi->iobase + CDNS_XSPI_CMD_REG_2); in cdns_xspi_trigger_command()
488 writel(cmd_regs[1], cdns_xspi->iobase + CDNS_XSPI_CMD_REG_1); in cdns_xspi_trigger_command()
489 writel(cmd_regs[0], cdns_xspi->iobase + CDNS_XSPI_CMD_REG_0); in cdns_xspi_trigger_command()
678 u32 cmd_regs[6]; in cdns_xspi_send_stig_command() local
693 memset(cmd_regs, 0, sizeof(cmd_regs)); in cdns_xspi_send_stig_command()
694 cmd_regs[1] = CDNS_XSPI_CMD_FLD_P1_INSTR_CMD_1(op, data_phase); in cdns_xspi_send_stig_command()
695 cmd_regs[2] = CDNS_XSPI_CMD_FLD_P1_INSTR_CMD_2(op); in cdns_xspi_send_stig_command()
697 cmd_regs[3] = CDNS_XSPI_CMD_FLD_P1_INSTR_CMD_3(op, 1); in cdns_xspi_send_stig_command()
700 cmd_regs[3] = CDNS_XSPI_CMD_FLD_P1_INSTR_CMD_3(op, 0); in cdns_xspi_send_stig_command()
702 cmd_regs[4] = CDNS_XSPI_CMD_FLD_P1_INSTR_CMD_4(op, in cdns_xspi_send_stig_command()
705 cdns_xspi_trigger_command(cdns_xspi, cmd_regs); in cdns_xspi_send_stig_command()
708 cmd_regs[0] = CDNS_XSPI_STIG_DONE_FLAG; in cdns_xspi_send_stig_command()
709 cmd_regs[1] = CDNS_XSPI_CMD_FLD_DSEQ_CMD_1(op); in cdns_xspi_send_stig_command()
710 cmd_regs[2] = CDNS_XSPI_CMD_FLD_DSEQ_CMD_2(op); in cdns_xspi_send_stig_command()
711 cmd_regs[3] = CDNS_XSPI_CMD_FLD_DSEQ_CMD_3(op, dummybytes); in cdns_xspi_send_stig_command()
712 cmd_regs[4] = CDNS_XSPI_CMD_FLD_DSEQ_CMD_4(op, in cdns_xspi_send_stig_command()
718 cdns_xspi_trigger_command(cdns_xspi, cmd_regs); in cdns_xspi_send_stig_command()
945 static int cdns_xspi_prepare_generic(int cs, const void *dout, int len, int glue, u32 *cmd_regs) in cdns_xspi_prepare_generic() argument
951 memset(cmd_regs, 0x00, CMD_REG_LEN); in cdns_xspi_prepare_generic()
955 cmd_regs[3] |= GENERIC_CMD_DATA_INSERT(data[data_counter++], in cdns_xspi_prepare_generic()
960 cmd_regs[2] |= GENERIC_CMD_DATA_INSERT(data[data_counter++], in cdns_xspi_prepare_generic()
964 cmd_regs[1] |= GENERIC_CMD_DATA_INSERT(data[data_counter++], in cdns_xspi_prepare_generic()
967 cmd_regs[1] |= CDNS_XSPI_CMD_FLD_P1_GENERIC_CMD; in cdns_xspi_prepare_generic()
968 cmd_regs[3] |= CDNS_XSPI_CMD_FLD_P3_GENERIC_CMD(len); in cdns_xspi_prepare_generic()
969 cmd_regs[4] |= CDNS_XSPI_CMD_FLD_P4_GENERIC_CMD(cs, glue); in cdns_xspi_prepare_generic()
1008 static int cdns_xspi_prepare_transfer(int cs, int dir, int len, u32 *cmd_regs) in cdns_xspi_prepare_transfer() argument
1010 memset(cmd_regs, 0x00, CMD_REG_LEN); in cdns_xspi_prepare_transfer()
1012 cmd_regs[1] |= CDNS_XSPI_CMD_FLD_GENERIC_DSEQ_CMD_1; in cdns_xspi_prepare_transfer()
1013 cmd_regs[2] |= CDNS_XSPI_CMD_FLD_GENERIC_DSEQ_CMD_2(len); in cdns_xspi_prepare_transfer()
1014 cmd_regs[4] |= CDNS_XSPI_CMD_FLD_GENERIC_DSEQ_CMD_4(dir, cs); in cdns_xspi_prepare_transfer()
1074 u32 cmd_regs[6]; in cdns_xspi_transfer_one_message_b0() local
1088 false, cmd_regs); in cdns_xspi_transfer_one_message_b0()
1089 cdns_xspi_trigger_command(cdns_xspi, cmd_regs); in cdns_xspi_transfer_one_message_b0()
1093 cdns_xspi_prepare_generic(cs, txd, 1, true, cmd_regs); in cdns_xspi_transfer_one_message_b0()
1094 cdns_xspi_trigger_command(cdns_xspi, cmd_regs); in cdns_xspi_transfer_one_message_b0()
1096 cmd_regs); in cdns_xspi_transfer_one_message_b0()
1097 cdns_xspi_trigger_command(cdns_xspi, cmd_regs); in cdns_xspi_transfer_one_message_b0()