Home
last modified time | relevance | path

Searched defs:T (Results 1 – 25 of 148) sorted by relevance

123456

/openbmc/linux/rust/alloc/
H A Dslice.rs102 pub fn into_vec<T, A: Allocator>(b: Box<[T], A>) -> Vec<T, A> { in into_vec() argument
112 pub fn to_vec<T: ConvertVec, A: Allocator>(s: &[T], alloc: A) -> Vec<T, A> { in to_vec() argument
124 impl<T: Clone> ConvertVec for T { implementation
161 impl<T: Copy> ConvertVec for T { implementation
178 impl<T> [T] { implementation
267 F: FnMut(&T, &T) -> Ordering, in sort_by()
775 fn borrow(&self) -> &[T] { in borrow()
821 impl<T: Clone> ToOwned for [T] { implementation
824 fn to_owned(&self) -> Vec<T> { in to_owned()
829 fn to_owned(&self) -> Vec<T> { in to_owned()
[all …]
H A Dboxed.rs287 pub fn pin(x: T) -> Pin<Box<T>> { in pin()
382 pub fn new_in(x: T, alloc: A) -> Self in new_in()
1479 fn from(boxed: Box<T, A>) -> Self { in from()
1528 fn from(slice: &[T]) -> Box<[T]> { in from()
1655 boxed_slice: Box<[T], A>, in boxed_slice_as_array_unchecked()
1917 let ptr: *const T = &**self; in fmt() constant
1926 fn deref(&self) -> &T { in deref()
1967 fn some<T>(_: Option<T>, x: T) -> Option<T> { in last()
2062 fn borrow(&self) -> &T { in borrow()
2076 fn as_ref(&self) -> &T { in as_ref()
[all …]
/openbmc/linux/rust/alloc/vec/
H A Dmod.rs1744 fn process_loop<F, T, A: Allocator, const DELETED: bool>( in retain_mut() argument
2309 F: FnMut() -> T, in resize_with()
2447 pub fn split_at_spare_mut(&mut self) -> (&mut [T], &mut [MaybeUninit<T>]) { in split_at_spare_mut()
2459 ) -> (&mut [T], &mut [MaybeUninit<T>], &mut usize) { in split_at_spare_mut_with_len()
2779 pub fn from_elem<T: Clone>(elem: T, n: usize) -> Vec<T> { in from_elem()
2786 pub fn from_elem_in<T: Clone, A: Allocator>(elem: T, n: usize, alloc: A) -> Vec<T, A> { in from_elem_in() argument
2854 fn deref(&self) -> &[T] { in deref()
3354 fn as_ref(&self) -> &[T] { in as_ref()
3377 fn from(s: &[T]) -> Vec<T> { in from()
3381 fn from(s: &[T]) -> Vec<T> { in from()
[all …]
H A Dinto_iter.rs71 pub fn as_slice(&self) -> &[T] { in as_slice()
89 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice()
100 fn as_raw_mut_slice(&mut self) -> *mut [T] { in as_raw_mut_slice()
147 pub(crate) fn into_vecdeque(self) -> VecDeque<T, A> { in into_vecdeque()
175 fn as_ref(&self) -> &[T] { in as_ref()
190 fn next(&mut self) -> Option<T> { in next()
242 fn next_chunk<const N: usize>(&mut self) -> Result<[T; N], core::array::IntoIter<T, N>> { in next_chunk()
299 fn next_back(&mut self) -> Option<T> { in next_back()
373 impl<T: Copy> NonDrop for T {} implementation
H A Ddrain.rs59 pub fn as_slice(&self) -> &[T] { in as_slice()
143 fn as_ref(&self) -> &[T] { in as_ref()
158 fn next(&mut self) -> Option<T> { in next()
170 fn next_back(&mut self) -> Option<T> { in next_back()
/openbmc/linux/rust/kernel/
H A Dinit.rs920 fn chain<F>(self, f: F) -> ChainInit<Self, F, T, E> in chain() argument
978 ) -> impl PinInit<T, E> { in pin_init_from_closure()
997 ) -> impl Init<T, E> { in init_from_closure()
1005 pub fn uninit<T, E>() -> impl Init<MaybeUninit<T>, E> { in uninit() argument
1019 pub fn init_array_from_fn<I, const N: usize, T, E>( in init_array_from_fn() argument
1023 I: Init<T, E>,
1063 pub fn pin_init_array_from_fn<I, const N: usize, T, E>( in pin_init_array_from_fn() argument
1067 I: PinInit<T, E>,
1098 unsafe impl<T, E> Init<T, E> for T { implementation
1106 unsafe impl<T, E> PinInit<T, E> for T { implementation
[all …]
H A Dtypes.rs58 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> &'a T { in borrow()
160 pub fn new_with_data(data: T, cleanup_func: F) -> Self { in new_with_data()
166 pub fn dismiss(mut self) -> T { in dismiss()
183 fn deref(&self) -> &T { in deref()
190 fn deref_mut(&mut self) -> &mut T { in deref_mut()
251 pub const fn get(&self) -> *mut T { in get()
259 pub const fn raw_get(this: *const Self) -> *mut T { in raw_get()
H A Derror.rs135 pub(crate) fn to_ptr<T>(self) -> *mut T { in to_ptr()
278 pub(crate) fn from_err_ptr<T>(ptr: *mut T) -> Result<*mut T> { in from_err_ptr()
325 pub(crate) fn from_result<T, F>(f: F) -> T in from_result()
328 F: FnOnce() -> Result<T>, in from_result()
/openbmc/qemu/scripts/codeconverter/codeconverter/
H A Dutils.py16 T = TypeVar('T') variable
17 def opt_compare(a: T, b: T) -> bool:
21 def merge(a: T, b: T) -> T:
68 def not_optional(arg: Optional[T]) -> T:
/openbmc/qemu/python/qemu/qmp/
H A Dutil.py25 T = TypeVar('T') variable
56 def upper_half(func: T) -> T:
66 def bottom_half(func: T) -> T:
87 def create_task(coro: Coroutine[Any, Any, T], argument
152 def asyncio_run(coro: Coroutine[Any, Any, T], *, debug: bool = False) -> T: argument
H A Dprotocol.py49 T = TypeVar('T') variable
917 def _cb_outbound(self, msg: T) -> T:
934 def _cb_inbound(self, msg: T) -> T:
1014 def _do_send(self, msg: T) -> None:
1024 async def _send(self, msg: T) -> None:
1044 async def _on_message(self, msg: T) -> None:
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_params.c44 #define i915_param_named(name, T, perm, desc) \ argument
47 #define i915_param_named_unsafe(name, T, perm, desc) \ argument
52 #define MEMBER(T, member, value, ...) .member = (value), argument
278 #define PRINT(T, x, ...) _param_print(p, #x, params->x); in i915_params_dump() argument
300 #define DUP(T, x, ...) _param_dup(&dest->x); in i915_params_copy() argument
319 #define FREE(T, x, ...) _param_free(&params->x); in i915_params_free() argument
H A Di915_selftest.h89 #define i915_subtests(T, data) \ argument
93 #define i915_live_subtests(T, data) ({ \ argument
100 #define intel_gt_live_subtests(T, data) ({ \ argument
/openbmc/linux/drivers/comedi/drivers/tests/
H A Dni_routes_test.c310 const struct ni_route_tables *T = &private.routing_tables; in test_ni_route_to_register() local
360 const struct ni_route_tables *T = &private.routing_tables; in test_ni_lookup_route_register() local
399 const struct ni_route_tables *T = &private.routing_tables; in test_route_is_valid() local
454 const struct ni_route_tables *T = &private.routing_tables; in test_ni_count_valid_routes() local
462 const struct ni_route_tables *T = &private.routing_tables; in test_ni_get_valid_routes() local
479 const struct ni_route_tables *T = &private.routing_tables; in test_ni_find_route_source() local
496 const struct ni_route_tables *T = &private.routing_tables; in test_route_register_is_valid() local
511 const struct ni_route_tables *T = &private.routing_tables; in test_ni_check_trigger_arg() local
544 const struct ni_route_tables *T = &private.routing_tables; in test_ni_get_reg_value() local
/openbmc/linux/rust/kernel/sync/
H A Darc.rs184 pub fn pin_init<E>(init: impl PinInit<T, E>) -> error::Result<Self> in pin_init()
195 pub fn init<E>(init: impl Init<T, E>) -> error::Result<Self> in init()
223 pub fn as_arc_borrow(&self) -> ArcBorrow<'_, T> { in as_arc_borrow() argument
243 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> ArcBorrow<'a, T> { in borrow() argument
272 fn as_ref(&self) -> &T { in as_ref()
544 pub fn write(mut self, value: T) -> UniqueArc<T> { in write()
556 pub unsafe fn assume_init(self) -> UniqueArc<T> { in assume_init()
566 pub fn init_with<E>(mut self, init: impl Init<T, E>) -> core::result::Result<UniqueArc<T>, E> { in init_with() argument
578 init: impl PinInit<T, E>, in pin_init_with()
579 ) -> core::result::Result<Pin<UniqueArc<T>>, E> { in pin_init_with()
H A Dcondvar.rs106 fn wait_internal<T: ?Sized, B: Backend>(&self, wait_state: u32, guard: &mut Guard<'_, T, B>) { in wait_internal() argument
133 pub fn wait<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) -> bool { in wait() argument
142 pub fn wait_uninterruptible<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) { in wait_uninterruptible() argument
/openbmc/linux/include/linux/
H A Doverflow.h34 #define __type_max(T) ((T)((__type_half_max(T) - 1) + __type_half_max(T))) argument
36 #define __type_min(T) ((T)((T)-type_max(T)-(T)1)) argument
133 #define __overflows_type_constexpr(x, T) ( \ argument
140 #define __overflows_type(x, T) ({ \ argument
159 #define overflows_type(n, T) \ argument
175 #define castable_to_type(n, T) \ argument
/openbmc/telemetry/src/utils/
H A Dconversion.hpp61 minEnumValue(std::array<std::pair<std::string_view, T>, N> data) in minEnumValue() argument
76 maxEnumValue(std::array<std::pair<std::string_view, T>, N> data) in maxEnumValue() argument
90 inline T toEnum(const std::array<std::pair<std::string_view, T>, N>& data, in toEnum() argument
105 enumToString(const std::array<std::pair<std::string_view, T>, N>& data, in enumToString() argument
/openbmc/linux/tools/testing/selftests/kvm/
H A Dguest_print_test.c40 #define TYPE(fn, ext, fmt_t, T) TYPE_##ext, argument
48 #define BUILD_TYPE_STRINGS_AND_HELPER(fn, ext, fmt_t, T) \ argument
63 #define TYPE(fn, ext, fmt_t, T) \ argument
72 #define TYPE(fn, ext, fmt_t, T) \ in guest_code() argument
/openbmc/linux/lib/
H A Dtest_scanf.c187 #define value_representable_in_type(T, val) \ argument
193 #define test_one_number(T, gen_fmt, scan_fmt, val, fn) \ argument
202 #define simple_numbers_loop(T, gen_fmt, scan_fmt, fn) \ argument
286 #define random_for_type(T) \ argument
352 #define numbers_list_8(T, gen_fmt, field_sep, scan_fmt, fn) \ argument
372 #define numbers_list_fix_width(T, gen_fmt, field_sep, width, scan_fmt, fn) \ argument
380 #define numbers_list_val_width(T, gen_fmt, field_sep, scan_fmt, fn) \ argument
606 #define test_number_prefix(T, str, scan_fmt, expect0, expect1, n_args, fn) \ argument
682 #define _test_simple_strtoxx(T, fn, gen_fmt, expect, base) \ argument
708 #define test_simple_strtoxx(T, fn, gen_fmt, base) \ argument
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/top/
H A Dgk104.c73 #define I_(T,I) do { info->type = (T); info->inst = (I); } while(0) in gk104_top_parse() argument
74 #define O_(T,I) do { WARN_ON(inst); I_(T, I); } while (0) in gk104_top_parse() argument
H A Dga100.c69 #define I_(T,I) do { info->type = (T); info->inst = (I); } while(0) in ga100_top_parse() argument
70 #define O_(T,I) do { WARN_ON(inst); I_(T, I); } while (0) in ga100_top_parse() argument
/openbmc/qemu/scripts/qapi/
H A Dsource.py34 T = TypeVar('T', bound='QAPISourceInfo') variable in QAPISourceInfo
50 def next_line(self: T) -> T:
/openbmc/u-boot/include/linux/
H A Dconst.h18 #define _AT(T,X) X argument
22 #define _AT(T,X) ((T)(X)) argument
/openbmc/linux/drivers/ata/
H A Dlibata-pata-timings.c61 struct ata_timing *q, int T, int UT) in ata_timing_quantize()
116 struct ata_timing *t, int T, int UT) in ata_timing_compute()

123456