Lines Matching refs:status

176 	int status = 0;  in be_intr_set()  local
185 status = be_cmd_intr_set(adapter, enable); in be_intr_set()
186 if (status) in be_intr_set()
263 int status; in be_mac_addr_set() local
286 status = be_cmd_pmac_add(adapter, (u8 *)addr->sa_data, in be_mac_addr_set()
288 if (!status) { in be_mac_addr_set()
302 status = be_cmd_get_active_mac(adapter, curr_pmac_id, mac, in be_mac_addr_set()
304 if (status) in be_mac_addr_set()
311 status = -EPERM; in be_mac_addr_set()
320 return status; in be_mac_addr_set()
1370 int status; in be_set_vlan_promisc() local
1375 status = be_cmd_rx_filter(adapter, BE_IF_FLAGS_VLAN_PROMISCUOUS, ON); in be_set_vlan_promisc()
1376 if (!status) { in be_set_vlan_promisc()
1382 return status; in be_set_vlan_promisc()
1388 int status; in be_clear_vlan_promisc() local
1390 status = be_cmd_rx_filter(adapter, BE_IF_FLAGS_VLAN_PROMISCUOUS, OFF); in be_clear_vlan_promisc()
1391 if (!status) { in be_clear_vlan_promisc()
1395 return status; in be_clear_vlan_promisc()
1407 int status = 0; in be_vid_config() local
1420 status = be_cmd_vlan_config(adapter, adapter->if_handle, vids, num, 0); in be_vid_config()
1421 if (status) { in be_vid_config()
1424 if (addl_status(status) == MCC_ADDL_STATUS_INSUFFICIENT_VLANS || in be_vid_config()
1425 addl_status(status) == in be_vid_config()
1429 status = be_clear_vlan_promisc(adapter); in be_vid_config()
1431 return status; in be_vid_config()
1437 int status = 0; in be_vlan_add_vid() local
1441 return status; in be_vlan_add_vid()
1444 return status; in be_vlan_add_vid()
1449 status = be_vid_config(adapter); in be_vlan_add_vid()
1450 if (status) { in be_vlan_add_vid()
1455 return status; in be_vlan_add_vid()
1486 int status; in be_set_mc_promisc() local
1491 status = be_cmd_rx_filter(adapter, BE_IF_FLAGS_MCAST_PROMISCUOUS, ON); in be_set_mc_promisc()
1492 if (!status) in be_set_mc_promisc()
1498 int status; in be_set_mc_list() local
1500 status = be_cmd_rx_filter(adapter, BE_IF_FLAGS_MULTICAST, ON); in be_set_mc_list()
1501 if (!status) in be_set_mc_list()
1571 int status; in be_set_vf_mac() local
1589 status = be_cmd_pmac_add(adapter, mac, vf_cfg->if_handle, in be_set_vf_mac()
1592 status = be_cmd_set_mac(adapter, mac, vf_cfg->if_handle, in be_set_vf_mac()
1596 if (status) { in be_set_vf_mac()
1598 mac, vf, status); in be_set_vf_mac()
1599 return be_cmd_status(status); in be_set_vf_mac()
1636 int status; in be_set_vf_tvt() local
1639 status = be_cmd_set_hsw_config(adapter, vlan, vf + 1, vf_if_id, 0, 0); in be_set_vf_tvt()
1640 if (status) in be_set_vf_tvt()
1641 return status; in be_set_vf_tvt()
1645 status = be_cmd_vlan_config(adapter, vf_if_id, vids, 1, vf + 1); in be_set_vf_tvt()
1646 if (!status) in be_set_vf_tvt()
1652 status = be_cmd_set_fn_privileges(adapter, vf_cfg->privileges & in be_set_vf_tvt()
1654 if (!status) in be_set_vf_tvt()
1664 int status; in be_clear_vf_tvt() local
1667 status = be_cmd_set_hsw_config(adapter, BE_RESET_VLAN_TAG_ID, vf + 1, in be_clear_vf_tvt()
1669 if (status) in be_clear_vf_tvt()
1670 return status; in be_clear_vf_tvt()
1674 status = be_cmd_set_fn_privileges(adapter, vf_cfg->privileges | in be_clear_vf_tvt()
1676 if (!status) { in be_clear_vf_tvt()
1691 int status; in be_set_vf_vlan() local
1701 status = be_set_vf_tvt(adapter, vf, vlan); in be_set_vf_vlan()
1703 status = be_clear_vf_tvt(adapter, vf); in be_set_vf_vlan()
1706 if (status) { in be_set_vf_vlan()
1709 status); in be_set_vf_vlan()
1710 return be_cmd_status(status); in be_set_vf_vlan()
1722 int percent_rate, status = 0; in be_set_vf_tx_rate() local
1738 status = be_cmd_link_status_query(adapter, &link_speed, in be_set_vf_tx_rate()
1740 if (status) in be_set_vf_tx_rate()
1745 status = -ENETDOWN; in be_set_vf_tx_rate()
1752 status = -EINVAL; in be_set_vf_tx_rate()
1761 status = -EINVAL; in be_set_vf_tx_rate()
1766 status = be_cmd_config_qos(adapter, max_tx_rate, link_speed, vf + 1); in be_set_vf_tx_rate()
1767 if (status) in be_set_vf_tx_rate()
1776 return be_cmd_status(status); in be_set_vf_tx_rate()
1783 int status; in be_set_vf_link_state() local
1791 status = be_cmd_set_logical_link_config(adapter, link_state, vf+1); in be_set_vf_link_state()
1792 if (status) { in be_set_vf_link_state()
1794 "Link state change on VF %d failed: %#x\n", vf, status); in be_set_vf_link_state()
1795 return be_cmd_status(status); in be_set_vf_link_state()
1808 int status; in be_set_vf_spoofchk() local
1824 status = be_cmd_set_hsw_config(adapter, 0, vf + 1, vf_cfg->if_handle, in be_set_vf_spoofchk()
1826 if (status) { in be_set_vf_spoofchk()
1828 "Spoofchk change on VF %d failed: %#x\n", vf, status); in be_set_vf_spoofchk()
1829 return be_cmd_status(status); in be_set_vf_spoofchk()
2390 txcp->status = GET_TX_COMPL_BITS(status, compl); in be_tx_compl_get()
2711 int status, i; in be_tx_qs_create() local
2717 status = be_queue_alloc(adapter, cq, TX_CQ_LEN, in be_tx_qs_create()
2719 if (status) in be_tx_qs_create()
2720 return status; in be_tx_qs_create()
2729 status = be_cmd_cq_create(adapter, cq, &eqo->q, false, 3); in be_tx_qs_create()
2730 if (status) in be_tx_qs_create()
2731 return status; in be_tx_qs_create()
2733 status = be_queue_alloc(adapter, &txo->q, TX_Q_LEN, in be_tx_qs_create()
2735 if (status) in be_tx_qs_create()
2736 return status; in be_tx_qs_create()
2738 status = be_cmd_txq_create(adapter, txo); in be_tx_qs_create()
2739 if (status) in be_tx_qs_create()
2740 return status; in be_tx_qs_create()
2913 static inline void be_update_tx_err(struct be_tx_obj *txo, u8 status) in be_update_tx_err() argument
2915 switch (status) { in be_update_tx_err()
2928 static inline void lancer_update_tx_err(struct be_tx_obj *txo, u8 status) in lancer_update_tx_err() argument
2930 switch (status) { in lancer_update_tx_err()
2960 if (txcp->status) { in be_process_tx()
2962 lancer_update_tx_err(txo, txcp->status); in be_process_tx()
2964 be_update_tx_err(txo, txcp->status); in be_process_tx()
2988 bool status = true; in be_lock_napi() local
2994 status = false; in be_lock_napi()
2999 return status; in be_lock_napi()
3014 bool status = true; in be_lock_busy_poll() local
3019 status = false; in be_lock_busy_poll()
3024 return status; in be_lock_busy_poll()
3288 int status, i, vec; in be_msix_register() local
3293 status = request_irq(vec, be_msix, 0, eqo->desc, eqo); in be_msix_register()
3294 if (status) in be_msix_register()
3307 status); in be_msix_register()
3309 return status; in be_msix_register()
3315 int status; in be_irq_register() local
3318 status = be_msix_register(adapter); in be_irq_register()
3319 if (status == 0) in be_irq_register()
3323 return status; in be_irq_register()
3328 status = request_irq(netdev->irq, be_intx, IRQF_SHARED, netdev->name, in be_irq_register()
3330 if (status) { in be_irq_register()
3332 "INTx request IRQ failed - err %d\n", status); in be_irq_register()
3333 return status; in be_irq_register()
3540 int status; in be_enable_if_filters() local
3542 status = be_cmd_rx_filter(adapter, BE_IF_EN_FLAGS, ON); in be_enable_if_filters()
3543 if (status) in be_enable_if_filters()
3544 return status; in be_enable_if_filters()
3548 status = be_cmd_pmac_add(adapter, adapter->netdev->dev_addr, in be_enable_if_filters()
3551 if (status) in be_enable_if_filters()
3552 return status; in be_enable_if_filters()
3570 int status, i; in be_open() local
3572 status = be_rx_qs_create(adapter); in be_open()
3573 if (status) in be_open()
3576 status = be_enable_if_filters(adapter); in be_open()
3577 if (status) in be_open()
3580 status = be_irq_register(adapter); in be_open()
3581 if (status) in be_open()
3599 status = be_cmd_link_status_query(adapter, NULL, &link_status, 0); in be_open()
3600 if (!status) in be_open()
3620 int status; in be_setup_wol() local
3630 status = pci_write_config_dword(adapter->pdev, in be_setup_wol()
3633 if (status) { in be_setup_wol()
3641 status = be_cmd_enable_magic_wol(adapter, mac, &cmd); in be_setup_wol()
3646 return status; in be_setup_wol()
3671 int status = 0; in be_vf_eth_addr_config() local
3679 status = be_cmd_pmac_add(adapter, mac, in be_vf_eth_addr_config()
3683 status = be_cmd_set_mac(adapter, mac, vf_cfg->if_handle, in be_vf_eth_addr_config()
3686 if (status) in be_vf_eth_addr_config()
3695 return status; in be_vf_eth_addr_config()
3700 int status, vf; in be_vfs_mac_query() local
3705 status = be_cmd_get_active_mac(adapter, vf_cfg->pmac_id, in be_vfs_mac_query()
3708 if (status) in be_vfs_mac_query()
3709 return status; in be_vfs_mac_query()
3859 int status; in be_vfs_if_create() local
3867 status = be_cmd_get_profile_config(adapter, &res, in be_vfs_if_create()
3870 if (!status) { in be_vfs_if_create()
3883 status = be_cmd_if_create(adapter, cap_flags, en_flags, in be_vfs_if_create()
3885 if (status) in be_vfs_if_create()
3886 return status; in be_vfs_if_create()
3913 int status, old_vfs, vf; in be_vf_setup() local
3918 status = be_vf_setup_init(adapter); in be_vf_setup()
3919 if (status) in be_vf_setup()
3924 status = be_cmd_get_if_id(adapter, vf_cfg, vf); in be_vf_setup()
3925 if (status) in be_vf_setup()
3929 status = be_vfs_mac_query(adapter); in be_vf_setup()
3930 if (status) in be_vf_setup()
3933 status = be_vfs_if_create(adapter); in be_vf_setup()
3934 if (status) in be_vf_setup()
3937 status = be_vf_eth_addr_config(adapter); in be_vf_setup()
3938 if (status) in be_vf_setup()
3944 status = be_cmd_get_fn_privileges(adapter, &vf_cfg->privileges, in be_vf_setup()
3946 if (!status && !(vf_cfg->privileges & BE_PRIV_FILTMGMT)) { in be_vf_setup()
3947 status = be_cmd_set_fn_privileges(adapter, in be_vf_setup()
3951 if (!status) { in be_vf_setup()
3962 status = be_cmd_get_hsw_config(adapter, NULL, vf + 1, in be_vf_setup()
3965 if (!status) in be_vf_setup()
3977 status = pci_enable_sriov(adapter->pdev, adapter->num_vfs); in be_vf_setup()
3978 if (status) { in be_vf_setup()
3990 return status; in be_vf_setup()
4129 int status; in be_alloc_sriov_res() local
4143 status = be_cmd_set_sriov_config(adapter, adapter->pool_res, 0, in be_alloc_sriov_res()
4145 if (status) in be_alloc_sriov_res()
4155 int status; in be_get_resources() local
4167 status = be_cmd_get_func_config(adapter, &res); in be_get_resources()
4168 if (status) in be_get_resources()
4169 return status; in be_get_resources()
4204 int status, level; in be_get_config() local
4207 status = be_cmd_query_fw_cfg(adapter); in be_get_config()
4208 if (status) in be_get_config()
4209 return status; in be_get_config()
4222 status = be_cmd_get_active_profile(adapter, &profile_id); in be_get_config()
4223 if (!status) in be_get_config()
4228 status = be_get_resources(adapter); in be_get_config()
4229 if (status) in be_get_config()
4230 return status; in be_get_config()
4243 int status; in be_mac_setup() local
4246 status = be_cmd_get_perm_mac(adapter, mac); in be_mac_setup()
4247 if (status) in be_mac_setup()
4248 return status; in be_mac_setup()
4273 int status; in be_setup_queues() local
4275 status = be_evt_queues_create(adapter); in be_setup_queues()
4276 if (status) in be_setup_queues()
4279 status = be_tx_qs_create(adapter); in be_setup_queues()
4280 if (status) in be_setup_queues()
4283 status = be_rx_cqs_create(adapter); in be_setup_queues()
4284 if (status) in be_setup_queues()
4287 status = be_mcc_queues_create(adapter); in be_setup_queues()
4288 if (status) in be_setup_queues()
4291 status = netif_set_real_num_rx_queues(netdev, adapter->num_rx_qs); in be_setup_queues()
4292 if (status) in be_setup_queues()
4295 status = netif_set_real_num_tx_queues(netdev, adapter->num_tx_qs); in be_setup_queues()
4296 if (status) in be_setup_queues()
4302 return status; in be_setup_queues()
4308 int status; in be_update_queues() local
4324 status = be_msix_enable(adapter); in be_update_queues()
4325 if (status) in be_update_queues()
4326 return status; in be_update_queues()
4329 status = be_setup_queues(adapter); in be_update_queues()
4330 if (status) in be_update_queues()
4331 return status; in be_update_queues()
4336 status = be_open(netdev); in be_update_queues()
4338 return status; in be_update_queues()
4361 int status; in be_func_init() local
4363 status = be_fw_wait_ready(adapter); in be_func_init()
4364 if (status) in be_func_init()
4365 return status; in be_func_init()
4368 status = be_cmd_reset_function(adapter); in be_func_init()
4369 if (status) in be_func_init()
4370 return status; in be_func_init()
4380 status = be_cmd_fw_init(adapter); in be_func_init()
4381 if (status) in be_func_init()
4382 return status; in be_func_init()
4394 int status; in be_setup() local
4396 status = be_func_init(adapter); in be_setup()
4397 if (status) in be_setup()
4398 return status; in be_setup()
4406 status = be_cmd_get_cntl_attributes(adapter); in be_setup()
4407 if (status) in be_setup()
4408 return status; in be_setup()
4413 status = be_get_config(adapter); in be_setup()
4414 if (status) in be_setup()
4417 status = be_msix_enable(adapter); in be_setup()
4418 if (status) in be_setup()
4424 status = be_cmd_if_create(adapter, be_if_cap_flags(adapter), en_flags, in be_setup()
4426 if (status) in be_setup()
4431 status = be_setup_queues(adapter); in be_setup()
4433 if (status) in be_setup()
4438 status = be_mac_setup(adapter); in be_setup()
4439 if (status) in be_setup()
4451 status = be_cmd_set_flow_control(adapter, adapter->tx_fc, in be_setup()
4453 if (status) in be_setup()
4467 status = be_cmd_get_phy_info(adapter); in be_setup()
4468 if (!status && be_pause_supported(adapter)) in be_setup()
4476 return status; in be_setup()
4545 int status; in be_check_flash_crc() local
4548 status = be_cmd_get_flash_crc(adapter, crc, img_optype, img_offset, in be_check_flash_crc()
4550 if (status) in be_check_flash_crc()
4551 return status; in be_check_flash_crc()
4561 return status; in be_check_flash_crc()
4570 int status; in be_flash() local
4591 status = be_cmd_write_flashrom(adapter, flash_cmd, optype, in be_flash()
4594 if (base_status(status) == MCC_STATUS_ILLEGAL_REQUEST && in be_flash()
4597 else if (status) in be_flash()
4598 return status; in be_flash()
4613 int status, i, filehdr_size, num_comp; in be_flash_BEx() local
4690 status = be_check_flash_crc(adapter, fw->data, in be_flash_BEx()
4696 if (status) { in be_flash_BEx()
4712 status = be_flash(adapter, p, flash_cmd, pflashcomp[i].optype, in be_flash_BEx()
4714 if (status) { in be_flash_BEx()
4717 return status; in be_flash_BEx()
4785 int status, i, filehdr_size; in be_flash_skyhawk() local
4817 status = be_check_flash_crc(adapter, fw->data, img_offset, in be_flash_skyhawk()
4821 if (base_status(status) == MCC_STATUS_ILLEGAL_REQUEST || in be_flash_skyhawk()
4822 base_status(status) == MCC_STATUS_ILLEGAL_FIELD) { in be_flash_skyhawk()
4842 } else if (status) { in be_flash_skyhawk()
4856 status = be_flash(adapter, p, flash_cmd, flash_optype, img_size, in be_flash_skyhawk()
4863 if (base_status(status) == MCC_STATUS_ILLEGAL_FIELD && in be_flash_skyhawk()
4873 (base_status(status) == MCC_STATUS_ILLEGAL_FIELD || in be_flash_skyhawk()
4875 base_status(status) == MCC_STATUS_FAILED))) { in be_flash_skyhawk()
4877 } else if (status) { in be_flash_skyhawk()
4899 int status = 0; in lancer_fw_download() local
4926 status = lancer_cmd_write_object(adapter, &flash_cmd, in lancer_fw_download()
4931 if (status) in lancer_fw_download()
4939 if (!status) { in lancer_fw_download()
4941 status = lancer_cmd_write_object(adapter, &flash_cmd, in lancer_fw_download()
4949 if (status) { in lancer_fw_download()
4951 return be_cmd_status(status); in lancer_fw_download()
4958 status = lancer_physdev_ctrl(adapter, in lancer_fw_download()
4960 if (status) { in lancer_fw_download()
5018 int status = 0, i, num_imgs; in be_fw_download() local
5043 status = be_flash_skyhawk(adapter, fw, &flash_cmd, in be_fw_download()
5046 status = be_flash_BEx(adapter, fw, &flash_cmd, in be_fw_download()
5051 if (!status) in be_fw_download()
5054 return status; in be_fw_download()
5060 int status; in be_load_fw() local
5068 status = request_firmware(&fw, fw_file, &adapter->pdev->dev); in be_load_fw()
5069 if (status) in be_load_fw()
5075 status = lancer_fw_download(adapter, fw); in be_load_fw()
5077 status = be_fw_download(adapter, fw); in be_load_fw()
5079 if (!status) in be_load_fw()
5084 return status; in be_load_fw()
5093 int status = 0; in be_ndo_bridge_setlink() local
5114 status = be_cmd_set_hsw_config(adapter, 0, 0, in be_ndo_bridge_setlink()
5119 if (status) in be_ndo_bridge_setlink()
5125 return status; in be_ndo_bridge_setlink()
5131 return status; in be_ndo_bridge_setlink()
5139 int status = 0; in be_ndo_bridge_getlink() local
5146 status = be_cmd_get_hsw_config(adapter, NULL, 0, in be_ndo_bridge_getlink()
5149 if (status) in be_ndo_bridge_getlink()
5182 int status; in be_add_vxlan_port() local
5203 status = be_cmd_manage_iface(adapter, adapter->if_handle, in be_add_vxlan_port()
5205 if (status) { in be_add_vxlan_port()
5210 status = be_cmd_set_vxlan_port(adapter, port); in be_add_vxlan_port()
5211 if (status) { in be_add_vxlan_port()
5395 int status; in be_resume() local
5397 status = be_setup(adapter); in be_resume()
5398 if (status) in be_resume()
5399 return status; in be_resume()
5402 status = be_open(netdev); in be_resume()
5403 if (status) in be_resume()
5404 return status; in be_resume()
5415 int status; in be_err_recover() local
5417 status = be_resume(adapter); in be_err_recover()
5418 if (status) in be_err_recover()
5429 return status; in be_err_recover()
5437 int status = 0; in be_err_detection_task() local
5446 status = be_err_recover(adapter); in be_err_detection_task()
5450 if (!status || be_virtfn(adapter)) in be_err_detection_task()
5456 int status; in be_log_sfp_info() local
5458 status = be_cmd_query_sfp_info(adapter); in be_log_sfp_info()
5459 if (!status) { in be_log_sfp_info()
5613 int status = 0; in be_drv_init() local
5630 status = -ENOMEM; in be_drv_init()
5645 status = -ENOMEM; in be_drv_init()
5673 return status; in be_drv_init()
5789 int status = 0; in be_probe() local
5793 status = pci_enable_device(pdev); in be_probe()
5794 if (status) in be_probe()
5797 status = pci_request_regions(pdev, DRV_NAME); in be_probe()
5798 if (status) in be_probe()
5804 status = -ENOMEM; in be_probe()
5813 status = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); in be_probe()
5814 if (!status) { in be_probe()
5817 status = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); in be_probe()
5818 if (status) { in be_probe()
5824 status = pci_enable_pcie_error_reporting(pdev); in be_probe()
5825 if (!status) in be_probe()
5828 status = be_map_pci_bars(adapter); in be_probe()
5829 if (status) in be_probe()
5832 status = be_drv_init(adapter); in be_probe()
5833 if (status) in be_probe()
5836 status = be_setup(adapter); in be_probe()
5837 if (status) in be_probe()
5841 status = register_netdev(netdev); in be_probe()
5842 if (status != 0) in be_probe()
5878 return status; in be_probe()
5902 int status = 0; in be_pci_resume() local
5904 status = pci_enable_device(pdev); in be_pci_resume()
5905 if (status) in be_pci_resume()
5906 return status; in be_pci_resume()
5910 status = be_resume(adapter); in be_pci_resume()
5911 if (status) in be_pci_resume()
5912 return status; in be_pci_resume()
5978 int status; in be_eeh_reset() local
5982 status = pci_enable_device(pdev); in be_eeh_reset()
5983 if (status) in be_eeh_reset()
5992 status = be_fw_wait_ready(adapter); in be_eeh_reset()
5993 if (status) in be_eeh_reset()
6003 int status = 0; in be_eeh_resume() local
6010 status = be_resume(adapter); in be_eeh_resume()
6011 if (status) in be_eeh_resume()
6024 int status; in be_pci_sriov_configure() local
6047 status = be_cmd_set_sriov_config(adapter, adapter->pool_res, in be_pci_sriov_configure()
6049 if (status) in be_pci_sriov_configure()
6054 status = be_get_resources(adapter); in be_pci_sriov_configure()
6055 if (status) in be_pci_sriov_configure()
6056 return be_cmd_status(status); in be_pci_sriov_configure()
6060 status = be_update_queues(adapter); in be_pci_sriov_configure()
6062 if (status) in be_pci_sriov_configure()
6063 return be_cmd_status(status); in be_pci_sriov_configure()
6066 status = be_vf_setup(adapter); in be_pci_sriov_configure()
6068 if (!status) in be_pci_sriov_configure()