/openbmc/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 / 2` 79 if [ `expr $T % 2` -eq 0 ]; then 86 T=`expr $T / 2` 87 if [ `expr $T % 2` -eq 0 ]; then [all …]
|
/openbmc/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 …]
|
/openbmc/linux/rust/kernel/sync/ |
H A D | arc.rs | 128 pub struct Arc<T: ?Sized> { 129 ptr: NonNull<ArcInner<T>>, 130 _p: PhantomData<ArcInner<T>>, 135 struct ArcInner<T: ?Sized> { 137 data: T, 141 impl<T: ?Sized> core::ops::Receiver for Arc<T> {} 145 impl<T: ?Sized + Unsize<U>, U: ?Sized> core::ops::CoerceUnsized<Arc<U>> for Arc<T> {} 148 impl<T: ?Sized + Unsize<U>, U: ?Sized> core::ops::DispatchFromDyn<Arc<U>> for Arc<T> {} 154 unsafe impl<T: ?Sized + Sync + Send> Send for Arc<T> {} 161 unsafe impl<T: ?Sized + Sync + Send> Sync for Arc<T> {} [all …]
|
H A D | lock.rs | 78 pub struct Lock<T: ?Sized, B: Backend> { 90 pub(crate) data: UnsafeCell<T>, 94 unsafe impl<T: ?Sized + Send, B: Backend> Send for Lock<T, B> {} 98 unsafe impl<T: ?Sized + Send, B: Backend> Sync for Lock<T, B> {} 100 impl<T, B: Backend> Lock<T, B> { 103 pub fn new(t: T, name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new() argument 116 impl<T: ?Sized, B: Backend> Lock<T, B> { 118 pub fn lock(&self) -> Guard<'_, T, B> { in lock() argument 133 pub struct Guard<'a, T: ?Sized, B: Backend> { 134 pub(crate) lock: &'a Lock<T, B>, [all …]
|
/openbmc/qemu/scripts/coccinelle/ |
H A D | use-g_new-etc.cocci | 3 type T; 5 -g_malloc(sizeof(T)) 6 +g_new(T, 1) 8 type T; 10 -g_try_malloc(sizeof(T)) 11 +g_try_new(T, 1) 13 type T; 15 -g_malloc0(sizeof(T)) 16 +g_new0(T, 1) 18 type T; [all …]
|
/openbmc/linux/tools/perf/tests/ |
H A D | kmod-path.c | 44 #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 …]
|
/openbmc/linux/rust/kernel/ |
H A D | types.rs | 51 impl<T: 'static> ForeignOwnable for Box<T> { 52 type Borrowed<'a> = &'a T; 58 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> &'a T { in borrow() argument 156 pub struct ScopeGuard<T, F: FnOnce(T)>(Option<(T, F)>); 158 impl<T, F: FnOnce(T)> ScopeGuard<T, F> { 160 pub fn new_with_data(data: T, cleanup_func: F) -> Self { in new_with_data() argument 166 pub fn dismiss(mut self) -> T { in dismiss() argument 180 impl<T, F: FnOnce(T)> Deref for ScopeGuard<T, F> { 181 type Target = T; 183 fn deref(&self) -> &T { in deref() argument [all …]
|
H A D | init.rs | 768 pub unsafe trait PinInit<T: ?Sized, E = Infallible>: Sized { 777 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>; in __pinned_init() 818 fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> in pin_chain() argument 820 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain() 827 pub struct ChainPinInit<I, F, T: ?Sized, E>(I, F, __internal::Invariant<(E, Box<T>)>); 833 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainPinInit<I, F, T, E> 835 I: PinInit<T, E>, 836 F: FnOnce(Pin<&mut T>) -> Result<(), E>, 838 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() 883 pub unsafe trait Init<T: ?Sized, E = Infallible>: PinInit<T, E> { [all …]
|
/openbmc/phosphor-logging/lib/include/phosphor-logging/ |
H A D | elog.hpp | 22 template <typename T> 25 using type = T; 38 template <typename T> 41 using type = T; 47 T value; 57 template <typename T> 58 struct deduce_entry_type<prev_entry<T>> 60 using type = T; 66 prev_entry<T> value; 72 template <typename T> [all …]
|
/openbmc/linux/rust/alloc/vec/ |
H A D | spec_extend.rs | 12 pub(super) trait SpecExtend<T, I> { 17 pub(super) trait TrySpecExtend<T, I> { 22 impl<T, I, A: Allocator> SpecExtend<T, I> for Vec<T, A> 24 I: Iterator<Item = T>, 31 impl<T, I, A: Allocator> TrySpecExtend<T, I> for Vec<T, A> 33 I: Iterator<Item = T>, 41 impl<T, I, A: Allocator> SpecExtend<T, I> for Vec<T, A> 43 I: TrustedLen<Item = T>, 50 impl<T, I, A: Allocator> TrySpecExtend<T, I> for Vec<T, A> 52 I: TrustedLen<Item = T>, [all …]
|
H A D | into_iter.rs | 36 T, 39 pub(super) buf: NonNull<T>, 40 pub(super) phantom: PhantomData<T>, 45 pub(super) ptr: *const T, 46 …pub(super) end: *const T, // If T is a ZST, this is actually ptr+len. This encoding is picked so t… 52 impl<T: fmt::Debug, A: Allocator> fmt::Debug for IntoIter<T, A> { 58 impl<T, A: Allocator> IntoIter<T, A> { 71 pub fn as_slice(&self) -> &[T] { in as_slice() argument 89 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice() argument 100 fn as_raw_mut_slice(&mut self) -> *mut [T] { in as_raw_mut_slice() argument [all …]
|
H A D | mod.rs | 399 pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> { 400 buf: RawVec<T, A>, 408 impl<T> Vec<T> { 643 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts() argument 648 impl<T, A: Allocator> Vec<T, A> { 901 pub unsafe fn from_raw_parts_in(ptr: *mut T, length: usize, capacity: usize, alloc: A) -> Self { in from_raw_parts_in() argument 938 pub fn into_raw_parts(self) -> (*mut T, usize, usize) { in into_raw_parts() argument 982 pub fn into_raw_parts_with_alloc(self) -> (*mut T, usize, usize, A) { in into_raw_parts_with_alloc() argument 1218 pub fn into_boxed_slice(mut self) -> Box<[T], A> { in into_boxed_slice() argument 1306 pub fn as_slice(&self) -> &[T] { in as_slice() argument [all …]
|
H A D | drain.rs | 26 T: 'a, 34 pub(super) iter: slice::Iter<'a, T>, 35 pub(super) vec: NonNull<Vec<T, A>>, 39 impl<T: fmt::Debug, A: Allocator> fmt::Debug for Drain<'_, T, A> { 45 impl<'a, T, A: Allocator> Drain<'a, T, A> { 59 pub fn as_slice(&self) -> &[T] { in as_slice() argument 117 if !T::IS_ZST { in keep_rest() 142 impl<'a, T, A: Allocator> AsRef<[T]> for Drain<'a, T, A> { 143 fn as_ref(&self) -> &[T] { in as_ref() argument 149 unsafe impl<T: Sync, A: Sync + Allocator> Sync for Drain<'_, T, A> {} [all …]
|
/openbmc/linux/rust/kernel/init/ |
H A D | __internal.rs | 16 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 …]
|
/openbmc/linux/rust/alloc/ |
H A D | boxed.rs | 200 T: ?Sized, 202 >(Unique<T>, A); 204 impl<T> Box<T> { 219 pub fn new(x: T) -> Self { in new() 246 pub fn new_uninit() -> Box<mem::MaybeUninit<T>> { in new_uninit() 272 pub fn new_zeroed() -> Box<mem::MaybeUninit<T>> { in new_zeroed() 287 pub fn pin(x: T) -> Pin<Box<T>> { in pin() argument 306 pub fn try_new(x: T) -> Result<Self, AllocError> { in try_new() 333 pub fn try_new_uninit() -> Result<Box<mem::MaybeUninit<T>>, AllocError> { in try_new_uninit() 359 pub fn try_new_zeroed() -> Result<Box<mem::MaybeUninit<T>>, AllocError> { in try_new_zeroed() [all …]
|
H A D | slice.rs | 102 pub fn into_vec<T, A: Allocator>(b: Box<[T], A>) -> Vec<T, A> { in into_vec() argument 106 Vec::from_raw_parts_in(b as *mut T, len, len, alloc) in into_vec() 112 pub fn to_vec<T: ConvertVec, A: Allocator>(s: &[T], alloc: A) -> Vec<T, A> { in to_vec() argument 113 T::to_vec(s, alloc) in to_vec() 124 impl<T: Clone> ConvertVec for T { implementation 127 struct DropGuard<'a, T, A: Allocator> { in to_vec() 128 vec: &'a mut Vec<T, A>, in to_vec() 131 impl<'a, T, A: Allocator> Drop for DropGuard<'a, T, A> { in to_vec() 161 impl<T: Copy> ConvertVec for T { implementation 178 impl<T> [T] { implementation [all …]
|
/openbmc/u-boot/scripts/ |
H A D | decodecode | 11 rm -f $T $T.s $T.o $T.oo $T.aa $T.dis 22 T=`mktemp` || die "cannot create temp file" 48 rm $T 91 touch $T.oo 93 echo All code >> $T.oo 94 echo ======== >> $T.oo 96 echo -n " .$type 0x" > $T.s 97 echo $beforemark | sed -e 's/ /,0x/g; s/[<>()]//g' >> $T.s 98 disas $T 99 cat $T.dis >> $T.oo [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-smp-parse.c | 20 #define T true macro 148 .config = SMP_CONFIG_GENERIC(T, 8, F, 0, F, 0, F, 0, F, 0), 154 .config = SMP_CONFIG_GENERIC(F, 0, T, 2, F, 0, F, 0, F, 0), 160 .config = SMP_CONFIG_GENERIC(F, 0, F, 0, T, 4, F, 0, F, 0), 166 .config = SMP_CONFIG_GENERIC(F, 0, F, 0, F, 0, T, 2, F, 0), 173 .config = SMP_CONFIG_GENERIC(F, 0, F, 0, F, 0, F, 0, T, 16), 179 .config = SMP_CONFIG_GENERIC(T, 8, T, 2, F, 0, F, 0, F, 0), 185 .config = SMP_CONFIG_GENERIC(T, 8, F, 0, T, 4, F, 0, F, 0), 192 .config = SMP_CONFIG_GENERIC(T, 8, F, 0, F, 0, T, 2, F, 0), 199 .config = SMP_CONFIG_GENERIC(T, 8, F, 0, F, 0, F, 0, T, 16), [all …]
|
/openbmc/phosphor-net-ipmid/ |
H A D | endian.hpp | 10 template <typename T> 13 static T to_ipmi(T) = delete; 14 static T from_ipmi(T) = delete; 15 static T to_network(T) = delete; 16 static T from_network(T) = delete; 62 template <typename T> 63 T to_ipmi(T i) in to_ipmi() 65 return details::convert<T>::to_ipmi(i); in to_ipmi() 68 template <typename T> 69 T from_ipmi(T i) in from_ipmi() [all …]
|
/openbmc/linux/tools/testing/selftests/rcutorture/bin/ |
H A D | torture.sh | 223 T="`mktemp -d ${TMPDIR-/tmp}/torture.sh.XXXXXX`" 226 echo " --- " $scriptname $args | tee -a $T/log 227 echo " --- Results directory: " $ds | tee -a $T/log 237 echo " --- Zero time for rcutorture, disabling" | tee -a $T/log 249 echo " --- Zero time for locktorture, disabling" | tee -a $T/log 261 echo " --- Zero time for scftorture, disabling" | tee -a $T/log 265 touch $T/failures 266 touch $T/successes 281 echo " --- $curflavor:" Start `date` | tee -a $T/log 287 "$@" $boottag "$cur_bootargs" --datestamp "$ds/results-$curflavor" > $T/$curflavor.out 2>&1 [all …]
|
/openbmc/linux/drivers/comedi/drivers/tests/ |
H A D | ni_routes_test.c | 310 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 …]
|
/openbmc/sdbusplus/include/sdbusplus/utility/ |
H A D | type_traits.hpp | 26 template <typename Tbase, typename T> 28 std::is_array_v<T>, 29 std::conditional_t<std::is_same_v<Tbase, std::remove_extent_t<T>>, 30 std::add_pointer_t<std::remove_extent_t<T>>, T>, 31 T>; 57 template <typename T> 58 using strip_first_arg = strip_first_n_args<1, T>; 60 template <typename T> 61 using strip_first_arg_t = typename strip_first_arg<T>::type; 64 template <typename T> [all …]
|
/openbmc/telemetry/src/utils/ |
H A D | conversion.hpp | 39 template <class T> 42 template <class T, T first, T last> 43 inline T toEnum(std::underlying_type_t<T> x) in toEnum() 45 if (x < static_cast<std::underlying_type_t<T>>(first) || in toEnum() 46 x > static_cast<std::underlying_type_t<T>>(last)) in toEnum() 48 throwConversionError(EnumTraits<T>::propertyName); in toEnum() 50 return static_cast<T>(x); in toEnum() 53 template <class T> 54 constexpr inline std::underlying_type_t<T> toUnderlying(T value) in toUnderlying() 56 return static_cast<std::underlying_type_t<T>>(value); in toUnderlying() [all …]
|
/openbmc/phosphor-inventory-manager/ |
H A D | interface_ops.hpp | 28 template <typename T> 44 static constexpr auto value = sizeof(test<T>(0)) == sizeof(yes); 47 template <typename T, typename Enable = void> 53 return std::any(std::make_shared<T>(bus, path)); in op() 57 template <typename T> 58 struct MakeInterface<T, std::enable_if_t<HasProperties<T>::value>> 64 std::map<std::string, typename T::PropertiesVariant>; in op() 70 convertVariant<typename T::PropertiesVariant>(p.second)); in op() 73 return std::any(std::make_shared<T>(bus, path, v, deferSignal)); in op() 77 template <typename T, typename Enable = void> [all …]
|
/openbmc/linux/scripts/ |
H A D | decodecode | 14 rm -f $T $T.s $T.o $T.oo $T.aa $T.dis 25 T=`mktemp` || die "cannot create temp file" 51 rm $T 210 touch $T.oo 216 echo All code >> $T.oo 217 echo ======== >> $T.oo 219 echo -n " .$type 0x" > $T.s 221 echo $beforemark | sed -e 's/ /,0x/g; s/[<>()]//g' >> $T.s 223 disas $T $pc_sub 225 cat $T.dis >> $T.oo [all …]
|