Home
last modified time | relevance | path

Searched refs:op (Results 1 – 25 of 227) sorted by relevance

12345678910

/arch/sh/kernel/
Dkgdb.c20 #define OPCODE_BT(op) (((op) & 0xff00) == 0x8900) argument
21 #define OPCODE_BF(op) (((op) & 0xff00) == 0x8b00) argument
22 #define OPCODE_BTF_DISP(op) (((op) & 0x80) ? (((op) | 0xffffff80) << 1) : \ argument
23 (((op) & 0x7f ) << 1))
24 #define OPCODE_BFS(op) (((op) & 0xff00) == 0x8f00) argument
25 #define OPCODE_BTS(op) (((op) & 0xff00) == 0x8d00) argument
26 #define OPCODE_BRA(op) (((op) & 0xf000) == 0xa000) argument
27 #define OPCODE_BRA_DISP(op) (((op) & 0x800) ? (((op) | 0xfffff800) << 1) : \ argument
28 (((op) & 0x7ff) << 1))
29 #define OPCODE_BRAF(op) (((op) & 0xf0ff) == 0x0023) argument
[all …]
Dsys_sh.c57 asmlinkage int sys_cacheflush(unsigned long addr, unsigned long len, int op) in sys_cacheflush() argument
61 if ((op <= 0) || (op > (CACHEFLUSH_D_PURGE|CACHEFLUSH_I))) in sys_cacheflush()
78 switch (op & CACHEFLUSH_D_PURGE) { in sys_cacheflush()
90 if (op & CACHEFLUSH_I) in sys_cacheflush()
/arch/x86/mm/kmemcheck/
Dopcode.c39 void kmemcheck_opcode_decode(const uint8_t *op, unsigned int *size) in kmemcheck_opcode_decode() argument
45 for (; opcode_is_prefix(*op); ++op) { in kmemcheck_opcode_decode()
46 if (*op == 0x66) in kmemcheck_opcode_decode()
51 if (opcode_is_rex_prefix(*op)) { in kmemcheck_opcode_decode()
52 uint8_t rex = *op; in kmemcheck_opcode_decode()
54 ++op; in kmemcheck_opcode_decode()
56 switch (*op) { in kmemcheck_opcode_decode()
61 ++op; in kmemcheck_opcode_decode()
63 switch (*op) { in kmemcheck_opcode_decode()
83 if (*op == 0x0f) { in kmemcheck_opcode_decode()
[all …]
Dselftest.c38 static bool selftest_opcode_one(const struct selftest_opcode *op) in selftest_opcode_one() argument
42 kmemcheck_opcode_decode(op->insn, &size); in selftest_opcode_one()
44 if (size == op->expected_size) in selftest_opcode_one()
48 op->desc, op->expected_size, size); in selftest_opcode_one()
/arch/x86/kernel/
Dkprobes-opt.c44 struct optimized_kprobe *op; in __recover_optprobed_insn() local
53 op = container_of(kp, struct optimized_kprobe, kp); in __recover_optprobed_insn()
55 if (list_empty(&op->list)) in __recover_optprobed_insn()
70 memcpy(buf + 1, op->optinsn.copied_insn, RELATIVE_ADDR_SIZE); in __recover_optprobed_insn()
73 memcpy(buf, op->optinsn.copied_insn + offs, RELATIVE_ADDR_SIZE - offs); in __recover_optprobed_insn()
144 static void __kprobes optimized_callback(struct optimized_kprobe *op, struct pt_regs *regs) in optimized_callback() argument
150 if (kprobe_disabled(&op->kp)) in optimized_callback()
155 kprobes_inc_nmissed_count(&op->kp); in optimized_callback()
164 regs->ip = (unsigned long)op->kp.addr + INT3_SIZE; in optimized_callback()
167 __this_cpu_write(current_kprobe, &op->kp); in optimized_callback()
[all …]
/arch/powerpc/kernel/
Dftrace.c32 unsigned int op; in ftrace_call_replace() local
37 op = create_branch((unsigned int *)ip, addr, link ? 1 : 0); in ftrace_call_replace()
39 return op; in ftrace_call_replace()
86 static int is_bl_op(unsigned int op) in is_bl_op() argument
88 return (op & 0xfc000003) == 0x48000001; in is_bl_op()
91 static unsigned long find_bl_target(unsigned long ip, unsigned int op) in find_bl_target() argument
95 offset = (op & 0x03fffffc); in find_bl_target()
108 unsigned int op; in __ftrace_make_nop() local
116 if (probe_kernel_read(&op, (void *)ip, sizeof(int))) in __ftrace_make_nop()
120 if (!is_bl_op(op)) { in __ftrace_make_nop()
[all …]
/arch/ia64/include/asm/
Dparavirt_privop.h240 #define PARAVIRT_OP(op) \ argument
241 [op_addr] "i"(&pv_cpu_ops.op)
299 #define PARAVIRT_BR0(op, type) \ argument
304 : PARAVIRT_OP(op) \
307 #define PARAVIRT_BR0_RET(op, type) \ argument
312 : PARAVIRT_OP(op) \
315 #define PARAVIRT_BR1(op, type, arg1) \ argument
321 : PARAVIRT_OP(op), "0"(__##arg1) \
324 #define PARAVIRT_BR1_RET(op, type, arg1) \ argument
330 : PARAVIRT_OP(op), "0"(__##arg1) \
[all …]
/arch/x86/include/asm/
Dparavirt_types.h365 #define paravirt_type(op) \ argument
366 [paravirt_typenum] "i" (PARAVIRT_PATCH(op)), \
367 [paravirt_opptr] "i" (&(op))
531 #define PVOP_TEST_NULL(op) BUG_ON(op == NULL) argument
533 #define PVOP_TEST_NULL(op) ((void)op) argument
536 #define ____PVOP_CALL(rettype, op, clbr, call_clbr, extra_clbr, \ argument
541 PVOP_TEST_NULL(op); \
549 : paravirt_type(op), \
559 : paravirt_type(op), \
568 #define __PVOP_CALL(rettype, op, pre, post, ...) \ argument
[all …]
/arch/sparc/kernel/
Dof_device_32.c244 static void __init build_device_resources(struct platform_device *op, in build_device_resources() argument
258 bus->count_cells(op->dev.of_node, &na, &ns); in build_device_resources()
260 preg = of_get_property(op->dev.of_node, bus->addr_prop_name, &num_reg); in build_device_resources()
270 op->resource = op->archdata.resource; in build_device_resources()
271 op->num_resources = num_reg; in build_device_resources()
273 struct resource *r = &op->resource[index]; in build_device_resources()
276 struct device_node *dp = op->dev.of_node; in build_device_resources()
326 op->dev.of_node->full_name, index, in build_device_resources()
334 r->name = op->dev.of_node->name; in build_device_resources()
341 struct platform_device *op = kzalloc(sizeof(*op), GFP_KERNEL); in scan_one_device() local
[all …]
Dof_device_common.c16 struct platform_device *op = of_find_device_by_node(node); in irq_of_parse_and_map() local
18 if (!op || index >= op->archdata.num_irqs) in irq_of_parse_and_map()
21 return op->archdata.irqs[index]; in irq_of_parse_and_map()
28 struct platform_device *op = of_find_device_by_node(node); in of_address_to_resource() local
30 if (!op || index >= op->num_resources) in of_address_to_resource()
33 memcpy(r, &op->archdata.resource[index], sizeof(*r)); in of_address_to_resource()
40 struct platform_device *op = of_find_device_by_node(node); in of_iomap() local
43 if (!op || index >= op->num_resources) in of_iomap()
46 r = &op->archdata.resource[index]; in of_iomap()
62 struct platform_device *op = of_find_device_by_node(dp); in of_propagate_archdata() local
[all …]
Dcentral.c63 static int __devinit clock_board_probe(struct platform_device *op) in clock_board_probe() argument
73 p->clock_freq_regs = of_ioremap(&op->resource[0], 0, in clock_board_probe()
74 resource_size(&op->resource[0]), in clock_board_probe()
81 p->clock_regs = of_ioremap(&op->resource[1], 0, in clock_board_probe()
82 resource_size(&op->resource[1]), in clock_board_probe()
89 if (op->resource[2].flags) { in clock_board_probe()
90 p->clock_ver_reg = of_ioremap(&op->resource[2], 0, in clock_board_probe()
91 resource_size(&op->resource[2]), in clock_board_probe()
110 p->leds_pdev.dev.parent = &op->dev; in clock_board_probe()
128 of_iounmap(&op->resource[2], p->clock_ver_reg, in clock_board_probe()
[all …]
Dof_device_64.c314 static void __init build_device_resources(struct platform_device *op, in build_device_resources() argument
328 bus->count_cells(op->dev.of_node, &na, &ns); in build_device_resources()
330 preg = of_get_property(op->dev.of_node, bus->addr_prop_name, &num_reg); in build_device_resources()
344 op->dev.of_node->full_name, num_reg, PROMREG_MAX); in build_device_resources()
348 op->resource = op->archdata.resource; in build_device_resources()
349 op->num_resources = num_reg; in build_device_resources()
351 struct resource *r = &op->resource[index]; in build_device_resources()
354 struct device_node *dp = op->dev.of_node; in build_device_resources()
403 op->dev.of_node->full_name, index, in build_device_resources()
414 r->name = op->dev.of_node->name; in build_device_resources()
[all …]
Dsbus.c61 struct platform_device *op = to_platform_device(dev); in sbus_set_sbus64() local
67 regs = of_get_property(op->dev.of_node, "reg", NULL); in sbus_set_sbus64()
70 op->dev.of_node->full_name); in sbus_set_sbus64()
208 static unsigned int sbus_build_irq(struct platform_device *op, unsigned int ino) in sbus_build_irq() argument
210 struct iommu *iommu = op->dev.archdata.iommu; in sbus_build_irq()
271 struct platform_device *op = dev_id; in sysio_ue_handler() local
272 struct iommu *iommu = op->dev.archdata.iommu; in sysio_ue_handler()
291 portid = of_getintprop_default(op->dev.of_node, "portid", -1); in sysio_ue_handler()
345 struct platform_device *op = dev_id; in sysio_ce_handler() local
346 struct iommu *iommu = op->dev.archdata.iommu; in sysio_ce_handler()
[all …]
Dpower.c36 static int __devinit power_probe(struct platform_device *op) in power_probe() argument
38 struct resource *res = &op->resource[0]; in power_probe()
39 unsigned int irq = op->archdata.irqs[0]; in power_probe()
44 op->dev.of_node->name, res->start); in power_probe()
46 if (has_button_interrupt(irq, op->dev.of_node)) { in power_probe()
Dapc.c72 static inline void apc_free(struct platform_device *op) in apc_free() argument
74 of_iounmap(&op->resource[0], regs, resource_size(&op->resource[0])); in apc_free()
141 static int __devinit apc_probe(struct platform_device *op) in apc_probe() argument
145 regs = of_ioremap(&op->resource[0], 0, in apc_probe()
146 resource_size(&op->resource[0]), APC_OBPNAME); in apc_probe()
155 apc_free(op); in apc_probe()
/arch/sparc/include/asm/
Dparport.h106 static int __devinit ecpp_probe(struct platform_device *op) in ecpp_probe() argument
108 unsigned long base = op->resource[0].start; in ecpp_probe()
109 unsigned long config = op->resource[1].start; in ecpp_probe()
110 unsigned long d_base = op->resource[2].start; in ecpp_probe()
116 parent = op->dev.of_node->parent; in ecpp_probe()
119 op->archdata.irqs[0], PARPORT_DMA_NOFIFO, in ecpp_probe()
120 op->dev.parent->parent, 0); in ecpp_probe()
123 dev_set_drvdata(&op->dev, p); in ecpp_probe()
137 d_len = (op->resource[2].end - d_base) + 1UL; in ecpp_probe()
139 of_ioremap(&op->resource[2], 0, d_len, "ECPP DMA"); in ecpp_probe()
[all …]
/arch/mips/mm/
Duasm.c249 u32 op; in build_insn() local
260 op = ip->match; in build_insn()
263 op |= build_rs(va_arg(ap, u32)); in build_insn()
265 op |= build_rt(va_arg(ap, u32)); in build_insn()
267 op |= build_rd(va_arg(ap, u32)); in build_insn()
269 op |= build_re(va_arg(ap, u32)); in build_insn()
271 op |= build_simm(va_arg(ap, s32)); in build_insn()
273 op |= build_uimm(va_arg(ap, u32)); in build_insn()
275 op |= build_bimm(va_arg(ap, s32)); in build_insn()
277 op |= build_jimm(va_arg(ap, u32)); in build_insn()
[all …]
/arch/x86/include/asm/xen/
Dhypercall.h237 HYPERVISOR_mmuext_op(struct mmuext_op *op, int count, in HYPERVISOR_mmuext_op() argument
240 return _hypercall4(int, mmuext_op, op, count, success_count, domid); in HYPERVISOR_mmuext_op()
360 struct evtchn_op op; in HYPERVISOR_event_channel_op() local
361 op.cmd = cmd; in HYPERVISOR_event_channel_op()
362 memcpy(&op.u, arg, sizeof(op.u)); in HYPERVISOR_event_channel_op()
363 rc = _hypercall1(int, event_channel_op_compat, &op); in HYPERVISOR_event_channel_op()
364 memcpy(arg, &op.u, sizeof(op.u)); in HYPERVISOR_event_channel_op()
386 struct physdev_op op; in HYPERVISOR_physdev_op() local
387 op.cmd = cmd; in HYPERVISOR_physdev_op()
388 memcpy(&op.u, arg, sizeof(op.u)); in HYPERVISOR_physdev_op()
[all …]
/arch/arm/kernel/
Dkprobes-test-thumb.c92 #define DATA_PROCESSING16(op,val) \ in kprobe_thumb16_test_cases() argument
93 TEST_RR( op" r",0,VAL1,", r",7,val,"") \ in kprobe_thumb16_test_cases()
94 TEST_RR( op" r",7,VAL2,", r",0,val,"") in kprobe_thumb16_test_cases()
476 #define _DATA_PROCESSING32_DNM(op,s,val) \ in kprobe_thumb32_test_cases() argument
477 TEST_RR(op s".w r0, r",1, VAL1,", r",2, val, "") \ in kprobe_thumb32_test_cases()
478 TEST_RR(op s" r1, r",1, VAL1,", r",2, val, ", lsl #3") \ in kprobe_thumb32_test_cases()
479 TEST_RR(op s" r2, r",3, VAL1,", r",2, val, ", lsr #4") \ in kprobe_thumb32_test_cases()
480 TEST_RR(op s" r3, r",3, VAL1,", r",2, val, ", asr #5") \ in kprobe_thumb32_test_cases()
481 TEST_RR(op s" r4, r",5, VAL1,", r",2, N(val),", asr #6") \ in kprobe_thumb32_test_cases()
482 TEST_RR(op s" r5, r",5, VAL1,", r",2, val, ", ror #7") \ in kprobe_thumb32_test_cases()
[all …]
Dkprobes-test-arm.c57 #define _DATA_PROCESSING_DNM(op,s,val) \ in kprobe_arm_test_cases() argument
58 TEST_RR( op "eq" s " r0, r",1, VAL1,", r",2, val, "") \ in kprobe_arm_test_cases()
59 TEST_RR( op "ne" s " r1, r",1, VAL1,", r",2, val, ", lsl #3") \ in kprobe_arm_test_cases()
60 TEST_RR( op "cs" s " r2, r",3, VAL1,", r",2, val, ", lsr #4") \ in kprobe_arm_test_cases()
61 TEST_RR( op "cc" s " r3, r",3, VAL1,", r",2, val, ", asr #5") \ in kprobe_arm_test_cases()
62 TEST_RR( op "mi" s " r4, r",5, VAL1,", r",2, N(val),", asr #6") \ in kprobe_arm_test_cases()
63 TEST_RR( op "pl" s " r5, r",5, VAL1,", r",2, val, ", ror #7") \ in kprobe_arm_test_cases()
64 TEST_RR( op "vs" s " r6, r",7, VAL1,", r",2, val, ", rrx") \ in kprobe_arm_test_cases()
65 TEST_R( op "vc" s " r6, r",7, VAL1,", pc, lsl #3") \ in kprobe_arm_test_cases()
66 TEST_R( op "vc" s " r6, r",7, VAL1,", sp, lsr #4") \ in kprobe_arm_test_cases()
[all …]
/arch/ia64/include/asm/sn/
Dmspec.h26 #define FETCHOP_LOAD_OP(addr, op) ( \ argument
27 *(volatile long *)((char*) (addr) + (op)))
29 #define FETCHOP_STORE_OP(addr, op, x) ( \ argument
30 *(volatile long *)((char*) (addr) + (op)) = (long) (x))
/arch/sh/kernel/cpu/sh5/
Dunwind.c78 unsigned long op; in lookup_prev_stack_frame() local
82 op = *(unsigned long *)prologue; in lookup_prev_stack_frame()
84 major = (op >> 26) & 0x3f; in lookup_prev_stack_frame()
85 src = (op >> 20) & 0x3f; in lookup_prev_stack_frame()
86 minor = (op >> 16) & 0xf; in lookup_prev_stack_frame()
87 disp = (op >> 10) & 0x3f; in lookup_prev_stack_frame()
88 dest = (op >> 4) & 0x3f; in lookup_prev_stack_frame()
133 offset_r14 = (u64)(((((s64)op >> 10) & 0x3ff) << 54) >> 54); in lookup_prev_stack_frame()
141 offset_r18 = (u64)(((((s64)op >> 10) & 0x3ff) << 54) >> 54); in lookup_prev_stack_frame()
153 dest, op); in lookup_prev_stack_frame()
[all …]
/arch/ia64/kernel/
Dsmp.c145 send_IPI_single (int dest_cpu, int op) in send_IPI_single() argument
147 set_bit(op, &per_cpu(ipi_operation, dest_cpu)); in send_IPI_single()
155 send_IPI_allbutself (int op) in send_IPI_allbutself() argument
161 send_IPI_single(i, op); in send_IPI_allbutself()
169 send_IPI_mask(const struct cpumask *mask, int op) in send_IPI_mask() argument
174 send_IPI_single(cpu, op); in send_IPI_mask()
182 send_IPI_all (int op) in send_IPI_all() argument
187 send_IPI_single(i, op); in send_IPI_all()
195 send_IPI_self (int op) in send_IPI_self() argument
197 send_IPI_single(smp_processor_id(), op); in send_IPI_self()
/arch/mips/math-emu/
Dieee754.c99 int ieee754si_xcpt(int r, const char *op, ...) in ieee754si_xcpt() argument
105 ax.op = op; in ieee754si_xcpt()
108 va_start(ax.ap, op); in ieee754si_xcpt()
114 s64 ieee754di_xcpt(s64 r, const char *op, ...) in ieee754di_xcpt() argument
120 ax.op = op; in ieee754di_xcpt()
123 va_start(ax.ap, op); in ieee754di_xcpt()
/arch/x86/lib/
Dmsr-reg.S14 .macro op_safe_regs op argument
15 ENTRY(native_\op\()_safe_regs)
29 1: \op
48 ENDPROC(native_\op\()_safe_regs)
53 .macro op_safe_regs op argument
54 ENTRY(native_\op\()_safe_regs)
70 1: \op
95 ENDPROC(native_\op\()_safe_regs)

12345678910