• Home
  • Raw
  • Download

Lines Matching refs:cp

200 	u8		*cp = host->data->status;  in mmc_spi_skip()  local
212 if (cp[i] != byte) in mmc_spi_skip()
213 return cp[i]; in mmc_spi_skip()
265 u8 *cp = host->data->status; in mmc_spi_response_get() local
266 u8 *end = cp + host->t.len; in mmc_spi_response_get()
283 cp += 8; in mmc_spi_response_get()
284 while (cp < end && *cp == 0xff) in mmc_spi_response_get()
285 cp++; in mmc_spi_response_get()
288 if (cp == end) { in mmc_spi_response_get()
289 cp = host->data->status; in mmc_spi_response_get()
290 end = cp+1; in mmc_spi_response_get()
307 if (*cp != 0xff) in mmc_spi_response_get()
316 if (*cp & 0x80) { in mmc_spi_response_get()
318 rotator = *cp++ << 8; in mmc_spi_response_get()
320 if (cp == end) { in mmc_spi_response_get()
324 cp = host->data->status; in mmc_spi_response_get()
325 end = cp+1; in mmc_spi_response_get()
327 rotator |= *cp++; in mmc_spi_response_get()
335 cmd->resp[0] = *cp++; in mmc_spi_response_get()
361 while (cp < end && *cp == 0) in mmc_spi_response_get()
362 cp++; in mmc_spi_response_get()
363 if (cp == end) in mmc_spi_response_get()
372 if (cp == end) { in mmc_spi_response_get()
376 cp = host->data->status; in mmc_spi_response_get()
377 end = cp+1; in mmc_spi_response_get()
381 rotator |= *cp << bitshift; in mmc_spi_response_get()
384 cmd->resp[0] |= *cp << 8; in mmc_spi_response_get()
395 if (cp == end) { in mmc_spi_response_get()
399 cp = host->data->status; in mmc_spi_response_get()
400 end = cp+1; in mmc_spi_response_get()
403 rotator |= *cp++ << bitshift; in mmc_spi_response_get()
407 cmd->resp[1] |= *cp++; in mmc_spi_response_get()
450 u8 *cp = data->status; in mmc_spi_command_send() local
467 memset(cp, 0xff, sizeof(data->status)); in mmc_spi_command_send()
469 cp[1] = 0x40 | cmd->opcode; in mmc_spi_command_send()
470 put_unaligned_be32(cmd->arg, cp+2); in mmc_spi_command_send()
471 cp[6] = crc7_be(0, cp+1, 5) | 0x01; in mmc_spi_command_send()
472 cp += 7; in mmc_spi_command_send()
510 cp += 2; /* min(N(CR)) + status */ in mmc_spi_command_send()
513 cp += 10; /* max(N(CR)) + status + min(N(RC),N(WR)) */ in mmc_spi_command_send()
515 cp++; in mmc_spi_command_send()
517 cp += 4; in mmc_spi_command_send()
519 cp = data->status + sizeof(data->status); in mmc_spi_command_send()
533 t->len = cp - data->status; in mmc_spi_command_send()
836 u8 *cp = t->rx_buf; in mmc_spi_readblock() local
841 temp = *cp; in mmc_spi_readblock()
842 *cp++ = leftover | (temp >> bitshift); in mmc_spi_readblock()
845 cp = (u8 *) &scratch->crc_val; in mmc_spi_readblock()
846 temp = *cp; in mmc_spi_readblock()
847 *cp++ = leftover | (temp >> bitshift); in mmc_spi_readblock()
849 temp = *cp; in mmc_spi_readblock()
850 *cp = leftover | (temp >> bitshift); in mmc_spi_readblock()