Home
last modified time | relevance | path

Searched refs:num_hwfns (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/qlogic/qed/
Dqed_main.c433 dev_info->num_hwfns = cdev->num_hwfns; in qed_fill_dev_info()
602 (rc % cdev->num_hwfns)) { in qed_enable_msix()
609 cnt = (rc / cdev->num_hwfns) * cdev->num_hwfns; in qed_enable_msix()
662 if (cdev->num_hwfns == 1) { in qed_set_int_mode()
699 struct qed_hwfn *hwfn = &cdev->hwfns[index % cdev->num_hwfns]; in qed_simd_handler_config()
700 int relative_idx = index / cdev->num_hwfns; in qed_simd_handler_config()
708 struct qed_hwfn *hwfn = &cdev->hwfns[index % cdev->num_hwfns]; in qed_simd_handler_clean()
709 int relative_idx = index / cdev->num_hwfns; in qed_simd_handler_clean()
729 for (i = 0; i < cdev->num_hwfns; i++) { in qed_single_int()
862 for (i = 0; i < cdev->num_hwfns; i++) { in qed_nic_stop()
[all …]
Dqed_l2.c2225 info->num_queues = cdev->num_hwfns; in qed_fill_eth_dev_info()
2384 if (cdev->num_hwfns == 1) { in qed_update_vport_rss()
2405 t_rss->rss_ind_table[i / cdev->num_hwfns] = cid; in qed_update_vport_rss()
2410 for (i = 1; i < QED_RSS_IND_TABLE_SIZE / cdev->num_hwfns; i++) { in qed_update_vport_rss()
2415 if (i == QED_RSS_IND_TABLE_SIZE / cdev->num_hwfns) { in qed_update_vport_rss()
2436 rss = vzalloc(array_size(sizeof(*rss), cdev->num_hwfns)); in qed_update_vport()
2497 hwfn_index = rss_num % cdev->num_hwfns; in qed_start_rxq()
2500 p_params->queue_id = p_params->queue_id / cdev->num_hwfns; in qed_start_rxq()
2527 hwfn_index = rss_id % cdev->num_hwfns; in qed_stop_rxq()
2549 hwfn_index = rss_num % cdev->num_hwfns; in qed_start_txq()
[all …]
Dqed.h102 #define for_each_hwfn(cdev, i) for (i = 0; i < cdev->num_hwfns; i++)
780 u8 num_hwfns; member
925 #define QED_IS_CMT(dev) ((dev)->num_hwfns > 1)
Dqed_dev.c113 if (cdev->num_hwfns > 1) in qed_db_rec_find_hwfn()
1277 if (p_hwfn->cdev->num_hwfns > 1) { in qed_hw_bar_size()
2485 if (p_hwfn->cdev->num_hwfns > 1) in qed_calc_hw_mode()
2707 if (p_hwfn->cdev->num_hwfns > 1) in qed_hw_init_pf_doorbell_bar()
2993 if ((p_params->int_mode == QED_INT_MODE_MSI) && (cdev->num_hwfns > 1)) { in qed_hw_init()
4334 if (QED_PATH_ID(p_hwfn) && cdev->num_hwfns == 1) { in qed_get_num_funcs()
4381 if (cdev->num_hwfns > 1) { in qed_hw_info_port_num()
4533 cdev->num_hwfns = 2; in qed_get_dev_info()
4535 cdev->num_hwfns = 1; in qed_get_dev_info()
4672 if (cdev->num_hwfns > 1) { in qed_hw_prepare()
[all …]
Dqed_vf.c408 p_hwfn->cdev->num_hwfns = 2; in qed_vf_pf_acquire()
451 p_hwfn->cdev->num_hwfns = 1; in qed_vf_hw_prepare()
538 (p_hwfn->cdev->num_hwfns > 1)) { in qed_vf_hw_prepare()
Dqed_rdma.c898 if (cdev->num_hwfns > 1) in qed_rdma_get_sb_start()
902 cdev->num_hwfns; in qed_rdma_get_sb_start()
Dqed_sriov.c1422 if (p_hwfn->cdev->num_hwfns > 1) in qed_iov_vf_mbx_acquire_resc_cids()
1586 if ((p_hwfn->cdev->num_hwfns > 1) && in qed_iov_vf_mbx_acquire()
1610 if (p_hwfn->cdev->num_hwfns > 1) in qed_iov_vf_mbx_acquire()
4735 link.speed = (hwfn->cdev->num_hwfns > 1) ? in qed_inform_vf_link_state()
Dqed_debug.c7818 for (cur_engine = 0; cur_engine < cdev->num_hwfns; cur_engine++) { in qed_dbg_all_data()
8034 for (cur_engine = 0; cur_engine < cdev->num_hwfns; cur_engine++) { in qed_dbg_all_data_size()
Dqed_mcp.c2634 num *= p_hwfn->cdev->num_hwfns; in qed_mcp_config_vf_msix_bb()
/Linux-v5.10/drivers/infiniband/hw/qedr/
Dqedr.h159 u8 num_hwfns; member
160 #define QEDR_IS_CMT(dev) ((dev)->num_hwfns > 1)
Dmain.c531 idx = i * dev->num_hwfns + dev->affin_hwfn_idx; in qedr_sync_free_irqs()
554 idx = i * dev->num_hwfns + dev->affin_hwfn_idx; in qedr_req_msix_irqs()
902 dev->num_hwfns = dev_info.common.num_hwfns; in qedr_add()
/Linux-v5.10/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c483 if (edev->dev_info.common.num_hwfns > 1) in qede_get_priv_flags()
1096 if ((count % edev->dev_info.common.num_hwfns) || in qede_set_channels()
1097 (channels->tx_count % edev->dev_info.common.num_hwfns) || in qede_set_channels()
1098 (channels->rx_count % edev->dev_info.common.num_hwfns)) { in qede_set_channels()
1101 edev->dev_info.common.num_hwfns); in qede_set_channels()
1381 if (edev->dev_info.common.num_hwfns > 1) { in qede_set_rxfh()
Dqede_main.c1360 edev->dev_info.common.num_hwfns; in qede_set_num_queues()
/Linux-v5.10/drivers/scsi/qedi/
Dqedi_main.c1385 idx = i * qedi->dev_info.common.num_hwfns + in qedi_sync_free_irqs()
1413 idx = i * qedi->dev_info.common.num_hwfns + in qedi_request_msix_irq()
1418 qedi->dev_info.common.num_hwfns, in qedi_request_msix_irq()
2573 qedi->dev_info.common.num_hwfns, in __qedi_probe()
/Linux-v5.10/include/linux/qed/
Dqed_if.h605 u8 num_hwfns; member
/Linux-v5.10/drivers/scsi/qedf/
Dqedf_main.c2351 vector_idx = i * qedf->dev_info.common.num_hwfns + in qedf_sync_free_irqs()
2378 vector_idx = i * qedf->dev_info.common.num_hwfns + in qedf_request_msix_irq()
3386 qedf->dev_info.common.num_hwfns, in __qedf_probe()