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()
255 int status; in be_mac_addr_set() local
274 status = be_cmd_pmac_add(adapter, (u8 *)addr->sa_data, in be_mac_addr_set()
276 if (!status) { in be_mac_addr_set()
290 status = be_cmd_get_active_mac(adapter, curr_pmac_id, mac, in be_mac_addr_set()
292 if (status) in be_mac_addr_set()
299 status = -EPERM; in be_mac_addr_set()
308 return status; in be_mac_addr_set()
1214 int status; in be_set_vlan_promisc() local
1219 status = be_cmd_rx_filter(adapter, BE_IF_FLAGS_VLAN_PROMISCUOUS, ON); in be_set_vlan_promisc()
1220 if (!status) { in be_set_vlan_promisc()
1226 return status; in be_set_vlan_promisc()
1232 int status; in be_clear_vlan_promisc() local
1234 status = be_cmd_rx_filter(adapter, BE_IF_FLAGS_VLAN_PROMISCUOUS, OFF); in be_clear_vlan_promisc()
1235 if (!status) { in be_clear_vlan_promisc()
1239 return status; in be_clear_vlan_promisc()
1251 int status = 0; in be_vid_config() local
1264 status = be_cmd_vlan_config(adapter, adapter->if_handle, vids, num, 0); in be_vid_config()
1265 if (status) { in be_vid_config()
1268 if (addl_status(status) == in be_vid_config()
1272 status = be_clear_vlan_promisc(adapter); in be_vid_config()
1274 return status; in be_vid_config()
1280 int status = 0; in be_vlan_add_vid() local
1284 return status; in be_vlan_add_vid()
1287 return status; in be_vlan_add_vid()
1292 status = be_vid_config(adapter); in be_vlan_add_vid()
1293 if (status) { in be_vlan_add_vid()
1298 return status; in be_vlan_add_vid()
1329 int status; in be_set_mc_promisc() local
1334 status = be_cmd_rx_filter(adapter, BE_IF_FLAGS_MCAST_PROMISCUOUS, ON); in be_set_mc_promisc()
1335 if (!status) in be_set_mc_promisc()
1341 int status; in be_set_mc_list() local
1343 status = be_cmd_rx_filter(adapter, BE_IF_FLAGS_MULTICAST, ON); in be_set_mc_list()
1344 if (!status) in be_set_mc_list()
1414 int status; in be_set_vf_mac() local
1432 status = be_cmd_pmac_add(adapter, mac, vf_cfg->if_handle, in be_set_vf_mac()
1435 status = be_cmd_set_mac(adapter, mac, vf_cfg->if_handle, in be_set_vf_mac()
1439 if (status) { in be_set_vf_mac()
1441 mac, vf, status); in be_set_vf_mac()
1442 return be_cmd_status(status); in be_set_vf_mac()
1478 int status; in be_set_vf_tvt() local
1481 status = be_cmd_set_hsw_config(adapter, vlan, vf + 1, vf_if_id, 0); in be_set_vf_tvt()
1482 if (status) in be_set_vf_tvt()
1483 return status; in be_set_vf_tvt()
1487 status = be_cmd_vlan_config(adapter, vf_if_id, vids, 1, vf + 1); in be_set_vf_tvt()
1488 if (!status) in be_set_vf_tvt()
1494 status = be_cmd_set_fn_privileges(adapter, vf_cfg->privileges & in be_set_vf_tvt()
1496 if (!status) in be_set_vf_tvt()
1506 int status; in be_clear_vf_tvt() local
1509 status = be_cmd_set_hsw_config(adapter, BE_RESET_VLAN_TAG_ID, vf + 1, in be_clear_vf_tvt()
1511 if (status) in be_clear_vf_tvt()
1512 return status; in be_clear_vf_tvt()
1516 status = be_cmd_set_fn_privileges(adapter, vf_cfg->privileges | in be_clear_vf_tvt()
1518 if (!status) { in be_clear_vf_tvt()
1533 int status; in be_set_vf_vlan() local
1543 status = be_set_vf_tvt(adapter, vf, vlan); in be_set_vf_vlan()
1545 status = be_clear_vf_tvt(adapter, vf); in be_set_vf_vlan()
1548 if (status) { in be_set_vf_vlan()
1551 status); in be_set_vf_vlan()
1552 return be_cmd_status(status); in be_set_vf_vlan()
1564 int percent_rate, status = 0; in be_set_vf_tx_rate() local
1580 status = be_cmd_link_status_query(adapter, &link_speed, in be_set_vf_tx_rate()
1582 if (status) in be_set_vf_tx_rate()
1587 status = -ENETDOWN; in be_set_vf_tx_rate()
1594 status = -EINVAL; in be_set_vf_tx_rate()
1603 status = -EINVAL; in be_set_vf_tx_rate()
1608 status = be_cmd_config_qos(adapter, max_tx_rate, link_speed, vf + 1); in be_set_vf_tx_rate()
1609 if (status) in be_set_vf_tx_rate()
1618 return be_cmd_status(status); in be_set_vf_tx_rate()
1625 int status; in be_set_vf_link_state() local
1633 status = be_cmd_set_logical_link_config(adapter, link_state, vf+1); in be_set_vf_link_state()
1634 if (status) { in be_set_vf_link_state()
1636 "Link state change on VF %d failed: %#x\n", vf, status); in be_set_vf_link_state()
1637 return be_cmd_status(status); in be_set_vf_link_state()
2148 txcp->status = GET_TX_COMPL_BITS(status, compl); in be_tx_compl_get()
2460 int status, i; in be_tx_qs_create() local
2466 status = be_queue_alloc(adapter, cq, TX_CQ_LEN, in be_tx_qs_create()
2468 if (status) in be_tx_qs_create()
2469 return status; in be_tx_qs_create()
2478 status = be_cmd_cq_create(adapter, cq, &eqo->q, false, 3); in be_tx_qs_create()
2479 if (status) in be_tx_qs_create()
2480 return status; in be_tx_qs_create()
2482 status = be_queue_alloc(adapter, &txo->q, TX_Q_LEN, in be_tx_qs_create()
2484 if (status) in be_tx_qs_create()
2485 return status; in be_tx_qs_create()
2487 status = be_cmd_txq_create(adapter, txo); in be_tx_qs_create()
2488 if (status) in be_tx_qs_create()
2489 return status; in be_tx_qs_create()
2662 static inline void be_update_tx_err(struct be_tx_obj *txo, u8 status) in be_update_tx_err() argument
2664 switch (status) { in be_update_tx_err()
2677 static inline void lancer_update_tx_err(struct be_tx_obj *txo, u8 status) in lancer_update_tx_err() argument
2679 switch (status) { in lancer_update_tx_err()
2709 if (txcp->status) { in be_process_tx()
2711 lancer_update_tx_err(txo, txcp->status); in be_process_tx()
2713 be_update_tx_err(txo, txcp->status); in be_process_tx()
2737 bool status = true; in be_lock_napi() local
2743 status = false; in be_lock_napi()
2748 return status; in be_lock_napi()
2763 bool status = true; in be_lock_busy_poll() local
2768 status = false; in be_lock_busy_poll()
2773 return status; in be_lock_busy_poll()
3033 int status, i, vec; in be_msix_register() local
3038 status = request_irq(vec, be_msix, 0, eqo->desc, eqo); in be_msix_register()
3039 if (status) in be_msix_register()
3050 status); in be_msix_register()
3052 return status; in be_msix_register()
3058 int status; in be_irq_register() local
3061 status = be_msix_register(adapter); in be_irq_register()
3062 if (status == 0) in be_irq_register()
3066 return status; in be_irq_register()
3071 status = request_irq(netdev->irq, be_intx, IRQF_SHARED, netdev->name, in be_irq_register()
3073 if (status) { in be_irq_register()
3075 "INTx request IRQ failed - err %d\n", status); in be_irq_register()
3076 return status; in be_irq_register()
3245 int status, i; in be_open() local
3247 status = be_rx_qs_create(adapter); in be_open()
3248 if (status) in be_open()
3251 status = be_irq_register(adapter); in be_open()
3252 if (status) in be_open()
3270 status = be_cmd_link_status_query(adapter, NULL, &link_status, 0); in be_open()
3271 if (!status) in be_open()
3291 int status = 0; in be_setup_wol() local
3303 status = pci_write_config_dword(adapter->pdev, in be_setup_wol()
3306 if (status) { in be_setup_wol()
3311 return status; in be_setup_wol()
3313 status = be_cmd_enable_magic_wol(adapter, in be_setup_wol()
3319 status = be_cmd_enable_magic_wol(adapter, mac, &cmd); in be_setup_wol()
3325 return status; in be_setup_wol()
3350 int status = 0; in be_vf_eth_addr_config() local
3358 status = be_cmd_pmac_add(adapter, mac, in be_vf_eth_addr_config()
3362 status = be_cmd_set_mac(adapter, mac, vf_cfg->if_handle, in be_vf_eth_addr_config()
3365 if (status) in be_vf_eth_addr_config()
3374 return status; in be_vf_eth_addr_config()
3379 int status, vf; in be_vfs_mac_query() local
3384 status = be_cmd_get_active_mac(adapter, vf_cfg->pmac_id, in be_vfs_mac_query()
3387 if (status) in be_vfs_mac_query()
3388 return status; in be_vfs_mac_query()
3562 int status; in be_vfs_if_create() local
3570 status = be_cmd_get_profile_config(adapter, &res, in be_vfs_if_create()
3573 if (!status) { in be_vfs_if_create()
3582 status = be_if_create(adapter, &vf_cfg->if_handle, in be_vfs_if_create()
3584 if (status) in be_vfs_if_create()
3585 return status; in be_vfs_if_create()
3612 int status, old_vfs, vf; in be_vf_setup() local
3616 status = be_vf_setup_init(adapter); in be_vf_setup()
3617 if (status) in be_vf_setup()
3622 status = be_cmd_get_if_id(adapter, vf_cfg, vf); in be_vf_setup()
3623 if (status) in be_vf_setup()
3627 status = be_vfs_mac_query(adapter); in be_vf_setup()
3628 if (status) in be_vf_setup()
3631 status = be_vfs_if_create(adapter); in be_vf_setup()
3632 if (status) in be_vf_setup()
3635 status = be_vf_eth_addr_config(adapter); in be_vf_setup()
3636 if (status) in be_vf_setup()
3642 status = be_cmd_get_fn_privileges(adapter, &vf_cfg->privileges, in be_vf_setup()
3644 if (!status && !(vf_cfg->privileges & BE_PRIV_FILTMGMT)) { in be_vf_setup()
3645 status = be_cmd_set_fn_privileges(adapter, in be_vf_setup()
3649 if (!status) { in be_vf_setup()
3669 status = pci_enable_sriov(adapter->pdev, adapter->num_vfs); in be_vf_setup()
3670 if (status) { in be_vf_setup()
3682 return status; in be_vf_setup()
3820 int status; in be_alloc_sriov_res() local
3834 status = be_cmd_set_sriov_config(adapter, adapter->pool_res, 0, in be_alloc_sriov_res()
3836 if (status) in be_alloc_sriov_res()
3846 int status; in be_get_resources() local
3858 status = be_cmd_get_func_config(adapter, &res); in be_get_resources()
3859 if (status) in be_get_resources()
3860 return status; in be_get_resources()
3895 int status, level; in be_get_config() local
3898 status = be_cmd_get_cntl_attributes(adapter); in be_get_config()
3899 if (status) in be_get_config()
3900 return status; in be_get_config()
3902 status = be_cmd_query_fw_cfg(adapter); in be_get_config()
3903 if (status) in be_get_config()
3904 return status; in be_get_config()
3917 status = be_cmd_get_active_profile(adapter, &profile_id); in be_get_config()
3918 if (!status) in be_get_config()
3923 status = be_get_resources(adapter); in be_get_config()
3924 if (status) in be_get_config()
3925 return status; in be_get_config()
3938 int status; in be_mac_setup() local
3941 status = be_cmd_get_perm_mac(adapter, mac); in be_mac_setup()
3942 if (status) in be_mac_setup()
3943 return status; in be_mac_setup()
3975 int status; in be_setup_queues() local
3977 status = be_evt_queues_create(adapter); in be_setup_queues()
3978 if (status) in be_setup_queues()
3981 status = be_tx_qs_create(adapter); in be_setup_queues()
3982 if (status) in be_setup_queues()
3985 status = be_rx_cqs_create(adapter); in be_setup_queues()
3986 if (status) in be_setup_queues()
3989 status = be_mcc_queues_create(adapter); in be_setup_queues()
3990 if (status) in be_setup_queues()
3993 status = netif_set_real_num_rx_queues(netdev, adapter->num_rx_qs); in be_setup_queues()
3994 if (status) in be_setup_queues()
3997 status = netif_set_real_num_tx_queues(netdev, adapter->num_tx_qs); in be_setup_queues()
3998 if (status) in be_setup_queues()
4004 return status; in be_setup_queues()
4010 int status; in be_update_queues() local
4026 status = be_msix_enable(adapter); in be_update_queues()
4027 if (status) in be_update_queues()
4028 return status; in be_update_queues()
4031 status = be_setup_queues(adapter); in be_update_queues()
4032 if (status) in be_update_queues()
4033 return status; in be_update_queues()
4038 status = be_open(netdev); in be_update_queues()
4040 return status; in be_update_queues()
4063 int status; in be_func_init() local
4065 status = be_fw_wait_ready(adapter); in be_func_init()
4066 if (status) in be_func_init()
4067 return status; in be_func_init()
4070 status = be_cmd_reset_function(adapter); in be_func_init()
4071 if (status) in be_func_init()
4072 return status; in be_func_init()
4082 status = be_cmd_fw_init(adapter); in be_func_init()
4083 if (status) in be_func_init()
4084 return status; in be_func_init()
4095 int status; in be_setup() local
4097 status = be_func_init(adapter); in be_setup()
4098 if (status) in be_setup()
4099 return status; in be_setup()
4109 status = be_get_config(adapter); in be_setup()
4110 if (status) in be_setup()
4113 status = be_msix_enable(adapter); in be_setup()
4114 if (status) in be_setup()
4117 status = be_if_create(adapter, &adapter->if_handle, in be_setup()
4119 if (status) in be_setup()
4124 status = be_setup_queues(adapter); in be_setup()
4126 if (status) in be_setup()
4131 status = be_mac_setup(adapter); in be_setup()
4132 if (status) in be_setup()
4149 status = be_cmd_set_flow_control(adapter, adapter->tx_fc, in be_setup()
4151 if (status) in be_setup()
4165 status = be_cmd_get_phy_info(adapter); in be_setup()
4166 if (!status && be_pause_supported(adapter)) in be_setup()
4174 return status; in be_setup()
4243 int status; in be_check_flash_crc() local
4246 status = be_cmd_get_flash_crc(adapter, crc, img_optype, img_offset, in be_check_flash_crc()
4248 if (status) in be_check_flash_crc()
4249 return status; in be_check_flash_crc()
4259 return status; in be_check_flash_crc()
4268 int status; in be_flash() local
4289 status = be_cmd_write_flashrom(adapter, flash_cmd, optype, in be_flash()
4292 if (base_status(status) == MCC_STATUS_ILLEGAL_REQUEST && in be_flash()
4295 else if (status) in be_flash()
4296 return status; in be_flash()
4311 int status, i, filehdr_size, num_comp; in be_flash_BEx() local
4388 status = be_check_flash_crc(adapter, fw->data, in be_flash_BEx()
4394 if (status) { in be_flash_BEx()
4410 status = be_flash(adapter, p, flash_cmd, pflashcomp[i].optype, in be_flash_BEx()
4412 if (status) { in be_flash_BEx()
4415 return status; in be_flash_BEx()
4483 int status, i, filehdr_size; in be_flash_skyhawk() local
4515 status = be_check_flash_crc(adapter, fw->data, img_offset, in be_flash_skyhawk()
4519 if (base_status(status) == MCC_STATUS_ILLEGAL_REQUEST || in be_flash_skyhawk()
4520 base_status(status) == MCC_STATUS_ILLEGAL_FIELD) { in be_flash_skyhawk()
4540 } else if (status) { in be_flash_skyhawk()
4554 status = be_flash(adapter, p, flash_cmd, flash_optype, img_size, in be_flash_skyhawk()
4561 if (base_status(status) == MCC_STATUS_ILLEGAL_FIELD && in be_flash_skyhawk()
4571 (base_status(status) == MCC_STATUS_ILLEGAL_FIELD || in be_flash_skyhawk()
4573 base_status(status) == MCC_STATUS_FAILED))) { in be_flash_skyhawk()
4575 } else if (status) { in be_flash_skyhawk()
4597 int status = 0; in lancer_fw_download() local
4624 status = lancer_cmd_write_object(adapter, &flash_cmd, in lancer_fw_download()
4629 if (status) in lancer_fw_download()
4637 if (!status) { in lancer_fw_download()
4639 status = lancer_cmd_write_object(adapter, &flash_cmd, in lancer_fw_download()
4647 if (status) { in lancer_fw_download()
4649 return be_cmd_status(status); in lancer_fw_download()
4656 status = lancer_physdev_ctrl(adapter, in lancer_fw_download()
4658 if (status) { in lancer_fw_download()
4732 int status = 0, i, num_imgs; in be_fw_download() local
4757 status = be_flash_skyhawk(adapter, fw, &flash_cmd, in be_fw_download()
4760 status = be_flash_BEx(adapter, fw, &flash_cmd, in be_fw_download()
4765 if (!status) in be_fw_download()
4768 return status; in be_fw_download()
4774 int status; in be_load_fw() local
4782 status = request_firmware(&fw, fw_file, &adapter->pdev->dev); in be_load_fw()
4783 if (status) in be_load_fw()
4789 status = lancer_fw_download(adapter, fw); in be_load_fw()
4791 status = be_fw_download(adapter, fw); in be_load_fw()
4793 if (!status) in be_load_fw()
4798 return status; in be_load_fw()
4807 int status = 0; in be_ndo_bridge_setlink() local
4828 status = be_cmd_set_hsw_config(adapter, 0, 0, in be_ndo_bridge_setlink()
4833 if (status) in be_ndo_bridge_setlink()
4839 return status; in be_ndo_bridge_setlink()
4845 return status; in be_ndo_bridge_setlink()
4853 int status = 0; in be_ndo_bridge_getlink() local
4863 status = be_cmd_get_hsw_config(adapter, NULL, 0, in be_ndo_bridge_getlink()
4865 if (status) in be_ndo_bridge_getlink()
4895 int status; in be_add_vxlan_port() local
4911 status = be_cmd_manage_iface(adapter, adapter->if_handle, in be_add_vxlan_port()
4913 if (status) { in be_add_vxlan_port()
4918 status = be_cmd_set_vxlan_port(adapter, port); in be_add_vxlan_port()
4919 if (status) { in be_add_vxlan_port()
5075 int status; in be_resume() local
5077 status = be_setup(adapter); in be_resume()
5078 if (status) in be_resume()
5079 return status; in be_resume()
5082 status = be_open(netdev); in be_resume()
5083 if (status) in be_resume()
5084 return status; in be_resume()
5095 int status; in be_err_recover() local
5097 status = be_resume(adapter); in be_err_recover()
5098 if (status) in be_err_recover()
5109 return status; in be_err_recover()
5117 int status = 0; in be_err_detection_task() local
5126 status = be_err_recover(adapter); in be_err_detection_task()
5130 if (!status || be_virtfn(adapter)) in be_err_detection_task()
5136 int status; in be_log_sfp_info() local
5138 status = be_cmd_query_sfp_info(adapter); in be_log_sfp_info()
5139 if (!status) { in be_log_sfp_info()
5291 int status = 0; in be_drv_init() local
5308 status = -ENOMEM; in be_drv_init()
5323 status = -ENOMEM; in be_drv_init()
5351 return status; in be_drv_init()
5443 int status = 0; in be_probe() local
5447 status = pci_enable_device(pdev); in be_probe()
5448 if (status) in be_probe()
5451 status = pci_request_regions(pdev, DRV_NAME); in be_probe()
5452 if (status) in be_probe()
5458 status = -ENOMEM; in be_probe()
5467 status = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); in be_probe()
5468 if (!status) { in be_probe()
5471 status = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); in be_probe()
5472 if (status) { in be_probe()
5478 status = pci_enable_pcie_error_reporting(pdev); in be_probe()
5479 if (!status) in be_probe()
5482 status = be_map_pci_bars(adapter); in be_probe()
5483 if (status) in be_probe()
5486 status = be_drv_init(adapter); in be_probe()
5487 if (status) in be_probe()
5490 status = be_setup(adapter); in be_probe()
5491 if (status) in be_probe()
5495 status = register_netdev(netdev); in be_probe()
5496 if (status != 0) in be_probe()
5522 return status; in be_probe()
5546 int status = 0; in be_pci_resume() local
5548 status = pci_enable_device(pdev); in be_pci_resume()
5549 if (status) in be_pci_resume()
5550 return status; in be_pci_resume()
5555 status = be_resume(adapter); in be_pci_resume()
5556 if (status) in be_pci_resume()
5557 return status; in be_pci_resume()
5623 int status; in be_eeh_reset() local
5627 status = pci_enable_device(pdev); in be_eeh_reset()
5628 if (status) in be_eeh_reset()
5638 status = be_fw_wait_ready(adapter); in be_eeh_reset()
5639 if (status) in be_eeh_reset()
5649 int status = 0; in be_eeh_resume() local
5656 status = be_resume(adapter); in be_eeh_resume()
5657 if (status) in be_eeh_resume()
5670 int status; in be_pci_sriov_configure() local
5693 status = be_cmd_set_sriov_config(adapter, adapter->pool_res, in be_pci_sriov_configure()
5695 if (status) in be_pci_sriov_configure()
5700 status = be_get_resources(adapter); in be_pci_sriov_configure()
5701 if (status) in be_pci_sriov_configure()
5702 return be_cmd_status(status); in be_pci_sriov_configure()
5706 status = be_update_queues(adapter); in be_pci_sriov_configure()
5708 if (status) in be_pci_sriov_configure()
5709 return be_cmd_status(status); in be_pci_sriov_configure()
5712 status = be_vf_setup(adapter); in be_pci_sriov_configure()
5714 if (!status) in be_pci_sriov_configure()