Lines Matching refs:config_dev
2386 static int mlx4_CONFIG_DEV_set(struct mlx4_dev *dev, struct mlx4_config_dev *config_dev)
2395 memcpy(mailbox->buf, config_dev, sizeof(*config_dev));
2404 static int mlx4_CONFIG_DEV_get(struct mlx4_dev *dev, struct mlx4_config_dev *config_dev)
2417 memcpy(config_dev, mailbox->buf, sizeof(*config_dev));
2440 struct mlx4_config_dev config_dev = {0};
2451 err = mlx4_CONFIG_DEV_get(dev, &config_dev);
2455 csum_mask = (config_dev.rx_checksum_val >> CONFIG_DEV_RX_CSUM_MODE_PORT1_BIT_OFFSET) &
2462 csum_mask = (config_dev.rx_checksum_val >> CONFIG_DEV_RX_CSUM_MODE_PORT2_BIT_OFFSET) &
2469 params->vxlan_udp_dport = be16_to_cpu(config_dev.vxlan_udp_dport);
2477 struct mlx4_config_dev config_dev;
2479 memset(&config_dev, 0, sizeof(config_dev));
2480 config_dev.update_flags = cpu_to_be32(MLX4_VXLAN_UDP_DPORT);
2481 config_dev.vxlan_udp_dport = udp_port;
2483 return mlx4_CONFIG_DEV_set(dev, &config_dev);
2490 struct mlx4_config_dev config_dev;
2492 memset(&config_dev, 0, sizeof(config_dev));
2493 config_dev.update_flags = cpu_to_be32(MLX4_DISABLE_RX_PORT);
2495 config_dev.roce_flags =
2498 return mlx4_CONFIG_DEV_set(dev, &config_dev);
2503 struct mlx4_config_dev config_dev;
2505 memset(&config_dev, 0, sizeof(config_dev));
2506 config_dev.update_flags = cpu_to_be32(MLX4_ROCE_V2_UDP_DPORT);
2507 config_dev.roce_v2_udp_dport = cpu_to_be16(udp_port);
2509 return mlx4_CONFIG_DEV_set(dev, &config_dev);