Home
last modified time | relevance | path

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

12345678910>>...17

/linux/rust/kernel/
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};
94 //! foo: Opaque<bindings::foo>,
[all …]
H A Dtypes.rs268 /// Stores an opaque value.
270 /// [`Opaque<T>`] is meant to be used with FFI objects that are never interpreted by Rust code.
272 /// It is used to wrap structs from the C side, like for example `Opaque<bindings::mutex>`.
277 /// * The value is allowed to be mutated, when a `&Opaque<T>` exists on the Rust side.
278 /// * No uniqueness for mutable references: it is fine to have multiple `&mut Opaque<T>` point to
285 /// Using [`Opaque<T>`] allows to continue to use references on the Rust side even for values shared
292 /// use kernel::types::Opaque;
301 /// // `foo.val` is assumed to be handled on the C side, so we use `Opaque` to wrap it.
303 /// foo: Opaque<bindings::Foo>,
308 /// let ptr = Opaque::get(&self.foo);
[all …]
/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/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/net/ethernet/meta/fbnic/
H A Dfbnic_fw.c551 static int fbnic_fw_parse_cap_resp(void *opaque, struct fbnic_tlv_msg **results) in fbnic_fw_parse_cap_resp() argument
554 struct fbnic_dev *fbd = opaque; in fbnic_fw_parse_cap_resp()
651 static int fbnic_fw_parse_ownership_resp(void *opaque, in fbnic_fw_parse_ownership_resp() argument
654 struct fbnic_dev *fbd = (struct fbnic_dev *)opaque; in fbnic_fw_parse_ownership_resp()
666 static int fbnic_fw_parse_heartbeat_resp(void *opaque, in fbnic_fw_parse_heartbeat_resp() argument
669 struct fbnic_dev *fbd = (struct fbnic_dev *)opaque; in fbnic_fw_parse_heartbeat_resp()
808 static int fbnic_fw_parse_fw_start_upgrade_resp(void *opaque, in fbnic_fw_parse_fw_start_upgrade_resp() argument
812 struct fbnic_dev *fbd = opaque; in fbnic_fw_parse_fw_start_upgrade_resp()
885 static int fbnic_fw_parse_fw_write_chunk_req(void *opaque, in fbnic_fw_parse_fw_write_chunk_req() argument
889 struct fbnic_dev *fbd = opaque; in fbnic_fw_parse_fw_write_chunk_req()
[all …]
/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/include/xen/interface/io/
H A Dring.h369 static inline void name##_read_packet(void *opaque, \
378 memcpy(opaque, buf + *masked_cons, size); \
380 memcpy(opaque, buf + *masked_cons, ring_size - *masked_cons); \
381 memcpy((unsigned char *)opaque + ring_size - *masked_cons, buf, \
388 const void *opaque, \
396 memcpy(buf + *masked_prod, opaque, size); \
398 memcpy(buf + *masked_prod, opaque, ring_size - *masked_prod); \
399 memcpy(buf, (unsigned char *)opaque + (ring_size - *masked_prod), \
/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()
/linux/drivers/vfio/platform/
H A Dvfio_platform.c28 struct platform_device *dev = (struct platform_device *) vdev->opaque; in get_platform_resource()
35 struct platform_device *pdev = (struct platform_device *) vdev->opaque; in get_platform_irq()
46 vdev->opaque = (void *) pdev; in vfio_platform_init_dev()
/linux/tools/net/sunrpc/xdrgen/templates/C/typedef/definition/
H A Dvariable_length_opaque.j24 /* typedef {{ name }} (variable-length opaque) */
6 typedef opaque {{ name }};

12345678910>>...17