Searched refs:add_config (Results 1 – 3 of 3) sorted by relevance
612 const struct vdpa_dev_set_config *add_config) in pds_vdpa_dev_add() argument658 if (add_config->mask & BIT_ULL(VDPA_ATTR_DEV_FEATURES)) { in pds_vdpa_dev_add()660 add_config->device_features & ~pdsv->supported_features; in pds_vdpa_dev_add()668 pdsv->supported_features = add_config->device_features; in pds_vdpa_dev_add()687 if (add_config->mask & (1 << VDPA_ATTR_DEV_NET_CFG_MAX_VQP)) in pds_vdpa_dev_add()688 vq_pairs = add_config->net.max_vq_pairs; in pds_vdpa_dev_add()714 if (add_config->mask & BIT_ULL(VDPA_ATTR_DEV_NET_CFG_MACADDR)) { in pds_vdpa_dev_add()715 ether_addr_copy(pdsv->mac, add_config->net.mac); in pds_vdpa_dev_add()
501 const struct vdpa_dev_set_config *add_config) in vp_vdpa_dev_add() argument529 if (add_config->mask & BIT_ULL(VDPA_ATTR_DEV_FEATURES)) { in vp_vdpa_dev_add()530 if (add_config->device_features & ~device_features) { in vp_vdpa_dev_add()535 device_features, add_config->device_features); in vp_vdpa_dev_add()538 device_features = add_config->device_features; in vp_vdpa_dev_add()
3831 const struct vdpa_dev_set_config *add_config) in mlx5_vdpa_dev_add() argument3849 if (add_config->mask & BIT_ULL(VDPA_ATTR_DEV_FEATURES)) { in mlx5_vdpa_dev_add()3850 if (add_config->device_features & ~device_features) { in mlx5_vdpa_dev_add()3853 add_config->device_features, device_features); in mlx5_vdpa_dev_add()3856 device_features &= add_config->device_features; in mlx5_vdpa_dev_add()3883 if (add_config->mask & BIT_ULL(VDPA_ATTR_DEV_NET_CFG_MAX_VQP)) { in mlx5_vdpa_dev_add()3884 if (add_config->net.max_vq_pairs > max_vqs / 2) in mlx5_vdpa_dev_add()3886 max_vqs = min_t(u32, max_vqs, 2 * add_config->net.max_vq_pairs); in mlx5_vdpa_dev_add()3918 if (add_config->mask & BIT_ULL(VDPA_ATTR_DEV_NET_CFG_MTU)) { in mlx5_vdpa_dev_add()3919 err = config_func_mtu(mdev, add_config->net.mtu); in mlx5_vdpa_dev_add()[all …]