Home
last modified time | relevance | path

Searched refs:kref (Results 1 – 25 of 1876) sorted by relevance

12345678910>>...76

/dports/misc/rump/buildrump.sh-b914579/src/sys/external/bsd/drm2/include/linux/
H A Dkref.h41 struct kref { struct
46 kref_init(struct kref *kref) in kref_init() argument
48 kref->kr_count = 1; in kref_init()
52 kref_get(struct kref *kref) in kref_get() argument
61 kref_get_unless_zero(struct kref *kref) in kref_get_unless_zero() argument
76 kref_sub(struct kref *kref, unsigned int count, void (*release)(struct kref *)) in kref_sub() argument
88 (*release)(kref); in kref_sub()
96 kref_put(struct kref *kref, void (*release)(struct kref *)) in kref_put() argument
103 kref_put_mutex(struct kref *kref, void (*release)(struct kref *), in kref_put_mutex() argument
131 kref_referenced_p(struct kref *kref) in kref_referenced_p() argument
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/include/linux/
H A Dkref.h19 struct kref { struct
29 static inline void kref_init(struct kref *kref) in kref_init() argument
34 static inline unsigned int kref_read(const struct kref *kref) in kref_read() argument
43 static inline void kref_get(struct kref *kref) in kref_get() argument
62 static inline int kref_put(struct kref *kref, void (*release)(struct kref *kref)) in kref_put() argument
65 release(kref); in kref_put()
71 static inline int kref_put_mutex(struct kref *kref, in kref_put_mutex() argument
72 void (*release)(struct kref *kref), in kref_put_mutex() argument
76 release(kref); in kref_put_mutex()
82 static inline int kref_put_lock(struct kref *kref, in kref_put_lock() argument
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/include/linux/
H A Dkref.h19 struct kref { struct
29 static inline void kref_init(struct kref *kref) in kref_init() argument
34 static inline unsigned int kref_read(const struct kref *kref) in kref_read() argument
43 static inline void kref_get(struct kref *kref) in kref_get() argument
62 static inline int kref_put(struct kref *kref, void (*release)(struct kref *kref)) in kref_put() argument
65 release(kref); in kref_put()
71 static inline int kref_put_mutex(struct kref *kref, in kref_put_mutex() argument
72 void (*release)(struct kref *kref), in kref_put_mutex() argument
76 release(kref); in kref_put_mutex()
82 static inline int kref_put_lock(struct kref *kref, in kref_put_lock() argument
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/include/linux/
H A Dkref.h19 struct kref { struct
29 static inline void kref_init(struct kref *kref) in kref_init() argument
34 static inline unsigned int kref_read(const struct kref *kref) in kref_read() argument
43 static inline void kref_get(struct kref *kref) in kref_get() argument
62 static inline int kref_put(struct kref *kref, void (*release)(struct kref *kref)) in kref_put() argument
65 release(kref); in kref_put()
71 static inline int kref_put_mutex(struct kref *kref, in kref_put_mutex() argument
72 void (*release)(struct kref *kref), in kref_put_mutex() argument
76 release(kref); in kref_put_mutex()
82 static inline int kref_put_lock(struct kref *kref, in kref_put_lock() argument
[all …]
/dports/graphics/libdrm/libdrm-2.4.110/nouveau/
H A Dprivate.h29 struct drm_nouveau_gem_pushbuf_bo *kref; member
35 struct nouveau_client_kref *kref; member
51 kref = pcli->kref[bo->handle].kref; in cli_kref_get()
52 return kref; in cli_kref_get()
61 push = pcli->kref[bo->handle].push; in cli_push_get()
67 struct drm_nouveau_gem_pushbuf_bo *kref, in cli_kref_set() argument
72 pcli->kref = realloc(pcli->kref, in cli_kref_set()
75 pcli->kref[pcli->kref_nr].kref = NULL; in cli_kref_set()
76 pcli->kref[pcli->kref_nr].push = NULL; in cli_kref_set()
80 pcli->kref[bo->handle].kref = kref; in cli_kref_set()
[all …]
H A Dpushbuf.c124 kref = krec->buffer; in pushbuf_kref_fits()
175 if (kref) { in pushbuf_kref()
216 return kref; in pushbuf_kref()
276 kref = krec->buffer; in pushbuf_dump()
280 kref->handle, kref->valid_domains, in pushbuf_dump()
415 kref = krec->buffer; in pushbuf_flush()
451 kref++; in pushbuf_refn_fail()
469 if (!kref) { in pushbuf_refn()
510 if (!kref) { in pushbuf_validate()
730 assert(kref); in nouveau_pushbuf_data()
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/libdrm/src/nouveau/
H A Dprivate.h26 struct drm_nouveau_gem_pushbuf_bo *kref; member
32 struct nouveau_client_kref *kref; member
48 kref = pcli->kref[bo->handle].kref; in cli_kref_get()
49 return kref; in cli_kref_get()
58 push = pcli->kref[bo->handle].push; in cli_push_get()
64 struct drm_nouveau_gem_pushbuf_bo *kref, in cli_kref_set() argument
69 pcli->kref = realloc(pcli->kref, in cli_kref_set()
72 pcli->kref[pcli->kref_nr].kref = NULL; in cli_kref_set()
73 pcli->kref[pcli->kref_nr].push = NULL; in cli_kref_set()
77 pcli->kref[bo->handle].kref = kref; in cli_kref_set()
[all …]
H A Dpushbuf.c123 kref = krec->buffer; in pushbuf_kref_fits()
174 if (kref) { in pushbuf_kref()
215 return kref; in pushbuf_kref()
275 kref = krec->buffer; in pushbuf_dump()
278 kref->handle, kref->valid_domains, in pushbuf_dump()
279 kref->read_domains, kref->write_domains); in pushbuf_dump()
444 kref++; in pushbuf_refn_fail()
462 if (!kref) { in pushbuf_refn()
503 if (!kref) { in pushbuf_validate()
723 assert(kref); in nouveau_pushbuf_data()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/libdrm/src/nouveau/
H A Dprivate.h26 struct drm_nouveau_gem_pushbuf_bo *kref; member
32 struct nouveau_client_kref *kref; member
48 kref = pcli->kref[bo->handle].kref; in cli_kref_get()
49 return kref; in cli_kref_get()
58 push = pcli->kref[bo->handle].push; in cli_push_get()
64 struct drm_nouveau_gem_pushbuf_bo *kref, in cli_kref_set() argument
69 pcli->kref = realloc(pcli->kref, in cli_kref_set()
72 pcli->kref[pcli->kref_nr].kref = NULL; in cli_kref_set()
73 pcli->kref[pcli->kref_nr].push = NULL; in cli_kref_set()
77 pcli->kref[bo->handle].kref = kref; in cli_kref_set()
[all …]
H A Dpushbuf.c123 kref = krec->buffer; in pushbuf_kref_fits()
174 if (kref) { in pushbuf_kref()
215 return kref; in pushbuf_kref()
275 kref = krec->buffer; in pushbuf_dump()
278 kref->handle, kref->valid_domains, in pushbuf_dump()
279 kref->read_domains, kref->write_domains); in pushbuf_dump()
444 kref++; in pushbuf_refn_fail()
462 if (!kref) { in pushbuf_refn()
503 if (!kref) { in pushbuf_validate()
723 assert(kref); in nouveau_pushbuf_data()
[all …]
/dports/security/keybase/client-v5.7.1/go/vendor/github.com/keybase/go-keychain/
H A Dmacos.go64 var kref C.SecKeychainRef
79 defer Release(C.CFTypeRef(kref))
96 kref, err := openKeychainRef(kc.path)
100 defer C.CFRelease(C.CFTypeRef(kref))
111 var kref C.SecKeychainRef
116 return kref, nil
121 kref, err := openKeychainRef(path)
122 defer Release(C.CFTypeRef(kref))
133 kref, err := openKeychainRef(path)
134 defer Release(C.CFTypeRef(kref))
[all …]
/dports/science/py-pyscf/pyscf-2.0.1/pyscf/pbc/scf/test/
H A Dtest_rsjk.py55 jref, kref = mf.get_jk(cell, dm, kpts=kpts)
57 ek = np.einsum('kij,kji->', kref, dm) * .5
63 self.assertAlmostEqual(abs(vk - kref).max(), 0, 7)
69 self.assertAlmostEqual(abs(vk - kref).max(), 0, 7)
86 jref, kref = mf.get_jk(cell, np.array([dm, dm]))
92 jref, kref = mf.get_jk(cell, dm)
98 jref, kref = mf.get_jk(cell, dm[0])
104 jref, kref = mf.get_jk(cell, dm[[0,0]])
110 jref, kref = mf.get_jk(cell, dm[0])
127 jref, kref = mf.get_jk(cell1, dm, kpts=kpts)
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/target/iscsi/cxgbit/
H A Dcxgbit.h140 struct kref kref; member
185 struct kref kref; member
211 struct kref kref; member
244 void _cxgbit_free_cdev(struct kref *kref);
245 void _cxgbit_free_csk(struct kref *kref);
246 void _cxgbit_free_cnp(struct kref *kref);
250 kref_get(&cdev->kref); in cxgbit_get_cdev()
260 kref_get(&csk->kref); in cxgbit_get_csk()
265 kref_put(&csk->kref, _cxgbit_free_csk); in cxgbit_put_csk()
270 kref_get(&cnp->kref); in cxgbit_get_cnp()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/target/iscsi/cxgbit/
H A Dcxgbit.h140 struct kref kref; member
185 struct kref kref; member
211 struct kref kref; member
244 void _cxgbit_free_cdev(struct kref *kref);
245 void _cxgbit_free_csk(struct kref *kref);
246 void _cxgbit_free_cnp(struct kref *kref);
250 kref_get(&cdev->kref); in cxgbit_get_cdev()
260 kref_get(&csk->kref); in cxgbit_get_csk()
265 kref_put(&csk->kref, _cxgbit_free_csk); in cxgbit_put_csk()
270 kref_get(&cnp->kref); in cxgbit_get_cnp()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/target/iscsi/cxgbit/
H A Dcxgbit.h140 struct kref kref; member
185 struct kref kref; member
211 struct kref kref; member
244 void _cxgbit_free_cdev(struct kref *kref);
245 void _cxgbit_free_csk(struct kref *kref);
246 void _cxgbit_free_cnp(struct kref *kref);
250 kref_get(&cdev->kref); in cxgbit_get_cdev()
260 kref_get(&csk->kref); in cxgbit_get_csk()
265 kref_put(&csk->kref, _cxgbit_free_csk); in cxgbit_put_csk()
270 kref_get(&cnp->kref); in cxgbit_get_cnp()
[all …]
/dports/security/hs-cryptol/cryptol-2.11.0/_cabal_deps/io-streams-1.5.2.0/src/System/IO/Streams/
H A DByteString.hs234 kref <- newIORef k0
235 return $! InputStream (prod kref) (pb kref)
237 prod kref = do
238 k <- readIORef kref
254 pb kref s = do
474 kref <- newIORef k0
475 return $! InputStream (prod kref) (pb kref)
493 pb kref s = do
577 kref <- newIORef k0
582 k <- readIORef kref
[all …]
/dports/lang/elm/compiler-0.19.1/_cabal_deps/io-streams-1.5.1.0/src/System/IO/Streams/
H A DByteString.hs234 kref <- newIORef k0
235 return $! InputStream (prod kref) (pb kref)
237 prod kref = do
238 k <- readIORef kref
254 pb kref s = do
474 kref <- newIORef k0
475 return $! InputStream (prod kref) (pb kref)
493 pb kref s = do
577 kref <- newIORef k0
582 k <- readIORef kref
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/include/linux/ceph/
H A Dbuffer.h17 struct kref kref; member
23 extern void ceph_buffer_release(struct kref *kref);
27 kref_get(&b->kref); in ceph_buffer_get()
34 kref_put(&b->kref, ceph_buffer_release); in ceph_buffer_put()
/dports/multimedia/libv4l/linux-5.13-rc2/include/linux/ceph/
H A Dbuffer.h17 struct kref kref; member
23 extern void ceph_buffer_release(struct kref *kref);
27 kref_get(&b->kref); in ceph_buffer_get()
34 kref_put(&b->kref, ceph_buffer_release); in ceph_buffer_put()
/dports/multimedia/v4l-utils/linux-5.13-rc2/include/linux/ceph/
H A Dbuffer.h17 struct kref kref; member
23 extern void ceph_buffer_release(struct kref *kref);
27 kref_get(&b->kref); in ceph_buffer_get()
34 kref_put(&b->kref, ceph_buffer_release); in ceph_buffer_put()
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_surface.c180 static void dc_plane_state_free(struct kref *kref) in dc_plane_state_free() argument
182 struct dc_plane_state *plane_state = container_of(kref, struct dc_plane_state, refcount); in dc_plane_state_free()
197 static void dc_gamma_free(struct kref *kref) in dc_gamma_free() argument
199 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free()
228 static void dc_transfer_func_free(struct kref *kref) in dc_transfer_func_free() argument
230 struct dc_transfer_func *tf = container_of(kref, struct dc_transfer_func, refcount); in dc_transfer_func_free()
254 static void dc_3dlut_func_free(struct kref *kref) in dc_3dlut_func_free() argument
256 struct dc_3dlut *lut = container_of(kref, struct dc_3dlut, refcount); in dc_3dlut_func_free()
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_surface.c180 static void dc_plane_state_free(struct kref *kref) in dc_plane_state_free() argument
182 struct dc_plane_state *plane_state = container_of(kref, struct dc_plane_state, refcount); in dc_plane_state_free()
197 static void dc_gamma_free(struct kref *kref) in dc_gamma_free() argument
199 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free()
228 static void dc_transfer_func_free(struct kref *kref) in dc_transfer_func_free() argument
230 struct dc_transfer_func *tf = container_of(kref, struct dc_transfer_func, refcount); in dc_transfer_func_free()
254 static void dc_3dlut_func_free(struct kref *kref) in dc_3dlut_func_free() argument
256 struct dc_3dlut *lut = container_of(kref, struct dc_3dlut, refcount); in dc_3dlut_func_free()
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_surface.c180 static void dc_plane_state_free(struct kref *kref) in dc_plane_state_free() argument
182 struct dc_plane_state *plane_state = container_of(kref, struct dc_plane_state, refcount); in dc_plane_state_free()
197 static void dc_gamma_free(struct kref *kref) in dc_gamma_free() argument
199 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free()
228 static void dc_transfer_func_free(struct kref *kref) in dc_transfer_func_free() argument
230 struct dc_transfer_func *tf = container_of(kref, struct dc_transfer_func, refcount); in dc_transfer_func_free()
254 static void dc_3dlut_func_free(struct kref *kref) in dc_3dlut_func_free() argument
256 struct dc_3dlut *lut = container_of(kref, struct dc_3dlut, refcount); in dc_3dlut_func_free()
/dports/multimedia/v4l-utils/linux-5.13-rc2/arch/powerpc/platforms/cell/spufs/
H A Dgang.c23 kref_init(&gang->kref); in alloc_spu_gang()
33 static void destroy_spu_gang(struct kref *kref) in destroy_spu_gang() argument
36 gang = container_of(kref, struct spu_gang, kref); in destroy_spu_gang()
43 kref_get(&gang->kref); in get_spu_gang()
49 return kref_put(&gang->kref, &destroy_spu_gang); in put_spu_gang()
/dports/multimedia/v4l_compat/linux-5.13-rc2/arch/powerpc/platforms/cell/spufs/
H A Dgang.c23 kref_init(&gang->kref); in alloc_spu_gang()
33 static void destroy_spu_gang(struct kref *kref) in destroy_spu_gang() argument
36 gang = container_of(kref, struct spu_gang, kref); in destroy_spu_gang()
43 kref_get(&gang->kref); in get_spu_gang()
49 return kref_put(&gang->kref, &destroy_spu_gang); in put_spu_gang()

12345678910>>...76