tag | line | file | source code |
bp | 210 | drivers/char/scc.c | struct mbuf *bp; |
bp | 215 | drivers/char/scc.c | bp = (struct mbuf *)kmalloc(sizeof(struct mbuf), GFP_ATOMIC); |
bp | 217 | drivers/char/scc.c | if ( !(sccb && bp) ) |
bp | 230 | drivers/char/scc.c | sccfreelist[i]->bp = bp; |
bp | 231 | drivers/char/scc.c | memset(sccfreelist[i]->bp ,0,sizeof(struct mbuf)); |
bp | 233 | drivers/char/scc.c | sccfreelist[i]->bp->type = 0; |
bp | 234 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
bp | 235 | drivers/char/scc.c | sccfreelist[i]->bp->size = BUFSIZE; |
bp | 251 | drivers/char/scc.c | switch (sccfreelist[i]->bp->type) |
bp | 281 | drivers/char/scc.c | sccfreelist[i]->bp->type = type; |
bp | 282 | drivers/char/scc.c | sccfreelist[i]->bp->next = NULLBUF; |
bp | 283 | drivers/char/scc.c | sccfreelist[i]->bp->anext = NULLBUF; |
bp | 284 | drivers/char/scc.c | sccfreelist[i]->bp->dup = NULLBUF; |
bp | 285 | drivers/char/scc.c | sccfreelist[i]->bp->size = BUFSIZE; |
bp | 286 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 1; |
bp | 287 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
bp | 288 | drivers/char/scc.c | sccfreelist[i]->bp->in_use = 0; |
bp | 291 | drivers/char/scc.c | return sccfreelist[i]->bp; |
bp | 306 | drivers/char/scc.c | scc_return_buffer(register struct mbuf *bp, char type) |
bp | 312 | drivers/char/scc.c | if(!bp) |
bp | 316 | drivers/char/scc.c | bpnext = bp->next; |
bp | 318 | drivers/char/scc.c | if (bp->dup) |
bp | 322 | drivers/char/scc.c | if(sccfreelist[i]->bp == bp->dup) |
bp | 324 | drivers/char/scc.c | if (sccfreelist[i]->bp->type != type) |
bp | 327 | drivers/char/scc.c | type,sccfreelist[i]->bp->type); |
bp | 330 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
bp | 331 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
bp | 332 | drivers/char/scc.c | sccfreelist[i]->bp->in_use = 0; |
bp | 334 | drivers/char/scc.c | bp->dup = NULLBUF; |
bp | 340 | drivers/char/scc.c | if(--bp->refcnt <= 0) |
bp | 344 | drivers/char/scc.c | if(sccfreelist[i]->bp == bp) |
bp | 346 | drivers/char/scc.c | if (sccfreelist[i]->bp->type != type) |
bp | 349 | drivers/char/scc.c | type,sccfreelist[i]->bp->type); |
bp | 352 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
bp | 353 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
bp | 361 | drivers/char/scc.c | printk("\nscc_return_buffer(): bogus pointer %p\n",bp); |
bp | 371 | drivers/char/scc.c | scc_free_chain(register struct mbuf *bp, char type) |
bp | 376 | drivers/char/scc.c | if(!bp) |
bp | 381 | drivers/char/scc.c | abp = bp->anext; |
bp | 382 | drivers/char/scc.c | while (bp) bp = scc_return_buffer(bp, type); |
bp | 391 | drivers/char/scc.c | scc_append_to_chain(struct mbuf **bph,struct mbuf *bp) |
bp | 396 | drivers/char/scc.c | if(bph == NULLBUFP || bp == NULLBUF) |
bp | 404 | drivers/char/scc.c | *bph = bp; |
bp | 408 | drivers/char/scc.c | p->next = bp; |
bp | 417 | drivers/char/scc.c | scc_enqueue(struct mbuf **queue,struct mbuf *bp) |
bp | 422 | drivers/char/scc.c | if(queue == NULLBUFP || bp == NULLBUF) |
bp | 430 | drivers/char/scc.c | *queue = bp; |
bp | 434 | drivers/char/scc.c | p->anext = bp; |
bp | 580 | drivers/char/scc.c | register struct mbuf *bp; |
bp | 584 | drivers/char/scc.c | bp = scc->tbp; |
bp | 586 | drivers/char/scc.c | while (bp && !bp->cnt) /* find next buffer */ |
bp | 587 | drivers/char/scc.c | bp = scc_return_buffer(bp, BT_TRANSMIT); |
bp | 589 | drivers/char/scc.c | if (bp == NULLBUF) /* no more buffers in this frame */ |
bp | 604 | drivers/char/scc.c | Outb(scc->data,bp->data[bp->in_use++]); |
bp | 611 | drivers/char/scc.c | Outb(scc->data,bp->data[bp->in_use++]); |
bp | 614 | drivers/char/scc.c | bp->cnt--; /* decrease byte count */ |
bp | 615 | drivers/char/scc.c | scc->tbp=bp; /* store buffer address */ |
bp | 624 | drivers/char/scc.c | register struct mbuf *bp; |
bp | 626 | drivers/char/scc.c | if((bp = scc->rbp) != NULLBUF) |
bp | 628 | drivers/char/scc.c | scc_free_chain(bp->next, BT_RECEIVE); |
bp | 629 | drivers/char/scc.c | bp->next = NULLBUF; |
bp | 630 | drivers/char/scc.c | scc->rbp1 = bp; /* Don't throw this one away */ |
bp | 631 | drivers/char/scc.c | bp->cnt = 0; /* Simply rewind it */ |
bp | 632 | drivers/char/scc.c | bp->in_use = 0; |
bp | 732 | drivers/char/scc.c | register struct mbuf *bp; |
bp | 743 | drivers/char/scc.c | if ((bp = scc->rbp1) == NULLBUF || bp->cnt >= bp->size) |
bp | 747 | drivers/char/scc.c | if ((bp = scc_get_buffer(BT_RECEIVE)) != NULLBUF) |
bp | 748 | drivers/char/scc.c | scc->rbp = scc->rbp1 = bp; |
bp | 751 | drivers/char/scc.c | else if ((bp = scc_get_buffer(BT_RECEIVE))) |
bp | 753 | drivers/char/scc.c | scc_append_to_chain(&scc->rbp, bp); |
bp | 754 | drivers/char/scc.c | scc->rbp1 = bp; |
bp | 757 | drivers/char/scc.c | if (bp == NULLBUF) /* no buffer available? */ |
bp | 768 | drivers/char/scc.c | bp->data[bp->cnt++] = Inb(scc->data); |
bp | 777 | drivers/char/scc.c | register struct mbuf *bp; |
bp | 800 | drivers/char/scc.c | for (bp = scc->rbp; bp->next != NULLBUF; bp = bp->next) ; |
bp | 801 | drivers/char/scc.c | bp->cnt--; /* last byte is first CRC byte */ |
bp | 1119 | drivers/char/scc.c | register struct mbuf *bp; /* not tested */ |
bp | 1121 | drivers/char/scc.c | bp = scc->sndq; |
bp | 1123 | drivers/char/scc.c | while (bp) bp = scc_free_chain(bp, BT_TRANSMIT); |
bp | 1147 | drivers/char/scc.c | register struct mbuf *bp; |
bp | 1161 | drivers/char/scc.c | bp = scc->rcvq->anext; /* don't use the one we currently use */ |
bp | 1163 | drivers/char/scc.c | while (bp && (scc->stat.rx_queued > QUEUE_HYST)) |
bp | 1165 | drivers/char/scc.c | bp = scc_free_chain(bp, BT_RECEIVE); |
bp | 1170 | drivers/char/scc.c | scc->rcvq->anext = bp; |
bp | 1432 | drivers/char/scc.c | struct mbuf *bp,*bp2; |
bp | 1449 | drivers/char/scc.c | bp = scc->rcvq; |
bp | 1461 | drivers/char/scc.c | switch(ch = bp->data[bp->in_use++]) |
bp | 1475 | drivers/char/scc.c | bp->cnt--; |
bp | 1482 | drivers/char/scc.c | bp = scc->rcvq->next; /* next buffer */ |
bp | 1488 | drivers/char/scc.c | if (!bp) /* end of frame ? */ |
bp | 1505 | drivers/char/scc.c | } else scc->rcvq = bp; /* next buffer */ |
bp | 2000 | drivers/char/scc.c | register struct mbuf *bp; |
bp | 2014 | drivers/char/scc.c | bp = scc->sndq1->anext; /* don't use the one we currently use */ |
bp | 2016 | drivers/char/scc.c | while (bp && (scc->stat.tx_queued > QUEUE_HYST)) |
bp | 2018 | drivers/char/scc.c | bp = scc_free_chain(bp, BT_TRANSMIT); |
bp | 2023 | drivers/char/scc.c | scc->sndq1->anext = bp; |
bp | 116 | drivers/char/selection.c | char *bp, *obp; |
bp | 248 | drivers/char/selection.c | obp = bp = sel_buffer; |
bp | 250 | drivers/char/selection.c | *bp = sel_pos(i); |
bp | 251 | drivers/char/selection.c | if (!isspace(*bp++)) |
bp | 252 | drivers/char/selection.c | obp = bp; |
bp | 256 | drivers/char/selection.c | if (obp != bp) { |
bp | 257 | drivers/char/selection.c | bp = obp; |
bp | 258 | drivers/char/selection.c | *bp++ = '\r'; |
bp | 260 | drivers/char/selection.c | obp = bp; |
bp | 263 | drivers/char/selection.c | sel_buffer_lth = bp - sel_buffer; |
bp | 272 | drivers/char/selection.c | char *bp = sel_buffer; |
bp | 277 | drivers/char/selection.c | if (!bp || !c) |
bp | 288 | drivers/char/selection.c | tty->ldisc.receive_buf(tty, bp, 0, l); |
bp | 290 | drivers/char/selection.c | bp += l; |
bp | 1478 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_break *bp; |
bp | 1496 | drivers/scsi/53c7,8xx.c | for (bp = hostdata->breakpoints; bp && bp->address != dsp; |
bp | 1497 | drivers/scsi/53c7,8xx.c | bp = bp->next); |
bp | 1498 | drivers/scsi/53c7,8xx.c | if (!bp) |
bp | 2005 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_break *bp, **prev; |
bp | 2009 | drivers/scsi/53c7,8xx.c | for (bp = (struct NCR53c7x0_break *) instance->breakpoints, |
bp | 2011 | drivers/scsi/53c7,8xx.c | bp; prev = (struct NCR53c7x0_break **) &(bp->next), |
bp | 2012 | drivers/scsi/53c7,8xx.c | bp = (struct NCR53c7x0_break *) bp->next); |
bp | 2014 | drivers/scsi/53c7,8xx.c | if (!bp) { |
bp | 2024 | drivers/scsi/53c7,8xx.c | memcpy ((void *) bp->addr, (void *) bp->old, sizeof(bp->old)); |
bp | 2026 | drivers/scsi/53c7,8xx.c | *prev = bp->next; |
bp | 2037 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_break *bp; |
bp | 2053 | drivers/scsi/53c7,8xx.c | for (bp = (struct NCR53c7x0_break *) host->breakpoints; |
bp | 2054 | drivers/scsi/53c7,8xx.c | bp; bp = (struct NCR53c7x0_break *) bp->next); { |
bp | 2056 | drivers/scsi/53c7,8xx.c | bp->addr, bp->old[0], bp->old[1]); |
bp | 2058 | drivers/scsi/53c7,8xx.c | if ((bp->old[0] & (DCMD_TYPE_MASK << 24)) == |
bp | 2060 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "%08x\n", * (long *) bp->addr); |
bp | 2075 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_break *bp; |
bp | 2089 | drivers/scsi/53c7,8xx.c | if (!(bp = kmalloc (sizeof (struct NCR53c7x0_break)))) { |
bp | 2096 | drivers/scsi/53c7,8xx.c | bp->address = (unsigned long *) args[0]; |
bp | 2097 | drivers/scsi/53c7,8xx.c | memcpy ((void *) bp->old_instruction, (void *) bp->address, 8); |
bp | 2098 | drivers/scsi/53c7,8xx.c | bp->old_size = (((bp->old_instruction[0] >> 24) & DCMD_TYPE_MASK) == |
bp | 2100 | drivers/scsi/53c7,8xx.c | bp->next = hostdata->breakpoints; |
bp | 2101 | drivers/scsi/53c7,8xx.c | hostdata->breakpoints = bp->next; |
bp | 2102 | drivers/scsi/53c7,8xx.c | memcpy ((void *) bp->address, (void *) hostdata->E_debug_break, 8); |
bp | 156 | include/linux/scc.h | struct mbuf *bp; |
bp | 13 | include/net/head_explode.h | extern __inline__ unsigned char *exp_getu16(unsigned char *bp, unsigned short *u) |
bp | 15 | include/net/head_explode.h | *u=(*bp<<8)|bp[1]; |
bp | 16 | include/net/head_explode.h | return bp+2; |
bp | 19 | include/net/head_explode.h | extern __inline__ unsigned char *exp_getn16(unsigned char *bp, unsigned short *u) |
bp | 22 | include/net/head_explode.h | *tp++=*bp++; |
bp | 23 | include/net/head_explode.h | *tp++=*bp++; |
bp | 24 | include/net/head_explode.h | return bp; |
bp | 27 | include/net/head_explode.h | extern __inline__ unsigned char *imp_putu16(unsigned char *bp, unsigned short n) |
bp | 29 | include/net/head_explode.h | *bp=(n>>8); |
bp | 30 | include/net/head_explode.h | bp[1]=n&0xFF; |
bp | 31 | include/net/head_explode.h | return bp+2; |
bp | 34 | include/net/head_explode.h | extern __inline__ unsigned char *imp_putn16(unsigned char *bp, unsigned short n) |
bp | 37 | include/net/head_explode.h | *bp++=*sp++; |
bp | 38 | include/net/head_explode.h | *bp++=*sp++; |
bp | 39 | include/net/head_explode.h | return bp; |
bp | 42 | include/net/head_explode.h | extern __inline__ unsigned char *exp_getu32(unsigned char *bp, unsigned long *u) |
bp | 44 | include/net/head_explode.h | *u=(bp[0]<<24)|(bp[1]<<16)|(bp[2]<<8)|bp[3]; |
bp | 45 | include/net/head_explode.h | return bp+4; |
bp | 48 | include/net/head_explode.h | extern __inline__ unsigned char *exp_getn32(unsigned char *bp, unsigned long *u) |
bp | 51 | include/net/head_explode.h | *tp++=*bp++; |
bp | 52 | include/net/head_explode.h | *tp++=*bp++; |
bp | 53 | include/net/head_explode.h | *tp++=*bp++; |
bp | 54 | include/net/head_explode.h | *tp++=*bp++; |
bp | 55 | include/net/head_explode.h | return bp; |
bp | 58 | include/net/head_explode.h | extern __inline__ unsigned char *imp_putu32(unsigned char *bp, unsigned long n) |
bp | 60 | include/net/head_explode.h | bp[0]=n>>24; |
bp | 61 | include/net/head_explode.h | bp[1]=(n>>16)&0xFF; |
bp | 62 | include/net/head_explode.h | bp[2]=(n>>8)&0xFF; |
bp | 63 | include/net/head_explode.h | bp[3]=n&0xFF; |
bp | 64 | include/net/head_explode.h | return bp+4; |
bp | 67 | include/net/head_explode.h | extern __inline__ unsigned char *imp_putn32(unsigned char *bp, unsigned long n) |
bp | 70 | include/net/head_explode.h | *bp++=*sp++; |
bp | 71 | include/net/head_explode.h | *bp++=*sp++; |
bp | 72 | include/net/head_explode.h | *bp++=*sp++; |
bp | 73 | include/net/head_explode.h | *bp++=*sp++; |
bp | 74 | include/net/head_explode.h | return bp; |
bp | 1955 | net/ax25/af_ax25.c | int ax25_rebuild_header(unsigned char *bp, struct device *dev, unsigned long dest, struct sk_buff *skb) |
bp | 1957 | net/ax25/af_ax25.c | if (arp_find(bp + 1, dest, dev, dev->pa_addr, skb)) |
bp | 1960 | net/ax25/af_ax25.c | bp[7] &= ~LAPB_C; |
bp | 1961 | net/ax25/af_ax25.c | bp[7] &= ~LAPB_E; |
bp | 1962 | net/ax25/af_ax25.c | bp[7] |= SSID_SPARE; |
bp | 1963 | net/ax25/af_ax25.c | bp[14] &= ~LAPB_C; |
bp | 1964 | net/ax25/af_ax25.c | bp[14] |= LAPB_E; |
bp | 1965 | net/ax25/af_ax25.c | bp[14] |= SSID_SPARE; |
bp | 119 | net/netrom/nr_dev.c | unsigned char *bp = (unsigned char *)buff; |
bp | 121 | net/netrom/nr_dev.c | if (arp_find(bp + 24, raddr, dev, dev->pa_addr, skb)) |
bp | 124 | net/netrom/nr_dev.c | bp[23] &= ~LAPB_C; |
bp | 125 | net/netrom/nr_dev.c | bp[23] &= ~LAPB_E; |
bp | 126 | net/netrom/nr_dev.c | bp[23] |= SSID_SPARE; |
bp | 128 | net/netrom/nr_dev.c | bp[30] &= ~LAPB_C; |
bp | 129 | net/netrom/nr_dev.c | bp[30] |= LAPB_E; |
bp | 130 | net/netrom/nr_dev.c | bp[30] |= SSID_SPARE; |