Lines Matching refs:minor
982 isdn_minor2drv(int minor) in isdn_minor2drv() argument
984 return (dev->drvmap[minor]); in isdn_minor2drv()
988 isdn_minor2chan(int minor) in isdn_minor2chan() argument
990 return (dev->chanmap[minor]); in isdn_minor2chan()
1062 uint minor = iminor(file_inode(file)); in isdn_read() local
1070 if (minor == ISDN_MINOR_STATUS) { in isdn_read()
1097 if (minor <= ISDN_MINOR_BMAX) { in isdn_read()
1098 printk(KERN_WARNING "isdn_read minor %d obsolete!\n", minor); in isdn_read()
1099 drvidx = isdn_minor2drv(minor); in isdn_read()
1108 chidx = isdn_minor2chan(minor); in isdn_read()
1122 if (minor <= ISDN_MINOR_CTRLMAX) { in isdn_read()
1123 drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL); in isdn_read()
1140 drvidx, isdn_minor2chan(minor - ISDN_MINOR_CTRL)); in isdn_read()
1157 if (minor <= ISDN_MINOR_PPPMAX) { in isdn_read()
1158 retval = isdn_ppp_read(minor - ISDN_MINOR_PPP, file, buf, count); in isdn_read()
1171 uint minor = iminor(file_inode(file)); in isdn_write() local
1176 if (minor == ISDN_MINOR_STATUS) in isdn_write()
1182 if (minor <= ISDN_MINOR_BMAX) { in isdn_write()
1183 printk(KERN_WARNING "isdn_write minor %d obsolete!\n", minor); in isdn_write()
1184 drvidx = isdn_minor2drv(minor); in isdn_write()
1193 chidx = isdn_minor2chan(minor); in isdn_write()
1198 if (minor <= ISDN_MINOR_CTRLMAX) { in isdn_write()
1199 drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL); in isdn_write()
1213 isdn_minor2chan(minor - ISDN_MINOR_CTRL)); in isdn_write()
1219 if (minor <= ISDN_MINOR_PPPMAX) { in isdn_write()
1220 retval = isdn_ppp_write(minor - ISDN_MINOR_PPP, file, buf, count); in isdn_write()
1234 unsigned int minor = iminor(file_inode(file)); in isdn_poll() local
1235 int drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL); in isdn_poll()
1238 if (minor == ISDN_MINOR_STATUS) { in isdn_poll()
1246 if (minor >= ISDN_MINOR_CTRL && minor <= ISDN_MINOR_CTRLMAX) { in isdn_poll()
1260 if (minor <= ISDN_MINOR_PPPMAX) { in isdn_poll()
1275 uint minor = iminor(file_inode(file)); in isdn_ioctl() local
1297 if (minor == ISDN_MINOR_STATUS) { in isdn_ioctl()
1330 if (minor <= ISDN_MINOR_BMAX) { in isdn_ioctl()
1331 drvidx = isdn_minor2drv(minor); in isdn_ioctl()
1338 if (minor <= ISDN_MINOR_CTRLMAX) { in isdn_ioctl()
1682 if (minor <= ISDN_MINOR_PPPMAX) in isdn_ioctl()
1683 return (isdn_ppp_ioctl(minor - ISDN_MINOR_PPP, file, cmd, arg)); in isdn_ioctl()
1712 uint minor = iminor(ino); in isdn_open() local
1718 if (minor == ISDN_MINOR_STATUS) { in isdn_open()
1736 if (minor <= ISDN_MINOR_BMAX) { in isdn_open()
1737 printk(KERN_WARNING "isdn_open minor %d obsolete!\n", minor); in isdn_open()
1738 drvidx = isdn_minor2drv(minor); in isdn_open()
1741 chidx = isdn_minor2chan(minor); in isdn_open()
1750 if (minor <= ISDN_MINOR_CTRLMAX) { in isdn_open()
1751 drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL); in isdn_open()
1759 if (minor <= ISDN_MINOR_PPPMAX) { in isdn_open()
1760 retval = isdn_ppp_open(minor - ISDN_MINOR_PPP, filep); in isdn_open()
1775 uint minor = iminor(ino); in isdn_close() local
1778 if (minor == ISDN_MINOR_STATUS) { in isdn_close()
1798 if (minor <= ISDN_MINOR_BMAX) in isdn_close()
1800 if (minor <= ISDN_MINOR_CTRLMAX) { in isdn_close()
1806 if (minor <= ISDN_MINOR_PPPMAX) in isdn_close()
1807 isdn_ppp_release(minor - ISDN_MINOR_PPP, filep); in isdn_close()