taglinefilesource code
sl132drivers/net/slip.csl_initialize(struct slip *sl, struct device *dev)
sl134drivers/net/slip.csl->inuse    = 0;
sl135drivers/net/slip.csl->sending    = 0;
sl136drivers/net/slip.csl->escape    = 0;
sl137drivers/net/slip.csl->flags    = 0;
sl139drivers/net/slip.csl->mode    = SL_MODE_CSLIP;  /* Default */
sl141drivers/net/slip.csl->mode    = SL_MODE_SLIP;    /* Default for non compressors */
sl144drivers/net/slip.csl->line    = dev->base_addr;
sl145drivers/net/slip.csl->tty    = NULL;
sl146drivers/net/slip.csl->dev    = dev;
sl147drivers/net/slip.csl->slcomp    = NULL;
sl150drivers/net/slip.csl->rbuff    = NULL;
sl151drivers/net/slip.csl->xbuff    = NULL;
sl152drivers/net/slip.csl->cbuff    = NULL;
sl154drivers/net/slip.csl->rhead    = NULL;
sl155drivers/net/slip.csl->rend    = NULL;
sl167drivers/net/slip.cstruct slip *sl;
sl172drivers/net/slip.csl = &sl_ctrl[i];
sl173drivers/net/slip.cif (sl->tty == tty) return(sl);
sl184drivers/net/slip.cstruct slip *sl;
sl190drivers/net/slip.csl = &sl_ctrl[i];
sl191drivers/net/slip.cif (sl->inuse == 0) {
sl192drivers/net/slip.csl->inuse = 1;
sl193drivers/net/slip.csl->tty = NULL;
sl195drivers/net/slip.creturn(sl);
sl205drivers/net/slip.csl_free(struct slip *sl)
sl209drivers/net/slip.cif (sl->inuse) {
sl212drivers/net/slip.csl->inuse = 0;
sl213drivers/net/slip.csl->tty = NULL;
sl222drivers/net/slip.cstatic void sl_changedmtu(struct slip *sl)
sl224drivers/net/slip.cstruct device *dev=sl->dev;
sl227drivers/net/slip.cint omtu=sl->mtu;
sl229drivers/net/slip.csl->mtu=dev->mtu;
sl241drivers/net/slip.csl->mtu=omtu;
sl254drivers/net/slip.ctf=(unsigned char *)sl->dev->mem_start;
sl255drivers/net/slip.csl->dev->mem_start=(unsigned long)tb;
sl256drivers/net/slip.csl->dev->mem_end=(unsigned long) (sl->dev->mem_start + l);
sl257drivers/net/slip.crf=(unsigned char *)sl->dev->rmem_start;
sl258drivers/net/slip.csl->dev->rmem_start=(unsigned long)rb;
sl259drivers/net/slip.csl->dev->rmem_end=(unsigned long) (sl->dev->rmem_start + l);
sl261drivers/net/slip.csl->xbuff = (unsigned char *) sl->dev->mem_start;
sl262drivers/net/slip.csl->rbuff = (unsigned char *) sl->dev->rmem_start;
sl263drivers/net/slip.csl->rend  = (unsigned char *) sl->dev->rmem_end;
sl264drivers/net/slip.csl->rhead = sl->rbuff;
sl266drivers/net/slip.ccf=sl->cbuff;
sl267drivers/net/slip.csl->cbuff=cb;
sl269drivers/net/slip.csl->escape=0;
sl270drivers/net/slip.csl->sending=0;
sl271drivers/net/slip.csl->rcount=0;
sl286drivers/net/slip.csl_enqueue(struct slip *sl, unsigned char c)
sl292drivers/net/slip.cif (sl->rhead < sl->rend) {
sl293drivers/net/slip.c*sl->rhead = c;
sl294drivers/net/slip.csl->rhead++;
sl295drivers/net/slip.csl->rcount++;
sl296drivers/net/slip.c} else sl->roverrun++;
sl302drivers/net/slip.csl_dequeue(struct slip *sl, int i)
sl308drivers/net/slip.cif (sl->rhead > sl->rbuff) {
sl309drivers/net/slip.csl->rhead -= i;
sl310drivers/net/slip.csl->rcount -= i;
sl318drivers/net/slip.csl_lock(struct slip *sl)
sl324drivers/net/slip.csl->sending = 1;
sl325drivers/net/slip.csl->dev->tbusy = 1;
sl332drivers/net/slip.csl_unlock(struct slip *sl)
sl338drivers/net/slip.csl->sending = 0;
sl339drivers/net/slip.csl->dev->tbusy = 0;
sl346drivers/net/slip.csl_bump(struct slip *sl)
sl353drivers/net/slip.ccount = sl->rcount;
sl354drivers/net/slip.cif (sl->mode & SL_MODE_CSLIP) {
sl355drivers/net/slip.cif ((c = sl->rbuff[0]) & SL_TYPE_COMPRESSED_TCP) {
sl359drivers/net/slip.cif ((sl->rhead + 80) < sl->rend) {
sl360drivers/net/slip.csl->rhead += 80;
sl361drivers/net/slip.csl->rcount += 80;
sl364drivers/net/slip.csl->roverrun++;
sl371drivers/net/slip.ccount = slhc_uncompress(sl->slcomp, sl->rbuff, count);
sl373drivers/net/slip.csl->errors++;
sl377drivers/net/slip.csl->rbuff[0] &= 0x4f;
sl378drivers/net/slip.cif (slhc_remember(sl->slcomp, sl->rbuff, count) <= 0) {
sl379drivers/net/slip.csl->errors++;
sl385drivers/net/slip.cDPRINTF((DBG_SLIP, "<< \"%s\" recv:\r\n", sl->dev->name));
sl386drivers/net/slip.cip_dump(sl->rbuff, sl->rcount);
sl391drivers/net/slip.csl->rcount, sl->rbuff));
sl393drivers/net/slip.cdone = dev_rint(sl->rbuff, count, 0, sl->dev);
sl397drivers/net/slip.csl->rpacket++;
sl403drivers/net/slip.csl_next(struct slip *sl)
sl405drivers/net/slip.cDPRINTF((DBG_SLIP, "SLIP: sl_next(0x%X) called!\n", sl));
sl406drivers/net/slip.csl_unlock(sl);
sl407drivers/net/slip.cdev_tint(sl->dev);
sl413drivers/net/slip.csl_encaps(struct slip *sl, unsigned char *icp, int len)
sl419drivers/net/slip.cDPRINTF((DBG_SLIP, ">> \"%s\" sent:\r\n", sl->dev->name));
sl423drivers/net/slip.cif(sl->mtu != sl->dev->mtu)  /* Someone has been ifconfigging */
sl424drivers/net/slip.csl_changedmtu(sl);
sl426drivers/net/slip.cif(len>sl->mtu)    /* Sigh, shouldn't occur BUT ... */
sl428drivers/net/slip.clen=sl->mtu;
sl433drivers/net/slip.cif(sl->mode & SL_MODE_CSLIP)
sl434drivers/net/slip.clen = slhc_compress(sl->slcomp, p, len, sl->cbuff, &p, 1);
sl442drivers/net/slip.cbp = sl->xbuff;
sl471drivers/net/slip.cif(sl->mode & SL_MODE_SLIP6)
sl472drivers/net/slip.ccount=slip_esc6(p, (unsigned char *)sl->xbuff,len);
sl474drivers/net/slip.ccount=slip_esc(p, (unsigned char *)sl->xbuff,len);
sl476drivers/net/slip.csl->spacket++;
sl477drivers/net/slip.cbp = sl->xbuff;
sl481drivers/net/slip.cif (tty_write_data(sl->tty, (char *) bp, count,
sl482drivers/net/slip.c(void (*)(void *))sl_next, (void *) sl) == 0) {
sl484drivers/net/slip.csl_next(sl);
sl494drivers/net/slip.cstruct slip *sl;
sl497drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
sl498drivers/net/slip.ctty = sl->tty;
sl500drivers/net/slip.cdev->name, skb, sl->sending));
sl507drivers/net/slip.cif (sl->sending) {
sl509drivers/net/slip.csl->sbusy++;
sl516drivers/net/slip.cif(sl->mode & SL_MODE_AX25)
sl527drivers/net/slip.csl_lock(sl);
sl528drivers/net/slip.csl_encaps(sl, (unsigned char *) (skb + 1), skb->len);
sl540drivers/net/slip.cstruct slip *sl=&sl_ctrl[dev->base_addr];
sl541drivers/net/slip.cif(sl->mode&SL_MODE_AX25)
sl554drivers/net/slip.cstruct slip *sl=&sl_ctrl[dev->base_addr];
sl556drivers/net/slip.cif((sl->mode&SL_MODE_AX25) && type!=NET16(ETH_P_AX25))
sl617drivers/net/slip.cstruct slip *sl=&sl_ctrl[dev->base_addr];
sl619drivers/net/slip.cif(sl->mode&SL_MODE_AX25)
sl630drivers/net/slip.cstruct slip *sl=&sl_ctrl[dev->base_addr];
sl632drivers/net/slip.cif(sl->mode&SL_MODE_AX25)
sl655drivers/net/slip.cstruct slip *sl;
sl659drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
sl660drivers/net/slip.cif (sl->tty == NULL) {
sl661drivers/net/slip.cDPRINTF((DBG_SLIP, "SLIP: channel %d not connected!\n", sl->line));
sl664drivers/net/slip.csl->dev = dev;
sl681drivers/net/slip.csl->mtu    = dev->mtu;
sl682drivers/net/slip.csl->dev->mem_start  = (unsigned long) p;
sl683drivers/net/slip.csl->dev->mem_end  = (unsigned long) (sl->dev->mem_start + l);
sl690drivers/net/slip.csl->dev->rmem_start  = (unsigned long) p;
sl691drivers/net/slip.csl->dev->rmem_end  = (unsigned long) (sl->dev->rmem_start + l);
sl693drivers/net/slip.csl->xbuff    = (unsigned char *) sl->dev->mem_start;
sl694drivers/net/slip.csl->rbuff    = (unsigned char *) sl->dev->rmem_start;
sl695drivers/net/slip.csl->rend    = (unsigned char *) sl->dev->rmem_end;
sl696drivers/net/slip.csl->rhead    = sl->rbuff;
sl698drivers/net/slip.csl->escape    = 0;
sl699drivers/net/slip.csl->sending    = 0;
sl700drivers/net/slip.csl->rcount    = 0;
sl704drivers/net/slip.ckfree((unsigned char *)sl->dev->mem_start);
sl708drivers/net/slip.csl->cbuff    = p;
sl710drivers/net/slip.csl->slcomp = slhc_init(16, 16);
sl711drivers/net/slip.cif (sl->slcomp == NULL) {
sl712drivers/net/slip.ckfree((unsigned char *)sl->dev->mem_start);
sl713drivers/net/slip.ckfree((unsigned char *)sl->dev->rmem_start);
sl714drivers/net/slip.ckfree(sl->cbuff);
sl719drivers/net/slip.cDPRINTF((DBG_SLIP, "SLIP: channel %d opened.\n", sl->line));
sl728drivers/net/slip.cstruct slip *sl;
sl730drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
sl731drivers/net/slip.cif (sl->tty == NULL) {
sl732drivers/net/slip.cDPRINTF((DBG_SLIP, "SLIP: channel %d not connected!\n", sl->line));
sl735drivers/net/slip.csl_free(sl);
sl738drivers/net/slip.ckfree(sl->rbuff);
sl739drivers/net/slip.ckfree(sl->xbuff);
sl740drivers/net/slip.ckfree(sl->cbuff);
sl741drivers/net/slip.cslhc_free(sl->slcomp);
sl743drivers/net/slip.csl_initialize(sl, dev);
sl745drivers/net/slip.cDPRINTF((DBG_SLIP, "SLIP: channel %d closed.\n", sl->line));
sl761drivers/net/slip.cstruct slip *sl;
sl765drivers/net/slip.cif ((sl = sl_find(tty)) == NULL) return;  /* not connected */
sl767drivers/net/slip.cif(sl->mtu!=sl->dev->mtu)  /* Argh! mtu change time! - costs us the packet part received at the change */
sl768drivers/net/slip.csl_changedmtu(sl);
sl784drivers/net/slip.cif (sl->escape) {
sl786drivers/net/slip.csl_enqueue(sl, ESC);
sl788drivers/net/slip.csl_enqueue(sl, END);
sl791drivers/net/slip.csl->escape = 0;
sl794drivers/net/slip.csl->escape = 1;
sl796drivers/net/slip.cif (sl->rcount > 2) sl_bump(sl);
sl797drivers/net/slip.csl_dequeue(sl, sl->rcount);
sl798drivers/net/slip.csl->rcount = 0;
sl799drivers/net/slip.c} else  sl_enqueue(sl, c);
sl803drivers/net/slip.cif(sl->mode & SL_MODE_SLIP6)
sl804drivers/net/slip.cslip_unesc6(sl,buff,count,error);
sl806drivers/net/slip.cslip_unesc(sl,buff,count,error);
sl823drivers/net/slip.cstruct slip *sl;
sl826drivers/net/slip.cif ((sl = sl_find(tty)) != NULL) {
sl828drivers/net/slip.ctty->line, sl->dev->name));
sl833drivers/net/slip.cif ((sl = sl_alloc()) == NULL) {
sl838drivers/net/slip.csl->tty = tty;
sl843drivers/net/slip.c(void) sl_open(sl->dev);
sl845drivers/net/slip.ctty->line, sl->dev->name));
sl848drivers/net/slip.creturn(sl->line);
sl861drivers/net/slip.cstruct slip *sl;
sl864drivers/net/slip.cif ((sl = sl_find(tty)) == NULL) {
sl869drivers/net/slip.c(void) dev_close(sl->dev);
sl871drivers/net/slip.ctty->line, sl->dev->name));
sl919drivers/net/slip.cslip_unesc(struct slip *sl, unsigned char *s, int count, int error)
sl926drivers/net/slip.csl->flags |= SLF_ESCAPE;
sl929drivers/net/slip.cif (sl->flags & SLF_ESCAPE)
sl930drivers/net/slip.csl_enqueue(sl, ESC);
sl932drivers/net/slip.csl_enqueue(sl, *s);
sl933drivers/net/slip.csl->flags &= ~SLF_ESCAPE;
sl936drivers/net/slip.cif (sl->flags & SLF_ESCAPE)
sl937drivers/net/slip.csl_enqueue(sl, END);
sl939drivers/net/slip.csl_enqueue(sl, *s);
sl940drivers/net/slip.csl->flags &= ~SLF_ESCAPE;
sl943drivers/net/slip.cif (sl->rcount > 2) 
sl944drivers/net/slip.csl_bump(sl);
sl945drivers/net/slip.csl_dequeue(sl, sl->rcount);
sl946drivers/net/slip.csl->rcount = 0;
sl947drivers/net/slip.csl->flags &= ~(SLF_ESCAPE | SLF_ERROR);
sl950drivers/net/slip.csl_enqueue(sl, *s);
sl951drivers/net/slip.csl->flags &= ~SLF_ESCAPE;
sl955drivers/net/slip.csl->flags |= SLF_ERROR;
sl1006drivers/net/slip.cslip_unesc6(struct slip *sl, unsigned char *s, int count, int error)
sl1013drivers/net/slip.cif (sl->rcount > 8) {  /* XXX must be 2 for compressed slip */
sl1016drivers/net/slip.csl->rbuff[0],
sl1017drivers/net/slip.csl->rbuff[1],
sl1018drivers/net/slip.csl->rbuff[2],
sl1019drivers/net/slip.csl->rbuff[3]
sl1022drivers/net/slip.csl_bump(sl);
sl1024drivers/net/slip.csl_dequeue(sl, sl->rcount);
sl1025drivers/net/slip.csl->rcount = 0;
sl1026drivers/net/slip.csl->flags &= ~(SLF_ESCAPE | SLF_ERROR); /* SLF_ESCAPE not used */
sl1027drivers/net/slip.csl->xbits = 0;
sl1029drivers/net/slip.csl->xdata = (sl->xdata << 6) | ((*s - 0x30) & 0x3F);
sl1030drivers/net/slip.csl->xbits += 6;
sl1031drivers/net/slip.cif (sl->xbits >= 8) {
sl1032drivers/net/slip.csl->xbits -= 8;
sl1033drivers/net/slip.cc = (unsigned char)(sl->xdata >> sl->xbits);
sl1034drivers/net/slip.csl_enqueue(sl, c);
sl1040drivers/net/slip.csl->flags |= SLF_ERROR;
sl1061drivers/net/slip.cstruct slip *sl;
sl1065drivers/net/slip.cif ((sl = sl_find(tty)) == NULL) {
sl1076drivers/net/slip.cmemcpy_tofs(arg, sl->dev->name, strlen(sl->dev->name) + 1);
sl1080drivers/net/slip.cput_fs_long(sl->mode,(long *)arg);
sl1084drivers/net/slip.csl->mode=get_fs_long((long *)arg);
sl1086drivers/net/slip.cif(sl->mode & SL_MODE_AX25)
sl1088drivers/net/slip.csl->dev->addr_len=7;  /* sizeof an AX.25 addr */
sl1089drivers/net/slip.csl->dev->hard_header_len=17;  /* We don't do digipeaters */
sl1090drivers/net/slip.csl->dev->type=3;    /* AF_AX25 not an AF_INET device */
sl1094drivers/net/slip.csl->dev->addr_len=0;  /* No mac addr in slip mode */
sl1095drivers/net/slip.csl->dev->hard_header_len=0;
sl1096drivers/net/slip.csl->dev->type=0;
sl1102drivers/net/slip.creturn sl_set_mac_address(sl->dev,arg);
sl1115drivers/net/slip.cstruct slip *sl;
sl1122drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
sl1145drivers/net/slip.csl_initialize(sl, dev);
sl1148drivers/net/slip.csl->rcount    = 0;      /* SLIP receiver count  */
sl1149drivers/net/slip.csl->rpacket    = 0;      /* #frames received  */
sl1150drivers/net/slip.csl->roverrun    = 0;      /* "overrun" counter  */
sl1151drivers/net/slip.csl->spacket    = 0;      /* #frames sent out  */
sl1152drivers/net/slip.csl->sbusy    = 0;      /* "xmit busy" counter  */
sl1153drivers/net/slip.csl->errors    = 0;      /* not used at present  */
sl78drivers/net/slip.hextern void  slip_unesc(struct slip *sl, unsigned char *s, int count, int error);
sl79drivers/net/slip.hextern void   slip_unesc6(struct slip *sl, unsigned char *s, int count, int error);
sl642drivers/scsi/ultrastor.cstruct scatterlist *sl;
sl646drivers/scsi/ultrastor.csl = (struct scatterlist *) SCpnt->request_buffer;
sl649drivers/scsi/ultrastor.cmscp->sglist[i].address = (unsigned int)sl[i].address;
sl650drivers/scsi/ultrastor.cmscp->sglist[i].num_bytes = sl[i].length;
sl651drivers/scsi/ultrastor.ctransfer_length += sl[i].length;