Lines Matching refs:N1_bytes
147 if (rsp_payload->len != (s->N1_bytes + s->N2_bytes)) { in spi_response()
150 (s->N1_bytes + s->N2_bytes), rsp_payload->len); in spi_response()
154 trace_pnv_spi_log_Ncounts(s->N1_bits, s->N1_bytes, s->N1_tx, in spi_response()
179 s->N1_bytes, ecc_count, shift_in_count); in spi_response()
185 &rsp_payload->data[s->N1_bytes], s->N2_bytes, in spi_response()
284 s->N1_bytes = (s->N1_bits + 7) / 8; in calculate_N1()
289 s->N1_tx = s->N1_bytes; in calculate_N1()
293 s->N1_rx = s->N1_bytes; in calculate_N1()
297 s->N1_bytes = PNV_SPI_OPCODE_LO_NIBBLE(opcode); in calculate_N1()
298 s->N1_bits = s->N1_bytes * 8; in calculate_N1()
303 s->N1_tx = s->N1_bytes; in calculate_N1()
318 s->N1_rx = s->N1_bytes; in calculate_N1()
332 if (s->N1_bytes > (PNV_SPI_REG_SIZE + 1)) { in calculate_N1()
335 s->N1_bytes, s->N1_bits); in calculate_N1()
336 s->N1_bytes = PNV_SPI_REG_SIZE + 1; in calculate_N1()
337 s->N1_bits = s->N1_bytes * 8; in calculate_N1()
339 } else if (s->N1_bytes > PNV_SPI_REG_SIZE) { in calculate_N1()
342 s->N1_bytes, s->N1_bits); in calculate_N1()
343 s->N1_bytes = PNV_SPI_REG_SIZE; in calculate_N1()
344 s->N1_bits = s->N1_bytes * 8; in calculate_N1()
375 trace_pnv_spi_log_Ncounts(s->N1_bits, s->N1_bytes, s->N1_tx, in operation_shiftn1()
397 while (n1_count < s->N1_bytes) { in operation_shiftn1()
609 trace_pnv_spi_log_Ncounts(s->N1_bits, s->N1_bytes, s->N1_tx, in operation_shiftn2()
680 s->N1_bytes = 0; in operation_shiftn2()
1071 s->N1_bytes = 0; in do_reset()