Home
last modified time | relevance | path

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

/drivers/net/arcnet/
Drfc1201.c41 static void rx(struct net_device *dev, int bufnum,
46 int bufnum);
47 static int continue_tx(struct net_device *dev, int bufnum);
132 static void rx(struct net_device *dev, int bufnum, in rx() argument
162 lp->hw.copy_from_card(dev, bufnum, 512 - length, in rx()
197 lp->hw.copy_from_card(dev, bufnum, in rx()
353 lp->hw.copy_from_card(dev, bufnum, ofs + RFC1201_HDR_SIZE, in rx()
443 struct arc_rfc1201 *soft, int softlen, int bufnum) in load_pkt() argument
463 lp->hw.copy_to_card(dev, bufnum, ofs - RFC1201_HDR_SIZE, in load_pkt()
469 lp->hw.copy_to_card(dev, bufnum, 0, hard, ARC_HDR_SIZE); in load_pkt()
[all …]
Drfc1051.c40 static void rx(struct net_device *dev, int bufnum,
45 int bufnum);
121 static void rx(struct net_device *dev, int bufnum, in rx() argument
149 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx()
208 int bufnum) in prepare_tx() argument
215 lp->next_tx, lp->cur_tx, bufnum); in prepare_tx()
236 lp->hw.copy_to_card(dev, bufnum, 0, hard, ARC_HDR_SIZE); in prepare_tx()
237 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length); in prepare_tx()
Darc-rawmode.c39 static void rx(struct net_device *dev, int bufnum, in rx() argument
70 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx()
114 int bufnum) in prepare_tx() argument
121 lp->next_tx, lp->cur_tx, bufnum); in prepare_tx()
145 lp->hw.copy_to_card(dev, bufnum, 0, hard, ARC_HDR_SIZE); in prepare_tx()
146 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length); in prepare_tx()
Dcapmode.c42 static void rx(struct net_device *dev, int bufnum, in rx() argument
83 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx()
133 int bufnum) in prepare_tx() argument
145 lp->next_tx, lp->cur_tx, bufnum); in prepare_tx()
170 lp->hw.copy_to_card(dev, bufnum, 0, hard, ARC_HDR_SIZE); in prepare_tx()
171 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft.cap.proto, in prepare_tx()
177 lp->hw.copy_to_card(dev, bufnum, ofs + 1, in prepare_tx()
Darcnet.c61 static void null_rx(struct net_device *dev, int bufnum,
66 int length, int bufnum);
68 static void arcnet_rx(struct net_device *dev, int bufnum);
160 static void arcnet_dump_packet(struct net_device *dev, int bufnum, in arcnet_dump_packet() argument
175 lp->hw.copy_from_card(dev, bufnum, 0, buf, 512); in arcnet_dump_packet()
190 #define arcnet_dump_packet(dev, bufnum, desc, take_arcnet_lock) do { } while (0) argument
287 static void release_arcbuf(struct net_device *dev, int bufnum) in release_arcbuf() argument
292 lp->buf_queue[lp->first_free_buf++] = bufnum; in release_arcbuf()
297 bufnum); in release_arcbuf()
1009 static void arcnet_rx(struct net_device *dev, int bufnum) in arcnet_rx() argument
[all …]
Darcdevice.h201 void (*rx)(struct net_device *dev, int bufnum,
208 int length, int bufnum);
209 int (*continue_tx)(struct net_device *dev, int bufnum);
324 void (*copy_to_card)(struct net_device *dev, int bufnum,
326 void (*copy_from_card)(struct net_device *dev, int bufnum,
Darc-rimi.c52 static void arcrimi_copy_to_card(struct net_device *dev, int bufnum, int offset,
54 static void arcrimi_copy_from_card(struct net_device *dev, int bufnum,
287 static void arcrimi_copy_to_card(struct net_device *dev, int bufnum, int offset, in arcrimi_copy_to_card() argument
291 void __iomem *memaddr = lp->mem_start + 0x800 + bufnum * 512 + offset; in arcrimi_copy_to_card()
296 static void arcrimi_copy_from_card(struct net_device *dev, int bufnum, in arcrimi_copy_from_card() argument
300 void __iomem *memaddr = lp->mem_start + 0x800 + bufnum * 512 + offset; in arcrimi_copy_from_card()
Dcom90io.c52 static void com90io_copy_to_card(struct net_device *dev, int bufnum, int offset,
54 static void com90io_copy_from_card(struct net_device *dev, int bufnum,
332 static void com90io_copy_to_card(struct net_device *dev, int bufnum, in com90io_copy_to_card() argument
336 put_whole_buffer(dev, bufnum * 512 + offset, count, buf)); in com90io_copy_to_card()
339 static void com90io_copy_from_card(struct net_device *dev, int bufnum, in com90io_copy_from_card() argument
343 get_whole_buffer(dev, bufnum * 512 + offset, count, buf)); in com90io_copy_from_card()
Dcom20020.c55 static void com20020_copy_to_card(struct net_device *dev, int bufnum,
57 static void com20020_copy_from_card(struct net_device *dev, int bufnum,
62 static void com20020_copy_from_card(struct net_device *dev, int bufnum, in com20020_copy_from_card() argument
65 int ioaddr = dev->base_addr, ofs = 512 * bufnum + offset; in com20020_copy_from_card()
77 static void com20020_copy_to_card(struct net_device *dev, int bufnum, in com20020_copy_to_card() argument
80 int ioaddr = dev->base_addr, ofs = 512 * bufnum + offset; in com20020_copy_to_card()
Dcom90xx.c63 static void com90xx_copy_to_card(struct net_device *dev, int bufnum, int offset,
65 static void com90xx_copy_from_card(struct net_device *dev, int bufnum,
629 static void com90xx_copy_to_card(struct net_device *dev, int bufnum, in com90xx_copy_to_card() argument
633 void __iomem *memaddr = lp->mem_start + bufnum * 512 + offset; in com90xx_copy_to_card()
638 static void com90xx_copy_from_card(struct net_device *dev, int bufnum, in com90xx_copy_from_card() argument
642 void __iomem *memaddr = lp->mem_start + bufnum * 512 + offset; in com90xx_copy_from_card()
/drivers/media/platform/soc_camera/
Dmx2_camera.c221 int bufnum; member
383 unsigned long phys, int bufnum) in mx27_update_emma_buf() argument
389 PRP_DEST_RGB1_PTR + 4 * bufnum); in mx27_update_emma_buf()
392 PRP_DEST_Y_PTR - 0x14 * bufnum); in mx27_update_emma_buf()
398 PRP_DEST_CB_PTR - 0x14 * bufnum); in mx27_update_emma_buf()
400 PRP_DEST_CR_PTR - 0x14 * bufnum); in mx27_update_emma_buf()
668 buf->internal.bufnum = 0; in mx2_start_streaming()
672 mx27_update_emma_buf(pcdev, phys, buf->internal.bufnum); in mx2_start_streaming()
677 buf->internal.bufnum = 1; in mx2_start_streaming()
681 mx27_update_emma_buf(pcdev, phys, buf->internal.bufnum); in mx2_start_streaming()
[all …]
/drivers/mtd/nand/
Dfsl_ifc_nand.c254 static int is_blank(struct mtd_info *mtd, unsigned int bufnum) in is_blank() argument
258 u8 __iomem *addr = priv->vbase + bufnum * (mtd->writesize * 2); in is_blank()
280 u32 *eccstat, unsigned int bufnum) in check_read_ecc() argument
282 u32 reg = eccstat[bufnum / 4]; in check_read_ecc()
285 errors = (reg >> ((3 - bufnum % 4) * 8)) & 15; in check_read_ecc()
334 int bufnum = nctrl->page & priv->bufnum_mask; in fsl_ifc_run_command() local
335 int sector = bufnum * chip->ecc.steps; in fsl_ifc_run_command()
353 if (!is_blank(mtd, bufnum)) in fsl_ifc_run_command()
/drivers/char/xillybus/
Dxillybus_core.c324 int bufnum, int bytebufsize) in xilly_get_dma_buffers() argument
332 this_buffer = devm_kcalloc(dev, bufnum, in xilly_get_dma_buffers()
339 for (i = 0; i < bufnum; i++) { in xilly_get_dma_buffers()
412 int channelnum, bufnum, bufsize, format, is_writebuf; in xilly_setupchannels() local
494 bufnum = 1 << (chandesc[3] & 0x0f); in xilly_setupchannels()
515 buffers = devm_kcalloc(dev, bufnum, in xilly_setupchannels()
525 channel->num_rd_buffers = bufnum; in xilly_setupchannels()
533 bufnum, bytebufsize); in xilly_setupchannels()
535 channel->num_wr_buffers = bufnum; in xilly_setupchannels()
546 bufnum, bytebufsize); in xilly_setupchannels()
[all …]
/drivers/usb/gadget/udc/
Dm66592-udc.c232 u16 bufnum = 0, buf_bsize = 0; in pipe_buffer_setting() local
246 bufnum = 4 + (info->pipe - M66592_BASE_PIPENUM_INT); in pipe_buffer_setting()
252 bufnum = info->pipe - M66592_BASE_PIPENUM_BULK; in pipe_buffer_setting()
254 bufnum = info->pipe - M66592_BASE_PIPENUM_ISOC; in pipe_buffer_setting()
256 bufnum = M66592_BASE_BUFNUM + (bufnum * 16); in pipe_buffer_setting()
263 bufnum = M66592_BASE_BUFNUM + in pipe_buffer_setting()
269 if (buf_bsize && ((bufnum + 16) >= M66592_MAX_BUFNUM)) { in pipe_buffer_setting()
275 m66592_write(m66592, (buf_bsize << 10) | (bufnum), M66592_PIPEBUF); in pipe_buffer_setting()
Dr8a66597-udc.c322 u16 bufnum = 0, buf_bsize = 0; in pipe_buffer_setting() local
336 bufnum = 4 + (info->pipe - R8A66597_BASE_PIPENUM_INT); in pipe_buffer_setting()
342 bufnum = info->pipe - R8A66597_BASE_PIPENUM_BULK; in pipe_buffer_setting()
344 bufnum = info->pipe - R8A66597_BASE_PIPENUM_ISOC; in pipe_buffer_setting()
346 bufnum = R8A66597_BASE_BUFNUM + (bufnum * 16); in pipe_buffer_setting()
353 bufnum = R8A66597_BASE_BUFNUM + in pipe_buffer_setting()
359 if (buf_bsize && ((bufnum + 16) >= R8A66597_MAX_BUFNUM)) { in pipe_buffer_setting()
365 r8a66597_write(r8a66597, (buf_bsize << 10) | (bufnum), PIPEBUF); in pipe_buffer_setting()
/drivers/usb/host/
Dr8a66597-hcd.c635 r8a66597_write(r8a66597, (info->buf_bsize << 10) | (info->bufnum), in pipe_buffer_setting()
737 u16 bufnum = 0; in get_bufnum() local
740 bufnum = 0; in get_bufnum()
742 bufnum = 8 + (pipenum - 1) * R8A66597_BUF_BSIZE*2; in get_bufnum()
744 bufnum = 4 + (pipenum - 6); in get_bufnum()
748 return bufnum; in get_bufnum()
959 info.bufnum = get_bufnum(info.pipenum); in init_pipe_info()
Dr8a66597.h51 u16 bufnum; member
/drivers/gpu/ipu-v3/
Dipu-cpmem.c247 void ipu_cpmem_set_buffer(struct ipuv3_channel *ch, int bufnum, dma_addr_t buf) in ipu_cpmem_set_buffer() argument
249 if (bufnum) in ipu_cpmem_set_buffer()
/drivers/net/ethernet/apm/xgene/
Dxgene_enet_main.c908 static u16 xgene_enet_get_ring_id(enum xgene_ring_owner owner, u8 bufnum) in xgene_enet_get_ring_id() argument
910 return (owner << 6) | (bufnum & GENMASK(5, 0)); in xgene_enet_get_ring_id()
/drivers/staging/rdma/ipath/
Dipath_driver.c1057 static inline void *ipath_get_egrbuf(struct ipath_devdata *dd, u32 bufnum) in ipath_get_egrbuf() argument
1060 (void *) dd->ipath_port0_skbinfo[bufnum].skb->data : NULL; in ipath_get_egrbuf()