Home
last modified time | relevance | path

Searched refs:sb_id (Results 1 – 25 of 26) sorted by relevance

12

/drivers/net/ethernet/qlogic/qed/
Dqed_int.h133 u16 sb_id);
160 u16 sb_id);
246 u16 qed_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id);
420 u8 timer_res, u16 sb_id, bool tx);
Dqed_int.c1457 u16 qed_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id) in qed_get_igu_sb_id() argument
1462 if (sb_id == QED_SP_SB_ID) in qed_get_igu_sb_id()
1465 igu_sb_id = qed_get_pf_igu_sb_id(p_hwfn, sb_id + 1); in qed_get_igu_sb_id()
1467 igu_sb_id = qed_vf_get_igu_sb_id(p_hwfn, sb_id); in qed_get_igu_sb_id()
1469 if (sb_id == QED_SP_SB_ID) in qed_get_igu_sb_id()
1474 "SB [%04x] <--> IGU SB [%04x]\n", sb_id, igu_sb_id); in qed_get_igu_sb_id()
1482 void *sb_virt_addr, dma_addr_t sb_phy_addr, u16 sb_id) in qed_int_sb_init() argument
1487 sb_info->igu_sb_id = qed_get_igu_sb_id(p_hwfn, sb_id); in qed_int_sb_init()
1489 if (sb_id != QED_SP_SB_ID) { in qed_int_sb_init()
1501 qed_vf_set_sb_info(p_hwfn, sb_id, sb_info); in qed_int_sb_init()
[all …]
Dqed_vf.h955 u16 qed_vf_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id);
965 u16 sb_id, struct qed_sb_info *p_sb);
1157 static inline u16 qed_vf_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id) in qed_vf_get_igu_sb_id() argument
1162 static inline void qed_vf_set_sb_info(struct qed_hwfn *p_hwfn, u16 sb_id, in qed_vf_set_sb_info() argument
Dqed_main.c1163 dma_addr_t sb_phy_addr, u16 sb_id, in qed_sb_init() argument
1181 hwfn_index = sb_id % n_hwfns; in qed_sb_init()
1183 rel_sb_id = sb_id / n_hwfns; in qed_sb_init()
1187 hwfn_index, rel_sb_id, sb_id); in qed_sb_init()
1206 struct qed_sb_info *sb_info, u16 sb_id) in qed_sb_release() argument
1213 hwfn_index = sb_id % cdev->num_hwfns; in qed_sb_release()
1215 rel_sb_id = sb_id / cdev->num_hwfns; in qed_sb_release()
1219 hwfn_index, rel_sb_id, sb_id); in qed_sb_release()
Dqed_vf.c1430 u16 qed_vf_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id) in qed_vf_get_igu_sb_id() argument
1439 return p_iov->acquire_resp.resc.hw_sbs[sb_id].hw_sb_id; in qed_vf_get_igu_sb_id()
1443 u16 sb_id, struct qed_sb_info *p_sb) in qed_vf_set_sb_info() argument
1452 if (sb_id >= PFVF_MAX_SBS_PER_VF) { in qed_vf_set_sb_info()
1453 DP_NOTICE(p_hwfn, "Can't configure SB %04x\n", sb_id); in qed_vf_set_sb_info()
1457 p_iov->sbs_info[sb_id] = p_sb; in qed_vf_set_sb_info()
Dqed_sriov.c1910 int sb_id; in qed_iov_vf_mbx_start_vport() local
1927 for (sb_id = 0; sb_id < vf->num_sbs; sb_id++) { in qed_iov_vf_mbx_start_vport()
1928 if (!start->sb_addr[sb_id]) { in qed_iov_vf_mbx_start_vport()
1931 vf->relative_vf_id, sb_id); in qed_iov_vf_mbx_start_vport()
1936 start->sb_addr[sb_id], in qed_iov_vf_mbx_start_vport()
1937 vf->igu_sbs[sb_id], vf->abs_vf_id, 1); in qed_iov_vf_mbx_start_vport()
Dqed_rdma.c533 u32 cnq_id, sb_id; in qed_rdma_start_fw() local
568 sb_id = qed_rdma_get_sb_id(p_hwfn, cnq_id); in qed_rdma_start_fw()
569 igu_sb_id = qed_get_igu_sb_id(p_hwfn, sb_id); in qed_rdma_start_fw()
Dqed_ll2.c889 p_ramrod->sb_id = cpu_to_le16(qed_int_get_sp_sb_id(p_hwfn)); in qed_sp_ll2_rx_queue_start()
953 p_ramrod->sb_id = cpu_to_le16(qed_int_get_sp_sb_id(p_hwfn)); in qed_sp_ll2_tx_queue_start()
Dqed_l2.c888 p_ramrod->sb_id = cpu_to_le16(p_cid->sb_igu_id); in qed_eth_rxq_start_ramrod()
1109 p_ramrod->sb_id = cpu_to_le16(p_cid->sb_igu_id); in qed_eth_txq_start_ramrod()
Dqed_hsi.h720 __le16 sb_id; member
795 __le16 sb_id; member
5262 __le16 sb_id; member
5339 __le16 sb_id; member
/drivers/scsi/qedi/
Dqedi_debugfs.c173 que = qedi->global_queues[fp->sb_id]; in qedi_gbl_ctx_show()
175 seq_printf(s, "CQ complete host memory: %d\n", fp->sb_id); in qedi_gbl_ctx_show()
Dqedi_main.c340 struct qed_sb_info *sb_info, u16 sb_id) in qedi_alloc_and_init_sb() argument
352 sb_id); in qedi_alloc_and_init_sb()
357 sb_id, QED_SB_TYPE_STORAGE); in qedi_alloc_and_init_sb()
361 sb_id); in qedi_alloc_and_init_sb()
436 fp->sb_id = id; in qedi_int_fp()
460 ret = qedi_alloc_and_init_sb(qedi, fp->sb_info, fp->sb_id); in qedi_prepare_fp()
979 que = qedi->global_queues[fp->sb_id]; in qedi_process_completions()
982 que, prod_idx, que->cq_cons_idx, fp->sb_id); in qedi_process_completions()
984 qedi->intr_cpu = fp->sb_id; in qedi_process_completions()
999 ret = qedi_queue_cqe(qedi, cqe, fp->sb_id, p); in qedi_process_completions()
[all …]
Dqedi.h174 u16 sb_id; member
/drivers/infiniband/hw/qedr/
Dmain.c182 struct qed_sb_info *sb_info, u16 sb_id) in qedr_alloc_mem_sb() argument
194 sb_virt, sb_phys, sb_id, in qedr_alloc_mem_sb()
207 struct qed_sb_info *sb_info, int sb_id) in qedr_free_mem_sb() argument
210 dev->ops->common->sb_release(dev->cdev, sb_info, sb_id); in qedr_free_mem_sb()
/drivers/net/ethernet/broadcom/
Dcnic.c2327 fcoe_init->sb_id = HC_INDEX_FCOE_EQ_CONS; in cnic_bnx2x_fcoe_init1()
4534 u32 cid_addr, tx_cid, sb_id; in cnic_init_bnx2_tx_ring() local
4541 sb_id = cp->status_blk_num; in cnic_init_bnx2_tx_ring()
4547 tx_cid = TX_TSS_CID + sb_id - 1; in cnic_init_bnx2_tx_ring()
4548 CNIC_WR(dev, BNX2_TSCH_TSS_CFG, (sb_id << 24) | in cnic_init_bnx2_tx_ring()
4601 u32 cid_addr, sb_id, val, coal_reg, coal_val; in cnic_init_bnx2_rx_ring() local
4607 sb_id = cp->status_blk_num; in cnic_init_bnx2_rx_ring()
4617 coal_val = 1 << (11 + sb_id); in cnic_init_bnx2_rx_ring()
4633 if (sb_id == 0) in cnic_init_bnx2_rx_ring()
4636 val = BNX2_L2CTX_L2_STATUSB_NUM(sb_id); in cnic_init_bnx2_rx_ring()
[all …]
Dbnx2.h365 #define BNX2_L2CTX_L5_STATUSB_NUM(sb_id) \ argument
366 (((sb_id) > 0) ? (((sb_id) + 7) << BNX2_L2CTX_L5_STATUSB_NUM_SHIFT) : 0)
367 #define BNX2_L2CTX_L2_STATUSB_NUM(sb_id) \ argument
368 (((sb_id) > 0) ? (((sb_id) + 7) << BNX2_L2CTX_L2_STATUSB_NUM_SHIFT) : 0)
Dbnx2.c358 int sb_id; in bnx2_setup_cnic_irq_info() local
363 sb_id = bp->irq_nvecs; in bnx2_setup_cnic_irq_info()
369 sb_id = 0; in bnx2_setup_cnic_irq_info()
373 cp->irq_arr[0].vector = bp->irq_tbl[sb_id].vector; in bnx2_setup_cnic_irq_info()
376 (BNX2_SBLK_MSIX_ALIGN_SIZE * sb_id)); in bnx2_setup_cnic_irq_info()
377 cp->irq_arr[0].status_blk_num = sb_id; in bnx2_setup_cnic_irq_info()
Dcnic_defs.h3695 u8 sb_id; member
/drivers/scsi/qedf/
Dqedf_main.c1877 que = qedf->global_queues[fp->sb_id]; in qedf_fp_has_work()
1916 que = qedf->global_queues[fp->sb_id]; in qedf_process_completions()
1941 qedf_process_unsol_compl(qedf, fp->sb_id, cqe); in qedf_process_completions()
2363 struct qed_sb_info *sb_info, u16 sb_id) in qedf_alloc_and_init_sb() argument
2374 "for id = %d.\n", sb_id); in qedf_alloc_and_init_sb()
2379 sb_id, QED_SB_TYPE_STORAGE); in qedf_alloc_and_init_sb()
2383 "failed for id = %d.\n", sb_id); in qedf_alloc_and_init_sb()
2404 if (fp->sb_id == QEDF_SB_ID_NULL) in qedf_destroy_sb()
2430 fp->sb_id = QEDF_SB_ID_NULL; in qedf_prepare_sb()
2443 fp->sb_id = id; in qedf_prepare_sb()
Dqedf_debugfs.c134 if (fp->sb_id == QEDF_SB_ID_NULL) in qedf_dbg_fp_int_cmd_read()
Dqedf.h219 u16 sb_id; member
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.c1085 int sb_id; in bnx2x_get_vf_igu_cam_info() local
1090 for (sb_id = 0; sb_id < IGU_REG_MAPPING_MEMORY_SIZE; sb_id++) { in bnx2x_get_vf_igu_cam_info()
1091 val = REG_RD(bp, IGU_REG_MAPPING_MEMORY + sb_id * 4); in bnx2x_get_vf_igu_cam_info()
1098 bnx2x_vf_set_igu_info(bp, sb_id, in bnx2x_get_vf_igu_cam_info()
1103 (fid & IGU_FID_VF_NUM_MASK)), sb_id, in bnx2x_get_vf_igu_cam_info()
Dbnx2x_cmn.h660 static inline void bnx2x_hc_ack_sb(struct bnx2x *bp, u8 sb_id, in bnx2x_hc_ack_sb() argument
669 ((sb_id << IGU_ACK_REGISTER_STATUS_BLOCK_ID_SHIFT) | in bnx2x_hc_ack_sb()
Dbnx2x_hsi.h5288 u8 sb_id; member
5292 u8 sb_id; member
/drivers/net/ethernet/qlogic/qede/
Dqede_main.c1145 u16 sb_id) in qede_free_mem_sb() argument
1148 edev->ops->common->sb_release(edev->cdev, sb_info, sb_id); in qede_free_mem_sb()
1157 struct qed_sb_info *sb_info, u16 sb_id) in qede_alloc_mem_sb() argument
1171 sb_virt, sb_phys, sb_id, in qede_alloc_mem_sb()

12