search for: dbuf

Displaying 20 results from an estimated 59 matches for "dbuf".

Did you mean: buf
2002 Dec 20
1
smbclient and large file support
...chk, l; char *jp; - DEBUG(5, ("WriteTarHdr, Type = %c, Size= %i, Name = %s\n", ftype, size, aname)); + DEBUG(5, ("WriteTarHdr, Type = %c, Size= %.0f, Name = %s\n", ftype, (double)size, aname)); memset(hb.dummy, 0, sizeof(hb.dummy)); @@ -207,10 +207,10 @@ hb.dbuf.name[NAMSIZ-1]='\0'; safe_strcpy(hb.dbuf.mode, amode, strlen(amode)); - oct_it(0L, 8, hb.dbuf.uid); - oct_it(0L, 8, hb.dbuf.gid); - oct_it((long) size, 13, hb.dbuf.size); - oct_it((long) mtime, 13, hb.dbuf.mtime); + oct_it((SMB_BIG_UINT)0, 8, hb.dbuf.uid); + oct_it((SMB_BIG_UINT)0,...
2007 Jan 17
1
smbstatus -B segmentation fault
...haracters replaced with 'X'): #0 0x0017fa2c in memcpy () from /lib/tls/libc.so.6 #1 0x0029b19f in tdb_write (tdb=0x89b8608, off=3083693360, buf=0x89b8608, len=144) at tdb/tdb.c:404 #2 0x0029d578 in tdb_store (tdb=0x89b7078, key= {dptr = 0x89b8128 "\005X", dsize = 16}, dbuf= {dptr = 0x89b8608 "XX\002", dsize = 144}, flag=1) at tdb/tdb.c:1101 #3 0x002611a2 in traverse_fn (ttdb=0x89b7078, kbuf= {dptr = 0x89b8128 "\005X", dsize = 16}, dbuf= {dptr = 0x89b8608 "XX\002", dsize = 612}, state=0x25b622) at locking/brlock.c:1...
1998 Apr 12
0
Long file name support for smbclient
...d in a "standard" tar format header - we're not that interested @@ -184,23 +185,43 @@ return -1; } - strcpy(finfo->name, prefix); - - /* use l + 1 to do the null too; do prefix - prefcnt to zap leading slash */ - unfixtarname(finfo->name + strlen(prefix), hb->dbuf.name, - strlen(hb->dbuf.name) + 1); - /* can't handle links at present */ if (hb->dbuf.linkflag != '0') { - if (hb->dbuf.linkflag == 0) { + char *bp; + long tar_size; + switch (hb->dbuf.linkflag) { + case 0: DEBUG(6, ("Warning: NULL li...
2019 Apr 10
1
[PATCH v2 2/3] drm: switch drm_fb_xrgb8888_to_rgb565_dstclip to accept __iomem dst
...} EXPORT_SYMBOL(drm_fb_swab16); -static void drm_fb_xrgb8888_to_rgb565_lines(void *dst, unsigned int dst_pitch, - void *src, unsigned int src_pitch, - unsigned int src_linelength, - unsigned int lines, - bool swap) +static void drm_fb_xrgb8888_to_rgb565_line(u16 *dbuf, u32 *sbuf, + unsigned int pixels, + bool swab) { - unsigned int linepixels = src_linelength / sizeof(u32); - unsigned int x, y; - u32 *sbuf; - u16 *dbuf, val16; + unsigned int x; + u16 val16; - /* - * The cma memory is write-combined so reads are uncached. - * Speed up by fetchi...
2019 Apr 10
1
[PATCH v2 3/3] drm: switch drm_fb_xrgb8888_to_rgb888_dstclip to accept __iomem dst
...h } EXPORT_SYMBOL(drm_fb_xrgb8888_to_rgb565_dstclip); -static void drm_fb_xrgb8888_to_rgb888_lines(void *dst, unsigned int dst_pitch, - void *src, unsigned int src_pitch, - unsigned int src_linelength, - unsigned int lines) +static void drm_fb_xrgb8888_to_rgb888_line(u8 *dbuf, u32 *sbuf, + unsigned int pixels) { - unsigned int linepixels = src_linelength / 3; - unsigned int x, y; - u32 *sbuf; - u8 *dbuf; + unsigned int x; - sbuf = kmalloc(src_linelength, GFP_KERNEL); - if (!sbuf) - return; - - for (y = 0; y < lines; y++) { - memcpy(sbuf, src, src_lineleng...
2007 Sep 18
3
newbie question about a dbuf-arc eviction race
Hi, Can a dbuf be in DB_CACHED state, db_holds == 0, b_efunc != NULL while its db_buf is put on the eviction list ? From an ASSERT in dbuf_do_evict(), it appears that it can. If it can, I am wondering what is preventing the following race dbuf_hold_impl() db = dbuf_find(dn, level, blkid); ... if...
2007 Aug 26
3
Kernel panic receiving incremental snapshots
..., I am wondering if anyone has seen this kernel panic before? It happened on an X4500 running Sol10U3 while it was receiving incremental snapshot updates. Thanks. Aug 25 17:01:50 ldasdata6 ^Mpanic[cpu0]/thread=fffffe857d53f7a0: Aug 25 17:01:50 ldasdata6 genunix: [ID 895785 kern.notice] dangling dbufs (dn=fffffe82a3532d10, dbuf=fffffe8b4e338b90) Aug 25 17:01:50 ldasdata6 unix: [ID 100000 kern.notice] Aug 25 17:01:50 ldasdata6 genunix: [ID 655072 kern.notice] fffffe8001112a80 zfs:zfsctl_ops_root+2fa59a42 () Aug 25 17:01:50 ldasdata6 genunix: [ID 655072 kern.notice] fffffe8001112ac0 zfs:dmu_objs...
2019 Apr 09
0
[PATCH 4/4] drm: add convert_lines_toio() variant, fix cirrus builds on powerpc.
...+static void convert_lines_toio(void __iomem *dst, unsigned int dst_pitch, + void *src, unsigned int src_pitch, + unsigned int pixels, + unsigned int lines, + struct drm_format_convert *conv) +{ + u32 dst_linelength = pixels * conv->dst_cpp; + u32 y; + void *dbuf; + + dbuf = kmalloc(dst_linelength, GFP_KERNEL); + if (!dbuf) + return; + + for (y = 0; y < lines; y++) { + conv->func(dbuf, src, pixels); + memcpy_toio(dst, dbuf, dst_linelength); + src += src_pitch; + dst += dst_pitch; + } + + kfree(dbuf); +} + static u32 clip_offset(struct drm_rect *...
1999 Oct 05
0
smbclient tar restore problem (linkflag) from tape-drive
...rle.ps.gz Skip = 0, cliplist=<NULL>, file=\a\508_c_rle.ps.gz Skiping file. Size = 2231512 Advancing to next block: a3e80 ... (2) CODE SNIPPETS from "clitar.c" In clitar.c the problem appears to be due to the linkflag: /* can't handle some links at present */ if ((hb->dbuf.linkflag != '0') && (hb -> dbuf.linkflag != '5')) { if (hb->dbuf.linkflag == 0) { DEBUG(6, ("Warning: NULL link flag (gnu tar archive ?) %s\n", finfo->name)); ... In the following code, since linkflag is NULL, it switches to the "default...
2008 Nov 22
2
GetFinalPathNameByHandle for XP and earlier
...buf = 0.chr * MAXPATH # Buf will contain the full path, but with the device name instead # of the drive letter that we ultimately want. if GetMappedFileName(GetCurrentProcess(), pmem, buf, MAXPATH) > 0 buf.strip! dbuf = 0.chr * 512 # Get a list of logical devices if GetLogicalDriveStrings(dbuf.size, dbuf) > 0 devices = dbuf.split("\0") devices.delete_if{ |d| d.empty? || d.size > 3 } # Match the drive letter...
2013 Aug 02
1
[PATCH 3/5] Intel MIC Host Driver Changes for Virtio Devices.
...; + * Central API which initiates the copies across the PCIe bus. > > + */ > > +static int mic_virtio_copy_desc_buf(struct mic_vdev *mvdev, > > + struct vring_desc *desc, > > + void __user *ubuf, u32 rem_len, u32 doff, u32 *out_len) > > +{ > > + void __iomem *dbuf; > > + int err; > > + u32 len = le32_to_cpu(desc->len); > > + u16 flags = le16_to_cpu(desc->flags); > > + u64 addr = le64_to_cpu(desc->addr); > > + > > + dbuf = mvdev->mdev->aper.va + addr + doff; > > + *out_len = min_t(u32, rem_len, len - do...
2013 Aug 02
1
[PATCH 3/5] Intel MIC Host Driver Changes for Virtio Devices.
...; + * Central API which initiates the copies across the PCIe bus. > > + */ > > +static int mic_virtio_copy_desc_buf(struct mic_vdev *mvdev, > > + struct vring_desc *desc, > > + void __user *ubuf, u32 rem_len, u32 doff, u32 *out_len) > > +{ > > + void __iomem *dbuf; > > + int err; > > + u32 len = le32_to_cpu(desc->len); > > + u16 flags = le16_to_cpu(desc->flags); > > + u64 addr = le64_to_cpu(desc->addr); > > + > > + dbuf = mvdev->mdev->aper.va + addr + doff; > > + *out_len = min_t(u32, rem_len, len - do...
2020 Aug 19
4
[PATCH 05/28] media/v4l2: remove V4L2-FLAG-MEMORY-NON-CONSISTENT
...p; DMA_ATTR_NON_CONSISTENT); > -} > - > /*********************************************/ > /* scatterlist table functions */ > /*********************************************/ > @@ -341,13 +336,6 @@ static int > vb2_dc_dmabuf_ops_begin_cpu_access(struct dma_buf *dbuf, > enum dma_data_direction direction) > { > - struct vb2_dc_buf *buf = dbuf->priv; > - struct sg_table *sgt = buf->dma_sgt; > - > - if (vb2_dc_buffer_consistent(buf->attrs)) > - return 0; > - > -...
2020 Aug 19
0
[PATCH 05/28] media/v4l2: remove V4L2-FLAG-MEMORY-NON-CONSISTENT
...d long attr) -{ - return !(attr & DMA_ATTR_NON_CONSISTENT); -} - /*********************************************/ /* scatterlist table functions */ /*********************************************/ @@ -341,13 +336,6 @@ static int vb2_dc_dmabuf_ops_begin_cpu_access(struct dma_buf *dbuf, enum dma_data_direction direction) { - struct vb2_dc_buf *buf = dbuf->priv; - struct sg_table *sgt = buf->dma_sgt; - - if (vb2_dc_buffer_consistent(buf->attrs)) - return 0; - - dma_sync_sg_for_cpu(buf->dev, sgt->sgl, sgt->nents, buf->dma_dir); return 0; } @@ -35...
2013 Nov 26
1
[PATCH char-misc-linus 4/5] misc: mic: Fix sparse warnings and other endianness issues.
.../drivers/misc/mic/host/mic_virtio.c +++ b/drivers/misc/mic/host/mic_virtio.c @@ -41,7 +41,7 @@ static int mic_virtio_copy_to_user(struct mic_vdev *mvdev, * We are copying from IO below an should ideally use something * like copy_to_user_fromio(..) if it existed. */ - if (copy_to_user(ubuf, dbuf, len)) { + if (copy_to_user(ubuf, (void __force *)dbuf, len)) { err = -EFAULT; dev_err(mic_dev(mvdev), "%s %d err %d\n", __func__, __LINE__, err); @@ -66,7 +66,7 @@ static int mic_virtio_copy_from_user(struct mic_vdev *mvdev, * We are copying to IO below and should ideally us...
2013 Nov 26
1
[PATCH char-misc-linus 4/5] misc: mic: Fix sparse warnings and other endianness issues.
.../drivers/misc/mic/host/mic_virtio.c +++ b/drivers/misc/mic/host/mic_virtio.c @@ -41,7 +41,7 @@ static int mic_virtio_copy_to_user(struct mic_vdev *mvdev, * We are copying from IO below an should ideally use something * like copy_to_user_fromio(..) if it existed. */ - if (copy_to_user(ubuf, dbuf, len)) { + if (copy_to_user(ubuf, (void __force *)dbuf, len)) { err = -EFAULT; dev_err(mic_dev(mvdev), "%s %d err %d\n", __func__, __LINE__, err); @@ -66,7 +66,7 @@ static int mic_virtio_copy_from_user(struct mic_vdev *mvdev, * We are copying to IO below and should ideally us...
2020 Aug 19
0
[PATCH 05/28] media/v4l2: remove V4L2-FLAG-MEMORY-NON-CONSISTENT
...;> -} >> - >> /*********************************************/ >> /* scatterlist table functions */ >> /*********************************************/ >> @@ -341,13 +336,6 @@ static int >> vb2_dc_dmabuf_ops_begin_cpu_access(struct dma_buf *dbuf, >> enum dma_data_direction direction) >> { >> - struct vb2_dc_buf *buf = dbuf->priv; >> - struct sg_table *sgt = buf->dma_sgt; >> - >> - if (vb2_dc_buffer_consistent(buf->attrs)) >> -...
2015 Apr 14
2
[Bug 11215] New: compression/zlib errors discard the zlib error message
...65966 bytes received so far) [generator] rsync error: error in rsync protocol data stream (code 12) at io.c(226) [generator=3.1.0] The first error (inflate returned -3 (0 bytes)) was tracked in token.c: > case r_inflating: > rx_strm.next_out = (Bytef *)dbuf; > rx_strm.avail_out = AVAIL_OUT_SIZE(CHUNK_SIZE); > r = inflate(&rx_strm, Z_NO_FLUSH); > n = AVAIL_OUT_SIZE(CHUNK_SIZE) - rx_strm.avail_out; > if (r != Z_OK) { >...
2020 Feb 06
0
[PATCH] Add support for zstd compression
...zstd_dctx = ZSTD_createDCtx(); + if (!zstd_dctx) { + rprintf(FERROR, "ZSTD_createDStream failed\n"); + exit_cleanup(RERR_PROTOCOL); + } + + /* Output buffer fits two decompressed blocks */ + out_buffer_size = ZSTD_DStreamOutSize() * 2; + cbuf = new_array(char, MAX_DATA_COUNT); + dbuf = new_array(char, out_buffer_size); + if (!cbuf || !dbuf) + out_of_memory("recv_zstd_token"); + + zstd_in_buff.src = cbuf; + zstd_out_buff.dst = dbuf; + + decomp_init_done = 1; + } + + do { + switch (recv_state) { + case r_init: + recv_state = r_idle; + rx_token = 0; + break; + +...
2013 Jul 25
1
[PATCH 3/5] Intel MIC Host Driver Changes for Virtio Devices.
...->next); + read_barrier_depends(); + return next; +} + +/* + * Central API which initiates the copies across the PCIe bus. + */ +static int mic_virtio_copy_desc_buf(struct mic_vdev *mvdev, + struct vring_desc *desc, + void __user *ubuf, u32 rem_len, u32 doff, u32 *out_len) +{ + void __iomem *dbuf; + int err; + u32 len = le32_to_cpu(desc->len); + u16 flags = le16_to_cpu(desc->flags); + u64 addr = le64_to_cpu(desc->addr); + + dbuf = mvdev->mdev->aper.va + addr + doff; + *out_len = min_t(u32, rem_len, len - doff); + if (flags & VRING_DESC_F_WRITE) { + /* + * We are copyin...