/arch/x86/mm/kmemcheck/ |
D | opcode.c | 39 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 …]
|
/arch/sh/kernel/ |
D | kgdb.c | 21 #define OPCODE_BT(op) (((op) & 0xff00) == 0x8900) argument 22 #define OPCODE_BF(op) (((op) & 0xff00) == 0x8b00) argument 23 #define OPCODE_BTF_DISP(op) (((op) & 0x80) ? (((op) | 0xffffff80) << 1) : \ argument 24 (((op) & 0x7f ) << 1)) 25 #define OPCODE_BFS(op) (((op) & 0xff00) == 0x8f00) argument 26 #define OPCODE_BTS(op) (((op) & 0xff00) == 0x8d00) argument 27 #define OPCODE_BRA(op) (((op) & 0xf000) == 0xa000) argument 28 #define OPCODE_BRA_DISP(op) (((op) & 0x800) ? (((op) | 0xfffff800) << 1) : \ argument 29 (((op) & 0x7ff) << 1)) 30 #define OPCODE_BRAF(op) (((op) & 0xf0ff) == 0x0023) argument [all …]
|
/arch/sparc/lib/ |
D | atomic_64.S | 20 #define ATOMIC_OP(op) \ argument 21 ENTRY(atomic_##op) /* %o0 = increment, %o1 = atomic_ptr */ \ 24 op %g1, %o0, %g7; \ 32 ENDPROC(atomic_##op); \ 33 EXPORT_SYMBOL(atomic_##op); 35 #define ATOMIC_OP_RETURN(op) \ argument 36 ENTRY(atomic_##op##_return) /* %o0 = increment, %o1 = atomic_ptr */ \ 39 op %g1, %o0, %g7; \ 43 op %g1, %o0, %g1; \ 47 ENDPROC(atomic_##op##_return); \ [all …]
|
/arch/frv/include/asm/ |
D | atomic_defs.h | 13 #define ATOMIC_OP_RETURN(op) argument 14 #define ATOMIC_FETCH_OP(op) argument 24 #define ATOMIC_OP_RETURN(op) \ argument 25 extern int __atomic_##op##_return(int i, int *v); \ 26 extern long long __atomic64_##op##_return(long long i, long long *v); 28 #define ATOMIC_FETCH_OP(op) \ argument 29 extern int __atomic32_fetch_##op(int i, int *v); \ 30 extern long long __atomic64_fetch_##op(long long i, long long *v); 61 #define ATOMIC_OP_RETURN(op) \ argument 62 ATOMIC_QUALS int __atomic_##op##_return(int i, int *v) \ [all …]
|
/arch/x86/kernel/kprobes/ |
D | opt.c | 46 struct optimized_kprobe *op; in __recover_optprobed_insn() local 55 op = container_of(kp, struct optimized_kprobe, kp); in __recover_optprobed_insn() 57 if (list_empty(&op->list)) in __recover_optprobed_insn() 72 memcpy(buf + 1, op->optinsn.copied_insn, RELATIVE_ADDR_SIZE); in __recover_optprobed_insn() 75 memcpy(buf, op->optinsn.copied_insn + offs, RELATIVE_ADDR_SIZE - offs); in __recover_optprobed_insn() 144 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/sh/include/asm/ |
D | atomic-llsc.h | 18 #define ATOMIC_OP(op) \ argument 19 static inline void atomic_##op(int i, atomic_t *v) \ 24 "1: movli.l @%2, %0 ! atomic_" #op "\n" \ 25 " " #op " %1, %0 \n" \ 33 #define ATOMIC_OP_RETURN(op) \ argument 34 static inline int atomic_##op##_return(int i, atomic_t *v) \ 39 "1: movli.l @%2, %0 ! atomic_" #op "_return \n" \ 40 " " #op " %1, %0 \n" \ 51 #define ATOMIC_FETCH_OP(op) \ argument 52 static inline int atomic_fetch_##op(int i, atomic_t *v) \ [all …]
|
D | atomic-grb.h | 4 #define ATOMIC_OP(op) \ argument 5 static inline void atomic_##op(int i, atomic_t *v) \ 15 " " #op " %2, %0 \n\t" /* $op */ \ 24 #define ATOMIC_OP_RETURN(op) \ argument 25 static inline int atomic_##op##_return(int i, atomic_t *v) \ 35 " " #op " %2, %0 \n\t" /* $op */ \ 46 #define ATOMIC_FETCH_OP(op) \ argument 47 static inline int atomic_fetch_##op(int i, atomic_t *v) \ 58 " " #op " %3, %0 \n\t" /* $op */ \ 68 #define ATOMIC_OPS(op) ATOMIC_OP(op) ATOMIC_OP_RETURN(op) ATOMIC_FETCH_OP(op) argument [all …]
|
D | atomic-irq.h | 12 #define ATOMIC_OP(op, c_op) \ argument 13 static inline void atomic_##op(int i, atomic_t *v) \ 22 #define ATOMIC_OP_RETURN(op, c_op) \ argument 23 static inline int atomic_##op##_return(int i, atomic_t *v) \ 36 #define ATOMIC_FETCH_OP(op, c_op) \ argument 37 static inline int atomic_fetch_##op(int i, atomic_t *v) \ 49 #define ATOMIC_OPS(op, c_op) \ argument 50 ATOMIC_OP(op, c_op) \ 51 ATOMIC_OP_RETURN(op, c_op) \ 52 ATOMIC_FETCH_OP(op, c_op) [all …]
|
/arch/arm/probes/kprobes/ |
D | opt-arm.c | 132 int arch_check_optimized_kprobe(struct optimized_kprobe *op) in arch_check_optimized_kprobe() argument 153 __arch_remove_optimized_kprobe(struct optimized_kprobe *op, int dirty) in __arch_remove_optimized_kprobe() argument 155 if (op->optinsn.insn) { in __arch_remove_optimized_kprobe() 156 free_optinsn_slot(op->optinsn.insn, dirty); in __arch_remove_optimized_kprobe() 157 op->optinsn.insn = NULL; in __arch_remove_optimized_kprobe() 164 optimized_callback(struct optimized_kprobe *op, struct pt_regs *regs) in optimized_callback() argument 167 struct kprobe *p = &op->kp; in optimized_callback() 171 regs->ARM_pc = (unsigned long)op->kp.addr; in optimized_callback() 177 kprobes_inc_nmissed_count(&op->kp); in optimized_callback() 179 __this_cpu_write(current_kprobe, &op->kp); in optimized_callback() [all …]
|
/arch/xtensa/include/asm/ |
D | atomic.h | 62 #define ATOMIC_OP(op) \ argument 63 static inline void atomic_##op(int i, atomic_t * v) \ 71 " " #op " %0, %1, %2\n" \ 80 #define ATOMIC_OP_RETURN(op) \ argument 81 static inline int atomic_##op##_return(int i, atomic_t * v) \ 89 " " #op " %0, %1, %2\n" \ 92 " " #op " %0, %0, %2\n" \ 101 #define ATOMIC_FETCH_OP(op) \ argument 102 static inline int atomic_fetch_##op(int i, atomic_t * v) \ 110 " " #op " %0, %1, %2\n" \ [all …]
|
/arch/powerpc/kernel/ |
D | ftrace.c | 34 unsigned int op; in ftrace_call_replace() local 39 op = create_branch((unsigned int *)ip, addr, link ? 1 : 0); in ftrace_call_replace() 41 return op; in ftrace_call_replace() 90 static int is_bl_op(unsigned int op) in is_bl_op() argument 92 return (op & 0xfc000003) == 0x48000001; in is_bl_op() 95 static unsigned long find_bl_target(unsigned long ip, unsigned int op) in find_bl_target() argument 99 offset = (op & 0x03fffffc); in find_bl_target() 114 unsigned int op, pop; in __ftrace_make_nop() local 117 if (probe_kernel_read(&op, (void *)ip, sizeof(int))) { in __ftrace_make_nop() 123 if (!is_bl_op(op)) { in __ftrace_make_nop() [all …]
|
/arch/powerpc/lib/ |
D | sstep.c | 487 #define __put_user_asmx(x, addr, err, op, cr) \ argument 489 "1: " op " %2,0,%3\n" \ 503 #define __get_user_asmx(x, addr, err, op) \ argument 505 "1: "op" %1,0,%2\n" \ 518 #define __cacheop_user_asmx(addr, err, op) \ argument 520 "1: "op" 0,%1\n" \ 642 int __kprobes analyse_instr(struct instruction_op *op, struct pt_regs *regs, in analyse_instr() argument 651 op->type = COMPUTE; in analyse_instr() 656 op->type = BRANCH; in analyse_instr() 670 op->type = SYSCALL; in analyse_instr() [all …]
|
/arch/metag/include/asm/ |
D | atomic_lnkget.h | 30 #define ATOMIC_OP(op) \ argument 31 static inline void atomic_##op(int i, atomic_t *v) \ 37 " " #op " %0, %0, %2\n" \ 48 #define ATOMIC_OP_RETURN(op) \ argument 49 static inline int atomic_##op##_return(int i, atomic_t *v) \ 57 " " #op " %1, %1, %3\n" \ 72 #define ATOMIC_FETCH_OP(op) \ argument 73 static inline int atomic_fetch_##op(int i, atomic_t *v) \ 81 " " #op " %0, %1, %3\n" \ 96 #define ATOMIC_OPS(op) ATOMIC_OP(op) ATOMIC_OP_RETURN(op) ATOMIC_FETCH_OP(op) argument [all …]
|
/arch/alpha/include/asm/ |
D | atomic.h | 32 #define ATOMIC_OP(op, asm_op) \ argument 33 static __inline__ void atomic_##op(int i, atomic_t * v) \ 48 #define ATOMIC_OP_RETURN(op, asm_op) \ argument 49 static inline int atomic_##op##_return_relaxed(int i, atomic_t *v) \ 66 #define ATOMIC_FETCH_OP(op, asm_op) \ argument 67 static inline int atomic_fetch_##op##_relaxed(int i, atomic_t *v) \ 83 #define ATOMIC64_OP(op, asm_op) \ argument 84 static __inline__ void atomic64_##op(long i, atomic64_t * v) \ 99 #define ATOMIC64_OP_RETURN(op, asm_op) \ argument 100 static __inline__ long atomic64_##op##_return_relaxed(long i, atomic64_t * v) \ [all …]
|
/arch/hexagon/include/asm/ |
D | atomic.h | 97 #define ATOMIC_OP(op) \ argument 98 static inline void atomic_##op(int i, atomic_t *v) \ 104 " %0 = "#op "(%0,%2);\n" \ 113 #define ATOMIC_OP_RETURN(op) \ argument 114 static inline int atomic_##op##_return(int i, atomic_t *v) \ 120 " %0 = "#op "(%0,%2);\n" \ 130 #define ATOMIC_FETCH_OP(op) \ argument 131 static inline int atomic_fetch_##op(int i, atomic_t *v) \ 137 " %1 = "#op "(%0,%3);\n" \ 147 #define ATOMIC_OPS(op) ATOMIC_OP(op) ATOMIC_OP_RETURN(op) ATOMIC_FETCH_OP(op) argument [all …]
|
/arch/x86/include/asm/ |
D | paravirt_types.h | 339 #define paravirt_type(op) \ argument 340 [paravirt_typenum] "i" (PARAVIRT_PATCH(op)), \ 341 [paravirt_opptr] "i" (&(op)) 509 #define PVOP_TEST_NULL(op) BUG_ON(op == NULL) argument 511 #define PVOP_TEST_NULL(op) ((void)op) argument 514 #define ____PVOP_CALL(rettype, op, clbr, call_clbr, extra_clbr, \ argument 519 PVOP_TEST_NULL(op); \ 527 : paravirt_type(op), \ 537 : paravirt_type(op), \ 546 #define __PVOP_CALL(rettype, op, pre, post, ...) \ argument [all …]
|
/arch/m32r/include/asm/ |
D | atomic.h | 48 #define ATOMIC_OP(op) \ argument 49 static __inline__ void atomic_##op(int i, atomic_t *v) \ 56 "# atomic_" #op " \n\t" \ 59 #op " %0, %2; \n\t" \ 69 #define ATOMIC_OP_RETURN(op) \ argument 70 static __inline__ int atomic_##op##_return(int i, atomic_t *v) \ 77 "# atomic_" #op "_return \n\t" \ 80 #op " %0, %2; \n\t" \ 92 #define ATOMIC_FETCH_OP(op) \ argument 93 static __inline__ int atomic_fetch_##op(int i, atomic_t *v) \ [all …]
|
/arch/mn10300/include/asm/ |
D | atomic.h | 48 #define ATOMIC_OP(op) \ argument 49 static inline void atomic_##op(int i, atomic_t *v) \ 56 " " #op " %5,%1 \n" \ 67 #define ATOMIC_OP_RETURN(op) \ argument 68 static inline int atomic_##op##_return(int i, atomic_t *v) \ 75 " " #op " %5,%1 \n" \ 87 #define ATOMIC_FETCH_OP(op) \ argument 88 static inline int atomic_fetch_##op(int i, atomic_t *v) \ 96 " " #op " %5,%0 \n" \ 108 #define ATOMIC_OPS(op) ATOMIC_OP(op) ATOMIC_OP_RETURN(op) ATOMIC_FETCH_OP(op) argument [all …]
|
/arch/arc/include/asm/ |
D | atomic.h | 30 #define ATOMIC_OP(op, c_op, asm_op) \ argument 31 static inline void atomic_##op(int i, atomic_t *v) \ 46 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument 47 static inline int atomic_##op##_return(int i, atomic_t *v) \ 72 #define ATOMIC_FETCH_OP(op, c_op, asm_op) \ argument 73 static inline int atomic_fetch_##op(int i, atomic_t *v) \ 133 #define ATOMIC_OP(op, c_op, asm_op) \ argument 134 static inline void atomic_##op(int i, atomic_t *v) \ 143 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument 144 static inline int atomic_##op##_return(int i, atomic_t *v) \ [all …]
|
D | bitops.h | 31 #define BIT_OP(op, c_op, asm_op) \ argument 32 static inline void op##_bit(unsigned long nr, volatile unsigned long *m)\ 62 #define TEST_N_BIT_OP(op, c_op, asm_op) \ argument 63 static inline int test_and_##op##_bit(unsigned long nr, volatile unsigned long *m)\ 109 #define BIT_OP(op, c_op, asm_op) \ argument 110 static inline void op##_bit(unsigned long nr, volatile unsigned long *m)\ 126 #define TEST_N_BIT_OP(op, c_op, asm_op) \ argument 127 static inline int test_and_##op##_bit(unsigned long nr, volatile unsigned long *m)\ 144 #define BIT_OP(op, c_op, asm_op) \ argument 145 static inline void op##_bit(unsigned long nr, volatile unsigned long *m)\ [all …]
|
/arch/sparc/kernel/ |
D | of_device_32.c | 244 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 …]
|
D | of_device_common.c | 17 struct platform_device *op = of_find_device_by_node(node); in irq_of_parse_and_map() local 19 if (!op || index >= op->archdata.num_irqs) in irq_of_parse_and_map() 22 return op->archdata.irqs[index]; in irq_of_parse_and_map() 29 struct platform_device *op = of_find_device_by_node(node); in of_address_to_resource() local 31 if (!op || index >= op->num_resources) in of_address_to_resource() 34 memcpy(r, &op->archdata.resource[index], sizeof(*r)); in of_address_to_resource() 41 struct platform_device *op = of_find_device_by_node(node); in of_iomap() local 44 if (!op || index >= op->num_resources) in of_iomap() 47 r = &op->archdata.resource[index]; in of_iomap() 63 struct platform_device *op = of_find_device_by_node(dp); in of_propagate_archdata() local [all …]
|
D | central.c | 63 static int 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 …]
|
/arch/powerpc/include/asm/ |
D | atomic.h | 20 #define __atomic_op_acquire(op, args...) \ argument 22 typeof(op##_relaxed(args)) __ret = op##_relaxed(args); \ 27 #define __atomic_op_release(op, args...) \ argument 30 op##_relaxed(args); \ 47 #define ATOMIC_OP(op, asm_op) \ argument 48 static __inline__ void atomic_##op(int a, atomic_t *v) \ 53 "1: lwarx %0,0,%3 # atomic_" #op "\n" \ 63 #define ATOMIC_OP_RETURN_RELAXED(op, asm_op) \ argument 64 static inline int atomic_##op##_return_relaxed(int a, atomic_t *v) \ 69 "1: lwarx %0,0,%3 # atomic_" #op "_return_relaxed\n" \ [all …]
|
/arch/mips/mm/ |
D | uasm.c | 148 #define I_u1u2u3(op) \ argument 149 Ip_u1u2u3(op) \ 151 build_insn(buf, insn##op, a, b, c); \ 153 UASM_EXPORT_SYMBOL(uasm_i##op); 155 #define I_s3s1s2(op) \ argument 156 Ip_s3s1s2(op) \ 158 build_insn(buf, insn##op, b, c, a); \ 160 UASM_EXPORT_SYMBOL(uasm_i##op); 162 #define I_u2u1u3(op) \ argument 163 Ip_u2u1u3(op) \ [all …]
|