Home
last modified time | relevance | path

Searched full:opaque (Results 1 – 25 of 447) sorted by relevance

12345678910>>...18

/linux/rust/kernel/
H A Dtypes.rs269 /// Stores an opaque value.
271 /// [`Opaque<T>`] is meant to be used with FFI objects that are never interpreted by Rust code.
273 /// It is used to wrap structs from the C side, like for example `Opaque<bindings::mutex>`.
278 /// * The value is allowed to be mutated, when a `&Opaque<T>` exists on the Rust side.
279 /// * No uniqueness for mutable references: it is fine to have multiple `&mut Opaque<T>` point to
286 /// Using [`Opaque<T>`] allows to continue to use references on the Rust side even for values shared
293 /// use kernel::types::Opaque;
302 /// // `foo.val` is assumed to be handled on the C side, so we use `Opaque` to wrap it.
304 /// foo: Opaque<bindings::Foo>,
309 /// let ptr = Opaque::get(&self.foo);
[all …]
H A Dinit.rs17 //! # [`Opaque<T>`]
20 //! there exist the helper function [`Opaque::ffi_init`]. This function initialize a single
21 //! [`Opaque<T>`] field by just delegating to the supplied closure. You can use these in
24 //! [`Opaque<T>`]: crate::types::Opaque
25 //! [`Opaque::ffi_init`]: crate::types::Opaque::ffi_init
34 //! use kernel::types::Opaque;
47 //! raw: Opaque<RawFoo>,
58 //! Opaque::ffi_init(|s| {
71 //! use kernel::{prelude::*, types::Opaque};
86 //! foo: Opaque<bindings::foo>,
[all …]
H A Dlib.rs231 /// If you encounter a type mismatch due to the [`Opaque`] type, then use [`Opaque::cast_into`] or
232 /// [`Opaque::cast_from`] to resolve the mismatch.
234 /// [`Opaque`]: crate::types::Opaque
235 /// [`Opaque::cast_into`]: crate::types::Opaque::cast_into
236 /// [`Opaque::cast_from`]: crate::types::Opaque::cast_from
H A Dsync.rs9 use crate::types::Opaque;
38 inner: Opaque<bindings::lock_class_key>,
79 inner <- Opaque::ffi_init(|slot| unsafe { bindings::lockdep_register_key(slot) }) in new_dynamic()
106 // SAFETY: `LockClassKey` transparently wraps `Opaque` which permits uninitialized
/linux/include/linux/
H A Dbtree-128.h84 void visitor128(void *elem, unsigned long opaque, unsigned long *__key,
87 typedef void (*visitor128_t)(void *elem, unsigned long opaque,
91 unsigned long opaque, in btree_visitor128() argument
94 return btree_visitor(&head->h, &btree_geo128, opaque, in btree_visitor128()
99 unsigned long opaque, in btree_grim_visitor128() argument
102 return btree_grim_visitor(&head->h, &btree_geo128, opaque, in btree_grim_visitor128()
H A Dbtree-type.h116 void VISITOR_FN(void *elem, unsigned long opaque, unsigned long *key,
119 typedef void (*VISITOR_FN_T)(void *elem, unsigned long opaque,
123 unsigned long opaque, in BTREE_FN()
126 return btree_visitor(&head->h, BTREE_TYPE_GEO, opaque, in BTREE_FN()
131 unsigned long opaque, in BTREE_FN()
134 return btree_grim_visitor(&head->h, BTREE_TYPE_GEO, opaque, in BTREE_FN()
H A Diova_bitmap.h16 void *opaque);
23 int iova_bitmap_for_each(struct iova_bitmap *bitmap, void *opaque,
40 static inline int iova_bitmap_for_each(struct iova_bitmap *bitmap, void *opaque, in iova_bitmap_for_each() argument
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_ll2.h126 * @cxt: Pointer to the hw-function [opaque to some].
136 * @cxt: Pointer to the hw-function [opaque to some].
147 * @cxt: Pointer to the hw-function [opaque to some].
166 * @cxt: Pointer to the hw-function [opaque to some].
182 * @cxt: Pointer to the hw-function [opaque to some].
195 * @cxt: Pointer to the hw-function [opaque to some].
210 * @cxt: Pointer to the hw-function [opaque to some].
221 * @cxt: Pointer to the hw-function [opaque to some].
/linux/lib/
H A Dbtree.c672 unsigned long *node, unsigned long opaque, in __btree_for_each() argument
673 void (*func)(void *elem, unsigned long opaque, in __btree_for_each()
686 count = __btree_for_each(head, geo, child, opaque, in __btree_for_each()
689 func(child, opaque, bkey(geo, node, i), count++, in __btree_for_each()
697 static void empty(void *elem, unsigned long opaque, unsigned long *key, in empty() argument
702 void visitorl(void *elem, unsigned long opaque, unsigned long *key, in visitorl() argument
707 func(elem, opaque, *key, index); in visitorl()
711 void visitor32(void *elem, unsigned long opaque, unsigned long *__key, in visitor32() argument
717 func(elem, opaque, *key, index); in visitor32()
721 void visitor64(void *elem, unsigned long opaque, unsigned long *__key, in visitor64() argument
[all …]
/linux/arch/powerpc/kvm/
H A Dmpic.c124 static int openpic_cpu_write_internal(void *opaque, gpa_t addr,
126 static int openpic_cpu_read_internal(void *opaque, gpa_t addr,
475 static void openpic_set_irq(void *opaque, int n_IRQ, int level) in openpic_set_irq() argument
477 struct openpic *opp = opaque; in openpic_set_irq()
688 static int openpic_gbl_write(void *opaque, gpa_t addr, u32 val) in openpic_gbl_write() argument
690 struct openpic *opp = opaque; in openpic_gbl_write()
744 static int openpic_gbl_read(void *opaque, gpa_t addr, u32 *ptr) in openpic_gbl_read() argument
746 struct openpic *opp = opaque; in openpic_gbl_read()
806 static int openpic_tmr_write(void *opaque, gpa_t addr, u32 val) in openpic_tmr_write() argument
808 struct openpic *opp = opaque; in openpic_tmr_write()
[all …]
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_mstate_mgr.c79 void *opaque) in adf_mstate_preamble_def_checker() argument
81 struct adf_mstate_mgr *mgr = opaque; in adf_mstate_preamble_def_checker()
194 void *opaque) in adf_mstate_sect_add() argument
210 size = (*populate)(&sub_sects_mgr, sect->state, avail_room, opaque); in adf_mstate_sect_add()
261 void *opaque) in adf_mstate_mgr_init_from_remote() argument
273 ret = (*pre_checker)(pre, opaque); in adf_mstate_mgr_init_from_remote()
288 void *opaque) in adf_mstate_sect_lookup() argument
313 ret = (*action)(&sub_sects_mgr, sect->state, sect->size, opaque); in adf_mstate_sect_lookup()
H A Dadf_mstate_mgr.h70 void *opaque);
84 void *opaque);
88 void *opaque);
/linux/drivers/vhost/
H A Diotlb.c45 * @opaque: the opaque pointer for the new mapping
53 void *opaque) in vhost_iotlb_add_range_ctx() argument
66 perm, opaque); in vhost_iotlb_add_range_ctx()
91 map->opaque = opaque; in vhost_iotlb_add_range_ctx()
/linux/drivers/vfio/
H A Dvirqfd.c51 virqfd->handler(virqfd->opaque, virqfd->data)) && in virqfd_wakeup()
101 virqfd->thread(virqfd->opaque, virqfd->data); in virqfd_inject()
111 int vfio_virqfd_enable(void *opaque, in vfio_virqfd_enable() argument
126 virqfd->opaque = opaque; in vfio_virqfd_enable()
180 if ((!handler || handler(opaque, data)) && thread) in vfio_virqfd_enable()
/linux/drivers/gpu/drm/tegra/
H A Dplane.c68 copy->opaque = state->opaque; in tegra_plane_atomic_duplicate_state()
553 static int tegra_plane_format_get_alpha(unsigned int opaque, in tegra_plane_format_get_alpha() argument
556 if (tegra_plane_format_is_yuv(opaque, NULL, NULL)) { in tegra_plane_format_get_alpha()
557 *alpha = opaque; in tegra_plane_format_get_alpha()
561 switch (opaque) { in tegra_plane_format_get_alpha()
579 *alpha = opaque; in tegra_plane_format_get_alpha()
587 * This is applicable to Tegra20 and Tegra30 only where the opaque formats can
601 state->opaque = false; in tegra_plane_setup_opacity()
610 state->opaque = true; in tegra_plane_setup_opacity()
627 to_tegra_plane_state(old)->opaque == state->opaque) in tegra_plane_check_transparency()
/linux/include/linux/qed/
H A Dstorage_common.h37 /* iSCSI Drv opaque */
40 __le16 opaque; member
43 /* Scsi 2B/8B opaque union */
52 union scsi_opaque opaque; member
/linux/rust/kernel/block/mq/
H A Dtag_set.rs14 types::Opaque,
30 inner: Opaque<bindings::blk_mq_tag_set>,
60 .map(Opaque::new) in new()
66 let tag_set: &mut Opaque<_> = unsafe { Pin::get_unchecked_mut(tag_set) }; in new()
/linux/lib/zstd/common/
H A Dallocations.h30 return customMem.customAlloc(customMem.opaque, size); in ZSTD_customMalloc()
39 void* const ptr = customMem.customAlloc(customMem.opaque, size); in ZSTD_customCalloc()
50 customMem.customFree(customMem.opaque, ptr); in ZSTD_customFree()
/linux/net/vmw_vsock/
H A Daf_vsock_tap.c92 void vsock_deliver_tap(struct sk_buff *build_skb(void *opaque), void *opaque) in vsock_deliver_tap() argument
101 skb = build_skb(opaque); in vsock_deliver_tap()
/linux/arch/riscv/kernel/
H A Dsuspend.c113 unsigned long opaque) in sbi_system_suspend() argument
118 sleep_type, resume_addr, opaque, 0, 0, 0); in sbi_system_suspend()
151 unsigned long opaque) in sbi_suspend_finisher() argument
156 suspend_type, resume_addr, opaque, 0, 0, 0); in sbi_suspend_finisher()
/linux/drivers/gpu/drm/amd/include/
H A Dcgs_common.h85 * @cgs_device: opaque device handle
94 * @cgs_device: opaque device handle
103 * @cgs_device: opaque device handle
113 * @cgs_device: opaque device handle
/linux/tools/net/sunrpc/xdrgen/templates/C/pointer/definition/
H A Dvariable_length_opaque.j23 /* (variable-length opaque) */
5 opaque {{ name }};
/linux/tools/net/sunrpc/xdrgen/templates/C/struct/definition/
H A Dvariable_length_opaque.j23 /* (variable-length opaque) */
5 opaque {{ name }};
/linux/tools/net/sunrpc/xdrgen/templates/C/typedef/definition/
H A Dvariable_length_opaque.j24 /* typedef {{ name }} (variable-length opaque) */
6 typedef opaque {{ name }};
/linux/drivers/scsi/snic/
H A Dvnic_cq.h49 u8 type, u16 q_number, u16 completed_index, void *opaque), in svnic_cq_service() argument
50 void *opaque) in svnic_cq_service()
65 q_number, completed_index, opaque)) in svnic_cq_service()

12345678910>>...18