Home
last modified time | relevance | path

Searched refs:bufnum (Results 1 – 17 of 17) sorted by relevance

/linux-2.6.39/drivers/net/arcnet/
Darc-rawmode.c39 static void rx(struct net_device *dev, int bufnum,
44 int bufnum);
88 static void rx(struct net_device *dev, int bufnum, in rx() argument
120 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx()
168 int bufnum) in prepare_tx() argument
175 lp->next_tx, lp->cur_tx, bufnum); in prepare_tx()
197 lp->hw.copy_to_card(dev, bufnum, 0, hard, ARC_HDR_SIZE); in prepare_tx()
198 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length); in prepare_tx()
Drfc1051.c39 static void rx(struct net_device *dev, int bufnum,
44 int bufnum);
125 static void rx(struct net_device *dev, int bufnum, in rx() argument
154 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx()
219 int bufnum) in prepare_tx() argument
226 lp->next_tx, lp->cur_tx, bufnum); in prepare_tx()
245 lp->hw.copy_to_card(dev, bufnum, 0, hard, ARC_HDR_SIZE); in prepare_tx()
246 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length); in prepare_tx()
Drfc1201.c39 static void rx(struct net_device *dev, int bufnum,
44 int bufnum);
45 static int continue_tx(struct net_device *dev, int bufnum);
134 static void rx(struct net_device *dev, int bufnum, in rx() argument
163 lp->hw.copy_from_card(dev, bufnum, 512 - length, in rx()
196 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx()
350 lp->hw.copy_from_card(dev, bufnum, ofs + RFC1201_HDR_SIZE, in rx()
442 struct arc_rfc1201 *soft, int softlen, int bufnum) in load_pkt() argument
462 lp->hw.copy_to_card(dev, bufnum, ofs - RFC1201_HDR_SIZE, in load_pkt()
467 lp->hw.copy_to_card(dev, bufnum, 0, hard, ARC_HDR_SIZE); in load_pkt()
[all …]
Dcapmode.c41 static void rx(struct net_device *dev, int bufnum, in rx() argument
82 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx()
135 int bufnum) in prepare_tx() argument
148 lp->next_tx, lp->cur_tx, bufnum); in prepare_tx()
172 lp->hw.copy_to_card(dev, bufnum, 0, hard, ARC_HDR_SIZE); in prepare_tx()
173 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft.cap.proto, in prepare_tx()
178 lp->hw.copy_to_card(dev, bufnum, ofs+1, in prepare_tx()
Darcnet.c57 static void null_rx(struct net_device *dev, int bufnum,
62 int length, int bufnum);
64 static void arcnet_rx(struct net_device *dev, int bufnum);
177 static void arcnet_dump_packet(struct net_device *dev, int bufnum, in arcnet_dump_packet() argument
191 lp->hw.copy_from_card(dev, bufnum, 0, buf, 512); in arcnet_dump_packet()
206 #define arcnet_dump_packet(dev, bufnum, desc,take_arcnet_lock) do { } while (0) argument
241 static void release_arcbuf(struct net_device *dev, int bufnum) in release_arcbuf() argument
246 lp->buf_queue[lp->first_free_buf++] = bufnum; in release_arcbuf()
251 bufnum); in release_arcbuf()
1001 static void arcnet_rx(struct net_device *dev, int bufnum) in arcnet_rx() argument
[all …]
Dcom20020.c52 static void com20020_copy_to_card(struct net_device *dev, int bufnum,
54 static void com20020_copy_from_card(struct net_device *dev, int bufnum,
59 static void com20020_copy_from_card(struct net_device *dev, int bufnum, in com20020_copy_from_card() argument
62 int ioaddr = dev->base_addr, ofs = 512 * bufnum + offset; in com20020_copy_from_card()
73 static void com20020_copy_to_card(struct net_device *dev, int bufnum, in com20020_copy_to_card() argument
76 int ioaddr = dev->base_addr, ofs = 512 * bufnum + offset; in com20020_copy_to_card()
Darc-rimi.c50 static void arcrimi_copy_to_card(struct net_device *dev, int bufnum, int offset,
52 static void arcrimi_copy_from_card(struct net_device *dev, int bufnum, int offset,
305 static void arcrimi_copy_to_card(struct net_device *dev, int bufnum, int offset, in arcrimi_copy_to_card() argument
309 void __iomem *memaddr = lp->mem_start + 0x800 + bufnum * 512 + offset; in arcrimi_copy_to_card()
314 static void arcrimi_copy_from_card(struct net_device *dev, int bufnum, int offset, in arcrimi_copy_from_card() argument
318 void __iomem *memaddr = lp->mem_start + 0x800 + bufnum * 512 + offset; in arcrimi_copy_from_card()
Dcom90io.c50 static void com90io_copy_to_card(struct net_device *dev, int bufnum, int offset,
52 static void com90io_copy_from_card(struct net_device *dev, int bufnum, int offset,
345 static void com90io_copy_to_card(struct net_device *dev, int bufnum, int offset, in com90io_copy_to_card() argument
348 TIME("put_whole_buffer", count, put_whole_buffer(dev, bufnum * 512 + offset, count, buf)); in com90io_copy_to_card()
352 static void com90io_copy_from_card(struct net_device *dev, int bufnum, int offset, in com90io_copy_from_card() argument
355 TIME("get_whole_buffer", count, get_whole_buffer(dev, bufnum * 512 + offset, count, buf)); in com90io_copy_from_card()
Dcom90xx.c62 static void com90xx_copy_to_card(struct net_device *dev, int bufnum, int offset,
64 static void com90xx_copy_from_card(struct net_device *dev, int bufnum, int offset,
622 static void com90xx_copy_to_card(struct net_device *dev, int bufnum, int offset, in com90xx_copy_to_card() argument
626 void __iomem *memaddr = lp->mem_start + bufnum * 512 + offset; in com90xx_copy_to_card()
631 static void com90xx_copy_from_card(struct net_device *dev, int bufnum, int offset, in com90xx_copy_from_card() argument
635 void __iomem *memaddr = lp->mem_start + bufnum * 512 + offset; in com90xx_copy_from_card()
/linux-2.6.39/include/linux/
Darcdevice.h195 void (*rx) (struct net_device * dev, int bufnum,
202 int bufnum);
203 int (*continue_tx) (struct net_device * dev, int bufnum);
311 void (*copy_to_card) (struct net_device * dev, int bufnum, int offset,
313 void (*copy_from_card) (struct net_device * dev, int bufnum, int offset,
/linux-2.6.39/drivers/media/video/
Dmx2_camera.c254 int bufnum; member
1170 int bufnum, int state) in mx27_camera_frame_done_emma() argument
1180 BUG_ON(buf->bufnum != bufnum); in mx27_camera_frame_done_emma()
1185 if (readl(pcdev->base_emma + PRP_DEST_RGB1_PTR + 4 * bufnum) in mx27_camera_frame_done_emma()
1190 4 * bufnum)); in mx27_camera_frame_done_emma()
1206 PRP_DEST_RGB1_PTR + 4 * bufnum); in mx27_camera_frame_done_emma()
1213 buf->bufnum = !bufnum; in mx27_camera_frame_done_emma()
1221 writel(phys, pcdev->base_emma + PRP_DEST_RGB1_PTR + 4 * bufnum); in mx27_camera_frame_done_emma()
1252 mx27_camera_frame_done_emma(pcdev, buf->bufnum, VIDEOBUF_DONE); in mx27_camera_emma_irq()
1253 status &= ~(1 << (6 - buf->bufnum)); /* mark processed */ in mx27_camera_emma_irq()
/linux-2.6.39/fs/gfs2/
Dmeta_io.c134 unsigned int bufnum; in gfs2_getbuf() local
138 bufnum = blkno - (index << shift); /* block buf index within page */ in gfs2_getbuf()
157 for (bh = page_buffers(page); bufnum--; bh = bh->b_this_page) in gfs2_getbuf()
/linux-2.6.39/drivers/usb/gadget/
Dr8a66597-udc.c242 u16 bufnum = 0, buf_bsize = 0; in pipe_buffer_setting() local
256 bufnum = 4 + (info->pipe - R8A66597_BASE_PIPENUM_INT); in pipe_buffer_setting()
262 bufnum = info->pipe - R8A66597_BASE_PIPENUM_BULK; in pipe_buffer_setting()
264 bufnum = info->pipe - R8A66597_BASE_PIPENUM_ISOC; in pipe_buffer_setting()
266 bufnum = R8A66597_BASE_BUFNUM + (bufnum * 16); in pipe_buffer_setting()
273 bufnum = R8A66597_BASE_BUFNUM + in pipe_buffer_setting()
279 if (buf_bsize && ((bufnum + 16) >= R8A66597_MAX_BUFNUM)) { in pipe_buffer_setting()
285 r8a66597_write(r8a66597, (buf_bsize << 10) | (bufnum), PIPEBUF); in pipe_buffer_setting()
Dm66592-udc.c242 u16 bufnum = 0, buf_bsize = 0; in pipe_buffer_setting() local
256 bufnum = 4 + (info->pipe - M66592_BASE_PIPENUM_INT); in pipe_buffer_setting()
262 bufnum = info->pipe - M66592_BASE_PIPENUM_BULK; in pipe_buffer_setting()
264 bufnum = info->pipe - M66592_BASE_PIPENUM_ISOC; in pipe_buffer_setting()
266 bufnum = M66592_BASE_BUFNUM + (bufnum * 16); in pipe_buffer_setting()
273 bufnum = M66592_BASE_BUFNUM + in pipe_buffer_setting()
279 if (buf_bsize && ((bufnum + 16) >= M66592_MAX_BUFNUM)) { in pipe_buffer_setting()
285 m66592_write(m66592, (buf_bsize << 10) | (bufnum), M66592_PIPEBUF); in pipe_buffer_setting()
/linux-2.6.39/drivers/usb/host/
Dr8a66597.h54 u16 bufnum; member
Dr8a66597-hcd.c640 r8a66597_write(r8a66597, (info->buf_bsize << 10) | (info->bufnum), in pipe_buffer_setting()
742 u16 bufnum = 0; in get_bufnum() local
745 bufnum = 0; in get_bufnum()
747 bufnum = 8 + (pipenum - 1) * R8A66597_BUF_BSIZE*2; in get_bufnum()
749 bufnum = 4 + (pipenum - 6); in get_bufnum()
753 return bufnum; in get_bufnum()
964 info.bufnum = get_bufnum(info.pipenum); in init_pipe_info()
/linux-2.6.39/drivers/infiniband/hw/ipath/
Dipath_driver.c1061 static inline void *ipath_get_egrbuf(struct ipath_devdata *dd, u32 bufnum) in ipath_get_egrbuf() argument
1064 (void *) dd->ipath_port0_skbinfo[bufnum].skb->data : NULL; in ipath_get_egrbuf()