Home
last modified time | relevance | path

Searched defs:fn (Results 1 – 25 of 456) sorted by relevance

12345678910>>...19

/linux/rust/kernel/
H A Dptr.rs48 pub const fn new<const ALIGN: usize>() -> Self { in new() constant
75 pub const fn new_checked(align: usize) -> Option<Self> { in new_checked() constant
89 pub const fn of<T>() -> Self { in of() constant
108 pub const fn as_usize(self) -> usize { in as_usize() constant
124 pub const fn as_nonzero(self) -> NonZero<usize> { in as_nonzero() constant
146 pub const fn log2(self) -> u32 { in log2() constant
162 pub const fn mask(self) -> usize { in mask() constant
278 pub const fn const_align_up(value: usize, align: Alignment) -> Option<usize> { const_align_up() constant
[all...]
H A Dfirmware.rs241 pub const fn new(module_name: &'static CStr) -> Self { new() constant
249 const fn push_internal(mut self, bytes: &[u8]) -> Self { push_internal() constant
287 pub const fn push(self, s: &str) -> Self { push() constant
296 const fn push_module_name(self) -> Self { push_module_name() constant
320 pub const fn new_entry(self) -> Self { new_entry() constant
327 pub const fn build(self) -> [u8; N] { build() constant
341 pub const fn build_length(self) -> usize { build_length() constant
[all...]
H A Dclk.rs38 pub const fn from_khz(khz: c_ulong) -> Self { in from_khz() constant
43 pub const fn from_mhz(mhz: c_ulong) -> Self { in from_mhz() constant
48 pub const fn from_ghz(ghz: c_ulong) -> Self { in from_ghz() constant
53 pub const fn as_hz(&self) -> c_ulong { in as_hz() constant
58 pub const fn as_khz(&self) -> c_ulong { in as_khz() constant
63 pub const fn as_mhz(&self) -> c_ulong { in as_mhz() constant
68 pub const fn as_ghz(&self) -> c_ulong { in as_ghz() constant
[all...]
H A Dtypes.rs333 pub const fn new(value: T) -> Self { new() constant
341 pub const fn uninit() -> Self { uninit() constant
349 pub const fn zeroed() -> Self { zeroed() constant
394 pub const fn get(&self) -> *mut T { get() constant
402 pub const fn cast_into(this: *const Self) -> *mut T { cast_into() constant
407 pub const fn cast_from(this: *const T) -> *const Self { cast_from() constant
[all...]
H A Dusb.rs130 pub const fn from_id(vendor: u16, product: u16) -> Self { from_id() constant
141 pub const fn from_device_ver(vendor: u16, product: u16, bcd_lo: u16, bcd_hi: u16) -> Self { from_device_ver() constant
154 pub const fn from_device_info(class: u8, subclass: u8, protocol: u8) -> Self { from_device_info() constant
166 pub const fn from_interface_info(class: u8, subclass: u8, protocol: u8) -> Self { from_interface_info() constant
178 pub const fn from_device_interface_class(vendor: u16, product: u16, class: u8) -> Self { from_device_interface_class() constant
191 pub const fn from_device_interface_protocol(vendor: u16, product: u16, protocol: u8) -> Self { from_device_interface_protocol() constant
204 pub const fn from_device_interface_number(vendor: u16, product: u16, number: u8) -> Self { from_device_interface_number() constant
217 pub const fn from_device_and_interface_info( from_device_and_interface_info() constant
[all...]
H A Ddevice_id.rs64 pub const fn size(&self) -> usize { size() constant
135 pub const fn new_without_index(ids: [(T, U); N]) -> Self { new_without_index() constant
142 pub const fn raw_ids(&self) -> &RawIdArray<T, N> { raw_ids() constant
151 pub const fn new(ids: [(T, U); N]) -> Self { new() constant
H A Dmodule_param.rs19 pub const fn new(val: bindings::kernel_param) -> Self { in new() constant
144 pub fn value(&self) -> T in as_void_ptr() constant
127 pub const fn new(default: T) -> Self { new() constant
H A Dtime.rs343 pub const fn from_jiffies(jiffies: isize) -> Self { in from_jiffies() constant
349 pub const fn as_jiffies(self) -> isize { in as_jiffies() constant
432 pub const fn from_nanos(nanos: i64) -> Self { in from_nanos() constant
442 pub const fn from_micros(micros: i64) -> Self { in from_micros() constant
454 pub const fn from_millis(millis: i64) -> Self { in from_millis() constant
466 pub const fn from_secs(secs: i64) -> Self { in from_secs() constant
486 pub const fn as_nanos(self) -> i64 { in as_nanos() constant
/linux/drivers/misc/ocxl/
H A Dcore.c6 static struct ocxl_fn *ocxl_fn_get(struct ocxl_fn *fn) in ocxl_fn_get()
11 static void ocxl_fn_put(struct ocxl_fn *fn) in ocxl_fn_put()
16 static struct ocxl_afu *alloc_afu(struct ocxl_fn *fn) in alloc_afu()
56 struct ocxl_fn *fn = afu->fn; in assign_afu_actag() local
84 struct ocxl_fn *fn = afu->fn; in reclaim_afu_actag() local
94 struct ocxl_fn *fn = afu->fn; in assign_afu_pasid() local
123 struct ocxl_fn *fn = afu->fn; in reclaim_afu_pasid() local
131 static int reserve_fn_bar(struct ocxl_fn *fn, int bar) in reserve_fn_bar()
148 static void release_fn_bar(struct ocxl_fn *fn, int bar) in release_fn_bar()
263 static int init_afu(struct pci_dev *dev, struct ocxl_fn *fn, u8 afu_idx) in init_afu()
[all …]
H A Dconfig.c77 static void read_pasid(struct pci_dev *dev, struct ocxl_fn_config *fn) in read_pasid()
100 static int read_dvsec_tl(struct pci_dev *dev, struct ocxl_fn_config *fn) in read_dvsec_tl()
117 static int read_dvsec_function(struct pci_dev *dev, struct ocxl_fn_config *fn) in read_dvsec_function()
144 static int read_dvsec_afu_info(struct pci_dev *dev, struct ocxl_fn_config *fn) in read_dvsec_afu_info()
267 static int validate_function(struct pci_dev *dev, struct ocxl_fn_config *fn) in validate_function()
284 int ocxl_config_read_function(struct pci_dev *dev, struct ocxl_fn_config *fn) in ocxl_config_read_function()
324 static int read_afu_info(struct pci_dev *dev, struct ocxl_fn_config *fn, in read_afu_info()
362 static int read_template_version(struct pci_dev *dev, struct ocxl_fn_config *fn, in read_template_version()
381 struct ocxl_fn_config *fn, int afu_idx) in ocxl_config_check_afu_index()
422 static int read_afu_name(struct pci_dev *dev, struct ocxl_fn_config *fn, in read_afu_name()
[all …]
/linux/drivers/pinctrl/renesas/
H A Dsh_pfc.h361 #define PINMUX_IPSR_NOGP(ipsr, fn) \ argument
371 #define PINMUX_IPSR_GPSR(ipsr, fn) \ argument
382 #define PINMUX_IPSR_NOGM(ipsr, fn, msel) \ argument
393 #define PINMUX_IPSR_NOFN(gpsr, fn, gsel) \ argument
405 #define PINMUX_IPSR_MSEL(ipsr, fn, msel) \ argument
417 #define PINMUX_IPSR_PHYS_MSEL(ipsr, fn, psel, msel) \ argument
427 #define PINMUX_IPSR_PHYS(ipsr, fn, psel) \ argument
435 #define PINMUX_SINGLE(fn) \ argument
442 #define PORT_GP_CFG_1(bank, pin, fn, sfx, cfg) \ argument
444 #define PORT_GP_1(bank, pin, fn, sfx) PORT_GP_CFG_1(bank, pin, fn, sfx, 0) argument
[all …]
/linux/rust/kernel/drm/
H A Dioctl.rs14 pub const fn IO(nr: u32) -> u32 { in IO() constant
21 pub const fn IOR<T>(nr: u32) -> u32 { in IOR() constant
28 pub const fn IOW<T>(nr: u32) -> u32 { in IOW() constant
35 pub const fn IOWR<T>(nr: u32) -> u32 { in IOWR() constant
/linux/arch/um/include/shared/
H A Dinit.h71 #define __uml_exitcall(fn) \ argument
76 #define __uml_postsetup(fn) \ argument
86 #define __uml_setup(str, fn, help...) \ argument
92 #define __uml_setup(str, fn, help...) \ argument
96 #define __uml_help(fn, help...) \ argument
112 #define __define_initcall(level,fn) \ argument
119 #define __initcall(fn) __define_initcall("1", fn) argument
121 #define __exitcall(fn) static exitcall_t __exitcall_##fn __exit_call = fn argument
/linux/rust/kernel/pci/
H A Did.rs80 pub const fn as_raw(self) -> u32 { in as_raw() constant
89 const fn to_24bit_class(val: u32) -> u32 { in to_24bit_class() constant
107 pub const fn as_raw(self) -> u32 { in as_raw() constant
165 pub const fn as_raw(self) -> u16 { as_raw() constant
[all...]
H A Dirq.rs35 const fn as_raw(self) -> u32 { as_raw() constant
50 pub const fn all() -> Self { all() constant
64 pub const fn with(self, irq_type: IrqType) -> Self { with() constant
69 const fn as_raw(self) -> u32 { as_raw() constant
[all...]
/linux/tools/testing/selftests/vDSO/
H A Dvdso_call.h12 #define LOADARGS_1(fn, __arg1) do { \ argument
17 #define LOADARGS_2(fn, __arg1, __arg2) do { \ argument
23 #define LOADARGS_3(fn, __arg1, __arg2, __arg3) do { \ argument
30 #define LOADARGS_5(fn, __arg1, __arg2, __arg3, __arg4, __arg5) do { \ argument
39 #define VDSO_CALL(fn, nr, args...) ({ \ argument
66 #define VDSO_CALL(fn, nr, args...) fn(args) argument
/linux/arch/powerpc/include/asm/
H A Dmachdep.h247 #define __define_machine_initcall(mach, fn, id) \ argument
254 #define machine_early_initcall(mach, fn) __define_machine_initcall(mach, fn, early) argument
255 #define machine_core_initcall(mach, fn) __define_machine_initcall(mach, fn, 1) argument
256 #define machine_core_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 1s) argument
257 #define machine_postcore_initcall(mach, fn) __define_machine_initcall(mach, fn, 2) argument
258 #define machine_postcore_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 2s) argument
259 #define machine_arch_initcall(mach, fn) __define_machine_initcall(mach, fn, 3) argument
260 #define machine_arch_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 3s) argument
261 #define machine_subsys_initcall(mach, fn) __define_machine_initcall(mach, fn, 4) argument
262 #define machine_subsys_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 4s) argument
[all …]
/linux/drivers/input/rmi4/
H A Drmi_f03.c29 struct rmi_function *fn; member
40 int rmi_f03_overwrite_button(struct rmi_function *fn, unsigned int button, in rmi_f03_overwrite_button()
59 void rmi_f03_commit_buttons(struct rmi_function *fn) in rmi_f03_commit_buttons()
96 struct rmi_function *fn = f03->fn; in rmi_f03_initialize() local
142 struct rmi_function *fn = f03->fn; in rmi_f03_pt_open() local
165 struct rmi_function *fn = f03->fn; in rmi_f03_pt_close() local
198 static int rmi_f03_probe(struct rmi_function *fn) in rmi_f03_probe()
222 static int rmi_f03_config(struct rmi_function *fn) in rmi_f03_config()
246 struct rmi_function *fn = ctx; in rmi_f03_attention() local
307 static void rmi_f03_remove(struct rmi_function *fn) in rmi_f03_remove()
H A Drmi_bus.c133 struct rmi_function *fn = to_rmi_function(dev); in rmi_release_function() local
151 struct rmi_function *fn = to_rmi_function(dev); in rmi_function_match() local
157 static void rmi_function_of_probe(struct rmi_function *fn) in rmi_function_of_probe()
167 static inline void rmi_function_of_probe(struct rmi_function *fn) in rmi_function_of_probe()
175 static int rmi_create_function_irq(struct rmi_function *fn, in rmi_create_function_irq()
206 struct rmi_function *fn = to_rmi_function(dev); in rmi_function_probe() local
230 struct rmi_function *fn = to_rmi_function(dev); in rmi_function_remove() local
243 struct rmi_function *fn; in rmi_alloc_function() local
261 int rmi_register_function(struct rmi_function *fn) in rmi_register_function()
280 void rmi_unregister_function(struct rmi_function *fn) in rmi_unregister_function()
H A Drmi_f34.c19 struct rmi_function *fn = f34->fn; in rmi_f34_write_bootloader_id() local
49 struct rmi_function *fn = f34->fn; in rmi_f34_command() local
103 struct rmi_function *fn = ctx; in rmi_f34_attention() local
134 struct rmi_function *fn = f34->fn; in rmi_f34_write_blocks() local
198 struct rmi_function *fn = f34->fn; in rmi_f34_flash_firmware() local
298 struct rmi_function *fn; in rmi_driver_bootloader_id_show() local
326 struct rmi_function *fn = data->f34_container; in rmi_driver_configuration_id_show() local
520 struct rmi_function *fn = f34->fn; in rmi_f34v5_probe() local
577 static int rmi_f34_probe(struct rmi_function *fn) in rmi_f34_probe()
H A Drmi_f1a.c17 static int rmi_f1a_parse_device_properties(struct rmi_function *fn, struct f1a_data *f1a) in rmi_f1a_parse_device_properties()
57 struct rmi_function *fn = ctx; in rmi_f1a_attention() local
78 static int rmi_f1a_config(struct rmi_function *fn) in rmi_f1a_config()
89 static int rmi_f1a_initialize(struct rmi_function *fn, struct f1a_data *f1a) in rmi_f1a_initialize()
108 static int rmi_f1a_probe(struct rmi_function *fn) in rmi_f1a_probe()
H A Drmi_f3a.c38 static void rmi_f3a_report_button(struct rmi_function *fn, in rmi_f3a_report_button()
58 struct rmi_function *fn = ctx; in rmi_f3a_attention() local
94 static int rmi_f3a_config(struct rmi_function *fn) in rmi_f3a_config()
122 static int rmi_f3a_map_gpios(struct rmi_function *fn, struct f3a_data *f3a, in rmi_f3a_map_gpios()
167 static int rmi_f3a_initialize(struct rmi_function *fn, struct f3a_data *f3a) in rmi_f3a_initialize()
207 static int rmi_f3a_probe(struct rmi_function *fn) in rmi_f3a_probe()
/linux/rust/zerocopy/src/
H A Dlayout.rs76 const fn try_to_nonzero_elem_size(&self) -> Option<SizeInfo<NonZeroUsize>> { in try_to_nonzero_elem_size() constant
167 const fn assume_shallow_unpadded(self) -> Self { in assume_shallow_unpadded() constant
185 pub const fn new_zst(repr_align: Option<NonZeroUsize>) -> DstLayout { in new_zst() constant
209 pub const fn for_type<T>() -> DstLayout { in for_type() constant
233 pub const fn for_unpadded_type<T>() -> DstLayout { in for_unpadded_type() constant
242 pub(crate) const fn for_slice<T>() -> DstLayout { in for_slice() constant
280 pub const fn for_repr_c_struct( in for_repr_c_struct() constant
341 pub const fn extend(self, field: DstLayout, repr_packed: Option<NonZeroUsize>) -> Self { in extend() constant
492 pub const fn pad_to_align(self) -> Self { in pad_to_align() constant
521 pub const fn requires_static_padding(self) -> bool { in requires_static_padding() constant
[all …]
/linux/tools/testing/selftests/mm/
H A Dcow.c175 do_test_cow_in_parent(char * mem,size_t size,bool do_mprotect,child_fn fn,bool xfail) do_test_cow_in_parent() argument
768 do_run_with_base_page(test_fn fn,bool swapout) do_run_with_base_page() argument
806 run_with_base_page(test_fn fn,const char * desc) run_with_base_page() argument
812 run_with_base_page_swap(test_fn fn,const char * desc) run_with_base_page_swap() argument
829 do_run_with_thp(test_fn fn,enum thp_run thp_run,size_t thpsize) do_run_with_thp() argument
984 run_with_thp(test_fn fn,const char * desc,size_t size) run_with_thp() argument
991 run_with_thp_swap(test_fn fn,const char * desc,size_t size) run_with_thp_swap() argument
998 run_with_pte_mapped_thp(test_fn fn,const char * desc,size_t size) run_with_pte_mapped_thp() argument
1005 run_with_pte_mapped_thp_swap(test_fn fn,const char * desc,size_t size) run_with_pte_mapped_thp_swap() argument
1012 run_with_single_pte_of_thp(test_fn fn,const char * desc,size_t size) run_with_single_pte_of_thp() argument
1019 run_with_single_pte_of_thp_swap(test_fn fn,const char * desc,size_t size) run_with_single_pte_of_thp_swap() argument
1026 run_with_partial_mremap_thp(test_fn fn,const char * desc,size_t size) run_with_partial_mremap_thp() argument
1033 run_with_partial_shared_thp(test_fn fn,const char * desc,size_t size) run_with_partial_shared_thp() argument
1040 run_with_hugetlb(test_fn fn,const char * desc,size_t hugetlbsize) run_with_hugetlb() argument
1079 test_fn fn; global() member
1530 run_with_zeropage(non_anon_test_fn fn,const char * desc) run_with_zeropage() argument
1562 run_with_huge_zeropage(non_anon_test_fn fn,const char * desc) run_with_huge_zeropage() argument
1630 run_with_memfd(non_anon_test_fn fn,const char * desc) run_with_memfd() argument
1678 run_with_tmpfile(non_anon_test_fn fn,const char * desc) run_with_tmpfile() argument
1734 run_with_memfd_hugetlb(non_anon_test_fn fn,const char * desc,size_t hugetlbsize) run_with_memfd_hugetlb() argument
1790 non_anon_test_fn fn; global() member
[all...]
/linux/arch/arm/include/asm/
H A Dglue.h16 #define ____glue(name,fn) name##fn argument
18 #define ____glue(name,fn) name/**/fn argument
20 #define __glue(name,fn) ____glue(name,fn) argument

12345678910>>...19