Home
last modified time | relevance | path

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

12345678910>>...30

/openbmc/linux/rust/kernel/
H A Dioctl.rs13 const fn _IOC(dir: u32, ty: u32, nr: u32, size: usize) -> u32 { in _IOC() constant
27 pub const fn _IO(ty: u32, nr: u32) -> u32 { in _IO() constant
33 pub const fn _IOR<T>(ty: u32, nr: u32) -> u32 { in _IOR() constant
39 pub const fn _IOW<T>(ty: u32, nr: u32) -> u32 { in _IOW() constant
45 pub const fn _IOWR<T>(ty: u32, nr: u32) -> u32 { in _IOWR() constant
55 pub const fn _IOC_DIR(nr: u32) -> u32 { in _IOC_DIR() constant
60 pub const fn _IOC_TYPE(nr: u32) -> u32 { in _IOC_TYPE() constant
65 pub const fn _IOC_NR(nr: u32) -> u32 { in _IOC_NR() constant
70 pub const fn _IOC_SIZE(nr: u32) -> usize { in _IOC_SIZE() constant
/openbmc/linux/include/linux/
H A Dinit.h209 #define __initcall_id(fn) \ argument
240 #define __initcall_stub(fn, __iid, id) \ argument
243 #define __define_initcall_stub(__stub, fn) \ argument
254 #define __initcall_stub(fn, __iid, id) fn argument
256 #define __define_initcall_stub(__stub, fn) \ argument
261 #define ____define_initcall(fn, __stub, __name, __sec) \ argument
269 #define ____define_initcall(fn, __unused, __name, __sec) \ argument
274 #define __unique_initcall(fn, id, __sec, __iid) \ argument
280 #define ___define_initcall(fn, id, __sec) \ argument
283 #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) argument
[all …]
H A Dstop_machine.h26 cpu_stop_fn_t fn; member
48 cpu_stop_fn_t fn; member
52 static inline int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu()
72 cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait()
147 static __always_inline int stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data, in stop_machine_cpuslocked()
159 stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus) in stop_machine()
165 stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data, in stop_machine_from_inactive_cpu()
H A Dirqchip.h23 #define typecheck_irq_init_cb(fn) \ argument
36 #define IRQCHIP_DECLARE(name, compat, fn) \ argument
44 #define IRQCHIP_MATCH(compat, fn) { .compatible = compat, \ argument
77 #define IRQCHIP_ACPI_DECLARE(name, subtable, validate, data, fn) \ argument
/openbmc/qemu/rust/qemu-api/src/
H A Dmemory.rs63 pub const fn read<F: for<'a> FnCall<(&'a T, hwaddr, u32), u64>>(mut self, _f: &F) -> Self { in read() constant
69 pub const fn write<F: for<'a> FnCall<(&'a T, hwaddr, u64, u32)>>(mut self, _f: &F) -> Self { in write() constant
75 pub const fn big_endian(mut self) -> Self { in big_endian() constant
81 pub const fn little_endian(mut self) -> Self { in little_endian() constant
87 pub const fn native_endian(mut self) -> Self { in native_endian() constant
93 pub const fn valid_sizes(mut self, min: u32, max: u32) -> Self { in valid_sizes() constant
100 pub const fn valid_unaligned(mut self) -> Self { in valid_unaligned() constant
106 pub const fn impl_sizes(mut self, min: u32, max: u32) -> Self { in impl_sizes() constant
113 pub const fn impl_unaligned(mut self) -> Self { in impl_unaligned() constant
119 pub const fn build(self) -> MemoryRegionOps<T> { in build() constant
[all …]
H A Dvmstate.rs63 … const fn phantom__<T>(_: &T) -> ::core::marker::PhantomData<T> { ::core::marker::PhantomData } constant
168 pub const fn vmstate_scalar_type<T: VMState>(_: PhantomData<T>) -> VMStateFieldType { in vmstate_scalar_type() constant
174 pub const fn vmstate_base<T: VMState>(_: PhantomData<T>) -> VMStateField { in vmstate_base() constant
181 pub const fn vmstate_varray_flag<T: VMState>(_: PhantomData<T>) -> VMStateFlags { in vmstate_varray_flag() constant
243 pub const fn with_version_id(mut self, version_id: i32) -> Self { in with_version_id() constant
250 pub const fn with_array_flag(mut self, num: usize) -> Self { in with_array_flag() constant
269 pub const fn with_pointer_flag(mut self) -> Self { in with_pointer_flag() constant
276 pub const fn with_varray_flag_unchecked(mut self, flag: VMStateFlags) -> VMStateField { in with_varray_flag_unchecked() constant
285 pub const fn with_varray_flag(mut self, flag: VMStateFlags) -> VMStateField { in with_varray_flag() constant
291 pub const fn with_varray_multiply(mut self, num: u32) -> VMStateField { in with_varray_multiply() constant
[all …]
H A Dcell.rs336 pub const fn new(value: T) -> BqlCell<T> { in new() constant
438 pub const fn as_ptr(&self) -> *mut T { in as_ptr() constant
504 const fn is_writing(x: BorrowFlag) -> bool { in is_writing() constant
509 const fn is_reading(x: BorrowFlag) -> bool { in is_reading() constant
524 pub const fn new(value: T) -> BqlRefCell<T> { in new() constant
689 pub const fn as_ptr(&self) -> *mut T { in as_ptr() constant
1013 pub const fn as_mut_ptr(&self) -> *mut T { in as_mut_ptr() constant
1018 pub const fn as_ptr(&self) -> *const T { in as_ptr() constant
1024 pub const fn as_void_ptr(&self) -> *mut std::ffi::c_void { in as_void_ptr() constant
1029 pub const fn raw_get(slot: *mut Self) -> *mut T { in raw_get() constant
/openbmc/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 …]
/openbmc/u-boot/arch/arm/mach-rmobile/
H A Dpfc-r8a7790.h14 #define CPU_32_PORT(fn, pfx, sfx) \ argument
19 #define CPU_32_PORT2(fn, pfx, sfx) \ argument
24 #define CPU_32_PORT1(fn, pfx, sfx) \ argument
28 #define CPU_ALL_PORT(fn, pfx, sfx) \ argument
37 #define CPU_32_PORT1(fn, pfx, sfx) \ argument
48 #define CPU_ALL_PORT(fn, pfx, sfx) \ argument
64 #define CPU_32_PORT0_28(fn, pfx, sfx) \ argument
72 #define CPU_32_PORT0_22(fn, pfx, sfx) \ argument
77 #define CPU_32_PORT0_27(fn, pfx, sfx) \ argument
84 #define CPU_32_PORT0_16(fn, pfx, sfx) \ argument
[all …]
/openbmc/linux/drivers/pinctrl/renesas/
H A Dsh_pfc.h360 #define PINMUX_IPSR_NOGP(ipsr, fn) \ argument
370 #define PINMUX_IPSR_GPSR(ipsr, fn) \ argument
381 #define PINMUX_IPSR_NOGM(ipsr, fn, msel) \ argument
392 #define PINMUX_IPSR_NOFN(gpsr, fn, gsel) \ argument
404 #define PINMUX_IPSR_MSEL(ipsr, fn, msel) \ argument
416 #define PINMUX_IPSR_PHYS_MSEL(ipsr, fn, psel, msel) \ argument
426 #define PINMUX_IPSR_PHYS(ipsr, fn, psel) \ argument
434 #define PINMUX_SINGLE(fn) \ argument
441 #define PORT_GP_CFG_1(bank, pin, fn, sfx, cfg) \ argument
443 #define PORT_GP_1(bank, pin, fn, sfx) PORT_GP_CFG_1(bank, pin, fn, sfx, 0) argument
[all …]
/openbmc/u-boot/drivers/pinctrl/renesas/
H A Dsh_pfc.h297 #define PINMUX_IPSR_NOGP(ipsr, fn) \ argument
307 #define PINMUX_IPSR_GPSR(ipsr, fn) \ argument
318 #define PINMUX_IPSR_NOGM(ipsr, fn, msel) \ argument
329 #define PINMUX_IPSR_NOFN(gpsr, fn, gsel) \ argument
341 #define PINMUX_IPSR_MSEL(ipsr, fn, msel) \ argument
349 #define PINMUX_SINGLE(fn) \ argument
356 #define PORT_GP_CFG_1(bank, pin, fn, sfx, cfg) \ argument
358 #define PORT_GP_1(bank, pin, fn, sfx) PORT_GP_CFG_1(bank, pin, fn, sfx, 0) argument
360 #define PORT_GP_CFG_4(bank, fn, sfx, cfg) \ argument
365 #define PORT_GP_4(bank, fn, sfx) PORT_GP_CFG_4(bank, fn, sfx, 0) argument
[all …]
/openbmc/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
/openbmc/linux/arch/powerpc/include/asm/
H A Dkasan.h6 #define _GLOBAL_KASAN(fn) _GLOBAL(__##fn) argument
7 #define _GLOBAL_TOC_KASAN(fn) _GLOBAL_TOC(__##fn) argument
8 #define EXPORT_SYMBOL_KASAN(fn) EXPORT_SYMBOL(__##fn) argument
10 #define _GLOBAL_KASAN(fn) _GLOBAL(fn) argument
11 #define _GLOBAL_TOC_KASAN(fn) _GLOBAL_TOC(fn) argument
12 #define EXPORT_SYMBOL_KASAN(fn) argument
H A Dmachdep.h243 #define __define_machine_initcall(mach, fn, id) \ argument
250 #define machine_early_initcall(mach, fn) __define_machine_initcall(mach, fn, early) argument
251 #define machine_core_initcall(mach, fn) __define_machine_initcall(mach, fn, 1) argument
252 #define machine_core_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 1s) argument
253 #define machine_postcore_initcall(mach, fn) __define_machine_initcall(mach, fn, 2) argument
254 #define machine_postcore_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 2s) argument
255 #define machine_arch_initcall(mach, fn) __define_machine_initcall(mach, fn, 3) argument
256 #define machine_arch_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 3s) argument
257 #define machine_subsys_initcall(mach, fn) __define_machine_initcall(mach, fn, 4) argument
258 #define machine_subsys_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 4s) argument
[all …]
/openbmc/qemu/rust/hw/timer/hpet/src/
H A Dhpet.rs146 const fn hpet_next_wrap(cur_tick: u64) -> u64 { in hpet_next_wrap() constant
150 const fn hpet_time_after(a: u64, b: u64) -> bool { in hpet_time_after() constant
154 const fn ticks_to_ns(value: u64) -> u64 { in ticks_to_ns() constant
158 const fn ns_to_ticks(value: u64) -> u64 { in ns_to_ticks() constant
163 const fn hpet_fixup_reg(new: u64, old: u64, mask: u64) -> u64 { in hpet_fixup_reg() constant
167 const fn activating_bit(old: u64, new: u64, shift: usize) -> bool { in activating_bit() constant
172 const fn deactivating_bit(old: u64, new: u64, shift: usize) -> bool { in deactivating_bit() constant
252 const fn is_fsb_route_enabled(&self) -> bool { in is_fsb_route_enabled() constant
256 const fn is_periodic(&self) -> bool { in is_periodic() constant
260 const fn is_int_enabled(&self) -> bool { in is_int_enabled() constant
[all …]
/openbmc/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.c132 struct rmi_function *fn = to_rmi_function(dev); in rmi_release_function() local
150 struct rmi_function *fn = to_rmi_function(dev); in rmi_function_match() local
156 static void rmi_function_of_probe(struct rmi_function *fn) in rmi_function_of_probe()
166 static inline void rmi_function_of_probe(struct rmi_function *fn) in rmi_function_of_probe()
174 static int rmi_create_function_irq(struct rmi_function *fn, in rmi_create_function_irq()
205 struct rmi_function *fn = to_rmi_function(dev); in rmi_function_probe() local
229 struct rmi_function *fn = to_rmi_function(dev); in rmi_function_remove() local
239 int rmi_register_function(struct rmi_function *fn) in rmi_register_function()
271 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
307 struct rmi_function *fn; in rmi_driver_bootloader_id_show() local
335 struct rmi_function *fn = data->f34_container; in rmi_driver_configuration_id_show() local
529 struct rmi_function *fn = f34->fn; in rmi_f34v5_probe() local
586 static int rmi_f34_probe(struct rmi_function *fn) in rmi_f34_probe()
/openbmc/linux/drivers/pci/controller/cadence/
H A Dpcie-cadence-ep.c19 static u8 cdns_pcie_get_fn_from_vfn(struct cdns_pcie *pcie, u8 fn, u8 vfn) in cdns_pcie_get_fn_from_vfn() argument
34 static int cdns_pcie_ep_write_header(struct pci_epc *epc, u8 fn, u8 vfn, in cdns_pcie_ep_write_header() argument
76 cdns_pcie_ep_set_bar(struct pci_epc * epc,u8 fn,u8 vfn,struct pci_epf_bar * epf_bar) cdns_pcie_ep_set_bar() argument
150 cdns_pcie_ep_clear_bar(struct pci_epc * epc,u8 fn,u8 vfn,struct pci_epf_bar * epf_bar) cdns_pcie_ep_clear_bar() argument
183 cdns_pcie_ep_map_addr(struct pci_epc * epc,u8 fn,u8 vfn,phys_addr_t addr,u64 pci_addr,size_t size) cdns_pcie_ep_map_addr() argument
205 cdns_pcie_ep_unmap_addr(struct pci_epc * epc,u8 fn,u8 vfn,phys_addr_t addr) cdns_pcie_ep_unmap_addr() argument
225 cdns_pcie_ep_set_msi(struct pci_epc * epc,u8 fn,u8 vfn,u8 mmc) cdns_pcie_ep_set_msi() argument
247 cdns_pcie_ep_get_msi(struct pci_epc * epc,u8 fn,u8 vfn) cdns_pcie_ep_get_msi() argument
289 cdns_pcie_ep_set_msix(struct pci_epc * epc,u8 fn,u8 vfn,u16 interrupts,enum pci_barno bir,u32 offset) cdns_pcie_ep_set_msix() argument
319 cdns_pcie_ep_assert_intx(struct cdns_pcie_ep * ep,u8 fn,u8 intx,bool is_asserted) cdns_pcie_ep_assert_intx() argument
361 cdns_pcie_ep_send_legacy_irq(struct cdns_pcie_ep * ep,u8 fn,u8 vfn,u8 intx) cdns_pcie_ep_send_legacy_irq() argument
379 cdns_pcie_ep_send_msi_irq(struct cdns_pcie_ep * ep,u8 fn,u8 vfn,u8 interrupt_num) cdns_pcie_ep_send_msi_irq() argument
429 cdns_pcie_ep_map_msi_irq(struct pci_epc * epc,u8 fn,u8 vfn,phys_addr_t addr,u8 interrupt_num,u32 entry_size,u32 * msi_data,u32 * msi_addr_offset) cdns_pcie_ep_map_msi_irq() argument
482 cdns_pcie_ep_send_msix_irq(struct cdns_pcie_ep * ep,u8 fn,u8 vfn,u16 interrupt_num) cdns_pcie_ep_send_msix_irq() argument
532 cdns_pcie_ep_raise_irq(struct pci_epc * epc,u8 fn,u8 vfn,enum pci_epc_irq_type type,u16 interrupt_num) cdns_pcie_ep_raise_irq() argument
[all...]
/openbmc/linux/kernel/
H A Dstop_machine.c46 cpu_stop_fn_t fn; member
139 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu()
171 cpu_stop_fn_t fn; member
334 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg) in stop_two_cpus()
384 bool stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait()
392 cpu_stop_fn_t fn, void *arg, in queue_stop_cpus_work()
424 cpu_stop_fn_t fn, void *arg) in __stop_cpus()
463 static int stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) in stop_cpus()
502 cpu_stop_fn_t fn = work->fn; in cpu_stopper_thread() local
586 int stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data, in stop_machine_cpuslocked()
[all …]
/openbmc/linux/tools/testing/selftests/mm/
H A Dcow.c168 child_fn fn) in do_test_cow_in_parent()
679 static void do_run_with_base_page(test_fn fn, bool swapout) in do_run_with_base_page()
714 static void run_with_base_page(test_fn fn, const char *desc) in run_with_base_page()
720 static void run_with_base_page_swap(test_fn fn, const char *desc) in run_with_base_page_swap()
737 static void do_run_with_thp(test_fn fn, enum thp_run thp_run) in do_run_with_thp()
878 static void run_with_thp(test_fn fn, const char *desc) in run_with_thp()
884 static void run_with_thp_swap(test_fn fn, const char *desc) in run_with_thp_swap()
890 static void run_with_pte_mapped_thp(test_fn fn, const char *desc) in run_with_pte_mapped_thp()
896 static void run_with_pte_mapped_thp_swap(test_fn fn, const char *desc) in run_with_pte_mapped_thp_swap()
902 static void run_with_single_pte_of_thp(test_fn fn, const char *desc) in run_with_single_pte_of_thp()
[all …]
/openbmc/linux/drivers/pci/controller/
H A Dpcie-rockchip-ep.c76 static void rockchip_pcie_prog_ep_ob_atu(struct rockchip_pcie *rockchip, u8 fn, in rockchip_pcie_prog_ep_ob_atu()
102 static int rockchip_pcie_ep_write_header(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_write_header()
139 static int rockchip_pcie_ep_set_bar(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_set_bar()
207 static void rockchip_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_clear_bar()
241 static int rockchip_pcie_ep_map_addr(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_map_addr()
257 static void rockchip_pcie_ep_unmap_addr(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_unmap_addr()
277 static int rockchip_pcie_ep_set_msi(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_set_msi()
298 static int rockchip_pcie_ep_get_msi(struct pci_epc *epc, u8 fn, u8 vfn) in rockchip_pcie_ep_get_msi()
314 static void rockchip_pcie_ep_assert_intx(struct rockchip_pcie_ep *ep, u8 fn, in rockchip_pcie_ep_assert_intx()
336 static int rockchip_pcie_ep_send_legacy_irq(struct rockchip_pcie_ep *ep, u8 fn, in rockchip_pcie_ep_send_legacy_irq()
[all …]
/openbmc/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
/openbmc/u-boot/test/py/
H A Du_boot_utils.py29 def md5sum_file(fn, max_length=None): argument
54 def __init__(self, u_boot_console, fn, size): argument
89 def attempt_to_open_file(fn): argument
110 def wait_until_open_succeeds(fn): argument
130 def wait_until_file_open_fails(fn, ignore_errors): argument

12345678910>>...30