Lines Matching refs:cp
160 u8 *cp = host->data->status; in mmc_spi_skip() local
172 if (cp[i] != byte) in mmc_spi_skip()
173 return cp[i]; in mmc_spi_skip()
219 u8 *cp = host->data->status; in mmc_spi_response_get() local
220 u8 *end = cp + host->t.len; in mmc_spi_response_get()
237 cp += 8; in mmc_spi_response_get()
238 while (cp < end && *cp == 0xff) in mmc_spi_response_get()
239 cp++; in mmc_spi_response_get()
242 if (cp == end) { in mmc_spi_response_get()
243 cp = host->data->status; in mmc_spi_response_get()
244 end = cp+1; in mmc_spi_response_get()
261 if (*cp != 0xff) in mmc_spi_response_get()
270 if (*cp & 0x80) { in mmc_spi_response_get()
272 rotator = *cp++ << 8; in mmc_spi_response_get()
274 if (cp == end) { in mmc_spi_response_get()
278 cp = host->data->status; in mmc_spi_response_get()
279 end = cp+1; in mmc_spi_response_get()
281 rotator |= *cp++; in mmc_spi_response_get()
289 cmd->resp[0] = *cp++; in mmc_spi_response_get()
315 while (cp < end && *cp == 0) in mmc_spi_response_get()
316 cp++; in mmc_spi_response_get()
317 if (cp == end) { in mmc_spi_response_get()
329 if (cp == end) { in mmc_spi_response_get()
333 cp = host->data->status; in mmc_spi_response_get()
334 end = cp+1; in mmc_spi_response_get()
338 rotator |= *cp << bitshift; in mmc_spi_response_get()
341 cmd->resp[0] |= *cp << 8; in mmc_spi_response_get()
352 if (cp == end) { in mmc_spi_response_get()
356 cp = host->data->status; in mmc_spi_response_get()
357 end = cp+1; in mmc_spi_response_get()
360 rotator |= *cp++ << bitshift; in mmc_spi_response_get()
364 cmd->resp[1] |= *cp++; in mmc_spi_response_get()
407 u8 *cp = data->status; in mmc_spi_command_send() local
424 memset(cp, 0xff, sizeof(data->status)); in mmc_spi_command_send()
426 cp[1] = 0x40 | cmd->opcode; in mmc_spi_command_send()
427 put_unaligned_be32(cmd->arg, cp + 2); in mmc_spi_command_send()
428 cp[6] = crc7_be(0, cp + 1, 5) | 0x01; in mmc_spi_command_send()
429 cp += 7; in mmc_spi_command_send()
467 cp += 2; /* min(N(CR)) + status */ in mmc_spi_command_send()
470 cp += 10; /* max(N(CR)) + status + min(N(RC),N(WR)) */ in mmc_spi_command_send()
472 cp++; in mmc_spi_command_send()
474 cp += 4; in mmc_spi_command_send()
476 cp = data->status + sizeof(data->status); in mmc_spi_command_send()
489 t->len = cp - data->status; in mmc_spi_command_send()
735 u8 *cp = t->rx_buf; in mmc_spi_readblock() local
740 temp = *cp; in mmc_spi_readblock()
741 *cp++ = leftover | (temp >> bitshift); in mmc_spi_readblock()
744 cp = (u8 *) &scratch->crc_val; in mmc_spi_readblock()
745 temp = *cp; in mmc_spi_readblock()
746 *cp++ = leftover | (temp >> bitshift); in mmc_spi_readblock()
748 temp = *cp; in mmc_spi_readblock()
749 *cp = leftover | (temp >> bitshift); in mmc_spi_readblock()