/arch/s390/appldata/ |
D | appldata_base.c | 127 struct appldata_ops *ops; in appldata_work_fn() local 131 ops = list_entry(lh, struct appldata_ops, list); in appldata_work_fn() 132 if (ops->active == 1) { in appldata_work_fn() 133 ops->callback(ops->data); in appldata_work_fn() 284 struct appldata_ops *ops = NULL, *tmp_ops; in appldata_generic_handler() local 307 ops = ctl->data; in appldata_generic_handler() 308 if (!try_module_get(ops->owner)) { // protect this function in appldata_generic_handler() 314 active = ops->active; in appldata_generic_handler() 317 module_put(ops->owner); in appldata_generic_handler() 322 if (active && (ops->active == 0)) { in appldata_generic_handler() [all …]
|
D | appldata_os.c | 79 static struct appldata_ops ops = { variable 133 if (ops.size != new_size) { in appldata_get_os_data() 134 if (ops.active) { in appldata_get_os_data() 137 (unsigned long) ops.data, new_size, in appldata_get_os_data() 138 ops.mod_lvl); in appldata_get_os_data() 145 (unsigned long) ops.data, ops.size, in appldata_get_os_data() 146 ops.mod_lvl); in appldata_get_os_data() 151 ops.size = new_size; in appldata_get_os_data() 185 ops.data = appldata_os_data; in appldata_os_init() 186 ops.callback = &appldata_get_os_data; in appldata_os_init() [all …]
|
D | appldata_net_sum.c | 116 static struct appldata_ops ops = { variable 135 ops.data = kzalloc(sizeof(struct appldata_net_sum_data), GFP_KERNEL); in appldata_net_init() 136 if (!ops.data) in appldata_net_init() 139 ret = appldata_register_ops(&ops); in appldata_net_init() 141 kfree(ops.data); in appldata_net_init() 153 appldata_unregister_ops(&ops); in appldata_net_exit() 154 kfree(ops.data); in appldata_net_exit()
|
D | appldata_mem.c | 114 static struct appldata_ops ops = { variable 133 ops.data = kzalloc(sizeof(struct appldata_mem_data), GFP_KERNEL); in appldata_mem_init() 134 if (!ops.data) in appldata_mem_init() 137 ret = appldata_register_ops(&ops); in appldata_mem_init() 139 kfree(ops.data); in appldata_mem_init() 151 appldata_unregister_ops(&ops); in appldata_mem_exit() 152 kfree(ops.data); in appldata_mem_exit()
|
/arch/x86/kernel/ |
D | ftrace.c | 317 create_trampoline(struct ftrace_ops *ops, unsigned int *tramp_size) in create_trampoline() argument 336 if (ops->flags & FTRACE_OPS_FL_SAVE_REGS) { in create_trampoline() 378 if (ops->flags & FTRACE_OPS_FL_SAVE_REGS) { in create_trampoline() 397 *ptr = (unsigned long)ops; in create_trampoline() 421 ftrace_ops_get_func(ops)), CALL_INSN_SIZE); in create_trampoline() 425 ops->flags |= FTRACE_OPS_FL_ALLOC_TRAMP; in create_trampoline() 440 struct ftrace_ops *ops; in set_ftrace_ops_ro() local 446 do_for_each_ftrace_op(ops, ftrace_ops_list) { in set_ftrace_ops_ro() 447 if (!(ops->flags & FTRACE_OPS_FL_ALLOC_TRAMP)) in set_ftrace_ops_ro() 450 if (ops->flags & FTRACE_OPS_FL_SAVE_REGS) { in set_ftrace_ops_ro() [all …]
|
/arch/arm/mach-omap1/ |
D | clock_data.c | 77 .ops = &clkops_null, 83 .ops = &clkops_null, 94 .ops = &clkops_generic, 107 .ops = &clkops_generic, 118 .ops = &clkops_null, 129 .ops = &clkops_generic, 148 .ops = &clkops_generic, 159 .ops = &clkops_generic, 172 .ops = &clkops_generic, 185 .ops = &clkops_generic, [all …]
|
/arch/arm64/kvm/hyp/nvhe/ |
D | iommu.c | 25 const struct pkvm_iommu_ops *ops; member 102 return ALIGN(sizeof(struct pkvm_iommu) + drv->ops->data_size, in __iommu_alloc_size() 193 drv->ops->host_stage2_idmap_prepare(start, end, /*prot*/ 0); in __snapshot_host_stage2() 206 if (!drv->ops->host_stage2_idmap_prepare) in snapshot_host_stage2() 253 const struct pkvm_iommu_ops *ops; in __pkvm_iommu_driver_init() local 266 ops = get_driver_ops(id); in __pkvm_iommu_driver_init() 267 if (!drv || !ops) { in __pkvm_iommu_driver_init() 277 drv->ops = ops; in __pkvm_iommu_driver_init() 280 if (ops->init) { in __pkvm_iommu_driver_init() 283 ret = ops->init(data, size); in __pkvm_iommu_driver_init() [all …]
|
/arch/mips/pci/ |
D | Makefile | 13 obj-$(CONFIG_MIPS_BONITO64) += ops-bonito64.o 14 obj-$(CONFIG_PCI_GT64XXX_PCI0) += ops-gt64xxx_pci0.o 15 obj-$(CONFIG_MIPS_MSC) += ops-msc.o 16 obj-$(CONFIG_SOC_TX3927) += ops-tx3927.o 17 obj-$(CONFIG_PCI_VR41XX) += ops-vr41xx.o pci-vr41xx.o 18 obj-$(CONFIG_PCI_TX4927) += ops-tx4927.o 21 ops-bcm63xx.o 32 obj-$(CONFIG_LEMOTE_FULOONG2E) += fixup-fuloong2e.o ops-loongson2.o 33 obj-$(CONFIG_LEMOTE_MACH2F) += fixup-lemote2f.o ops-loongson2.o 36 obj-$(CONFIG_SGI_IP32) += fixup-ip32.o ops-mace.o pci-ip32.o [all …]
|
/arch/arm/kernel/ |
D | cpuidle.c | 68 return m->ops; in arm_cpuidle_get_ops() 90 const struct cpuidle_ops *ops; in arm_cpuidle_read_ops() local 96 ops = arm_cpuidle_get_ops(enable_method); in arm_cpuidle_read_ops() 97 if (!ops) { in arm_cpuidle_read_ops() 103 if (!ops->init || !ops->suspend) { in arm_cpuidle_read_ops() 109 cpuidle_ops[cpu] = *ops; /* structure copy */ in arm_cpuidle_read_ops()
|
/arch/arm64/kernel/ |
D | cpuidle.c | 21 const struct cpu_operations *ops = get_cpu_ops(cpu); in arm_cpuidle_init() local 24 if (ops && ops->cpu_suspend && ops->cpu_init_idle) in arm_cpuidle_init() 25 ret = ops->cpu_init_idle(cpu); in arm_cpuidle_init() 40 const struct cpu_operations *ops = get_cpu_ops(cpu); in arm_cpuidle_suspend() local 42 return ops->cpu_suspend(index); in arm_cpuidle_suspend()
|
D | smp.c | 108 const struct cpu_operations *ops = get_cpu_ops(cpu); in boot_secondary() local 110 if (ops->cpu_boot) in boot_secondary() 111 return ops->cpu_boot(cpu); in boot_secondary() 205 const struct cpu_operations *ops; in secondary_start_kernel() local 234 ops = get_cpu_ops(cpu); in secondary_start_kernel() 235 if (ops->cpu_postboot) in secondary_start_kernel() 236 ops->cpu_postboot(); in secondary_start_kernel() 276 const struct cpu_operations *ops = get_cpu_ops(cpu); in op_cpu_disable() local 282 if (!ops || !ops->cpu_die) in op_cpu_disable() 289 if (ops->cpu_disable) in op_cpu_disable() [all …]
|
D | cpu_ops.c | 41 const struct cpu_operations *const *ops; in cpu_get_ops() local 43 ops = acpi_disabled ? dt_supported_cpu_ops : acpi_supported_cpu_ops; in cpu_get_ops() 45 while (*ops) { in cpu_get_ops() 46 if (!strcmp(name, (*ops)->name)) in cpu_get_ops() 47 return *ops; in cpu_get_ops() 49 ops++; in cpu_get_ops()
|
/arch/riscv/kernel/ |
D | smp.c | 82 void riscv_set_ipi_ops(const struct riscv_ipi_ops *ops) in riscv_set_ipi_ops() argument 84 ipi_ops = ops; in riscv_set_ipi_ops() 142 unsigned long ops; in handle_IPI() local 147 ops = xchg(pending_ipis, 0); in handle_IPI() 148 if (ops == 0) in handle_IPI() 151 if (ops & (1 << IPI_RESCHEDULE)) { in handle_IPI() 156 if (ops & (1 << IPI_CALL_FUNC)) { in handle_IPI() 161 if (ops & (1 << IPI_CPU_STOP)) { in handle_IPI() 166 if (ops & (1 << IPI_IRQ_WORK)) { in handle_IPI() 172 if (ops & (1 << IPI_TIMER)) { in handle_IPI() [all …]
|
/arch/powerpc/platforms/cell/spufs/ |
D | run.c | 58 *stat = ctx->ops->status_read(ctx); in spu_stopped() 130 ctx->ops->signal1_write(ctx, (unsigned long)isolated_loader >> 32); in spu_setup_isolated() 131 ctx->ops->signal2_write(ctx, in spu_setup_isolated() 134 ctx->ops->runcntl_write(ctx, in spu_setup_isolated() 139 while (((status = ctx->ops->status_read(ctx)) & status_loading) == in spu_setup_isolated() 154 ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_RUNNABLE); in spu_setup_isolated() 162 ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_STOP); in spu_setup_isolated() 199 if (!(ctx->ops->status_read(ctx) & SPU_STATUS_ISOLATED_STATE)) { in spu_run_init() 209 runcntl = ctx->ops->runcntl_read(ctx) & in spu_run_init() 221 ctx->ops->privcntl_write(ctx, privcntl); in spu_run_init() [all …]
|
/arch/um/drivers/ |
D | chan_kern.c | 91 if (chan->ops->open == NULL) in open_one_chan() 93 else fd = (*chan->ops->open)(chan->input, chan->output, chan->primary, in open_one_chan() 100 (*chan->ops->close)(fd, chan->data); in open_one_chan() 127 if (chan && chan->primary && chan->ops->winch) in chan_enable_winch() 223 if (chan->ops->close != NULL) in close_one_chan() 224 (*chan->ops->close)(chan->fd, chan->data); in close_one_chan() 255 if (len == 0 || !chan || !chan->ops->write) in write_chan() 258 n = chan->ops->write(chan->fd, buf, len, chan->data); in write_chan() 269 if (!chan || !chan->ops->console_write) in console_write_chan() 272 n = chan->ops->console_write(chan->fd, buf, len); in console_write_chan() [all …]
|
/arch/sh/drivers/pci/ |
D | Makefile | 7 obj-$(CONFIG_CPU_SUBTYPE_SH7751) += pci-sh7751.o ops-sh4.o 8 obj-$(CONFIG_CPU_SUBTYPE_SH7751R) += pci-sh7751.o ops-sh4.o 9 obj-$(CONFIG_CPU_SUBTYPE_SH7763) += pci-sh7780.o ops-sh4.o 10 obj-$(CONFIG_CPU_SUBTYPE_SH7780) += pci-sh7780.o ops-sh4.o 11 obj-$(CONFIG_CPU_SUBTYPE_SH7785) += pci-sh7780.o ops-sh4.o 12 obj-$(CONFIG_CPU_SUBTYPE_SH7786) += pcie-sh7786.o ops-sh7786.o 14 obj-$(CONFIG_SH_DREAMCAST) += ops-dreamcast.o fixups-dreamcast.o \
|
/arch/arm/include/asm/mach/ |
D | arch.h | 17 #define smp_ops(ops) (&(ops)) argument 18 #define smp_init_ops(ops) (&(ops)) argument 20 #define smp_ops(ops) (struct smp_operations *)NULL argument 21 #define smp_init_ops(ops) (bool (*)(void))NULL argument
|
/arch/sh/kernel/ |
D | unwinder.c | 83 static int unwinder_enqueue(struct unwinder *ops) in unwinder_enqueue() argument 91 if (o == ops) in unwinder_enqueue() 94 if (o->rating >= ops->rating) in unwinder_enqueue() 97 list_add(&ops->list, entry); in unwinder_enqueue() 133 unsigned long *sp, const struct stacktrace_ops *ops, in unwind_stack() argument 163 curr_unwinder->dump(task, regs, sp, ops, data); in unwind_stack()
|
D | dumpstack.c | 56 const struct stacktrace_ops *ops, in print_ftrace_graph_addr() argument 75 ops->address(data, ret_addr, 1); in print_ftrace_graph_addr() 82 const struct stacktrace_ops *ops, in print_ftrace_graph_addr() argument 89 unsigned long *sp, const struct stacktrace_ops *ops, in stack_reader_dump() argument 102 ops->address(data, addr, 1); in stack_reader_dump() 104 print_ftrace_graph_addr(addr, data, ops, in stack_reader_dump()
|
/arch/powerpc/kernel/ |
D | io-workarounds.c | 107 if (bus && bus->ops && bus->ops->name) \ 108 return bus->ops->name al; \ 117 if (bus && bus->ops && bus->ops->name) { \ 118 bus->ops->name al; \ 170 void iowa_register_bus(struct pci_controller *phb, struct ppc_pci_io *ops, in iowa_register_bus() argument 186 bus->ops = ops; in iowa_register_bus()
|
/arch/sh/drivers/dma/ |
D | dma-api.c | 97 if (info->ops->get_residue) in get_dma_residue() 98 return info->ops->get_residue(channel); in get_dma_residue() 179 if (info->ops->request) { in dmac_search_free_channel() 180 int result = info->ops->request(channel); in dmac_search_free_channel() 203 if (info->ops->request) { in request_dma() 204 result = info->ops->request(channel); in request_dma() 220 if (info->ops->free) in free_dma() 221 info->ops->free(channel); in free_dma() 234 (info->ops->get_residue(channel) == 0)); in dma_wait_for_completion() 238 while (info->ops->get_residue(channel)) in dma_wait_for_completion() [all …]
|
/arch/sparc/kernel/ |
D | pci_msi.c | 18 const struct sparc64_msiq_ops *ops; in sparc64_msiq_interrupt() local 22 ops = pbm->msi_ops; in sparc64_msiq_interrupt() 24 err = ops->get_head(pbm, msiqid, &head); in sparc64_msiq_interrupt() 32 err = ops->dequeue_msi(pbm, msiqid, &head, &msi); in sparc64_msiq_interrupt() 47 err = ops->set_head(pbm, msiqid, head); in sparc64_msiq_interrupt() 127 const struct sparc64_msiq_ops *ops = pbm->msi_ops; in sparc64_setup_msi_irq() local 148 err = ops->msi_setup(pbm, msiqid, msi, in sparc64_setup_msi_irq() 185 const struct sparc64_msiq_ops *ops = pbm->msi_ops; in sparc64_teardown_msi_irq() local 202 err = ops->msi_teardown(pbm, msi_num); in sparc64_teardown_msi_irq() 276 const struct sparc64_msiq_ops *ops, in bringup_one_msi_queue() argument [all …]
|
/arch/arm/include/asm/ |
D | firmware.h | 72 static inline void register_firmware_ops(const struct firmware_ops *ops) in register_firmware_ops() argument 74 BUG_ON(!ops); in register_firmware_ops() 76 firmware_ops = ops; in register_firmware_ops()
|
/arch/powerpc/platforms/powernv/ |
D | opal-sensor-groups.c | 129 static int add_attr_group(const __be32 *ops, int len, struct sensor_group *sg, in add_attr_group() argument 137 if (be32_to_cpu(ops[i]) == ops_info[j].opal_no) { in add_attr_group() 147 static int get_nr_attrs(const __be32 *ops, int len) in get_nr_attrs() argument 154 if (be32_to_cpu(ops[i]) == ops_info[j].opal_no) in get_nr_attrs() 182 const __be32 *ops; in opal_sensor_groups_init() local 185 ops = of_get_property(node, "ops", &len); in opal_sensor_groups_init() 186 if (!ops) in opal_sensor_groups_init() 189 nr_attrs = get_nr_attrs(ops, len); in opal_sensor_groups_init() 218 if (add_attr_group(ops, len, &sgs[i], sgid)) { in opal_sensor_groups_init()
|
/arch/csky/kernel/ |
D | smp.c | 49 unsigned long ops; in handle_ipi() local 51 ops = xchg(&this_cpu_ptr(&ipi_data)->bits, 0); in handle_ipi() 52 if (ops == 0) in handle_ipi() 55 if (ops & (1 << IPI_RESCHEDULE)) { in handle_ipi() 60 if (ops & (1 << IPI_CALL_FUNC)) { in handle_ipi() 65 if (ops & (1 << IPI_IRQ_WORK)) { in handle_ipi() 70 BUG_ON((ops >> IPI_MAX) != 0); in handle_ipi()
|