Lines Matching refs:Result

10 use kernel::error::Result;
49 fn new(pdev: &'a pci::Device, bar0: &'a Bar0) -> Result<Self> { in new()
60 fn read_more(&mut self, len: usize) -> Result { in read_more() argument
90 fn read_more_at_offset(&mut self, offset: usize, len: usize) -> Result { in read_more_at_offset() argument
113 ) -> Result<BiosImage> { in read_bios_image_at_offset()
139 type Item = Result<BiosImage>;
195 pub(crate) fn new(pdev: &pci::Device, bar0: &Bar0) -> Result<Vbios> { in new()
287 fn new(pdev: &pci::Device, data: &[u8]) -> Result<Self> { in new()
367 fn new(data: &[u8]) -> Result<Self> { in new()
412 fn from_id(image: &PciAtBiosImage, token_id: u8) -> Result<Self> { in from_id()
470 fn new(pdev: &pci::Device, data: &[u8]) -> Result<Self> { in new()
672 fn new(pdev: &pci::Device, data: &[u8]) -> Result<Self> { in new()
737 fn try_from(base: BiosImageBase) -> Result<Self> { in try_from()
771 fn into_image(self) -> Result<BiosImage> { in into_image()
776 fn new(pdev: &pci::Device, data: &[u8]) -> Result<Self> { in new()
826 fn find_byte_pattern(haystack: &[u8], needle: &[u8]) -> Result<usize> { in find_byte_pattern()
834 fn find_bit_header(data: &[u8]) -> Result<(BitHeader, usize)> { in find_bit_header()
843 fn get_bit_token(&self, token_id: u8) -> Result<BitToken> { in get_bit_token()
851 fn falcon_data_ptr(&self, pdev: &pci::Device) -> Result<u32> { in falcon_data_ptr()
880 fn try_from(base: BiosImageBase) -> Result<Self> { in try_from()
903 fn new(data: &[u8]) -> Result<Self> { in new()
931 fn new(pdev: &pci::Device, data: &[u8]) -> Result<Self> { in new()
975 fn lookup_index(&self, idx: u8) -> Result<PmuLookupTableEntry> { in lookup_index()
985 fn find_entry_by_type(&self, entry_type: u8) -> Result<PmuLookupTableEntry> { in find_entry_by_type()
1003 ) -> Result { in setup_falcon_data() argument
1062 fn build(self, pdev: &pci::Device) -> Result<FwSecBiosImage> { in build()
1080 pub(crate) fn header(&self, dev: &device::Device) -> Result<&FalconUCodeDescV3> { in header()
1118 pub(crate) fn ucode(&self, dev: &device::Device, desc: &FalconUCodeDescV3) -> Result<&[u8]> { in ucode()
1138 ) -> Result<&[Bcrt30Rsa3kSignature]> { in sigs()