Lines Matching refs:device_features
3358 u64 device_features; in mlx5_vdpa_dev_add() local
3367 device_features = mgtdev->mgtdev.supported_features; in mlx5_vdpa_dev_add()
3369 if (add_config->device_features & ~device_features) { in mlx5_vdpa_dev_add()
3372 add_config->device_features, device_features); in mlx5_vdpa_dev_add()
3375 device_features &= add_config->device_features; in mlx5_vdpa_dev_add()
3377 device_features &= ~BIT_ULL(VIRTIO_NET_F_MRG_RXBUF); in mlx5_vdpa_dev_add()
3379 if (!(device_features & BIT_ULL(VIRTIO_F_VERSION_1) && in mlx5_vdpa_dev_add()
3380 device_features & BIT_ULL(VIRTIO_F_ACCESS_PLATFORM))) { in mlx5_vdpa_dev_add()
3437 if (device_features & BIT_ULL(VIRTIO_NET_F_MTU)) { in mlx5_vdpa_dev_add()
3445 if (device_features & BIT_ULL(VIRTIO_NET_F_STATUS)) { in mlx5_vdpa_dev_add()
3456 device_features & BIT_ULL(VIRTIO_NET_F_MAC)) { in mlx5_vdpa_dev_add()
3474 device_features &= ~BIT_ULL(VIRTIO_NET_F_MAC); in mlx5_vdpa_dev_add()
3475 } else if (device_features & BIT_ULL(VIRTIO_NET_F_MAC)) { in mlx5_vdpa_dev_add()
3483 if (device_features & BIT_ULL(VIRTIO_NET_F_MQ)) in mlx5_vdpa_dev_add()
3486 ndev->mvdev.mlx_features = device_features; in mlx5_vdpa_dev_add()