Home
last modified time | relevance | path

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

/linux/drivers/net/arcnet/
H A Drfc1201.c42 static void rx(struct net_device *dev, int bufnum,
47 int bufnum);
48 static int continue_tx(struct net_device *dev, int bufnum);
133 static void rx(struct net_device *dev, int bufnum, in rx() argument
163 lp->hw.copy_from_card(dev, bufnum, 512 - length, in rx()
198 lp->hw.copy_from_card(dev, bufnum, in rx()
354 lp->hw.copy_from_card(dev, bufnum, ofs + RFC1201_HDR_SIZE, in rx()
444 struct arc_rfc1201 *soft, int softlen, int bufnum) in load_pkt() argument
464 lp->hw.copy_to_card(dev, bufnum, ofs - RFC1201_HDR_SIZE, in load_pkt()
470 lp->hw.copy_to_card(dev, bufnum, 0, hard, ARC_HDR_SIZE); in load_pkt()
[all …]
H A Drfc1051.c40 static void rx(struct net_device *dev, int bufnum,
45 int bufnum);
122 static void rx(struct net_device *dev, int bufnum, in rx() argument
150 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx()
209 int bufnum) in prepare_tx() argument
216 lp->next_tx, lp->cur_tx, bufnum); in prepare_tx()
237 lp->hw.copy_to_card(dev, bufnum, 0, hard, ARC_HDR_SIZE); in prepare_tx()
238 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length); in prepare_tx()
H A 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()
H A 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()
H A Darcnet.c63 static void null_rx(struct net_device *dev, int bufnum,
68 int length, int bufnum);
70 static void arcnet_rx(struct net_device *dev, int bufnum);
163 static void arcnet_dump_packet(struct net_device *dev, int bufnum, in arcnet_dump_packet() argument
178 lp->hw.copy_from_card(dev, bufnum, 0, buf, 512); in arcnet_dump_packet()
193 #define arcnet_dump_packet(dev, bufnum, desc, take_arcnet_lock) do { } while (0) argument
286 static void release_arcbuf(struct net_device *dev, int bufnum) in release_arcbuf() argument
291 lp->buf_queue[lp->first_free_buf++] = bufnum; in release_arcbuf()
296 bufnum); in release_arcbuf()
1118 static void arcnet_rx(struct net_device *dev, int bufnum) in arcnet_rx() argument
[all …]
H A 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,
288 static void arcrimi_copy_to_card(struct net_device *dev, int bufnum, int offset, in arcrimi_copy_to_card() argument
292 void __iomem *memaddr = lp->mem_start + 0x800 + bufnum * 512 + offset; in arcrimi_copy_to_card()
297 static void arcrimi_copy_from_card(struct net_device *dev, int bufnum, in arcrimi_copy_from_card() argument
301 void __iomem *memaddr = lp->mem_start + 0x800 + bufnum * 512 + offset; in arcrimi_copy_from_card()
H A 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()
H A Darcdevice.h199 void (*rx)(struct net_device *dev, int bufnum,
206 int length, int bufnum);
207 int (*continue_tx)(struct net_device *dev, int bufnum);
330 void (*copy_to_card)(struct net_device *dev, int bufnum,
332 void (*copy_from_card)(struct net_device *dev, int bufnum,
H A 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()
H A 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,
630 static void com90xx_copy_to_card(struct net_device *dev, int bufnum, in com90xx_copy_to_card() argument
634 void __iomem *memaddr = lp->mem_start + bufnum * 512 + offset; in com90xx_copy_to_card()
639 static void com90xx_copy_from_card(struct net_device *dev, int bufnum, in com90xx_copy_from_card() argument
643 void __iomem *memaddr = lp->mem_start + bufnum * 512 + offset; in com90xx_copy_from_card()
/linux/include/linux/usb/
H A Drenesas_usbhs.h101 u8 bufnum; member
107 .bufnum = (_num), \
/linux/fs/gfs2/
H A Dmeta_io.c132 unsigned int bufnum; in gfs2_getbuf() local
139 bufnum = blkno - (index << shift); /* block buf index within page */ in gfs2_getbuf()
160 bh = get_nth_bh(bh, bufnum); in gfs2_getbuf()
420 unsigned int bufnum = blkno - (index << shift); in gfs2_getjdatabuf() local
427 bh = get_nth_bh(bh, bufnum); in gfs2_getjdatabuf()
/linux/drivers/char/xillybus/
H A Dxillybus_core.c346 int bufnum, int bytebufsize) in xilly_get_dma_buffers() argument
354 this_buffer = devm_kcalloc(dev, bufnum, in xilly_get_dma_buffers()
361 for (i = 0; i < bufnum; i++) { in xilly_get_dma_buffers()
434 int channelnum, bufnum, bufsize, format, is_writebuf; in xilly_setupchannels() local
516 bufnum = 1 << (chandesc[3] & 0x0f); in xilly_setupchannels()
537 buffers = devm_kcalloc(dev, bufnum, in xilly_setupchannels()
547 channel->num_rd_buffers = bufnum; in xilly_setupchannels()
556 bufnum, bytebufsize); in xilly_setupchannels()
558 channel->num_wr_buffers = bufnum; in xilly_setupchannels()
570 bufnum, bytebufsize); in xilly_setupchannels()
[all …]
H A Dxillyusb.c72 unsigned int bufnum; member
271 if (writebuf == fifo->bufnum) in fifo_write()
334 if (readbuf == fifo->bufnum) in fifo_read()
392 fifo->bufnum = 1 << log2_bufnum; in fifo_init()
393 fifo->size = fifo->bufnum * fifo->bufsize; in fifo_init()
396 fifo->mem = kmalloc_array(fifo->bufnum, sizeof(void *), GFP_KERNEL); in fifo_init()
401 for (i = 0; i < fifo->bufnum; i++) { in fifo_init()
440 for (i = 0; i < fifo->bufnum; i++) in fifo_mem_release()
492 int bufnum) in endpoint_alloc() argument
521 for (i = 0; i < bufnum; i++) { in endpoint_alloc()
/linux/drivers/mtd/nand/raw/
H A Dfsl_ifc_nand.c164 u32 eccstat, unsigned int bufnum) in check_read_ecc() argument
166 return (eccstat >> ((3 - bufnum % 4) * 8)) & 15; in check_read_ecc()
213 int bufnum = nctrl->page & priv->bufnum_mask; in fsl_ifc_run_command() local
214 int sector_start = bufnum * chip->ecc.steps; in fsl_ifc_run_command()
/linux/drivers/usb/host/
H A Dr8a66597.h38 u16 bufnum; member
/linux/drivers/gpu/ipu-v3/
H A Dipu-cpmem.c272 void ipu_cpmem_set_buffer(struct ipuv3_channel *ch, int bufnum, dma_addr_t buf) in ipu_cpmem_set_buffer() argument
276 if (bufnum) in ipu_cpmem_set_buffer()
/linux/include/video/
H A Dimx-ipu-v3.h260 void ipu_cpmem_set_buffer(struct ipuv3_channel *ch, int bufnum, dma_addr_t buf);
/linux/drivers/usb/renesas_usbhs/
H A Dpipe.c490 bufnmb = pipe_config->bufnum; in usbhsp_setup_pipebuff()
/linux/Documentation/driver-api/
H A Dxillybus.rst221 * bufnum: The number of buffers allocated for this pipe. Always a power of two.