Lines Matching refs:stlibrd_t

227 static stlibrd_t	stli_dummybrd;
232 static stlibrd_t *stli_brds[STL_MAXBRDS];
691 static int stli_portinfo(stlibrd_t *brdp, stliport_t *portp, int portnr, char *pos);
693 static int stli_brdinit(stlibrd_t *brdp);
694 static int stli_startbrd(stlibrd_t *brdp);
698 static void stli_brdpoll(stlibrd_t *brdp, volatile cdkhdr_t *hdrp);
700 static int stli_hostcmd(stlibrd_t *brdp, stliport_t *portp);
701 static int stli_initopen(stlibrd_t *brdp, stliport_t *portp);
702 static int stli_rawopen(stlibrd_t *brdp, stliport_t *portp, unsigned long arg, int wait);
703 static int stli_rawclose(stlibrd_t *brdp, stliport_t *portp, unsigned long arg, int wait);
704 static int stli_waitcarrier(stlibrd_t *brdp, stliport_t *portp, struct file *filp);
708 static int stli_cmdwait(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size,…
709 static void stli_sendcmd(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size…
714 static void stli_read(stlibrd_t *brdp, stliport_t *portp);
724 static stlibrd_t *stli_allocbrd(void);
726 static void stli_ecpinit(stlibrd_t *brdp);
727 static void stli_ecpenable(stlibrd_t *brdp);
728 static void stli_ecpdisable(stlibrd_t *brdp);
729 static char *stli_ecpgetmemptr(stlibrd_t *brdp, unsigned long offset, int line);
730 static void stli_ecpreset(stlibrd_t *brdp);
731 static void stli_ecpintr(stlibrd_t *brdp);
732 static void stli_ecpeiinit(stlibrd_t *brdp);
733 static void stli_ecpeienable(stlibrd_t *brdp);
734 static void stli_ecpeidisable(stlibrd_t *brdp);
735 static char *stli_ecpeigetmemptr(stlibrd_t *brdp, unsigned long offset, int line);
736 static void stli_ecpeireset(stlibrd_t *brdp);
737 static void stli_ecpmcenable(stlibrd_t *brdp);
738 static void stli_ecpmcdisable(stlibrd_t *brdp);
739 static char *stli_ecpmcgetmemptr(stlibrd_t *brdp, unsigned long offset, int line);
740 static void stli_ecpmcreset(stlibrd_t *brdp);
741 static void stli_ecppciinit(stlibrd_t *brdp);
742 static char *stli_ecppcigetmemptr(stlibrd_t *brdp, unsigned long offset, int line);
743 static void stli_ecppcireset(stlibrd_t *brdp);
745 static void stli_onbinit(stlibrd_t *brdp);
746 static void stli_onbenable(stlibrd_t *brdp);
747 static void stli_onbdisable(stlibrd_t *brdp);
748 static char *stli_onbgetmemptr(stlibrd_t *brdp, unsigned long offset, int line);
749 static void stli_onbreset(stlibrd_t *brdp);
750 static void stli_onbeinit(stlibrd_t *brdp);
751 static void stli_onbeenable(stlibrd_t *brdp);
752 static void stli_onbedisable(stlibrd_t *brdp);
753 static char *stli_onbegetmemptr(stlibrd_t *brdp, unsigned long offset, int line);
754 static void stli_onbereset(stlibrd_t *brdp);
755 static void stli_bbyinit(stlibrd_t *brdp);
756 static char *stli_bbygetmemptr(stlibrd_t *brdp, unsigned long offset, int line);
757 static void stli_bbyreset(stlibrd_t *brdp);
758 static void stli_stalinit(stlibrd_t *brdp);
759 static char *stli_stalgetmemptr(stlibrd_t *brdp, unsigned long offset, int line);
760 static void stli_stalreset(stlibrd_t *brdp);
765 static inline int stli_initecp(stlibrd_t *brdp);
766 static inline int stli_initonb(stlibrd_t *brdp);
768 static inline int stli_eisamemprobe(stlibrd_t *brdp);
769 static inline int stli_initports(stlibrd_t *brdp);
839 stlibrd_t *brdp; in cleanup_module()
881 if ((brdp = stli_brds[i]) == (stlibrd_t *) NULL) in cleanup_module()
896 stli_brds[i] = (stlibrd_t *) NULL; in cleanup_module()
911 stlibrd_t *brdp; in stli_argbrds()
924 if ((brdp = stli_allocbrd()) == (stlibrd_t *) NULL) in stli_argbrds()
1027 stlibrd_t *brdp; in stli_open()
1042 if (brdp == (stlibrd_t *) NULL) in stli_open()
1157 stlibrd_t *brdp; in stli_close()
1247 static int stli_initopen(stlibrd_t *brdp, stliport_t *portp) in stli_initopen()
1299 static int stli_rawopen(stlibrd_t *brdp, stliport_t *portp, unsigned long arg, int wait) in stli_rawopen()
1380 static int stli_rawclose(stlibrd_t *brdp, stliport_t *portp, unsigned long arg, int wait) in stli_rawclose()
1457 static int stli_cmdwait(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size,… in stli_cmdwait()
1502 stlibrd_t *brdp; in stli_setport()
1516 if (brdp == (stlibrd_t *) NULL) in stli_setport()
1550 static int stli_waitcarrier(stlibrd_t *brdp, stliport_t *portp, struct file *filp) in stli_waitcarrier()
1627 stlibrd_t *brdp; in stli_write()
1647 if (brdp == (stlibrd_t *) NULL) in stli_write()
1783 stlibrd_t *brdp; in stli_flushchars()
1813 if (brdp == (stlibrd_t *) NULL) in stli_flushchars()
1875 stlibrd_t *brdp; in stli_writeroom()
1898 if (brdp == (stlibrd_t *) NULL) in stli_writeroom()
1935 stlibrd_t *brdp; in stli_charsinbuffer()
1953 if (brdp == (stlibrd_t *) NULL) in stli_charsinbuffer()
1982 stlibrd_t *brdp; in stli_getserial()
2001 if (brdp != (stlibrd_t *) NULL) in stli_getserial()
2051 stlibrd_t *brdp; in stli_ioctl()
2069 if (brdp == (stlibrd_t *) NULL) in stli_ioctl()
2180 stlibrd_t *brdp; in stli_settermios()
2196 if (brdp == (stlibrd_t *) NULL) in stli_settermios()
2278 stlibrd_t *brdp; in stli_stop()
2294 if (brdp == (stlibrd_t *) NULL) in stli_stop()
2313 stlibrd_t *brdp; in stli_start()
2328 if (brdp == (stlibrd_t *) NULL) in stli_start()
2383 stlibrd_t *brdp; in stli_hangup()
2398 if (brdp == (stlibrd_t *) NULL) in stli_hangup()
2441 stlibrd_t *brdp; in stli_flushbuffer()
2456 if (brdp == (stlibrd_t *) NULL) in stli_flushbuffer()
2486 stlibrd_t *brdp; in stli_breakctl()
2503 if (brdp == (stlibrd_t *) NULL) in stli_breakctl()
2557 stlibrd_t *brdp; in stli_sendxchar()
2573 if (brdp == (stlibrd_t *) NULL) in stli_sendxchar()
2599 static int stli_portinfo(stlibrd_t *brdp, stliport_t *portp, int portnr, char *pos) in stli_portinfo()
2662 stlibrd_t *brdp; in stli_readproc()
2693 if (brdp == (stlibrd_t *) NULL) in stli_readproc()
2737 static void stli_sendcmd(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size… in stli_sendcmd()
2790 static inline void stli_read(stlibrd_t *brdp, stliport_t *portp) in stli_read()
2906 static inline int stli_hostcmd(stlibrd_t *brdp, stliport_t *portp) in stli_hostcmd()
3077 static inline void stli_brdpoll(stlibrd_t *brdp, volatile cdkhdr_t *hdrp) in stli_brdpoll()
3146 stlibrd_t *brdp; in stli_poll()
3157 if (brdp == (stlibrd_t *) NULL) in stli_poll()
3350 static inline int stli_initports(stlibrd_t *brdp) in stli_initports()
3398 static void stli_ecpinit(stlibrd_t *brdp) in stli_ecpinit()
3417 static void stli_ecpenable(stlibrd_t *brdp) in stli_ecpenable()
3427 static void stli_ecpdisable(stlibrd_t *brdp) in stli_ecpdisable()
3437 static char *stli_ecpgetmemptr(stlibrd_t *brdp, unsigned long offset, int line) in stli_ecpgetmemptr()
3463 static void stli_ecpreset(stlibrd_t *brdp) in stli_ecpreset()
3477 static void stli_ecpintr(stlibrd_t *brdp) in stli_ecpintr()
3491 static void stli_ecpeiinit(stlibrd_t *brdp) in stli_ecpeiinit()
3513 static void stli_ecpeienable(stlibrd_t *brdp) in stli_ecpeienable()
3520 static void stli_ecpeidisable(stlibrd_t *brdp) in stli_ecpeidisable()
3527 static char *stli_ecpeigetmemptr(stlibrd_t *brdp, unsigned long offset, int line) in stli_ecpeigetmemptr()
3556 static void stli_ecpeireset(stlibrd_t *brdp) in stli_ecpeireset()
3570 static void stli_ecpmcenable(stlibrd_t *brdp) in stli_ecpmcenable()
3577 static void stli_ecpmcdisable(stlibrd_t *brdp) in stli_ecpmcdisable()
3584 static char *stli_ecpmcgetmemptr(stlibrd_t *brdp, unsigned long offset, int line) in stli_ecpmcgetmemptr()
3605 static void stli_ecpmcreset(stlibrd_t *brdp) in stli_ecpmcreset()
3619 static void stli_ecppciinit(stlibrd_t *brdp) in stli_ecppciinit()
3633 static char *stli_ecppcigetmemptr(stlibrd_t *brdp, unsigned long offset, int line) in stli_ecppcigetmemptr()
3659 static void stli_ecppcireset(stlibrd_t *brdp) in stli_ecppcireset()
3673 static void stli_onbinit(stlibrd_t *brdp) in stli_onbinit()
3694 static void stli_onbenable(stlibrd_t *brdp) in stli_onbenable()
3704 static void stli_onbdisable(stlibrd_t *brdp) in stli_onbdisable()
3714 static char *stli_onbgetmemptr(stlibrd_t *brdp, unsigned long offset, int line) in stli_onbgetmemptr()
3736 static void stli_onbreset(stlibrd_t *brdp) in stli_onbreset()
3755 static void stli_onbeinit(stlibrd_t *brdp) in stli_onbeinit()
3779 static void stli_onbeenable(stlibrd_t *brdp) in stli_onbeenable()
3789 static void stli_onbedisable(stlibrd_t *brdp) in stli_onbedisable()
3799 static char *stli_onbegetmemptr(stlibrd_t *brdp, unsigned long offset, int line) in stli_onbegetmemptr()
3828 static void stli_onbereset(stlibrd_t *brdp) in stli_onbereset()
3847 static void stli_bbyinit(stlibrd_t *brdp) in stli_bbyinit()
3864 static char *stli_bbygetmemptr(stlibrd_t *brdp, unsigned long offset, int line) in stli_bbygetmemptr()
3890 static void stli_bbyreset(stlibrd_t *brdp) in stli_bbyreset()
3909 static void stli_stalinit(stlibrd_t *brdp) in stli_stalinit()
3922 static char *stli_stalgetmemptr(stlibrd_t *brdp, unsigned long offset, int line) in stli_stalgetmemptr()
3944 static void stli_stalreset(stlibrd_t *brdp) in stli_stalreset()
3965 static inline int stli_initecp(stlibrd_t *brdp) in stli_initecp()
4120 static inline int stli_initonb(stlibrd_t *brdp) in stli_initonb()
4280 static int stli_startbrd(stlibrd_t *brdp) in stli_startbrd()
4393 static int __init stli_brdinit(stlibrd_t *brdp) in stli_brdinit()
4456 static inline int stli_eisamemprobe(stlibrd_t *brdp) in stli_eisamemprobe()
4559 if (stli_brds[i] == (stlibrd_t *) NULL) { in stli_getbrdnr()
4582 stlibrd_t *brdp; in stli_findeisabrds()
4615 if (brdp == (stlibrd_t *) NULL) in stli_findeisabrds()
4627 if ((brdp = stli_allocbrd()) == (stlibrd_t *) NULL) in stli_findeisabrds()
4660 stlibrd_t *brdp; in stli_initpcibrd()
4669 if ((brdp = stli_allocbrd()) == (stlibrd_t *) NULL) in stli_initpcibrd()
4733 static stlibrd_t *stli_allocbrd() in stli_allocbrd()
4735 stlibrd_t *brdp; in stli_allocbrd()
4737 brdp = (stlibrd_t *) stli_memalloc(sizeof(stlibrd_t)); in stli_allocbrd()
4738 if (brdp == (stlibrd_t *) NULL) { in stli_allocbrd()
4740 "(size=%d)\n", sizeof(stlibrd_t)); in stli_allocbrd()
4741 return((stlibrd_t *) NULL); in stli_allocbrd()
4744 memset(brdp, 0, sizeof(stlibrd_t)); in stli_allocbrd()
4758 stlibrd_t *brdp, *nxtbrdp; in stli_initbrds()
4782 if ((brdp = stli_allocbrd()) == (stlibrd_t *) NULL) in stli_initbrds()
4813 if (brdp == (stlibrd_t *) NULL) in stli_initbrds()
4817 if (nxtbrdp == (stlibrd_t *) NULL) in stli_initbrds()
4832 if (brdp == (stlibrd_t *) NULL) in stli_initbrds()
4857 stlibrd_t *brdp; in stli_memread()
4870 if (brdp == (stlibrd_t *) NULL) in stli_memread()
4913 stlibrd_t *brdp; in stli_memwrite()
4927 if (brdp == (stlibrd_t *) NULL) in stli_memwrite()
4967 stlibrd_t *brdp; in stli_getbrdstats()
4975 if (brdp == (stlibrd_t *) NULL) in stli_getbrdstats()
5006 stlibrd_t *brdp; in stli_getport()
5012 if (brdp == (stlibrd_t *) NULL) in stli_getport()
5032 stlibrd_t *brdp; in stli_portcmdstats()
5040 if (brdp == (stlibrd_t *) NULL) in stli_portcmdstats()
5106 stlibrd_t *brdp; in stli_getportstats()
5119 if (brdp == (stlibrd_t *) NULL) in stli_getportstats()
5137 stlibrd_t *brdp; in stli_clrportstats()
5150 if (brdp == (stlibrd_t *) NULL) in stli_clrportstats()
5197 stlibrd_t *brdp; in stli_getbrdstruct()
5199 if (copy_from_user(&stli_dummybrd, (void *)arg, sizeof(stlibrd_t))) in stli_getbrdstruct()
5204 if (brdp == (stlibrd_t *) NULL) in stli_getbrdstruct()
5206 if (copy_to_user((void *) arg, brdp, sizeof(stlibrd_t))) in stli_getbrdstruct()
5221 stlibrd_t *brdp; in stli_memioctl()
5269 if (brdp == (stlibrd_t *) NULL) in stli_memioctl()