Lines Matching refs:cmd_reg
1204 uint32 cmd_reg;
1214 cmd_reg = 0;
1215 cmd_reg = SFIELD(cmd_reg, SPI_DIR, 1);
1216 cmd_reg = SFIELD(cmd_reg, SPI_CMD_INDEX, cmd);
1219 cmd_reg = SFIELD(cmd_reg, SPI_RW, 1);
1243 cmd_reg = SFIELD(cmd_reg, SPI_FUNC, GFIELD(cmd_arg, CMD52_FUNCTION));
1244 cmd_reg = SFIELD(cmd_reg, SPI_ADDR, GFIELD(cmd_arg, CMD52_REG_ADDR));
1260 cmd_reg = SFIELD(cmd_reg, SPI_FUNC, GFIELD(cmd_arg, CMD53_FUNCTION));
1261 cmd_reg = SFIELD(cmd_reg, SPI_ADDR, GFIELD(cmd_arg, CMD53_REG_ADDR));
1262 cmd_reg = SFIELD(cmd_reg, SPI_BLKMODE, 0);
1263 cmd_reg = SFIELD(cmd_reg, SPI_OPCODE, GFIELD(cmd_arg, CMD53_OP_CODE));
1264 cmd_reg = SFIELD(cmd_reg, SPI_STUFF0, (sd->data_xfer_count>>8));
1269 cmd_reg |= 1;
1272 if (GFIELD(cmd_reg, SPI_RW) == 1) { /* Write */
1282 (GFIELD(cmd_reg, SPI_RW) == 1 ? "Wr" : "Rd"),
1295 spi_databuf[spi_pre_cmd_pad + 0] = (cmd_reg & 0xFF000000) >> 24;
1296 spi_databuf[spi_pre_cmd_pad + 1] = (cmd_reg & 0x00FF0000) >> 16;
1297 spi_databuf[spi_pre_cmd_pad + 2] = (cmd_reg & 0x0000FF00) >> 8;
1298 spi_databuf[spi_pre_cmd_pad + 3] = (cmd_reg & 0x000000FF);