Home
last modified time | relevance | path

Searched refs:device_features (Results 1 – 11 of 11) sorted by relevance

/openbmc/u-boot/drivers/virtio/
H A Dvirtio-uclass.c272 u64 device_features; in virtio_uclass_child_pre_probe() local
296 virtio_get_features(vdev, &device_features); in virtio_uclass_child_pre_probe()
298 vdev->name, device_features); in virtio_uclass_child_pre_probe()
299 if (!(device_features & (1ULL << VIRTIO_F_VERSION_1))) in virtio_uclass_child_pre_probe()
326 uc_priv->features = driver_features_legacy & device_features; in virtio_uclass_child_pre_probe()
329 uc_priv->features = driver_features & device_features; in virtio_uclass_child_pre_probe()
334 if ((device_features & (1ULL << i)) && in virtio_uclass_child_pre_probe()
H A Dvirtio_sandbox.c19 u64 device_features; member
73 *features = priv->device_features; in virtio_sandbox_get_features()
161 priv->device_features = VIRTIO_F_VERSION_1; in virtio_sandbox_probe()
/openbmc/linux/drivers/vdpa/virtio_pci/
H A Dvp_vdpa.c39 u64 device_features; member
73 return vp_vdpa->device_features; in vp_vdpa_get_device_features()
480 u64 device_features; in vp_vdpa_dev_add() local
497 device_features = vp_modern_get_features(mdev); in vp_vdpa_dev_add()
499 if (add_config->device_features & ~device_features) { in vp_vdpa_dev_add()
504 device_features, add_config->device_features); in vp_vdpa_dev_add()
507 device_features = add_config->device_features; in vp_vdpa_dev_add()
509 vp_vdpa->device_features = device_features; in vp_vdpa_dev_add()
/openbmc/linux/drivers/vdpa/ifcvf/
H A Difcvf_main.c686 u64 device_features; in ifcvf_vdpa_dev_add() local
706 device_features = vf->hw_features; in ifcvf_vdpa_dev_add()
708 if (config->device_features & ~device_features) { in ifcvf_vdpa_dev_add()
710 config->device_features, device_features); in ifcvf_vdpa_dev_add()
713 device_features &= config->device_features; in ifcvf_vdpa_dev_add()
715 vf->dev_features = device_features; in ifcvf_vdpa_dev_add()
/openbmc/linux/drivers/virtio/
H A Dvirtio.c242 u64 device_features; in virtio_dev_probe() local
250 device_features = dev->config->get_features(dev); in virtio_dev_probe()
272 if (device_features & (1ULL << VIRTIO_F_VERSION_1)) in virtio_dev_probe()
273 dev->features = driver_features & device_features; in virtio_dev_probe()
275 dev->features = driver_features_legacy & device_features; in virtio_dev_probe()
279 if (device_features & (1ULL << i)) in virtio_dev_probe()
/openbmc/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c3363 u64 device_features; in mlx5_vdpa_dev_add() local
3372 device_features = mgtdev->mgtdev.supported_features; in mlx5_vdpa_dev_add()
3374 if (add_config->device_features & ~device_features) { in mlx5_vdpa_dev_add()
3377 add_config->device_features, device_features); in mlx5_vdpa_dev_add()
3380 device_features &= add_config->device_features; in mlx5_vdpa_dev_add()
3382 device_features &= ~BIT_ULL(VIRTIO_NET_F_MRG_RXBUF); in mlx5_vdpa_dev_add()
3384 if (!(device_features & BIT_ULL(VIRTIO_F_VERSION_1) && in mlx5_vdpa_dev_add()
3385 device_features & BIT_ULL(VIRTIO_F_ACCESS_PLATFORM))) { in mlx5_vdpa_dev_add()
3442 if (device_features & BIT_ULL(VIRTIO_NET_F_MTU)) { in mlx5_vdpa_dev_add()
3450 if (device_features & BIT_ULL(VIRTIO_NET_F_STATUS)) { in mlx5_vdpa_dev_add()
[all …]
/openbmc/linux/drivers/vdpa/
H A Dvdpa.c634 config.device_features = in vdpa_nl_cmd_dev_add_set_doit()
637 !(config.device_features & BIT_ULL(VIRTIO_NET_F_MAC))) in vdpa_nl_cmd_dev_add_set_doit()
640 !(config.device_features & BIT_ULL(VIRTIO_NET_F_MTU))) in vdpa_nl_cmd_dev_add_set_doit()
644 !(config.device_features & BIT_ULL(VIRTIO_NET_F_MQ))) in vdpa_nl_cmd_dev_add_set_doit()
691 config.device_features & VIRTIO_DEVICE_F_MASK) { in vdpa_nl_cmd_dev_add_set_doit()
/openbmc/linux/include/linux/
H A Dvdpa.h113 u64 device_features; member
/openbmc/linux/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim.c204 if (config->device_features & in vdpasim_create()
208 config->device_features; in vdpasim_create()
/openbmc/linux/drivers/vdpa/pds/
H A Dvdpa_dev.c645 add_config->device_features & ~pdsv->supported_features; in pds_vdpa_dev_add()
653 pdsv->supported_features = add_config->device_features; in pds_vdpa_dev_add()
/openbmc/linux/drivers/vdpa/vdpa_user/
H A Dvduse_dev.c107 u64 device_features; member
606 return dev->device_features; in vduse_vdpa_get_device_features()
1797 dev->device_features = config->features; in vduse_create_dev()