Home
last modified time | relevance | path

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

12

/drivers/virtio/
Dvirtio_mem.c483 unsigned long mb_id, int sb_id) in virtio_mem_sbm_sb_state_bit_nr() argument
485 return (mb_id - vm->sbm.first_mb_id) * vm->sbm.sbs_per_mb + sb_id; in virtio_mem_sbm_sb_state_bit_nr()
494 unsigned long mb_id, int sb_id, in virtio_mem_sbm_set_sb_plugged() argument
497 const int bit = virtio_mem_sbm_sb_state_bit_nr(vm, mb_id, sb_id); in virtio_mem_sbm_set_sb_plugged()
508 unsigned long mb_id, int sb_id, in virtio_mem_sbm_set_sb_unplugged() argument
511 const int bit = virtio_mem_sbm_sb_state_bit_nr(vm, mb_id, sb_id); in virtio_mem_sbm_set_sb_unplugged()
520 unsigned long mb_id, int sb_id, in virtio_mem_sbm_test_sb_plugged() argument
523 const int bit = virtio_mem_sbm_sb_state_bit_nr(vm, mb_id, sb_id); in virtio_mem_sbm_test_sb_plugged()
537 unsigned long mb_id, int sb_id, in virtio_mem_sbm_test_sb_unplugged() argument
540 const int bit = virtio_mem_sbm_sb_state_bit_nr(vm, mb_id, sb_id); in virtio_mem_sbm_test_sb_unplugged()
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_int.h110 u16 sb_id);
139 u16 sb_id);
257 u16 qed_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id);
439 u8 timer_res, u16 sb_id, bool tx);
Dqed_int.c1639 u16 qed_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id) in qed_get_igu_sb_id() argument
1644 if (sb_id == QED_SP_SB_ID) in qed_get_igu_sb_id()
1647 igu_sb_id = qed_get_pf_igu_sb_id(p_hwfn, sb_id + 1); in qed_get_igu_sb_id()
1649 igu_sb_id = qed_vf_get_igu_sb_id(p_hwfn, sb_id); in qed_get_igu_sb_id()
1651 if (sb_id == QED_SP_SB_ID) in qed_get_igu_sb_id()
1656 "SB [%04x] <--> IGU SB [%04x]\n", sb_id, igu_sb_id); in qed_get_igu_sb_id()
1664 void *sb_virt_addr, dma_addr_t sb_phy_addr, u16 sb_id) in qed_int_sb_init() argument
1669 sb_info->igu_sb_id = qed_get_igu_sb_id(p_hwfn, sb_id); in qed_int_sb_init()
1671 if (sb_id != QED_SP_SB_ID) { in qed_int_sb_init()
1683 qed_vf_set_sb_info(p_hwfn, sb_id, sb_info); in qed_int_sb_init()
[all …]
Dqed_vf.h960 u16 qed_vf_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id);
972 u16 sb_id, struct qed_sb_info *p_sb);
1182 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
1187 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.c1474 dma_addr_t sb_phy_addr, u16 sb_id, in qed_sb_init() argument
1484 p_hwfn = &cdev->hwfns[sb_id % cdev->num_hwfns]; in qed_sb_init()
1485 rel_sb_id = sb_id / cdev->num_hwfns; in qed_sb_init()
1488 rel_sb_id = sb_id; in qed_sb_init()
1493 IS_LEAD_HWFN(p_hwfn) ? 0 : 1, rel_sb_id, sb_id); in qed_sb_init()
1513 u16 sb_id, in qed_sb_release() argument
1522 p_hwfn = &cdev->hwfns[sb_id % cdev->num_hwfns]; in qed_sb_release()
1523 rel_sb_id = sb_id / cdev->num_hwfns; in qed_sb_release()
1526 rel_sb_id = sb_id; in qed_sb_release()
1531 IS_LEAD_HWFN(p_hwfn) ? 0 : 1, rel_sb_id, sb_id); in qed_sb_release()
Dqed_vf.c1453 u16 qed_vf_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id) in qed_vf_get_igu_sb_id() argument
1462 return p_iov->acquire_resp.resc.hw_sbs[sb_id].hw_sb_id; in qed_vf_get_igu_sb_id()
1466 u16 sb_id, struct qed_sb_info *p_sb) in qed_vf_set_sb_info() argument
1475 if (sb_id >= PFVF_MAX_SBS_PER_VF) { in qed_vf_set_sb_info()
1476 DP_NOTICE(p_hwfn, "Can't configure SB %04x\n", sb_id); in qed_vf_set_sb_info()
1480 p_iov->sbs_info[sb_id] = p_sb; in qed_vf_set_sb_info()
Dqed_sriov.c1897 int sb_id; in qed_iov_vf_mbx_start_vport() local
1914 for (sb_id = 0; sb_id < vf->num_sbs; sb_id++) { in qed_iov_vf_mbx_start_vport()
1915 if (!start->sb_addr[sb_id]) { in qed_iov_vf_mbx_start_vport()
1918 vf->relative_vf_id, sb_id); in qed_iov_vf_mbx_start_vport()
1923 start->sb_addr[sb_id], in qed_iov_vf_mbx_start_vport()
1924 vf->igu_sbs[sb_id], vf->abs_vf_id, 1); in qed_iov_vf_mbx_start_vport()
Dqed_rdma.c587 u32 cnq_id, sb_id; in qed_rdma_start_fw() local
628 sb_id = qed_rdma_get_sb_id(p_hwfn, cnq_id); in qed_rdma_start_fw()
629 igu_sb_id = qed_get_igu_sb_id(p_hwfn, sb_id); in qed_rdma_start_fw()
Dqed_ll2.c961 p_ramrod->sb_id = cpu_to_le16(qed_int_get_sp_sb_id(p_hwfn)); in qed_sp_ll2_rx_queue_start()
1033 p_ramrod->sb_id = cpu_to_le16(qed_int_get_sp_sb_id(p_hwfn)); in qed_sp_ll2_tx_queue_start()
Dqed_l2.c869 p_ramrod->sb_id = cpu_to_le16(p_cid->sb_igu_id); in qed_eth_rxq_start_ramrod()
1090 p_ramrod->sb_id = cpu_to_le16(p_cid->sb_igu_id); in qed_eth_txq_start_ramrod()
/drivers/net/ethernet/netronome/nfp/
Dnfp_shared_buf.c15 __le32 sb_id = cpu_to_le32(sb); in nfp_shared_buf_pool_unit() local
19 if (pf->shared_bufs[i].id == sb_id) in nfp_shared_buf_pool_unit()
/drivers/scsi/qedi/
Dqedi_debugfs.c157 que = qedi->global_queues[fp->sb_id]; in qedi_gbl_ctx_show()
159 seq_printf(s, "CQ complete host memory: %d\n", fp->sb_id); in qedi_gbl_ctx_show()
Dqedi_main.c353 struct qed_sb_info *sb_info, u16 sb_id) in qedi_alloc_and_init_sb() argument
365 sb_id); in qedi_alloc_and_init_sb()
370 sb_id, QED_SB_TYPE_STORAGE); in qedi_alloc_and_init_sb()
374 sb_id); in qedi_alloc_and_init_sb()
449 fp->sb_id = id; in qedi_int_fp()
473 ret = qedi_alloc_and_init_sb(qedi, fp->sb_info, fp->sb_id); in qedi_prepare_fp()
1278 que = qedi->global_queues[fp->sb_id]; in qedi_process_completions()
1281 que, prod_idx, que->cq_cons_idx, fp->sb_id); in qedi_process_completions()
1283 qedi->intr_cpu = fp->sb_id; in qedi_process_completions()
1298 ret = qedi_queue_cqe(qedi, cqe, fp->sb_id, p); in qedi_process_completions()
[all …]
Dqedi.h169 u16 sb_id; member
/drivers/net/ethernet/broadcom/
Dcnic.c2326 fcoe_init->sb_id = HC_INDEX_FCOE_EQ_CONS; in cnic_bnx2x_fcoe_init1()
4533 u32 cid_addr, tx_cid, sb_id; in cnic_init_bnx2_tx_ring() local
4540 sb_id = cp->status_blk_num; in cnic_init_bnx2_tx_ring()
4546 tx_cid = TX_TSS_CID + sb_id - 1; in cnic_init_bnx2_tx_ring()
4547 CNIC_WR(dev, BNX2_TSCH_TSS_CFG, (sb_id << 24) | in cnic_init_bnx2_tx_ring()
4600 u32 cid_addr, sb_id, val, coal_reg, coal_val; in cnic_init_bnx2_rx_ring() local
4606 sb_id = cp->status_blk_num; in cnic_init_bnx2_rx_ring()
4616 coal_val = 1 << (11 + sb_id); in cnic_init_bnx2_rx_ring()
4632 if (sb_id == 0) in cnic_init_bnx2_rx_ring()
4635 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.c352 int sb_id; in bnx2_setup_cnic_irq_info() local
357 sb_id = bp->irq_nvecs; in bnx2_setup_cnic_irq_info()
363 sb_id = 0; in bnx2_setup_cnic_irq_info()
367 cp->irq_arr[0].vector = bp->irq_tbl[sb_id].vector; in bnx2_setup_cnic_irq_info()
370 (BNX2_SBLK_MSIX_ALIGN_SIZE * sb_id)); in bnx2_setup_cnic_irq_info()
371 cp->irq_arr[0].status_blk_num = sb_id; in bnx2_setup_cnic_irq_info()
/drivers/infiniband/hw/qedr/
Dmain.c273 struct qed_sb_info *sb_info, u16 sb_id) in qedr_alloc_mem_sb() argument
285 sb_virt, sb_phys, sb_id, in qedr_alloc_mem_sb()
298 struct qed_sb_info *sb_info, int sb_id) in qedr_free_mem_sb() argument
301 dev->ops->common->sb_release(dev->cdev, sb_info, sb_id, in qedr_free_mem_sb()
/drivers/scsi/qedf/
Dqedf_main.c2200 que = qedf->global_queues[fp->sb_id]; in qedf_fp_has_work()
2239 que = qedf->global_queues[fp->sb_id]; in qedf_process_completions()
2264 qedf_process_unsol_compl(qedf, fp->sb_id, cqe); in qedf_process_completions()
2712 struct qed_sb_info *sb_info, u16 sb_id) in qedf_alloc_and_init_sb() argument
2724 sb_id); in qedf_alloc_and_init_sb()
2729 sb_id, QED_SB_TYPE_STORAGE); in qedf_alloc_and_init_sb()
2734 ret, sb_id); in qedf_alloc_and_init_sb()
2755 if (fp->sb_id == QEDF_SB_ID_NULL) in qedf_destroy_sb()
2781 fp->sb_id = QEDF_SB_ID_NULL; in qedf_prepare_sb()
2794 fp->sb_id = id; in qedf_prepare_sb()
Dqedf_debugfs.c122 if (fp->sb_id == QEDF_SB_ID_NULL) in qedf_dbg_fp_int_cmd_read()
Dqedf.h239 u16 sb_id; member
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.c1080 int sb_id; in bnx2x_get_vf_igu_cam_info() local
1085 for (sb_id = 0; sb_id < IGU_REG_MAPPING_MEMORY_SIZE; sb_id++) { in bnx2x_get_vf_igu_cam_info()
1086 val = REG_RD(bp, IGU_REG_MAPPING_MEMORY + sb_id * 4); in bnx2x_get_vf_igu_cam_info()
1093 bnx2x_vf_set_igu_info(bp, sb_id, in bnx2x_get_vf_igu_cam_info()
1098 (fid & IGU_FID_VF_NUM_MASK)), sb_id, in bnx2x_get_vf_igu_cam_info()
Dbnx2x_cmn.h656 static inline void bnx2x_hc_ack_sb(struct bnx2x *bp, u8 sb_id, in bnx2x_hc_ack_sb() argument
665 ((sb_id << IGU_ACK_REGISTER_STATUS_BLOCK_ID_SHIFT) | in bnx2x_hc_ack_sb()
Dbnx2x_hsi.h5298 u8 sb_id; member
5302 u8 sb_id; member
/drivers/net/ethernet/qlogic/qede/
Dqede_main.c1415 u16 sb_id) in qede_free_mem_sb() argument
1418 edev->ops->common->sb_release(edev->cdev, sb_info, sb_id, in qede_free_mem_sb()
1428 struct qed_sb_info *sb_info, u16 sb_id) in qede_alloc_mem_sb() argument
1442 sb_virt, sb_phys, sb_id, in qede_alloc_mem_sb()

12