tag | line | file | source code |
bp | 789 | drivers/block/mcdx.c | unsigned char* bp = buffer; |
bp | 811 | drivers/block/mcdx.c | *bp++ = st = (unsigned char) inb((unsigned int) stuffp->rreg_data); |
bp | 833 | drivers/block/mcdx.c | *bp++ = (unsigned char) inb((unsigned int) stuffp->rreg_data); |
bp | 212 | drivers/char/scc.c | struct mbuf *bp; |
bp | 219 | drivers/char/scc.c | bp = (struct mbuf *)kmalloc(sizeof(struct mbuf), GFP_ATOMIC); |
bp | 221 | drivers/char/scc.c | if ( !(sccb && bp) ) |
bp | 234 | drivers/char/scc.c | sccfreelist[i]->bp = bp; |
bp | 235 | drivers/char/scc.c | memset(sccfreelist[i]->bp ,0,sizeof(struct mbuf)); |
bp | 237 | drivers/char/scc.c | sccfreelist[i]->bp->type = 0; |
bp | 238 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
bp | 239 | drivers/char/scc.c | sccfreelist[i]->bp->size = BUFSIZE; |
bp | 255 | drivers/char/scc.c | switch (sccfreelist[i]->bp->type) |
bp | 285 | drivers/char/scc.c | sccfreelist[i]->bp->type = type; |
bp | 286 | drivers/char/scc.c | sccfreelist[i]->bp->next = NULLBUF; |
bp | 287 | drivers/char/scc.c | sccfreelist[i]->bp->anext = NULLBUF; |
bp | 288 | drivers/char/scc.c | sccfreelist[i]->bp->dup = NULLBUF; |
bp | 289 | drivers/char/scc.c | sccfreelist[i]->bp->size = BUFSIZE; |
bp | 290 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 1; |
bp | 291 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
bp | 292 | drivers/char/scc.c | sccfreelist[i]->bp->in_use = 0; |
bp | 293 | drivers/char/scc.c | sccfreelist[i]->bp->time_out = CURRENT_TIME + 300; |
bp | 296 | drivers/char/scc.c | return sccfreelist[i]->bp; |
bp | 311 | drivers/char/scc.c | scc_return_buffer(register struct mbuf *bp, char type) |
bp | 317 | drivers/char/scc.c | if(!bp) |
bp | 321 | drivers/char/scc.c | bpnext = bp->next; |
bp | 330 | drivers/char/scc.c | if(bp->type == BT_TRANSMIT){ |
bp | 335 | drivers/char/scc.c | if(sccfreelist[i]->bp->type == BT_TRANSMIT) |
bp | 336 | drivers/char/scc.c | if(sccfreelist[i]->bp->time_out < CURRENT_TIME) |
bp | 338 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
bp | 339 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
bp | 349 | drivers/char/scc.c | if (bp->dup) |
bp | 353 | drivers/char/scc.c | if(sccfreelist[i]->bp == bp->dup) |
bp | 355 | drivers/char/scc.c | if (sccfreelist[i]->bp->type != type) |
bp | 358 | drivers/char/scc.c | type,sccfreelist[i]->bp->type); |
bp | 361 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
bp | 362 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
bp | 363 | drivers/char/scc.c | sccfreelist[i]->bp->in_use = 0; |
bp | 365 | drivers/char/scc.c | bp->dup = NULLBUF; |
bp | 371 | drivers/char/scc.c | if(--bp->refcnt <= 0) |
bp | 375 | drivers/char/scc.c | if(sccfreelist[i]->bp == bp) |
bp | 377 | drivers/char/scc.c | if (sccfreelist[i]->bp->type != type) |
bp | 380 | drivers/char/scc.c | type,sccfreelist[i]->bp->type); |
bp | 383 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
bp | 384 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
bp | 392 | drivers/char/scc.c | printk("\nscc_return_buffer(): bogus pointer %p\n",bp); |
bp | 402 | drivers/char/scc.c | scc_free_chain(register struct mbuf *bp, char type) |
bp | 407 | drivers/char/scc.c | if(!bp) |
bp | 412 | drivers/char/scc.c | abp = bp->anext; |
bp | 413 | drivers/char/scc.c | while (bp) bp = scc_return_buffer(bp, type); |
bp | 422 | drivers/char/scc.c | scc_append_to_chain(struct mbuf **bph,struct mbuf *bp) |
bp | 427 | drivers/char/scc.c | if(bph == NULLBUFP || bp == NULLBUF) |
bp | 435 | drivers/char/scc.c | *bph = bp; |
bp | 439 | drivers/char/scc.c | p->next = bp; |
bp | 448 | drivers/char/scc.c | scc_enqueue(struct mbuf **queue,struct mbuf *bp) |
bp | 453 | drivers/char/scc.c | if(queue == NULLBUFP || bp == NULLBUF) |
bp | 461 | drivers/char/scc.c | *queue = bp; |
bp | 465 | drivers/char/scc.c | p->anext = bp; |
bp | 611 | drivers/char/scc.c | register struct mbuf *bp; |
bp | 615 | drivers/char/scc.c | bp = scc->tbp; |
bp | 617 | drivers/char/scc.c | while (bp && !bp->cnt) /* find next buffer */ |
bp | 618 | drivers/char/scc.c | bp = scc_return_buffer(bp, BT_TRANSMIT); |
bp | 620 | drivers/char/scc.c | if (bp == NULLBUF) /* no more buffers in this frame */ |
bp | 635 | drivers/char/scc.c | Outb(scc->data,bp->data[bp->in_use++]); |
bp | 642 | drivers/char/scc.c | Outb(scc->data,bp->data[bp->in_use++]); |
bp | 645 | drivers/char/scc.c | bp->cnt--; /* decrease byte count */ |
bp | 646 | drivers/char/scc.c | scc->tbp=bp; /* store buffer address */ |
bp | 1175 | drivers/char/scc.c | register struct mbuf *bp; /* not tested */ |
bp | 1177 | drivers/char/scc.c | bp = scc->sndq; |
bp | 1179 | drivers/char/scc.c | while (bp) bp = scc_free_chain(bp, BT_TRANSMIT); |
bp | 1952 | drivers/char/scc.c | register struct mbuf *bp; |
bp | 1966 | drivers/char/scc.c | bp = scc->sndq1->anext; /* don't use the one we currently use */ |
bp | 1968 | drivers/char/scc.c | while (bp && (scc->stat.tx_queued > QUEUE_HYST)) |
bp | 1970 | drivers/char/scc.c | bp = scc_free_chain(bp, BT_TRANSMIT); |
bp | 1975 | drivers/char/scc.c | scc->sndq1->anext = bp; |
bp | 117 | drivers/char/selection.c | char *bp, *obp; |
bp | 249 | drivers/char/selection.c | obp = bp = sel_buffer; |
bp | 251 | drivers/char/selection.c | *bp = sel_pos(i); |
bp | 252 | drivers/char/selection.c | if (!isspace(*bp++)) |
bp | 253 | drivers/char/selection.c | obp = bp; |
bp | 257 | drivers/char/selection.c | if (obp != bp) { |
bp | 258 | drivers/char/selection.c | bp = obp; |
bp | 259 | drivers/char/selection.c | *bp++ = '\r'; |
bp | 261 | drivers/char/selection.c | obp = bp; |
bp | 264 | drivers/char/selection.c | sel_buffer_lth = bp - sel_buffer; |
bp | 273 | drivers/char/selection.c | char *bp = sel_buffer; |
bp | 278 | drivers/char/selection.c | if (!bp || !c) |
bp | 289 | drivers/char/selection.c | tty->ldisc.receive_buf(tty, bp, 0, l); |
bp | 291 | drivers/char/selection.c | bp += l; |
bp | 1491 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_break *bp; |
bp | 1510 | drivers/scsi/53c7,8xx.c | for (bp = hostdata->breakpoints; bp && bp->address != dsp; |
bp | 1511 | drivers/scsi/53c7,8xx.c | bp = bp->next); |
bp | 1512 | drivers/scsi/53c7,8xx.c | if (!bp) |
bp | 2021 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_break *bp, **prev; |
bp | 2025 | drivers/scsi/53c7,8xx.c | for (bp = (struct NCR53c7x0_break *) instance->breakpoints, |
bp | 2027 | drivers/scsi/53c7,8xx.c | bp; prev = (struct NCR53c7x0_break **) &(bp->next), |
bp | 2028 | drivers/scsi/53c7,8xx.c | bp = (struct NCR53c7x0_break *) bp->next); |
bp | 2030 | drivers/scsi/53c7,8xx.c | if (!bp) { |
bp | 2040 | drivers/scsi/53c7,8xx.c | memcpy ((void *) bp->addr, (void *) bp->old, sizeof(bp->old)); |
bp | 2042 | drivers/scsi/53c7,8xx.c | *prev = bp->next; |
bp | 2053 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_break *bp; |
bp | 2069 | drivers/scsi/53c7,8xx.c | for (bp = (struct NCR53c7x0_break *) host->breakpoints; |
bp | 2070 | drivers/scsi/53c7,8xx.c | bp; bp = (struct NCR53c7x0_break *) bp->next); { |
bp | 2072 | drivers/scsi/53c7,8xx.c | bp->addr, bp->old[0], bp->old[1]); |
bp | 2074 | drivers/scsi/53c7,8xx.c | if ((bp->old[0] & (DCMD_TYPE_MASK << 24)) == |
bp | 2076 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "%08x\n", * (u32 *) bp->addr); |
bp | 2091 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_break *bp; |
bp | 2106 | drivers/scsi/53c7,8xx.c | if (!(bp = kmalloc (sizeof (struct NCR53c7x0_break)))) { |
bp | 2113 | drivers/scsi/53c7,8xx.c | bp->address = (u32 *) args[0]; |
bp | 2114 | drivers/scsi/53c7,8xx.c | memcpy ((void *) bp->old_instruction, (void *) bp->address, 8); |
bp | 2115 | drivers/scsi/53c7,8xx.c | bp->old_size = (((bp->old_instruction[0] >> 24) & DCMD_TYPE_MASK) == |
bp | 2117 | drivers/scsi/53c7,8xx.c | bp->next = hostdata->breakpoints; |
bp | 2118 | drivers/scsi/53c7,8xx.c | hostdata->breakpoints = bp->next; |
bp | 2119 | drivers/scsi/53c7,8xx.c | memcpy ((void *) bp->address, (void *) hostdata->E_debug_break, 8); |
bp | 1198 | drivers/scsi/aic7xxx.c | char *bp, *ep; |
bp | 1200 | drivers/scsi/aic7xxx.c | bp = NULL; |
bp | 1204 | drivers/scsi/aic7xxx.c | if ((bp = strchr(version_info, ' ')) != NULL) |
bp | 1206 | drivers/scsi/aic7xxx.c | bp++; |
bp | 1207 | drivers/scsi/aic7xxx.c | if ((bp = strchr(bp, ' ')) != NULL) |
bp | 1209 | drivers/scsi/aic7xxx.c | bp++; |
bp | 1217 | drivers/scsi/aic7xxx.c | if ((bp = strchr(version_info, ' ')) != NULL) |
bp | 1219 | drivers/scsi/aic7xxx.c | bp++; |
bp | 1224 | drivers/scsi/aic7xxx.c | if (bp != NULL) |
bp | 1226 | drivers/scsi/aic7xxx.c | if ((ep = strchr(bp, ' ')) != NULL) |
bp | 1228 | drivers/scsi/aic7xxx.c | register int len = ep - bp; |
bp | 1230 | drivers/scsi/aic7xxx.c | strncpy(buf, bp, len); |
bp | 7 | drivers/scsi/eata_dma_proc.c | u8 *bp; |
bp | 17 | drivers/scsi/eata_dma_proc.c | bp = (u8 *) lp; |
bp | 18 | drivers/scsi/eata_dma_proc.c | y = *(bp + 3); |
bp | 20 | drivers/scsi/eata_dma_proc.c | for (h_lp = (u32)lp; (u32)lp < h_lp + ((u32)*(bp + 3)); lp++) |
bp | 153 | include/linux/scc.h | struct mbuf *bp; |
bp | 2271 | net/ax25/af_ax25.c | int ax25_rebuild_header(unsigned char *bp, struct device *dev, unsigned long dest, struct sk_buff *skb) |
bp | 2275 | net/ax25/af_ax25.c | if (arp_find(bp + 1, dest, dev, dev->pa_addr, skb)) |
bp | 2278 | net/ax25/af_ax25.c | if (bp[16] == AX25_P_IP) { |
bp | 2279 | net/ax25/af_ax25.c | mode = ax25_ip_mode_get((ax25_address *)(bp + 1), dev); |
bp | 2283 | net/ax25/af_ax25.c | ax25_send_frame(skb, (ax25_address *)(bp + 8), (ax25_address *)(bp + 1), NULL, dev); |
bp | 2288 | net/ax25/af_ax25.c | bp[7] &= ~LAPB_C; |
bp | 2289 | net/ax25/af_ax25.c | bp[7] &= ~LAPB_E; |
bp | 2290 | net/ax25/af_ax25.c | bp[7] |= SSSID_SPARE; |
bp | 2292 | net/ax25/af_ax25.c | bp[14] &= ~LAPB_C; |
bp | 2293 | net/ax25/af_ax25.c | bp[14] |= LAPB_E; |
bp | 2294 | net/ax25/af_ax25.c | bp[14] |= SSSID_SPARE; |
bp | 111 | net/netrom/nr_dev.c | unsigned char *bp = (unsigned char *)buff; |
bp | 115 | net/netrom/nr_dev.c | if (!arp_query(bp + 7, raddr, ARPHRD_NETROM)) { |
bp | 121 | net/netrom/nr_dev.c | bp[6] &= ~LAPB_C; |
bp | 122 | net/netrom/nr_dev.c | bp[6] &= ~LAPB_E; |
bp | 123 | net/netrom/nr_dev.c | bp[6] |= SSSID_SPARE; |
bp | 124 | net/netrom/nr_dev.c | bp += AX25_ADDR_LEN; |
bp | 126 | net/netrom/nr_dev.c | bp[6] &= ~LAPB_C; |
bp | 127 | net/netrom/nr_dev.c | bp[6] |= LAPB_E; |
bp | 128 | net/netrom/nr_dev.c | bp[6] |= SSSID_SPARE; |