Lines Matching refs:ipath_diag_inuse
54 int ipath_diag_inuse; variable
289 if (ipath_diag_inuse) { in ipath_diag_open()
303 ipath_diag_inuse = -2; in ipath_diag_open()
375 if (ipath_diag_inuse && !diag_set_link && in ipath_diagpkt_write()
482 ipath_diag_inuse = 0; in ipath_diag_release()
502 else if (ipath_diag_inuse < 1 && (*off || count != 8)) in ipath_diag_read()
513 if (ipath_diag_inuse == -2) in ipath_diag_read()
514 ipath_diag_inuse++; in ipath_diag_read()
534 else if ((ipath_diag_inuse == -1 && (*off || count != 8)) || in ipath_diag_write()
535 ipath_diag_inuse == -2) /* read qw off 0, write qw off 0 */ in ipath_diag_write()
546 if (ipath_diag_inuse == -1) in ipath_diag_write()
547 ipath_diag_inuse = 1; /* all read/write OK now */ in ipath_diag_write()