• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/char/

Lines Matching defs:brdnr

333 #define	BRDENABLE(brdnr,pagenr)						\
334 if (stl_brds[(brdnr)]->brdtype == BRD_ECH) \
335 outb((stl_brds[(brdnr)]->ioctrlval | ECH_BRDENABLE), \
336 stl_brds[(brdnr)]->ioctrl); \
337 else if (stl_brds[(brdnr)]->brdtype == BRD_ECHPCI) \
338 outb((pagenr), stl_brds[(brdnr)]->ioctrl);
340 #define BRDDISABLE(brdnr) \
341 if (stl_brds[(brdnr)]->brdtype == BRD_ECH) \
342 outb((stl_brds[(brdnr)]->ioctrlval | ECH_BRDDISABLE), \
343 stl_brds[(brdnr)]->ioctrl);
727 unsigned int minordev, brdnr, panelnr;
733 brdnr = MINOR2BRD(minordev);
734 if (brdnr >= stl_nrbrds)
736 brdp = stl_brds[brdnr];
1048 brdp = stl_brds[portp->brdnr];
1393 unsigned int brdnr, panelnr, portnr;
1404 for (brdnr = 0; brdnr < stl_nrbrds; brdnr++) {
1405 brdp = stl_brds[brdnr];
1411 totalport = brdnr * STL_MAXPORTS;
1623 portp->brdnr = panelp->brdnr;
1632 portp->stats.brd = portp->brdnr;
1706 brdp->irq, brdp->brdnr);
1718 "%x conflicts with another device\n", brdp->brdnr,
1727 brdp->brdnr, brdp->ioaddr2);
1730 brdp->brdnr, brdp->ioaddr1);
1785 panelp->brdnr = brdp->brdnr;
1859 brdp->irq, brdp->brdnr);
1888 brdp->irq, brdp->brdnr);
1928 "%x conflicts with another device\n", brdp->brdnr,
1937 brdp->brdnr, brdp->ioaddr2);
1940 brdp->brdnr, brdp->ioaddr1);
1972 panelp->brdnr = brdp->brdnr;
2077 brdp->brdnr, brdp->brdtype);
2084 stl_brdnames[brdp->brdtype], brdp->brdnr,
2095 brdp->brdnr, brdp->ioaddr1, brdp->irq, brdp->nrpanels,
2143 int brdnr, retval = -ENODEV;
2157 brdnr = stl_getbrdnr();
2158 if (brdnr < 0) {
2165 brdp->brdnr = (unsigned int)brdnr;
2166 stl_brds[brdp->brdnr] = brdp;
2203 brdp->brdnr * STL_MAXPORTS + i, &pdev->dev);
2207 stl_brds[brdp->brdnr] = NULL;
2229 brdp->brdnr * STL_MAXPORTS + i);
2231 stl_brds[brdp->brdnr] = NULL;
2264 stl_brdstats.brd = brdp->brdnr;
2289 static struct stlport *stl_getport(int brdnr, int panelnr, int portnr)
2294 if (brdnr < 0 || brdnr >= STL_MAXBRDS)
2296 brdp = stl_brds[brdnr];
2391 portp->stats.brd = portp->brdnr;
2412 portp = stl_getport(stl_dummyport.brdnr, stl_dummyport.panelnr,
2432 if (stl_dummybrd.brdnr >= STL_MAXBRDS)
2434 brdp = stl_brds[stl_dummybrd.brdnr];
2450 int brdnr, rc;
2455 brdnr = iminor(fp->f_dentry->d_inode);
2456 if (brdnr >= STL_MAXBRDS)
2564 BRDENABLE(panelp->brdnr, panelp->pagenr);
2591 panelp->brdnr, panelp->panelnr, i);
2599 BRDDISABLE(panelp->brdnr);
2626 BRDENABLE(portp->brdnr, portp->pagenr);
2630 BRDDISABLE(portp->brdnr);
2650 portp->portnr, portp->panelnr, portp->brdnr);
2685 brdp = stl_brds[portp->brdnr];
2825 pr_debug("SETPORT: portnr=%d panelnr=%d brdnr=%d\n",
2826 portp->portnr, portp->panelnr, portp->brdnr);
2837 BRDENABLE(portp->brdnr, portp->pagenr);
2872 BRDDISABLE(portp->brdnr);
2898 BRDENABLE(portp->brdnr, portp->pagenr);
2904 BRDDISABLE(portp->brdnr);
2923 BRDENABLE(portp->brdnr, portp->pagenr);
2927 BRDDISABLE(portp->brdnr);
2964 BRDENABLE(portp->brdnr, portp->pagenr);
2969 BRDDISABLE(portp->brdnr);
3000 BRDENABLE(portp->brdnr, portp->pagenr);
3004 BRDDISABLE(portp->brdnr);
3023 BRDENABLE(portp->brdnr, portp->pagenr);
3026 BRDDISABLE(portp->brdnr);
3039 BRDENABLE(portp->brdnr, portp->pagenr);
3044 BRDDISABLE(portp->brdnr);
3071 BRDENABLE(portp->brdnr, portp->pagenr);
3109 BRDDISABLE(portp->brdnr);
3134 BRDENABLE(portp->brdnr, portp->pagenr);
3147 BRDDISABLE(portp->brdnr);
3164 BRDENABLE(portp->brdnr, portp->pagenr);
3170 BRDDISABLE(portp->brdnr);
3445 BRDENABLE(portp->brdnr, portp->pagenr);
3567 BRDENABLE(panelp->brdnr, panelp->pagenr);
3585 panelp->brdnr, panelp->panelnr, i);
3595 BRDDISABLE(panelp->brdnr);
3619 BRDENABLE(portp->brdnr, portp->pagenr);
3621 BRDDISABLE(portp->brdnr);
3647 brdp = stl_brds[portp->brdnr];
3779 pr_debug("SETPORT: portnr=%d panelnr=%d brdnr=%d\n",
3780 portp->portnr, portp->panelnr, portp->brdnr);
3788 BRDENABLE(portp->brdnr, portp->pagenr);
3813 BRDDISABLE(portp->brdnr);
3843 BRDENABLE(portp->brdnr, portp->pagenr);
3846 BRDDISABLE(portp->brdnr);
3865 BRDENABLE(portp->brdnr, portp->pagenr);
3867 BRDDISABLE(portp->brdnr);
3903 BRDENABLE(portp->brdnr, portp->pagenr);
3905 BRDDISABLE(portp->brdnr);
3934 BRDENABLE(portp->brdnr, portp->pagenr);
3936 BRDDISABLE(portp->brdnr);
3956 BRDENABLE(portp->brdnr, portp->pagenr);
3959 BRDDISABLE(portp->brdnr);
3972 BRDENABLE(portp->brdnr, portp->pagenr);
3979 BRDDISABLE(portp->brdnr);
4004 BRDENABLE(portp->brdnr, portp->pagenr);
4048 BRDDISABLE(portp->brdnr);
4074 BRDENABLE(portp->brdnr, portp->pagenr);
4092 BRDDISABLE(portp->brdnr);
4109 BRDENABLE(portp->brdnr, portp->pagenr);
4112 BRDDISABLE(portp->brdnr);
4140 BRDENABLE(portp->brdnr, portp->pagenr);
4142 BRDDISABLE(portp->brdnr);
4374 BRDENABLE(portp->brdnr, portp->pagenr);
4546 brdp->brdnr = i;
4552 stl_brds[brdp->brdnr] = brdp;
4554 stl_brds[brdp->brdnr] = NULL;
4559 brdp->brdnr * STL_MAXPORTS + j, NULL);
4615 brdp->brdnr * STL_MAXPORTS + j);