Lines Matching full:supported
265 * whether the features are actually supported by the device and returns
270 u16 control, supported; in pci_enable_pasid() local
283 pci_read_config_word(pdev, pos + PCI_PASID_CAP, &supported); in pci_enable_pasid()
284 supported &= PCI_PASID_CAP_EXEC | PCI_PASID_CAP_PRIV; in pci_enable_pasid()
287 if ((supported & features) != features) in pci_enable_pasid()
345 * pci_pasid_features - Check which PASID features are supported
349 * Otherwise is returns a bitmask with supported features. Current
351 * PCI_PASID_CAP_EXEC - Execute permission supported
352 * PCI_PASID_CAP_PRIV - Privileged mode supported
356 u16 supported; in pci_pasid_features() local
363 pci_read_config_word(pdev, pos + PCI_PASID_CAP, &supported); in pci_pasid_features()
365 supported &= PCI_PASID_CAP_EXEC | PCI_PASID_CAP_PRIV; in pci_pasid_features()
367 return supported; in pci_pasid_features()
374 * pci_max_pasid - Get maximum number of PASIDs supported by device
378 * Otherwise it returns the numer of supported PASIDs.
382 u16 supported; in pci_max_pasids() local
389 pci_read_config_word(pdev, pos + PCI_PASID_CAP, &supported); in pci_max_pasids()
391 supported = (supported & PASID_NUMBER_MASK) >> PASID_NUMBER_SHIFT; in pci_max_pasids()
393 return (1 << supported); in pci_max_pasids()