Home
last modified time | relevance | path

Searched refs:PARTN_MASK (Results 1 – 4 of 4) sorted by relevance

/linux-2.4.37.9/drivers/ide/
Dide-io.c596 if ((blockend < block) || (blockend > drive->part[minor&PARTN_MASK].nr_sects)) { in ide_start_request()
598 (minor&PARTN_MASK)?'0'+(minor&PARTN_MASK):' ', block, rq->nr_sectors); in ide_start_request()
601 block += drive->part[minor&PARTN_MASK].start_sect + drive->sect0; in ide_start_request()
Dide.c1754 if ((MINOR(inode->i_rdev) & PARTN_MASK)) in ide_ioctl()
1774 if (put_user((unsigned)drive->part[MINOR(inode->i_rdev)&PARTN_MASK].start_sect, in ide_ioctl()
1786 if (put_user((unsigned)drive->part[MINOR(inode->i_rdev)&PARTN_MASK].start_sect, in ide_ioctl()
1798 if (put_user((unsigned)drive->part[MINOR(inode->i_rdev)&PARTN_MASK].start_sect, in ide_ioctl()
1804 return put_user(drive->part[MINOR(inode->i_rdev)&PARTN_MASK].nr_sects, (unsigned long *) arg); in ide_ioctl()
1806 return put_user((u64)drive->part[MINOR(inode->i_rdev)&PARTN_MASK].nr_sects << 9, (u64 *) arg); in ide_ioctl()
1814 if (MINOR(inode->i_rdev) & PARTN_MASK) in ide_ioctl()
Dide-cd.c1421 if (minor & PARTN_MASK) { in cdrom_start_read()
1423 minor &= ~PARTN_MASK; in cdrom_start_read()
/linux-2.4.37.9/include/linux/
Dide.h259 #define PARTN_MASK ((1<<PARTN_BITS)-1) /* a useful bit mask */ macro