Lines Matching refs:read_reg
256 static inline int read_reg(struct pi_adapter *pi, int reg) in read_reg() function
282 s = read_reg(pi, 7); in pt_wait()
283 e = read_reg(pi, 1); in pt_wait()
284 p = read_reg(pi, 2); in pt_wait()
317 if (read_reg(pi, 2) != 1) { in pt_command()
336 if (read_reg(pi, 7) & STAT_DRQ) { in pt_completion()
337 n = (((read_reg(pi, 4) + 256 * read_reg(pi, 5)) + in pt_completion()
339 p = read_reg(pi, 2) & 3; in pt_completion()
406 s = read_reg(pi, 7); in pt_poll_dsc()
407 e = read_reg(pi, 1); in pt_poll_dsc()
468 flg &= (read_reg(pi, i + 1) == expect[i]); in pt_reset()
473 printk("%3x", read_reg(pi, i + 1)); in pt_reset()
813 s = read_reg(pi, 7); in pt_read()
818 n = (read_reg(pi, 4) + 256 * read_reg(pi, 5)); in pt_read()
819 p = (read_reg(pi, 2) & 3); in pt_read()
914 s = read_reg(pi, 7); in pt_write()
919 n = (read_reg(pi, 4) + 256 * read_reg(pi, 5)); in pt_write()
920 p = (read_reg(pi, 2) & 3); in pt_write()