/linux/drivers/gpu/drm/amd/display/dc/inc/ |
H A D | reg_helper.h | 60 #define FN(reg_name, field) \ macro 65 FN(reg_name, field), val) 69 FN(reg, f1), v1,\ 70 FN(reg, f2), v2) 74 FN(reg, f1), v1,\ 75 FN(reg, f2), v2,\ 76 FN(reg, f3), v3) 80 FN(reg, f1), v1,\ 81 FN(reg, f2), v2,\ 82 FN(reg, f3), v3,\ [all …]
|
/linux/drivers/pinctrl/renesas/ |
H A D | sh_pfc.h | 359 * - fn: Function name, referring to a field in the IPSR 361 #define PINMUX_IPSR_NOGP(ipsr, fn) \ argument 362 PINMUX_DATA(fn##_MARK, FN_##fn) 369 * - fn: Function name, also referring to the IPSR field 371 #define PINMUX_IPSR_GPSR(ipsr, fn) \ argument 372 PINMUX_DATA(fn##_MARK, FN_##fn, FN_##ipsr) 379 * - fn: Function name, also referring to the IPSR field 382 #define PINMUX_IPSR_NOGM(ipsr, fn, msel) \ argument 383 PINMUX_DATA(fn##_MARK, FN_##fn, FN_##msel) 390 * - fn: Function name, also referring to the GPSR field [all …]
|
/linux/drivers/misc/ocxl/ |
H A 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 …]
|
/linux/include/net/ |
H A D | dropreason-core.h | 6 #define DEFINE_DROP_REASON(FN, FNe) \ argument 7 FN(NOT_SPECIFIED) \ 8 FN(NO_SOCKET) \ 9 FN(PKT_TOO_SMALL) \ 10 FN(TCP_CSUM) \ 11 FN(SOCKET_FILTER) \ 12 FN(UDP_CSUM) \ 13 FN(NETFILTER_DROP) \ 14 FN(OTHERHOST) \ 15 FN(IP_CSUM) \ [all …]
|
H A D | rstreason.h | 8 #define DEFINE_RST_REASON(FN, FNe) \ argument 9 FN(NOT_SPECIFIED) \ 10 FN(NO_SOCKET) \ 11 FN(TCP_INVALID_ACK_SEQUENCE) \ 12 FN(TCP_RFC7323_PAWS) \ 13 FN(TCP_TOO_OLD_ACK) \ 14 FN(TCP_ACK_UNSENT_DATA) \ 15 FN(TCP_FLAGS) \ 16 FN(TCP_OLD_ACK) \ 17 FN(TCP_ABORT_ON_DATA) \ [all …]
|
/linux/include/linux/ |
H A D | init.h | 142 extern int do_one_initcall(initcall_t fn); 207 /* Format: <modname>__<counter>_<line>_<fn> */ 208 #define __initcall_id(fn) \ argument 214 __PASTE(_, fn)))))) 239 #define __initcall_stub(fn, __iid, id) \ argument 242 #define __define_initcall_stub(__stub, fn) \ argument 246 return fn(); \ 253 #define __initcall_stub(fn, __iid, id) fn argument 255 #define __define_initcall_stub(__stub, fn) \ argument 256 __ADDRESSABLE(fn) [all …]
|
H A D | stop_machine.h | 26 cpu_stop_fn_t fn; member 32 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg); 33 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg); 34 bool stop_one_cpu_nowait(unsigned int cpu, 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 77 work_buf->fn = fn; in stop_one_cpu_nowait() [all …]
|
/linux/arch/mips/include/asm/ |
H A 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 …]
|
/linux/drivers/input/rmi4/ |
H A 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 …]
|
H A D | rmi_bus.c | 132 struct rmi_function *fn = to_rmi_function(dev); in rmi_release_function() local 134 kfree(fn); in rmi_release_function() 150 struct rmi_function *fn = to_rmi_function(dev); in rmi_function_match() local 152 return fn->fd.function_number == handler->func; in rmi_function_match() 156 static void rmi_function_of_probe(struct rmi_function *fn) in rmi_function_of_probe() argument 159 struct device_node *node = fn->rmi_dev->xport->dev->of_node; in rmi_function_of_probe() 162 fn->fd.function_number); in rmi_function_of_probe() 163 fn->dev.of_node = of_get_child_by_name(node, of_name); in rmi_function_of_probe() 166 static inline void rmi_function_of_probe(struct rmi_function *fn) in rmi_function_of_probe() argument 174 static int rmi_create_function_irq(struct rmi_function *fn, in rmi_create_function_irq() argument [all …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 + V7_FLASH_STATUS_OFFSET, 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 + V7_COMMAND_OFFSET, 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() 100 base = f34->fn->fd.data_base_addr; in rmi_f34v7_write_command_single_transaction() 142 ret = rmi_write_block(f34->fn->rmi_dev, in rmi_f34v7_write_command_single_transaction() [all …]
|
H A D | rmi_f01.c | 256 const char *rmi_f01_get_product_ID(struct rmi_function *fn) in rmi_f01_get_product_ID() argument 258 struct f01_data *f01 = dev_get_drvdata(&fn->dev); in rmi_f01_get_product_ID() 383 static int rmi_f01_probe(struct rmi_function *fn) in rmi_f01_probe() argument 385 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f01_probe() 390 u16 ctrl_base_addr = fn->fd.control_base_addr; in rmi_f01_probe() 394 if (fn->dev.of_node) { in rmi_f01_probe() 395 error = rmi_f01_of_probe(&fn->dev, pdata); in rmi_f01_probe() 400 f01 = devm_kzalloc(&fn->dev, sizeof(struct f01_data), GFP_KERNEL); in rmi_f01_probe() 411 error = rmi_read(rmi_dev, fn->fd.control_base_addr, in rmi_f01_probe() 414 dev_err(&fn->dev, "Failed to read F01 control: %d\n", error); in rmi_f01_probe() [all …]
|
H A D | rmi_f12.c | 68 struct rmi_function *fn = sensor->fn; in rmi_f12_read_sensor_tuning() local 69 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_read_sensor_tuning() 82 dev_err(&fn->dev, in rmi_f12_read_sensor_tuning() 90 dev_err(&fn->dev, in rmi_f12_read_sensor_tuning() 96 ret = rmi_read_block(rmi_dev, fn->fd.control_base_addr + offset, buf, in rmi_f12_read_sensor_tuning() 108 rmi_dbg(RMI_DEBUG_FN, &fn->dev, "%s: max_x: %d max_y: %d\n", __func__, in rmi_f12_read_sensor_tuning() 119 rmi_dbg(RMI_DEBUG_FN, &fn->dev, in rmi_f12_read_sensor_tuning() 136 query_dpm_addr = fn->fd.query_base_addr + offset; in rmi_f12_read_sensor_tuning() 137 ret = rmi_read(fn->rmi_dev, query_dpm_addr, buf); in rmi_f12_read_sensor_tuning() 139 dev_err(&fn->dev, "Failed to read DPM value: %d\n", ret); in rmi_f12_read_sensor_tuning() [all …]
|
H A 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 …]
|
H A D | rmi_f54.c | 97 struct rmi_function *fn; member 177 static int rmi_f54_request_report(struct rmi_function *fn, u8 report_type) in rmi_f54_request_report() argument 179 struct f54_data *f54 = dev_get_drvdata(&fn->dev); in rmi_f54_request_report() 180 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f54_request_report() 185 error = rmi_write(rmi_dev, f54->fn->fd.data_base_addr, in rmi_f54_request_report() 201 error = rmi_write(rmi_dev, fn->fd.command_base_addr, F54_GET_REPORT); in rmi_f54_request_report() 220 struct rmi_device *rmi_dev = f54->fn->rmi_dev; in rmi_f54_get_report_size() 321 ret = rmi_f54_request_report(f54->fn, reptype); in rmi_f54_buffer_queue() 323 dev_err(&f54->fn->dev, "Error requesting F54 report\n"); in rmi_f54_buffer_queue() 335 dev_err(&f54->fn->dev, "Timed out\n"); in rmi_f54_buffer_queue() [all …]
|
/linux/arch/um/include/shared/ |
H A 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 …]
|
/linux/kernel/ |
H A D | stop_machine.c | 46 cpu_stop_fn_t fn; member 63 printk("%sStopper: %pS <- %pS\n", log_lvl, stopper->fn, (void *)stopper->caller); in print_stop_info() 118 * @fn: function to execute 119 * @arg: argument to @fn 121 * Execute @fn(@arg) on @cpu. @fn is run in a process context with 126 * This function doesn't guarantee @cpu stays online till @fn 128 * partially or fully on different cpus. @fn should either be ready 136 * -ENOENT if @fn(@arg) was not executed because @cpu was offline; 137 * otherwise, the return value of @fn. 139 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu() argument [all …]
|
/linux/net/ipv6/ |
H A D | ip6_fib.c | 59 struct fib6_node *fn); 62 struct fib6_node *fn); 109 struct fib6_node *fn; in fib6_update_sernum() local 111 fn = rcu_dereference_protected(f6i->fib6_node, in fib6_update_sernum() 113 if (fn) in fib6_update_sernum() 114 WRITE_ONCE(fn->fn_sernum, fib6_new_sernum(net)); in fib6_update_sernum() 186 struct fib6_node *fn; in node_alloc() local 188 fn = kmem_cache_zalloc(fib6_node_kmem, GFP_ATOMIC); in node_alloc() 189 if (fn) in node_alloc() 192 return fn; in node_alloc() [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | machdep.h | 243 #define __define_machine_initcall(mach, fn, id) \ argument 244 static int __init __machine_initcall_##mach##_##fn(void) { \ 245 if (machine_is(mach)) return fn(); \ 248 __define_initcall(__machine_initcall_##mach##_##fn, id); 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 [all …]
|
/linux/drivers/gpu/drm/amd/display/dmub/src/ |
H A D | dmub_reg.h | 47 #define FN(reg_name, field) FD(reg_name##__##field) macro 63 FN(reg_name, field), val) 67 FN(reg, f1), v1, \ 68 FN(reg, f2), v2) 72 FN(reg, f1), v1, \ 73 FN(reg, f2), v2, \ 74 FN(reg, f3), v3) 78 FN(reg, f1), v1, \ 79 FN(reg, f2), v2, \ 80 FN(reg, f3), v3, \ [all …]
|
/linux/include/trace/events/ |
H A D | maple_tree.h | 15 TP_PROTO(const char *fn, struct ma_state *mas), 17 TP_ARGS(fn, mas), 20 __field(const char *, fn) 29 __entry->fn = fn; 38 __entry->fn, 48 TP_PROTO(const char *fn, struct ma_state *mas), 50 TP_ARGS(fn, mas), 53 __field(const char *, fn) 62 __entry->fn = fn; 71 __entry->fn, [all …]
|
/linux/arch/arm/nwfpe/ |
H A D | fpa11_cpdt.c | 19 static inline void loadSingle(const unsigned int Fn, const unsigned int __user *pMem) in loadSingle() argument 22 fpa11->fType[Fn] = typeSingle; in loadSingle() 23 get_user(fpa11->fpreg[Fn].fSingle, pMem); in loadSingle() 26 static inline void loadDouble(const unsigned int Fn, const unsigned int __user *pMem) in loadDouble() argument 30 p = (unsigned int *) &fpa11->fpreg[Fn].fDouble; in loadDouble() 31 fpa11->fType[Fn] = typeDouble; in loadDouble() 42 static inline void loadExtended(const unsigned int Fn, const unsigned int __user *pMem) in loadExtended() argument 46 p = (unsigned int *) &fpa11->fpreg[Fn].fExtended; in loadExtended() 47 fpa11->fType[Fn] = typeExtended; in loadExtended() 59 static inline void loadMultiple(const unsigned int Fn, const unsigned int __user *pMem) in loadMultiple() argument [all …]
|