Lines Matching defs:T
130 pub fn property_read_array_vec<'fwnode, 'name, T: PropertyInt>(
134 ) -> Result<PropertyGuard<'fwnode, 'name, KVec<T>>> {
135 let mut val: KVec<T> = KVec::with_capacity(len, GFP_KERNEL)?;
137 let res = T::read_array_from_fwnode_property(self, name, val.spare_capacity_mut());
158 pub fn property_count_elem<T: PropertyInt>(&self, name: &CStr) -> Result<usize> {
159 T::read_array_len_from_fwnode_property(self, name)
191 pub fn property_read<'fwnode, 'name, T: Property>(
194 ) -> PropertyGuard<'fwnode, 'name, T> {
196 inner: T::read_from_fwnode_property(self, name),
581 pub struct PropertyGuard<'fwnode, 'name, T> {
583 inner: Result<T>,
590 impl<T> PropertyGuard<'_, '_, T> {
596 pub fn required_by(self, dev: &super::Device) -> Result<T> {
612 pub fn optional(self) -> Option<T> {
620 pub fn or(self, default: T) -> T {
625 impl<T: Default> PropertyGuard<'_, '_, T> {
629 pub fn or_default(self) -> T {