/kernel/linux/linux-5.10/drivers/pinctrl/renesas/ |
D | sh_pfc.h | 367 #define PINMUX_IPSR_NOGP(ipsr, fn) \ argument 368 PINMUX_DATA(fn##_MARK, FN_##fn) 377 #define PINMUX_IPSR_GPSR(ipsr, fn) \ argument 378 PINMUX_DATA(fn##_MARK, FN_##fn, FN_##ipsr) 388 #define PINMUX_IPSR_NOGM(ipsr, fn, msel) \ argument 389 PINMUX_DATA(fn##_MARK, FN_##fn, FN_##msel) 399 #define PINMUX_IPSR_NOFN(gpsr, fn, gsel) \ argument 400 PINMUX_DATA(fn##_MARK, FN_##gpsr, FN_##gsel) 411 #define PINMUX_IPSR_MSEL(ipsr, fn, msel) \ argument 412 PINMUX_DATA(fn##_MARK, FN_##msel, FN_##fn, FN_##ipsr) [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | init.h | 143 extern int do_one_initcall(initcall_t fn); 188 #define __initcall_id(fn) \ argument 194 __PASTE(_, fn)))))) 219 #define __initcall_stub(fn, __iid, id) \ argument 222 #define __define_initcall_stub(__stub, fn) \ argument 226 return fn(); \ 233 #define __initcall_stub(fn, __iid, id) fn argument 235 #define __define_initcall_stub(__stub, fn) \ argument 236 __ADDRESSABLE(fn) 240 #define ____define_initcall(fn, __stub, __name, __sec) \ argument [all …]
|
D | stop_machine.h | 26 cpu_stop_fn_t fn; member 31 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg); 32 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg); 33 bool stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, 36 int stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg); 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() argument 57 ret = fn(arg); in stop_one_cpu() 67 stwork->fn(stwork->arg); in stop_one_cpu_nowait_workfn() 72 cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait() argument [all …]
|
D | module.h | 113 #define early_initcall(fn) module_init(fn) argument 114 #define core_initcall(fn) module_init(fn) argument 115 #define core_initcall_sync(fn) module_init(fn) argument 116 #define postcore_initcall(fn) module_init(fn) argument 117 #define postcore_initcall_sync(fn) module_init(fn) argument 118 #define arch_initcall(fn) module_init(fn) argument 119 #define subsys_initcall(fn) module_init(fn) argument 120 #define subsys_initcall_sync(fn) module_init(fn) argument 121 #define fs_initcall(fn) module_init(fn) argument 122 #define fs_initcall_sync(fn) module_init(fn) argument [all …]
|
/kernel/linux/linux-5.10/drivers/misc/ocxl/ |
D | core.c | 6 static struct ocxl_fn *ocxl_fn_get(struct ocxl_fn *fn) in ocxl_fn_get() argument 8 return (get_device(&fn->dev) == NULL) ? NULL : fn; in ocxl_fn_get() 11 static void ocxl_fn_put(struct ocxl_fn *fn) in ocxl_fn_put() argument 13 put_device(&fn->dev); in ocxl_fn_put() 16 static struct ocxl_afu *alloc_afu(struct ocxl_fn *fn) in alloc_afu() argument 28 afu->fn = fn; in alloc_afu() 29 ocxl_fn_get(fn); in alloc_afu() 38 ocxl_fn_put(afu->fn); in free_afu() 56 struct ocxl_fn *fn = afu->fn; in assign_afu_actag() local 58 struct pci_dev *pci_dev = to_pci_dev(fn->dev.parent); in assign_afu_actag() [all …]
|
D | config.c | 88 static void read_pasid(struct pci_dev *dev, struct ocxl_fn_config *fn) in read_pasid() argument 100 fn->max_pasid_log = -1; in read_pasid() 104 fn->max_pasid_log = EXTRACT_BITS(val, 8, 12); in read_pasid() 108 dev_dbg(&dev->dev, " Max PASID log = %d\n", fn->max_pasid_log); in read_pasid() 111 static int read_dvsec_tl(struct pci_dev *dev, struct ocxl_fn_config *fn) in read_dvsec_tl() argument 124 fn->dvsec_tl_pos = pos; in read_dvsec_tl() 128 static int read_dvsec_function(struct pci_dev *dev, struct ocxl_fn_config *fn) in read_dvsec_function() argument 138 fn->dvsec_function_pos = pos; in read_dvsec_function() 143 fn->max_afu_index = -1; in read_dvsec_function() 147 fn->max_afu_index = EXTRACT_BITS(val, 24, 29); in read_dvsec_function() [all …]
|
D | pci.c | 21 struct ocxl_fn *fn; in ocxl_probe() local 24 fn = ocxl_function_open(dev); in ocxl_probe() 25 if (IS_ERR(fn)) in ocxl_probe() 26 return PTR_ERR(fn); in ocxl_probe() 28 pci_set_drvdata(dev, fn); in ocxl_probe() 30 afu_list = ocxl_function_afu_list(fn); in ocxl_probe() 46 struct ocxl_fn *fn; in ocxl_remove() local 50 fn = pci_get_drvdata(dev); in ocxl_remove() 51 afu_list = ocxl_function_afu_list(fn); in ocxl_remove() 57 ocxl_function_close(fn); in ocxl_remove()
|
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
D | unroll.h | 16 #define unroll(times, fn, ...) do { \ argument 31 case 32: fn(__VA_ARGS__); fallthrough; \ 32 case 31: fn(__VA_ARGS__); fallthrough; \ 33 case 30: fn(__VA_ARGS__); fallthrough; \ 34 case 29: fn(__VA_ARGS__); fallthrough; \ 35 case 28: fn(__VA_ARGS__); fallthrough; \ 36 case 27: fn(__VA_ARGS__); fallthrough; \ 37 case 26: fn(__VA_ARGS__); fallthrough; \ 38 case 25: fn(__VA_ARGS__); fallthrough; \ 39 case 24: fn(__VA_ARGS__); fallthrough; \ [all …]
|
/kernel/linux/linux-5.10/arch/um/include/shared/ |
D | init.h | 71 #define __uml_exitcall(fn) \ argument 72 static exitcall_t __uml_exitcall_##fn __uml_exit_call = fn 76 #define __uml_postsetup(fn) \ argument 77 static initcall_t __uml_postsetup_##fn __uml_postsetup_call = fn 86 #define __uml_setup(str, fn, help...) \ argument 87 __non_empty_string(fn ##_setup, str); \ 88 __uml_help(fn, help); \ 89 static char __uml_setup_str_##fn[] __initdata = str; \ 90 static struct uml_param __uml_setup_##fn __uml_init_setup = { __uml_setup_str_##fn, fn } 92 #define __uml_setup(str, fn, help...) \ argument [all …]
|
/kernel/linux/linux-5.10/drivers/input/rmi4/ |
D | rmi_f03.c | 29 struct rmi_function *fn; member 40 int rmi_f03_overwrite_button(struct rmi_function *fn, unsigned int button, in rmi_f03_overwrite_button() argument 43 struct f03_data *f03 = dev_get_drvdata(&fn->dev); in rmi_f03_overwrite_button() 59 void rmi_f03_commit_buttons(struct rmi_function *fn) in rmi_f03_commit_buttons() argument 61 struct f03_data *f03 = dev_get_drvdata(&fn->dev); in rmi_f03_commit_buttons() 79 rmi_dbg(RMI_DEBUG_FN, &f03->fn->dev, in rmi_f03_pt_write() 83 error = rmi_write(f03->fn->rmi_dev, f03->fn->fd.data_base_addr, val); in rmi_f03_pt_write() 85 dev_err(&f03->fn->dev, in rmi_f03_pt_write() 96 struct rmi_function *fn = f03->fn; in rmi_f03_initialize() local 97 struct device *dev = &fn->dev; in rmi_f03_initialize() [all …]
|
D | rmi_bus.c | 131 struct rmi_function *fn = to_rmi_function(dev); in rmi_release_function() local 133 kfree(fn); in rmi_release_function() 149 struct rmi_function *fn = to_rmi_function(dev); in rmi_function_match() local 151 return fn->fd.function_number == handler->func; in rmi_function_match() 155 static void rmi_function_of_probe(struct rmi_function *fn) in rmi_function_of_probe() argument 158 struct device_node *node = fn->rmi_dev->xport->dev->of_node; in rmi_function_of_probe() 161 fn->fd.function_number); in rmi_function_of_probe() 162 fn->dev.of_node = of_get_child_by_name(node, of_name); in rmi_function_of_probe() 165 static inline void rmi_function_of_probe(struct rmi_function *fn) in rmi_function_of_probe() argument 173 static int rmi_create_function_irq(struct rmi_function *fn, in rmi_create_function_irq() argument [all …]
|
D | rmi_f3a.c | 38 static void rmi_f3a_report_button(struct rmi_function *fn, in rmi_f3a_report_button() argument 49 rmi_dbg(RMI_DEBUG_FN, &fn->dev, in rmi_f3a_report_button() 58 struct rmi_function *fn = ctx; in rmi_f3a_attention() local 59 struct f3a_data *f3a = dev_get_drvdata(&fn->dev); in rmi_f3a_attention() 60 struct rmi_driver_data *drvdata = dev_get_drvdata(&fn->rmi_dev->dev); in rmi_f3a_attention() 66 dev_warn(&fn->dev, in rmi_f3a_attention() 75 error = rmi_read_block(fn->rmi_dev, fn->fd.data_base_addr, in rmi_f3a_attention() 78 dev_err(&fn->dev, in rmi_f3a_attention() 87 rmi_f3a_report_button(fn, f3a, i); in rmi_f3a_attention() 94 static int rmi_f3a_config(struct rmi_function *fn) in rmi_f3a_config() argument [all …]
|
D | rmi_f34.c | 18 struct rmi_function *fn = f34->fn; in rmi_f34_write_bootloader_id() local 19 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f34_write_bootloader_id() 23 ret = rmi_read_block(rmi_dev, fn->fd.query_base_addr, in rmi_f34_write_bootloader_id() 26 dev_err(&fn->dev, "%s: Reading bootloader ID failed: %d\n", in rmi_f34_write_bootloader_id() 31 rmi_dbg(RMI_DEBUG_FN, &fn->dev, "%s: writing bootloader id '%c%c'\n", in rmi_f34_write_bootloader_id() 35 fn->fd.data_base_addr + F34_BLOCK_DATA_OFFSET, in rmi_f34_write_bootloader_id() 38 dev_err(&fn->dev, "Failed to write bootloader ID: %d\n", ret); in rmi_f34_write_bootloader_id() 48 struct rmi_function *fn = f34->fn; in rmi_f34_command() local 49 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f34_command() 62 dev_err(&f34->fn->dev, in rmi_f34_command() [all …]
|
D | rmi_f30.c | 84 static int rmi_f30_read_control_parameters(struct rmi_function *fn, in rmi_f30_read_control_parameters() argument 89 error = rmi_read_block(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f30_read_control_parameters() 92 dev_err(&fn->dev, in rmi_f30_read_control_parameters() 94 __func__, fn->fd.control_base_addr, error); in rmi_f30_read_control_parameters() 101 static void rmi_f30_report_button(struct rmi_function *fn, in rmi_f30_report_button() argument 114 rmi_dbg(RMI_DEBUG_FN, &fn->dev, in rmi_f30_report_button() 124 struct rmi_function *fn = ctx; in rmi_f30_attention() local 125 struct f30_data *f30 = dev_get_drvdata(&fn->dev); in rmi_f30_attention() 126 struct rmi_driver_data *drvdata = dev_get_drvdata(&fn->rmi_dev->dev); in rmi_f30_attention() 133 dev_warn(&fn->dev, in rmi_f30_attention() [all …]
|
D | rmi_f01.c | 254 const char *rmi_f01_get_product_ID(struct rmi_function *fn) in rmi_f01_get_product_ID() argument 256 struct f01_data *f01 = dev_get_drvdata(&fn->dev); in rmi_f01_get_product_ID() 382 static int rmi_f01_probe(struct rmi_function *fn) in rmi_f01_probe() argument 384 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f01_probe() 389 u16 ctrl_base_addr = fn->fd.control_base_addr; in rmi_f01_probe() 393 if (fn->dev.of_node) { in rmi_f01_probe() 394 error = rmi_f01_of_probe(&fn->dev, pdata); in rmi_f01_probe() 399 f01 = devm_kzalloc(&fn->dev, sizeof(struct f01_data), GFP_KERNEL); in rmi_f01_probe() 410 error = rmi_read(rmi_dev, fn->fd.control_base_addr, in rmi_f01_probe() 413 dev_err(&fn->dev, "Failed to read F01 control: %d\n", error); in rmi_f01_probe() [all …]
|
D | rmi_f55.c | 27 struct rmi_function *fn; member 36 static int rmi_f55_detect(struct rmi_function *fn) in rmi_f55_detect() argument 38 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f55_detect() 43 f55 = dev_get_drvdata(&fn->dev); in rmi_f55_detect() 45 error = rmi_read_block(fn->rmi_dev, fn->fd.query_base_addr, in rmi_f55_detect() 48 dev_err(&fn->dev, "%s: Failed to query F55 properties\n", in rmi_f55_detect() 73 error = rmi_read_block(fn->rmi_dev, in rmi_f55_detect() 74 fn->fd.control_base_addr + 1, in rmi_f55_detect() 86 error = rmi_read_block(fn->rmi_dev, in rmi_f55_detect() 87 fn->fd.control_base_addr + 2, in rmi_f55_detect() [all …]
|
D | rmi_f54.c | 91 struct rmi_function *fn; member 171 static int rmi_f54_request_report(struct rmi_function *fn, u8 report_type) in rmi_f54_request_report() argument 173 struct f54_data *f54 = dev_get_drvdata(&fn->dev); in rmi_f54_request_report() 174 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f54_request_report() 179 error = rmi_write(rmi_dev, f54->fn->fd.data_base_addr, in rmi_f54_request_report() 195 error = rmi_write(rmi_dev, fn->fd.command_base_addr, F54_GET_REPORT); in rmi_f54_request_report() 214 struct rmi_device *rmi_dev = f54->fn->rmi_dev; in rmi_f54_get_report_size() 315 ret = rmi_f54_request_report(f54->fn, reptype); in rmi_f54_buffer_queue() 317 dev_err(&f54->fn->dev, "Error requesting F54 report\n"); in rmi_f54_buffer_queue() 329 dev_err(&f54->fn->dev, "Timed out\n"); in rmi_f54_buffer_queue() [all …]
|
D | rmi_f12.c | 67 struct rmi_function *fn = sensor->fn; in rmi_f12_read_sensor_tuning() local 68 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_read_sensor_tuning() 79 dev_err(&fn->dev, in rmi_f12_read_sensor_tuning() 87 dev_err(&fn->dev, in rmi_f12_read_sensor_tuning() 93 ret = rmi_read_block(rmi_dev, fn->fd.control_base_addr + offset, buf, in rmi_f12_read_sensor_tuning() 105 rmi_dbg(RMI_DEBUG_FN, &fn->dev, "%s: max_x: %d max_y: %d\n", __func__, in rmi_f12_read_sensor_tuning() 116 rmi_dbg(RMI_DEBUG_FN, &fn->dev, in rmi_f12_read_sensor_tuning() 138 rmi_dbg(RMI_DEBUG_FN, &fn->dev, "%s: x_mm: %d y_mm: %d\n", __func__, in rmi_f12_read_sensor_tuning() 201 struct rmi_function *fn = ctx; in rmi_f12_attention() local 202 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_attention() [all …]
|
D | rmi_f34v7.c | 27 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_flash_status() 28 f34->fn->fd.data_base_addr + f34->v7.off.flash_status, in rmi_f34v7_read_flash_status() 32 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, in rmi_f34v7_read_flash_status() 41 dev_err(&f34->fn->dev, "%s: status=%d, command=0x%02x\n", in rmi_f34v7_read_flash_status() 45 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_flash_status() 46 f34->fn->fd.data_base_addr + f34->v7.off.flash_cmd, in rmi_f34v7_read_flash_status() 50 dev_err(&f34->fn->dev, "%s: Failed to read flash command\n", in rmi_f34v7_read_flash_status() 67 dev_warn(&f34->fn->dev, "%s: Timed out waiting for idle status\n", in rmi_f34v7_wait_for_idle() 82 base = f34->fn->fd.data_base_addr; in rmi_f34v7_write_command_single_transaction() 124 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_command_single_transaction() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
D | machdep.h | 275 #define __define_machine_initcall(mach, fn, id) \ argument 276 static int __init __machine_initcall_##mach##_##fn(void) { \ 277 if (machine_is(mach)) return fn(); \ 280 __define_initcall(__machine_initcall_##mach##_##fn, id); 282 #define machine_early_initcall(mach, fn) __define_machine_initcall(mach, fn, early) argument 283 #define machine_core_initcall(mach, fn) __define_machine_initcall(mach, fn, 1) argument 284 #define machine_core_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 1s) argument 285 #define machine_postcore_initcall(mach, fn) __define_machine_initcall(mach, fn, 2) argument 286 #define machine_postcore_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 2s) argument 287 #define machine_arch_initcall(mach, fn) __define_machine_initcall(mach, fn, 3) argument [all …]
|
D | kasan.h | 6 #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
|
/kernel/linux/linux-5.10/drivers/pci/controller/cadence/ |
D | pcie-cadence-ep.c | 19 static int cdns_pcie_ep_write_header(struct pci_epc *epc, u8 fn, in cdns_pcie_ep_write_header() argument 25 cdns_pcie_ep_fn_writew(pcie, fn, PCI_DEVICE_ID, hdr->deviceid); in cdns_pcie_ep_write_header() 26 cdns_pcie_ep_fn_writeb(pcie, fn, PCI_REVISION_ID, hdr->revid); in cdns_pcie_ep_write_header() 27 cdns_pcie_ep_fn_writeb(pcie, fn, PCI_CLASS_PROG, hdr->progif_code); in cdns_pcie_ep_write_header() 28 cdns_pcie_ep_fn_writew(pcie, fn, PCI_CLASS_DEVICE, in cdns_pcie_ep_write_header() 30 cdns_pcie_ep_fn_writeb(pcie, fn, PCI_CACHE_LINE_SIZE, in cdns_pcie_ep_write_header() 32 cdns_pcie_ep_fn_writew(pcie, fn, PCI_SUBSYSTEM_ID, hdr->subsys_id); in cdns_pcie_ep_write_header() 33 cdns_pcie_ep_fn_writeb(pcie, fn, PCI_INTERRUPT_PIN, hdr->interrupt_pin); in cdns_pcie_ep_write_header() 39 if (fn == 0) { in cdns_pcie_ep_write_header() 50 static int cdns_pcie_ep_set_bar(struct pci_epc *epc, u8 fn, in cdns_pcie_ep_set_bar() argument [all …]
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | ip6_fib.c | 57 struct fib6_node *fn); 60 struct fib6_node *fn); 108 struct fib6_node *fn; in fib6_update_sernum() local 110 fn = rcu_dereference_protected(f6i->fib6_node, in fib6_update_sernum() 112 if (fn) in fib6_update_sernum() 113 WRITE_ONCE(fn->fn_sernum, fib6_new_sernum(net)); in fib6_update_sernum() 183 struct fib6_node *fn; in node_alloc() local 185 fn = kmem_cache_zalloc(fib6_node_kmem, GFP_ATOMIC); in node_alloc() 186 if (fn) in node_alloc() 189 return fn; in node_alloc() [all …]
|
/kernel/linux/linux-5.10/drivers/pci/controller/ |
D | pcie-rockchip-ep.c | 70 static void rockchip_pcie_prog_ep_ob_atu(struct rockchip_pcie *rockchip, u8 fn, in rockchip_pcie_prog_ep_ob_atu() argument 88 desc0 = ROCKCHIP_PCIE_AT_OB_REGION_DESC0_DEVFN(fn) | type; in rockchip_pcie_prog_ep_ob_atu() 125 static int rockchip_pcie_ep_write_header(struct pci_epc *epc, u8 fn, in rockchip_pcie_ep_write_header() argument 132 if (fn == 0) { in rockchip_pcie_ep_write_header() 141 ROCKCHIP_PCIE_EP_FUNC_BASE(fn) + PCI_VENDOR_ID); in rockchip_pcie_ep_write_header() 148 ROCKCHIP_PCIE_EP_FUNC_BASE(fn) + PCI_REVISION_ID); in rockchip_pcie_ep_write_header() 150 ROCKCHIP_PCIE_EP_FUNC_BASE(fn) + in rockchip_pcie_ep_write_header() 153 ROCKCHIP_PCIE_EP_FUNC_BASE(fn) + in rockchip_pcie_ep_write_header() 156 ROCKCHIP_PCIE_EP_FUNC_BASE(fn) + in rockchip_pcie_ep_write_header() 162 static int rockchip_pcie_ep_set_bar(struct pci_epc *epc, u8 fn, in rockchip_pcie_ep_set_bar() argument [all …]
|
/kernel/linux/linux-5.10/kernel/ |
D | stop_machine.c | 123 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu() argument 126 struct cpu_stop_work work = { .fn = fn, .arg = arg, .done = &done }; in stop_one_cpu() 155 cpu_stop_fn_t fn; member 224 err = msdata->fn(msdata->data); in multi_cpu_stop() 318 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg) in stop_two_cpus() argument 325 .fn = fn, in stop_two_cpus() 332 .fn = multi_cpu_stop, in stop_two_cpus() 367 bool stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait() argument 370 *work_buf = (struct cpu_stop_work){ .fn = fn, .arg = arg, }; in stop_one_cpu_nowait() 375 cpu_stop_fn_t fn, void *arg, in queue_stop_cpus_work() argument [all …]
|