/linux-4.1.27/drivers/pinctrl/sh-pfc/ |
H A D | sh_pfc.h | 166 #define PINMUX_IPSR_NOGP(ispr, fn) \ 167 PINMUX_DATA(fn##_MARK, FN_##fn) 168 #define PINMUX_IPSR_DATA(ipsr, fn) \ 169 PINMUX_DATA(fn##_MARK, FN_##fn, FN_##ipsr) 170 #define PINMUX_IPSR_NOGM(ispr, fn, ms) \ 171 PINMUX_DATA(fn##_MARK, FN_##fn, FN_##ms) 172 #define PINMUX_IPSR_NOFN(ipsr, fn, ms) \ 173 PINMUX_DATA(fn##_MARK, FN_##ipsr, FN_##ms) 174 #define PINMUX_IPSR_MSEL(ipsr, fn, ms) \ 175 PINMUX_DATA(fn##_MARK, FN_##fn, FN_##ipsr, FN_##ms) 176 #define PINMUX_IPSR_MODSEL_DATA(ipsr, fn, ms) \ 177 PINMUX_DATA(fn##_MARK, FN_##ms, FN_##ipsr, FN_##fn) 183 #define PORT_GP_1(bank, pin, fn, sfx) fn(bank, pin, GP_##bank##_##pin, sfx) 185 #define PORT_GP_32(bank, fn, sfx) \ 186 PORT_GP_1(bank, 0, fn, sfx), PORT_GP_1(bank, 1, fn, sfx), \ 187 PORT_GP_1(bank, 2, fn, sfx), PORT_GP_1(bank, 3, fn, sfx), \ 188 PORT_GP_1(bank, 4, fn, sfx), PORT_GP_1(bank, 5, fn, sfx), \ 189 PORT_GP_1(bank, 6, fn, sfx), PORT_GP_1(bank, 7, fn, sfx), \ 190 PORT_GP_1(bank, 8, fn, sfx), PORT_GP_1(bank, 9, fn, sfx), \ 191 PORT_GP_1(bank, 10, fn, sfx), PORT_GP_1(bank, 11, fn, sfx), \ 192 PORT_GP_1(bank, 12, fn, sfx), PORT_GP_1(bank, 13, fn, sfx), \ 193 PORT_GP_1(bank, 14, fn, sfx), PORT_GP_1(bank, 15, fn, sfx), \ 194 PORT_GP_1(bank, 16, fn, sfx), PORT_GP_1(bank, 17, fn, sfx), \ 195 PORT_GP_1(bank, 18, fn, sfx), PORT_GP_1(bank, 19, fn, sfx), \ 196 PORT_GP_1(bank, 20, fn, sfx), PORT_GP_1(bank, 21, fn, sfx), \ 197 PORT_GP_1(bank, 22, fn, sfx), PORT_GP_1(bank, 23, fn, sfx), \ 198 PORT_GP_1(bank, 24, fn, sfx), PORT_GP_1(bank, 25, fn, sfx), \ 199 PORT_GP_1(bank, 26, fn, sfx), PORT_GP_1(bank, 27, fn, sfx), \ 200 PORT_GP_1(bank, 28, fn, sfx), PORT_GP_1(bank, 29, fn, sfx), \ 201 PORT_GP_1(bank, 30, fn, sfx), PORT_GP_1(bank, 31, fn, sfx) 203 #define PORT_GP_32_REV(bank, fn, sfx) \ 204 PORT_GP_1(bank, 31, fn, sfx), PORT_GP_1(bank, 30, fn, sfx), \ 205 PORT_GP_1(bank, 29, fn, sfx), PORT_GP_1(bank, 28, fn, sfx), \ 206 PORT_GP_1(bank, 27, fn, sfx), PORT_GP_1(bank, 26, fn, sfx), \ 207 PORT_GP_1(bank, 25, fn, sfx), PORT_GP_1(bank, 24, fn, sfx), \ 208 PORT_GP_1(bank, 23, fn, sfx), PORT_GP_1(bank, 22, fn, sfx), \ 209 PORT_GP_1(bank, 21, fn, sfx), PORT_GP_1(bank, 20, fn, sfx), \ 210 PORT_GP_1(bank, 19, fn, sfx), PORT_GP_1(bank, 18, fn, sfx), \ 211 PORT_GP_1(bank, 17, fn, sfx), PORT_GP_1(bank, 16, fn, sfx), \ 212 PORT_GP_1(bank, 15, fn, sfx), PORT_GP_1(bank, 14, fn, sfx), \ 213 PORT_GP_1(bank, 13, fn, sfx), PORT_GP_1(bank, 12, fn, sfx), \ 214 PORT_GP_1(bank, 11, fn, sfx), PORT_GP_1(bank, 10, fn, sfx), \ 215 PORT_GP_1(bank, 9, fn, sfx), PORT_GP_1(bank, 8, fn, sfx), \ 216 PORT_GP_1(bank, 7, fn, sfx), PORT_GP_1(bank, 6, fn, sfx), \ 217 PORT_GP_1(bank, 5, fn, sfx), PORT_GP_1(bank, 4, fn, sfx), \ 218 PORT_GP_1(bank, 3, fn, sfx), PORT_GP_1(bank, 2, fn, sfx), \ 219 PORT_GP_1(bank, 1, fn, sfx), PORT_GP_1(bank, 0, fn, sfx) 242 #define PORT_1(pn, fn, pfx, sfx) fn(pn, pfx, sfx) 244 #define PORT_10(pn, fn, pfx, sfx) \ 245 PORT_1(pn, fn, pfx##0, sfx), PORT_1(pn+1, fn, pfx##1, sfx), \ 246 PORT_1(pn+2, fn, pfx##2, sfx), PORT_1(pn+3, fn, pfx##3, sfx), \ 247 PORT_1(pn+4, fn, pfx##4, sfx), PORT_1(pn+5, fn, pfx##5, sfx), \ 248 PORT_1(pn+6, fn, pfx##6, sfx), PORT_1(pn+7, fn, pfx##7, sfx), \ 249 PORT_1(pn+8, fn, pfx##8, sfx), PORT_1(pn+9, fn, pfx##9, sfx) 251 #define PORT_90(pn, fn, pfx, sfx) \ 252 PORT_10(pn+10, fn, pfx##1, sfx), PORT_10(pn+20, fn, pfx##2, sfx), \ 253 PORT_10(pn+30, fn, pfx##3, sfx), PORT_10(pn+40, fn, pfx##4, sfx), \ 254 PORT_10(pn+50, fn, pfx##5, sfx), PORT_10(pn+60, fn, pfx##6, sfx), \ 255 PORT_10(pn+70, fn, pfx##7, sfx), PORT_10(pn+80, fn, pfx##8, sfx), \ 256 PORT_10(pn+90, fn, pfx##9, sfx)
|
H A D | pfc-r8a73a4.c | 31 #define CPU_ALL_PORT(fn, pfx, sfx) \ 33 PORT_10(0, fn, pfx, sfx), \ 34 PORT_10(10, fn, pfx##1, sfx), \ 35 PORT_10(20, fn, pfx##2, sfx), \ 36 PORT_1(30, fn, pfx##30, sfx), \ 38 PORT_1(32, fn, pfx##32, sfx), PORT_1(33, fn, pfx##33, sfx), \ 39 PORT_1(34, fn, pfx##34, sfx), PORT_1(35, fn, pfx##35, sfx), \ 40 PORT_1(36, fn, pfx##36, sfx), PORT_1(37, fn, pfx##37, sfx), \ 41 PORT_1(38, fn, pfx##38, sfx), PORT_1(39, fn, pfx##39, sfx), \ 42 PORT_1(40, fn, pfx##40, sfx), \ 44 PORT_1(64, fn, pfx##64, sfx), PORT_1(65, fn, pfx##65, sfx), \ 45 PORT_1(66, fn, pfx##66, sfx), PORT_1(67, fn, pfx##67, sfx), \ 46 PORT_1(68, fn, pfx##68, sfx), PORT_1(69, fn, pfx##69, sfx), \ 47 PORT_10(70, fn, pfx##7, sfx), \ 48 PORT_1(80, fn, pfx##80, sfx), PORT_1(81, fn, pfx##81, sfx), \ 49 PORT_1(82, fn, pfx##82, sfx), PORT_1(83, fn, pfx##83, sfx), \ 50 PORT_1(84, fn, pfx##84, sfx), PORT_1(85, fn, pfx##85, sfx), \ 52 PORT_1(96, fn, pfx##96, sfx), PORT_1(97, fn, pfx##97, sfx), \ 53 PORT_1(98, fn, pfx##98, sfx), PORT_1(99, fn, pfx##99, sfx), \ 54 PORT_10(100, fn, pfx##10, sfx), \ 55 PORT_10(110, fn, pfx##11, sfx), \ 56 PORT_1(120, fn, pfx##120, sfx), PORT_1(121, fn, pfx##121, sfx), \ 57 PORT_1(122, fn, pfx##122, sfx), PORT_1(123, fn, pfx##123, sfx), \ 58 PORT_1(124, fn, pfx##124, sfx), PORT_1(125, fn, pfx##125, sfx), \ 59 PORT_1(126, fn, pfx##126, sfx), \ 61 PORT_1(128, fn, pfx##128, sfx), PORT_1(129, fn, pfx##129, sfx), \ 62 PORT_1(130, fn, pfx##130, sfx), PORT_1(131, fn, pfx##131, sfx), \ 63 PORT_1(132, fn, pfx##132, sfx), PORT_1(133, fn, pfx##133, sfx), \ 64 PORT_1(134, fn, pfx##134, sfx), \ 66 PORT_10(160, fn, pfx##16, sfx), \ 67 PORT_1(170, fn, pfx##170, sfx), PORT_1(171, fn, pfx##171, sfx), \ 68 PORT_1(172, fn, pfx##172, sfx), PORT_1(173, fn, pfx##173, sfx), \ 69 PORT_1(174, fn, pfx##174, sfx), PORT_1(175, fn, pfx##175, sfx), \ 70 PORT_1(176, fn, pfx##176, sfx), PORT_1(177, fn, pfx##177, sfx), \ 71 PORT_1(178, fn, pfx##178, sfx), \ 73 PORT_1(192, fn, pfx##192, sfx), PORT_1(193, fn, pfx##193, sfx), \ 74 PORT_1(194, fn, pfx##194, sfx), PORT_1(195, fn, pfx##195, sfx), \ 75 PORT_1(196, fn, pfx##196, sfx), PORT_1(197, fn, pfx##197, sfx), \ 76 PORT_1(198, fn, pfx##198, sfx), PORT_1(199, fn, pfx##199, sfx), \ 77 PORT_10(200, fn, pfx##20, sfx), \ 78 PORT_10(210, fn, pfx##21, sfx), \ 79 PORT_1(220, fn, pfx##220, sfx), PORT_1(221, fn, pfx##221, sfx), \ 80 PORT_1(222, fn, pfx##222, sfx), \ 82 PORT_1(224, fn, pfx##224, sfx), PORT_1(225, fn, pfx##225, sfx), \ 83 PORT_1(226, fn, pfx##226, sfx), PORT_1(227, fn, pfx##227, sfx), \ 84 PORT_1(228, fn, pfx##228, sfx), PORT_1(229, fn, pfx##229, sfx), \ 85 PORT_10(230, fn, pfx##23, sfx), \ 86 PORT_10(240, fn, pfx##24, sfx), \ 87 PORT_1(250, fn, pfx##250, sfx), \ 89 PORT_1(256, fn, pfx##256, sfx), PORT_1(257, fn, pfx##257, sfx), \ 90 PORT_1(258, fn, pfx##258, sfx), PORT_1(259, fn, pfx##259, sfx), \ 91 PORT_10(260, fn, pfx##26, sfx), \ 92 PORT_10(270, fn, pfx##27, sfx), \ 93 PORT_1(280, fn, pfx##280, sfx), PORT_1(281, fn, pfx##281, sfx), \ 94 PORT_1(282, fn, pfx##282, sfx), PORT_1(283, fn, pfx##283, sfx), \ 96 PORT_1(288, fn, pfx##288, sfx), PORT_1(289, fn, pfx##289, sfx), \ 97 PORT_10(290, fn, pfx##29, sfx), \ 98 PORT_1(300, fn, pfx##300, sfx), PORT_1(301, fn, pfx##301, sfx), \ 99 PORT_1(302, fn, pfx##302, sfx), PORT_1(303, fn, pfx##303, sfx), \ 100 PORT_1(304, fn, pfx##304, sfx), PORT_1(305, fn, pfx##305, sfx), \ 101 PORT_1(306, fn, pfx##306, sfx), PORT_1(307, fn, pfx##307, sfx), \ 102 PORT_1(308, fn, pfx##308, sfx), \ 104 PORT_10(320, fn, pfx##32, sfx)
|
H A D | pfc-r8a7778.c | 26 #define PORT_GP_27(bank, fn, sfx) \ 27 PORT_GP_1(bank, 0, fn, sfx), PORT_GP_1(bank, 1, fn, sfx), \ 28 PORT_GP_1(bank, 2, fn, sfx), PORT_GP_1(bank, 3, fn, sfx), \ 29 PORT_GP_1(bank, 4, fn, sfx), PORT_GP_1(bank, 5, fn, sfx), \ 30 PORT_GP_1(bank, 6, fn, sfx), PORT_GP_1(bank, 7, fn, sfx), \ 31 PORT_GP_1(bank, 8, fn, sfx), PORT_GP_1(bank, 9, fn, sfx), \ 32 PORT_GP_1(bank, 10, fn, sfx), PORT_GP_1(bank, 11, fn, sfx), \ 33 PORT_GP_1(bank, 12, fn, sfx), PORT_GP_1(bank, 13, fn, sfx), \ 34 PORT_GP_1(bank, 14, fn, sfx), PORT_GP_1(bank, 15, fn, sfx), \ 35 PORT_GP_1(bank, 16, fn, sfx), PORT_GP_1(bank, 17, fn, sfx), \ 36 PORT_GP_1(bank, 18, fn, sfx), PORT_GP_1(bank, 19, fn, sfx), \ 37 PORT_GP_1(bank, 20, fn, sfx), PORT_GP_1(bank, 21, fn, sfx), \ 38 PORT_GP_1(bank, 22, fn, sfx), PORT_GP_1(bank, 23, fn, sfx), \ 39 PORT_GP_1(bank, 24, fn, sfx), PORT_GP_1(bank, 25, fn, sfx), \ 40 PORT_GP_1(bank, 26, fn, sfx) 42 #define CPU_ALL_PORT(fn, sfx) \ 43 PORT_GP_32(0, fn, sfx), \ 44 PORT_GP_32(1, fn, sfx), \ 45 PORT_GP_32(2, fn, sfx), \ 46 PORT_GP_32(3, fn, sfx), \ 47 PORT_GP_27(4, fn, sfx)
|
H A D | pfc-sh73a0.c | 36 #define CPU_ALL_PORT(fn, pfx, sfx) \ 37 PORT_10(0, fn, pfx, sfx), PORT_90(0, fn, pfx, sfx), \ 38 PORT_10(100, fn, pfx##10, sfx), \ 39 PORT_1(110, fn, pfx##110, sfx), PORT_1(111, fn, pfx##111, sfx), \ 40 PORT_1(112, fn, pfx##112, sfx), PORT_1(113, fn, pfx##113, sfx), \ 41 PORT_1(114, fn, pfx##114, sfx), PORT_1(115, fn, pfx##115, sfx), \ 42 PORT_1(116, fn, pfx##116, sfx), PORT_1(117, fn, pfx##117, sfx), \ 43 PORT_1(118, fn, pfx##118, sfx), \ 44 PORT_1(128, fn, pfx##128, sfx), PORT_1(129, fn, pfx##129, sfx), \ 45 PORT_10(130, fn, pfx##13, sfx), PORT_10(140, fn, pfx##14, sfx), \ 46 PORT_10(150, fn, pfx##15, sfx), \ 47 PORT_1(160, fn, pfx##160, sfx), PORT_1(161, fn, pfx##161, sfx), \ 48 PORT_1(162, fn, pfx##162, sfx), PORT_1(163, fn, pfx##163, sfx), \ 49 PORT_1(164, fn, pfx##164, sfx), \ 50 PORT_1(192, fn, pfx##192, sfx), PORT_1(193, fn, pfx##193, sfx), \ 51 PORT_1(194, fn, pfx##194, sfx), PORT_1(195, fn, pfx##195, sfx), \ 52 PORT_1(196, fn, pfx##196, sfx), PORT_1(197, fn, pfx##197, sfx), \ 53 PORT_1(198, fn, pfx##198, sfx), PORT_1(199, fn, pfx##199, sfx), \ 54 PORT_10(200, fn, pfx##20, sfx), PORT_10(210, fn, pfx##21, sfx), \ 55 PORT_10(220, fn, pfx##22, sfx), PORT_10(230, fn, pfx##23, sfx), \ 56 PORT_10(240, fn, pfx##24, sfx), PORT_10(250, fn, pfx##25, sfx), \ 57 PORT_10(260, fn, pfx##26, sfx), PORT_10(270, fn, pfx##27, sfx), \ 58 PORT_1(280, fn, pfx##280, sfx), PORT_1(281, fn, pfx##281, sfx), \ 59 PORT_1(282, fn, pfx##282, sfx), \ 60 PORT_1(288, fn, pfx##288, sfx), PORT_1(289, fn, pfx##289, sfx), \ 61 PORT_10(290, fn, pfx##29, sfx), PORT_10(300, fn, pfx##30, sfx)
|
H A D | pfc-emev2.c | 15 #define CPU_ALL_PORT(fn, pfx, sfx) \ 16 PORT_10(0, fn, pfx, sfx), PORT_90(0, fn, pfx, sfx), \ 17 PORT_10(100, fn, pfx##10, sfx), PORT_10(110, fn, pfx##11, sfx), \ 18 PORT_10(120, fn, pfx##12, sfx), PORT_10(130, fn, pfx##13, sfx), \ 19 PORT_10(140, fn, pfx##14, sfx), PORT_1(150, fn, pfx##150, sfx), \ 20 PORT_1(151, fn, pfx##151, sfx), PORT_1(152, fn, pfx##152, sfx), \ 21 PORT_1(153, fn, pfx##153, sfx), PORT_1(154, fn, pfx##154, sfx), \ 22 PORT_1(155, fn, pfx##155, sfx), PORT_1(156, fn, pfx##156, sfx), \ 23 PORT_1(157, fn, pfx##157, sfx), PORT_1(158, fn, pfx##158, sfx)
|
/linux-4.1.27/tools/perf/bench/ |
H A D | mem-memcpy-arch.h | 4 #define MEMCPY_FN(fn, name, desc) \ 5 extern void *fn(void *, const void *, size_t);
|
H A D | mem-memset-arch.h | 4 #define MEMSET_FN(fn, name, desc) \ 5 extern void *fn(void *, int, size_t);
|
H A D | mem-memcpy.c | 60 } fn; member in struct:routine 66 .fn.memcpy = memcpy }, 69 #define MEMCPY_FN(_fn, _name, _desc) {.name = _name, .desc = _desc, .fn.memcpy = _fn}, 293 memcpy_t fn = r->fn.memcpy; do_memcpy_cycle() local 299 fn(dst, src, len); do_memcpy_cycle() 303 fn(dst, src, len); do_memcpy_cycle() 315 memcpy_t fn = r->fn.memcpy; do_memcpy_gettimeofday() local 322 fn(dst, src, len); do_memcpy_gettimeofday() 326 fn(dst, src, len); do_memcpy_gettimeofday() 359 memset_t fn = r->fn.memset; do_memset_cycle() local 366 fn(dst, -1, len); do_memset_cycle() 370 fn(dst, i, len); do_memset_cycle() 381 memset_t fn = r->fn.memset; do_memset_gettimeofday() local 388 fn(dst, -1, len); do_memset_gettimeofday() 392 fn(dst, i, len); do_memset_gettimeofday() 409 .fn.memset = memset }, 412 #define MEMSET_FN(_fn, _name, _desc) { .name = _name, .desc = _desc, .fn.memset = _fn }, 420 .fn.memset = NULL }
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | glue.h | 19 #define ____glue(name,fn) name##fn 21 #define ____glue(name,fn) name/**/fn 23 #define __glue(name,fn) ____glue(name,fn)
|
H A D | setup.h | 21 #define __tagtable(tag, fn) \ 22 static const struct tagtable __tagtable_##fn __tag = { tag, fn }
|
H A D | stacktrace.h | 28 int (*fn)(struct stackframe *, void *), void *data);
|
H A D | traps.h | 15 int (*fn)(struct pt_regs *regs, unsigned int instr); member in struct:undef_hook
|
H A D | bug.h | 78 void hook_fault_code(int nr, int (*fn)(unsigned long, unsigned int, 82 void hook_ifault_code(int nr, int (*fn)(unsigned long, unsigned int,
|
/linux-4.1.27/include/linux/ |
H A D | init.h | 145 extern int do_one_initcall(initcall_t fn); 193 #define __define_initcall(fn, id) \ 194 static initcall_t __initcall_##fn##id __used \ 195 __attribute__((__section__(".initcall" #id ".init"))) = fn; \ 196 LTO_REFERENCE_INITCALL(__initcall_##fn##id) 203 #define early_initcall(fn) __define_initcall(fn, early) 212 #define pure_initcall(fn) __define_initcall(fn, 0) 214 #define core_initcall(fn) __define_initcall(fn, 1) 215 #define core_initcall_sync(fn) __define_initcall(fn, 1s) 216 #define postcore_initcall(fn) __define_initcall(fn, 2) 217 #define postcore_initcall_sync(fn) __define_initcall(fn, 2s) 218 #define arch_initcall(fn) __define_initcall(fn, 3) 219 #define arch_initcall_sync(fn) __define_initcall(fn, 3s) 220 #define subsys_initcall(fn) __define_initcall(fn, 4) 221 #define subsys_initcall_sync(fn) __define_initcall(fn, 4s) 222 #define fs_initcall(fn) __define_initcall(fn, 5) 223 #define fs_initcall_sync(fn) __define_initcall(fn, 5s) 224 #define rootfs_initcall(fn) __define_initcall(fn, rootfs) 225 #define device_initcall(fn) __define_initcall(fn, 6) 226 #define device_initcall_sync(fn) __define_initcall(fn, 6s) 227 #define late_initcall(fn) __define_initcall(fn, 7) 228 #define late_initcall_sync(fn) __define_initcall(fn, 7s) 230 #define __initcall(fn) device_initcall(fn) 232 #define __exitcall(fn) \ 233 static exitcall_t __exitcall_##fn __exit_call = fn 235 #define console_initcall(fn) \ 236 static initcall_t __initcall_##fn \ 237 __used __section(.con_initcall.init) = fn 239 #define security_initcall(fn) \ 240 static initcall_t __initcall_##fn \ 241 __used __section(.security_initcall.init) = fn 255 #define __setup_param(str, unique_id, fn, early) \ 261 = { __setup_str_##unique_id, fn, early } 263 #define __setup(str, fn) \ 264 __setup_param(str, fn, fn, 0) 267 * NOTE: fn is as per module_param, not __setup! 268 * Emits warning if fn returns non-zero. 270 #define early_param(str, fn) \ 271 __setup_param(str, fn, fn, 1) 327 #define early_initcall(fn) module_init(fn) 328 #define core_initcall(fn) module_init(fn) 329 #define core_initcall_sync(fn) module_init(fn) 330 #define postcore_initcall(fn) module_init(fn) 331 #define postcore_initcall_sync(fn) module_init(fn) 332 #define arch_initcall(fn) module_init(fn) 333 #define subsys_initcall(fn) module_init(fn) 334 #define subsys_initcall_sync(fn) module_init(fn) 335 #define fs_initcall(fn) module_init(fn) 336 #define fs_initcall_sync(fn) module_init(fn) 337 #define rootfs_initcall(fn) module_init(fn) 338 #define device_initcall(fn) module_init(fn) 339 #define device_initcall_sync(fn) module_init(fn) 340 #define late_initcall(fn) module_init(fn) 341 #define late_initcall_sync(fn) module_init(fn) 343 #define console_initcall(fn) module_init(fn) 344 #define security_initcall(fn) module_init(fn) 358 #define __setup_param(str, unique_id, fn) /* nothing */
|
H A D | stop_machine.h | 25 cpu_stop_fn_t fn; member in struct:cpu_stop_work 30 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg); 31 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg); 32 void stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, 34 int stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg); 35 int try_stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg); 43 cpu_stop_fn_t fn; member in struct:cpu_stop_work 47 static inline int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) stop_one_cpu() argument 52 ret = fn(arg); stop_one_cpu() 62 stwork->fn(stwork->arg); stop_one_cpu_nowait_workfn() 67 cpu_stop_fn_t fn, void *arg, stop_one_cpu_nowait() 72 work_buf->fn = fn; stop_one_cpu_nowait() 79 cpu_stop_fn_t fn, void *arg) stop_cpus() 82 return stop_one_cpu(raw_smp_processor_id(), fn, arg); stop_cpus() 87 cpu_stop_fn_t fn, void *arg) try_stop_cpus() 89 return stop_cpus(cpumask, fn, arg); try_stop_cpus() 104 * @fn: the function to run 105 * @data: the data ptr for the @fn() 106 * @cpus: the cpus to run the @fn() on (NULL = any online cpu) 111 * @fn() runs. 115 int stop_machine(int (*fn)(void *), void *data, const struct cpumask *cpus); 119 * @fn: the function to run 120 * @data: the data ptr for the @fn 121 * @cpus: the cpus to run the @fn() on (NULL = any online cpu) 126 int __stop_machine(int (*fn)(void *), void *data, const struct cpumask *cpus); 128 int stop_machine_from_inactive_cpu(int (*fn)(void *), void *data, 133 static inline int __stop_machine(int (*fn)(void *), void *data, __stop_machine() 139 ret = fn(data); __stop_machine() 144 static inline int stop_machine(int (*fn)(void *), void *data, stop_machine() 147 return __stop_machine(fn, data, cpus); stop_machine() 150 static inline int stop_machine_from_inactive_cpu(int (*fn)(void *), void *data, stop_machine_from_inactive_cpu() 153 return __stop_machine(fn, data, cpus); stop_machine_from_inactive_cpu() 66 stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, struct cpu_stop_work *work_buf) stop_one_cpu_nowait() argument 78 stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) stop_cpus() argument 86 try_stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) try_stop_cpus() argument
|
H A D | cpu.h | 122 #define cpu_notifier(fn, pri) { \ 123 static struct notifier_block fn##_nb = \ 124 { .notifier_call = fn, .priority = pri }; \ 125 register_cpu_notifier(&fn##_nb); \ 128 #define __cpu_notifier(fn, pri) { \ 129 static struct notifier_block fn##_nb = \ 130 { .notifier_call = fn, .priority = pri }; \ 131 __register_cpu_notifier(&fn##_nb); \ 134 #define cpu_notifier(fn, pri) do { (void)(fn); } while (0) 135 #define __cpu_notifier(fn, pri) do { (void)(fn); } while (0) 180 #define cpu_notifier(fn, pri) do { (void)(fn); } while (0) 181 #define __cpu_notifier(fn, pri) do { (void)(fn); } while (0) 234 #define hotcpu_notifier(fn, pri) cpu_notifier(fn, pri) 235 #define __hotcpu_notifier(fn, pri) __cpu_notifier(fn, pri) 252 #define hotcpu_notifier(fn, pri) do { (void)(fn); } while (0) 253 #define __hotcpu_notifier(fn, pri) do { (void)(fn); } while (0)
|
H A D | attribute_container.h | 43 int (*fn)(struct attribute_container *, 47 int (*fn)(struct attribute_container *, 51 void (*fn)(struct attribute_container *, 55 int (*fn)(struct attribute_container *, 59 int (*fn)(struct attribute_container *,
|
H A D | sock_diag.h | 19 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)); 20 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh));
|
H A D | kthread.h | 84 #define KTHREAD_WORK_INIT(work, fn) { \ 86 .func = (fn), \ 92 #define DEFINE_KTHREAD_WORK(work, fn) \ 93 struct kthread_work work = KTHREAD_WORK_INIT(work, fn) 117 #define init_kthread_work(work, fn) \ 121 (work)->func = (fn); \
|
H A D | of_iommu.h | 43 #define IOMMU_OF_DECLARE(name, compat, fn) \ 44 _OF_DECLARE(iommu, name, compat, fn, of_iommu_init_fn)
|
H A D | icmpv6.h | 18 extern int inet6_register_icmp_sender(ip6_icmp_send_t *fn); 19 extern int inet6_unregister_icmp_sender(ip6_icmp_send_t *fn);
|
H A D | dm-kcopyd.h | 66 unsigned flags, dm_kcopyd_notify_fn fn, void *context); 80 dm_kcopyd_notify_fn fn, void *context); 85 unsigned flags, dm_kcopyd_notify_fn fn, void *context);
|
H A D | dm-io.h | 51 io_notify_fn fn; /* Callback for asynchronous requests */ member in struct:dm_io_notify 62 struct dm_io_notify notify; /* Synchronous if notify.fn is NULL */
|
H A D | memory.h | 125 #define hotplug_memory_notifier(fn, pri) ({ \ 126 static __meminitdata struct notifier_block fn##_mem_nb =\ 127 { .notifier_call = fn, .priority = pri };\ 128 register_memory_notifier(&fn##_mem_nb); \ 133 #define hotplug_memory_notifier(fn, pri) ({ 0; })
|
H A D | timer.h | 152 #define setup_timer(timer, fn, data) \ 153 __setup_timer((timer), (fn), (data), 0) 154 #define setup_timer_on_stack(timer, fn, data) \ 155 __setup_timer_on_stack((timer), (fn), (data), 0) 156 #define setup_deferrable_timer_on_stack(timer, fn, data) \ 157 __setup_timer_on_stack((timer), (fn), (data), TIMER_DEFERRABLE)
|
H A D | kallsyms.h | 23 int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *, 55 static inline int kallsyms_on_each_symbol(int (*fn)(void *, const char *, kallsyms_on_each_symbol()
|
/linux-4.1.27/drivers/staging/board/ |
H A D | board.h | 9 #define board_staging(str, fn) \ 13 fn(); \
|
/linux-4.1.27/arch/um/include/shared/ |
H A D | init.h | 91 #define __uml_initcall(fn) \ 92 static initcall_t __uml_initcall_##fn __uml_init_call = fn 94 #define __uml_exitcall(fn) \ 95 static exitcall_t __uml_exitcall_##fn __uml_exit_call = fn 99 #define __uml_postsetup(fn) \ 100 static initcall_t __uml_postsetup_##fn __uml_postsetup_call = fn 109 #define __uml_setup(str, fn, help...) \ 110 __non_empty_string(fn ##_setup, str); \ 111 __uml_help(fn, help); \ 112 static char __uml_setup_str_##fn[] __initdata = str; \ 113 static struct uml_param __uml_setup_##fn __uml_init_setup = { __uml_setup_str_##fn, fn } 115 #define __uml_setup(str, fn, help...) \ 119 #define __uml_help(fn, help...) \ 120 __non_empty_string(fn ##__help, help); \ 121 static char __uml_help_str_##fn[] __initdata = help; \ 122 static const char *__uml_help_##fn __uml_setup_help = __uml_help_str_##fn 136 #define __define_initcall(level,fn) \ 137 static initcall_t __initcall_##fn __used \ 138 __attribute__((__section__(".initcall" level ".init"))) = fn 143 #define __initcall(fn) __define_initcall("1", fn) 145 #define __exitcall(fn) static exitcall_t __exitcall_##fn __exit_call = fn
|
/linux-4.1.27/net/ipv6/ |
H A D | ip6_icmp.c | 13 int inet6_register_icmp_sender(ip6_icmp_send_t *fn) inet6_register_icmp_sender() argument 15 return (cmpxchg((ip6_icmp_send_t **)&ip6_icmp_send, NULL, fn) == NULL) ? inet6_register_icmp_sender() 20 int inet6_unregister_icmp_sender(ip6_icmp_send_t *fn) inet6_unregister_icmp_sender() argument 24 ret = (cmpxchg((ip6_icmp_send_t **)&ip6_icmp_send, fn, NULL) == fn) ? inet6_unregister_icmp_sender()
|
H A D | ip6_fib.c | 65 static void fib6_prune_clones(struct net *net, struct fib6_node *fn); 66 static struct rt6_info *fib6_find_prefix(struct net *net, struct fib6_node *fn); 67 static struct fib6_node *fib6_repair_tree(struct net *net, struct fib6_node *fn); 145 struct fib6_node *fn; node_alloc() local 147 fn = kmem_cache_zalloc(fib6_node_kmem, GFP_ATOMIC); node_alloc() 149 return fn; node_alloc() 152 static void node_free(struct fib6_node *fn) node_free() argument 154 kmem_cache_free(fib6_node_kmem, fn); node_free() 425 struct fib6_node *fn, *in, *ln; fib6_add_1() local 435 fn = root; fib6_add_1() 438 key = (struct rt6key *)((u8 *)fn->leaf + offset); fib6_add_1() 443 if (plen < fn->fn_bit || fib6_add_1() 444 !ipv6_prefix_equal(&key->addr, addr, fn->fn_bit)) { fib6_add_1() 459 if (plen == fn->fn_bit) { fib6_add_1() 461 if (!(fn->fn_flags & RTN_RTINFO)) { fib6_add_1() 462 rt6_release(fn->leaf); fib6_add_1() 463 fn->leaf = NULL; fib6_add_1() 466 fn->fn_sernum = sernum; fib6_add_1() 468 return fn; fib6_add_1() 476 fn->fn_sernum = sernum; fib6_add_1() 477 dir = addr_bit_set(addr, fn->fn_bit); fib6_add_1() 478 pn = fn; fib6_add_1() 479 fn = dir ? fn->right : fn->left; fib6_add_1() 480 } while (fn); fib6_add_1() 529 pn = fn->parent; fib6_add_1() 542 * (new leaf node)[ln] (old node)[fn] fib6_add_1() 567 in->leaf = fn->leaf; fib6_add_1() 581 fn->parent = in; fib6_add_1() 587 in->left = fn; fib6_add_1() 590 in->right = fn; fib6_add_1() 597 * (old node)[fn] NULL fib6_add_1() 617 ln->right = fn; fib6_add_1() 619 ln->left = fn; fib6_add_1() 621 fn->parent = ln; fib6_add_1() 664 static void fib6_purge_rt(struct rt6_info *rt, struct fib6_node *fn, fib6_purge_rt() argument 674 while (fn) { fib6_purge_rt() 675 if (!(fn->fn_flags & RTN_RTINFO) && fn->leaf == rt) { fib6_purge_rt() 676 fn->leaf = fib6_find_prefix(net, fn); fib6_purge_rt() 677 atomic_inc(&fn->leaf->rt6i_ref); fib6_purge_rt() 680 fn = fn->parent; fib6_purge_rt() 691 static int fib6_add_rt2node(struct fib6_node *fn, struct rt6_info *rt, fib6_add_rt2node() argument 705 ins = &fn->leaf; fib6_add_rt2node() 707 for (iter = fn->leaf; iter; iter = iter->dst.rt6_next) { fib6_add_rt2node() 774 if (ins == &fn->leaf) fib6_add_rt2node() 775 fn->rr_ptr = NULL; fib6_add_rt2node() 783 sibling = fn->leaf; fib6_add_rt2node() 821 rt->rt6i_node = fn; fib6_add_rt2node() 826 if (!(fn->fn_flags & RTN_RTINFO)) { fib6_add_rt2node() 828 fn->fn_flags |= RTN_RTINFO; fib6_add_rt2node() 846 rt->rt6i_node = fn; fib6_add_rt2node() 850 if (!(fn->fn_flags & RTN_RTINFO)) { fib6_add_rt2node() 852 fn->fn_flags |= RTN_RTINFO; fib6_add_rt2node() 855 fib6_purge_rt(iter, fn, info->nl_net); fib6_add_rt2node() 865 fib6_purge_rt(iter, fn, info->nl_net); fib6_add_rt2node() 904 struct fib6_node *fn, *pn = NULL; fib6_add() local 919 fn = fib6_add_1(root, &rt->rt6i_dst.addr, rt->rt6i_dst.plen, fib6_add() 922 if (IS_ERR(fn)) { fib6_add() 923 err = PTR_ERR(fn); fib6_add() 924 fn = NULL; fib6_add() 928 pn = fn; fib6_add() 934 if (!fn->subtree) { fib6_add() 940 * fn[main tree] fib6_add() 975 sfn->parent = fn; fib6_add() 976 fn->subtree = sfn; fib6_add() 978 sn = fib6_add_1(fn->subtree, &rt->rt6i_src.addr, fib6_add() 989 if (!fn->leaf) { fib6_add() 990 fn->leaf = rt; fib6_add() 993 fn = sn; fib6_add() 997 err = fib6_add_rt2node(fn, rt, info, mxc); fib6_add() 1011 if (pn != fn && pn->leaf == rt) { fib6_add() 1015 if (pn != fn && !pn->leaf && !(pn->fn_flags & RTN_RTINFO)) { fib6_add() 1035 if (fn && !(fn->fn_flags & (RTN_RTINFO|RTN_ROOT))) fib6_add() 1036 fib6_repair_tree(info->nl_net, fn); fib6_add() 1055 struct fib6_node *fn; fib6_lookup_1() local 1065 fn = root; fib6_lookup_1() 1070 dir = addr_bit_set(args->addr, fn->fn_bit); fib6_lookup_1() 1072 next = dir ? fn->right : fn->left; fib6_lookup_1() 1075 fn = next; fib6_lookup_1() 1081 while (fn) { fib6_lookup_1() 1082 if (FIB6_SUBTREE(fn) || fn->fn_flags & RTN_RTINFO) { fib6_lookup_1() 1085 key = (struct rt6key *) ((u8 *) fn->leaf + fib6_lookup_1() 1090 if (fn->subtree) { fib6_lookup_1() 1092 sfn = fib6_lookup_1(fn->subtree, fib6_lookup_1() 1096 fn = sfn; fib6_lookup_1() 1099 if (fn->fn_flags & RTN_RTINFO) fib6_lookup_1() 1100 return fn; fib6_lookup_1() 1106 if (fn->fn_flags & RTN_ROOT) fib6_lookup_1() 1109 fn = fn->parent; fib6_lookup_1() 1118 struct fib6_node *fn; fib6_lookup() local 1135 fn = fib6_lookup_1(root, daddr ? args : args + 1); fib6_lookup() 1136 if (!fn || fn->fn_flags & RTN_TL_ROOT) fib6_lookup() 1137 fn = root; fib6_lookup() 1139 return fn; fib6_lookup() 1152 struct fib6_node *fn; fib6_locate_1() local 1154 for (fn = root; fn ; ) { fib6_locate_1() 1155 struct rt6key *key = (struct rt6key *)((u8 *)fn->leaf + offset); fib6_locate_1() 1160 if (plen < fn->fn_bit || fib6_locate_1() 1161 !ipv6_prefix_equal(&key->addr, addr, fn->fn_bit)) fib6_locate_1() 1164 if (plen == fn->fn_bit) fib6_locate_1() 1165 return fn; fib6_locate_1() 1170 if (addr_bit_set(addr, fn->fn_bit)) fib6_locate_1() 1171 fn = fn->right; fib6_locate_1() 1173 fn = fn->left; fib6_locate_1() 1182 struct fib6_node *fn; fib6_locate() local 1184 fn = fib6_locate_1(root, daddr, dst_len, fib6_locate() 1190 if (fn && fn->subtree) fib6_locate() 1191 fn = fib6_locate_1(fn->subtree, saddr, src_len, fib6_locate() 1196 if (fn && fn->fn_flags & RTN_RTINFO) fib6_locate() 1197 return fn; fib6_locate() 1208 static struct rt6_info *fib6_find_prefix(struct net *net, struct fib6_node *fn) fib6_find_prefix() argument 1210 if (fn->fn_flags & RTN_ROOT) fib6_find_prefix() 1213 while (fn) { fib6_find_prefix() 1214 if (fn->left) fib6_find_prefix() 1215 return fn->left->leaf; fib6_find_prefix() 1216 if (fn->right) fib6_find_prefix() 1217 return fn->right->leaf; fib6_find_prefix() 1219 fn = FIB6_SUBTREE(fn); fib6_find_prefix() 1225 * Called to trim the tree of intermediate nodes when possible. "fn" 1230 struct fib6_node *fn) fib6_repair_tree() 1239 RT6_TRACE("fixing tree: plen=%d iter=%d\n", fn->fn_bit, iter); fib6_repair_tree() 1242 WARN_ON(fn->fn_flags & RTN_RTINFO); fib6_repair_tree() 1243 WARN_ON(fn->fn_flags & RTN_TL_ROOT); fib6_repair_tree() 1244 WARN_ON(fn->leaf); fib6_repair_tree() 1248 if (fn->right) fib6_repair_tree() 1249 child = fn->right, children |= 1; fib6_repair_tree() 1250 if (fn->left) fib6_repair_tree() 1251 child = fn->left, children |= 2; fib6_repair_tree() 1253 if (children == 3 || FIB6_SUBTREE(fn) fib6_repair_tree() 1255 /* Subtree root (i.e. fn) may have one child */ fib6_repair_tree() 1256 || (children && fn->fn_flags & RTN_ROOT) fib6_repair_tree() 1259 fn->leaf = fib6_find_prefix(net, fn); fib6_repair_tree() 1261 if (!fn->leaf) { fib6_repair_tree() 1262 WARN_ON(!fn->leaf); fib6_repair_tree() 1263 fn->leaf = net->ipv6.ip6_null_entry; fib6_repair_tree() 1266 atomic_inc(&fn->leaf->rt6i_ref); fib6_repair_tree() 1267 return fn->parent; fib6_repair_tree() 1270 pn = fn->parent; fib6_repair_tree() 1272 if (FIB6_SUBTREE(pn) == fn) { fib6_repair_tree() 1273 WARN_ON(!(fn->fn_flags & RTN_ROOT)); fib6_repair_tree() 1277 WARN_ON(fn->fn_flags & RTN_ROOT); fib6_repair_tree() 1279 if (pn->right == fn) fib6_repair_tree() 1281 else if (pn->left == fn) fib6_repair_tree() 1297 if (w->root == fn) { FOR_WALKERS() 1300 } else if (w->node == fn) { FOR_WALKERS() 1306 if (w->root == fn) { FOR_WALKERS() 1310 if (w->node == fn) { FOR_WALKERS() 1324 node_free(fn); 1330 fn = pn; 1334 static void fib6_del_route(struct fib6_node *fn, struct rt6_info **rtp, fib6_del_route() argument 1350 if (fn->rr_ptr == rt) fib6_del_route() 1351 fn->rr_ptr = NULL; fib6_del_route() 1379 if (!fn->leaf) { 1380 fn->fn_flags &= ~RTN_RTINFO; 1382 fn = fib6_repair_tree(net, fn); 1385 fib6_purge_rt(rt, fn, net); 1394 struct fib6_node *fn = rt->rt6i_node; fib6_del() local 1399 WARN_ON(fn); fib6_del() 1403 if (!fn || rt == net->ipv6.ip6_null_entry) fib6_del() 1406 WARN_ON(!(fn->fn_flags & RTN_RTINFO)); fib6_del() 1409 struct fib6_node *pn = fn; fib6_del() 1425 for (rtp = &fn->leaf; *rtp; rtp = &(*rtp)->dst.rt6_next) { fib6_del() 1427 fib6_del_route(fn, rtp, info); fib6_del() 1460 struct fib6_node *fn, *pn; fib6_walk_continue() local 1463 fn = w->node; fib6_walk_continue() 1464 if (!fn) fib6_walk_continue() 1467 if (w->prune && fn != w->root && fib6_walk_continue() 1468 fn->fn_flags & RTN_RTINFO && w->state < FWS_C) { fib6_walk_continue() 1470 w->leaf = fn->leaf; fib6_walk_continue() 1475 if (FIB6_SUBTREE(fn)) { fib6_walk_continue() 1476 w->node = FIB6_SUBTREE(fn); fib6_walk_continue() 1482 if (fn->left) { fib6_walk_continue() 1483 w->node = fn->left; fib6_walk_continue() 1489 if (fn->right) { fib6_walk_continue() 1490 w->node = fn->right; fib6_walk_continue() 1495 w->leaf = fn->leaf; fib6_walk_continue() 1497 if (w->leaf && fn->fn_flags & RTN_RTINFO) { fib6_walk_continue() 1515 if (fn == w->root) fib6_walk_continue() 1517 pn = fn->parent; fib6_walk_continue() 1520 if (FIB6_SUBTREE(pn) == fn) { fib6_walk_continue() 1521 WARN_ON(!(fn->fn_flags & RTN_ROOT)); fib6_walk_continue() 1526 if (pn->left == fn) { fib6_walk_continue() 1530 if (pn->right == fn) { fib6_walk_continue() 1662 static void fib6_prune_clones(struct net *net, struct fib6_node *fn) fib6_prune_clones() argument 1664 fib6_clean_tree(net, fn, fib6_prune_clone, true, fib6_prune_clones() 1229 fib6_repair_tree(struct net *net, struct fib6_node *fn) fib6_repair_tree() argument
|
H A D | route.c | 650 static struct rt6_info *find_rr_leaf(struct fib6_node *fn, find_rr_leaf() argument 662 for (rt = fn->leaf; rt && rt != rr_head && rt->rt6i_metric == metric; find_rr_leaf() 669 static struct rt6_info *rt6_select(struct fib6_node *fn, int oif, int strict) rt6_select() argument 675 rt0 = fn->rr_ptr; rt6_select() 677 fn->rr_ptr = rt0 = fn->leaf; rt6_select() 679 match = find_rr_leaf(fn, rt0, rt0->rt6i_metric, oif, strict, rt6_select() 687 next = fn->leaf; rt6_select() 690 fn->rr_ptr = next; rt6_select() 773 static struct fib6_node* fib6_backtrack(struct fib6_node *fn, fib6_backtrack() argument 778 if (fn->fn_flags & RTN_TL_ROOT) fib6_backtrack() 780 pn = fn->parent; fib6_backtrack() 781 if (FIB6_SUBTREE(pn) && FIB6_SUBTREE(pn) != fn) fib6_backtrack() 782 fn = fib6_lookup(FIB6_SUBTREE(pn), NULL, saddr); fib6_backtrack() 784 fn = pn; fib6_backtrack() 785 if (fn->fn_flags & RTN_RTINFO) fib6_backtrack() 786 return fn; fib6_backtrack() 794 struct fib6_node *fn; ip6_pol_route_lookup() local 798 fn = fib6_lookup(&table->tb6_root, &fl6->daddr, &fl6->saddr); ip6_pol_route_lookup() 800 rt = fn->leaf; ip6_pol_route_lookup() 805 fn = fib6_backtrack(fn, &fl6->saddr); ip6_pol_route_lookup() 806 if (fn) ip6_pol_route_lookup() 918 struct fib6_node *fn, *saved_fn; ip6_pol_route() local 931 fn = fib6_lookup(&table->tb6_root, &fl6->daddr, &fl6->saddr); ip6_pol_route() 932 saved_fn = fn; ip6_pol_route() 935 rt = rt6_select(fn, oif, strict); ip6_pol_route() 939 fn = fib6_backtrack(fn, &fl6->saddr); ip6_pol_route() 940 if (fn) ip6_pol_route() 945 fn = saved_fn; ip6_pol_route() 1208 struct fib6_node *fn; __ip6_route_redirect() local 1221 fn = fib6_lookup(&table->tb6_root, &fl6->daddr, &fl6->saddr); __ip6_route_redirect() 1223 for (rt = fn->leaf; rt; rt = rt->dst.rt6_next) { __ip6_route_redirect() 1245 fn = fib6_backtrack(fn, &fl6->saddr); __ip6_route_redirect() 1246 if (fn) __ip6_route_redirect() 1793 struct fib6_node *fn; ip6_route_del() local 1803 fn = fib6_locate(&table->tb6_root, ip6_route_del() 1807 if (fn) { ip6_route_del() 1808 for (rt = fn->leaf; rt; rt = rt->dst.rt6_next) { ip6_route_del() 1993 struct fib6_node *fn; rt6_get_route_info() local 2002 fn = fib6_locate(&table->tb6_root, prefix, prefixlen, NULL, 0); rt6_get_route_info() 2003 if (!fn) rt6_get_route_info() 2006 for (rt = fn->leaf; rt; rt = rt->dst.rt6_next) { rt6_get_route_info()
|
/linux-4.1.27/arch/arm/kernel/ |
H A D | reboot.h | 4 extern void call_with_stack(void (*fn)(void *), void *arg, void *sp);
|
H A D | psci.c | 87 u32 fn, power_state; psci_cpu_suspend() local 89 fn = psci_function_id[PSCI_FN_CPU_SUSPEND]; psci_cpu_suspend() 91 err = invoke_psci_fn(fn, power_state, entry_point, 0); psci_cpu_suspend() 98 u32 fn, power_state; psci_cpu_off() local 100 fn = psci_function_id[PSCI_FN_CPU_OFF]; psci_cpu_off() 102 err = invoke_psci_fn(fn, power_state, 0, 0); psci_cpu_off() 109 u32 fn; psci_cpu_on() local 111 fn = psci_function_id[PSCI_FN_CPU_ON]; psci_cpu_on() 112 err = invoke_psci_fn(fn, cpuid, entry_point, 0); psci_cpu_on() 119 u32 fn; psci_migrate() local 121 fn = psci_function_id[PSCI_FN_MIGRATE]; psci_migrate() 122 err = invoke_psci_fn(fn, cpuid, 0, 0); psci_migrate() 130 u32 fn; psci_affinity_info() local 132 fn = psci_function_id[PSCI_FN_AFFINITY_INFO]; psci_affinity_info() 133 err = invoke_psci_fn(fn, target_affinity, lowest_affinity_level, 0); psci_affinity_info() 140 u32 fn; psci_migrate_info_type() local 142 fn = psci_function_id[PSCI_FN_MIGRATE_INFO_TYPE]; psci_migrate_info_type() 143 err = invoke_psci_fn(fn, 0, 0, 0); psci_migrate_info_type()
|
H A D | suspend.c | 17 int cpu_suspend(unsigned long arg, int (*fn)(unsigned long)) cpu_suspend() 32 ret = __cpu_suspend(arg, fn, __mpidr); cpu_suspend() 42 int cpu_suspend(unsigned long arg, int (*fn)(unsigned long)) cpu_suspend() 45 return __cpu_suspend(arg, fn, __mpidr); cpu_suspend()
|
H A D | sleep.S | 69 add r4, r4, #12 @ Space for pgd, virt sp, phys resume fn 85 ldmfd sp!, {r0, pc} @ call suspend fn 90 ldmia sp!, {r1 - r3} @ pop phys pgd, virt SP, phys resume fn 146 @ load phys pgd, stack, resume fn
|
/linux-4.1.27/sound/ |
H A D | sound_firmware.c | 10 static int do_mod_firmware_load(const char *fn, char **fp) do_mod_firmware_load() argument 17 filp = filp_open(fn, 0, 0); do_mod_firmware_load() 20 printk(KERN_INFO "Unable to load '%s'.\n", fn); do_mod_firmware_load() 26 printk(KERN_INFO "Invalid firmware '%s'\n", fn); do_mod_firmware_load() 33 printk(KERN_INFO "Out of memory loading '%s'.\n", fn); do_mod_firmware_load() 40 printk(KERN_INFO "Failed to read '%s'.\n", fn); do_mod_firmware_load() 52 * @fn: filename 67 int mod_firmware_load(const char *fn, char **fp) mod_firmware_load() argument 73 r = do_mod_firmware_load(fn, fp); mod_firmware_load()
|
/linux-4.1.27/drivers/md/bcache/ |
H A D | sysfs.h | 14 #define SHOW(fn) \ 15 static ssize_t fn ## _show(struct kobject *kobj, struct attribute *attr,\ 18 #define STORE(fn) \ 19 static ssize_t fn ## _store(struct kobject *kobj, struct attribute *attr,\ 22 #define SHOW_LOCKED(fn) \ 23 SHOW(fn) \ 27 ret = __ ## fn ## _show(kobj, attr, buf); \ 32 #define STORE_LOCKED(fn) \ 33 STORE(fn) \ 37 ret = __ ## fn ## _store(kobj, attr, buf, size); \
|
H A D | closure.h | 94 * returns up the C stack. continue_at() with non null fn is better thought of 154 closure_fn *fn; member in struct:closure::__anon5371::__anon5372 238 static inline void set_closure_fn(struct closure *cl, closure_fn *fn, set_closure_fn() argument 243 cl->fn = fn; set_closure_fn() 256 cl->fn(cl); closure_queue() 310 * been dropped with closure_put()), it will resume execution at @fn running out 311 * of @wq (or, if @wq is NULL, @fn will be called by closure_put() directly). 316 * and whatever @cl owns may be freed out from under you - a running closure fn 339 * Causes @fn to be executed out of @cl, in @wq context (or called directly if 344 * The ref the caller of continue_at_nobarrier() had on @cl is now owned by @fn, 372 * closure_call - execute @fn out of a new, uninitialized closure 374 * Typically used when running out of one closure, and we want to run @fn 378 static inline void closure_call(struct closure *cl, closure_fn fn, closure_call() argument 383 continue_at_nobarrier(cl, fn, wq); closure_call()
|
H A D | closure.c | 26 if (cl->fn && !(flags & CLOSURE_DESTRUCTOR)) { closure_put_after_sub() 32 closure_fn *destructor = cl->fn; closure_put_after_sub() 181 cl, (void *) cl->ip, cl->fn, cl->parent, debug_seq_show()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | machdep.h | 338 #define __define_machine_initcall(mach, fn, id) \ 339 static int __init __machine_initcall_##mach##_##fn(void) { \ 340 if (machine_is(mach)) return fn(); \ 343 __define_initcall(__machine_initcall_##mach##_##fn, id); 345 #define machine_early_initcall(mach, fn) __define_machine_initcall(mach, fn, early) 346 #define machine_core_initcall(mach, fn) __define_machine_initcall(mach, fn, 1) 347 #define machine_core_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 1s) 348 #define machine_postcore_initcall(mach, fn) __define_machine_initcall(mach, fn, 2) 349 #define machine_postcore_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 2s) 350 #define machine_arch_initcall(mach, fn) __define_machine_initcall(mach, fn, 3) 351 #define machine_arch_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 3s) 352 #define machine_subsys_initcall(mach, fn) __define_machine_initcall(mach, fn, 4) 353 #define machine_subsys_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 4s) 354 #define machine_fs_initcall(mach, fn) __define_machine_initcall(mach, fn, 5) 355 #define machine_fs_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 5s) 356 #define machine_rootfs_initcall(mach, fn) __define_machine_initcall(mach, fn, rootfs) 357 #define machine_device_initcall(mach, fn) __define_machine_initcall(mach, fn, 6) 358 #define machine_device_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 6s) 359 #define machine_late_initcall(mach, fn) __define_machine_initcall(mach, fn, 7) 360 #define machine_late_initcall_sync(mach, fn) __define_machine_initcall(mach, fn, 7s)
|
H A D | mpic_timer.h | 31 struct mpic_timer *mpic_request_timer(irq_handler_t fn, void *dev, 38 struct mpic_timer *mpic_request_timer(irq_handler_t fn, void *dev, mpic_request_timer() argument
|
H A D | bitops.h | 57 #define DEFINE_BITOP(fn, op, prefix) \ 58 static __inline__ void fn(unsigned long mask, \ 102 #define DEFINE_TESTOP(fn, op, prefix, postfix, eh) \ 103 static __inline__ unsigned long fn( \
|
/linux-4.1.27/drivers/irqchip/ |
H A D | irqchip.h | 24 * @fn: initialization function 26 #define IRQCHIP_DECLARE(name, compat, fn) OF_DECLARE_2(irqchip, name, compat, fn)
|
/linux-4.1.27/kernel/ |
H A D | stop_machine.c | 95 * @fn: function to execute 96 * @arg: argument to @fn 98 * Execute @fn(@arg) on @cpu. @fn is run in a process context with 103 * This function doesn't guarantee @cpu stays online till @fn 105 * partially or fully on different cpus. @fn should either be ready 113 * -ENOENT if @fn(@arg) was not executed because @cpu was offline; 114 * otherwise, the return value of @fn. 116 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) stop_one_cpu() argument 119 struct cpu_stop_work work = { .fn = fn, .arg = arg, .done = &done }; stop_one_cpu() 142 int (*fn)(void *); member in struct:multi_stop_data 201 err = msdata->fn(msdata->data); multi_cpu_stop() 237 * @fn: function to execute 238 * @arg: argument to @fn 240 * Stops both the current and specified CPU and runs @fn on one of them. 244 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg) stop_two_cpus() argument 253 .fn = fn, stop_two_cpus() 260 .fn = multi_cpu_stop, stop_two_cpus() 308 * @fn: function to execute 309 * @arg: argument to @fn 314 * and will remain untouched until stopper starts executing @fn. 319 void stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, stop_one_cpu_nowait() argument 322 *work_buf = (struct cpu_stop_work){ .fn = fn, .arg = arg, }; stop_one_cpu_nowait() 331 cpu_stop_fn_t fn, void *arg, queue_stop_cpus_work() 340 work->fn = fn; for_each_cpu() 348 * to enter @fn which can lead to deadlock. 357 cpu_stop_fn_t fn, void *arg) __stop_cpus() 362 queue_stop_cpus_work(cpumask, fn, arg, &done); __stop_cpus() 370 * @fn: function to execute 371 * @arg: argument to @fn 373 * Execute @fn(@arg) on online cpus in @cpumask. On each target cpu, 374 * @fn is run in a process context with the highest priority 379 * till @fn completes. If some cpus go down in the middle, execution 380 * on the cpu may happen partially or fully on different cpus. @fn 384 * All stop_cpus() calls are serialized making it safe for @fn to wait 391 * -ENOENT if @fn(@arg) was not executed at all because all cpus in 392 * @cpumask were offline; otherwise, 0 if all executions of @fn 395 int stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) stop_cpus() argument 401 ret = __stop_cpus(cpumask, fn, arg); stop_cpus() 409 * @fn: function to execute 410 * @arg: argument to @fn 420 * @fn(@arg) was not executed at all because all cpus in @cpumask were 421 * offline; otherwise, 0 if all executions of @fn returned 0, any non 424 int try_stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) try_stop_cpus() argument 431 ret = __stop_cpus(cpumask, fn, arg); try_stop_cpus() 465 cpu_stop_fn_t fn = work->fn; cpu_stopper_thread() local 473 ret = fn(arg); cpu_stopper_thread() 481 kallsyms_lookup((unsigned long)fn, NULL, NULL, NULL, cpu_stopper_thread() 550 int __stop_machine(int (*fn)(void *), void *data, const struct cpumask *cpus) __stop_machine() 553 .fn = fn, __stop_machine() 572 ret = (*fn)(data); __stop_machine() 583 int stop_machine(int (*fn)(void *), void *data, const struct cpumask *cpus) stop_machine() 589 ret = __stop_machine(fn, data, cpus); stop_machine() 597 * @fn: the function to run 598 * @data: the data ptr for the @fn() 599 * @cpus: the cpus to run the @fn() on (NULL = any online cpu) 607 * using busy-wait for synchronization and executing @fn directly for local 614 * 0 if all executions of @fn returned 0, any non zero return value if any 617 int stop_machine_from_inactive_cpu(int (*fn)(void *), void *data, stop_machine_from_inactive_cpu() 620 struct multi_stop_data msdata = { .fn = fn, .data = data, stop_machine_from_inactive_cpu() 330 queue_stop_cpus_work(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg, struct cpu_stop_done *done) queue_stop_cpus_work() argument 356 __stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) __stop_cpus() argument
|
H A D | workqueue_internal.h | 30 work_func_t current_func; /* L: current_work's fn */
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | nmi.h | 48 #define register_nmi_handler(t, fn, fg, n, init...) \ 50 static struct nmiaction init fn##_na = { \ 51 .handler = (fn), \ 55 __register_nmi_handler((t), &fn##_na); \
|
H A D | pci_64.h | 20 extern int (*pci_config_read)(int seg, int bus, int dev, int fn, 22 extern int (*pci_config_write)(int seg, int bus, int dev, int fn,
|
H A D | mutex_32.h | 18 * @fn: function to call if the original value was not 1 20 * Change the count from 1 to a value lower than 1, and call <fn> if it
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | traps.h | 32 #define nmi_notifier(fn, pri) \ 34 static struct notifier_block fn##_nb = { \ 35 .notifier_call = fn, \ 39 register_nmi_notifier(&fn##_nb); \
|
H A D | cop2.h | 62 #define cu2_notifier(fn, pri) \ 64 static struct notifier_block fn##_nb = { \ 65 .notifier_call = fn, \ 69 register_cu2_notifier(&fn##_nb); \
|
H A D | cpu-info.h | 113 #define proc_cpuinfo_notifier(fn, pri) \ 115 static struct notifier_block fn##_nb = { \ 116 .notifier_call = fn, \ 120 register_proc_cpuinfo_notifier(&fn##_nb); \
|
/linux-4.1.27/arch/arm/mach-highbank/ |
H A D | core.h | 15 extern void highbank_smc1(int fn, int arg);
|
/linux-4.1.27/arch/x86/include/asm/crypto/ |
H A D | glue_helper.h | 20 #define GLUE_FUNC_CAST(fn) ((common_glue_func_t)(fn)) 21 #define GLUE_CBC_FUNC_CAST(fn) ((common_glue_cbc_func_t)(fn)) 22 #define GLUE_CTR_FUNC_CAST(fn) ((common_glue_ctr_func_t)(fn)) 23 #define GLUE_XTS_FUNC_CAST(fn) ((common_glue_xts_func_t)(fn)) 26 unsigned int num_blocks; /* number of blocks that @fn will process */ 118 extern int glue_cbc_encrypt_128bit(const common_glue_func_t fn, 143 le128 *iv, common_glue_func_t fn);
|
/linux-4.1.27/arch/powerpc/crypto/ |
H A D | sha1-powerpc-asm.S | 102 #define STEPUP4(t, fn) \ 103 STEP##fn##_UPDATE(t); \ 104 STEP##fn##_UPDATE((t)+1); \ 105 STEP##fn##_UPDATE((t)+2); \ 106 STEP##fn##_UPDATE((t)+3) 108 #define STEPUP20(t, fn) \ 109 STEPUP4(t, fn); \ 110 STEPUP4((t)+4, fn); \ 111 STEPUP4((t)+8, fn); \ 112 STEPUP4((t)+12, fn); \ 113 STEPUP4((t)+16, fn)
|
/linux-4.1.27/drivers/sh/intc/ |
H A D | handle.c | 45 unsigned int fn, mode; _intc_mask_data() local 56 fn = REG_FN_WRITE_BASE; _intc_mask_data() 61 fn = REG_FN_MODIFY_BASE; _intc_mask_data() 73 fn += (mr->reg_width >> 3) - 1; _intc_mask_data() 74 return _INTC_MK(fn, mode, _intc_mask_data() 113 unsigned int fn, n, mode, bit; _intc_prio_data() local 124 fn = REG_FN_WRITE_BASE; _intc_prio_data() 129 fn = REG_FN_MODIFY_BASE; _intc_prio_data() 137 fn += (pr->reg_width >> 3) - 1; _intc_prio_data() 144 return _INTC_MK(fn, mode, _intc_prio_data() 179 unsigned int i, j, fn, mode; intc_ack_data() local 189 fn = REG_FN_MODIFY_BASE; intc_ack_data() 194 fn += (mr->reg_width >> 3) - 1; intc_ack_data() 195 return _INTC_MK(fn, mode, intc_ack_data() 211 unsigned long (*fn)(unsigned long, unsigned long, intc_enable_disable() 219 fn = intc_enable_noprio_fns[_INTC_MODE(handle)]; intc_enable_disable() 220 fn(addr, handle, intc_reg_fns[_INTC_FN(handle)], 0); intc_enable_disable() 225 fn = intc_disable_fns[_INTC_MODE(handle)]; intc_enable_disable() 226 fn(addr, handle, intc_reg_fns[_INTC_FN(handle)], 0); intc_enable_disable() 262 unsigned int i, j, fn, bit; intc_get_sense_handle() local 271 fn = REG_FN_MODIFY_BASE; intc_get_sense_handle() 272 fn += (sr->reg_width >> 3) - 1; intc_get_sense_handle() 278 return _INTC_MK(fn, 0, intc_get_reg(d, sr->reg), intc_get_sense_handle()
|
H A D | balancing.c | 45 unsigned int i, j, fn, mode; intc_dist_data() local 62 fn = REG_FN_MODIFY_BASE; intc_dist_data() 67 fn += (mr->reg_width >> 3) - 1; intc_dist_data() 68 return _INTC_MK(fn, mode, intc_dist_data()
|
H A D | access.c | 167 unsigned long (*fn)(unsigned long, intc_mode_field() 172 return fn(addr, handle, ((1 << _INTC_WIDTH(handle)) - 1)); intc_mode_field() 177 unsigned long (*fn)(unsigned long, intc_mode_zero() 182 return fn(addr, handle, 0); intc_mode_zero() 187 unsigned long (*fn)(unsigned long, intc_mode_prio() 192 return fn(addr, handle, intc_get_prio_level(irq)); intc_mode_prio() 211 unsigned long (*fn)(unsigned long, 224 unsigned long (*fn)(unsigned long, 237 unsigned long (*fn)(unsigned long,
|
H A D | internals.h | 10 #define _INTC_MK(fn, mode, addr_e, addr_d, width, shift) \ 11 ((shift) | ((width) << 5) | ((fn) << 9) | ((mode) << 13) | \ 127 unsigned long (*fn)(unsigned long, 132 unsigned long (*fn)(unsigned long, 137 unsigned long (*fn)(unsigned long,
|
/linux-4.1.27/include/uapi/linux/netfilter/ |
H A D | x_tables.h | 127 /* fn returns 0 to continue iteration */ 128 #define XT_MATCH_ITERATE(type, e, fn, args...) \ 139 __ret = fn(__m , ## args); \ 146 /* fn returns 0 to continue iteration */ 147 #define XT_ENTRY_ITERATE_CONTINUE(type, entries, size, n, fn, args...) \ 159 __ret = fn(__entry , ## args); \ 166 /* fn returns 0 to continue iteration */ 167 #define XT_ENTRY_ITERATE(type, entries, size, fn, args...) \ 168 XT_ENTRY_ITERATE_CONTINUE(type, entries, size, 0, fn, args)
|
/linux-4.1.27/virt/kvm/ |
H A D | vfio.c | 37 struct vfio_group *(*fn)(struct file *); kvm_vfio_group_get_external_user() 39 fn = symbol_get(vfio_group_get_external_user); kvm_vfio_group_get_external_user() 40 if (!fn) kvm_vfio_group_get_external_user() 43 vfio_group = fn(filep); kvm_vfio_group_get_external_user() 52 void (*fn)(struct vfio_group *); kvm_vfio_group_put_external_user() 54 fn = symbol_get(vfio_group_put_external_user); kvm_vfio_group_put_external_user() 55 if (!fn) kvm_vfio_group_put_external_user() 58 fn(vfio_group); kvm_vfio_group_put_external_user() 65 long (*fn)(struct vfio_group *, unsigned long); kvm_vfio_group_is_coherent() 68 fn = symbol_get(vfio_external_check_extension); kvm_vfio_group_is_coherent() 69 if (!fn) kvm_vfio_group_is_coherent() 72 ret = fn(vfio_group, VFIO_DMA_CC_IOMMU); kvm_vfio_group_is_coherent()
|
/linux-4.1.27/tools/lib/traceevent/ |
H A D | plugin_mac80211.c | 56 #define SF(fn) pevent_print_num_field(s, fn ":%d", event, fn, record, 0) 57 #define SFX(fn) pevent_print_num_field(s, fn ":%#x", event, fn, record, 0)
|
/linux-4.1.27/drivers/mmc/core/ |
H A D | sdio_ops.h | 16 int mmc_io_rw_direct(struct mmc_card *card, int write, unsigned fn, 18 int mmc_io_rw_extended(struct mmc_card *card, int write, unsigned fn,
|
H A D | sdio_ops.c | 68 static int mmc_io_rw_direct_host(struct mmc_host *host, int write, unsigned fn, mmc_io_rw_direct_host() argument 75 BUG_ON(fn > 7); mmc_io_rw_direct_host() 83 cmd.arg |= fn << 28; mmc_io_rw_direct_host() 114 int mmc_io_rw_direct(struct mmc_card *card, int write, unsigned fn, mmc_io_rw_direct() argument 118 return mmc_io_rw_direct_host(card->host, write, fn, addr, in, out); mmc_io_rw_direct() 121 int mmc_io_rw_extended(struct mmc_card *card, int write, unsigned fn, mmc_io_rw_extended() argument 133 BUG_ON(fn > 7); mmc_io_rw_extended() 145 cmd.arg |= fn << 28; mmc_io_rw_extended()
|
H A D | sdio_cis.c | 240 unsigned char x, fn; sdio_read_cis() local 243 fn = func->num; sdio_read_cis() 245 fn = 0; sdio_read_cis() 248 SDIO_FBR_BASE(fn) + SDIO_FBR_CIS + i, 0, &x); sdio_read_cis()
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | reset.h | 13 void (*fn)(void); member in struct:reset_call
|
H A D | appldata.h | 42 unsigned short fn, void *buffer, appldata_asm() 51 parm_list.function = fn; appldata_asm() 41 appldata_asm(struct appldata_product_id *id, unsigned short fn, void *buffer, unsigned short length) appldata_asm() argument
|
H A D | pci_insn.h | 80 int zpci_refresh_trans(u64 fn, u64 addr, u64 range);
|
/linux-4.1.27/arch/metag/include/asm/ |
H A D | stacktrace.h | 18 int (*fn)(struct stackframe *, void *), void *data);
|
/linux-4.1.27/fs/jffs2/ |
H A D | readinode.c | 33 struct jffs2_raw_node_ref *ref = tn->fn->raw; check_node_data() 154 BUG_ON(ref_obsolete(tn->fn->raw)); check_tn_node() 157 if (ref_flags(tn->fn->raw) != REF_UNCHECKED) check_tn_node() 161 tn->fn->ofs, tn->fn->ofs + tn->fn->size, ref_offset(tn->fn->raw)); check_tn_node() 169 jffs2_mark_node_obsolete(c, tn->fn->raw); check_tn_node() 187 if (tn->fn->ofs < offset) jffs2_lookup_tn() 189 else if (tn->fn->ofs >= offset) jffs2_lookup_tn() 201 jffs2_mark_node_obsolete(c, tn->fn->raw); jffs2_kill_tn() 202 jffs2_free_full_dnode(tn->fn); jffs2_kill_tn() 222 uint32_t fn_end = tn->fn->ofs + tn->fn->size; jffs2_add_tn_to_tree() 225 dbg_readinode("insert fragment %#04x-%#04x, ver %u at %08x\n", tn->fn->ofs, fn_end, tn->version, ref_offset(tn->fn->raw)); jffs2_add_tn_to_tree() 231 if (!tn->fn->size) { jffs2_add_tn_to_tree() 250 this = jffs2_lookup_tn(&rii->tn_root, tn->fn->ofs); jffs2_add_tn_to_tree() 266 dbg_readinode("'this' found %#04x-%#04x (%s)\n", this->fn->ofs, this->fn->ofs + this->fn->size, this->fn ? "data" : "hole"); jffs2_add_tn_to_tree() 270 if (this->fn->ofs > fn_end) jffs2_add_tn_to_tree() 273 this->version, this->fn->ofs, this->fn->size); jffs2_add_tn_to_tree() 293 this->fn->ofs >= tn->fn->ofs && jffs2_add_tn_to_tree() 294 this->fn->ofs + this->fn->size <= fn_end) { jffs2_add_tn_to_tree() 302 while (this && this->fn->ofs + this->fn->size <= fn_end) { jffs2_add_tn_to_tree() 307 this->version, this->fn->ofs, jffs2_add_tn_to_tree() 308 this->fn->ofs+this->fn->size); jffs2_add_tn_to_tree() 317 this->fn->ofs <= tn->fn->ofs && jffs2_add_tn_to_tree() 318 this->fn->ofs+this->fn->size >= fn_end) { jffs2_add_tn_to_tree() 345 if (tn->fn->ofs > insert_point->fn->ofs) jffs2_add_tn_to_tree() 347 else if (tn->fn->ofs < insert_point->fn->ofs || jffs2_add_tn_to_tree() 348 tn->fn->size < insert_point->fn->size) jffs2_add_tn_to_tree() 361 if (this->fn->ofs + this->fn->size > tn->fn->ofs) { jffs2_add_tn_to_tree() 363 this, this->version, this->fn->ofs, jffs2_add_tn_to_tree() 364 this->fn->ofs+this->fn->size); jffs2_add_tn_to_tree() 386 while (this && this->fn->ofs < fn_end) { jffs2_add_tn_to_tree() 389 this->version, this->fn->ofs, jffs2_add_tn_to_tree() 390 this->fn->ofs+this->fn->size); jffs2_add_tn_to_tree() 462 rii->latest_ref = rii->mdata_tn->fn->raw; jffs2_build_inode_fragtree() 467 dbg_readinode("tn %p ver %d range 0x%x-0x%x ov %d\n", this, this->version, this->fn->ofs, jffs2_build_inode_fragtree() 468 this->fn->ofs+this->fn->size, this->overlapped); jffs2_build_inode_fragtree() 502 this->version, this->fn->ofs, jffs2_build_inode_fragtree() 503 this->fn->ofs+this->fn->size); jffs2_build_inode_fragtree() 512 rii->latest_ref = this->fn->raw; jffs2_build_inode_fragtree() 515 this, this->version, this->fn->ofs, jffs2_build_inode_fragtree() 516 this->fn->ofs+this->fn->size, this->overlapped); jffs2_build_inode_fragtree() 518 ret = jffs2_add_full_dnode_to_inode(c, f, this->fn); jffs2_build_inode_fragtree() 526 jffs2_mark_node_obsolete(c, this->fn->raw); jffs2_build_inode_fragtree() 527 jffs2_free_full_dnode(this->fn); jffs2_build_inode_fragtree() 549 jffs2_free_full_dnode(tn->fn); rbtree_postorder_for_each_entry_safe() 812 tn->fn = jffs2_alloc_full_dnode(); read_dnode() 813 if (!tn->fn) { read_dnode() 814 JFFS2_ERROR("alloc fn failed\n"); read_dnode() 820 tn->fn->ofs = je32_to_cpu(rd->offset); read_dnode() 823 tn->fn->raw = ref; read_dnode() 832 tn->fn->size = csize; read_dnode() 834 tn->fn->size = je32_to_cpu(rd->dsize); read_dnode() 843 jffs2_free_full_dnode(tn->fn); read_dnode() 853 tn, tn->version, tn->fn->ofs, read_dnode() 854 tn->fn->ofs+tn->fn->size, tn->overlapped); read_dnode() 1158 jffs2_free_full_dnode(rii.mdata_tn->fn); jffs2_do_read_inode_internal() 1166 if (rii.mdata_tn->fn->raw == rii.latest_ref) { jffs2_do_read_inode_internal() 1167 f->metadata = rii.mdata_tn->fn; jffs2_do_read_inode_internal()
|
H A D | write.c | 64 struct jffs2_full_dnode *fn; jffs2_write_dnode() local 88 fn = jffs2_alloc_full_dnode(); jffs2_write_dnode() 89 if (!fn) jffs2_write_dnode() 167 jffs2_free_full_dnode(fn); jffs2_write_dnode() 182 fn->raw = jffs2_add_physical_node_ref(c, flash_ofs, PAD(sizeof(*ri)+datalen), f->inocache); jffs2_write_dnode() 183 if (IS_ERR(fn->raw)) { jffs2_write_dnode() 184 void *hold_err = fn->raw; jffs2_write_dnode() 186 jffs2_free_full_dnode(fn); jffs2_write_dnode() 189 fn->ofs = je32_to_cpu(ri->offset); jffs2_write_dnode() 190 fn->size = je32_to_cpu(ri->dsize); jffs2_write_dnode() 191 fn->frags = 0; jffs2_write_dnode() 202 return fn; jffs2_write_dnode() 351 struct jffs2_full_dnode *fn; jffs2_write_inode_range() local 390 fn = jffs2_write_dnode(c, f, ri, comprbuf, cdatalen, ALLOC_NORETRY); jffs2_write_inode_range() 394 if (IS_ERR(fn)) { jffs2_write_inode_range() 395 ret = PTR_ERR(fn); jffs2_write_inode_range() 406 ret = jffs2_add_full_dnode_to_inode(c, f, fn); jffs2_write_inode_range() 416 jffs2_mark_node_obsolete(c, fn->raw); jffs2_write_inode_range() 417 jffs2_free_full_dnode(fn); jffs2_write_inode_range() 445 struct jffs2_full_dnode *fn; jffs2_do_create() local 464 fn = jffs2_write_dnode(c, f, ri, NULL, 0, ALLOC_NORMAL); jffs2_do_create() 469 if (IS_ERR(fn)) { jffs2_do_create() 474 return PTR_ERR(fn); jffs2_do_create() 479 f->metadata = fn; jffs2_do_create()
|
H A D | file.c | 155 struct jffs2_full_dnode *fn; jffs2_write_begin() local 188 fn = jffs2_write_dnode(c, f, &ri, NULL, 0, ALLOC_NORMAL); jffs2_write_begin() 190 if (IS_ERR(fn)) { jffs2_write_begin() 191 ret = PTR_ERR(fn); jffs2_write_begin() 196 ret = jffs2_add_full_dnode_to_inode(c, f, fn); jffs2_write_begin() 205 jffs2_mark_node_obsolete(c, fn->raw); jffs2_write_begin() 206 jffs2_free_full_dnode(fn); jffs2_write_begin()
|
H A D | gc.c | 35 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn, 38 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn, 481 struct jffs2_full_dnode *fn = NULL; jffs2_garbage_collect_live() local 508 fn = f->metadata; jffs2_garbage_collect_live() 509 ret = jffs2_garbage_collect_metadata(c, jeb, f, fn); jffs2_garbage_collect_live() 516 fn = frag->node; jffs2_garbage_collect_live() 524 if (fn) { jffs2_garbage_collect_live() 537 ret = jffs2_garbage_collect_hole(c, jeb, f, fn, start, end); jffs2_garbage_collect_live() 540 ret = jffs2_garbage_collect_dnode(c, jeb, f, fn, start, end); jffs2_garbage_collect_live() 739 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn) jffs2_garbage_collect_metadata() 758 mdatalen = fn->size; jffs2_garbage_collect_metadata() 759 mdata = kmalloc(fn->size, GFP_KERNEL); jffs2_garbage_collect_metadata() 764 ret = jffs2_read_dnode(c, f, fn, mdata, 0, mdatalen); jffs2_garbage_collect_metadata() 821 jffs2_mark_node_obsolete(c, fn->raw); jffs2_garbage_collect_metadata() 822 jffs2_free_full_dnode(fn); jffs2_garbage_collect_metadata() 994 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn, jffs2_garbage_collect_hole() 1008 if(fn->frags > 1) { jffs2_garbage_collect_hole() 1013 ret = jffs2_flash_read(c, ref_offset(fn->raw), sizeof(ri), &readlen, (char *)&ri); jffs2_garbage_collect_hole() 1021 __func__, ref_offset(fn->raw), jffs2_garbage_collect_hole() 1027 __func__, ref_offset(fn->raw), jffs2_garbage_collect_hole() 1034 __func__, ref_offset(fn->raw), jffs2_garbage_collect_hole() 1043 __func__, ref_offset(fn->raw)); jffs2_garbage_collect_hole() 1110 D1(if(unlikely(fn->frags <= 1)) { jffs2_garbage_collect_hole() 1111 pr_warn("%s(): Replacing fn with %d frag(s) but new ver %d != highest_version %d of ino #%d\n", jffs2_garbage_collect_hole() 1112 __func__, fn->frags, je32_to_cpu(ri.version), jffs2_garbage_collect_hole() 1119 for (frag = jffs2_lookup_node_frag(&f->fragtree, fn->ofs); jffs2_garbage_collect_hole() 1121 if (frag->ofs > fn->size + fn->ofs) jffs2_garbage_collect_hole() 1123 if (frag->node == fn) { jffs2_garbage_collect_hole() 1126 fn->frags--; jffs2_garbage_collect_hole() 1129 if (fn->frags) { jffs2_garbage_collect_hole() 1138 jffs2_mark_node_obsolete(c, fn->raw); jffs2_garbage_collect_hole() 1139 jffs2_free_full_dnode(fn); jffs2_garbage_collect_hole() 1145 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn, jffs2_garbage_collect_dnode() 738 jffs2_garbage_collect_metadata(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn) jffs2_garbage_collect_metadata() argument 993 jffs2_garbage_collect_hole(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn, uint32_t start, uint32_t end) jffs2_garbage_collect_hole() argument 1144 jffs2_garbage_collect_dnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *orig_jeb, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn, uint32_t start, uint32_t end) jffs2_garbage_collect_dnode() argument
|
H A D | dir.c | 285 struct jffs2_full_dnode *fn; jffs2_symlink() local 336 fn = jffs2_write_dnode(c, f, ri, target, targetlen, ALLOC_NORMAL); jffs2_symlink() 340 if (IS_ERR(fn)) { jffs2_symlink() 344 ret = PTR_ERR(fn); jffs2_symlink() 364 f->metadata = fn; jffs2_symlink() 447 struct jffs2_full_dnode *fn; jffs2_mkdir() local 494 fn = jffs2_write_dnode(c, f, ri, NULL, 0, ALLOC_NORMAL); jffs2_mkdir() 498 if (IS_ERR(fn)) { jffs2_mkdir() 502 ret = PTR_ERR(fn); jffs2_mkdir() 508 f->metadata = fn; jffs2_mkdir() 615 struct jffs2_full_dnode *fn; jffs2_mknod() local 667 fn = jffs2_write_dnode(c, f, ri, (char *)&dev, devlen, ALLOC_NORMAL); jffs2_mknod() 671 if (IS_ERR(fn)) { jffs2_mknod() 675 ret = PTR_ERR(fn); jffs2_mknod() 681 f->metadata = fn; jffs2_mknod()
|
H A D | nodelist.c | 149 static struct jffs2_node_frag * new_fragment(struct jffs2_full_dnode *fn, uint32_t ofs, uint32_t size) new_fragment() argument 157 newfrag->node = fn; new_fragment() 363 int jffs2_add_full_dnode_to_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn) jffs2_add_full_dnode_to_inode() argument 368 if (unlikely(!fn->size)) jffs2_add_full_dnode_to_inode() 371 newfrag = new_fragment(fn, fn->ofs, fn->size); jffs2_add_full_dnode_to_inode() 377 fn->ofs, fn->ofs+fn->size, ref_offset(fn->raw), newfrag); jffs2_add_full_dnode_to_inode() 388 mark_ref_normal(fn->raw); jffs2_add_full_dnode_to_inode() 398 mark_ref_normal(fn->raw); jffs2_add_full_dnode_to_inode()
|
/linux-4.1.27/tools/usb/usbip/src/ |
H A D | usbip.c | 48 int (*fn)(int argc, char *argv[]); member in struct:command 56 .fn = usbip_help, 62 .fn = usbip_version, 68 .fn = usbip_attach, 74 .fn = usbip_detach, 80 .fn = usbip_list, 86 .fn = usbip_bind, 92 .fn = usbip_unbind, 98 .fn = usbip_port_show, 142 return cmd->fn(argc, argv); run_command()
|
/linux-4.1.27/drivers/base/ |
H A D | attribute_container.c | 127 * @fn: function to trigger addition of class device. 131 * fn is provided, the code will simply register the class device via 143 int (*fn)(struct attribute_container *, attribute_container_add_device() 171 if (fn) attribute_container_add_device() 172 fn(cont, dev, &ic->classdev); attribute_container_add_device() 195 * @fn: A function to call to remove the device 197 * This routine triggers device removal. If fn is NULL, then it is 202 * device, then you should use this routine with a fn that calls 208 void (*fn)(struct attribute_container *, attribute_container_remove_device() 229 if (fn) attribute_container_remove_device() 230 fn(cont, dev, &ic->classdev); attribute_container_remove_device() 244 * @fn the function to execute for each classdev. 252 int (*fn)(struct attribute_container *, attribute_container_device_trigger() 267 fn(cont, dev, NULL); attribute_container_device_trigger() 273 fn(cont, dev, &ic->classdev); attribute_container_device_trigger() 283 * @fn: the function to trigger 293 int (*fn)(struct attribute_container *, attribute_container_trigger() 301 fn(cont, dev); attribute_container_trigger()
|
H A D | driver.c | 39 * @fn: Function to call for each device. 41 * Iterate over the @drv's list of devices calling @fn for each one. 44 void *data, int (*fn)(struct device *, void *)) driver_for_each_device() 56 error = fn(dev, data); driver_for_each_device()
|
H A D | class.c | 352 * @fn: function to be called for each device 354 * Iterate over @class's list of devices, and call @fn for each, 359 * We check the return of @fn each time. If it returns anything 362 * @fn is allowed to do anything including calling back into class 366 void *data, int (*fn)(struct device *, void *)) class_for_each_device() 382 error = fn(dev, data); class_for_each_device() 409 * @fn is allowed to do anything including calling back into class
|
/linux-4.1.27/arch/arm64/kernel/ |
H A D | psci.c | 129 u32 fn, power_state; psci_cpu_suspend() local 131 fn = psci_function_id[PSCI_FN_CPU_SUSPEND]; psci_cpu_suspend() 133 err = invoke_psci_fn(fn, power_state, entry_point, 0); psci_cpu_suspend() 140 u32 fn, power_state; psci_cpu_off() local 142 fn = psci_function_id[PSCI_FN_CPU_OFF]; psci_cpu_off() 144 err = invoke_psci_fn(fn, power_state, 0, 0); psci_cpu_off() 151 u32 fn; psci_cpu_on() local 153 fn = psci_function_id[PSCI_FN_CPU_ON]; psci_cpu_on() 154 err = invoke_psci_fn(fn, cpuid, entry_point, 0); psci_cpu_on() 161 u32 fn; psci_migrate() local 163 fn = psci_function_id[PSCI_FN_MIGRATE]; psci_migrate() 164 err = invoke_psci_fn(fn, cpuid, 0, 0); psci_migrate() 172 u32 fn; psci_affinity_info() local 174 fn = psci_function_id[PSCI_FN_AFFINITY_INFO]; psci_affinity_info() 175 err = invoke_psci_fn(fn, target_affinity, lowest_affinity_level, 0); psci_affinity_info() 182 u32 fn; psci_migrate_info_type() local 184 fn = psci_function_id[PSCI_FN_MIGRATE_INFO_TYPE]; psci_migrate_info_type() 185 err = invoke_psci_fn(fn, 0, 0, 0); psci_migrate_info_type()
|
H A D | suspend.c | 13 extern int __cpu_suspend_enter(unsigned long arg, int (*fn)(unsigned long)); 58 * fn: finisher function pointer 61 int cpu_suspend(unsigned long arg, int (*fn)(unsigned long)) cpu_suspend() 87 ret = __cpu_suspend_enter(arg, fn); cpu_suspend()
|
H A D | debug-monitors.c | 218 retval = hook->fn(regs, esr); call_step_hook() 295 int (*fn)(struct pt_regs *regs, unsigned int esr) = NULL; call_break_hook() 300 fn = hook->fn; call_break_hook() 303 return fn ? fn(regs, esr) : DBG_HOOK_ERROR; call_break_hook()
|
H A D | stacktrace.c | 57 int (*fn)(struct stackframe *, void *), void *data) walk_stackframe() 62 if (fn(frame, data)) walk_stackframe()
|
/linux-4.1.27/kernel/trace/ |
H A D | trace_probe.c | 75 #define CHECK_FETCH_FUNCS(method, fn) \ 76 (((FETCH_FUNC_NAME(method, u8) == fn) || \ 77 (FETCH_FUNC_NAME(method, u16) == fn) || \ 78 (FETCH_FUNC_NAME(method, u32) == fn) || \ 79 (FETCH_FUNC_NAME(method, u64) == fn) || \ 80 (FETCH_FUNC_NAME(method, string) == fn) || \ 81 (FETCH_FUNC_NAME(method, string_size) == fn)) \ 82 && (fn != NULL)) 151 if (CHECK_FETCH_FUNCS(deref, data->orig.fn)) update_deref_fetch_param() 153 else if (CHECK_FETCH_FUNCS(symbol, data->orig.fn)) update_deref_fetch_param() 160 if (CHECK_FETCH_FUNCS(deref, data->orig.fn)) free_deref_fetch_param() 162 else if (CHECK_FETCH_FUNCS(symbol, data->orig.fn)) free_deref_fetch_param() 200 if (CHECK_FETCH_FUNCS(deref, data->orig.fn)) update_bitfield_fetch_param() 202 else if (CHECK_FETCH_FUNCS(symbol, data->orig.fn)) update_bitfield_fetch_param() 213 if (CHECK_FETCH_FUNCS(deref, data->orig.fn)) free_bitfield_fetch_param() 215 else if (CHECK_FETCH_FUNCS(symbol, data->orig.fn)) free_bitfield_fetch_param() 329 f->fn = t->fetch[FETCH_MTD_retval]; parse_probe_vars() 338 f->fn = fetch_kernel_stack_address; parse_probe_vars() 340 f->fn = fetch_user_stack_address; parse_probe_vars() 346 f->fn = t->fetch[FETCH_MTD_stack]; parse_probe_vars() 375 f->fn = t->fetch[FETCH_MTD_reg]; parse_probe_arg() 387 f->fn = t->fetch[FETCH_MTD_memory]; parse_probe_arg() 398 f->fn = t->fetch[FETCH_MTD_file_offset]; parse_probe_arg() 411 f->fn = t->fetch[FETCH_MTD_symbol]; parse_probe_arg() 451 f->fn = t->fetch[FETCH_MTD_deref]; parse_probe_arg() 457 if (!ret && !f->fn) { /* Parsed, but do not find fetch method */ parse_probe_arg() 484 f->fn = t->fetch[FETCH_MTD_bitfield]; __parse_bitfield_probe_arg() 539 parg->fetch_size.fn = get_fetch_size_function(parg->type, traceprobe_parse_probe_arg() 540 parg->fetch.fn, traceprobe_parse_probe_arg() 567 if (CHECK_FETCH_FUNCS(bitfield, arg->fetch.fn)) traceprobe_update_arg() 569 else if (CHECK_FETCH_FUNCS(deref, arg->fetch.fn)) traceprobe_update_arg() 571 else if (CHECK_FETCH_FUNCS(symbol, arg->fetch.fn)) traceprobe_update_arg() 577 if (CHECK_FETCH_FUNCS(bitfield, arg->fetch.fn)) traceprobe_free_probe_arg() 579 else if (CHECK_FETCH_FUNCS(deref, arg->fetch.fn)) traceprobe_free_probe_arg() 581 else if (CHECK_FETCH_FUNCS(symbol, arg->fetch.fn)) traceprobe_free_probe_arg()
|
H A D | trace_events_filter.c | 489 if (!WARN_ON_ONCE(!pred->fn)) process_ops() 490 match = pred->fn(pred, rec); process_ops() 520 if (!WARN_ON_ONCE(!pred->fn)) filter_match_preds_cb() 521 d->match = pred->fn(pred, d->rec); filter_match_preds_cb() 834 pred->fn = filter_pred_none; __alloc_preds() 946 filter_pred_fn_t fn = NULL; select_comparison_fn() local 951 fn = filter_pred_64; select_comparison_fn() 953 fn = filter_pred_s64; select_comparison_fn() 955 fn = filter_pred_u64; select_comparison_fn() 959 fn = filter_pred_32; select_comparison_fn() 961 fn = filter_pred_s32; select_comparison_fn() 963 fn = filter_pred_u32; select_comparison_fn() 967 fn = filter_pred_16; select_comparison_fn() 969 fn = filter_pred_s16; select_comparison_fn() 971 fn = filter_pred_u16; select_comparison_fn() 975 fn = filter_pred_8; select_comparison_fn() 977 fn = filter_pred_s8; select_comparison_fn() 979 fn = filter_pred_u8; select_comparison_fn() 983 return fn; select_comparison_fn() 991 filter_pred_fn_t fn = filter_pred_none; init_pred() local 1006 fn = filter_pred_string; init_pred() 1009 fn = filter_pred_strloc; init_pred() 1011 fn = filter_pred_pchar; init_pred() 1028 fn = select_comparison_fn(pred->op, field->size, init_pred() 1030 if (!fn) { init_pred() 1039 pred->fn = fn; init_pred() 2374 WARN_ON(!pred->fn); test_walk_pred_cb() 2375 pred->fn = test_pred_visited_fn; test_walk_pred_cb()
|
/linux-4.1.27/block/ |
H A D | blk-mq-cpu.c | 57 int (*fn)(void *, unsigned long, unsigned int), blk_mq_init_cpu_notifier() 60 notifier->notify = fn; blk_mq_init_cpu_notifier()
|
H A D | t10-pi.c | 49 static int t10_pi_generate(struct blk_integrity_iter *iter, csum_fn *fn, t10_pi_generate() argument 57 pi->guard_tag = fn(iter->data_buf, iter->interval); t10_pi_generate() 73 static int t10_pi_verify(struct blk_integrity_iter *iter, csum_fn *fn, t10_pi_verify() argument 104 csum = fn(iter->data_buf, iter->interval); t10_pi_verify()
|
/linux-4.1.27/arch/arm/mach-shmobile/ |
H A D | platsmp.c | 22 void shmobile_smp_hook(unsigned int cpu, unsigned long fn, unsigned long arg) shmobile_smp_hook() argument 28 shmobile_smp_fn[cpu] = fn; shmobile_smp_hook()
|
H A D | common.h | 14 extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,
|
H A D | platsmp-apmu.c | 70 static int apmu_wrap(int cpu, int (*fn)(void __iomem *p, int cpu)) apmu_wrap() 74 return p ? fn(p, apmu_cpus[cpu].bit) : -EINVAL; apmu_wrap() 88 static void apmu_parse_cfg(void (*fn)(struct resource *res, int cpu, int bit), apmu_parse_cfg() 114 fn(&apmu_config[k].iomem, index, bit); apmu_parse_cfg()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
H A D | nouveau_ioc32.c | 53 drm_ioctl_compat_t *fn = NULL; nouveau_compat_ioctl() local 61 fn = nouveau_compat_ioctls[nr - DRM_COMMAND_BASE]; nouveau_compat_ioctl() 63 if (fn != NULL) nouveau_compat_ioctl() 64 ret = (*fn)(filp, cmd, arg); nouveau_compat_ioctl()
|
/linux-4.1.27/arch/mips/pci/ |
H A D | ops-bridge.c | 49 int fn = PCI_FUNC(devfn); pci_conf0_read_config() local 54 addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[PCI_VENDOR_ID]; pci_conf0_read_config() 65 addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[where ^ (4 - size)]; pci_conf0_read_config() 91 addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; pci_conf0_read_config() 110 int fn = PCI_FUNC(devfn); pci_conf1_read_config() local 116 addr = &bridge->b_type1_cfg.c[(fn << 8) | PCI_VENDOR_ID]; pci_conf1_read_config() 128 addr = &bridge->b_type1_cfg.c[(fn << 8) | (where ^ (4 - size))]; pci_conf1_read_config() 155 addr = &bridge->b_type1_cfg.c[(fn << 8) | where]; pci_conf1_read_config() 182 int fn = PCI_FUNC(devfn); pci_conf0_write_config() local 187 addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[PCI_VENDOR_ID]; pci_conf0_write_config() 198 addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[where ^ (4 - size)]; pci_conf0_write_config() 226 addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; pci_conf0_write_config() 248 int fn = PCI_FUNC(devfn); pci_conf1_write_config() local 255 addr = &bridge->b_type1_cfg.c[(fn << 8) | PCI_VENDOR_ID]; pci_conf1_write_config() 266 addr = &bridge->b_type1_cfg.c[(fn << 8) | (where ^ (4 - size))]; pci_conf1_write_config() 294 addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; pci_conf1_write_config()
|
/linux-4.1.27/arch/arm64/include/asm/ |
H A D | suspend.h | 24 extern int cpu_suspend(unsigned long arg, int (*fn)(unsigned long));
|
H A D | stacktrace.h | 27 int (*fn)(struct stackframe *, void *), void *data);
|
H A D | traps.h | 31 int (*fn)(struct pt_regs *regs, u32 instr); member in struct:undef_hook
|
H A D | debug-monitors.h | 112 int (*fn)(struct pt_regs *regs, unsigned int esr); member in struct:step_hook 122 int (*fn)(struct pt_regs *regs, unsigned int esr); member in struct:break_hook
|
H A D | system_misc.h | 36 void hook_debug_fault_code(int nr, int (*fn)(unsigned long, unsigned int,
|
/linux-4.1.27/arch/avr32/include/asm/ |
H A D | traps.h | 17 int (*fn)(struct pt_regs *regs, u32 insn); member in struct:undef_hook
|
H A D | setup.h | 121 #define __tagtable(tag, fn) \ 122 static struct tagtable __tagtable_##fn __tag = { tag, fn }
|
/linux-4.1.27/arch/arm/probes/kprobes/ |
H A D | actions-arm.c | 92 BLX("%[fn]") emulate_ldrdstrd() 95 [fn] "r" (asi->insn_fn) emulate_ldrdstrd() 120 BLX("%[fn]") emulate_ldr() 122 : "1" (rnv), "r" (rmv), [fn] "r" (asi->insn_fn) emulate_ldr() 152 BLX("%[fn]") emulate_str() 154 : "r" (rtv), "0" (rnv), "r" (rmv), [fn] "r" (asi->insn_fn) emulate_str() 182 BLX("%[fn]") emulate_rd12rn16rm0rs8_rwflags() 186 "1" (cpsr), [fn] "r" (asi->insn_fn) emulate_rd12rn16rm0rs8_rwflags() 212 BLX("%[fn]") emulate_rd12rn16rm0_rwflags_nopc() 216 "1" (cpsr), [fn] "r" (asi->insn_fn) emulate_rd12rn16rm0_rwflags_nopc() 242 BLX("%[fn]") emulate_rd16rn12rm0rs8_rwflags_nopc() 246 "1" (cpsr), [fn] "r" (asi->insn_fn) emulate_rd16rn12rm0rs8_rwflags_nopc() 265 BLX("%[fn]") emulate_rd12rm0_noflags_nopc() 267 : "0" (rdv), "r" (rmv), [fn] "r" (asi->insn_fn) emulate_rd12rm0_noflags_nopc() 292 BLX("%[fn]") emulate_rdlo12rdhi16rn0rm8_rwflags_nopc() 296 "2" (cpsr), [fn] "r" (asi->insn_fn) emulate_rdlo12rdhi16rn0rm8_rwflags_nopc()
|
H A D | actions-thumb.c | 175 "blx %[fn]" t32_emulate_ldrdstrd() 177 : "0" (rt1v), "1" (rt2v), "2" (rnv), [fn] "r" (asi->insn_fn) t32_emulate_ldrdstrd() 200 "blx %[fn]" t32_emulate_ldrstr() 202 : "0" (rtv), "1" (rnv), "r" (rmv), [fn] "r" (asi->insn_fn) t32_emulate_ldrstr() 228 "blx %[fn] \n\t" t32_emulate_rd8rn16rm0_rwflags() 232 "1" (cpsr), [fn] "r" (asi->insn_fn) t32_emulate_rd8rn16rm0_rwflags() 251 "blx %[fn]" t32_emulate_rd8pc16_noflags() 253 : "0" (rdv), "r" (rnv), [fn] "r" (asi->insn_fn) t32_emulate_rd8pc16_noflags() 271 "blx %[fn]" t32_emulate_rd8rn16_noflags() 273 : "0" (rdv), "r" (rnv), [fn] "r" (asi->insn_fn) t32_emulate_rd8rn16_noflags() 296 "blx %[fn]" t32_emulate_rdlo12rdhi8rn16rm0_noflags() 299 [fn] "r" (asi->insn_fn) t32_emulate_rdlo12rdhi8rn16rm0_noflags() 454 "blx %[fn] \n\t" t16_emulate_loregs() 459 [fn] "r" (asi->insn_fn) t16_emulate_loregs() 500 "blx %[fn] \n\t" t16_emulate_hiregs() 503 : "0" (rdnv), "r" (rmv), "1" (cpsr), [fn] "r" (asi->insn_fn) t16_emulate_hiregs() 533 "blx %[fn] \n\t" t16_emulate_push() 536 : [regs] "r" (regs), [fn] "r" (asi->insn_fn) t16_emulate_push() 566 "blx %[fn] \n\t" t16_emulate_pop_nopc() 570 : [regs] "r" (regs), [fn] "r" (asi->insn_fn) t16_emulate_pop_nopc() 585 "blx %[fn] \n\t" t16_emulate_pop_pc() 589 : [regs] "r" (regs), [fn] "r" (asi->insn_fn) t16_emulate_pop_pc()
|
H A D | actions-common.c | 93 "blx %[fn] \n\t" emulate_generic_r0_12_noflags() 95 "str %[fn], [sp, #-4]! \n\t" emulate_generic_r0_12_noflags() 103 : [regs] "=r" (rregs), [fn] "=r" (rfn) emulate_generic_r0_12_noflags()
|
/linux-4.1.27/arch/arm/mach-omap2/ |
H A D | soc.h | 539 #define omap_initcall(level, fn) \ 540 static int __init __used __##fn(void) \ 544 return fn(); \ 546 level(__##fn); 548 #define omap_early_initcall(fn) omap_initcall(early_initcall, fn) 549 #define omap_core_initcall(fn) omap_initcall(core_initcall, fn) 550 #define omap_postcore_initcall(fn) omap_initcall(postcore_initcall, fn) 551 #define omap_arch_initcall(fn) omap_initcall(arch_initcall, fn) 552 #define omap_subsys_initcall(fn) omap_initcall(subsys_initcall, fn) 553 #define omap_device_initcall(fn) omap_initcall(device_initcall, fn) 554 #define omap_late_initcall(fn) omap_initcall(late_initcall, fn) 555 #define omap_late_initcall_sync(fn) omap_initcall(late_initcall_sync, fn)
|
H A D | prm.h | 130 * struct prm_ll_data - fn ptrs to per-SoC PRM function implementations 132 * @was_any_context_lost_old: ptr to the SoC PRM context loss test fn 133 * @clear_context_loss_flags_old: ptr to the SoC PRM context loss flag clear fn
|
/linux-4.1.27/arch/s390/pci/ |
H A D | pci_insn.c | 47 static inline u8 __rpcit(u64 fn, u64 addr, u64 range, u8 *status) __rpcit() argument 54 " .insn rre,0xb9d30000,%[fn],%[addr]\n" __rpcit() 57 : [cc] "=d" (cc), [fn] "+d" (fn) __rpcit() 60 *status = fn >> 24 & 0xff; __rpcit() 64 int zpci_refresh_trans(u64 fn, u64 addr, u64 range) zpci_refresh_trans() argument 69 cc = __rpcit(fn, addr, range, &status); zpci_refresh_trans()
|
/linux-4.1.27/init/ |
H A D | main.c | 685 ctor_fn_t *fn = (ctor_fn_t *) __ctors_start; do_ctors() local 687 for (; fn < (ctor_fn_t *) __ctors_end; fn++) do_ctors() 688 (*fn)(); do_ctors() 723 static bool __init_or_module initcall_blacklisted(initcall_t fn) initcall_blacklisted() argument 729 fn_name = kasprintf(GFP_KERNEL, "%pf", fn); initcall_blacklisted() 752 static bool __init_or_module initcall_blacklisted(initcall_t fn) initcall_blacklisted() argument 759 static int __init_or_module do_one_initcall_debug(initcall_t fn) do_one_initcall_debug() argument 765 printk(KERN_DEBUG "calling %pF @ %i\n", fn, task_pid_nr(current)); do_one_initcall_debug() 767 ret = fn(); do_one_initcall_debug() 772 fn, ret, duration); do_one_initcall_debug() 777 int __init_or_module do_one_initcall(initcall_t fn) do_one_initcall() argument 783 if (initcall_blacklisted(fn)) do_one_initcall() 787 ret = do_one_initcall_debug(fn); do_one_initcall() 789 ret = fn(); do_one_initcall() 801 WARN(msgbuf[0], "initcall %pF returned with %s\n", fn, msgbuf); do_one_initcall() 844 initcall_t *fn; do_initcall_level() local 853 for (fn = initcall_levels[level]; fn < initcall_levels[level+1]; fn++) do_initcall_level() 854 do_one_initcall(*fn); do_initcall_level() 887 initcall_t *fn; do_pre_smp_initcalls() local 889 for (fn = __initcall_start; fn < __initcall0_start; fn++) do_pre_smp_initcalls() 890 do_one_initcall(*fn); do_pre_smp_initcalls()
|
/linux-4.1.27/net/ipv4/ |
H A D | fou.c | 398 struct fou_net *fn = net_generic(net, fou_net_id); fou_add_to_port_list() local 401 mutex_lock(&fn->fou_lock); fou_add_to_port_list() 402 list_for_each_entry(fout, &fn->fou_list, list) { fou_add_to_port_list() 404 mutex_unlock(&fn->fou_lock); fou_add_to_port_list() 409 list_add(&fou->list, &fn->fou_list); fou_add_to_port_list() 410 mutex_unlock(&fn->fou_lock); fou_add_to_port_list() 529 struct fou_net *fn = net_generic(net, fou_net_id); fou_destroy() local 534 mutex_lock(&fn->fou_lock); fou_destroy() 535 list_for_each_entry(fou, &fn->fou_list, list) { fou_destroy() 542 mutex_unlock(&fn->fou_lock); fou_destroy() 661 struct fou_net *fn = net_generic(net, fou_net_id); fou_nl_cmd_get_port() local 680 mutex_lock(&fn->fou_lock); fou_nl_cmd_get_port() 681 list_for_each_entry(fout, &fn->fou_list, list) { fou_nl_cmd_get_port() 689 mutex_unlock(&fn->fou_lock); fou_nl_cmd_get_port() 703 struct fou_net *fn = net_generic(net, fou_net_id); fou_nl_dump() local 707 mutex_lock(&fn->fou_lock); fou_nl_dump() 708 list_for_each_entry(fout, &fn->fou_list, list) { fou_nl_dump() 717 mutex_unlock(&fn->fou_lock); fou_nl_dump() 940 struct fou_net *fn = net_generic(net, fou_net_id); fou_init_net() local 942 INIT_LIST_HEAD(&fn->fou_list); fou_init_net() 943 mutex_init(&fn->fou_lock); fou_init_net() 949 struct fou_net *fn = net_generic(net, fou_net_id); fou_exit_net() local 953 mutex_lock(&fn->fou_lock); fou_exit_net() 954 list_for_each_entry_safe(fou, next, &fn->fou_list, list) fou_exit_net() 956 mutex_unlock(&fn->fou_lock); fou_exit_net()
|
/linux-4.1.27/arch/x86/xen/ |
H A D | multicalls.c | 47 void (*fn)(void *); member in struct:mc_buffer::callback 123 (*cb->fn)(cb->data); xen_mc_flush() 193 void xen_mc_callback(void (*fn)(void *), void *data) xen_mc_callback() 203 trace_xen_mc_callback(fn, data); xen_mc_callback() 206 cb->fn = fn; xen_mc_callback()
|
H A D | multicalls.h | 54 void xen_mc_callback(void (*fn)(void *), void *data);
|
/linux-4.1.27/arch/arm/mach-pxa/ |
H A D | irq.c | 148 int (*fn)(struct irq_data *, unsigned int)) pxa_init_irq_common() 169 pxa_internal_irq_chip.irq_set_wake = fn; pxa_init_irq_common() 172 void __init pxa_init_irq(int irq_nr, int (*fn)(struct irq_data *, unsigned int)) pxa_init_irq() 178 pxa_init_irq_common(NULL, irq_nr, fn); pxa_init_irq() 237 void __init pxa_dt_irq_init(int (*fn)(struct irq_data *, unsigned int)) pxa_dt_irq_init() 272 pxa_init_irq_common(node, pxa_internal_irq_nr, fn); pxa_dt_irq_init()
|
H A D | generic.h | 17 extern void __init pxa_dt_irq_init(int (*fn)(struct irq_data *,
|
/linux-4.1.27/arch/xtensa/include/asm/ |
H A D | stacktrace.h | 33 int (*fn)(struct stackframe *frame, void *data),
|
/linux-4.1.27/arch/unicore32/include/asm/ |
H A D | stacktrace.h | 29 int (*fn)(struct stackframe *, void *), void *data);
|
/linux-4.1.27/drivers/usb/gadget/function/ |
H A D | f_uac2.c | 1002 afunc_bind(struct usb_configuration *cfg, struct usb_function *fn) afunc_bind() argument 1004 struct audio_dev *agdev = func_to_agdev(fn); afunc_bind() 1014 uac2_opts = container_of(fn->fi, struct f_uac2_opts, func_inst); afunc_bind() 1050 ret = usb_interface_id(cfg, fn); afunc_bind() 1059 ret = usb_interface_id(cfg, fn); afunc_bind() 1069 ret = usb_interface_id(cfg, fn); afunc_bind() 1105 ret = usb_assign_descriptors(fn, fs_audio_desc, hs_audio_desc, NULL); afunc_bind() 1131 usb_free_all_descriptors(fn); afunc_bind() 1143 afunc_set_alt(struct usb_function *fn, unsigned intf, unsigned alt) afunc_set_alt() argument 1145 struct usb_composite_dev *cdev = fn->config->cdev; afunc_set_alt() 1146 struct audio_dev *agdev = func_to_agdev(fn); afunc_set_alt() 1173 config_ep_by_speed(gadget, fn, ep); afunc_set_alt() 1183 config_ep_by_speed(gadget, fn, ep); afunc_set_alt() 1247 afunc_get_alt(struct usb_function *fn, unsigned intf) afunc_get_alt() argument 1249 struct audio_dev *agdev = func_to_agdev(fn); afunc_get_alt() 1267 afunc_disable(struct usb_function *fn) afunc_disable() argument 1269 struct audio_dev *agdev = func_to_agdev(fn); afunc_disable() 1280 in_rq_cur(struct usb_function *fn, const struct usb_ctrlrequest *cr) in_rq_cur() argument 1282 struct usb_request *req = fn->config->cdev->req; in_rq_cur() 1283 struct audio_dev *agdev = func_to_agdev(fn); in_rq_cur() 1321 in_rq_range(struct usb_function *fn, const struct usb_ctrlrequest *cr) in_rq_range() argument 1323 struct usb_request *req = fn->config->cdev->req; in_rq_range() 1324 struct audio_dev *agdev = func_to_agdev(fn); in_rq_range() 1364 ac_rq_in(struct usb_function *fn, const struct usb_ctrlrequest *cr) ac_rq_in() argument 1367 return in_rq_cur(fn, cr); ac_rq_in() 1369 return in_rq_range(fn, cr); ac_rq_in() 1375 out_rq_cur(struct usb_function *fn, const struct usb_ctrlrequest *cr) out_rq_cur() argument 1388 setup_rq_inf(struct usb_function *fn, const struct usb_ctrlrequest *cr) setup_rq_inf() argument 1390 struct audio_dev *agdev = func_to_agdev(fn); setup_rq_inf() 1402 return ac_rq_in(fn, cr); setup_rq_inf() 1404 return out_rq_cur(fn, cr); setup_rq_inf() 1410 afunc_setup(struct usb_function *fn, const struct usb_ctrlrequest *cr) afunc_setup() argument 1412 struct usb_composite_dev *cdev = fn->config->cdev; afunc_setup() 1413 struct audio_dev *agdev = func_to_agdev(fn); afunc_setup() 1424 value = setup_rq_inf(fn, cr); afunc_setup()
|
/linux-4.1.27/drivers/parport/ |
H A D | ieee1284.c | 615 size_t (*fn) (struct parport *, const void *, size_t, int); parport_write() 628 fn = port->ops->compat_write_data; parport_write() 634 fn = port->ops->epp_write_addr; parport_write() 636 fn = port->ops->epp_write_data; parport_write() 643 fn = parport_ieee1284_epp_write_addr; parport_write() 645 fn = parport_ieee1284_epp_write_data; parport_write() 652 fn = port->ops->ecp_write_addr; parport_write() 654 fn = port->ops->ecp_write_data; parport_write() 664 fn = parport_ieee1284_ecp_write_addr; parport_write() 666 fn = parport_ieee1284_ecp_write_data; parport_write() 676 retval = (*fn) (port, buffer, len, 0); parport_write() 708 size_t (*fn) (struct parport *, void *, size_t, int); parport_read() 725 fn = port->ops->byte_read_data; parport_read() 734 fn = port->ops->nibble_read_data; parport_read() 739 fn = port->ops->byte_read_data; parport_read() 745 fn = port->ops->epp_read_addr; parport_read() 747 fn = port->ops->epp_read_data; parport_read() 754 fn = parport_ieee1284_epp_read_addr; parport_read() 756 fn = parport_ieee1284_epp_read_data; parport_read() 762 fn = port->ops->ecp_read_data; parport_read() 768 fn = parport_ieee1284_ecp_read_data; parport_read() 777 return (*fn) (port, buffer, len, 0); parport_read()
|
/linux-4.1.27/net/dccp/ |
H A D | feat.c | 637 struct list_head *fn = dreq ? &dreq->dreq_featneg : &dp->dccps_featneg; dccp_feat_insert_opts() local 643 list_for_each_entry_safe_reverse(pos, next, fn, node) { list_for_each_entry_safe_reverse() 693 * @fn: feature-negotiation list to register with 700 static int __feat_register_nn(struct list_head *fn, u8 feat, __feat_register_nn() argument 713 return dccp_feat_push_change(fn, feat, 1, mandatory, &fval); __feat_register_nn() 718 * @fn: feature-negotiation list to register with 725 static int __feat_register_sp(struct list_head *fn, u8 feat, u8 is_local, __feat_register_sp() argument 741 return dccp_feat_push_change(fn, feat, is_local, mandatory, &fval); __feat_register_sp() 803 struct list_head *fn = &dccp_sk(sk)->dccps_featneg; dccp_feat_signal_nn_change() local 817 entry = dccp_feat_list_lookup(fn, feat, 1); dccp_feat_signal_nn_change() 826 return dccp_feat_push_change(fn, feat, 1, 0, &fval); dccp_feat_signal_nn_change() 936 * @fn: feature-negotiation list to update 942 static int dccp_feat_propagate_ccid(struct list_head *fn, u8 id, bool is_local) dccp_feat_propagate_ccid() argument 949 rc = __feat_register_sp(fn, table[i].dependent_feat, dccp_feat_propagate_ccid() 954 rc = __feat_register_nn(fn, table[i].dependent_feat, dccp_feat_propagate_ccid() 970 struct list_head *fn = &dp->dccps_featneg; dccp_feat_finalise_settings() local 983 list_for_each_entry(entry, fn, node) dccp_feat_finalise_settings() 987 if (ccids[i] > 0 && dccp_feat_propagate_ccid(fn, ccids[i], i)) dccp_feat_finalise_settings() 989 dccp_feat_print_fnlist(fn); dccp_feat_finalise_settings() 1000 struct list_head *fn = &dreq->dreq_featneg; dccp_feat_server_ccid_dependencies() local 1005 entry = dccp_feat_list_lookup(fn, DCCPF_CCID, is_local); dccp_feat_server_ccid_dependencies() 1012 if (dccp_feat_propagate_ccid(fn, ccid, is_local)) dccp_feat_server_ccid_dependencies() 1089 * @fn: feature-negotiation list to update 1097 static u8 dccp_feat_change_recv(struct list_head *fn, u8 is_mandatory, u8 opt, dccp_feat_change_recv() argument 1123 return dccp_feat_push_confirm(fn, feat, local, &fval); dccp_feat_change_recv() 1129 entry = dccp_feat_list_lookup(fn, feat, local); dccp_feat_change_recv() 1159 return dccp_feat_push_confirm(fn, feat, local, &fval); dccp_feat_change_recv() 1191 return dccp_push_empty_confirm(fn, feat, local); dccp_feat_change_recv() 1200 * @fn: feature-negotiation list to update 1208 static u8 dccp_feat_confirm_recv(struct list_head *fn, u8 is_mandatory, u8 opt, dccp_feat_confirm_recv() argument 1213 struct dccp_feat_entry *entry = dccp_feat_list_lookup(fn, feat, local); dccp_feat_confirm_recv() 1308 struct list_head *fn = &dccp_sk(sk)->dccps_featneg; dccp_feat_handle_nn_established() local 1339 if (dccp_feat_push_confirm(fn, feat, local, &fval) || dccp_feat_handle_nn_established() 1347 entry = dccp_feat_list_lookup(fn, feat, local); dccp_feat_handle_nn_established() 1375 return dccp_push_empty_confirm(fn, feat, local); dccp_feat_handle_nn_established() 1398 struct list_head *fn = dreq ? &dreq->dreq_featneg : &dp->dccps_featneg; dccp_feat_parse_options() local 1411 return dccp_feat_change_recv(fn, mandatory, opt, feat, dccp_feat_parse_options() 1415 return dccp_feat_confirm_recv(fn, mandatory, opt, feat, dccp_feat_parse_options() 1442 struct list_head *fn = &dccp_sk(sk)->dccps_featneg; dccp_feat_init() local 1451 rc = __feat_register_nn(fn, DCCPF_SEQUENCE_WINDOW, 0, dccp_feat_init() 1459 rc = __feat_register_sp(fn, DCCPF_SHORT_SEQNOS, true, true, &off, 1); dccp_feat_init() 1464 rc = __feat_register_sp(fn, DCCPF_ECN_INCAPABLE, true, true, &on, 1); dccp_feat_init() 1482 rc = __feat_register_sp(fn, DCCPF_CCID, true, false, tx.val, tx.len); dccp_feat_init() 1486 rc = __feat_register_sp(fn, DCCPF_CCID, false, false, rx.val, rx.len); dccp_feat_init()
|
/linux-4.1.27/drivers/s390/char/ |
H A D | raw3270.c | 372 rc = view->fn->intv(view, rq, irb); raw3270_irq() 562 if (view->fn->resize) raw3270_size_device_done() 563 view->fn->resize(view, rp->model, rp->rows, rp->cols); raw3270_size_device_done() 567 if (view->fn->activate(view) == 0) raw3270_size_device_done() 754 rp->init_view.fn = &raw3270_init_fn; raw3270_setup_device() 897 if (rp->view && rp->view->fn->deactivate) { raw3270_activate_view() 899 oldview->fn->deactivate(oldview); raw3270_activate_view() 902 rc = view->fn->activate(view); raw3270_activate_view() 906 if (!oldview || oldview->fn->activate(oldview) != 0) { raw3270_activate_view() 911 if (nv->fn->activate(nv) == 0) raw3270_activate_view() 936 view->fn->deactivate(view); raw3270_deactivate_view() 946 if (view->fn->activate(view) == 0) raw3270_deactivate_view() 959 raw3270_add_view(struct raw3270_view *view, struct raw3270_fn *fn, int minor) raw3270_add_view() argument 975 view->fn = fn; raw3270_add_view() 994 raw3270_find_view(struct raw3270_fn *fn, int minor) raw3270_find_view() argument 1007 if (tmp->fn == fn) { raw3270_find_view() 1021 * Remove view from device and free view structure via call to view->fn->free. 1033 view->fn->deactivate(view); raw3270_del_view() 1041 if (nv->fn->activate(nv) == 0) { raw3270_del_view() 1051 if (view->fn->free) raw3270_del_view() 1052 view->fn->free(view); raw3270_del_view() 1213 if (rp->view->fn->deactivate) raw3270_remove() 1214 rp->view->fn->deactivate(rp->view); raw3270_remove() 1219 if (v->fn->release) raw3270_remove() 1220 v->fn->release(v); raw3270_remove() 1263 if (rp->view && rp->view->fn->deactivate) raw3270_pm_stop() 1264 rp->view->fn->deactivate(rp->view); raw3270_pm_stop() 1271 if (view->fn->release) raw3270_pm_stop() 1272 view->fn->release(view); raw3270_pm_stop() 1290 if (rp->view && rp->view->fn->activate) raw3270_pm_start() 1291 rp->view->fn->activate(rp->view); raw3270_pm_start()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/ |
H A D | vsc7326_reg.h | 68 * fn = FIFO number, 0-9 70 #define REG_TEST(ie,fn) CRA(0x2,ie&1,0x00+fn) /* Mode & Test Register */ 71 #define REG_TOP_BOTTOM(ie,fn) CRA(0x2,ie&1,0x10+fn) /* FIFO Buffer Top & Bottom */ 72 #define REG_TAIL(ie,fn) CRA(0x2,ie&1,0x20+fn) /* FIFO Write Pointer */ 73 #define REG_HEAD(ie,fn) CRA(0x2,ie&1,0x30+fn) /* FIFO Read Pointer */ 74 #define REG_HIGH_LOW_WM(ie,fn) CRA(0x2,ie&1,0x40+fn) /* Flow Control Water Marks */ 75 #define REG_CT_THRHLD(ie,fn) CRA(0x2,ie&1,0x50+fn) /* Cut Through Threshold */ 76 #define REG_FIFO_DROP_CNT(ie,fn) CRA(0x2,ie&1,0x60+fn) /* Drop & CRC Error Counter */ 77 #define REG_DEBUG_BUF_CNT(ie,fn) CRA(0x2,ie&1,0x70+fn) /* Input Side Debug Counter */ 78 #define REG_BUCKI(fn) CRA(0x2,2,0x20+fn) /* Input Side Debug Counter */ 79 #define REG_BUCKE(fn) CRA(0x2,3,0x20+fn) /* Input Side Debug Counter */
|
/linux-4.1.27/drivers/scsi/ |
H A D | scsi_pm.c | 129 async_func_t fn; scsi_bus_resume_common() local 132 fn = NULL; scsi_bus_resume_common() 134 fn = async_sdev_resume; scsi_bus_resume_common() 136 fn = async_sdev_thaw; scsi_bus_resume_common() 138 fn = async_sdev_restore; scsi_bus_resume_common() 140 fn = NULL; scsi_bus_resume_common() 142 if (fn) { scsi_bus_resume_common() 143 async_schedule_domain(fn, dev, &scsi_sd_pm_domain); scsi_bus_resume_common()
|
/linux-4.1.27/arch/x86/kvm/ |
H A D | mmu_audit.c | 38 inspect_spte_fn fn, int level) __mmu_spte_walk() 45 fn(vcpu, ent + i, level); __mmu_spte_walk() 52 __mmu_spte_walk(vcpu, child, fn, level - 1); __mmu_spte_walk() 57 static void mmu_spte_walk(struct kvm_vcpu *vcpu, inspect_spte_fn fn) mmu_spte_walk() argument 69 __mmu_spte_walk(vcpu, sp, fn, PT64_ROOT_LEVEL); mmu_spte_walk() 79 __mmu_spte_walk(vcpu, sp, fn, 2); mmu_spte_walk() 88 static void walk_all_active_sps(struct kvm *kvm, sp_handler fn) walk_all_active_sps() argument 93 fn(kvm, sp); walk_all_active_sps() 37 __mmu_spte_walk(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp, inspect_spte_fn fn, int level) __mmu_spte_walk() argument
|
/linux-4.1.27/arch/xtensa/kernel/ |
H A D | stacktrace.c | 18 int (*fn)(struct stackframe *frame, void *data), walk_stackframe() 43 if (fn(&frame, data)) walk_stackframe()
|
/linux-4.1.27/arch/um/drivers/ |
H A D | chan_user.h | 46 #define __channel_help(fn, prefix) \ 47 __uml_help(fn, prefix "[0-9]*=<channel description>\n" \
|
/linux-4.1.27/crypto/ |
H A D | cbc.c | 46 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = crypto_cbc_encrypt_segment() 56 fn(crypto_cipher_tfm(tfm), dst, iv); crypto_cbc_encrypt_segment() 70 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = crypto_cbc_encrypt_inplace() 79 fn(crypto_cipher_tfm(tfm), src, src); crypto_cbc_encrypt_inplace() 118 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = crypto_cbc_decrypt_segment() 127 fn(crypto_cipher_tfm(tfm), dst, src); crypto_cbc_decrypt_segment() 144 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = crypto_cbc_decrypt_inplace() 156 fn(crypto_cipher_tfm(tfm), src, src); crypto_cbc_decrypt_inplace()
|
H A D | pcbc.c | 49 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = crypto_pcbc_encrypt_segment() 59 fn(crypto_cipher_tfm(tfm), dst, iv); crypto_pcbc_encrypt_segment() 74 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = crypto_pcbc_encrypt_inplace() 85 fn(crypto_cipher_tfm(tfm), src, iv); crypto_pcbc_encrypt_inplace() 127 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = crypto_pcbc_decrypt_segment() 136 fn(crypto_cipher_tfm(tfm), dst, src); crypto_pcbc_decrypt_segment() 154 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = crypto_pcbc_decrypt_inplace() 164 fn(crypto_cipher_tfm(tfm), src, src); crypto_pcbc_decrypt_inplace()
|
H A D | lrw.c | 102 void (*fn)(struct crypto_tfm *, u8 *, const u8 *); member in struct:sinfo 115 s->fn(s->tfm, dst, dst); /* CC <- E(Key2,PP) */ lrw_round() 140 void (*fn)(struct crypto_tfm *, u8 *, const u8 *)) crypt() 147 .fn = fn crypt()
|
H A D | xts.c | 83 void (*fn)(struct crypto_tfm *, u8 *, const u8 *); member in struct:sinfo 89 s->fn(s->tfm, dst, dst); /* CC <- E(Key1,PP) */ xts_round() 96 void (*fn)(struct crypto_tfm *, u8 *, const u8 *)) crypt() 103 .fn = fn crypt()
|
H A D | cipher.c | 63 static void cipher_crypt_unaligned(void (*fn)(struct crypto_tfm *, u8 *, cipher_crypt_unaligned() 74 fn(tfm, tmp, tmp); cipher_crypt_unaligned()
|
/linux-4.1.27/include/net/ |
H A D | atmclip.h | 30 /* keep old push fn for chaining */ 32 /* keep old pop fn for chaining */
|
/linux-4.1.27/drivers/gpu/host1x/ |
H A D | debug.c | 42 o->fn(o->ctx, o->buf, len); host1x_debug_output() 114 .fn = write_to_seqfile, host1x_debug_show_all() 124 .fn = write_to_seqfile, host1x_debug_show() 202 .fn = write_to_printk host1x_debug_dump() 210 .fn = write_to_printk host1x_debug_dump_syncpts()
|
H A D | debug.h | 27 void (*fn)(void *ctx, const char *str, size_t len); member in struct:output
|
/linux-4.1.27/scripts/kconfig/ |
H A D | expr.c | 1055 void expr_print(struct expr *e, void (*fn)(void *, struct symbol *, const char *), void *data, int prevtoken) expr_print() 1058 fn(data, NULL, "y"); expr_print() 1063 fn(data, NULL, "("); expr_print() 1067 fn(data, e->left.sym, e->left.sym->name); expr_print() 1069 fn(data, NULL, "<choice>"); expr_print() 1072 fn(data, NULL, "!"); expr_print() 1073 expr_print(e->left.expr, fn, data, E_NOT); expr_print() 1077 fn(data, e->left.sym, e->left.sym->name); expr_print() 1079 fn(data, NULL, "<choice>"); expr_print() 1080 fn(data, NULL, "="); expr_print() 1081 fn(data, e->right.sym, e->right.sym->name); expr_print() 1085 fn(data, e->left.sym, e->left.sym->name); expr_print() 1087 fn(data, NULL, "<choice>"); expr_print() 1088 fn(data, NULL, "!="); expr_print() 1089 fn(data, e->right.sym, e->right.sym->name); expr_print() 1092 expr_print(e->left.expr, fn, data, E_OR); expr_print() 1093 fn(data, NULL, " || "); expr_print() 1094 expr_print(e->right.expr, fn, data, E_OR); expr_print() 1097 expr_print(e->left.expr, fn, data, E_AND); expr_print() 1098 fn(data, NULL, " && "); expr_print() 1099 expr_print(e->right.expr, fn, data, E_AND); expr_print() 1102 fn(data, e->right.sym, e->right.sym->name); expr_print() 1104 fn(data, NULL, " ^ "); expr_print() 1105 expr_print(e->left.expr, fn, data, E_LIST); expr_print() 1109 fn(data, NULL, "["); expr_print() 1110 fn(data, e->left.sym, e->left.sym->name); expr_print() 1111 fn(data, NULL, " "); expr_print() 1112 fn(data, e->right.sym, e->right.sym->name); expr_print() 1113 fn(data, NULL, "]"); expr_print() 1119 fn(data, NULL, buf); expr_print() 1124 fn(data, NULL, ")"); expr_print()
|
/linux-4.1.27/tools/perf/util/ |
H A D | config.c | 127 static int get_value(config_fn_t fn, void *data, char *name, unsigned int len) get_value() argument 155 return fn(name, value, data); get_value() 214 static int perf_parse_file(config_fn_t fn, void *data) perf_parse_file() argument 271 if (get_value(fn, data, var, baselen+1) < 0) { perf_parse_file() 415 static int perf_config_from_file(config_fn_t fn, const char *filename, void *data) perf_config_from_file() argument 426 ret = perf_parse_file(fn, data); perf_config_from_file() 457 int perf_config(config_fn_t fn, void *data) perf_config() argument 464 return perf_config_from_file(fn, config_exclusive_filename, data); perf_config() 466 ret += perf_config_from_file(fn, perf_etc_perfconfig(), perf_config() 494 ret += perf_config_from_file(fn, user_config, data); perf_config()
|
H A D | record.c | 11 static int perf_do_probe_api(setup_probe_fn_t fn, int cpu, const char *str) perf_do_probe_api() argument 41 fn(evsel); perf_do_probe_api() 57 static bool perf_probe_api(setup_probe_fn_t fn) perf_probe_api() argument 70 ret = perf_do_probe_api(fn, cpu, try[i++]); perf_probe_api()
|
/linux-4.1.27/fs/proc/ |
H A D | generic.c | 361 const char *fn; __proc_create() local 364 if (xlate_proc_name(name, parent, &fn) != 0) __proc_create() 366 qstr.name = fn; __proc_create() 367 qstr.len = strlen(fn); __proc_create() 385 memcpy(ent->name, fn, qstr.len + 1); __proc_create() 549 const char *fn = name; remove_proc_entry() local 553 if (__xlate_proc_name(name, &parent, &fn) != 0) { remove_proc_entry() 557 len = strlen(fn); remove_proc_entry() 559 de = pde_subdir_find(parent, fn, len); remove_proc_entry() 583 const char *fn = name; remove_proc_subtree() local 587 if (__xlate_proc_name(name, &parent, &fn) != 0) { remove_proc_subtree() 591 len = strlen(fn); remove_proc_subtree() 593 root = pde_subdir_find(parent, fn, len); remove_proc_subtree()
|
/linux-4.1.27/include/uapi/linux/netfilter_bridge/ |
H A D | ebtables.h | 196 * fn returns 0 to continue iteration */ 197 #define EBT_MATCH_ITERATE(e, fn, args...) \ 209 __ret = fn(__match , ## args); \ 220 #define EBT_WATCHER_ITERATE(e, fn, args...) \ 232 __ret = fn(__watcher , ## args); \ 243 #define EBT_ENTRY_ITERATE(entries, size, fn, args...) \ 251 __ret = fn(__entry , ## args); \
|
/linux-4.1.27/drivers/pinctrl/freescale/ |
H A D | pinctrl-mxs.c | 403 const char *fn, *fnull = ""; mxs_pinctrl_probe_dt() local 415 fn = fnull; for_each_child_of_node() 423 if (strcmp(fn, child->name)) { for_each_child_of_node() 424 fn = child->name; for_each_child_of_node() 440 fn = fnull; 447 if (strcmp(fn, child->name)) { for_each_child_of_node() 467 if (!strcmp(child2->name, fn)) for_each_child_of_node() 470 fn); for_each_child_of_node() 474 f->name = fn = child->name; for_each_child_of_node() 481 fn = fnull; for_each_child_of_node() 493 if (strcmp(fn, child->name)) { for_each_child_of_node() 500 fn = child->name; for_each_child_of_node()
|
/linux-4.1.27/drivers/md/ |
H A D | dm-kcopyd.c | 349 dm_kcopyd_notify_fn fn; member in struct:kcopyd_job 441 dm_kcopyd_notify_fn fn = job->fn; run_complete_job() local 452 fn(read_err, write_err, context); run_complete_job() 503 .notify.fn = complete_io, run_io_job() 542 int (*fn) (struct kcopyd_job *)) process_jobs() 549 r = fn(job); process_jobs() 665 sub_job->fn = segment_complete; segment_complete() 703 unsigned int flags, dm_kcopyd_notify_fn fn, void *context) dm_kcopyd_copy() 745 job->fn = fn; dm_kcopyd_copy() 763 unsigned flags, dm_kcopyd_notify_fn fn, void *context) dm_kcopyd_zero() 765 return dm_kcopyd_copy(kc, NULL, num_dests, dests, flags, fn, context); dm_kcopyd_zero() 770 dm_kcopyd_notify_fn fn, void *context) dm_kcopyd_prepare_callback() 778 job->fn = fn; dm_kcopyd_prepare_callback() 701 dm_kcopyd_copy(struct dm_kcopyd_client *kc, struct dm_io_region *from, unsigned int num_dests, struct dm_io_region *dests, unsigned int flags, dm_kcopyd_notify_fn fn, void *context) dm_kcopyd_copy() argument 761 dm_kcopyd_zero(struct dm_kcopyd_client *kc, unsigned num_dests, struct dm_io_region *dests, unsigned flags, dm_kcopyd_notify_fn fn, void *context) dm_kcopyd_zero() argument 769 dm_kcopyd_prepare_callback(struct dm_kcopyd_client *kc, dm_kcopyd_notify_fn fn, void *context) dm_kcopyd_prepare_callback() argument
|
H A D | dm-cache-policy-internal.h | 51 policy_walk_fn fn, void *context) policy_walk_mappings() 53 return p->walk_mappings ? p->walk_mappings(p, fn, context) : 0; policy_walk_mappings() 50 policy_walk_mappings(struct dm_cache_policy *p, policy_walk_fn fn, void *context) policy_walk_mappings() argument
|
H A D | dm-io.c | 117 io_notify_fn fn = io->callback; complete_io() local 125 fn(error_bits, context); complete_io() 439 io_notify_fn fn, void *context) async_io() 445 fn(1, context); async_io() 453 io->callback = fn; async_io() 503 * If the IO is asynchronous (i.e. it has notify.fn), you must either unplug 518 if (!io_req->notify.fn) dm_io() 523 &dp, io_req->notify.fn, io_req->notify.context); dm_io() 437 async_io(struct dm_io_client *client, unsigned int num_regions, struct dm_io_region *where, int rw, struct dpages *dp, io_notify_fn fn, void *context) async_io() argument
|
H A D | dm-linear.c | 149 iterate_devices_callout_fn fn, void *data) linear_iterate_devices() 153 return fn(ti, lc->dev, lc->start, ti->len, data); linear_iterate_devices() 148 linear_iterate_devices(struct dm_target *ti, iterate_devices_callout_fn fn, void *data) linear_iterate_devices() argument
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/ |
H A D | iwl-debug.c | 71 #define __iwl_fn(fn) \ 72 void __iwl_ ##fn(struct device *dev, const char *fmt, ...) \ 81 dev_ ##fn(dev, "%pV", &vaf); \ 82 trace_iwlwifi_ ##fn(&vaf); \
|
H A D | iwl-notif-wait.c | 109 if (!w->fn || w->fn(notif_wait, pkt, w->fn_data)) { iwl_notification_wait_notify() 140 bool (*fn)(struct iwl_notif_wait_data *notif_wait, iwl_init_notification_wait() 147 wait_entry->fn = fn; iwl_init_notification_wait()
|
H A D | iwl-notif-wait.h | 80 * @fn: Function called with the notification. If the function 104 bool (*fn)(struct iwl_notif_wait_data *notif_data, member in struct:iwl_notification_wait 125 bool (*fn)(struct iwl_notif_wait_data *notif_data,
|
/linux-4.1.27/drivers/pinctrl/meson/ |
H A D | pinctrl-meson.h | 188 #define FUNCTION(fn) \ 190 .name = #fn, \ 191 .groups = fn ## _groups, \ 192 .num_groups = ARRAY_SIZE(fn ## _groups), \
|
/linux-4.1.27/arch/unicore32/mm/ |
H A D | mm.h | 39 extern void hook_fault_code(int nr, int (*fn)
|
/linux-4.1.27/include/linux/platform_data/ |
H A D | omap-wd-timer.h | 28 * @read_reset_sources - fn ptr for the SoC to indicate the last reset cause
|
/linux-4.1.27/arch/blackfin/kernel/ |
H A D | pseudodbg.c | 160 int grp, fn, reg; execute_pseudodbg() local 168 fn = ((opcode >> PseudoDbg_fn_bits) & PseudoDbg_fn_mask); execute_pseudodbg() 171 if (fn == 3 && (reg == 0 || reg == 1)) { execute_pseudodbg() 181 } else if (fn == 0) { execute_pseudodbg()
|
/linux-4.1.27/drivers/scsi/device_handler/ |
H A D | scsi_dh.c | 403 * @fn - Function to be called upon completion of the activation. 404 * Function fn is called with data (below) and the error code. 405 * Function fn may be called from the same calling context. So, 406 * do not hold the lock in the caller which may be needed in fn. 407 * @data - data passed to the function fn upon completion. 410 int scsi_dh_activate(struct request_queue *q, activate_complete fn, void *data) scsi_dh_activate() argument 423 if (fn) scsi_dh_activate() 424 fn(data, err); scsi_dh_activate() 440 if (fn) scsi_dh_activate() 441 fn(data, err); scsi_dh_activate() 446 err = scsi_dh->activate(sdev, fn, data); scsi_dh_activate()
|
H A D | scsi_dh_hp_sw.c | 292 activate_complete fn, void *data) hp_sw_activate() 301 h->callback_fn = fn; hp_sw_activate() 309 if (fn) hp_sw_activate() 310 fn(data, ret); hp_sw_activate() 291 hp_sw_activate(struct scsi_device *sdev, activate_complete fn, void *data) hp_sw_activate() argument
|
/linux-4.1.27/drivers/gpu/drm/armada/ |
H A D | armada_drm.h | 43 void (*fn)(struct armada_crtc *, void *); member in struct:armada_vbl_event 55 __e->fn = _f; \
|
/linux-4.1.27/arch/tile/include/arch/ |
H A D | trio.h | 79 uint_reg_t fn : 3; member in struct:__anon2771::__anon2772 102 uint_reg_t fn : 3;
|
/linux-4.1.27/include/scsi/ |
H A D | scsi_dh.h | 67 activate_complete fn, void *data) scsi_dh_activate() 69 fn(data, 0); scsi_dh_activate() 66 scsi_dh_activate(struct request_queue *req, activate_complete fn, void *data) scsi_dh_activate() argument
|
/linux-4.1.27/include/linux/soc/ti/ |
H A D | knav_qmss.h | 60 * @fn: Notifier function 64 knav_queue_notify_fn fn; member in struct:knav_queue_notify_config
|
/linux-4.1.27/arch/blackfin/include/asm/ |
H A D | pgtable.h | 60 #define PTE_BIT_FUNC(fn, op) \ 61 static inline pte_t pte_##fn(pte_t _pte) { _pte.pte op; return _pte; }
|
/linux-4.1.27/arch/arm/mach-omap1/ |
H A D | clock.h | 54 * @enable: fn ptr that enables the current clock in hardware 55 * @disable: fn ptr that enables the current clock in hardware 58 * @allow_idle: fn ptr that enables autoidle for the current clock in hardware 59 * @deny_idle: fn ptr that disables autoidle for the current clock in hardware 110 * @recalc: fn ptr that returns the clock's current rate 111 * @set_rate: fn ptr that can change the clock's current rate 112 * @round_rate: fn ptr that can round the clock's current rate 113 * @init: fn ptr to do clock-specific initialization
|
H A D | lcd_dma.c | 139 unsigned long en, fn; set_b1_regs() local 187 fn = lcd_dma.yres; set_b1_regs() 202 fn = lcd_dma.xres; set_b1_regs() 217 fn = lcd_dma.yres; set_b1_regs() 232 fn = lcd_dma.xres; set_b1_regs() 255 omap_writew(fn, OMAP1610_DMA_LCD_SRC_FN_B1); set_b1_regs()
|
H A D | sram.S | 2 * linux/arch/arm/plat-omap/sram-fn.S
|
/linux-4.1.27/tools/perf/ |
H A D | builtin-data.c | 13 data_cmd_fn_t fn; member in struct:data_cmd 116 return cmd->fn(argc, argv, prefix); for_each_cmd()
|
H A D | builtin-bench.c | 33 bench_fn_t fn; member in struct:bench 154 static int run_bench(const char *coll_name, const char *bench_name, bench_fn_t fn, run_bench() argument 171 ret = fn(argc, argv, prefix); run_bench() 192 if (!bench->fn) for_each_bench() 198 run_bench(coll->name, bench->name, bench->fn, 1, argv, NULL); for_each_bench() 270 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1, prefix); for_each_bench()
|
/linux-4.1.27/drivers/hwmon/ |
H A D | vt1211.c | 354 int fn = sensor_attr_2->nr; show_in() local 357 switch (fn) { show_in() 372 dev_dbg(dev, "Unknown attr fetch (%d)\n", fn); show_in() 385 int fn = sensor_attr_2->nr; set_in() local 394 switch (fn) { set_in() 404 dev_dbg(dev, "Unknown attr fetch (%d)\n", fn); set_in() 428 int fn = sensor_attr_2->nr; show_temp() local 431 switch (fn) { show_temp() 446 dev_dbg(dev, "Unknown attr fetch (%d)\n", fn); show_temp() 459 int fn = sensor_attr_2->nr; set_temp() local 468 switch (fn) { set_temp() 480 dev_dbg(dev, "Unknown attr fetch (%d)\n", fn); set_temp() 504 int fn = sensor_attr_2->nr; show_fan() local 507 switch (fn) { show_fan() 522 dev_dbg(dev, "Unknown attr fetch (%d)\n", fn); show_fan() 535 int fn = sensor_attr_2->nr; set_fan() local 552 switch (fn) { set_fan() 585 dev_dbg(dev, "Unknown attr fetch (%d)\n", fn); set_fan() 610 int fn = sensor_attr_2->nr; show_pwm() local 613 switch (fn) { show_pwm() 628 dev_dbg(dev, "Unknown attr fetch (%d)\n", fn); show_pwm() 641 int fn = sensor_attr_2->nr; set_pwm() local 652 switch (fn) { set_pwm() 725 dev_dbg(dev, "Unknown attr fetch (%d)\n", fn); set_pwm()
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/ |
H A D | debug.c | 200 brcms_debugfs_add_entry(struct brcms_pub *drvr, const char *fn, brcms_debugfs_add_entry() argument 217 dentry = debugfs_create_file(fn, S_IRUGO, dentry, entry, brcms_debugfs_add_entry() 232 #define __brcms_fn(fn) \ 233 void __brcms_ ##fn(struct device *dev, const char *fmt, ...) \ 242 dev_ ##fn(dev, "%pV", &vaf); \ 243 trace_brcms_ ##fn(&vaf); \
|
H A D | mac80211_if.h | 39 void (*fn) (void *); /* function called upon expiration */ member in struct:brcms_timer 104 void (*fn) (void *arg), void *arg,
|
/linux-4.1.27/arch/x86/pci/ |
H A D | direct.c | 98 int dev, fn; pci_conf2_read() local 107 fn = PCI_FUNC(devfn); pci_conf2_read() 114 outb((u8)(0xF0 | (fn << 1)), 0xCF8); pci_conf2_read() 140 int dev, fn; pci_conf2_write() local 147 fn = PCI_FUNC(devfn); pci_conf2_write() 154 outb((u8)(0xF0 | (fn << 1)), 0xCF8); pci_conf2_write()
|
/linux-4.1.27/include/uapi/linux/netfilter_ipv4/ |
H A D | ip_tables.h | 59 /* fn returns 0 to continue iteration */ 60 #define IPT_MATCH_ITERATE(e, fn, args...) \ 61 XT_MATCH_ITERATE(struct ipt_entry, e, fn, ## args) 63 /* fn returns 0 to continue iteration */ 64 #define IPT_ENTRY_ITERATE(entries, size, fn, args...) \ 65 XT_ENTRY_ITERATE(struct ipt_entry, entries, size, fn, ## args)
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_ethtool.c | 253 t4_restart_aneg(p->adapter, p->adapter->fn, p->tx_chan); restart_autoneg() 270 return t4_identify_port(adap, adap->fn, netdev2pinfo(dev)->viid, val); identify_port() 442 return t4_link_start(p->adapter, p->adapter->fn, p->tx_chan, set_settings() 475 return t4_link_start(p->adapter, p->adapter->fn, p->tx_chan, set_pauseparam() 590 * @fn: the PCI function number 602 * where A = @fn * @sz, and ES = EEPROM size. 604 static int eeprom_ptov(unsigned int phys_addr, unsigned int fn, unsigned int sz) eeprom_ptov() argument 606 fn *= sz; eeprom_ptov() 609 if (phys_addr < 1024 + fn) eeprom_ptov() 610 return 31744 - fn + phys_addr - 1024; eeprom_ptov() 612 return phys_addr - 1024 - fn; eeprom_ptov() 620 int vaddr = eeprom_ptov(phys_addr, adap->fn, EEPROMPFSIZE); eeprom_rd_phys() 629 int vaddr = eeprom_ptov(phys_addr, adap->fn, EEPROMPFSIZE); eeprom_wr_phys() 672 if (adapter->fn > 0) { set_eeprom() 673 u32 start = 1024 + adapter->fn * EEPROMPFSIZE; set_eeprom()
|
/linux-4.1.27/drivers/s390/cio/ |
H A D | device_pgid.c | 132 static void spid_build_cp(struct ccw_device *cdev, u8 fn) spid_build_cp() argument 139 pgid->inf.fc = fn; spid_build_cp() 170 u8 fn; pgid_wipeout_start() local 182 fn = SPID_FUNC_DISBAND; pgid_wipeout_start() 184 fn |= SPID_FUNC_MULTI_PATH; pgid_wipeout_start() 185 spid_build_cp(cdev, fn); pgid_wipeout_start() 196 u8 fn; spid_do() local 204 fn = SPID_FUNC_ESTABLISH; spid_do() 206 fn = SPID_FUNC_RESIGN; spid_do() 208 fn |= SPID_FUNC_MULTI_PATH; spid_do() 209 spid_build_cp(cdev, fn); spid_do() 601 u8 fn; ccw_device_disband_start() local 612 fn = SPID_FUNC_DISBAND; ccw_device_disband_start() 614 fn |= SPID_FUNC_MULTI_PATH; ccw_device_disband_start() 615 spid_build_cp(cdev, fn); ccw_device_disband_start()
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/ |
H A D | bcmsdh.c | 252 static int brcmf_sdiod_request_data(struct brcmf_sdio_dev *sdiodev, u8 fn, brcmf_sdiod_request_data() argument 259 write, fn, addr, regsz); brcmf_sdiod_request_data() 262 if (WARN_ON(regsz > 1 && !fn)) brcmf_sdiod_request_data() 264 func = sdiodev->func[fn]; brcmf_sdiod_request_data() 269 if (fn) sizeof() 275 if (fn) 300 write ? "write" : "read", fn, addr, ret); 469 static int brcmf_sdiod_buffrw(struct brcmf_sdio_dev *sdiodev, uint fn, brcmf_sdiod_buffrw() argument 480 err = sdio_memcpy_toio(sdiodev->func[fn], addr, brcmf_sdiod_buffrw() 482 else if (fn == 1) brcmf_sdiod_buffrw() 483 err = sdio_memcpy_fromio(sdiodev->func[fn], ((u8 *)(pkt->data)), brcmf_sdiod_buffrw() 487 err = sdio_readsb(sdiodev->func[fn], ((u8 *)(pkt->data)), addr, brcmf_sdiod_buffrw() 497 * @fn: SDIO function number 506 static int brcmf_sdiod_sglist_rw(struct brcmf_sdio_dev *sdiodev, uint fn, brcmf_sdiod_sglist_rw() argument 532 req_sz = ALIGN(req_sz, sdiodev->func[fn]->cur_blksize); brcmf_sdiod_sglist_rw() 551 func_blk_sz = sdiodev->func[fn]->cur_blksize; brcmf_sdiod_sglist_rw() 568 mmc_cmd.arg |= (fn & 0x7) << 28; /* SDIO func num */ brcmf_sdiod_sglist_rw() 571 mmc_cmd.arg |= (fn == 1) ? 1<<26 : 0; brcmf_sdiod_sglist_rw() 617 if (fn == 1) brcmf_sdiod_sglist_rw() 620 mmc_set_data_timeout(&mmc_dat, sdiodev->func[fn]->card); brcmf_sdiod_sglist_rw() 621 mmc_wait_for_req(sdiodev->func[fn]->card->host, &mmc_req); brcmf_sdiod_sglist_rw() 871 int brcmf_sdiod_abort(struct brcmf_sdio_dev *sdiodev, uint fn) brcmf_sdiod_abort() argument 873 char t_func = (char)fn; brcmf_sdiod_abort()
|
H A D | debug.c | 97 int brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn, brcmf_debugfs_add_entry() argument 113 dentry = debugfs_create_file(fn, S_IRUGO, dentry, entry, brcmf_debugfs_add_entry()
|
/linux-4.1.27/drivers/pci/ |
H A D | search.c | 22 * @fn: function to call for each alias 23 * @data: opaque data to pass to @fn 25 * Starting @pdev, walk up the bus calling @fn for each possible alias 29 int (*fn)(struct pci_dev *pdev, pci_for_each_dma_alias() 35 ret = fn(pdev, PCI_DEVID(pdev->bus->number, pdev->devfn), data); pci_for_each_dma_alias() 44 ret = fn(pdev, PCI_DEVID(pdev->bus->number, pci_for_each_dma_alias() 75 ret = fn(tmp, pci_for_each_dma_alias() 82 ret = fn(tmp, pci_for_each_dma_alias() 91 ret = fn(tmp, pci_for_each_dma_alias() 95 ret = fn(tmp, pci_for_each_dma_alias()
|
/linux-4.1.27/arch/arm/mm/ |
H A D | fault.c | 515 int (*fn)(unsigned long addr, unsigned int fsr, struct pt_regs *regs); member in struct:fsr_info 529 hook_fault_code(int nr, int (*fn)(unsigned long, unsigned int, struct pt_regs *), hook_fault_code() 535 fsr_info[nr].fn = fn; hook_fault_code() 550 if (!inf->fn(addr, fsr & ~FSR_LNX_PF, regs)) do_DataAbort() 565 hook_ifault_code(int nr, int (*fn)(unsigned long, unsigned int, struct pt_regs *), hook_ifault_code() 571 ifsr_info[nr].fn = fn; hook_ifault_code() 583 if (!inf->fn(addr, ifsr | FSR_LNX_PF, regs)) do_PrefetchAbort()
|
/linux-4.1.27/drivers/leds/ |
H A D | leds-pm8941-wled.c | 226 u32 (*fn)(u32); member in struct:pm8941_wled_var_cfg 254 .fn = pm8941_wled_num_strings_values_fn, 264 .fn = pm8941_wled_switch_freq_values_fn, 276 if (cfg->fn) pm8941_wled_values() 277 return cfg->fn(idx); pm8941_wled_values()
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmutil/ |
H A D | utils.c | 153 bool (*fn)(struct sk_buff *, void *), void *arg) brcmu_pktq_pflush() 160 if (fn == NULL || (*fn) (p, arg)) { skb_queue_walk_safe() 170 bool (*fn)(struct sk_buff *, void *), void *arg) brcmu_pktq_flush() 174 brcmu_pktq_pflush(pq, prec, dir, fn, arg); brcmu_pktq_flush()
|
/linux-4.1.27/arch/arm/plat-samsung/ |
H A D | pm-check.c | 50 static void s3c_pm_run_res(struct resource *ptr, run_fn_t fn, u32 *arg) s3c_pm_run_res() argument 54 s3c_pm_run_res(ptr->child, fn, arg); s3c_pm_run_res() 61 arg = (fn)(ptr, arg); s3c_pm_run_res() 68 static void s3c_pm_run_sysram(run_fn_t fn, u32 *arg) s3c_pm_run_sysram() argument 70 s3c_pm_run_res(&iomem_resource, fn, arg); s3c_pm_run_sysram()
|
/linux-4.1.27/net/ieee802154/ |
H A D | core.c | 56 int (*fn)(struct wpan_phy *phy, void *data); member in struct:wpan_phy_iter_data 65 return wpid->fn(phy, wpid->data); wpan_phy_iter() 68 int wpan_phy_for_each(int (*fn)(struct wpan_phy *phy, void *data), wpan_phy_for_each() 72 .fn = fn, wpan_phy_for_each()
|
/linux-4.1.27/drivers/vhost/ |
H A D | vhost.h | 20 vhost_work_fn_t fn; member in struct:vhost_work 38 void vhost_work_init(struct vhost_work *work, vhost_work_fn_t fn); 41 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn,
|
/linux-4.1.27/drivers/md/persistent-data/ |
H A D | dm-space-map.h | 71 dm_sm_threshold_fn fn, 147 dm_sm_threshold_fn fn, dm_sm_register_threshold_callback() 151 return sm->register_threshold_callback(sm, threshold, fn, context); dm_sm_register_threshold_callback() 145 dm_sm_register_threshold_callback(struct dm_space_map *sm, dm_block_t threshold, dm_sm_threshold_fn fn, void *context) dm_sm_register_threshold_callback() argument
|
H A D | dm-space-map-metadata.c | 27 dm_sm_threshold_fn fn; member in struct:threshold 38 dm_sm_threshold_fn fn, void *context) set_threshold() 42 t->fn = fn; set_threshold() 60 t->fn(t->context); check_threshold() 500 dm_sm_threshold_fn fn, sm_metadata_register_threshold_callback() 505 set_threshold(&smm->threshold, threshold, fn, context); sm_metadata_register_threshold_callback() 37 set_threshold(struct threshold *t, dm_block_t value, dm_sm_threshold_fn fn, void *context) set_threshold() argument 498 sm_metadata_register_threshold_callback(struct dm_space_map *sm, dm_block_t threshold, dm_sm_threshold_fn fn, void *context) sm_metadata_register_threshold_callback() argument
|
/linux-4.1.27/net/core/ |
H A D | sock_diag.c | 107 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) sock_diag_register_inet_compat() 110 inet_rcv_compat = fn; sock_diag_register_inet_compat() 115 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) sock_diag_unregister_inet_compat()
|
/linux-4.1.27/arch/x86/crypto/ |
H A D | glue_helper.c | 92 static unsigned int __glue_cbc_encrypt_128bit(const common_glue_func_t fn, __glue_cbc_encrypt_128bit() argument 105 fn(ctx, (u8 *)dst, (u8 *)dst); __glue_cbc_encrypt_128bit() 117 int glue_cbc_encrypt_128bit(const common_glue_func_t fn, glue_cbc_encrypt_128bit() argument 129 nbytes = __glue_cbc_encrypt_128bit(fn, desc, &walk); glue_cbc_encrypt_128bit() 383 common_glue_func_t fn) glue_xts_crypt_128bit_one() 394 fn(ctx, (u8 *)dst, (u8 *)dst); glue_xts_crypt_128bit_one() 382 glue_xts_crypt_128bit_one(void *ctx, u128 *dst, const u128 *src, le128 *iv, common_glue_func_t fn) glue_xts_crypt_128bit_one() argument
|
/linux-4.1.27/drivers/isdn/hardware/eicon/ |
H A D | sdp_hdr.h | 72 typedef void (*diva_task_set_prt_proc_t)(diva_prt_proc_t fn); 90 diva_task_get_tick_count_proc_t fn);
|
H A D | divasmain.c | 697 DBG_TRC(("%s bus: %08x fn: %08x insertion.\n", divas_init_one() 700 printk(KERN_INFO "%s: %s bus: %08x fn: %08x insertion.\n", divas_init_one() 705 DBG_TRC(("%s: %s bus: %08x fn: %08x device init failed.\n", divas_init_one() 711 "%s: %s bus: %08x fn: %08x device init failed.\n", divas_init_one() 723 DBG_TRC(("%s: bus: %08x fn: %08x fix latency.\n", divas_init_one() 726 "%s: bus: %08x fn: %08x fix latency.\n", divas_init_one() 732 DBG_TRC(("%s: %s bus: %08x fn: %08x card init failed.\n", divas_init_one() 738 "%s: %s bus: %08x fn: %08x card init failed.\n", divas_init_one() 755 DBG_TRC(("bus: %08x fn: %08x removal.\n", divas_remove_one() 757 printk(KERN_INFO "%s: bus: %08x fn: %08x removal.\n", divas_remove_one()
|
/linux-4.1.27/drivers/media/pci/cx18/ |
H A D | cx18-firmware.c | 101 static int load_cpu_fw_direct(const char *fn, u8 __iomem *mem, struct cx18 *cx) load_cpu_fw_direct() argument 109 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { load_cpu_fw_direct() 110 CX18_ERR("Unable to open firmware %s\n", fn); load_cpu_fw_direct() 133 CX18_INFO("loaded %s firmware (%zu bytes)\n", fn, fw->size); load_cpu_fw_direct() 140 static int load_apu_fw_direct(const char *fn, u8 __iomem *dst, struct cx18 *cx, load_apu_fw_direct() argument 153 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { load_apu_fw_direct() 154 CX18_ERR("unable to open firmware %s\n", fn); load_apu_fw_direct() 206 fn, apu_version, fw->size); load_apu_fw_direct()
|
/linux-4.1.27/drivers/scsi/bfa/ |
H A D | bfa_hw_ct.c | 37 int fn = bfa_ioc_pcifn(&bfa->ioc); bfa_hwct_reginit() local 39 if (fn == 0) { bfa_hwct_reginit()
|
/linux-4.1.27/arch/unicore32/kernel/ |
H A D | stacktrace.c | 58 int (*fn)(struct stackframe *, void *), void *data) walk_stackframe() 63 if (fn(frame, data)) walk_stackframe()
|
/linux-4.1.27/arch/parisc/include/asm/ |
H A D | superio.h | 59 struct pci_dev *lio_pdev; /* pci device for legacy IO (fn 1) */ 60 struct pci_dev *usb_pdev; /* pci device for USB (fn 2) */
|
/linux-4.1.27/drivers/gpio/ |
H A D | gpio-wm831x.c | 115 int ret, fn; wm831x_gpio_set_debounce() local 131 fn = 0; wm831x_gpio_set_debounce() 133 fn = 1; wm831x_gpio_set_debounce() 137 return wm831x_set_bits(wm831x, reg, WM831X_GPN_FN_MASK, fn); wm831x_gpio_set_debounce()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
H A D | i915_ioc32.c | 204 drm_ioctl_compat_t *fn = NULL; i915_compat_ioctl() local 211 fn = i915_compat_ioctls[nr - DRM_COMMAND_BASE]; i915_compat_ioctl() 213 if (fn != NULL) i915_compat_ioctl() 214 ret = (*fn) (filp, cmd, arg); i915_compat_ioctl()
|
/linux-4.1.27/drivers/gpu/drm/mga/ |
H A D | mga_ioc32.c | 211 drm_ioctl_compat_t *fn = NULL; mga_compat_ioctl() local 218 fn = mga_compat_ioctls[nr - DRM_COMMAND_BASE]; mga_compat_ioctl() 220 if (fn != NULL) mga_compat_ioctl() 221 ret = (*fn) (filp, cmd, arg); mga_compat_ioctl()
|
/linux-4.1.27/drivers/gpu/drm/r128/ |
H A D | r128_ioc32.c | 200 drm_ioctl_compat_t *fn = NULL; r128_compat_ioctl() local 207 fn = r128_compat_ioctls[nr - DRM_COMMAND_BASE]; r128_compat_ioctl() 209 if (fn != NULL) r128_compat_ioctl() 210 ret = (*fn) (filp, cmd, arg); r128_compat_ioctl()
|
/linux-4.1.27/fs/ |
H A D | read_write.c | 253 loff_t (*fn)(struct file *, loff_t, int); vfs_llseek() 255 fn = no_llseek; vfs_llseek() 258 fn = file->f_op->llseek; vfs_llseek() 260 return fn(file, offset, whence); vfs_llseek() 656 loff_t *ppos, iter_fn_t fn) do_iter_readv_writev() 664 ret = fn(&kiocb, iter); do_iter_readv_writev() 672 loff_t *ppos, io_fn_t fn) do_loop_readv_writev() 680 nr = fn(filp, iovec.iov_base, iovec.iov_len, ppos); do_loop_readv_writev() 783 io_fn_t fn; do_readv_writev() local 799 fn = file->f_op->read; do_readv_writev() 802 fn = (io_fn_t)file->f_op->write; do_readv_writev() 810 ret = do_loop_readv_writev(file, &iter, pos, fn); do_readv_writev() 957 io_fn_t fn; compat_do_readv_writev() local 973 fn = file->f_op->read; compat_do_readv_writev() 976 fn = (io_fn_t)file->f_op->write; compat_do_readv_writev() 984 ret = do_loop_readv_writev(file, &iter, pos, fn); compat_do_readv_writev() 655 do_iter_readv_writev(struct file *filp, struct iov_iter *iter, loff_t *ppos, iter_fn_t fn) do_iter_readv_writev() argument 671 do_loop_readv_writev(struct file *filp, struct iov_iter *iter, loff_t *ppos, io_fn_t fn) do_loop_readv_writev() argument
|
/linux-4.1.27/drivers/media/dvb-frontends/drx39xyj/ |
H A D | bsp_i2c.h | 71 * \fn drxbsp_i2c_init() 80 * \fn drxbsp_i2c_term() 89 * \fn drx_status_t drxbsp_i2c_write_read( struct i2c_device_addr *w_dev_addr, 125 * \fn drxbsp_i2c_error_text()
|
/linux-4.1.27/include/uapi/linux/netfilter_ipv6/ |
H A D | ip6_tables.h | 55 #define IP6T_MATCH_ITERATE(e, fn, args...) \ 56 XT_MATCH_ITERATE(struct ip6t_entry, e, fn, ## args) 57 #define IP6T_ENTRY_ITERATE(entries, size, fn, args...) \ 58 XT_ENTRY_ITERATE(struct ip6t_entry, entries, size, fn, ## args)
|
/linux-4.1.27/arch/openrisc/kernel/ |
H A D | process.c | 116 * @usp: user stack pointer or fn for kernel thread 117 * @arg: arg to fn for kernel thread; always NULL for userspace thread 137 * A kernel thread 'fn' may return; this is effectively what happens when 169 kregs->gpr[20] = usp; /* fn, kernel thread */ copy_thread()
|
/linux-4.1.27/arch/arm/plat-iop/ |
H A D | cp6.c | 45 .fn = cp6_trap,
|
/linux-4.1.27/lib/ |
H A D | test-kstrtox.c | 26 #define TEST_FAIL(fn, type, fmt, test) \ 36 rv = fn(t->str, t->base, &tmp); \ 45 #define TEST_OK(fn, type, fmt, test) \ 54 rv = fn(t->str, t->base, &res); \
|
/linux-4.1.27/samples/bpf/ |
H A D | test_maps.c | 186 static void run_parallel(int tasks, void (*fn)(int i, void *data), void *data) run_parallel() 194 fn(i, data); run_parallel() 218 static void do_work(int fn, void *data) do_work() argument 225 for (i = fn; i < MAP_SIZE; i += TASKS) { do_work()
|
/linux-4.1.27/include/linux/can/platform/ |
H A D | ti_hecc.h | 29 * @transceiver_switch: platform specific callback fn for transceiver control
|
/linux-4.1.27/drivers/media/pci/zoran/ |
H A D | videocodec.h | 82 readreg -> ref. to read-fn from register (setup by master, used by slave) 83 writereg -> ref. to write-fn to register (setup by master, used by slave) 88 check -> fn-ref. checks availability of an device, returns -EIO on failure or 96 set_mode -> this fn-ref. resets the entire codec, and sets up the mode 99 set_size -> this fn-ref. sets the norm and image size for 189 /* the type of data may be enhanced by future implementations (data-fn.'s) */ 216 /* types of transfer, directly user space or a kernel buffer (image-fn.'s) */
|
/linux-4.1.27/drivers/bus/ |
H A D | mips_cdmm.c | 139 * @fn: CDMM driver callback function to call for the device. 140 * @dev: CDMM device to pass to @fn. 143 void *fn; member in struct:mips_cdmm_work_dev 157 void (*fn)(struct mips_cdmm_device *) = work->fn; mips_cdmm_void_work() 159 fn(work->dev); mips_cdmm_void_work() 173 int (*fn)(struct mips_cdmm_device *) = work->fn; mips_cdmm_int_work() 175 return fn(work->dev); mips_cdmm_int_work() 196 .fn = cdrv->_name, \
|
/linux-4.1.27/fs/ntfs/ |
H A D | namei.c | 192 FILE_NAME_ATTR *fn; ntfs_lookup() local 233 fn = (FILE_NAME_ATTR*)((u8*)ctx->attr + le16_to_cpu( ntfs_lookup() 235 if ((u32)(fn->file_name_length * sizeof(ntfschar) + ntfs_lookup() 238 } while (fn->file_name_type != FILE_NAME_WIN32); ntfs_lookup() 242 (ntfschar*)&fn->file_name, fn->file_name_length, ntfs_lookup() 307 FILE_NAME_ATTR *fn; ntfs_get_parent() local 337 fn = (FILE_NAME_ATTR *)((u8 *)attr + ntfs_get_parent() 339 if (unlikely((u8 *)fn + le32_to_cpu(attr->data.resident.value_length) > ntfs_get_parent() 343 parent_ino = MREF_LE(fn->parent_directory); ntfs_get_parent()
|
/linux-4.1.27/drivers/media/pci/ivtv/ |
H A D | ivtv-firmware.c | 52 static int load_fw_direct(const char *fn, volatile u8 __iomem *mem, struct ivtv *itv, long size) load_fw_direct() argument 58 if (retries && request_firmware(&fw, fn, &itv->pdev->dev) == 0) { load_fw_direct() 68 IVTV_INFO("Retry: file loaded was not %s (expected size %ld, got %zu)\n", fn, size, fw->size); load_fw_direct() 79 IVTV_INFO("Loaded %s firmware (%zu bytes)\n", fn, fw->size); load_fw_direct() 83 IVTV_ERR("Unable to open firmware %s (must be %ld bytes)\n", fn, size); load_fw_direct()
|