| /linux/rust/kernel/irq/ |
| H A D | request.rs | 4 //! This module provides types like [`Registration`] and 52 /// - `irq` has not been registered yet; this is consumed by [`Registration::new()`]. 55 /// Proves the device is bound at registration time and ties `'a` to the device's bound 56 /// lifetime, ensuring the [`Registration`] cannot outlive it. 81 /// A registration of an IRQ handler for a given IRQ line. in drop() 85 /// The following is an example of using `Registration`. It uses a in drop() 105 /// Registration, 131 /// ) -> Result<Pin<KBox<Registration<'_, Data>>>> { 132 /// // SAFETY: The returned Registration is not leaked. 133 /// let registration 184 pub struct Registration<T: Handler + 'static> { global() struct 186 innerRegistration global() argument 197 impl<T: Handler + 'static> Registration<T> { global() implementation 268 let registration = unsafe { &*(ptr as *const Registration<T>) }; handle_irq_callback() constant 489 let registration = unsafe { &*(ptr as *const ThreadedRegistration<T>) }; handle_threaded_irq_callback() localVariable 505 let registration = unsafe { &*(ptr as *const ThreadedRegistration<T>) }; thread_fn_callback() localVariable [all...] |
| /linux/rust/kernel/ |
| H A D | driver.rs | 79 //! # Driver Registration 84 //! This trait implementation can be used to create the actual registration with the common 85 //! [`Registration`] type. 88 //! creates a kernel module with exactly one [`Registration`] for the bus specific adapter. 174 /// A [`Registration`] is a generic type that represents the registration of some driver type (e.g. 175 /// `bindings::pci_driver`). Therefore a [`Registration`] must be initialized with a type that 177 /// `T::unregister` calls result in the subsystem specific registration calls. 179 ///Once the `Registration` structure is dropped, the driver is unregistered. 181 pub struct Registration< 171 pub struct Registration<T: RegistrationOps> { global() struct 176 regRegistration global() argument 178 unsafe impl<T: RegistrationOps> Sync for Registration<T> {} global() implementation 182 unsafe impl<T: RegistrationOps> Send for Registration<T> {} global() implementation 184 impl<T: RegistrationOps + 'static> Registration<T> { global() implementation 238 impl<T: RegistrationOps> PinnedDrop for Registration<T> { global() implementation [all...] |
| H A D | faux.rs | 69 /// The registration of a faux device. 71 /// This type represents the registration of a [`struct faux_device`]. When an instance of this type 77 /// - This object is proof that the object described by this `Registration` is bound to a device. implementation 80 pub struct Registration(NonNull<bindings::faux_device>); 82 impl Registration { 111 impl AsRef<Device<device::Bound>> for Registration { 121 // - `mem::forget(Registration)` is not a problem; if the `Registration` is leaked, the faux 127 impl Drop for Registration { 138 unsafe impl Send for Registration {} 22 pub struct Registration(NonNull<bindings::faux_device>); global() struct 24 impl Registration { global() implementation 53 impl AsRef<device::Device> for Registration { global() implementation 61 impl Drop for Registration { global() implementation 72 unsafe impl Send for Registration {} global() implementation [all...] |
| H A D | auxiliary.rs | 41 /// An adapter for the registration of auxiliary drivers. 266 /// Returns the stored registration data as a pinned reference. in parent() 280 "No registration data set; parent is not a Rust driver.\n" 285 // SAFETY: `ptr` is non-null and was set via `into_foreign()` in `Registration::new()`; 296 // `Registration::drop()` calls `from_foreign()`. in inc_ref() 303 /// Access the registration data set by the registering (parent) driver through a closure. in dec_ref() 306 /// reference to the registration data. in dec_ref() 312 /// [`Registration::new()`]. in as_ref() 314 /// Returns [`ENOENT`] if no registration data has been set, e.g. when the device was in as_ref() 329 /// Returns a pinned reference to the registration dat 338 pub struct Registration(NonNull<bindings::auxiliary_device>); global() struct 340 impl Registration { global() implementation 394 impl Drop for Registration { global() implementation 409 unsafe impl Send for Registration {} global() implementation 412 unsafe impl Sync for Registration {} global() implementation [all...] |
| H A D | platform.rs | 43 /// An adapter for the registration of platform drivers. 345 /// Callers must not `mem::forget()` the resulting registration or otherwise prevent its 357 // SAFETY: Caller guarantees the Registration will not be leaked. 382 /// Callers must not `mem::forget()` the resulting registration or otherwise prevent its 394 // SAFETY: Caller guarantees the Registration will not be leaked. 466 /// Returns a [`irq::Registration`] for the IRQ at the given index. 469 Registration, 473 /// Returns a [`irq::Registration`] for the IRQ with the given name. 476 Registration, 484 Registration, [all …]
|
| H A D | i2c.rs | 81 /// An adapter for the registration of I2C drivers. 547 /// The registration of an i2c client device. 549 /// This type represents the registration of a [`struct i2c_client`]. When an instance of this 557 pub struct Registration(NonNull<bindings::i2c_client>); struct 559 impl Registration { implementation 583 impl Drop for Registration { implementation 585 // SAFETY: `Drop` is only called for a valid `Registration`, which by invariant in drop() 591 // SAFETY: A `Registration` of a `struct i2c_client` can be released from any thread. 592 unsafe impl Send for Registration {} implementation 594 // SAFETY: `Registration` offers no interior mutability (no mutation through &self [all …]
|
| /linux/samples/rust/ |
| H A D | rust_driver_auxiliary.rs | 65 /// Registration data with interior mutability. 82 _reg0: auxiliary::Registration<'bound, CovariantForLt!(Data<'_>)>, in connect() 84 _reg1: auxiliary::Registration<'bound, ForLt!(MutexData<'_>)>, in connect() 107 auxiliary::Registration::new_with_lt( 120 auxiliary::Registration::new_with_lt( 182 _pci_driver: driver::Registration<pci::Adapter<ParentDriver>>, 184 _aux_driver: driver::Registration<auxiliary::Adapter<AuxiliaryDriver>>, 190 _pci_driver <- driver::Registration::new(MODULE_NAME, module), 191 _aux_driver <- driver::Registration::new(MODULE_NAME, module),
|
| H A D | rust_i2c_client.rs | 3 //! Rust I2C client registration sample. 12 //! This demonstrates how to test an ACPI-based Rust I2C client registration driver 85 _reg: Devres<i2c::Registration>, 117 "Probe Rust I2C Client registration sample.\n" in probe() 126 i2c::Registration::new(&adapter, &BOARD_INFO, pdev.as_ref()) in probe() 137 "Unbind Rust I2C Client registration sample.\n" in unbind() 146 description: "Rust I2C client registration",
|
| /linux/drivers/infiniband/ulp/srp/ |
| H A D | ib_srp.h | 100 * @mr_page_mask: HCA memory registration page mask. 101 * @mr_page_size: HCA memory registration page size. 102 * @mr_max_size: Maximum size in bytes of a single FR registration request. 283 * struct srp_fr_desc - fast registration work request arguments 286 * @frpl: Fast registration page list. 294 * struct srp_fr_pool - pool of fast registration descriptors 299 * @max_page_list_len: Maximum fast registration work request page list length. 302 * @desc: Fast registration descriptor pool. 317 * memory registration. 320 * memory registration call.
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_dpll.c | 195 * @pin_priv: private data pointer passed on pin registration 197 * @dpll_priv: private data pointer passed on dpll registration 234 * @pin_priv: private data pointer passed on pin registration 236 * @dpll_priv: private data pointer passed on dpll registration 259 * @pin_priv: private data pointer passed on pin registration 261 * @dpll_priv: private data pointer passed on dpll registration 284 * @pin_priv: private data pointer passed on pin registration 286 * @dpll_priv: private data pointer passed on dpll registration 318 * @pin_priv: private data pointer passed on pin registration 320 * @dpll_priv: private data pointer passed on dpll registration [all …]
|
| /linux/drivers/infiniband/core/ |
| H A D | iwpm_util.h | 148 * iwpm_check_registration - Check if the client registration 151 * @reg: The given registration type to compare with 154 * Returns true if the client registration matches reg, 160 * iwpm_set_registration - Set the client registration 162 * @reg: Registration type to set 167 * iwpm_get_registration - Get the client registration 170 * Returns the client registration type
|
| /linux/drivers/infiniband/ulp/iser/ |
| H A D | iscsi_iser.h | 135 /* Max registration work requests per command */ 202 * struct iser_mem_reg - iSER memory registration info 206 * @desc: pointer to fast registration context 233 * @reg_wr: registration WR 315 * struct iser_reg_resources - Fast registration resources 326 * struct iser_fr_desc - Fast registration descriptor 329 * @rsc: data buffer registration resources 341 * struct iser_fr_pool - connection fast registration pool 363 * @fr_pool: connection fast registration pool 400 * @pages_per_mr: maximum pages available for registration [all …]
|
| /linux/fs/smb/client/ |
| H A D | cifs_swn.c | 116 * Sends a register message to the userspace daemon based on the registration. 222 * Sends an uregister message to the userspace daemon based on the registration 337 * One SWN registration id represents one net/share name pair. Multiple 339 * use time instead of caching the first tcon pointer in the registration. 373 * Try to find a matching registration for the tcon's server name and share name. 411 cifs_dbg(FYI, "Existing swn registration for %s:%s found\n", swnreg->net_name, in cifs_find_swn_reg() 427 * Get a registration for the tcon's server and share name, allocating a new one if it does not 456 cifs_dbg(FYI, "%s: failed to allocate registration id\n", __func__); in cifs_get_swn_reg() 666 cifs_dbg(FYI, "%s: registration id %d not found\n", __func__, swnreg_id); in cifs_swn_notify() 674 cifs_dbg(FYI, "%s: missing registration id attribute\n", __func__); in cifs_swn_notify() [all …]
|
| /linux/Documentation/crypto/ |
| H A D | devel-algos.rst | 7 There are three distinct types of registration functions in the Crypto 17 The generic registration functions can be found in 38 The registration functions return 0 on success, or a negative errno 57 Registration specifics 60 The registration of [CIPHER] algorithm is specific in that struct 108 Registration Specifics 111 The registration of multi-block cipher algorithms is one of the most
|
| /linux/tools/testing/selftests/rseq/ |
| H A D | rseq.c | 55 * Size of the registered rseq area. 0 if the registration was 61 /* Flags used during rseq registration. */ 77 * rseq registration that is larger than the current rseq ABI. 150 /* Treat libc's ownership as a successful registration. */ in __rseq_register_current_thread() 165 * (rseq_size > 0), the registration of other threads should in __rseq_register_current_thread() 218 /* rseq registration owned by glibc */ in rseq_init()
|
| /linux/net/sunrpc/xprtrdma/ |
| H A D | ib_client.c | 75 * registration sentinel for rpcrdma_rn_unregister(); a stale in rpcrdma_rn_register() 102 * It is safe to call this on an @rn whose registration never 115 * rn_done is the registration sentinel: rpcrdma_rn_register in rpcrdma_rn_unregister() 118 * registration. A NULL rn_done means this notification was in rpcrdma_rn_unregister() 119 * never registered (or its registration failed) or has in rpcrdma_rn_unregister()
|
| /linux/Documentation/driver-api/thermal/ |
| H A D | cpu-cooling-api.rst | 14 The generic cpu cooling(freq clipping) provides registration/unregistration APIs 16 the user. The registration APIs returns the cooling device pointer. 21 1.1 cpufreq registration/unregistration APIs 61 The power API registration functions provide a simple power model for
|
| /linux/Documentation/driver-api/surface_aggregator/clients/ |
| H A D | san.rst | 22 registration and notifier-block registration. 31 loaded, regardless of being linked as client or not. Registration is done
|
| /linux/Documentation/driver-api/usb/ |
| H A D | typec.rst | 15 class. In a normal case the registration will be done by a USB Type-C or PD PHY 81 registration. The class offers the following API for registering/unregistering 87 The class will provide a handle to struct typec_partner if the registration was 111 followed by registration of the cable plugs. The cable will be the parent device 114 the details during registration. The class offers the following API for 121 the registration is successful, or NULL if it isn't. 172 own functions, but the registration will always return a handle to struct
|
| /linux/include/crypto/ |
| H A D | algapi.h | 65 /* Node in list of instances after registration. */ 67 /* List of attached spawns before registration. */ 91 /* Back pointer to instance after registration.*/ 93 /* Spawn list pointer prior to registration. */ 132 * Algorithm registration interface.
|
| /linux/include/uapi/linux/ |
| H A D | user_events.h | 21 /* List of supported registration flags */ 34 * Describes an event registration and stores the results of the registration.
|
| /linux/sound/soc/ |
| H A D | soc-devres.c | 20 * devm_snd_soc_register_component - resource managed component registration 53 * devm_snd_soc_register_card - resource managed card registration in devm_card_release() 75 * devm_snd_dmaengine_pcm_register - resource managed dmaengine PCM registration in devm_snd_soc_register_card()
|
| /linux/rust/kernel/pci/ |
| H A D | irq.rs | 81 /// a handler with [`irq::Registration::new`](crate::irq::Registration::new). 121 /// this registration and must be dropped before it is. 162 // SAFETY: `irq` is a valid IRQ number for `self.dev`, resolved from this registration. in index() 196 /// Returns the IRQ vector registration, or an error if `min_vecs` vectors cannot be
|
| /linux/drivers/staging/media/sunxi/cedrus/ |
| H A D | TODO | 8 v4l2 and m2m devices registration; 9 - proc, with video device registration and related operations;
|
| /linux/drivers/counter/ |
| H A D | counter-core.c | 83 * This is part one of counter registration. The structure is allocated 147 * counter_add - complete registration of a counter 150 * This is part two of counter registration. 231 * devm_counter_add - complete registration of a counter
|