Lines Matching refs:device_features
3353 u64 device_features; in mlx5_vdpa_dev_add() local
3362 device_features = mgtdev->mgtdev.supported_features; in mlx5_vdpa_dev_add()
3364 if (add_config->device_features & ~device_features) { in mlx5_vdpa_dev_add()
3367 add_config->device_features, device_features); in mlx5_vdpa_dev_add()
3370 device_features &= add_config->device_features; in mlx5_vdpa_dev_add()
3372 device_features &= ~BIT_ULL(VIRTIO_NET_F_MRG_RXBUF); in mlx5_vdpa_dev_add()
3374 if (!(device_features & BIT_ULL(VIRTIO_F_VERSION_1) && in mlx5_vdpa_dev_add()
3375 device_features & BIT_ULL(VIRTIO_F_ACCESS_PLATFORM))) { in mlx5_vdpa_dev_add()
3432 if (device_features & BIT_ULL(VIRTIO_NET_F_MTU)) { in mlx5_vdpa_dev_add()
3440 if (device_features & BIT_ULL(VIRTIO_NET_F_STATUS)) { in mlx5_vdpa_dev_add()
3451 device_features & BIT_ULL(VIRTIO_NET_F_MAC)) { in mlx5_vdpa_dev_add()
3469 device_features &= ~BIT_ULL(VIRTIO_NET_F_MAC); in mlx5_vdpa_dev_add()
3470 } else if (device_features & BIT_ULL(VIRTIO_NET_F_MAC)) { in mlx5_vdpa_dev_add()
3478 if (device_features & BIT_ULL(VIRTIO_NET_F_MQ)) in mlx5_vdpa_dev_add()
3481 ndev->mvdev.mlx_features = device_features; in mlx5_vdpa_dev_add()