| /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_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_DAT [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 | 133 struct rmi_function *fn = to_rmi_function(dev); in rmi_release_function() local 135 kfree(fn); in rmi_release_function() 151 struct rmi_function *fn = to_rmi_function(dev); in rmi_function_match() local 153 return fn->fd.function_number == handler->func; in rmi_function_match() 157 static void rmi_function_of_probe(struct rmi_function *fn) in rmi_function_of_probe() argument 160 struct device_node *node = fn->rmi_dev->xport->dev->of_node; in rmi_function_of_probe() 163 fn->fd.function_number); in rmi_function_of_probe() 164 fn->dev.of_node = of_get_child_by_name(node, of_name); in rmi_function_of_probe() 167 static inline void rmi_function_of_probe(struct rmi_function *fn) in rmi_function_of_probe() argument 175 static int rmi_create_function_irq(struct rmi_function *fn, in rmi_create_function_irq() argument [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_f12.c | 64 static int rmi_f12_read_register_descs(struct rmi_function *fn, in rmi_f12_read_register_descs() argument 75 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_read_register_descs() 83 dev_err(&fn->dev, in rmi_f12_read_register_descs() 98 struct rmi_function *fn = sensor->fn; in rmi_f12_read_sensor_tuning() local 99 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_read_sensor_tuning() 112 dev_err(&fn->dev, in rmi_f12_read_sensor_tuning() 120 dev_err(&fn->dev, in rmi_f12_read_sensor_tuning() 126 ret = rmi_read_block(rmi_dev, fn->fd.control_base_addr + offset, in rmi_f12_read_sensor_tuning() 138 rmi_dbg(RMI_DEBUG_FN, &fn->dev, "%s: max_x: %d max_y: %d\n", __func__, in rmi_f12_read_sensor_tuning() 149 rmi_dbg(RMI_DEBUG_FN, &fn->dev, in rmi_f12_read_sensor_tuning() [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_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_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_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/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/rust/quote/ |
| H A D | to_tokens.rs | 32 /// fn to_tokens(&self, tokens: &mut TokenStream) { 47 /// # fn to_tokens(&self, tokens: &mut TokenStream) { 52 fn to_tokens(&self, tokens: &mut TokenStream); in to_tokens() 58 fn to_token_stream(&self) -> TokenStream { in to_token_stream() 68 fn into_token_stream(self) -> TokenStream in into_token_stream() 77 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 83 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 89 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 95 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 101 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() [all …]
|
| /linux/arch/powerpc/include/asm/ |
| H A D | machdep.h | 247 #define __define_machine_initcall(mach, fn, id) \ argument 248 static int __init __machine_initcall_##mach##_##fn(void) { \ 249 if (machine_is(mach)) return fn(); \ 252 __define_initcall(__machine_initcall_##mach##_##fn, id); 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 [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/rust/proc-macro2/ |
| H A D | fallback.rs | 35 pub fn force() { in force() 42 pub fn unforce() { in unforce() 58 pub(crate) fn span(&self) -> Span { in span() 62 pub(crate) fn call_site() -> Self { in call_site() 70 pub(crate) fn new() -> Self { in new() 76 pub(crate) fn from_str_checked(src: &str) -> Result<Self, LexError> { in from_str_checked() 90 pub(crate) fn from_str_unchecked(src: &str) -> Self { in from_str_unchecked() 94 pub(crate) fn is_empty(&self) -> bool { in is_empty() 98 fn take_inner(self) -> RcVecBuilder<TokenTree> { in take_inner() 104 fn push_token_from_proc_macro(mut vec: RcVecMut<TokenTree>, token: TokenTree) { in push_token_from_proc_macro() [all …]
|
| H A D | rcvec.rs | 27 pub(crate) fn is_empty(&self) -> bool { in is_empty() 31 pub(crate) fn len(&self) -> usize { in len() 35 pub(crate) fn iter(&self) -> slice::Iter<T> { in iter() 39 pub(crate) fn make_mut(&mut self) -> RcVecMut<T> in make_mut() 48 pub(crate) fn get_mut(&mut self) -> Option<RcVecMut<T>> { in get_mut() 53 pub(crate) fn make_owned(mut self) -> RcVecBuilder<T> in make_owned() 67 pub(crate) fn new() -> Self { in new() 71 pub(crate) fn with_capacity(cap: usize) -> Self { in with_capacity() 77 pub(crate) fn push(&mut self, element: T) { in push() 81 pub(crate) fn extend(&mut self, iter: impl IntoIterator<Item = T>) { in extend() [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/rust/syn/gen/ |
| H A D | visit_mut.rs | 34 fn visit_abi_mut(&mut self, i: &mut crate::Abi) { in visit_abi_mut() 39 fn visit_angle_bracketed_generic_arguments_mut( in visit_angle_bracketed_generic_arguments_mut() 47 fn visit_arm_mut(&mut self, i: &mut crate::Arm) { in visit_arm_mut() 52 fn visit_assoc_const_mut(&mut self, i: &mut crate::AssocConst) { in visit_assoc_const_mut() 57 fn visit_assoc_type_mut(&mut self, i: &mut crate::AssocType) { in visit_assoc_type_mut() 62 fn visit_attr_style_mut(&mut self, i: &mut crate::AttrStyle) { in visit_attr_style_mut() 67 fn visit_attribute_mut(&mut self, i: &mut crate::Attribute) { in visit_attribute_mut() 72 fn visit_attributes_mut(&mut self, i: &mut Vec<crate::Attribute>) { in visit_attributes_mut() 79 fn visit_bare_fn_arg_mut(&mut self, i: &mut crate::BareFnArg) { in visit_bare_fn_arg_mut() 84 fn visit_bare_variadic_mut(&mut self, i: &mut crate::BareVariadic) { in visit_bare_variadic_mut() [all …]
|
| H A D | visit.rs | 33 fn visit_abi(&mut self, i: &'ast crate::Abi) { in visit_abi() 38 fn visit_angle_bracketed_generic_arguments( in visit_angle_bracketed_generic_arguments() 46 fn visit_arm(&mut self, i: &'ast crate::Arm) { in visit_arm() 51 fn visit_assoc_const(&mut self, i: &'ast crate::AssocConst) { in visit_assoc_const() 56 fn visit_assoc_type(&mut self, i: &'ast crate::AssocType) { in visit_assoc_type() 61 fn visit_attr_style(&mut self, i: &'ast crate::AttrStyle) { in visit_attr_style() 66 fn visit_attribute(&mut self, i: &'ast crate::Attribute) { in visit_attribute() 71 fn visit_bare_fn_arg(&mut self, i: &'ast crate::BareFnArg) { in visit_bare_fn_arg() 76 fn visit_bare_variadic(&mut self, i: &'ast crate::BareVariadic) { in visit_bare_variadic() 81 fn visit_bin_op(&mut self, i: &'ast crate::BinOp) { in visit_bin_op() [all …]
|