Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 502) sorted by relevance

12345678910>>...21

/linux-2.6.39/include/linux/
Dinit.h148 extern int do_one_initcall(initcall_t fn);
177 #define __define_initcall(level,fn,id) \ argument
178 static initcall_t __initcall_##fn##id __used \
179 __attribute__((__section__(".initcall" level ".init"))) = fn
186 #define early_initcall(fn) __define_initcall("early",fn,early) argument
194 #define pure_initcall(fn) __define_initcall("0",fn,0) argument
196 #define core_initcall(fn) __define_initcall("1",fn,1) argument
197 #define core_initcall_sync(fn) __define_initcall("1s",fn,1s) argument
198 #define postcore_initcall(fn) __define_initcall("2",fn,2) argument
199 #define postcore_initcall_sync(fn) __define_initcall("2s",fn,2s) argument
[all …]
Dstop_machine.h25 cpu_stop_fn_t fn; member
30 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg);
31 void stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg,
33 int stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg);
34 int try_stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg);
42 cpu_stop_fn_t fn; member
46 static inline int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu() argument
51 ret = fn(arg); in stop_one_cpu()
61 stwork->fn(stwork->arg); in stop_one_cpu_nowait_workfn()
66 cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait() argument
[all …]
Dcpu.h76 #define cpu_notifier(fn, pri) { \ argument
77 static struct notifier_block fn##_nb __cpuinitdata = \
78 { .notifier_call = fn, .priority = pri }; \
79 register_cpu_notifier(&fn##_nb); \
82 #define cpu_notifier(fn, pri) do { (void)(fn); } while (0) argument
110 #define cpu_notifier(fn, pri) do { (void)(fn); } while (0) argument
137 #define hotcpu_notifier(fn, pri) cpu_notifier(fn, pri) argument
159 #define hotcpu_notifier(fn, pri) do { (void)(fn); } while (0) argument
Dkthread.h77 #define KTHREAD_WORK_INIT(work, fn) { \ argument
79 .func = (fn), \
87 #define DEFINE_KTHREAD_WORK(work, fn) \ argument
88 struct kthread_work work = KTHREAD_WORK_INIT(work, fn)
100 # define KTHREAD_WORK_INIT_ONSTACK(work, fn) \ argument
101 ({ init_kthread_work((&work), fn); work; })
102 # define DEFINE_KTHREAD_WORK_ONSTACK(work, fn) \ argument
103 struct kthread_work work = KTHREAD_WORK_INIT_ONSTACK(work, fn)
106 # define DEFINE_KTHREAD_WORK_ONSTACK(work, fn) DEFINE_KTHREAD_WORK(work, fn) argument
118 #define init_kthread_work(work, fn) \ argument
[all …]
Dtimer.h117 #define setup_timer(timer, fn, data) \ argument
120 setup_timer_key((timer), #timer, &__key, (fn), (data));\
123 #define setup_timer_on_stack(timer, fn, data) \ argument
127 (fn), (data)); \
129 #define setup_deferrable_timer_on_stack(timer, fn, data) \ argument
133 &__key, (fn), \
143 #define setup_timer(timer, fn, data)\ argument
144 setup_timer_key((timer), NULL, NULL, (fn), (data))
145 #define setup_timer_on_stack(timer, fn, data)\ argument
146 setup_timer_on_stack_key((timer), NULL, NULL, (fn), (data))
[all …]
/linux-2.6.39/arch/um/include/shared/
Dinit.h91 #define __uml_initcall(fn) \ argument
92 static initcall_t __uml_initcall_##fn __uml_init_call = fn
94 #define __uml_exitcall(fn) \ argument
95 static exitcall_t __uml_exitcall_##fn __uml_exit_call = fn
99 #define __uml_postsetup(fn) \ argument
100 static initcall_t __uml_postsetup_##fn __uml_postsetup_call = fn
109 #define __uml_setup(str, fn, help...) \ argument
110 __non_empty_string(fn ##_setup, str); \
111 __uml_help(fn, help); \
112 static char __uml_setup_str_##fn[] __initdata = str; \
[all …]
/linux-2.6.39/net/ipv6/
Dip6_fib.c79 static void fib6_prune_clones(struct net *net, struct fib6_node *fn,
81 static struct rt6_info *fib6_find_prefix(struct net *net, struct fib6_node *fn);
82 static struct fib6_node *fib6_repair_tree(struct net *net, struct fib6_node *fn);
153 struct fib6_node *fn; in node_alloc() local
155 fn = kmem_cache_zalloc(fib6_node_kmem, GFP_ATOMIC); in node_alloc()
157 return fn; in node_alloc()
160 static __inline__ void node_free(struct fib6_node * fn) in node_free() argument
162 kmem_cache_free(fib6_node_kmem, fn); in node_free()
432 struct fib6_node *fn, *in, *ln; in fib6_add_1() local
443 fn = root; in fib6_add_1()
[all …]
/linux-2.6.39/arch/powerpc/include/asm/
Dmachdep.h336 #define __define_machine_initcall(mach,level,fn,id) \ argument
337 static int __init __machine_initcall_##mach##_##fn(void) { \
338 if (machine_is(mach)) return fn(); \
341 __define_initcall(level,__machine_initcall_##mach##_##fn,id);
343 #define machine_core_initcall(mach,fn) __define_machine_initcall(mach,"1",fn,1) argument
344 #define machine_core_initcall_sync(mach,fn) __define_machine_initcall(mach,"1s",fn,1s) argument
345 #define machine_postcore_initcall(mach,fn) __define_machine_initcall(mach,"2",fn,2) argument
346 #define machine_postcore_initcall_sync(mach,fn) __define_machine_initcall(mach,"2s",fn,2s) argument
347 #define machine_arch_initcall(mach,fn) __define_machine_initcall(mach,"3",fn,3) argument
348 #define machine_arch_initcall_sync(mach,fn) __define_machine_initcall(mach,"3s",fn,3s) argument
[all …]
/linux-2.6.39/kernel/
Dstop_machine.c104 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu() argument
107 struct cpu_stop_work work = { .fn = fn, .arg = arg, .done = &done }; in stop_one_cpu()
128 void stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait() argument
131 *work_buf = (struct cpu_stop_work){ .fn = fn, .arg = arg, }; in stop_one_cpu_nowait()
139 int __stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) in __stop_cpus() argument
148 work->fn = fn; in __stop_cpus()
197 int stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) in stop_cpus() argument
203 ret = __stop_cpus(cpumask, fn, arg); in stop_cpus()
226 int try_stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) in try_stop_cpus() argument
233 ret = __stop_cpus(cpumask, fn, arg); in try_stop_cpus()
[all …]
/linux-2.6.39/fs/jffs2/
Dreadinode.c31 struct jffs2_raw_node_ref *ref = tn->fn->raw; in check_node_data()
154 BUG_ON(ref_obsolete(tn->fn->raw)); in check_tn_node()
157 if (ref_flags(tn->fn->raw) != REF_UNCHECKED) in check_tn_node()
161 tn->fn->ofs, tn->fn->ofs + tn->fn->size, ref_offset(tn->fn->raw)); in check_tn_node()
169 jffs2_mark_node_obsolete(c, tn->fn->raw); in check_tn_node()
187 if (tn->fn->ofs < offset) in jffs2_lookup_tn()
189 else if (tn->fn->ofs >= offset) in jffs2_lookup_tn()
201 jffs2_mark_node_obsolete(c, tn->fn->raw); in jffs2_kill_tn()
202 jffs2_free_full_dnode(tn->fn); in jffs2_kill_tn()
222 uint32_t fn_end = tn->fn->ofs + tn->fn->size; in jffs2_add_tn_to_tree()
[all …]
/linux-2.6.39/drivers/sh/intc/
Dhandle.c45 unsigned int fn, mode; in _intc_mask_data() local
56 fn = REG_FN_WRITE_BASE; in _intc_mask_data()
61 fn = REG_FN_MODIFY_BASE; in _intc_mask_data()
73 fn += (mr->reg_width >> 3) - 1; in _intc_mask_data()
74 return _INTC_MK(fn, mode, in _intc_mask_data()
113 unsigned int fn, n, mode, bit; in _intc_prio_data() local
124 fn = REG_FN_WRITE_BASE; in _intc_prio_data()
129 fn = REG_FN_MODIFY_BASE; in _intc_prio_data()
137 fn += (pr->reg_width >> 3) - 1; in _intc_prio_data()
144 return _INTC_MK(fn, mode, in _intc_prio_data()
[all …]
Daccess.c158 unsigned long (*fn)(unsigned long, in intc_mode_field()
163 return fn(addr, handle, ((1 << _INTC_WIDTH(handle)) - 1)); in intc_mode_field()
168 unsigned long (*fn)(unsigned long, in intc_mode_zero()
173 return fn(addr, handle, 0); in intc_mode_zero()
178 unsigned long (*fn)(unsigned long, in intc_mode_prio()
183 return fn(addr, handle, intc_get_prio_level(irq)); in intc_mode_prio()
202 unsigned long (*fn)(unsigned long,
215 unsigned long (*fn)(unsigned long,
228 unsigned long (*fn)(unsigned long,
/linux-2.6.39/drivers/net/chelsio/
Dvsc7326_reg.h70 #define REG_TEST(ie,fn) CRA(0x2,ie&1,0x00+fn) /* Mode & Test Register */ argument
71 #define REG_TOP_BOTTOM(ie,fn) CRA(0x2,ie&1,0x10+fn) /* FIFO Buffer Top & Bottom */ argument
72 #define REG_TAIL(ie,fn) CRA(0x2,ie&1,0x20+fn) /* FIFO Write Pointer */ argument
73 #define REG_HEAD(ie,fn) CRA(0x2,ie&1,0x30+fn) /* FIFO Read Pointer */ argument
74 #define REG_HIGH_LOW_WM(ie,fn) CRA(0x2,ie&1,0x40+fn) /* Flow Control Water Marks */ argument
75 #define REG_CT_THRHLD(ie,fn) CRA(0x2,ie&1,0x50+fn) /* Cut Through Threshold */ argument
76 #define REG_FIFO_DROP_CNT(ie,fn) CRA(0x2,ie&1,0x60+fn) /* Drop & CRC Error Counter */ argument
77 #define REG_DEBUG_BUF_CNT(ie,fn) CRA(0x2,ie&1,0x70+fn) /* Input Side Debug Counter */ argument
78 #define REG_BUCKI(fn) CRA(0x2,2,0x20+fn) /* Input Side Debug Counter */ argument
79 #define REG_BUCKE(fn) CRA(0x2,3,0x20+fn) /* Input Side Debug Counter */ argument
/linux-2.6.39/sound/
Dsound_firmware.c9 static int do_mod_firmware_load(const char *fn, char **fp) in do_mod_firmware_load() argument
16 filp = filp_open(fn, 0, 0); in do_mod_firmware_load()
19 printk(KERN_INFO "Unable to load '%s'.\n", fn); in do_mod_firmware_load()
25 printk(KERN_INFO "Invalid firmware '%s'\n", fn); in do_mod_firmware_load()
32 printk(KERN_INFO "Out of memory loading '%s'.\n", fn); in do_mod_firmware_load()
39 printk(KERN_INFO "Failed to read '%s'.\n", fn); in do_mod_firmware_load()
66 int mod_firmware_load(const char *fn, char **fp) in mod_firmware_load() argument
72 r = do_mod_firmware_load(fn, fp); in mod_firmware_load()
/linux-2.6.39/arch/arm/include/asm/
Dglue.h19 #define ____glue(name,fn) name##fn argument
21 #define ____glue(name,fn) name/**/fn argument
23 #define __glue(name,fn) ____glue(name,fn) argument
/linux-2.6.39/tools/perf/bench/
Dmem-memcpy.c52 memcpy_t fn; member
61 #define MEMCPY_FN(fn, name, desc) { name, desc, fn }, argument
120 static u64 do_memcpy_clock(memcpy_t fn, size_t len, bool prefault) in do_memcpy_clock() argument
128 fn(dst, src, len); in do_memcpy_clock()
131 fn(dst, src, len); in do_memcpy_clock()
139 static double do_memcpy_gettimeofday(memcpy_t fn, size_t len, bool prefault) in do_memcpy_gettimeofday() argument
147 fn(dst, src, len); in do_memcpy_gettimeofday()
150 fn(dst, src, len); in do_memcpy_gettimeofday()
222 do_memcpy_clock(routines[i].fn, len, false); in bench_mem_memcpy()
224 do_memcpy_clock(routines[i].fn, len, true); in bench_mem_memcpy()
[all …]
/linux-2.6.39/init/
Dmain.c632 ctor_fn_t *fn = (ctor_fn_t *) __ctors_start; in do_ctors() local
634 for (; fn < (ctor_fn_t *) __ctors_end; fn++) in do_ctors()
635 (*fn)(); in do_ctors()
644 static int __init_or_module do_one_initcall_debug(initcall_t fn) in do_one_initcall_debug() argument
650 printk(KERN_DEBUG "calling %pF @ %i\n", fn, task_pid_nr(current)); in do_one_initcall_debug()
652 ret = fn(); in do_one_initcall_debug()
656 printk(KERN_DEBUG "initcall %pF returned %d after %lld usecs\n", fn, in do_one_initcall_debug()
662 int __init_or_module do_one_initcall(initcall_t fn) in do_one_initcall() argument
668 ret = do_one_initcall_debug(fn); in do_one_initcall()
670 ret = fn(); in do_one_initcall()
[all …]
/linux-2.6.39/drivers/parport/
Dieee1284.c615 size_t (*fn) (struct parport *, const void *, size_t, int); in parport_write()
628 fn = port->ops->compat_write_data; in parport_write()
634 fn = port->ops->epp_write_addr; in parport_write()
636 fn = port->ops->epp_write_data; in parport_write()
643 fn = parport_ieee1284_epp_write_addr; in parport_write()
645 fn = parport_ieee1284_epp_write_data; in parport_write()
652 fn = port->ops->ecp_write_addr; in parport_write()
654 fn = port->ops->ecp_write_data; in parport_write()
664 fn = parport_ieee1284_ecp_write_addr; in parport_write()
666 fn = parport_ieee1284_ecp_write_data; in parport_write()
[all …]
/linux-2.6.39/arch/mips/pci/
Dops-bridge.c49 int fn = PCI_FUNC(devfn); in pci_conf0_read_config() local
54 addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[PCI_VENDOR_ID]; in pci_conf0_read_config()
65 addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[where ^ (4 - size)]; in pci_conf0_read_config()
91 addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; in pci_conf0_read_config()
110 int fn = PCI_FUNC(devfn); in pci_conf1_read_config() local
116 addr = &bridge->b_type1_cfg.c[(fn << 8) | PCI_VENDOR_ID]; in pci_conf1_read_config()
128 addr = &bridge->b_type1_cfg.c[(fn << 8) | (where ^ (4 - size))]; in pci_conf1_read_config()
155 addr = &bridge->b_type1_cfg.c[(fn << 8) | where]; in pci_conf1_read_config()
182 int fn = PCI_FUNC(devfn); in pci_conf0_write_config() local
187 addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[PCI_VENDOR_ID]; in pci_conf0_write_config()
[all …]
/linux-2.6.39/drivers/pci/hotplug/
Dpciehp_pci.c65 int num, fn; in pciehp_configure_device() local
83 for (fn = 0; fn < 8; fn++) { in pciehp_configure_device()
84 dev = pci_get_slot(parent, PCI_DEVFN(0, fn)); in pciehp_configure_device()
96 for (fn = 0; fn < 8; fn++) { in pciehp_configure_device()
97 dev = pci_get_slot(parent, PCI_DEVFN(0, fn)); in pciehp_configure_device()
/linux-2.6.39/arch/powerpc/platforms/cell/
Dcelleb_pci.c103 int devno, int fn) in get_fake_config_start() argument
110 return private->fake_config[devno][fn]; in get_fake_config_start()
115 int devno, int fn) in get_resource_start() argument
122 return private->res[devno][fn]; in get_resource_start()
168 unsigned int fn = devfn & 0x7; in celleb_fake_pci_read_config() local
174 config = get_fake_config_start(hose, devno, fn); in celleb_fake_pci_read_config()
196 unsigned int fn = devfn & 0x7; in celleb_fake_pci_write_config() local
201 config = get_fake_config_start(hose, devno, fn); in celleb_fake_pci_write_config()
214 res = get_resource_start(hose, devno, fn); in celleb_fake_pci_write_config()
243 unsigned int devno, unsigned int fn, in celleb_setup_pci_base_addrs() argument
[all …]
/linux-2.6.39/arch/unicore32/kernel/
Dsys.c54 char *fn; in __sys_execve() local
56 fn = getname(filename); in __sys_execve()
57 error = PTR_ERR(fn); in __sys_execve()
58 if (IS_ERR(fn)) in __sys_execve()
60 error = do_execve(fn, argv, envp, regs); in __sys_execve()
61 putname(fn); in __sys_execve()
/linux-2.6.39/Documentation/ia64/
Derr_inject.txt124 char fn[MAX_FN_SIZE];
128 sprintf(fn, "%d.log", cpu);
129 log=fopen(fn, "a+");
310 char fn[MAX_FN_SIZE];
313 sprintf(fn, PATH_FORMAT, 0);
314 if ((key = ftok(fn, 's')) == -1) {
375 char fn[MAX_FN_SIZE];
378 sprintf(fn, PATH_FORMAT, cpu);
379 sprintf(fn, "%s/%s", fn, "err_type_info");
380 if ((key[cpu] = ftok(fn, 'e')) == -1) {
[all …]
/linux-2.6.39/arch/mips/include/asm/
Dcop2.h25 #define cu2_notifier(fn, pri) \ argument
27 static struct notifier_block fn##_nb = { \
28 .notifier_call = fn, \
32 register_cu2_notifier(&fn##_nb); \
/linux-2.6.39/drivers/base/
Dattribute_container.c143 int (*fn)(struct attribute_container *, in attribute_container_add_device()
171 if (fn) in attribute_container_add_device()
172 fn(cont, dev, &ic->classdev); in attribute_container_add_device()
208 void (*fn)(struct attribute_container *, in attribute_container_remove_device()
229 if (fn) in attribute_container_remove_device()
230 fn(cont, dev, &ic->classdev); in attribute_container_remove_device()
252 int (*fn)(struct attribute_container *, in attribute_container_device_trigger()
267 fn(cont, dev, NULL); in attribute_container_device_trigger()
273 fn(cont, dev, &ic->classdev); in attribute_container_device_trigger()
293 int (*fn)(struct attribute_container *, in attribute_container_trigger()
[all …]

12345678910>>...21