Home
last modified time | relevance | path

Searched full:registration (Results 1 – 25 of 703) sorted by relevance

12345678910>>...29

/linux/drivers/misc/sgi-xp/
H A Dxp_main.c137 struct xpc_registration *registration; in xpc_connect() local
147 registration = &xpc_registrations[ch_number]; in xpc_connect()
149 if (mutex_lock_interruptible(&registration->mutex) != 0) in xpc_connect()
153 if (registration->func != NULL) { in xpc_connect()
154 mutex_unlock(&registration->mutex); in xpc_connect()
159 registration->entry_size = XPC_MSG_SIZE(payload_size); in xpc_connect()
160 registration->nentries = nentries; in xpc_connect()
161 registration->assigned_limit = assigned_limit; in xpc_connect()
162 registration->idle_limit = idle_limit; in xpc_connect()
163 registration->key = key; in xpc_connect()
[all …]
H A Dxpc_channel.c468 struct xpc_registration *registration = &xpc_registrations[ch->number]; in xpc_connect_channel() local
470 if (mutex_trylock(&registration->mutex) == 0) in xpc_connect_channel()
474 mutex_unlock(&registration->mutex); in xpc_connect_channel()
485 mutex_unlock(&registration->mutex); in xpc_connect_channel()
489 /* add info from the channel connect registration to the channel */ in xpc_connect_channel()
491 ch->kthreads_assigned_limit = registration->assigned_limit; in xpc_connect_channel()
492 ch->kthreads_idle_limit = registration->idle_limit; in xpc_connect_channel()
497 ch->func = registration->func; in xpc_connect_channel()
498 DBUG_ON(registration->func == NULL); in xpc_connect_channel()
499 ch->key = registration->key; in xpc_connect_channel()
[all …]
/linux/rust/kernel/irq/
H A Drequest.rs4 //! This module provides types like [`Registration`] and
59 /// `Registration`.
125 /// A registration of an IRQ handler for a given IRQ line.
129 /// The following is an example of using `Registration`. It uses a
143 /// use kernel::irq::{self, Flags, IrqRequest, IrqReturn, Registration};
168 /// ) -> Result<Arc<Registration<Data>>> {
169 /// let registration = Registration::new(request, Flags::SHARED, c"my_device", handler);
171 /// let registration = Arc::pin_init(registration, GFP_KERNE
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 Dfaux.rs21 /// The registration of a faux device.
23 /// This type represents the registration of a [`struct faux_device`]. When an instance of this type
31 pub struct Registration(NonNull<bindings::faux_device>); in new()
33 impl Registration { in new()
62 impl AsRef<device::Device> for Registration {
70 impl Drop for Registration {
81 unsafe impl Send for Registration {}
86 unsafe impl Sync 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
77 unsafe impl Sync for Registration {} global() implementation
H A Ddriver.rs79 //! # 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 Dauxiliary.rs40 /// An adapter for the registration of auxiliary drivers.
273 /// Returns a pinned reference to the registration data set by the registering (parent) driver. in release()
280 /// [`Registration::new()`].
282 /// Returns [`ENOENT`] if no registration data has been set, e.g. when the device was
290 "No registration data set; parent is not a Rust driver.\n"
295 // SAFETY: `ptr` is non-null and was set via `into_foreign()` in `Registration::new()`; in inc_ref()
304 // `F::Of<'static>`; `ptr` remains valid until `Registration::drop()` calls in dec_ref()
329 // SAFETY: `adev` points to the memory that has been allocated in `Registration::new`, via
388 /// Wrapper that stores a [`TypeId`] alongside the registration data for runtime type checking. in new()
397 /// The registration o in drop()
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 Di2c.rs91 /// An adapter for the registration of I2C drivers.
554 /// The registration of an i2c client device.
556 /// This type represents the registration of a [`struct i2c_client`]. When an instance of this struct
564 pub struct Registration(NonNull<bindings::i2c_client>); in new()
566 impl Registration { in new()
590 impl Drop for Registration {
592 // SAFETY: `Drop` is only called for a valid `Registration`, which by invariant
598 // SAFETY: A `Registration` of a `struct i2c_client` can be released from any thread.
599 unsafe impl Send for Registration {}
601 // SAFETY: `Registration` offer
558 impl Registration { global() implementation
582 impl Drop for Registration { global() implementation
591 unsafe impl Send for Registration {} global() implementation
595 unsafe impl Sync for Registration {} global() implementation
[all...]
/linux/samples/rust/
H A Drust_driver_auxiliary.rs63 _reg0: auxiliary::Registration<'bound, ForLt!(Data<'_>)>,
64 _reg1: auxiliary::Registration<'bound, ForLt!(Data<'_>)>,
88 auxiliary::Registration::new_with_lt( in connect()
101 auxiliary::Registration::new_with_lt( in connect()
142 _pci_driver: driver::Registration<pci::Adapter<ParentDriver>>,
144 _aux_driver: driver::Registration<auxiliary::Adapter<AuxiliaryDriver>>,
150 _pci_driver <- driver::Registration::new(MODULE_NAME, module),
151 _aux_driver <- driver::Registration::new(MODULE_NAME, module),
H A Drust_i2c_client.rs3 //! Rust I2C client registration sample.
12 //! This demonstrates how to test an ACPI-based Rust I2C client registration driver
85 _reg: Devres<i2c::Registration>,
119 "Probe Rust I2C Client registration sample.\n" in probe()
128 i2c::Registration::new(&adapter, &BOARD_INFO, pdev.as_ref()) in probe()
139 "Unbind Rust I2C Client registration sample.\n"
148 description: "Rust I2C client registration",
H A Drust_driver_faux.rs20 _reg: faux::Registration, in init()
27 let reg = faux::Registration::new(c"rust-faux-sample-device", None)?; in init()
/linux/drivers/infiniband/ulp/srp/
H A Dib_srp.h100 * @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/infiniband/core/
H A Diwpm_util.h148 * 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 Discsi_iser.h135 /* 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/Documentation/crypto/
H A Ddevel-algos.rst7 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 Drseq.c55 * 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/Documentation/infiniband/
H A Duser_mad.rst18 descriptor for the appropriate device file. If the registration
34 a new registration ioctl is now provided which allows additional
35 fields to be provided during registration.
36 Users of this registration call are implicitly setting the use of
100 mad->hdr.id = my_agent; /* req.id from agent registration */
/linux/Documentation/driver-api/thermal/
H A Dcpu-cooling-api.rst14 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 Dsan.rst22 registration and notifier-block registration.
31 loaded, regardless of being linked as client or not. Registration is done
/linux/include/uapi/linux/
H A Duser_events.h21 /* List of supported registration flags */
34 * Describes an event registration and stores the results of the registration.
/linux/Documentation/driver-api/usb/
H A Dtypec.rst15 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/drivers/staging/media/sunxi/cedrus/
H A DTODO8 v4l2 and m2m devices registration;
9 - proc, with video device registration and related operations;
/linux/drivers/md/bcache/
H A DKconfig24 bool "Asynchronous device registration"
29 registration work is handled in kernel work queue in asynchronous
/linux/sound/soc/
H A Dsoc-devres.c20 * 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/include/crypto/
H A Dalgapi.h65 /* 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/Documentation/i2c/muxes/
H A Di2c-mux-gpio.rst69 If you don't know the absolute GPIO pin numbers at registration time,
75 Device Registration
85 GPIO pin numbers at registration time, this is even the only option.

12345678910>>...29