Lines Matching refs:nbytes

78 static void wpcm_fiu_set_data(struct wpcm_fiu_spi *fiu, const u8 *data, unsigned int nbytes)  in wpcm_fiu_set_data()  argument
82 for (i = 0; i < nbytes; i++) in wpcm_fiu_set_data()
86 static void wpcm_fiu_get_data(struct wpcm_fiu_spi *fiu, u8 *data, unsigned int nbytes) in wpcm_fiu_get_data() argument
90 for (i = 0; i < nbytes; i++) in wpcm_fiu_get_data()
146 return (op->addr.nbytes == 0 || op->addr.nbytes == 3) && in wpcm_fiu_normal_match()
147 op->dummy.nbytes == 0 && op->data.nbytes <= 4; in wpcm_fiu_normal_match()
158 wpcm_fiu_set_data(fiu, op->data.buf.out, op->data.nbytes); in wpcm_fiu_normal_exec()
160 ret = wpcm_fiu_do_uma(fiu, spi_get_chipselect(mem->spi, 0), op->addr.nbytes == 3, in wpcm_fiu_normal_exec()
161 op->data.dir == SPI_MEM_DATA_OUT, op->data.nbytes); in wpcm_fiu_normal_exec()
164 wpcm_fiu_get_data(fiu, op->data.buf.in, op->data.nbytes); in wpcm_fiu_normal_exec()
171 return op->cmd.opcode == 0x0b && op->addr.nbytes == 3 && in wpcm_fiu_fast_read_match()
172 op->dummy.nbytes == 1 && in wpcm_fiu_fast_read_match()
173 op->data.nbytes >= 1 && op->data.nbytes <= 4 && in wpcm_fiu_fast_read_match()
192 return op->addr.nbytes == 4 && op->dummy.nbytes == 0 && op->data.nbytes <= 4; in wpcm_fiu_4ba_match()
209 wpcm_fiu_set_data(fiu, op->data.buf.out, op->data.nbytes); in wpcm_fiu_4ba_exec()
210 wpcm_fiu_do_uma(fiu, cs, false, op->data.dir == SPI_MEM_DATA_OUT, op->data.nbytes); in wpcm_fiu_4ba_exec()
215 wpcm_fiu_get_data(fiu, op->data.buf.in, op->data.nbytes); in wpcm_fiu_4ba_exec()
235 return op->cmd.opcode == 0x9f && op->addr.nbytes == 0 && in wpcm_fiu_rdid_match()
236 op->dummy.nbytes == 0 && op->data.nbytes == 6 && in wpcm_fiu_rdid_match()
272 return (op->addr.nbytes == 0 || op->addr.nbytes == 3) && in wpcm_fiu_dummy_match()
273 op->dummy.nbytes >= 1 && op->dummy.nbytes <= 5 && in wpcm_fiu_dummy_match()
274 op->data.nbytes <= 4; in wpcm_fiu_dummy_match()
287 wpcm_fiu_do_uma(fiu, cs, op->addr.nbytes != 0, true, op->dummy.nbytes - 1); in wpcm_fiu_dummy_exec()
292 wpcm_fiu_do_uma(fiu, cs, false, false, op->data.nbytes); in wpcm_fiu_dummy_exec()
293 wpcm_fiu_get_data(fiu, op->data.buf.in, op->data.nbytes); in wpcm_fiu_dummy_exec()
369 if (op->data.nbytes > 4) in wpcm_fiu_adjust_op_size()
370 op->data.nbytes = 4; in wpcm_fiu_adjust_op_size()