Lines Matching refs:config_dev
2403 static int mlx4_CONFIG_DEV_set(struct mlx4_dev *dev, struct mlx4_config_dev *config_dev) in mlx4_CONFIG_DEV_set() argument
2412 memcpy(mailbox->buf, config_dev, sizeof(*config_dev)); in mlx4_CONFIG_DEV_set()
2421 static int mlx4_CONFIG_DEV_get(struct mlx4_dev *dev, struct mlx4_config_dev *config_dev) in mlx4_CONFIG_DEV_get() argument
2434 memcpy(config_dev, mailbox->buf, sizeof(*config_dev)); in mlx4_CONFIG_DEV_get()
2457 struct mlx4_config_dev config_dev = {0}; in mlx4_config_dev_retrieval() local
2468 err = mlx4_CONFIG_DEV_get(dev, &config_dev); in mlx4_config_dev_retrieval()
2472 csum_mask = (config_dev.rx_checksum_val >> CONFIG_DEV_RX_CSUM_MODE_PORT1_BIT_OFFSET) & in mlx4_config_dev_retrieval()
2479 csum_mask = (config_dev.rx_checksum_val >> CONFIG_DEV_RX_CSUM_MODE_PORT2_BIT_OFFSET) & in mlx4_config_dev_retrieval()
2486 params->vxlan_udp_dport = be16_to_cpu(config_dev.vxlan_udp_dport); in mlx4_config_dev_retrieval()
2494 struct mlx4_config_dev config_dev; in mlx4_config_vxlan_port() local
2496 memset(&config_dev, 0, sizeof(config_dev)); in mlx4_config_vxlan_port()
2497 config_dev.update_flags = cpu_to_be32(MLX4_VXLAN_UDP_DPORT); in mlx4_config_vxlan_port()
2498 config_dev.vxlan_udp_dport = udp_port; in mlx4_config_vxlan_port()
2500 return mlx4_CONFIG_DEV_set(dev, &config_dev); in mlx4_config_vxlan_port()
2507 struct mlx4_config_dev config_dev; in mlx4_disable_rx_port_check() local
2509 memset(&config_dev, 0, sizeof(config_dev)); in mlx4_disable_rx_port_check()
2510 config_dev.update_flags = cpu_to_be32(MLX4_DISABLE_RX_PORT); in mlx4_disable_rx_port_check()
2512 config_dev.roce_flags = in mlx4_disable_rx_port_check()
2515 return mlx4_CONFIG_DEV_set(dev, &config_dev); in mlx4_disable_rx_port_check()
2520 struct mlx4_config_dev config_dev; in mlx4_config_roce_v2_port() local
2522 memset(&config_dev, 0, sizeof(config_dev)); in mlx4_config_roce_v2_port()
2523 config_dev.update_flags = cpu_to_be32(MLX4_ROCE_V2_UDP_DPORT); in mlx4_config_roce_v2_port()
2524 config_dev.roce_v2_udp_dport = cpu_to_be16(udp_port); in mlx4_config_roce_v2_port()
2526 return mlx4_CONFIG_DEV_set(dev, &config_dev); in mlx4_config_roce_v2_port()