Lines Matching refs:Some
61 if let Some(attribute) = self.attribute { in callback_read()
74 } else if let Some(bin_attribute) = self.bin_attribute.as_ref() { in callback_read()
84 if let Some(attribute) = self.attribute { in callback_write()
88 } else if let Some(bin_attribute) = self.bin_attribute.as_ref() { in callback_write()
123 if let Some(KernInodePrivateData::SysFS(SysFSKernPrivateData::Dir(dt))) = x.as_ref() { in add_file_with_mode()
154 let sys_priv = SysFSKernPrivateData::File(SysKernFilePriv::new(&kobj, Some(attr), None)); in add_file_with_mode()
158 Some(4096), in add_file_with_mode()
159 Some(KernInodePrivateData::SysFS(sys_priv)), in add_file_with_mode()
160 Some(kern_callback), in add_file_with_mode()
184 if let Some(parent) = parent { in remove_file()
220 if let Some(parent) = parent { in remove_bin_file()
241 if let Some(KernInodePrivateData::SysFS(SysFSKernPrivateData::Dir(dt))) = x.as_ref() { in add_bin_file_with_mode()
266 SysFSKernPrivateData::File(SysKernFilePriv::new(&kobj, None, Some(attr.clone()))); in add_bin_file_with_mode()
270 Some(attr.size()), in add_bin_file_with_mode()
271 Some(KernInodePrivateData::SysFS(sys_priv)), in add_bin_file_with_mode()
272 Some(kern_callback), in add_bin_file_with_mode()