Lines Matching defs:ref
220 int ref;
1542 if (floppy->ref != 1 && floppy->ref != -1)
1649 if (floppy->ref != 1 && floppy->ref != -1)
1813 if (p->ref && p->type != type)
1816 if (p->ref == -1 || (p->ref && filp->f_flags & O_EXCL))
1820 p->ref = -1;
1822 p->ref++;
1833 if (p->ref < 0)
1834 p->ref = 0;
1836 p->ref--;
1849 if (p->ref < 0)
1850 p->ref = 0;
1851 else if (!p->ref--) {
1853 p->ref = 0;