Home
last modified time | relevance | path

Searched refs:ops (Results 1 – 25 of 341) sorted by relevance

12345678910>>...14

/arch/s390/appldata/
Dappldata_base.c126 struct appldata_ops *ops; in appldata_work_fn() local
130 ops = list_entry(lh, struct appldata_ops, list); in appldata_work_fn()
131 if (ops->active == 1) { in appldata_work_fn()
132 ops->callback(ops->data); in appldata_work_fn()
292 struct appldata_ops *ops = NULL, *tmp_ops; in appldata_generic_handler() local
309 ops = ctl->data; in appldata_generic_handler()
310 if (!try_module_get(ops->owner)) { // protect this function in appldata_generic_handler()
318 module_put(ops->owner); in appldata_generic_handler()
322 strncpy(buf, ops->active ? "1\n" : "0\n", ARRAY_SIZE(buf)); in appldata_generic_handler()
327 module_put(ops->owner); in appldata_generic_handler()
[all …]
Dappldata_os.c84 static struct appldata_ops ops = { variable
139 if (ops.size != new_size) { in appldata_get_os_data()
140 if (ops.active) { in appldata_get_os_data()
143 (unsigned long) ops.data, new_size, in appldata_get_os_data()
144 ops.mod_lvl); in appldata_get_os_data()
151 (unsigned long) ops.data, ops.size, in appldata_get_os_data()
152 ops.mod_lvl); in appldata_get_os_data()
157 ops.size = new_size; in appldata_get_os_data()
192 ops.data = appldata_os_data; in appldata_os_init()
193 ops.callback = &appldata_get_os_data; in appldata_os_init()
[all …]
/arch/microblaze/include/asm/
Ddma-mapping.h66 static inline void set_dma_ops(struct device *dev, struct dma_map_ops *ops) in set_dma_ops() argument
68 dev->archdata.dma_ops = ops; in set_dma_ops()
73 struct dma_map_ops *ops = get_dma_ops(dev); in dma_supported() local
75 if (unlikely(!ops)) in dma_supported()
77 if (!ops->dma_supported) in dma_supported()
79 return ops->dma_supported(dev, mask); in dma_supported()
84 struct dma_map_ops *ops = get_dma_ops(dev); in dma_set_mask() local
86 if (unlikely(ops == NULL)) in dma_set_mask()
88 if (ops->set_dma_mask) in dma_set_mask()
89 return ops->set_dma_mask(dev, dma_mask); in dma_set_mask()
[all …]
/arch/sh/include/asm/
Ddma-mapping.h17 struct dma_map_ops *ops = get_dma_ops(dev); in dma_supported() local
19 if (ops->dma_supported) in dma_supported()
20 return ops->dma_supported(dev, mask); in dma_supported()
27 struct dma_map_ops *ops = get_dma_ops(dev); in dma_set_mask() local
31 if (ops->set_dma_mask) in dma_set_mask()
32 return ops->set_dma_mask(dev, mask); in dma_set_mask()
47 struct dma_map_ops *ops = get_dma_ops(dev); in dma_mapping_error() local
50 if (ops->mapping_error) in dma_mapping_error()
51 return ops->mapping_error(dev, dma_addr); in dma_mapping_error()
62 struct dma_map_ops *ops = get_dma_ops(dev); in dma_alloc_attrs() local
[all …]
/arch/mips/pci/
DMakefile10 obj-$(CONFIG_MIPS_BONITO64) += ops-bonito64.o
11 obj-$(CONFIG_PCI_GT64XXX_PCI0) += ops-gt64xxx_pci0.o
12 obj-$(CONFIG_MIPS_MSC) += ops-msc.o
13 obj-$(CONFIG_MIPS_NILE4) += ops-nile4.o
14 obj-$(CONFIG_SOC_TX3927) += ops-tx3927.o
15 obj-$(CONFIG_PCI_VR41XX) += ops-vr41xx.o pci-vr41xx.o
16 obj-$(CONFIG_NEC_MARKEINS) += ops-emma2rh.o pci-emma2rh.o fixup-emma2rh.o
17 obj-$(CONFIG_PCI_TX4927) += ops-tx4927.o
20 ops-bcm63xx.o
30 obj-$(CONFIG_LEMOTE_FULOONG2E) += fixup-fuloong2e.o ops-loongson2.o
[all …]
/arch/x86/oprofile/
Dinit.c20 extern int op_nmi_init(struct oprofile_operations *ops);
23 static int op_nmi_init(struct oprofile_operations *ops) { return -ENODEV; } in op_nmi_init() argument
29 int __init oprofile_arch_init(struct oprofile_operations *ops) in oprofile_arch_init() argument
31 ops->backtrace = x86_backtrace; in oprofile_arch_init()
32 return op_nmi_init(ops); in oprofile_arch_init()
/arch/sparc/oprofile/
Dinit.c59 static int op_nmi_timer_init(struct oprofile_operations *ops) in op_nmi_timer_init() argument
64 ops->start = timer_start; in op_nmi_timer_init()
65 ops->stop = timer_stop; in op_nmi_timer_init()
66 ops->cpu_type = "timer"; in op_nmi_timer_init()
72 int __init oprofile_arch_init(struct oprofile_operations *ops) in oprofile_arch_init() argument
77 ret = op_nmi_timer_init(ops); in oprofile_arch_init()
/arch/metag/oprofile/
Dcommon.c38 int __init oprofile_arch_init(struct oprofile_operations *ops) in oprofile_arch_init() argument
40 ops->backtrace = metag_backtrace; in oprofile_arch_init()
50 return oprofile_perf_init(ops); in oprofile_arch_init()
59 int __init oprofile_arch_init(struct oprofile_operations *ops) in oprofile_arch_init() argument
61 ops->backtrace = metag_backtrace; in oprofile_arch_init()
/arch/arm/mach-omap1/
Dclock_data.c80 .ops = &clkops_null,
86 .ops = &clkops_null,
97 .ops = &clkops_generic,
110 .ops = &clkops_generic,
121 .ops = &clkops_null,
132 .ops = &clkops_generic,
151 .ops = &clkops_generic,
162 .ops = &clkops_generic,
175 .ops = &clkops_generic,
188 .ops = &clkops_generic,
[all …]
/arch/sh/oprofile/
Dcommon.c37 int __init oprofile_arch_init(struct oprofile_operations *ops) in oprofile_arch_init() argument
39 ops->backtrace = sh_backtrace; in oprofile_arch_init()
49 return oprofile_perf_init(ops); in oprofile_arch_init()
58 int __init oprofile_arch_init(struct oprofile_operations *ops) in oprofile_arch_init() argument
60 ops->backtrace = sh_backtrace; in oprofile_arch_init()
/arch/arm/plat-versatile/
Dclock.c41 if (clk->ops && clk->ops->round) in clk_round_rate()
42 ret = clk->ops->round(clk, rate); in clk_round_rate()
50 if (clk->ops && clk->ops->set) in clk_set_rate()
51 ret = clk->ops->set(clk, rate); in clk_set_rate()
70 clk->ops->setvco(clk, vco); in icst_clk_set()
/arch/arm/mach-msm/
Dclock.c43 clk->ops->enable(clk->id); in clk_enable()
56 clk->ops->disable(clk->id); in clk_disable()
63 return clk->ops->reset(clk->remote_id, action); in clk_reset()
69 return clk->ops->get_rate(clk->id); in clk_get_rate()
77 ret = clk->ops->set_max_rate(clk->id, rate); in clk_set_rate()
82 ret = clk->ops->set_min_rate(clk->id, rate); in clk_set_rate()
90 return clk->ops->set_rate(clk->id, rate); in clk_set_rate()
96 return clk->ops->round_rate(clk->id, rate); in clk_round_rate()
102 return clk->ops->set_min_rate(clk->id, rate); in clk_set_min_rate()
108 return clk->ops->set_max_rate(clk->id, rate); in clk_set_max_rate()
[all …]
/arch/arm/mach-pxa/
Dclock.c21 clk->ops->enable(clk); in clk_enable()
39 clk->ops->disable(clk); in clk_disable()
49 if (clk->ops->getrate) in clk_get_rate()
50 rate = clk->ops->getrate(clk); in clk_get_rate()
61 if (clk->ops->setrate) { in clk_set_rate()
63 ret = clk->ops->setrate(clk, rate); in clk_set_rate()
85 .ops = &clk_dummy_ops,
/arch/blackfin/mach-bf609/
Dclock.c110 if (clk->ops && clk->ops->enable) in clk_enable()
111 ret = clk->ops->enable(clk); in clk_enable()
118 if (clk->ops && clk->ops->disable) in clk_disable()
119 clk->ops->disable(clk); in clk_disable()
126 if (clk->ops && clk->ops->get_rate) in clk_get_rate()
127 ret = clk->ops->get_rate(clk); in clk_get_rate()
135 if (clk->ops && clk->ops->round_rate) in clk_round_rate()
136 ret = clk->ops->round_rate(clk, rate); in clk_round_rate()
144 if (clk->ops && clk->ops->set_rate) in clk_set_rate()
145 ret = clk->ops->set_rate(clk, rate); in clk_set_rate()
[all …]
/arch/sh/drivers/pci/
DMakefile6 obj-$(CONFIG_CPU_SUBTYPE_SH7751) += pci-sh7751.o ops-sh4.o
7 obj-$(CONFIG_CPU_SUBTYPE_SH7751R) += pci-sh7751.o ops-sh4.o
8 obj-$(CONFIG_CPU_SUBTYPE_SH7763) += pci-sh7780.o ops-sh4.o
9 obj-$(CONFIG_CPU_SUBTYPE_SH7780) += pci-sh7780.o ops-sh4.o
10 obj-$(CONFIG_CPU_SUBTYPE_SH7785) += pci-sh7780.o ops-sh4.o
11 obj-$(CONFIG_CPU_SUBTYPE_SH7786) += pcie-sh7786.o ops-sh7786.o
12 obj-$(CONFIG_CPU_SH5) += pci-sh5.o ops-sh5.o
14 obj-$(CONFIG_SH_DREAMCAST) += ops-dreamcast.o fixups-dreamcast.o \
/arch/ia64/oprofile/
Dinit.c15 extern int perfmon_init(struct oprofile_operations *ops);
19 int __init oprofile_arch_init(struct oprofile_operations *ops) in oprofile_arch_init() argument
25 ret = perfmon_init(ops); in oprofile_arch_init()
27 ops->backtrace = ia64_backtrace; in oprofile_arch_init()
/arch/mips/loongson/lemote-2f/
Dclock.c64 if (likely(clkp->ops && clkp->ops->recalc)) in propagate_rate()
65 clkp->ops->recalc(clkp); in propagate_rate()
99 if (likely(clk->ops && clk->ops->set_rate)) { in clk_set_rate()
103 ret = clk->ops->set_rate(clk, rate, 0); in clk_set_rate()
133 if (likely(clk->ops && clk->ops->round_rate)) { in clk_round_rate()
137 rounded = clk->ops->round_rate(clk, rate); in clk_round_rate()
/arch/arm64/include/asm/
Ddma-mapping.h41 static inline void set_dma_ops(struct device *dev, struct dma_map_ops *ops) in set_dma_ops() argument
43 dev->archdata.dma_ops = ops; in set_dma_ops()
60 struct dma_map_ops *ops = get_dma_ops(dev); in dma_mapping_error() local
62 return ops->mapping_error(dev, dev_addr); in dma_mapping_error()
67 struct dma_map_ops *ops = get_dma_ops(dev); in dma_supported() local
68 return ops->dma_supported(dev, mask); in dma_supported()
99 struct dma_map_ops *ops = get_dma_ops(dev); in dma_alloc_attrs() local
105 vaddr = ops->alloc(dev, size, dma_handle, flags, attrs); in dma_alloc_attrs()
114 struct dma_map_ops *ops = get_dma_ops(dev); in dma_free_attrs() local
120 ops->free(dev, size, vaddr, dev_addr, attrs); in dma_free_attrs()
/arch/powerpc/oprofile/
Dcommon.c192 int __init oprofile_arch_init(struct oprofile_operations *ops) in oprofile_arch_init() argument
204 ops->sync_start = model->sync_start; in oprofile_arch_init()
205 ops->sync_stop = model->sync_stop; in oprofile_arch_init()
234 ops->cpu_type = cur_cpu_spec->oprofile_cpu_type; in oprofile_arch_init()
235 ops->create_files = op_powerpc_create_files; in oprofile_arch_init()
236 ops->setup = op_powerpc_setup; in oprofile_arch_init()
237 ops->shutdown = op_powerpc_shutdown; in oprofile_arch_init()
238 ops->start = op_powerpc_start; in oprofile_arch_init()
239 ops->stop = op_powerpc_stop; in oprofile_arch_init()
240 ops->backtrace = op_powerpc_backtrace; in oprofile_arch_init()
[all …]
/arch/mips/include/asm/
Ddma-mapping.h37 struct dma_map_ops *ops = get_dma_ops(dev); in dma_supported() local
38 return ops->dma_supported(dev, mask); in dma_supported()
43 struct dma_map_ops *ops = get_dma_ops(dev); in dma_mapping_error() local
46 return ops->mapping_error(dev, mask); in dma_mapping_error()
70 struct dma_map_ops *ops = get_dma_ops(dev); in dma_alloc_attrs() local
72 ret = ops->alloc(dev, size, dma_handle, gfp, attrs); in dma_alloc_attrs()
85 struct dma_map_ops *ops = get_dma_ops(dev); in dma_free_attrs() local
87 ops->free(dev, size, vaddr, dma_handle, attrs); in dma_free_attrs()
/arch/powerpc/platforms/cell/spufs/
Drun.c57 *stat = ctx->ops->status_read(ctx); in spu_stopped()
129 ctx->ops->signal1_write(ctx, (unsigned long)isolated_loader >> 32); in spu_setup_isolated()
130 ctx->ops->signal2_write(ctx, in spu_setup_isolated()
133 ctx->ops->runcntl_write(ctx, in spu_setup_isolated()
138 while (((status = ctx->ops->status_read(ctx)) & status_loading) == in spu_setup_isolated()
153 ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_RUNNABLE); in spu_setup_isolated()
161 ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_STOP); in spu_setup_isolated()
198 if (!(ctx->ops->status_read(ctx) & SPU_STATUS_ISOLATED_STATE)) { in spu_run_init()
208 runcntl = ctx->ops->runcntl_read(ctx) & in spu_run_init()
220 ctx->ops->privcntl_write(ctx, privcntl); in spu_run_init()
[all …]
/arch/mips/jz4740/
Dclock.c304 .ops = &jz_clk_static_ops,
315 .ops = &jz_clk_pll_ops,
325 .ops = &jz_clk_pll_half_ops,
338 .ops = &jz_clk_main_ops,
347 .ops = &jz_clk_main_ops,
356 .ops = &jz_clk_main_ops,
366 .ops = &jz_clk_main_ops,
380 .ops = &jz_clk_ko_ops,
572 .ops = &jz_clk_ops_ld,
607 .ops = &jz_clk_i2s_ops,
[all …]
/arch/ia64/include/asm/
Ddma-mapping.h32 struct dma_map_ops *ops = platform_dma_get_ops(dev); in dma_alloc_attrs() local
35 caddr = ops->alloc(dev, size, daddr, gfp, attrs); in dma_alloc_attrs()
46 struct dma_map_ops *ops = platform_dma_get_ops(dev); in dma_free_attrs() local
48 ops->free(dev, size, caddr, daddr, attrs); in dma_free_attrs()
60 struct dma_map_ops *ops = platform_dma_get_ops(dev); in dma_mapping_error() local
62 return ops->mapping_error(dev, daddr); in dma_mapping_error()
67 struct dma_map_ops *ops = platform_dma_get_ops(dev); in dma_supported() local
68 return ops->dma_supported(dev, mask); in dma_supported()
/arch/arm/plat-omap/include/plat/
Dmailbox.h57 struct omap_mbox_ops *ops; member
75 if (!mbox->ops->save_ctx) { in omap_mbox_save_ctx()
80 mbox->ops->save_ctx(mbox); in omap_mbox_save_ctx()
85 if (!mbox->ops->restore_ctx) { in omap_mbox_restore_ctx()
90 mbox->ops->restore_ctx(mbox); in omap_mbox_restore_ctx()
96 mbox->ops->enable_irq(mbox, irq); in omap_mbox_enable_irq()
102 mbox->ops->disable_irq(mbox, irq); in omap_mbox_disable_irq()
/arch/mips/oprofile/
Dcommon.c73 int __init oprofile_arch_init(struct oprofile_operations *ops) in oprofile_arch_init() argument
115 ops->create_files = op_mips_create_files; in oprofile_arch_init()
116 ops->setup = op_mips_setup; in oprofile_arch_init()
118 ops->start = op_mips_start; in oprofile_arch_init()
119 ops->stop = op_mips_stop; in oprofile_arch_init()
120 ops->cpu_type = lmodel->cpu_type; in oprofile_arch_init()
121 ops->backtrace = op_mips_backtrace; in oprofile_arch_init()

12345678910>>...14