Lines Matching refs:fp
796 pe->skb, pe->fp); in process_incoming()
812 pe->fp->n--; in process_incoming()
833 pe->fp->n--; in process_incoming()
1437 static int init_fp(struct fs_dev *dev, struct freepool *fp, int queue, in init_fp() argument
1450 fp->offset = queue; in init_fp()
1451 fp->bufsize = bufsize; in init_fp()
1452 fp->nr_buffers = nr_buffers; in init_fp()
1459 static inline int nr_buffers_in_freepool (struct fs_dev *dev, struct freepool *fp) in nr_buffers_in_freepool() argument
1463 return read_fs (dev, FP_CNT (fp->offset)); in nr_buffers_in_freepool()
1465 return fp->n; in nr_buffers_in_freepool()
1474 static void top_off_fp (struct fs_dev *dev, struct freepool *fp, in top_off_fp() argument
1483 fp->offset, read_fs (dev, FP_CNT (fp->offset)), fp->n, in top_off_fp()
1484 fp->nr_buffers); in top_off_fp()
1485 while (nr_buffers_in_freepool(dev, fp) < fp->nr_buffers) { in top_off_fp()
1487 skb = alloc_skb (fp->bufsize, gfp_flags); in top_off_fp()
1488 fs_dprintk (FS_DEBUG_ALLOC, "Alloc rec-skb: %p(%d)\n", skb, fp->bufsize); in top_off_fp()
1501 ne->flags = FP_FLAGS_EPI | fp->bufsize; in top_off_fp()
1504 ne->aal_bufsize = fp->bufsize; in top_off_fp()
1506 ne->fp = fp; in top_off_fp()
1514 qe_tmp = read_fs (dev, FP_EA(fp->offset)); in top_off_fp()
1521 write_fs (dev, FP_SA(fp->offset), virt_to_bus(ne)); in top_off_fp()
1523 write_fs (dev, FP_EA(fp->offset), virt_to_bus (ne)); in top_off_fp()
1524 fp->n++; /* XXX Atomic_inc? */ in top_off_fp()
1525 write_fs (dev, FP_CTU(fp->offset), 1); in top_off_fp()
1547 static void free_freepool(struct fs_dev *dev, struct freepool *fp) in free_freepool() argument
1551 write_fs (dev, FP_CNF(fp->offset), 0); in free_freepool()
1552 write_fs (dev, FP_SA (fp->offset), 0); in free_freepool()
1553 write_fs (dev, FP_EA (fp->offset), 0); in free_freepool()
1554 write_fs (dev, FP_CNT(fp->offset), 0); in free_freepool()
1555 write_fs (dev, FP_CTU(fp->offset), 0); in free_freepool()
1942 struct FS_BPENTRY *fp, *nxt; in firestream_remove_one() local
1983 for (fp=bus_to_virt (read_fs (dev, FP_SA(dev->rx_fp[i].offset))); in firestream_remove_one()
1984 !(fp->flags & FP_FLAGS_EPI);fp = nxt) { in firestream_remove_one()
1985 fs_dprintk (FS_DEBUG_ALLOC, "Free rec-skb: %p\n", fp->skb); in firestream_remove_one()
1986 dev_kfree_skb_any (fp->skb); in firestream_remove_one()
1987 nxt = bus_to_virt (fp->next); in firestream_remove_one()
1988 fs_dprintk (FS_DEBUG_ALLOC, "Free rec-d: %p\n", fp); in firestream_remove_one()
1989 kfree (fp); in firestream_remove_one()
1991 fs_dprintk (FS_DEBUG_ALLOC, "Free rec-skb: %p\n", fp->skb); in firestream_remove_one()
1992 dev_kfree_skb_any (fp->skb); in firestream_remove_one()
1993 fs_dprintk (FS_DEBUG_ALLOC, "Free rec-d: %p\n", fp); in firestream_remove_one()
1994 kfree (fp); in firestream_remove_one()