Lines Matching refs:io_pos
64 unsigned char io_pos; member
162 while (host->io_pos && length) { in jmb38x_ms_read_data()
166 host->io_pos--; in jmb38x_ms_read_data()
183 for (host->io_pos = 4; host->io_pos; --host->io_pos) { in jmb38x_ms_read_data()
201 while (host->io_pos > 4 && length) { in jmb38x_ms_read_reg_data()
205 host->io_pos--; in jmb38x_ms_read_reg_data()
211 while (host->io_pos && length) { in jmb38x_ms_read_reg_data()
215 host->io_pos--; in jmb38x_ms_read_reg_data()
227 if (host->io_pos) { in jmb38x_ms_write_data()
228 while (host->io_pos < 4 && length) { in jmb38x_ms_write_data()
229 host->io_word[0] |= buf[off++] << (host->io_pos * 8); in jmb38x_ms_write_data()
230 host->io_pos++; in jmb38x_ms_write_data()
235 if (host->io_pos == 4 in jmb38x_ms_write_data()
238 host->io_pos = 0; in jmb38x_ms_write_data()
240 } else if (host->io_pos) { in jmb38x_ms_write_data()
260 host->io_pos++; in jmb38x_ms_write_data()
263 host->io_pos++; in jmb38x_ms_write_data()
266 host->io_pos++; in jmb38x_ms_write_data()
269 off += host->io_pos; in jmb38x_ms_write_data()
280 while (host->io_pos < 4 && length) { in jmb38x_ms_write_reg_data()
281 host->io_word[0] &= ~(0xff << (host->io_pos * 8)); in jmb38x_ms_write_reg_data()
282 host->io_word[0] |= buf[off++] << (host->io_pos * 8); in jmb38x_ms_write_reg_data()
283 host->io_pos++; in jmb38x_ms_write_reg_data()
290 while (host->io_pos < 8 && length) { in jmb38x_ms_write_reg_data()
291 host->io_word[1] &= ~(0xff << (host->io_pos * 8)); in jmb38x_ms_write_reg_data()
292 host->io_word[1] |= buf[off++] << (host->io_pos * 8); in jmb38x_ms_write_reg_data()
293 host->io_pos++; in jmb38x_ms_write_reg_data()
359 } else if (host->io_pos) { in jmb38x_ms_transfer_data()
385 host->io_pos = 0; in jmb38x_ms_issue_cmd()
568 host->io_pos = 8; in jmb38x_ms_isr()