| /linux/arch/mips/include/asm/ |
| H A D | unaligned-emul.h | 11 "1:\t"type##_lb("%0", "0(%2)")"\n" \ 12 "2:\t"type##_lbu("$1", "1(%2)")"\n\t"\ 13 "sll\t%0, 0x8\n\t" \ 14 "or\t%0, $1\n\t" \ 15 "li\t%1, 0\n" \ 16 "3:\t.set\tat\n\t" \ 17 ".insn\n\t" \ 18 ".section\t.fixup,\"ax\"\n\t" \ 19 "4:\tli\t%1, %3\n\t" \ 20 "j\t3b\n\t" \ [all …]
|
| H A D | sim.h | 22 ".text\n\t" \ 23 ".globl\t__" #symbol "\n\t" \ 24 ".align\t2\n\t" \ 25 ".type\t__" #symbol ", @function\n\t" \ 27 #symbol":\n\t" \ 28 ".frame\t$29, 0, $31\n\t" \ 29 "sw\t$16,"__str(PT_R16)"($29)\t\t\t# save_static_function\n\t" \ 30 "sw\t$17,"__str(PT_R17)"($29)\n\t" \ 31 "sw\t$18,"__str(PT_R18)"($29)\n\t" \ 32 "sw\t$19,"__str(PT_R19)"($29)\n\t" \ [all …]
|
| /linux/arch/m68k/lib/ |
| H A D | checksum.c | 45 __asm__("movel %2,%3\n\t" in csum_partial() 46 "btst #1,%3\n\t" /* Check alignment */ in csum_partial() 47 "jeq 2f\n\t" in csum_partial() 48 "subql #2,%1\n\t" /* buff%4==2: treat first word */ in csum_partial() 49 "jgt 1f\n\t" in csum_partial() 50 "addql #2,%1\n\t" /* len was == 2, treat only rest */ in csum_partial() 52 "1:\t" in csum_partial() 53 "addw %2@+,%0\n\t" /* add first word to sum */ in csum_partial() 54 "clrl %3\n\t" in csum_partial() 56 "2:\t" in csum_partial() [all …]
|
| /linux/lib/crypto/powerpc/ |
| H A D | sha1-powerpc-asm.S | 22 * We roll the registers for T, A, B, C, D, E around on each 23 * iteration; T on iteration t is A on iteration t+1, and so on. 26 #define RT(t) ((((t)+5)%6)+7) argument 27 #define RA(t) ((((t)+4)%6)+7) argument 28 #define RB(t) ((((t)+3)%6)+7) argument 29 #define RC(t) ((((t)+2)%6)+7) argument 30 #define RD(t) ((((t)+1)%6)+7) argument 31 #define RE(t) ((((t)+0)%6)+7) argument 34 #define W(t) (((t)%16)+16) argument 36 #define LOADW(t) \ argument [all …]
|
| /linux/arch/mips/mm/ |
| H A D | c-r3k.c | 121 asm( "sb\t$0, 0x000(%0)\n\t" in r3k_flush_icache_range() 122 "sb\t$0, 0x004(%0)\n\t" in r3k_flush_icache_range() 123 "sb\t$0, 0x008(%0)\n\t" in r3k_flush_icache_range() 124 "sb\t$0, 0x00c(%0)\n\t" in r3k_flush_icache_range() 125 "sb\t$0, 0x010(%0)\n\t" in r3k_flush_icache_range() 126 "sb\t$0, 0x014(%0)\n\t" in r3k_flush_icache_range() 127 "sb\t$0, 0x018(%0)\n\t" in r3k_flush_icache_range() 128 "sb\t$0, 0x01c(%0)\n\t" in r3k_flush_icache_range() 129 "sb\t$0, 0x020(%0)\n\t" in r3k_flush_icache_range() 130 "sb\t$0, 0x024(%0)\n\t" in r3k_flush_icache_range() [all …]
|
| H A D | sc-ip22.c | 109 ".set\tpush\n\t" in indy_sc_enable() 110 ".set\tnoreorder\n\t" in indy_sc_enable() 111 ".set\tmips3\n\t" in indy_sc_enable() 112 "mfc0\t%2, $12\n\t" in indy_sc_enable() 113 "nop; nop; nop; nop;\n\t" in indy_sc_enable() 114 "li\t%1, 0x80\n\t" in indy_sc_enable() 115 "mtc0\t%1, $12\n\t" in indy_sc_enable() 116 "nop; nop; nop; nop;\n\t" in indy_sc_enable() 117 "li\t%0, 0x1\n\t" in indy_sc_enable() 118 "dsll\t%0, 31\n\t" in indy_sc_enable() [all …]
|
| /linux/tools/testing/selftests/ublk/ |
| H A D | batch.c | 8 static inline void *ublk_get_commit_buf(struct ublk_thread *t, in ublk_get_commit_buf() argument 13 if (buf_idx < t->commit_buf_start || in ublk_get_commit_buf() 14 buf_idx >= t->commit_buf_start + t->nr_commit_buf) in ublk_get_commit_buf() 16 idx = buf_idx - t->commit_buf_start; in ublk_get_commit_buf() 17 return t->commit_buf + idx * t->commit_buf_size; in ublk_get_commit_buf() 25 static inline unsigned short ublk_alloc_commit_buf(struct ublk_thread *t) in ublk_alloc_commit_buf() argument 27 int idx = allocator_get(&t->commit_buf_alloc); in ublk_alloc_commit_buf() 30 return idx + t->commit_buf_start; in ublk_alloc_commit_buf() 38 static inline void ublk_free_commit_buf(struct ublk_thread *t, in ublk_free_commit_buf() argument 41 unsigned short idx = i - t->commit_buf_start; in ublk_free_commit_buf() [all …]
|
| /linux/drivers/scsi/esas2r/ |
| H A D | esas2r_targdb.c | 48 struct esas2r_target *t; in esas2r_targ_db_initialize() local 50 for (t = a->targetdb; t < a->targetdb_end; t++) { in esas2r_targ_db_initialize() 51 memset(t, 0, sizeof(struct esas2r_target)); in esas2r_targ_db_initialize() 53 t->target_state = TS_NOT_PRESENT; in esas2r_targ_db_initialize() 54 t->buffered_target_state = TS_NOT_PRESENT; in esas2r_targ_db_initialize() 55 t->new_target_state = TS_INVALID; in esas2r_targ_db_initialize() 61 struct esas2r_target *t; in esas2r_targ_db_remove_all() local 64 for (t = a->targetdb; t < a->targetdb_end; t++) { in esas2r_targ_db_remove_all() 65 if (t->target_state != TS_PRESENT) in esas2r_targ_db_remove_all() 69 esas2r_targ_db_remove(a, t); in esas2r_targ_db_remove_all() [all …]
|
| /linux/rust/zerocopy/src/ |
| H A D | wrappers.rs | 18 /// An `Unalign` wraps a `T`, removing any alignment requirement. `Unalign<T>` 19 /// has the same size and bit validity as `T`, but not necessarily the same 24 /// Since `Unalign` has no alignment requirement, the inner `T` may not be 25 /// properly aligned in memory. There are five ways to access the inner `T`: 29 /// fail if the `Unalign` does not satisfy `T`'s alignment requirement at 33 /// the `Unalign` satisfies `T`'s alignment requirement 34 /// - (where `T: Unaligned`) infallibly by reference, using [`Deref::deref`] or 101 /// `Unalign<T>` is guaranteed to have the same size and bit validity as `T`, 102 /// and to have [`UnsafeCell`]s covering the same byte ranges as `T`. 103 /// `Unalign<T>` is guaranteed to have alignment 1. [all …]
|
| /linux/rust/syn/ |
| H A D | punctuated.rs | 14 //! in the form of the [`Punctuated<T, P>`] type. We store a vector of pairs of 18 //! [`Punctuated<T, P>`]: Punctuated 43 /// **A punctuated sequence of syntax tree nodes of type `T` separated by 49 pub struct Punctuated<T, P> { 50 inner: Vec<(T, P)>, 51 last: Option<Box<T>>, 54 impl<T, P> Punctuated<T, P> { 71 /// This is the number of nodes of type `T`, not counting the punctuation of 78 pub fn first(&self) -> Option<&T> { in first() argument 83 pub fn first_mut(&mut self) -> Option<&mut T> { in first_mut() argument [all …]
|
| /linux/arch/sh/include/asm/ |
| H A D | switch_to_32.h | 15 ".balign 4\n\t" \ 16 "movs.l @r2+, a0\n\t" \ 17 "movs.l @r2+, a1\n\t" \ 18 "movs.l @r2+, a0g\n\t" \ 19 "movs.l @r2+, a1g\n\t" \ 20 "movs.l @r2+, m0\n\t" \ 21 "movs.l @r2+, m1\n\t" \ 22 "movs.l @r2+, x0\n\t" \ 23 "movs.l @r2+, x1\n\t" \ 24 "movs.l @r2+, y0\n\t" \ [all …]
|
| H A D | spinlock-llsc.h | 32 "1: \n\t" in arch_spin_lock() 33 "movli.l @%2, %0 ! arch_spin_lock \n\t" in arch_spin_lock() 34 "mov %0, %1 \n\t" in arch_spin_lock() 35 "mov #0, %0 \n\t" in arch_spin_lock() 36 "movco.l %0, @%2 \n\t" in arch_spin_lock() 37 "bf 1b \n\t" in arch_spin_lock() 38 "cmp/pl %1 \n\t" in arch_spin_lock() 39 "bf 1b \n\t" in arch_spin_lock() 42 : "t", "memory" in arch_spin_lock() 53 "mov #1, %0 ! arch_spin_unlock \n\t" in arch_spin_unlock() [all …]
|
| H A D | uaccess_32.h | 42 "1:\n\t" \ 43 "mov." insn " %2, %1\n\t" \ 46 "3:\n\t" \ 47 "mov #0, %1\n\t" \ 48 "mov.l 4f, %0\n\t" \ 49 "jmp @%0\n\t" \ 50 " mov %3, %0\n\t" \ 52 "4: .long 2b\n\t" \ 54 ".section __ex_table,\"a\"\n\t" \ 55 ".long 1b, 3b\n\t" \ [all …]
|
| H A D | bitops-grb.h | 15 " .align 2 \n\t" in set_bit() 16 " mova 1f, r0 \n\t" /* r0 = end point */ in set_bit() 17 " mov r15, r1 \n\t" /* r1 = saved sp */ in set_bit() 18 " mov #-6, r15 \n\t" /* LOGIN: r15 = size */ in set_bit() 19 " mov.l @%1, %0 \n\t" /* load old value */ in set_bit() 20 " or %2, %0 \n\t" /* or */ in set_bit() 21 " mov.l %0, @%1 \n\t" /* store new value */ in set_bit() 22 "1: mov r1, r15 \n\t" /* LOGOUT */ in set_bit() 38 " .align 2 \n\t" in clear_bit() 39 " mova 1f, r0 \n\t" /* r0 = end point */ in clear_bit() [all …]
|
| /linux/arch/sparc/math-emu/ |
| H A D | sfp-util_32.h | 8 __asm__ ("addcc %r4,%5,%1\n\t" \ 18 __asm__ ("subcc %r4,%5,%1\n\t" \ 29 __asm__ ("! Inlined umul_ppmm\n\t" \ 30 "wr %%g0,%2,%%y ! SPARC has 0-3 delay insn after a wr\n\t" \ 31 "sra %3,31,%%g2 ! Don't move this insn\n\t" \ 32 "and %2,%%g2,%%g2 ! Don't move this insn\n\t" \ 33 "andcc %%g0,0,%%g1 ! Don't move this insn\n\t" \ 34 "mulscc %%g1,%3,%%g1\n\t" \ 35 "mulscc %%g1,%3,%%g1\n\t" \ 36 "mulscc %%g1,%3,%%g1\n\t" \ [all …]
|
| /linux/arch/xtensa/include/asm/ |
| H A D | checksum.h | 70 __asm__("extui %1, %0, 16, 16\n\t" in csum_fold() 71 "extui %0 ,%0, 0, 16\n\t" in csum_fold() 72 "add %0, %0, %1\n\t" in csum_fold() 73 "slli %1, %0, 16\n\t" in csum_fold() 74 "add %0, %0, %1\n\t" in csum_fold() 75 "extui %0, %0, 16, 16\n\t" in csum_fold() 76 "neg %0, %0\n\t" in csum_fold() 77 "addi %0, %0, -1\n\t" in csum_fold() 78 "extui %0, %0, 0, 16\n\t" in csum_fold() 93 "sub %0, %0, %0\n\t" in ip_fast_csum() [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
| H A D | table.c | 2898 "FCC", "2.4G", "20M", "CCK", "1T", "01", "36", 2899 "ETSI", "2.4G", "20M", "CCK", "1T", "01", "32", 2900 "MKK", "2.4G", "20M", "CCK", "1T", "01", "32", 2901 "FCC", "2.4G", "20M", "CCK", "1T", "02", "36", 2902 "ETSI", "2.4G", "20M", "CCK", "1T", "02", "32", 2903 "MKK", "2.4G", "20M", "CCK", "1T", "02", "32", 2904 "FCC", "2.4G", "20M", "CCK", "1T", "03", "36", 2905 "ETSI", "2.4G", "20M", "CCK", "1T", "03", "32", 2906 "MKK", "2.4G", "20M", "CCK", "1T", "03", "32", 2907 "FCC", "2.4G", "20M", "CCK", "1T", "04", "36", [all …]
|
| /linux/arch/sparc/include/asm/ |
| H A D | checksum_32.h | 52 "call __csum_partial_copy_sparc_generic\n\t" in csum_partial_copy_nocheck() 89 __asm__ __volatile__("sub\t%2, 4, %%g4\n\t" in ip_fast_csum() 90 "ld\t[%1 + 0x00], %0\n\t" in ip_fast_csum() 91 "ld\t[%1 + 0x04], %%g2\n\t" in ip_fast_csum() 92 "ld\t[%1 + 0x08], %%g3\n\t" in ip_fast_csum() 93 "addcc\t%%g2, %0, %0\n\t" in ip_fast_csum() 94 "addxcc\t%%g3, %0, %0\n\t" in ip_fast_csum() 95 "ld\t[%1 + 0x0c], %%g2\n\t" in ip_fast_csum() 96 "ld\t[%1 + 0x10], %%g3\n\t" in ip_fast_csum() 97 "addxcc\t%%g2, %0, %0\n\t" in ip_fast_csum() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf_write.c | 10 const struct btf_type *t; in gen_btf() local 30 t = btf__type_by_id(btf, 1); in gen_btf() 32 ASSERT_EQ(t->name_off, str_off, "int_name_off"); in gen_btf() 33 ASSERT_STREQ(btf__str_by_offset(btf, t->name_off), "int", "int_name"); in gen_btf() 34 ASSERT_EQ(btf_kind(t), BTF_KIND_INT, "int_kind"); in gen_btf() 35 ASSERT_EQ(t->size, 4, "int_sz"); in gen_btf() 36 ASSERT_EQ(btf_int_encoding(t), BTF_INT_SIGNED, "int_enc"); in gen_btf() 37 ASSERT_EQ(btf_int_bits(t), 32, "int_bits"); in gen_btf() 57 t = btf__type_by_id(btf, 2); in gen_btf() 58 ASSERT_EQ(btf_kind(t), BTF_KIND_PT in gen_btf() [all...] |
| /linux/tools/debugging/ |
| H A D | kernel-chktaint | 48 T=$taint 55 if [ `expr $T % 2` -eq 0 ]; then 62 T=`expr $T / 2` 63 if [ `expr $T % 2` -eq 0 ]; then 70 T=`expr $T / 2` 71 if [ `expr $T % 2` -eq 0 ]; then 78 T=`expr $T / [all...] |
| /linux/arch/xtensa/include/uapi/asm/ |
| H A D | ioctls.h | 32 #define TCGETA 0x80127417 /* _IOR('t', 23, struct termio) */ 33 #define TCSETA 0x40127418 /* _IOW('t', 24, struct termio) */ 34 #define TCSETAW 0x40127419 /* _IOW('t', 25, struct termio) */ 35 #define TCSETAF 0x4012741C /* _IOW('t', 28, struct termio) */ 37 #define TCSBRK _IO('t', 29) 38 #define TCXONC _IO('t', 30) 39 #define TCFLSH _IO('t', 31) 41 #define TIOCSWINSZ 0x40087467 /* _IOW('t', 103, struct winsize) */ 42 #define TIOCGWINSZ 0x80087468 /* _IOR('t', 104, struct winsize) */ 43 #define TIOCSTART _IO('t', 110) /* start output, like ^Q */ [all …]
|
| /linux/drivers/net/wireguard/selftest/ |
| H A D | counter.c | 24 #define T(n, v) do { \ in wg_packet_counter_selftest() macro 34 /* 1 */ T(0, true); in wg_packet_counter_selftest() 35 /* 2 */ T(1, true); in wg_packet_counter_selftest() 36 /* 3 */ T(1, false); in wg_packet_counter_selftest() 37 /* 4 */ T(9, true); in wg_packet_counter_selftest() 38 /* 5 */ T(8, true); in wg_packet_counter_selftest() 39 /* 6 */ T(7, true); in wg_packet_counter_selftest() 40 /* 7 */ T(7, false); in wg_packet_counter_selftest() 41 /* 8 */ T(T_LIM, true); in wg_packet_counter_selftest() 42 /* 9 */ T(T_LIM - 1, true); in wg_packet_counter_selftest() [all …]
|
| /linux/arch/sh/include/uapi/asm/ |
| H A D | ioctls.h | 20 #define TCGETA 0x80127417 /* _IOR('t', 23, struct termio) */ 21 #define TCSETA 0x40127418 /* _IOW('t', 24, struct termio) */ 22 #define TCSETAW 0x40127419 /* _IOW('t', 25, struct termio) */ 23 #define TCSETAF 0x4012741C /* _IOW('t', 28, struct termio) */ 25 #define TCSBRK _IO('t', 29) 26 #define TCXONC _IO('t', 30) 27 #define TCFLSH _IO('t', 31) 29 #define TIOCSWINSZ 0x40087467 /* _IOW('t', 103, struct winsize) */ 30 #define TIOCGWINSZ 0x80087468 /* _IOR('t', 104, struct winsize) */ 31 #define TIOCSTART _IO('t', 110) /* start output, like ^Q */ [all …]
|
| /linux/tools/testing/selftests/tc-testing/ |
| H A D | TdcResults.py | 74 return sum(1 for t in self._testsuite if t.result == ResultState.fail) 77 return sum(1 for t in self._testsuite if t.result == ResultState.skip) 94 for t in self._testsuite: 95 if t.result == ResultState.fail: 97 ftap += 'ok {} {} - {}'.format(str(index), t.test_id, t.test_name) 98 if t.result == ResultState.skip or t.result == ResultState.noresult: 99 ftap += ' # skipped - {}\n'.format(t.errormsg) 100 elif t.result == ResultState.fail: 101 if len(t.steps) > 0: 103 for step in t.steps: [all …]
|
| /linux/arch/sparc/lib/ |
| H A D | bitext.c | 20 * @t: the bit map. 28 int bit_map_string_get(struct bit_map *t, int len, int align) in bit_map_string_get() argument 35 if (t->num_colors) { in bit_map_string_get() 38 align = t->num_colors; in bit_map_string_get() 47 if (align < 0 || align >= t->size) in bit_map_string_get() 49 if (len <= 0 || len > t->size) in bit_map_string_get() 53 spin_lock(&t->lock); in bit_map_string_get() 54 if (len < t->last_size) in bit_map_string_get() 55 offset = t->first_free; in bit_map_string_get() 57 offset = t->last_off & ~align1; in bit_map_string_get() [all …]
|