Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 536) sorted by relevance

12345678910>>...22

/linux-6.12.1/tools/debugging/
Dkernel-chktaint48 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 / 2`
79 if [ `expr $T % 2` -eq 0 ]; then
86 T=`expr $T / 2`
87 if [ `expr $T % 2` -eq 0 ]; then
[all …]
/linux-6.12.1/drivers/net/wireguard/selftest/
Dcounter.c24 #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-6.12.1/rust/kernel/sync/
Darc.rs129 pub struct Arc<T: ?Sized> {
130 ptr: NonNull<ArcInner<T>>,
131 _p: PhantomData<ArcInner<T>>,
136 struct ArcInner<T: ?Sized> {
138 data: T,
141 impl<T: ?Sized> ArcInner<T> {
148 unsafe fn container_of(ptr: *const T) -> NonNull<ArcInner<T>> { in container_of() argument
161 let ptr = ptr as *const ArcInner<T>; in container_of()
175 impl<T: ?Sized> core::ops::Receiver for Arc<T> {}
179 impl<T: ?Sized + Unsize<U>, U: ?Sized> core::ops::CoerceUnsized<Arc<U>> for Arc<T> {}
[all …]
Dlock.rs85 pub struct Lock<T: ?Sized, B: Backend> {
97 pub(crate) data: UnsafeCell<T>,
101 unsafe impl<T: ?Sized + Send, B: Backend> Send for Lock<T, B> {}
105 unsafe impl<T: ?Sized + Send, B: Backend> Sync for Lock<T, B> {}
107 impl<T, B: Backend> Lock<T, B> {
109 pub fn new(t: T, name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new() argument
122 impl<T: ?Sized, B: Backend> Lock<T, B> {
124 pub fn lock(&self) -> Guard<'_, T, B> { in lock() argument
139 pub struct Guard<'a, T: ?Sized, B: Backend> {
140 pub(crate) lock: &'a Lock<T, B>,
[all …]
Dlocked_by.rs78 pub struct LockedBy<T: ?Sized, U: ?Sized> {
80 data: UnsafeCell<T>,
84 unsafe impl<T: ?Sized + Send, U: ?Sized> Send for LockedBy<T, U> {}
92 unsafe impl<T: ?Sized + Send, U: ?Sized> Sync for LockedBy<T, U> {}
94 impl<T, U> LockedBy<T, U> {
102 pub fn new<B: Backend>(owner: &Lock<U, B>, data: T) -> Self { in new()
114 impl<T: ?Sized, U> LockedBy<T, U> {
125 pub fn access<'a>(&'a self, owner: &'a U) -> &'a T in access()
127 T: Sync, in access()
157 pub fn access_mut<'a>(&'a self, owner: &'a mut U) -> &'a mut T { in access_mut() argument
/linux-6.12.1/rust/kernel/init/
D__internal.rs16 pub(super) type Invariant<T> = PhantomData<fn(*mut T) -> *mut T>;
21 pub(crate) struct InitClosure<F, T: ?Sized, E>(pub(crate) F, pub(crate) Invariant<(E, T)>);
25 unsafe impl<T: ?Sized, F, E> Init<T, E> for InitClosure<F, T, E>
27 F: FnOnce(*mut T) -> Result<(), E>,
30 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init()
37 unsafe impl<T: ?Sized, F, E> PinInit<T, E> for InitClosure<F, T, E>
39 F: FnOnce(*mut T) -> Result<(), E>,
42 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init()
105 pub struct AllData<T: ?Sized>(PhantomData<fn(Box<T>) -> Box<T>>);
107 impl<T: ?Sized> Clone for AllData<T> {
[all …]
/linux-6.12.1/tools/perf/tests/
Dkmod-path.c44 #define T(path, an, k, c, n) \ macro
53 T("/xxxx/xxxx/x-x.ko", true , true, 0 , "[x_x]"); in test__kmod_path__parse()
54 T("/xxxx/xxxx/x-x.ko", false , true, 0 , NULL ); in test__kmod_path__parse()
55 T("/xxxx/xxxx/x-x.ko", true , true, 0 , "[x_x]"); in test__kmod_path__parse()
56 T("/xxxx/xxxx/x-x.ko", false , true, 0 , NULL ); in test__kmod_path__parse()
63 T("/xxxx/xxxx/x.ko.gz", true , true, 1 , "[x]"); in test__kmod_path__parse()
64 T("/xxxx/xxxx/x.ko.gz", false , true, 1 , NULL ); in test__kmod_path__parse()
65 T("/xxxx/xxxx/x.ko.gz", true , true, 1 , "[x]"); in test__kmod_path__parse()
66 T("/xxxx/xxxx/x.ko.gz", false , true, 1 , NULL ); in test__kmod_path__parse()
72 T("/xxxx/xxxx/x.gz", true , false, 1 , "x.gz"); in test__kmod_path__parse()
[all …]
/linux-6.12.1/rust/kernel/
Dtypes.rs74 impl<T: 'static> ForeignOwnable for Box<T> {
75 type Borrowed<'a> = &'a T;
81 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> &'a T { in borrow() argument
96 impl<T: 'static> ForeignOwnable for Pin<Box<T>> {
97 type Borrowed<'a> = Pin<&'a T>;
104 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> Pin<&'a T> { in borrow() argument
208 pub struct ScopeGuard<T, F: FnOnce(T)>(Option<(T, F)>);
210 impl<T, F: FnOnce(T)> ScopeGuard<T, F> {
212 pub fn new_with_data(data: T, cleanup_func: F) -> Self { in new_with_data() argument
218 pub fn dismiss(mut self) -> T { in dismiss() argument
[all …]
Dinit.rs838 pub unsafe trait PinInit<T: ?Sized, E = Infallible>: Sized {
847 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>; in __pinned_init()
888 fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> in pin_chain() argument
890 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain()
897 pub struct ChainPinInit<I, F, T: ?Sized, E>(I, F, __internal::Invariant<(E, Box<T>)>);
903 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainPinInit<I, F, T, E>
905 I: PinInit<T, E>,
906 F: FnOnce(Pin<&mut T>) -> Result<(), E>,
908 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init()
950 pub unsafe trait Init<T: ?Sized, E = Infallible>: PinInit<T, E> {
[all …]
Dlist.rs38 pub struct List<T: ?Sized + ListItem<ID>, const ID: u64 = 0> {
40 _ty: PhantomData<ListArc<T, ID>>,
45 unsafe impl<T, const ID: u64> Send for List<T, ID>
47 ListArc<T, ID>: Send,
48 T: ?Sized + ListItem<ID>,
53 unsafe impl<T, const ID: u64> Sync for List<T, ID>
55 ListArc<T, ID>: Sync,
56 T: ?Sized + ListItem<ID>,
195 pub struct ListLinksSelfPtr<T: ?Sized, const ID: u64 = 0> {
202 self_ptr: Opaque<*const T>,
[all …]
Dworkqueue.rs209 pub fn try_spawn<T: 'static + Send + FnOnce()>( in try_spawn()
212 func: T, in try_spawn() argument
228 struct ClosureWork<T> {
230 work: Work<ClosureWork<T>>,
231 func: Option<T>,
234 impl<T> ClosureWork<T> {
235 fn project(self: Pin<&mut Self>) -> &mut Option<T> { in project() argument
241 impl<T: FnOnce()> WorkItem for ClosureWork<T> {
351 pub struct Work<T: ?Sized, const ID: u64 = 0> {
354 _inner: PhantomData<T>,
[all …]
/linux-6.12.1/rust/kernel/list/
Darc.rs162 pub struct ListArc<T, const ID: u64 = 0>
164 T: ListArcSafe<ID> + ?Sized,
166 arc: Arc<T>,
169 impl<T: ListArcSafe<ID>, const ID: u64> ListArc<T, ID> {
172 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new() argument
182 pub fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self, E> in pin_init() argument
193 pub fn init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in init() argument
201 impl<T, const ID: u64> From<UniqueArc<T>> for ListArc<T, ID>
203 T: ListArcSafe<ID> + ?Sized,
207 fn from(unique: UniqueArc<T>) -> Self { in from()
[all …]
/linux-6.12.1/tools/testing/selftests/rcutorture/bin/
Dtorture.sh239 T="`mktemp -d ${TMPDIR-/tmp}/torture.sh.XXXXXX`"
242 echo " --- " $scriptname $args | tee -a $T/log
243 echo " --- Results directory: " $ds | tee -a $T/log
253 echo " --- Zero time for rcutorture, disabling" | tee -a $T/log
265 echo " --- Zero time for locktorture, disabling" | tee -a $T/log
277 echo " --- Zero time for scftorture, disabling" | tee -a $T/log
281 touch $T/failures
282 touch $T/successes
297 echo " --- $curflavor:" Start `date` | tee -a $T/log
303 "$@" $boottag "$cur_bootargs" --datestamp "$ds/results-$curflavor" > $T/$curflavor.out 2>&1
[all …]
Dkvm-remote.sh46 T="`mktemp -d ${TMPDIR-/tmp}/kvm-remote.sh.XXXXXX`"
48 TD="`basename "$T"`"
50 resdir="$T/res"
68 kvm.sh --remote "$@" $datestamp --buildonly > $T/kvm.sh.out 2>&1
73 cat $T/kvm.sh.out
76 oldrun="`grep -m 1 "^Results directory: " $T/kvm.sh.out | awk '{ print $3 }'`"
81 cat $T/kvm.sh.out | tee -a "$oldrun/remote-log"
84 kvm-again.sh $oldrun --dryrun --remote --rundir "$rundir" > $T/kvm-again.sh.out 2>&1
89 cat $T/kvm-again.sh.out | tee -a "$oldrun/remote-log"
102 kvm-again.sh "$oldrun" "$@" --dryrun --remote --rundir "$rundir" > $T/kvm-again.sh.out 2>&1
[all …]
Dparse-build.sh18 T="`mktemp -d ${TMPDIR-/tmp}/parse-build.sh.XXXXXX`"
38 grep warning: < $F > $T/warnings
39 grep "include/linux/*rcu*\.h:" $T/warnings > $T/hwarnings
40 grep "kernel/rcu/[^/]*:" $T/warnings > $T/cwarnings
41 grep "^ld: .*undefined reference to" $T/warnings | head -1 > $T/ldwarnings
42 cat $T/hwarnings $T/cwarnings $T/ldwarnings > $T/rcuwarnings
43 if test -s $T/rcuwarnings
46 cat $T/rcuwarnings
Dconfigcheck.sh12 T="`mktemp -d ${TMPDIR-/tmp}/configcheck.sh.XXXXXX`"
17 if ! grep -q "^$1$" $T/.config
27 if grep -q "^$1=n$" $T/.config
31 if grep -q "^$1=" $T/.config
39 sed -e 's/"//g' < $1 > $T/.config
40 sed -e 's/^#CHECK#//' < $2 > $T/ConfigFragment
41 grep '^CONFIG_.*=n$' $T/ConfigFragment |
42 sed -e 's/^/test_kconfig_disabled /' -e 's/=n$//' > $T/kconfig-n.sh
43 . $T/kconfig-n.sh
44 grep -v '^CONFIG_.*=n$' $T/ConfigFragment | grep '^CONFIG_' |
[all …]
/linux-6.12.1/drivers/comedi/drivers/tests/
Dni_routes_test.c310 const struct ni_route_tables *T = &private.routing_tables; in test_ni_route_to_register() local
313 unittest(ni_route_to_register(O(0), O(0), T) < 0, in test_ni_route_to_register()
315 unittest(ni_route_to_register(O(1), O(0), T) == 1, in test_ni_route_to_register()
317 unittest(ni_route_to_register(O(6), O(5), T) == 6, in test_ni_route_to_register()
319 unittest(ni_route_to_register(O(8), O(9), T) == 8, in test_ni_route_to_register()
323 unittest(ni_route_to_register(rgout0_src0, TRIGGER_LINE(0), T) == 0, in test_ni_route_to_register()
325 unittest(ni_route_to_register(rgout0_src0, TRIGGER_LINE(1), T) == 0, in test_ni_route_to_register()
327 unittest(ni_route_to_register(rgout0_src1, TRIGGER_LINE(2), T) == 1, in test_ni_route_to_register()
329 unittest(ni_route_to_register(rgout0_src1, TRIGGER_LINE(3), T) == 1, in test_ni_route_to_register()
332 unittest(ni_route_to_register(brd0_src0, TRIGGER_LINE(4), T) == in test_ni_route_to_register()
[all …]
/linux-6.12.1/scripts/
Ddecodecode14 rm -f $T $T.s $T.o $T.oo $T.aa $T.dis
25 T=`mktemp` || die "cannot create temp file"
51 rm $T
215 touch $T.oo
221 echo All code >> $T.oo
222 echo ======== >> $T.oo
224 echo -n " .$type 0x" > $T.s
226 echo $beforemark | sed -e 's/ /,0x/g; s/[<>()]//g' >> $T.s
228 disas $T $pc_sub
230 cat $T.dis >> $T.oo
[all …]
/linux-6.12.1/tools/memory-model/scripts/
Dcheckghlitmus.sh15 T=/tmp/checkghlitmus.sh.$$
17 mkdir $T
40 xargs -r grep -L "^P${LKMM_PROCS}"> $T/list-C-already
44 find litmus -name '*.litmus' -print | mselect7 -arch C > $T/list-C
45 xargs < $T/list-C -r grep -E -l '^ \* Result: (Never|Sometimes|Always|DEADLOCK)' > $T/list-C-result
46 xargs < $T/list-C-result -r grep -L "^P${LKMM_PROCS}" > $T/list-C-result-short
49 sort $T/list-C-already $T/list-C-result-short | uniq -u > $T/list-C-needed
52 if scripts/runlitmushist.sh < $T/list-C-needed > $T/run.stdout 2> $T/run.stderr
59 sed < $T/list-C-result-short -e 's,^,scripts/judgelitmus.sh ,' |
60 sh > $T/judge.stdout 2> $T/judge.stderr
[all …]
Dcmplitmushist.sh10 T=/tmp/cmplitmushist.sh.$$
12 mkdir $T
58 grep -v 'maxresident)k\|minor)pagefaults\|^Time' $1 > $T/oldout
59 grep -v 'maxresident)k\|minor)pagefaults\|^Time' $2 > $T/newout
60 if cmp -s $T/oldout $T/newout && grep -q '^Observation' $1
67 grep '^Observation' $1 > $T/oldout
68 grep '^Observation' $2 > $T/newout
69 if test -s $T/oldout -o -s $T/newout
71 if cmp -s $T/oldout $T/newout
83 grep '^Observation' $1 | awk '{ print $3 }' > $T/oldout
[all …]
Dnewlitmushist.sh19 T=/tmp/newlitmushist.sh.$$
21 mkdir $T
42 xargs -r grep -L "^P${LKMM_PROCS}"> $T/list-C-already
46 find litmus -name '*.litmus' -print | mselect7 -arch C > $T/list-C-all
47 xargs < $T/list-C-all -r grep -L "^P${LKMM_PROCS}" > $T/list-C-short
50 sort $T/list-C-already $T/list-C-short | uniq -u > $T/list-C-new
53 sed < $T/list-C-short -e 's,^.*$,if test & -nt '"$LKMM_DESTDIR"'/&.out; then echo &; fi,' > $T/list…
54 sh $T/list-C-script > $T/list-C-newer
57 sort -u $T/list-C-new $T/list-C-newer > $T/list-C-needed
59 scripts/runlitmushist.sh < $T/list-C-needed
/linux-6.12.1/Documentation/admin-guide/media/
Ddvb-usb-af9015-cardlist.rst17 * - AVerMedia AVerTV DVB-T Volar X
29 * - Conceptronic USB2.0 DVB-T CTVDIGRCU V3.0
37 * - Fujitsu-Siemens Slim Mobile USB DVB-T
43 * - KWorld PlusTV DVB-T PCI Pro Card (DVB-T PC160-T)
45 * - KWorld PlusTV Dual DVB-T PCI (DVB-T PC160-2T)
47 * - KWorld PlusTV Dual DVB-T Stick (DVB-T 399U)
49 * - KWorld USB DVB-T Stick Mobile (UB383-T)
51 * - KWorld USB DVB-T TV Stick II (VS-DVB-T 395U)
63 * - Sveon STV20 Tuner USB DVB-T HDTV
65 * - Sveon STV22 Dual USB DVB-T Tuner HDTV
[all …]
/linux-6.12.1/rust/kernel/alloc/
Dbox_ext.rs10 pub trait BoxExt<T>: Sized {
14 fn new(x: T, flags: Flags) -> Result<Self, AllocError>; in new() argument
19 fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>>, AllocError>; in new_uninit() argument
37 fn drop_contents(this: Self) -> Box<MaybeUninit<T>>; in drop_contents() argument
40 impl<T> BoxExt<T> for Box<T> {
41 fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new() argument
49 fn new_uninit(_flags: Flags) -> Result<Box<MaybeUninit<T>>, AllocError> { in new_uninit() argument
54 fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>>, AllocError> { in new_uninit() argument
55 let ptr = if core::mem::size_of::<MaybeUninit<T>>() == 0 { in new_uninit()
58 let layout = core::alloc::Layout::new::<MaybeUninit<T>>(); in new_uninit()
[all …]
Dvec_ext.rs9 pub trait VecExt<T>: Sized {
35 fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError>; in push() argument
52 fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> in extend_from_slice() argument
54 T: Clone; in extend_from_slice()
77 impl<T> VecExt<T> for Vec<T> {
84 fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push() argument
96 fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> in extend_from_slice() argument
98 T: Clone, in extend_from_slice()
127 if core::mem::size_of::<T>() == 0 { in reserve()
135 let layout = core::alloc::Layout::array::<T>(new_cap).map_err(|_| AllocError)?; in reserve()
[all …]
/linux-6.12.1/rust/kernel/net/
Dphy.rs307 struct Adapter<T: Driver> {
308 _p: PhantomData<T>,
311 impl<T: Driver> Adapter<T> {
323 T::soft_reset(dev)?; in soft_reset_callback()
338 T::probe(dev)?; in probe_callback()
354 T::get_features(dev)?; in get_features_callback()
368 T::suspend(dev)?; in suspend_callback()
382 T::resume(dev)?; in resume_callback()
398 T::config_aneg(dev)?; in config_aneg_callback()
414 T::read_status(dev)?; in read_status_callback()
[all …]

12345678910>>...22