Home
last modified time | relevance | path

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

12345678910>>...27

/openbmc/qemu/scripts/coccinelle/
H A Duse-g_new-etc.cocci3 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/qemu/rust/qemu-api/src/
H A Dcell.rs254 pub struct BqlCell<T> {
255 value: UnsafeCell<T>,
260 unsafe impl<T: Send> Send for BqlCell<T> {}
261 unsafe impl<T: Send> Sync for BqlCell<T> {}
263 impl<T: Copy> Clone for BqlCell<T> {
265 fn clone(&self) -> BqlCell<T> { in clone() argument
270 impl<T: Default> Default for BqlCell<T> {
273 fn default() -> BqlCell<T> { in default()
278 impl<T: PartialEq + Copy> PartialEq for BqlCell<T> {
280 fn eq(&self, other: &BqlCell<T>) -> bool { in eq()
[all …]
H A Dqom.rs133 unsafe impl<T: ObjectType> IsA<T> for T {} implementation
185 pub struct ParentField<T: ObjectType>(std::mem::ManuallyDrop<T>);
187 impl<T: ObjectType> Deref for ParentField<T> {
188 type Target = T;
196 impl<T: ObjectType> DerefMut for ParentField<T> {
203 impl<T: fmt::Display + ObjectType> fmt::Display for ParentField<T> {
289 pub struct ParentInit<'init, T>(
290 &'init mut MaybeUninit<T>,
294 impl<'init, T> ParentInit<'init, T> {
296 pub fn with(obj: &'init mut MaybeUninit<T>, f: impl for<'id> FnOnce(ParentInit<'id, T>)) { in with() argument
[all …]
H A Dmemory.rs23 pub struct MemoryRegionOps<T>(
33 PhantomData<fn(&T)>,
39 unsafe impl<T: Sync> Sync for MemoryRegionOps<T> {}
42 pub struct MemoryRegionOpsBuilder<T>(bindings::MemoryRegionOps, PhantomData<fn(&T)>);
44 unsafe extern "C" fn memory_region_ops_read_cb<T, F: for<'a> FnCall<(&'a T, hwaddr, u32), u64>>( in memory_region_ops_read_cb() argument
49 F::call((unsafe { &*(opaque.cast::<T>()) }, addr, size)) in memory_region_ops_read_cb()
52 unsafe extern "C" fn memory_region_ops_write_cb<T, F: for<'a> FnCall<(&'a T, hwaddr, u64, u32)>>( in memory_region_ops_write_cb() argument
58 F::call((unsafe { &*(opaque.cast::<T>()) }, addr, data, size)) in memory_region_ops_write_cb()
61 impl<T> MemoryRegionOpsBuilder<T> {
63 pub const fn read<F: for<'a> FnCall<(&'a T, hwaddr, u32), u64>>(mut self, _f: &F) -> Self { in read() argument
[all …]
H A Dqdev.rs70 unsafe extern "C" fn rust_resettable_enter_fn<T: ResettablePhasesImpl>( in rust_resettable_enter_fn()
74 let state = NonNull::new(obj).unwrap().cast::<T>(); in rust_resettable_enter_fn()
75 T::ENTER.unwrap()(unsafe { state.as_ref() }, typ); in rust_resettable_enter_fn()
83 unsafe extern "C" fn rust_resettable_hold_fn<T: ResettablePhasesImpl>( in rust_resettable_hold_fn()
87 let state = NonNull::new(obj).unwrap().cast::<T>(); in rust_resettable_hold_fn()
88 T::HOLD.unwrap()(unsafe { state.as_ref() }, typ); in rust_resettable_hold_fn()
96 unsafe extern "C" fn rust_resettable_exit_fn<T: ResettablePhasesImpl>( in rust_resettable_exit_fn()
100 let state = NonNull::new(obj).unwrap().cast::<T>(); in rust_resettable_exit_fn()
101 T::EXIT.unwrap()(unsafe { state.as_ref() }, typ); in rust_resettable_exit_fn()
136 unsafe extern "C" fn rust_realize_fn<T: DeviceImpl>( in rust_realize_fn()
[all …]
/openbmc/phosphor-logging/lib/include/phosphor-logging/
H A Delog.hpp22 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/phosphor-net-ipmid/
H A Dendian.hpp10 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/u-boot/scripts/
H A Ddecodecode11 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/sdbusplus/include/sdbusplus/message/
H A Dappend.hpp59 template <typename T>
60 using Td = types::details::type_id_downcast_t<T>;
68 template <typename T>
69 static auto address_of_helper(T&& t, std::false_type) in address_of_helper()
73 template <typename T>
74 static auto address_of_helper(T&& t, std::true_type) in address_of_helper()
79 template <typename T>
80 static auto address_of(T&& t) in address_of()
82 return address_of_helper(std::forward<T>(t), in address_of()
83 std::is_pointer<std::remove_reference_t<T>>()); in address_of()
[all …]
H A Dtypes.hpp63 template <typename T>
66 using type = T;
82 template <typename T>
83 using downcast_members_t = typename downcast_members<T>::type;
94 template <typename T>
98 char, downcast_members_t<std::remove_cv_t<std::remove_reference_t<T>>>>;
101 template <typename T>
102 using type_id_downcast_t = typename type_id_downcast<T>::type;
148 template <typename T>
158 template <typename T, typename... Args>
[all …]
/openbmc/telemetry/src/utils/
H A Dconversion.hpp39 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 …]
H A Dcontains.hpp10 template <class T>
12 requires(T container) { container.find(container.begin()->first); };
14 template <class T>
16 requires(T container) { container.contains(*container.begin()); };
20 template <detail::HasMemberFind T>
21 inline bool contains(const T& container, in contains()
22 const typename T::value_type::first_type& key) in contains()
27 template <detail::HasMemberContains T>
28 inline bool contains(const T& container, const typename T::value_type& key) in contains()
33 template <class T>
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-smp-parse.c20 #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/sdbusplus/include/sdbusplus/utility/
H A Dtype_traits.hpp26 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 …]
H A Dcontainer_traits.hpp10 template <typename T>
11 concept is_dbus_array = requires(T v) {
13 !std::is_same_v<std::decay<T>, std::string>;
16 template <typename T, typename... U>
17 concept is_any_of = (std::same_as<T, U> || ...);
19 template <typename T>
21 requires(T v) {
26 requires(is_any_of<typename T::value_type, uint8_t, int16_t, uint16_t,
30 template <typename T>
31 concept has_emplace_back = requires(T v) { v.emplace_back(); };
[all …]
/openbmc/phosphor-inventory-manager/
H A Dinterface_ops.hpp28 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 …]
H A Dfunctor.hpp29 template <typename T>
30 auto make_action(T&& action) in make_action()
32 return Action(std::forward<T>(action)); in make_action()
44 template <typename T>
45 auto make_filter(T&& filter) in make_filter()
47 return Filter(std::forward<T>(filter)); in make_filter()
59 template <typename T>
60 auto make_path_condition(T&& condition) in make_path_condition()
62 return PathCondition(std::forward<T>(condition)); in make_path_condition()
75 template <typename T, typename U>
[all …]
/openbmc/phosphor-hwmon/
H A Dthresholds.hpp13 template <typename T>
74 template <typename T>
77 auto realIface = std::any_cast<std::shared_ptr<T>>(iface); in checkThresholds()
78 auto lo = (*realIface.*Thresholds<T>::getLo)(); in checkThresholds()
79 auto hi = (*realIface.*Thresholds<T>::getHi)(); in checkThresholds()
80 auto alarmLowState = (*realIface.*Thresholds<T>::getAlarmLow)(); in checkThresholds()
81 auto alarmHighState = (*realIface.*Thresholds<T>::getAlarmHigh)(); in checkThresholds()
82 (*realIface.*Thresholds<T>::alarmLo)(value <= lo); in checkThresholds()
83 (*realIface.*Thresholds<T>::alarmHi)(value >= hi); in checkThresholds()
88 (*realIface.*Thresholds<T>::assertLowSignal)(value); in checkThresholds()
[all …]
/openbmc/slpd-lite/
H A Dendian.hpp10 template <typename T>
13 static T to_network(T) = delete;
14 static T from_network(T) = delete;
43 template <typename T>
44 T to_network(T i) in to_network()
46 return details::convert<T>::to_network(i); in to_network()
48 template <typename T>
49 T from_network(T i) in from_network()
51 return details::convert<T>::from_network(i); in from_network()
/openbmc/phosphor-virtual-sensor/src/
H A DexprtkTools.hpp46 template <typename T>
47 struct FuncMaxIgnoreNaN : public exprtk::ivararg_function<T>
55 inline T operator()(const std::vector<T>& argList) in operator ()()
73 template <typename T>
74 struct FuncSumIgnoreNaN : public exprtk::ivararg_function<T>
76 inline T operator()(const std::vector<T>& argList) in operator ()()
94 template <typename T>
95 struct FuncIfNan : public exprtk::ifunction<T>
97 using exprtk::ifunction<T>::operator();
99 FuncIfNan() : exprtk::ifunction<T>(2) {} in FuncIfNan()
[all …]
/openbmc/phosphor-dbus-monitor/src/
H A Dtupleref.hpp15 template <typename... T>
16 using TupleOfRefs = std::tuple<std::reference_wrapper<T>...>;
21 template <size_t size, size_t i, typename T, typename U>
24 static constexpr bool compare(const T& l, const U& r) in compare()
34 return TupleOfRefsLess<size, i + 1, T, U>::compare(l, r); in compare()
39 template <size_t size, typename T, typename U>
40 struct TupleOfRefsLess<size, size, T, U>
42 static constexpr bool compare(const T& /* l */, const U& /* r */) in compare()
52 template <typename... T, typename... U>
53 constexpr bool operator()(const TupleOfRefs<T...>& l, in operator ()()
[all …]
/openbmc/phosphor-host-ipmid/include/ipmid/
H A Dutility.hpp70 template <typename T>
71 using StripFirstArg = StripFirstArgs<1, T>;
115 template <typename T>
146 template <typename Tbase, typename T>
148 std::is_array<T>::value,
149 std::conditional_t<std::is_same<Tbase, std::remove_extent_t<T>>::value,
150 std::add_pointer_t<std::remove_extent_t<T>>, T>,
151 T>;
163 template <typename T>
166 using type = T;
[all …]
/openbmc/openbmc/poky/meta/recipes-core/libxml/libxml2/
H A Drun-ptest10 for T in $TESTS; do
11 echo Running $T
12 ./$T && echo PASS: $T || echo FAIL: $T
17 for T in *.py; do
18 python3 ./$T && echo PASS: $T || echo FAIL: $T
/openbmc/phosphor-fan-presence/control/
H A Dactions.hpp85 template <typename T>
86 auto count_state_before_speed(size_t count, T&& state, uint64_t speed) in count_state_before_speed()
89 state = std::forward<T>(state)](auto& zone, auto& group) { in count_state_before_speed()
95 if (zone.template getPropertyValue<T>( in count_state_before_speed()
129 template <typename T>
130 Action set_floor_from_average_sensor_value(std::map<T, uint64_t>&& val_to_speed) in set_floor_from_average_sensor_value() argument
140 [&zone, &count](T sum, const auto& entry) { in set_floor_from_average_sensor_value()
143 return sum + zone.template getPropertyValue<T>( in set_floor_from_average_sensor_value()
186 template <typename T>
188 std::map<T, uint64_t>&& val_to_speed) in set_ceiling_from_average_sensor_value() argument
[all …]
/openbmc/dbus-sensors/src/
H A DVariantVisitors.hpp31 template <typename T>
32 U operator()(const T& t) const in operator ()()
34 if constexpr (std::is_arithmetic_v<T>) in operator ()()
40 boost::typeindex::type_id<T>().pretty_name() + " to " + in operator ()()
55 template <typename T>
56 std::string operator()(const T& t) const in operator ()()
58 if constexpr (std::is_same_v<T, std::string>) in operator ()()
62 else if constexpr (std::is_arithmetic_v<T>) in operator ()()
68 boost::typeindex::type_id<T>().pretty_name() + " to string"); in operator ()()
75 template <typename T>
[all …]

12345678910>>...27