Home
last modified time | relevance | path

Searched refs:vtable (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/regulator/
H A Dvctrl-regulator.c44 struct vctrl_voltage_table *vtable; member
175 vctrl->vtable[selector].ctrl, in vctrl_set_voltage_sel()
176 vctrl->vtable[selector].ctrl, in vctrl_set_voltage_sel()
188 next_sel = max_t(unsigned int, selector, vctrl->vtable[vctrl->sel].ovp_min_sel); in vctrl_set_voltage_sel()
191 vctrl->vtable[next_sel].ctrl, in vctrl_set_voltage_sel()
192 vctrl->vtable[next_sel].ctrl, in vctrl_set_voltage_sel()
197 vctrl->vtable[next_sel].ctrl); in vctrl_set_voltage_sel()
202 delay = DIV_ROUND_UP(vctrl->vtable[vctrl->sel].out - in vctrl_set_voltage_sel()
203 vctrl->vtable[next_sel].out, in vctrl_set_voltage_sel()
214 vctrl->vtable[orig_sel].ctrl, in vctrl_set_voltage_sel()
[all …]
H A Dhi655x-regulator.c108 sreg, cmask, vtable) { \ argument
117 .n_voltages = ARRAY_SIZE(vtable), \
118 .volt_table = vtable, \
/linux/rust/macros/
H A Dlib.rs21 mod vtable;
140 /// Declares or implements a vtable trait.
149 /// `#[vtable]` attribute. Implementers of the trait will then also have to
150 /// annotate the trait with `#[vtable]`. This attribute generates a `HAS_*`
155 /// This is also the case for traits annotated with `#[vtable]`, but in this
158 /// C side vtables. When an optional method is not implemented on a `#[vtable]`
159 /// trait, a `NULL` entry is installed in the vtable. Thus the default
162 /// implementation. This is done to ensure that we call the vtable methods
163 /// through the C vtable, and not through the Rust vtable
23 mod vtable; global() module
209 pub fn vtable(attr: TokenStream, ts: TokenStream) -> TokenStream { vtable() function
[all...]
H A Dvtable.rs28 /// A marker to prevent implementors from forgetting to use [`#[vtable]`](vtable) in vtable()
96 pub(crate) fn vtable(input: Item) -> Result<TokenStream> { in vtable()
102 "`#[vtable]` attribute should only be applied to trait or impl block",
7 pub(crate) fn vtable(_attr: TokenStream, ts: TokenStream) -> TokenStream { vtable() function
/linux/rust/kernel/
H A Ddebugfs.rs541 fn create_file<T: Sync>(&self, name: &CStr, data: &'data T, vtable: &'static FileOps<T>) { in read_binary_file()
543 core::mem::forget(Entry::file(name, &self.entry, data, vtable)); in read_binary_file()
587 let vtable = <FormatAdapter<T, F> as ReadFile<_>>::FILE_OPS.adapt();
588 self.create_file(name, data, vtable)
604 let vtable = &<T as ReadWriteFile<_>>::FILE_OPS;
605 self.create_file(name, data, vtable)
620 let vtable = &<T as BinaryReadWriteFile<_>>::FILE_OPS; in read_write_callback_file()
621 self.create_file(name, data, vtable) in read_write_callback_file() localVariable
645 let vtable = <WritableAdapter<FormatAdapter<T, F>, W> as ReadWriteFile<_>>::FILE_OPS in write_binary_file()
648 self.create_file(name, data, vtable) in write_binary_file()
563 let vtable = <FormatAdapter<T, F> as ReadFile<_>>::FILE_OPS.adapt(); read_callback_file() localVariable
580 let vtable = &<T as ReadWriteFile<_>>::FILE_OPS; read_write_file() localVariable
596 let vtable = &<T as BinaryReadWriteFile<_>>::FILE_OPS; read_write_binary_file() localVariable
635 let vtable = &<T as WriteFile<_>>::FILE_OPS; write_only_file() localVariable
668 let vtable = &<WritableAdapter<NoWriter<T>, W> as WriteFile<_>>::FILE_OPS write_only_callback_file() localVariable
[all...]
H A Dprelude.rs28 pub use macros::{export, fmt, kunit_tests, module, vtable};
H A Dopp.rs88 use macros::vtable;
292 #[vtable]
H A Dconfigfs.rs74 //! #[vtable]
86 //! #[vtable]
485 #[vtable]
642 #[vtable]
H A Dcpufreq.rs35 use macros::vtable;
720 #[vtable]
844 /// macros::vtable,
853 /// #[vtable]
/linux/Documentation/admin-guide/sysctl/
H A Dabi.rst8 .. scripts/check-sysctl-docs -vtable="abi" \