Lines Matching defs:T
129 pub fn property_read_array_vec<'fwnode, 'name, T: PropertyInt>(
133 ) -> Result<PropertyGuard<'fwnode, 'name, KVec<T>>> {
134 let mut val: KVec<T> = KVec::with_capacity(len, GFP_KERNEL)?;
136 let res = T::read_array_from_fwnode_property(self, name, val.spare_capacity_mut());
157 pub fn property_count_elem<T: PropertyInt>(&self, name: &CStr) -> Result<usize> {
158 T::read_array_len_from_fwnode_property(self, name)
190 pub fn property_read<'fwnode, 'name, T: Property>(
193 ) -> PropertyGuard<'fwnode, 'name, T> {
195 inner: T::read_from_fwnode_property(self, name),
580 pub struct PropertyGuard<'fwnode, 'name, T> {
582 inner: Result<T>,
589 impl<T> PropertyGuard<'_, '_, T> {
595 pub fn required_by(self, dev: &super::Device) -> Result<T> {
611 pub fn optional(self) -> Option<T> {
619 pub fn or(self, default: T) -> T {
624 impl<T: Default> PropertyGuard<'_, '_, T> {
628 pub fn or_default(self) -> T {