Lines Matching refs:supported
331 * pci_pri_supported - Check if PRI is supported.
358 * whether the features are actually supported by the device and returns
363 u16 control, supported;
388 pci_read_config_word(pdev, pasid + PCI_PASID_CAP, &supported);
389 supported &= PCI_PASID_CAP_EXEC | PCI_PASID_CAP_PRIV;
392 if ((supported & features) != features)
454 * pci_pasid_features - Check which PASID features are supported
458 * Otherwise is returns a bitmask with supported features. Current
460 * PCI_PASID_CAP_EXEC - Execute permission supported
461 * PCI_PASID_CAP_PRIV - Privileged mode supported
465 u16 supported;
475 pci_read_config_word(pdev, pasid + PCI_PASID_CAP, &supported);
477 supported &= PCI_PASID_CAP_EXEC | PCI_PASID_CAP_PRIV;
479 return supported;
486 * pci_max_pasids - Get maximum number of PASIDs supported by device
490 * Otherwise it returns the number of supported PASIDs.
494 u16 supported;
504 pci_read_config_word(pdev, pasid + PCI_PASID_CAP, &supported);
506 supported = (supported & PASID_NUMBER_MASK) >> PASID_NUMBER_SHIFT;
508 return (1 << supported);