Lines Matching refs:cmd_arg
569 uint32 cmd_arg;
574 cmd_arg = 0;
575 cmd_arg = SFIELD(cmd_arg, CMD52_FUNCTION, func);
576 cmd_arg = SFIELD(cmd_arg, CMD52_REG_ADDR, regaddr);
577 cmd_arg = SFIELD(cmd_arg, CMD52_RW_FLAG, rw == SDIOH_READ ? 0 : 1);
578 cmd_arg = SFIELD(cmd_arg, CMD52_RAW, 0);
579 cmd_arg = SFIELD(cmd_arg, CMD52_DATA, rw == SDIOH_READ ? 0 : *byte);
584 SDIOH_CMD_52, cmd_arg, NULL, 0)) != SUCCESS) {
758 get_ocr(sdioh_info_t *sd, uint32 *cmd_arg, uint32 *cmd_rsp)
766 SDIOH_CMD_0, *cmd_arg, NULL, 0)) != SUCCESS) {
793 SDIOH_CMD_5, *cmd_arg, NULL, 0)) != SUCCESS) {
953 uint32 cmd_arg;
962 cmd_arg = 0;
963 if (get_ocr(sd, &cmd_arg, &cmd_rsp) != SUCCESS) {
1071 uint32 cmd_arg;
1074 cmd_arg = 0;
1077 cmd_arg = SFIELD(cmd_arg, CMD52_FUNCTION, func);
1078 cmd_arg = SFIELD(cmd_arg, CMD52_REG_ADDR, regaddr);
1079 cmd_arg = SFIELD(cmd_arg, CMD52_RW_FLAG, SDIOH_XFER_TYPE_READ);
1080 cmd_arg = SFIELD(cmd_arg, CMD52_RAW, 0);
1081 cmd_arg = SFIELD(cmd_arg, CMD52_DATA, 0);
1083 if ((status = sdspi_cmd_issue(sd, sd->sd_use_dma, SDIOH_CMD_52, cmd_arg, NULL, 0))
1095 cmd_arg = SFIELD(cmd_arg, CMD53_BYTE_BLK_CNT, regsize);
1096 cmd_arg = SFIELD(cmd_arg, CMD53_OP_CODE, 1);
1097 cmd_arg = SFIELD(cmd_arg, CMD53_BLK_MODE, 0);
1098 cmd_arg = SFIELD(cmd_arg, CMD53_FUNCTION, func);
1099 cmd_arg = SFIELD(cmd_arg, CMD53_REG_ADDR, regaddr);
1100 cmd_arg = SFIELD(cmd_arg, CMD53_RW_FLAG, SDIOH_XFER_TYPE_READ);
1107 if ((status = sdspi_cmd_issue(sd, sd->sd_use_dma, SDIOH_CMD_53, cmd_arg, NULL, 0))
1136 uint32 cmd_arg, rsp5, flags;
1138 cmd_arg = 0;
1141 cmd_arg = SFIELD(cmd_arg, CMD52_FUNCTION, func);
1142 cmd_arg = SFIELD(cmd_arg, CMD52_REG_ADDR, regaddr);
1143 cmd_arg = SFIELD(cmd_arg, CMD52_RW_FLAG, SDIOH_XFER_TYPE_WRITE);
1144 cmd_arg = SFIELD(cmd_arg, CMD52_RAW, 0);
1145 cmd_arg = SFIELD(cmd_arg, CMD52_DATA, data & 0xff);
1146 if ((status = sdspi_cmd_issue(sd, sd->sd_use_dma, SDIOH_CMD_52, cmd_arg, NULL, 0))
1157 cmd_arg = SFIELD(cmd_arg, CMD53_BYTE_BLK_CNT, regsize);
1158 cmd_arg = SFIELD(cmd_arg, CMD53_OP_CODE, 1);
1159 cmd_arg = SFIELD(cmd_arg, CMD53_BLK_MODE, 0);
1160 cmd_arg = SFIELD(cmd_arg, CMD53_FUNCTION, func);
1161 cmd_arg = SFIELD(cmd_arg, CMD53_REG_ADDR, regaddr);
1162 cmd_arg = SFIELD(cmd_arg, CMD53_RW_FLAG, SDIOH_XFER_TYPE_WRITE);
1173 if ((status = sdspi_cmd_issue(sd, sd->sd_use_dma, SDIOH_CMD_53, cmd_arg, NULL, 0))
1205 uint32 cmd_arg = arg;
1218 if (GFIELD(cmd_arg, CMD52_RW_FLAG) == 1) { /* Same for CMD52 and CMD53 */
1241 cmd52data = GFIELD(cmd_arg, CMD52_DATA);
1242 cmd_arg = arg;
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));
1246 if (GFIELD(cmd_arg, CMD52_RW_FLAG) == 1) {
1249 GFIELD(cmd_arg, CMD52_FUNCTION),
1250 GFIELD(cmd_arg, CMD52_REG_ADDR),
1259 cmd_arg = arg;
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));
1263 cmd_reg = SFIELD(cmd_reg, SPI_OPCODE, GFIELD(cmd_arg, CMD53_OP_CODE));
1283 GFIELD(cmd_arg, CMD53_FUNCTION),
1284 GFIELD(cmd_arg, CMD53_REG_ADDR),
1311 if ((cmd == SDIOH_CMD_53) && (GFIELD(cmd_arg, CMD53_RW_FLAG) == 1)) {
1374 if ((cmd == SDIOH_CMD_53) && (GFIELD(cmd_arg, CMD52_RW_FLAG) == 0)) {
1384 sdspi_abort(sd, GFIELD(cmd_arg, CMD53_FUNCTION));
1417 if ((cmd == SDIOH_CMD_52) && (GFIELD(cmd_arg, CMD52_RW_FLAG) == 0)) {
1420 GFIELD(cmd_arg, CMD53_FUNCTION),
1421 GFIELD(cmd_arg, CMD53_REG_ADDR),
1440 uint32 cmd_arg;
1448 cmd_arg = 0;
1469 cmd_arg = SFIELD(cmd_arg, CMD53_BYTE_BLK_CNT, num_blocks);
1470 cmd_arg = SFIELD(cmd_arg, CMD53_BLK_MODE, 1);
1474 cmd_arg = SFIELD(cmd_arg, CMD53_BYTE_BLK_CNT, nbytes);
1475 cmd_arg = SFIELD(cmd_arg, CMD53_BLK_MODE, 0);
1479 cmd_arg = SFIELD(cmd_arg, CMD53_OP_CODE, 0);
1481 cmd_arg = SFIELD(cmd_arg, CMD53_OP_CODE, 1);
1483 cmd_arg = SFIELD(cmd_arg, CMD53_FUNCTION, func);
1484 cmd_arg = SFIELD(cmd_arg, CMD53_REG_ADDR, addr);
1486 cmd_arg = SFIELD(cmd_arg, CMD53_RW_FLAG, SDIOH_XFER_TYPE_READ);
1488 cmd_arg = SFIELD(cmd_arg, CMD53_RW_FLAG, SDIOH_XFER_TYPE_WRITE);
1501 SDIOH_CMD_53, cmd_arg,