Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/
H A Dfsl_ifc_spl.c36 unsigned int bufnum, int page_size) in check_read_ecc() argument
38 u32 reg = eccstat[bufnum / 4]; in check_read_ecc()
39 int errors = (reg >> ((3 - bufnum % 4) * 8)) & 0xf; in check_read_ecc()
68 static inline void nand_wait(uchar *buf, int bufnum, int page_size) in nand_wait() argument
76 bufnum *= bufperpage; in nand_wait()
77 bufnum_end = bufnum + bufperpage - 1; in nand_wait()
89 for (i = bufnum / 4; i <= bufnum_end / 4; i++) in nand_wait()
92 for (i = bufnum; i <= bufnum_end; i++) { in nand_wait()
118 int bufnum_mask, bufnum, ver = 0; in nand_spl_load_image() local
204 bufnum = pg_no & bufnum_mask; in nand_spl_load_image()
[all …]
H A Dfsl_ifc_nand.c248 u32 eccstat, unsigned int bufnum) in check_read_ecc() argument
250 return (eccstat >> ((3 - bufnum % 4) * 8)) & 15; in check_read_ecc()
293 int bufnum = ctrl->page & priv->bufnum_mask; in fsl_ifc_run_command() local
294 int sector_start = bufnum * chip->ecc.steps; in fsl_ifc_run_command()
/OK3568_Linux_fs/kernel/drivers/net/arcnet/
H A 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 …]
H A 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()
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.c62 static void null_rx(struct net_device *dev, int bufnum,
67 int length, int bufnum);
69 static void arcnet_rx(struct net_device *dev, int bufnum);
161 static void arcnet_dump_packet(struct net_device *dev, int bufnum, in arcnet_dump_packet() argument
176 lp->hw.copy_from_card(dev, bufnum, 0, buf, 512); in arcnet_dump_packet()
191 #define arcnet_dump_packet(dev, bufnum, desc, take_arcnet_lock) do { } while (0) argument
288 static void release_arcbuf(struct net_device *dev, int bufnum) in release_arcbuf() argument
293 lp->buf_queue[lp->first_free_buf++] = bufnum; in release_arcbuf()
298 bufnum); in release_arcbuf()
1121 static void arcnet_rx(struct net_device *dev, int bufnum) in arcnet_rx() argument
[all …]
H A Darcdevice.h196 void (*rx)(struct net_device *dev, int bufnum,
203 int length, int bufnum);
204 int (*continue_tx)(struct net_device *dev, int bufnum);
327 void (*copy_to_card)(struct net_device *dev, int bufnum,
329 void (*copy_from_card)(struct net_device *dev, int bufnum,
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,
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()
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 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,
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()
/OK3568_Linux_fs/u-boot/fs/fat/
H A Dfat_write.c368 __u32 bufnum, offset, off16; in set_fatent_value() local
373 bufnum = entry / FAT32BUFSIZE; in set_fatent_value()
374 offset = entry - bufnum * FAT32BUFSIZE; in set_fatent_value()
377 bufnum = entry / FAT16BUFSIZE; in set_fatent_value()
378 offset = entry - bufnum * FAT16BUFSIZE; in set_fatent_value()
381 bufnum = entry / FAT12BUFSIZE; in set_fatent_value()
382 offset = entry - bufnum * FAT12BUFSIZE; in set_fatent_value()
390 if (bufnum != mydata->fatbufnum) { in set_fatent_value()
394 __u32 startblock = bufnum * FATBUFBLOCKS; in set_fatent_value()
409 mydata->fatbufnum = bufnum; in set_fatent_value()
H A Dfat.c170 __u32 bufnum; in get_fatent() local
181 bufnum = entry / FAT32BUFSIZE; in get_fatent()
182 offset = entry - bufnum * FAT32BUFSIZE; in get_fatent()
185 bufnum = entry / FAT16BUFSIZE; in get_fatent()
186 offset = entry - bufnum * FAT16BUFSIZE; in get_fatent()
189 bufnum = entry / FAT12BUFSIZE; in get_fatent()
190 offset = entry - bufnum * FAT12BUFSIZE; in get_fatent()
202 if (bufnum != mydata->fatbufnum) { in get_fatent()
206 __u32 startblock = bufnum * FATBUFBLOCKS; in get_fatent()
222 mydata->fatbufnum = bufnum; in get_fatent()
/OK3568_Linux_fs/kernel/include/linux/usb/
H A Drenesas_usbhs.h111 u8 bufnum; member
117 .bufnum = (_num), \
/OK3568_Linux_fs/kernel/fs/gfs2/
H A Dmeta_io.c118 unsigned int bufnum; in gfs2_getbuf() local
125 bufnum = blkno - (index << shift); /* block buf index within page */ in gfs2_getbuf()
145 for (bh = page_buffers(page); bufnum--; bh = bh->b_this_page) in gfs2_getbuf()
407 unsigned int bufnum = blkno - (index << shift); in gfs2_getjdatabuf() local
418 for (bh = page_buffers(page); bufnum--; bh = bh->b_this_page) in gfs2_getjdatabuf()
/OK3568_Linux_fs/kernel/drivers/char/xillybus/
H A Dxillybus_core.c321 int bufnum, int bytebufsize) in xilly_get_dma_buffers() argument
329 this_buffer = devm_kcalloc(dev, bufnum, in xilly_get_dma_buffers()
336 for (i = 0; i < bufnum; i++) { in xilly_get_dma_buffers()
409 int channelnum, bufnum, bufsize, format, is_writebuf; in xilly_setupchannels() local
491 bufnum = 1 << (chandesc[3] & 0x0f); in xilly_setupchannels()
512 buffers = devm_kcalloc(dev, bufnum, in xilly_setupchannels()
522 channel->num_rd_buffers = bufnum; in xilly_setupchannels()
531 bufnum, bytebufsize); in xilly_setupchannels()
533 channel->num_wr_buffers = bufnum; in xilly_setupchannels()
545 bufnum, bytebufsize); in xilly_setupchannels()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/
H A Dm66592-udc.c229 u16 bufnum = 0, buf_bsize = 0; in pipe_buffer_setting() local
243 bufnum = 4 + (info->pipe - M66592_BASE_PIPENUM_INT); in pipe_buffer_setting()
249 bufnum = info->pipe - M66592_BASE_PIPENUM_BULK; in pipe_buffer_setting()
251 bufnum = info->pipe - M66592_BASE_PIPENUM_ISOC; in pipe_buffer_setting()
253 bufnum = M66592_BASE_BUFNUM + (bufnum * 16); in pipe_buffer_setting()
260 bufnum = M66592_BASE_BUFNUM + in pipe_buffer_setting()
266 if (buf_bsize && ((bufnum + 16) >= M66592_MAX_BUFNUM)) { in pipe_buffer_setting()
272 m66592_write(m66592, (buf_bsize << 10) | (bufnum), M66592_PIPEBUF); in pipe_buffer_setting()
H A Dr8a66597-udc.c319 u16 bufnum = 0, buf_bsize = 0; in pipe_buffer_setting() local
333 bufnum = 4 + (info->pipe - R8A66597_BASE_PIPENUM_INT); in pipe_buffer_setting()
339 bufnum = info->pipe - R8A66597_BASE_PIPENUM_BULK; in pipe_buffer_setting()
341 bufnum = info->pipe - R8A66597_BASE_PIPENUM_ISOC; in pipe_buffer_setting()
343 bufnum = R8A66597_BASE_BUFNUM + (bufnum * 16); in pipe_buffer_setting()
350 bufnum = R8A66597_BASE_BUFNUM + in pipe_buffer_setting()
356 if (buf_bsize && ((bufnum + 16) >= R8A66597_MAX_BUFNUM)) { in pipe_buffer_setting()
362 r8a66597_write(r8a66597, (buf_bsize << 10) | (bufnum), PIPEBUF); in pipe_buffer_setting()
/OK3568_Linux_fs/u-boot/drivers/usb/host/
H A Dr8a66597-hcd.c232 u16 pipenum, bufnum, maxpacket; in pipe_buffer_setting() local
236 bufnum = BULK_IN_BUFNUM; in pipe_buffer_setting()
240 bufnum = BULK_OUT_BUFNUM; in pipe_buffer_setting()
260 r8a66597_write(r8a66597, (8 << 10) | bufnum, PIPEBUF); in pipe_buffer_setting()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/usb/host/
H A Dr8a66597-hcd.c620 r8a66597_write(r8a66597, (info->buf_bsize << 10) | (info->bufnum), in pipe_buffer_setting()
722 u16 bufnum = 0; in get_bufnum() local
725 bufnum = 0; in get_bufnum()
727 bufnum = 8 + (pipenum - 1) * R8A66597_BUF_BSIZE*2; in get_bufnum()
729 bufnum = 4 + (pipenum - 6); in get_bufnum()
733 return bufnum; in get_bufnum()
944 info.bufnum = get_bufnum(info.pipenum); in init_pipe_info()
H A Dr8a66597.h38 u16 bufnum; member
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/include/video/
H A Dimx-ipu-v3.h259 void ipu_cpmem_set_buffer(struct ipuv3_channel *ch, int bufnum, dma_addr_t buf);

12