Lines Matching refs:response

184 	uint8_t response;  in sdhc_spi_card_busy()  local
187 ret = sdhc_spi_rx(config->spi_dev, data->spi_cfg, &response, 1); in sdhc_spi_card_busy()
192 if (response == 0xFF) { in sdhc_spi_card_busy()
207 uint8_t response; in sdhc_spi_wait_unbusy() local
210 ret = sdhc_spi_rx(config->spi_dev, data->spi_cfg, &response, 1); in sdhc_spi_wait_unbusy()
214 if (response == 0xFF) { in sdhc_spi_wait_unbusy()
230 uint8_t *response = dev_data->scratch; in sdhc_spi_response_get() local
231 uint8_t *end = response + rx_len; in sdhc_spi_response_get()
240 response += 8; in sdhc_spi_response_get()
241 while (response < end && ((*response & SD_SPI_START) == SD_SPI_START)) { in sdhc_spi_response_get()
242 response++; in sdhc_spi_response_get()
244 if (response == end) { in sdhc_spi_response_get()
248 response = dev_data->scratch; in sdhc_spi_response_get()
249 end = response + 1; in sdhc_spi_response_get()
252 response, 1); in sdhc_spi_response_get()
256 if (*response != 0xff) { in sdhc_spi_response_get()
263 if (*response == 0xff) { in sdhc_spi_response_get()
268 cmd->response[0] = *response++; in sdhc_spi_response_get()
270 if (cmd->response[0] != 0) { in sdhc_spi_response_get()
271 if (cmd->response[0] & (SD_SPI_R1PARAMETER_ERR | SD_SPI_R1ADDRESS_ERR)) { in sdhc_spi_response_get()
273 } else if (cmd->response[0] & (SD_SPI_R1ILLEGAL_CMD_ERR)) { in sdhc_spi_response_get()
275 } else if (cmd->response[0] & (SD_SPI_R1CMD_CRC_ERR)) { in sdhc_spi_response_get()
277 } else if (cmd->response[0] & (SD_SPI_R1ERASE_SEQ_ERR | SD_SPI_R1ERASE_RESET)) { in sdhc_spi_response_get()
292 while (response < end && (*response == 0x0)) { in sdhc_spi_response_get()
293 response++; in sdhc_spi_response_get()
295 if (response == end) { in sdhc_spi_response_get()
297 response--; in sdhc_spi_response_get()
306 if (response == end) { in sdhc_spi_response_get()
307 response = dev_data->scratch; in sdhc_spi_response_get()
308 end = response + 1; in sdhc_spi_response_get()
312 response, 1); in sdhc_spi_response_get()
317 cmd->response[0] = (*response) << 8; in sdhc_spi_response_get()
323 cmd->response[1] = 0; in sdhc_spi_response_get()
325 cmd->response[1] <<= 8; in sdhc_spi_response_get()
327 if (response == end) { in sdhc_spi_response_get()
328 response = dev_data->scratch; in sdhc_spi_response_get()
329 end = response + 1; in sdhc_spi_response_get()
333 response, 1); in sdhc_spi_response_get()
338 cmd->response[1] |= *response++; in sdhc_spi_response_get()