Lines Matching refs:aq_ret

1279 	int aq_ret, aq_tmp = 0;  in i40e_set_vsi_promisc()  local
1284 aq_ret = i40e_aq_set_vsi_multicast_promiscuous(hw, seid, in i40e_set_vsi_promisc()
1287 if (aq_ret) { in i40e_set_vsi_promisc()
1293 ERR_PTR(aq_ret), in i40e_set_vsi_promisc()
1296 return aq_ret; in i40e_set_vsi_promisc()
1299 aq_ret = i40e_aq_set_vsi_unicast_promiscuous(hw, seid, in i40e_set_vsi_promisc()
1303 if (aq_ret) { in i40e_set_vsi_promisc()
1309 ERR_PTR(aq_ret), in i40e_set_vsi_promisc()
1313 return aq_ret; in i40e_set_vsi_promisc()
1317 aq_ret = i40e_aq_set_vsi_mc_promisc_on_vlan(hw, seid, in i40e_set_vsi_promisc()
1320 if (aq_ret) { in i40e_set_vsi_promisc()
1326 ERR_PTR(aq_ret), in i40e_set_vsi_promisc()
1330 aq_tmp = aq_ret; in i40e_set_vsi_promisc()
1333 aq_ret = i40e_aq_set_vsi_uc_promisc_on_vlan(hw, seid, in i40e_set_vsi_promisc()
1336 if (aq_ret) { in i40e_set_vsi_promisc()
1342 ERR_PTR(aq_ret), in i40e_set_vsi_promisc()
1346 aq_tmp = aq_ret; in i40e_set_vsi_promisc()
1351 aq_ret = aq_tmp; in i40e_set_vsi_promisc()
1353 return aq_ret; in i40e_set_vsi_promisc()
1373 int aq_ret = 0; in i40e_config_vf_promiscuous_mode() local
1382 aq_ret = i40e_set_vsi_promisc(vf, vsi->seid, allmulti, in i40e_config_vf_promiscuous_mode()
1384 return aq_ret; in i40e_config_vf_promiscuous_mode()
1391 aq_ret = i40e_set_vsi_promisc(vf, vsi->seid, allmulti, alluni, in i40e_config_vf_promiscuous_mode()
1394 return aq_ret; in i40e_config_vf_promiscuous_mode()
1398 aq_ret = i40e_set_vsi_promisc(vf, vsi->seid, allmulti, alluni, in i40e_config_vf_promiscuous_mode()
1400 return aq_ret; in i40e_config_vf_promiscuous_mode()
1980 int aq_ret; in i40e_vc_send_msg_to_vf() local
1990 aq_ret = i40e_aq_send_msg_to_vf(hw, abs_vf_id, v_opcode, v_retval, in i40e_vc_send_msg_to_vf()
1992 if (aq_ret) { in i40e_vc_send_msg_to_vf()
2118 int aq_ret = 0; in i40e_vc_get_vf_resources_msg() local
2123 aq_ret = -EINVAL; in i40e_vc_get_vf_resources_msg()
2130 aq_ret = -ENOMEM; in i40e_vc_get_vf_resources_msg()
2183 aq_ret = -EINVAL; in i40e_vc_get_vf_resources_msg()
2229 aq_ret, (u8 *)vfres, len); in i40e_vc_get_vf_resources_msg()
2250 int aq_ret = 0; in i40e_vc_config_promiscuous_mode_msg() local
2253 aq_ret = -EINVAL; in i40e_vc_config_promiscuous_mode_msg()
2264 aq_ret = 0; in i40e_vc_config_promiscuous_mode_msg()
2269 aq_ret = -EINVAL; in i40e_vc_config_promiscuous_mode_msg()
2274 aq_ret = -EINVAL; in i40e_vc_config_promiscuous_mode_msg()
2284 aq_ret = i40e_config_vf_promiscuous_mode(vf, info->vsi_id, allmulti, in i40e_vc_config_promiscuous_mode_msg()
2286 if (aq_ret) in i40e_vc_config_promiscuous_mode_msg()
2317 aq_ret); in i40e_vc_config_promiscuous_mode_msg()
2338 int aq_ret = 0; in i40e_vc_config_queues_msg() local
2341 aq_ret = -EINVAL; in i40e_vc_config_queues_msg()
2346 aq_ret = -EINVAL; in i40e_vc_config_queues_msg()
2351 aq_ret = -EINVAL; in i40e_vc_config_queues_msg()
2359 aq_ret = -EINVAL; in i40e_vc_config_queues_msg()
2372 aq_ret = -EINVAL; in i40e_vc_config_queues_msg()
2381 aq_ret = -EINVAL; in i40e_vc_config_queues_msg()
2388 aq_ret = -ENODEV; in i40e_vc_config_queues_msg()
2398 aq_ret = -EINVAL; in i40e_vc_config_queues_msg()
2409 aq_ret = -ENODEV; in i40e_vc_config_queues_msg()
2432 aq_ret = -EIO; in i40e_vc_config_queues_msg()
2441 aq_ret); in i40e_vc_config_queues_msg()
2485 int aq_ret = 0; in i40e_vc_config_irq_map_msg() local
2490 aq_ret = -EINVAL; in i40e_vc_config_irq_map_msg()
2496 aq_ret = -EINVAL; in i40e_vc_config_irq_map_msg()
2505 aq_ret = -EINVAL; in i40e_vc_config_irq_map_msg()
2511 aq_ret = -EINVAL; in i40e_vc_config_irq_map_msg()
2516 aq_ret = -EINVAL; in i40e_vc_config_irq_map_msg()
2525 aq_ret); in i40e_vc_config_irq_map_msg()
2601 int aq_ret = 0; in i40e_vc_enable_queues_msg() local
2605 aq_ret = -EPERM; in i40e_vc_enable_queues_msg()
2613 aq_ret = -EINVAL; in i40e_vc_enable_queues_msg()
2618 aq_ret = -EINVAL; in i40e_vc_enable_queues_msg()
2623 aq_ret = -EINVAL; in i40e_vc_enable_queues_msg()
2630 aq_ret = -EIO; in i40e_vc_enable_queues_msg()
2635 aq_ret = -EIO; in i40e_vc_enable_queues_msg()
2644 aq_ret = -EIO; in i40e_vc_enable_queues_msg()
2651 aq_ret); in i40e_vc_enable_queues_msg()
2667 int aq_ret = 0; in i40e_vc_disable_queues_msg() local
2670 aq_ret = -EINVAL; in i40e_vc_disable_queues_msg()
2675 aq_ret = -EINVAL; in i40e_vc_disable_queues_msg()
2680 aq_ret = -EINVAL; in i40e_vc_disable_queues_msg()
2687 aq_ret = -EIO; in i40e_vc_disable_queues_msg()
2692 aq_ret = -EIO; in i40e_vc_disable_queues_msg()
2698 aq_ret); in i40e_vc_disable_queues_msg()
2818 int aq_ret = 0; in i40e_vc_get_stats_msg() local
2824 aq_ret = -EINVAL; in i40e_vc_get_stats_msg()
2829 aq_ret = -EINVAL; in i40e_vc_get_stats_msg()
2835 aq_ret = -EINVAL; in i40e_vc_get_stats_msg()
2843 return i40e_vc_send_msg_to_vf(vf, VIRTCHNL_OP_GET_STATS, aq_ret, in i40e_vc_get_stats_msg()
3201 int aq_ret = 0; in i40e_vc_add_vlan_msg() local
3212 aq_ret = -EINVAL; in i40e_vc_add_vlan_msg()
3218 aq_ret = -EINVAL; in i40e_vc_add_vlan_msg()
3226 aq_ret = -EINVAL; in i40e_vc_add_vlan_msg()
3256 return i40e_vc_send_resp_to_vf(vf, VIRTCHNL_OP_ADD_VLAN, aq_ret); in i40e_vc_add_vlan_msg()
3272 int aq_ret = 0; in i40e_vc_remove_vlan_msg() local
3277 aq_ret = -EINVAL; in i40e_vc_remove_vlan_msg()
3283 aq_ret = -EINVAL; in i40e_vc_remove_vlan_msg()
3291 aq_ret = -EINVAL; in i40e_vc_remove_vlan_msg()
3313 return i40e_vc_send_resp_to_vf(vf, VIRTCHNL_OP_DEL_VLAN, aq_ret); in i40e_vc_remove_vlan_msg()
3328 int aq_ret = 0; in i40e_vc_rdma_msg() local
3333 aq_ret = -EINVAL; in i40e_vc_rdma_msg()
3344 aq_ret); in i40e_vc_rdma_msg()
3359 int aq_ret = 0; in i40e_vc_rdma_qvmap_msg() local
3363 aq_ret = -EINVAL; in i40e_vc_rdma_qvmap_msg()
3369 aq_ret = -EINVAL; in i40e_vc_rdma_qvmap_msg()
3379 aq_ret); in i40e_vc_rdma_qvmap_msg()
3395 int aq_ret = 0; in i40e_vc_config_rss_key() local
3400 aq_ret = -EINVAL; in i40e_vc_config_rss_key()
3405 aq_ret = i40e_config_rss(vsi, vrk->key, NULL, 0); in i40e_vc_config_rss_key()
3409 aq_ret); in i40e_vc_config_rss_key()
3425 int aq_ret = 0; in i40e_vc_config_rss_lut() local
3431 aq_ret = -EINVAL; in i40e_vc_config_rss_lut()
3437 aq_ret = -EINVAL; in i40e_vc_config_rss_lut()
3442 aq_ret = i40e_config_rss(vsi, NULL, vrl->lut, I40E_VF_HLUT_ARRAY_SIZE); in i40e_vc_config_rss_lut()
3446 aq_ret); in i40e_vc_config_rss_lut()
3460 int aq_ret = 0; in i40e_vc_get_rss_hena() local
3464 aq_ret = -EINVAL; in i40e_vc_get_rss_hena()
3471 aq_ret = -ENOMEM; in i40e_vc_get_rss_hena()
3478 aq_ret = i40e_vc_send_msg_to_vf(vf, VIRTCHNL_OP_GET_RSS_HENA_CAPS, in i40e_vc_get_rss_hena()
3479 aq_ret, (u8 *)vrh, len); in i40e_vc_get_rss_hena()
3481 return aq_ret; in i40e_vc_get_rss_hena()
3497 int aq_ret = 0; in i40e_vc_set_rss_hena() local
3500 aq_ret = -EINVAL; in i40e_vc_set_rss_hena()
3509 return i40e_vc_send_resp_to_vf(vf, VIRTCHNL_OP_SET_RSS_HENA, aq_ret); in i40e_vc_set_rss_hena()
3522 int aq_ret = 0; in i40e_vc_enable_vlan_stripping() local
3525 aq_ret = -EINVAL; in i40e_vc_enable_vlan_stripping()
3535 aq_ret); in i40e_vc_enable_vlan_stripping()
3548 int aq_ret = 0; in i40e_vc_disable_vlan_stripping() local
3551 aq_ret = -EINVAL; in i40e_vc_disable_vlan_stripping()
3561 aq_ret); in i40e_vc_disable_vlan_stripping()
3774 int aq_ret = 0; in i40e_vc_del_cloud_filter() local
3778 aq_ret = -EINVAL; in i40e_vc_del_cloud_filter()
3786 aq_ret = -EINVAL; in i40e_vc_del_cloud_filter()
3794 aq_ret = -EINVAL; in i40e_vc_del_cloud_filter()
3887 aq_ret); in i40e_vc_del_cloud_filter()
3905 int aq_ret = 0; in i40e_vc_add_cloud_filter() local
3909 aq_ret = -EINVAL; in i40e_vc_add_cloud_filter()
3917 aq_ret = -EINVAL; in i40e_vc_add_cloud_filter()
3925 aq_ret = -EINVAL; in i40e_vc_add_cloud_filter()
3931 aq_ret = -ENOMEM; in i40e_vc_add_cloud_filter()
3981 aq_ret = i40e_add_del_cloud_filter_big_buf(vsi, cfilter, true); in i40e_vc_add_cloud_filter()
3983 aq_ret = i40e_add_del_cloud_filter(vsi, cfilter, true); in i40e_vc_add_cloud_filter()
3984 if (aq_ret) { in i40e_vc_add_cloud_filter()
3987 vf->vf_id, ERR_PTR(aq_ret), in i40e_vc_add_cloud_filter()
4001 aq_ret); in i40e_vc_add_cloud_filter()
4016 int aq_ret = 0; in i40e_vc_add_qch_msg() local
4020 aq_ret = -EINVAL; in i40e_vc_add_qch_msg()
4028 aq_ret = -EINVAL; in i40e_vc_add_qch_msg()
4036 aq_ret = -EINVAL; in i40e_vc_add_qch_msg()
4045 aq_ret = -EINVAL; in i40e_vc_add_qch_msg()
4057 aq_ret = -EINVAL; in i40e_vc_add_qch_msg()
4068 aq_ret = -EINVAL; in i40e_vc_add_qch_msg()
4083 aq_ret = -EINVAL; in i40e_vc_add_qch_msg()
4096 aq_ret = -EINVAL; in i40e_vc_add_qch_msg()
4117 aq_ret); in i40e_vc_add_qch_msg()
4128 int aq_ret = 0; in i40e_vc_del_qch_msg() local
4131 aq_ret = -EINVAL; in i40e_vc_del_qch_msg()
4146 aq_ret = -EINVAL; in i40e_vc_del_qch_msg()
4156 aq_ret); in i40e_vc_del_qch_msg()