search for: ptrs

Displaying 20 results from an estimated 67 matches for "ptrs".

Did you mean: ptr
2020 Oct 23
0
Wine release 5.20
...ed. wined3d: Do not invalidate STATE_RENDER(WINED3D_RS_TWOSIDEDSTENCILMODE). wined3d: Use wined3d_get_primary_adapter_luid() if we didn't get a valid LUID from Vulkan. Huw D. M. Davies (50): riched20: Use a structure to hold the repaint range. riched20: Use ME_Paragraph ptrs for the update range. riched20: Use the table_row_start/end() helpers. riched20: Use ME_Paragraph and ME_Run ptrs in GetCursorCoordinates(). riched20: Use ME_Paragraph ptrs in InternalDeleteText(). riched20: Use paragraph and run ptrs in InsertTextFromCursor(). riched2...
2017 Dec 08
3
[PATCH] drm/nouveau/imem/nv50: fix incorrect use of refcount API
.../drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c index 1ba7289684aa..db48a1daca0c 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c @@ -249,7 +249,7 @@ nv50_instobj_acquire(struct nvkm_memory *memory) iobj->base.memory.ptrs = &nv50_instobj_fast; else iobj->base.memory.ptrs = &nv50_instobj_slow; - refcount_inc(&iobj->maps); + refcount_set(&iobj->maps, 1); } mutex_unlock(&imem->subdev.mutex); -- 2.11.0
2023 Dec 08
1
[PATCH] drm/nouveau: Fixup gk20a instobj hierarchy
...mory, .offset = offset, .mem = node->mn, }; @@ -391,8 +391,8 @@ gk20a_instobj_ctor_dma(struct gk20a_instmem *imem, u32 npages, u32 align, return -ENOMEM; *_node = &node->base; - nvkm_memory_ctor(&gk20a_instobj_func_dma, &node->base.memory); - node->base.memory.ptrs = &gk20a_instobj_ptrs; + nvkm_memory_ctor(&gk20a_instobj_func_dma, &node->base.base.memory); + node->base.base.memory.ptrs = &gk20a_instobj_ptrs; node->base.vaddr = dma_alloc_attrs(dev, npages << PAGE_SHIFT, &node->handle, GFP_KERNEL, @@ -438,8 +43...
2015 Mar 01
2
[LLVMdev] Extending Vector GEP - proposal
Hi, According to the current GEP syntax, vector GEP requires that each index must be a vector with the same number of elements. %A = getelementptr <4 x i8*> %ptrs, <4 x i64> %offsets I propose to lessen this requirement. Let each index be or vector or scalar. All vector indices must have the same number of elements. The scalar value will mean the splat vector value. %A = getelementptr i8* %ptr, <4 x i64> %offsets or %A = getelementptr <4 x i...
2000 Dec 22
2
REading the netCDF format into R
...tor, latitude vector, time vector, and the missing value) Yours sincerely Rasmus Benestad ----------------------------------------------------------------------- The main part of the code looks like: SEXP nc2r(char **fname, char **vname){ int ncread(); int status,i,j,k,nx,ny,nt; long int ptrs[5]; /* array of pointers holding locations */ /* returned by malloc in ncread */ double ofs, scl; /* offset and scaling factors */ double *ptr; SEXP field, dim, dimnames, lon, lat, tim, missing; printf("ncfile= %s, vname=%...
2017 Dec 18
1
[PATCH] drm/nouveau/imem/nv50: fix incorrect use of refcount API
...a7289684aa..db48a1daca0c 100644 > > --- a/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c > > +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c > > @@ -249,7 +249,7 @@ nv50_instobj_acquire(struct nvkm_memory *memory) > > iobj->base.memory.ptrs = &nv50_instobj_fast; > > else > > iobj->base.memory.ptrs = &nv50_instobj_slow; > > - refcount_inc(&iobj->maps); > > + refcount_set(&iobj->maps, 1); > > } > > &gt...
2023 Dec 14
1
[PATCH] drm/nouveau: Fixup gk20a instobj hierarchy
...de->mn, > }; > @@ -391,8 +391,8 @@ gk20a_instobj_ctor_dma(struct gk20a_instmem *imem, u32 npages, u32 align, > return -ENOMEM; > *_node = &node->base; > > - nvkm_memory_ctor(&gk20a_instobj_func_dma, &node->base.memory); > - node->base.memory.ptrs = &gk20a_instobj_ptrs; > + nvkm_memory_ctor(&gk20a_instobj_func_dma, &node->base.base.memory); > + node->base.base.memory.ptrs = &gk20a_instobj_ptrs; > > node->base.vaddr = dma_alloc_attrs(dev, npages << PAGE_SHIFT, > &node->handl...
2005 Jun 23
2
Sample accuracy in reading
Hey guys, I've finished my work on reading vorbis files (straight reading at either PCM sample lengths, or time lengths). However, I've run across a question. When you call vorbis_synthesis_read, I assume that increments the internal ptrs so you don't get the same data twice. The question is, what happens if you call vorbis_synthesis and vorbis_synthesis_blockin? Does the next call have what SHOULD be the next PCM data, or has it incidentally been invalidated? A little simpler, is it safe to load another page packet and decode w...
2015 Mar 03
4
[LLVMdev] Extending Vector GEP - proposal
...r 1, 2015, at 2:10 AM, Demikhovsky, Elena <elena.demikhovsky at intel.com<mailto:elena.demikhovsky at intel.com>> wrote: Hi, According to the current GEP syntax, vector GEP requires that each index must be a vector with the same number of elements. %A = getelementptr <4 x i8*> %ptrs, <4 x i64> %offsets I propose to lessen this requirement. Let each index be or vector or scalar. All vector indices must have the same number of elements. The scalar value will mean the splat vector value. %A = getelementptr i8* %ptr, <4 x i64> %offsets or %A = getelementptr <4 x i...
2008 Sep 26
6
Mapping hvm guest pages in Dom0
hello, I would like to map (Read/Write) pages owned by a HVM guest from my Dom0 Linux kernel module. I have access to the "machine frame numbers" of these pages. 1. What is the right interface to do this? kmap needs ''struct page'' ptrs which I doubt exist for pages owned by a HVM guest. Is there a hypercall to do this then? 2. Do I need to modify the HVM behavior in any way for this? (e.g., load a driver in the guest that will setup grant tables?). I need to keep my guest "pure HVM". thanks, ./satya ________________...
2013 Aug 29
23
[PATCH] Btrfs: optimize key searches in btrfs_search_slot
...ed long offset; + struct btrfs_disk_key *k = NULL; + struct btrfs_disk_key unaligned; + + if (*prev_cmp != 0) { + *prev_cmp = bin_search(b, key, level, slot); + return *prev_cmp; + } + + if (level == 0) + offset = offsetof(struct btrfs_leaf, items); + else + offset = offsetof(struct btrfs_node, ptrs); + + /* + * Map the entire extent buffer, otherwise callers can''t access + * all keys/items of the leaf/node. Specially needed for case + * where leaf/node size is greater than page cache size. + */ + while (len_left > 0) { + unsigned long len = min(PAGE_CACHE_SIZE, len_left); +...
2017 Dec 18
0
[PATCH] drm/nouveau/imem/nv50: fix incorrect use of refcount API
...nv50.c > index 1ba7289684aa..db48a1daca0c 100644 > --- a/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c > +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c > @@ -249,7 +249,7 @@ nv50_instobj_acquire(struct nvkm_memory *memory) > iobj->base.memory.ptrs = &nv50_instobj_fast; > else > iobj->base.memory.ptrs = &nv50_instobj_slow; > - refcount_inc(&iobj->maps); > + refcount_set(&iobj->maps, 1); > } > > mutex_unlock(&im...
2002 Nov 18
0
[LLVMdev] Fixed DSGraph iteration, depth first search, etc...
...ass DSNode; // Each node in the graph class DSGraph; // A graph for a function -class DSNodeIterator; // Data structure graph traversal iterator namespace DS { // FIXME: After the paper, this should get cleaned up enum { PointerShift = 3, // 64bit ptrs = 3, 32 bit ptrs = 2 --- llvm/include/llvm/Analysis/DSNode.h:1.14 Sun Nov 10 00:48:24 2002 +++ llvm/include/llvm/Analysis/DSNode.h Mon Nov 18 15:45:30 2002 @@ -8,6 +8,8 @@ #define LLVM_ANALYSIS_DSNODE_H #include "llvm/Analysis/DSSupport.h" +template<typename BaseType> +class DSN...
2013 Jan 31
2
[LLVMdev] multiple LLVMContext or just one?
When building multiple modules should I be using multiple LLVMContext's or just one of them shared between the modules? I'm a little bit uncertain in regards to how the types work. The IR type checking appears to check exact ptrs for equality so how would multiple contexts actually work? Or is the type checking limited to within a given module? -- edA-qa mort-ora-y -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Sign: Please digitally sign your emails. Encrypt: I'm also happy to receive encryp...
2016 Dec 29
0
Modernizing LLVM Coding Style Guide and enforcing Clang-tidy
...or be consistent and obvious with what we want and then fix it if it leads to performance issue" > There is also other reason - emplace_back can't take arguments of some > types like bitfields, NULL, static member. Using emplace can also lead to > memory leak in case of smart ptrs > " > > auto *ptr = new int(1);v.push_back(std::unique_ptr<int>(ptr)); > > This is because replacing it with emplace_back could cause a leak of this > pointer if emplace_back would throw exception before emplacement (e.g. > not enough memory to add new element).&quot...
2004 Dec 09
1
Exim4 authentication patch
...tions_block *ob = + (auth_dovecot_options_block *)(ablock->options_block); + + if (ablock->public_name == NULL) + ablock->public_name = ablock->name; + if (ob->server_socket != NULL) + ablock->server = TRUE; + ablock->client = FALSE; +} + +static int strcut(char *str, char **ptrs, int nptrs) +{ + char *tmp = str; + int n; + + for (n = 0; n < nptrs; n++) + ptrs[n] = NULL; + n = 1; + + while (*str) { + if (*str == '\t') { + if (n <= nptrs) { + *ptrs++ = tmp; + tmp = str + 1; + *str = 0; + } + n++; + } + str++; + } + + if (n < nptrs) + *ptr...
2019 Aug 29
2
Complex proposal v2
...i32 %alignment, <8 x i1> %mask) llvm.masked.gather.* - Overloaded intrinsic to gather complex under mask (not all variants shown) declare v4c32 @llvm.masked.gather.v4c32.p0v4c32(<4 x c32 *> %ptrs, i32 %alignment, <4 x i1> %mask, <4 x c32> %passthrough) declare v8c32 @llvm.masked.gather.v8c64.p0v8c64(<8 x c64*> %ptrs,...
2004 Jun 11
2
wine is6 problems
...g native ole32.dll ( Gives a page fault on read access error) Any pointers would be most welcome. Regards, Swapnil. Backtrace: =>0 0x4034c7ac (INSTR_EmulateInstruction+0x84(rec=0x4182eb00, context=0x4182e834) [instr.c:449] in KERNEL32.DLL) (ebp=4182e744) 1 0x40382973 (vectored_handler+0x53(ptrs=0x4182e778) [wowthunk.c:353] in KERNEL32.DLL) (ebp=4182e760) 2 0x400927d2 (call_vectored_handlers+0x52(rec=0x4182eb00, context=0x4182e834) [exception.c:195] in NTDLL.DLL) (ebp=4182e78c) 3 0x40092956 (EXC_RtlRaiseException+0x9a(rec=0x4182eb00, context=0x4182e834) [exception.c:250] in NTDLL.DL...
2005 Feb 27
1
mIRC issues with FEB 27 cvs
...4065f928 4065f584 404eb537 4065f928 0200: sel=1007 base=40017000 limit=00001f97 32-bit rw- Backtrace: =>1 0x404ad1a0 INSTR_EmulateInstruction(rec=0x4065f928, context=0x4065f65c) [/home/buildout/src/wine.build/dlls/kernel/instr.c:449] in kernel32 (0x4065f568) 2 0x404eb537 vectored_handler(ptrs=0x4065f59c) [/home/buildout/src/wine.build/dlls/kernel/wowthunk.c:358] in kernel32 (0x4065f584) 3 0x401a2e17 call_vectored_handlers+0x57(rec=0x4065f928, context=0x4065f65c) [/home/buildout/src/wine.build/dlls/ntdll/exception.c:197] in ntdll (0x4065f5b0) 4 0x401a2fa6 EXC_RtlRaiseException...
2016 Jul 07
2
ObjectCache and getFunctionAddress issue
...mbolInfo getSymbol() and could see that the GlobalSymbolTable did not contained my symbol. I obviously forgot something or did something wrong, what puzzeld me is that is quite semi-random. Even the most simple statements such as int x = 1; (no dependencies) sometime fails. I did not hardcode any ptrs in the IR so the objects should be reusable over multiple instances. Any one got a clue ? Cheers, -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160707/2f54d8bf/attachment.html>