| /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 in ublk_alloc_commit_buf() 38 ublk_free_commit_buf(struct ublk_thread * t,unsigned short i) ublk_free_commit_buf() argument 59 ublk_commit_buf_size(struct ublk_thread * t) ublk_commit_buf_size() argument 69 free_batch_commit_buf(struct ublk_thread * t) free_batch_commit_buf() argument 82 alloc_batch_commit_buf(struct ublk_thread * t) alloc_batch_commit_buf() argument 117 ublk_thread_nr_queues(const struct ublk_thread * t) ublk_thread_nr_queues() argument 128 ublk_batch_prepare(struct ublk_thread * t) ublk_batch_prepare() argument 164 free_batch_fetch_buf(struct ublk_thread * t) free_batch_fetch_buf() argument 176 alloc_batch_fetch_buf(struct ublk_thread * t) alloc_batch_fetch_buf() argument 211 ublk_batch_alloc_buf(struct ublk_thread * t) ublk_batch_alloc_buf() argument 223 ublk_batch_free_buf(struct ublk_thread * t) ublk_batch_free_buf() argument 229 ublk_init_batch_cmd(struct ublk_thread * t,__u16 q_id,struct io_uring_sqe * sqe,unsigned op,unsigned short elem_bytes,unsigned short nr_elem,unsigned short buf_idx) ublk_init_batch_cmd() argument 265 ublk_setup_commit_sqe(struct ublk_thread * t,struct io_uring_sqe * sqe,unsigned short buf_idx) ublk_setup_commit_sqe() argument 277 ublk_batch_queue_fetch(struct ublk_thread * t,struct ublk_queue * q,unsigned short buf_idx) ublk_batch_queue_fetch() argument 301 ublk_batch_start_fetch(struct ublk_thread * t) ublk_batch_start_fetch() argument 317 ublk_compl_batch_fetch(struct ublk_thread * t,struct ublk_queue * q,const struct io_uring_cqe * cqe) ublk_compl_batch_fetch() argument 354 __ublk_batch_queue_prep_io_cmds(struct ublk_thread * t,struct ublk_queue * q) __ublk_batch_queue_prep_io_cmds() argument 391 ublk_batch_queue_prep_io_cmds(struct ublk_thread * t,struct ublk_queue * q) ublk_batch_queue_prep_io_cmds() argument 407 ublk_batch_compl_commit_cmd(struct ublk_thread * t,const struct io_uring_cqe * cqe,unsigned op) ublk_batch_compl_commit_cmd() argument 425 ublk_batch_compl_cmd(struct ublk_thread * t,const struct io_uring_cqe * cqe) ublk_batch_compl_cmd() argument 454 __ublk_batch_commit_io_cmds(struct ublk_thread * t,struct batch_commit_buf * cb) __ublk_batch_commit_io_cmds() argument 478 ublk_batch_commit_io_cmds(struct ublk_thread * t) ublk_batch_commit_io_cmds() argument 491 __ublk_batch_init_commit(struct ublk_thread * t,struct batch_commit_buf * cb,unsigned short buf_idx) __ublk_batch_init_commit() argument 504 ublk_batch_init_commit(struct ublk_thread * t,struct batch_commit_buf * cb) ublk_batch_init_commit() argument 515 ublk_batch_prep_commit(struct ublk_thread * t) ublk_batch_prep_commit() argument 523 ublk_batch_complete_io(struct ublk_thread * t,struct ublk_queue * q,unsigned tag,int res) ublk_batch_complete_io() argument [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`, 166 clone(&self) -> Unalign<T> clone() argument 174 new(val: T) -> Unalign<T> new() argument 180 into_inner(self) -> T into_inner() argument 202 try_deref(&self) -> Result<&T, AlignmentError<&Self, T>> try_deref() argument 222 try_deref_mut(&mut self) -> Result<&mut T, AlignmentError<&mut Self, T>> try_deref_mut() argument 239 deref_unchecked(&self) -> &T deref_unchecked() argument 262 deref_mut_unchecked(&mut self) -> &mut T deref_mut_unchecked() argument 292 get_ptr(&self) -> *const T get_ptr() argument 312 get_mut_ptr(&mut self) -> *mut T get_mut_ptr() argument 319 set(&mut self, t: T) set() argument 351 let t = unsafe { self.deref_mut_unchecked() }; update() localVariable 401 get(&self) -> T get() argument 411 deref(&self) -> &T deref() argument 418 deref_mut(&mut self) -> &mut T deref_mut() argument 628 new(t: T) -> ReadOnly<T> new() argument 635 into_inner(r: ReadOnly<T>) -> T into_inner() argument 642 as_mut(r: &mut ReadOnly<T>) -> &mut T as_mut() argument 652 as_ref_unchecked(r: &ReadOnly<T>) -> &T as_ref_unchecked() argument 701 impl<T: ?Sized> SizeEq<ReadOnly<T>> for T { global() implementation 716 unsafe impl<T: ?Sized> TransmuteFrom<ReadOnly<T>, Valid, Valid> for T {} global() implementation 720 from(t: &'a T) -> &'a ReadOnly<T> from() argument [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/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_debugfs.c | 568 /* don't allow partial reads */ in rvu_dbg_lmtst_map_table_display() 590 "\n\t\t\t\t\tLmtst Map Table Entries"); in rvu_dbg_lmtst_map_table_display() 592 "\n\t\t\t\t\t in rvu_dbg_lmtst_map_table_display() [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/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/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/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/net/sctp/ |
| H A D | transport.c | 233 /* If we don't have a fresh route, look one up */ in sctp_transport_pmtu() 257 void sctp_transport_pl_send(struct sctp_transport *t) in sctp_transport_pl_send() argument 259 if (t->pl.probe_count < SCTP_MAX_PROBES) in sctp_transport_pl_send() 262 t->pl.probe_count = 0; in sctp_transport_pl_send() 263 if (t->pl.state == SCTP_PL_BASE) { in sctp_transport_pl_send() 264 if (t->pl.probe_size == SCTP_BASE_PLPMTU) { /* BASE_PLPMTU Confirmation Failed */ in sctp_transport_pl_send() 265 t->pl.state = SCTP_PL_ERROR; /* Base -> Error */ in sctp_transport_pl_send() 267 t->pl.pmtu = SCTP_BASE_PLPMTU; in sctp_transport_pl_send() 268 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t); in sctp_transport_pl_send() 269 sctp_assoc_sync_pmtu(t->asoc); in sctp_transport_pl_send() [all …]
|