Home
last modified time | relevance | path

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

12345678910>>...16

/linux/rust/
H A Dbindgen_parameters8 --opaque-type xregs_state
9 --opaque-type desc_struct
10 --opaque-type arch_lbr_state
11 --opaque-type local_apic
14 --opaque-type alt_instr
15 --opaque-type x86_msi_data
16 --opaque-type x86_msi_addr_lo
18 --opaque-type lowcore
19 --opaque-type tod_clock
20 --opaque
[all...]
/linux/rust/kernel/
H A Dtypes.rs278 /// Stores an opaque value.
280 /// [`Opaque<T>`] is meant to be used with FFI objects that are never interpreted by Rust code.
282 /// It is used to wrap structs from the C side, like for example `Opaque<bindings::mutex>`.
287 /// * The value is allowed to be mutated, when a `&Opaque<T>` exists on the Rust side.
288 /// * No uniqueness for mutable references: it is fine to have multiple `&mut Opaque<T>` point to
295 /// Using [`Opaque<T>`] allows to continue to use references on the Rust side even for values shared
301 /// use kernel::types::Opaque;
310 /// // `foo.val` is assumed to be handled on the C side, so we use `Opaque` to wrap it.
312 /// foo: Opaque<bindings::Foo>,
317 /// let ptr = Opaque
323 pub struct Opaque<T> { global() struct
328 _pinOpaque global() argument
329 unsafe impl<T> Zeroable for Opaque<T> {} global() implementation
331 impl<T> Opaque<T> { global() implementation
412 impl<T> Wrapper<T> for Opaque<T> { global() implementation
[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
[all...]
H A Dlib.rs187 /// If you encounter a type mismatch due to the [`Opaque`] type, then use [`Opaque::cast_into`] or
188 /// [`Opaque::cast_from`] to resolve the mismatch.
190 /// [`Opaque`]: crate::types::Opaque
191 /// [`Opaque::cast_into`]: crate::types::Opaque::cast_into
192 /// [`Opaque::cast_from`]: crate::types::Opaque::cast_from
/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/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/vhost/
H A Diotlb.c51 * @opaque: the opaque pointer for the new mapping
59 void *opaque) in vhost_iotlb_add_range_ctx() argument
84 perm, opaque); in vhost_iotlb_add_range_ctx()
110 map->opaque = opaque; in vhost_iotlb_add_range_ctx()
/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>,
58 .map(Opaque::new) in new()
64 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/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_fw.c610 static int fbnic_fw_parse_cap_resp(void *opaque, struct fbnic_tlv_msg **results) in fbnic_fw_parse_cap_resp() argument
613 struct fbnic_dev *fbd = opaque; in fbnic_fw_parse_cap_resp()
713 static int fbnic_fw_parse_ownership_resp(void *opaque, in fbnic_fw_parse_ownership_resp() argument
716 struct fbnic_dev *fbd = (struct fbnic_dev *)opaque; in fbnic_fw_parse_ownership_resp()
732 static int fbnic_fw_parse_heartbeat_resp(void *opaque, in fbnic_fw_parse_heartbeat_resp() argument
735 struct fbnic_dev *fbd = (struct fbnic_dev *)opaque; in fbnic_fw_parse_heartbeat_resp()
884 fbnic_fw_parse_coredump_info_resp(void *opaque, struct fbnic_tlv_msg **results) in fbnic_fw_parse_coredump_info_resp() argument
887 struct fbnic_dev *fbd = opaque; in fbnic_fw_parse_coredump_info_resp()
973 static int fbnic_fw_parse_coredump_resp(void *opaque, in fbnic_fw_parse_coredump_resp() argument
978 struct fbnic_dev *fbd = opaque; in fbnic_fw_parse_coredump_resp()
[all …]
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_mstate_mgr.h70 void *opaque);
84 void *opaque);
88 void *opaque);
/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.c114 unsigned long opaque) in sbi_system_suspend() argument
119 sleep_type, resume_addr, opaque, 0, 0, 0); in sbi_system_suspend()
152 unsigned long opaque) in sbi_suspend_finisher() argument
157 suspend_type, resume_addr, opaque, 0, 0, 0); in sbi_suspend_finisher()
/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/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/fs/afs/
H A Dcm_security.c214 * opaque key<>; in afs_create_yfs_cm_token()
221 * opaque data<AUTHDATAMAX>; in afs_create_yfs_cm_token()
222 * opaque display<AUTHPRINTABLEMAX>; in afs_create_yfs_cm_token()
246 * opaque encrypted_token<>; in afs_create_yfs_cm_token()
256 * opaque callbackKey<>; in afs_create_yfs_cm_token()
257 * opaque callbackToken<>; in afs_create_yfs_cm_token()
/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/tools/net/sunrpc/xdrgen/templates/C/pointer/decoder/
H A Dvariable_length_opaque.j23 /* member {{ name }} (variable-length opaque) */
5 if (!xdrgen_decode_opaque(xdr, (opaque *)ptr, {{ maxsize }}))

12345678910>>...16