| /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(SOCKET_CLOSE) \ 10 FN(SOCKET_FILTER) \ 11 FN(SOCKET_RCVBUFF) \ 12 FN(UNIX_DISCONNECT) \ 13 FN(UNIX_SKIP_OOB) \ 14 FN(PKT_TOO_SMALL) \ 15 FN(TCP_CSU [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_DAT [all...] |
| /linux/include/linux/ |
| H A D | init.h | 136 extern int do_one_initcall(initcall_t fn); 201 /* Format: <modname>__<counter>_<line>_<fn> */ 202 #define __initcall_id(fn) \ argument 208 __PASTE(_, fn)))))) 233 #define __initcall_stub(fn, __iid, id) \ argument 236 #define __define_initcall_stub(__stub, fn) \ argument 240 return fn(); \ 247 #define __initcall_stub(fn, __iid, id) fn argument 249 #define __define_initcall_stub(__stub, fn) \ argument 250 __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_f34.c | 19 struct rmi_function *fn = f34->fn; in rmi_f34_write_bootloader_id() local 20 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f34_write_bootloader_id() 24 ret = rmi_read_block(rmi_dev, fn->fd.query_base_addr, in rmi_f34_write_bootloader_id() 27 dev_err(&fn->dev, "%s: Reading bootloader ID failed: %d\n", in rmi_f34_write_bootloader_id() 32 rmi_dbg(RMI_DEBUG_FN, &fn->dev, "%s: writing bootloader id '%c%c'\n", in rmi_f34_write_bootloader_id() 36 fn->fd.data_base_addr + F34_BLOCK_DATA_OFFSET, in rmi_f34_write_bootloader_id() 39 dev_err(&fn->dev, "Failed to write bootloader ID: %d\n", ret); in rmi_f34_write_bootloader_id() 49 struct rmi_function *fn = f34->fn; in rmi_f34_command() local 50 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f34_command() 63 dev_err(&f34->fn->dev, in rmi_f34_command() [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_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_f21.c | 43 struct rmi_function *fn = ctx; in rmi_f21_attention() local 44 struct f21_data *f21 = dev_get_drvdata(&fn->dev); in rmi_f21_attention() 45 struct rmi_driver_data *drvdata = dev_get_drvdata(&fn->rmi_dev->dev); in rmi_f21_attention() 52 dev_warn(&fn->dev, "f21 interrupt, but data is missing\n"); in rmi_f21_attention() 61 error = rmi_read_block(fn->rmi_dev, fn->fd.data_base_addr, in rmi_f21_attention() 64 dev_err(&fn->dev, "failed to read f21 data registers: %d\n", in rmi_f21_attention() 78 static int rmi_f21_config(struct rmi_function *fn) in rmi_f21_config() argument 80 struct rmi_driver *drv = fn->rmi_dev->driver; in rmi_f21_config() 82 drv->set_irq_bits(fn->rmi_dev, fn->irq_mask); in rmi_f21_config() 87 static int rmi_f21_initialize(struct rmi_function *fn, struct f21_data *f21) in rmi_f21_initialize() argument [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_f1a.c | 17 static int rmi_f1a_parse_device_properties(struct rmi_function *fn, struct f1a_data *f1a) in rmi_f1a_parse_device_properties() argument 20 struct device *dev = &fn->dev; in rmi_f1a_parse_device_properties() 57 struct rmi_function *fn = ctx; in rmi_f1a_attention() local 58 struct f1a_data *f1a = dev_get_drvdata(&fn->dev); in rmi_f1a_attention() 63 error = rmi_read_block(fn->rmi_dev, fn->fd.data_base_addr, in rmi_f1a_attention() 66 dev_err(&fn->dev, "Failed to read object data. Code: %d.\n", in rmi_f1a_attention() 78 static int rmi_f1a_config(struct rmi_function *fn) in rmi_f1a_config() argument 80 struct f1a_data *f1a = dev_get_drvdata(&fn->dev); in rmi_f1a_config() 81 struct rmi_driver *drv = fn->rmi_dev->driver; in rmi_f1a_config() 84 drv->set_irq_bits(fn->rmi_dev, fn->irq_mask); in rmi_f1a_config() [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 …]
|
| /linux/drivers/pci/controller/cadence/ |
| H A D | pcie-cadence-ep.c | 22 static u8 cdns_pcie_get_fn_from_vfn(struct cdns_pcie *pcie, u8 fn, u8 vfn) in cdns_pcie_get_fn_from_vfn() argument 28 return fn; in cdns_pcie_get_fn_from_vfn() 31 first_vf_offset = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_SRIOV_VF_OFFSET); in cdns_pcie_get_fn_from_vfn() 32 stride = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_SRIOV_VF_STRIDE); in cdns_pcie_get_fn_from_vfn() 33 fn = fn + first_vf_offset + ((vfn - 1) * stride); in cdns_pcie_get_fn_from_vfn() 35 return fn; in cdns_pcie_get_fn_from_vfn() 38 static int cdns_pcie_ep_write_header(struct pci_epc *epc, u8 fn, u8 vfn, in cdns_pcie_ep_write_header() argument 52 cdns_pcie_ep_fn_writew(pcie, fn, reg, hdr->deviceid); in cdns_pcie_ep_write_header() 56 cdns_pcie_ep_fn_writew(pcie, fn, PCI_DEVICE_ID, hdr->deviceid); in cdns_pcie_ep_write_header() 57 cdns_pcie_ep_fn_writeb(pcie, fn, PCI_REVISION_ID, hdr->revid); in cdns_pcie_ep_write_header() [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() 116 * @fn: function to execute 117 * @arg: argument to @fn 119 * Execute @fn(@arg) on @cpu. @fn is run in a process context with 124 * This function doesn't guarantee @cpu stays online till @fn 126 * partially or fully on different cpus. @fn should either be ready 134 * -ENOENT if @fn(@arg) was not executed because @cpu was offline; 135 * otherwise, the return value of @fn. 137 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/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/rust/kernel/ |
| H A D | cpufreq.rs | 90 fn new(val: u32) -> Result<Self> { in new() 104 fn from(rel: Relation) -> Self { in from() 140 pub unsafe fn from_raw_mut<'a>(ptr: *mut bindings::cpufreq_policy_data) -> &'a mut Self { in from_raw_mut() 150 pub fn as_raw(&self) -> *mut bindings::cpufreq_policy_data { in as_raw() 157 pub fn generic_verify(&self) -> Result { in generic_verify() 180 pub unsafe fn new(index: usize) -> Self { in new() 188 fn from(index: TableIndex) -> Self { in from() 211 /// fn show_freq(policy: &Policy) -> Result { 234 pub unsafe fn from_raw<'a>(ptr: *const bindings::cpufreq_frequency_table) -> &'a Self { in from_raw() 244 pub fn as_raw(&self) -> *mut bindings::cpufreq_frequency_table { in as_raw() [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 …]
|