Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/virtio/
Dvirtio_mem.c499 unsigned long mb_id, int sb_id) in virtio_mem_sbm_sb_state_bit_nr() argument
501 return (mb_id - vm->sbm.first_mb_id) * vm->sbm.sbs_per_mb + sb_id; in virtio_mem_sbm_sb_state_bit_nr()
510 unsigned long mb_id, int sb_id, in virtio_mem_sbm_set_sb_plugged() argument
513 const int bit = virtio_mem_sbm_sb_state_bit_nr(vm, mb_id, sb_id); in virtio_mem_sbm_set_sb_plugged()
524 unsigned long mb_id, int sb_id, in virtio_mem_sbm_set_sb_unplugged() argument
527 const int bit = virtio_mem_sbm_sb_state_bit_nr(vm, mb_id, sb_id); in virtio_mem_sbm_set_sb_unplugged()
536 unsigned long mb_id, int sb_id, in virtio_mem_sbm_test_sb_plugged() argument
539 const int bit = virtio_mem_sbm_sb_state_bit_nr(vm, mb_id, sb_id); in virtio_mem_sbm_test_sb_plugged()
553 unsigned long mb_id, int sb_id, in virtio_mem_sbm_test_sb_unplugged() argument
556 const int bit = virtio_mem_sbm_sb_state_bit_nr(vm, mb_id, sb_id); in virtio_mem_sbm_test_sb_unplugged()
[all …]
/Linux-v6.1/drivers/net/ethernet/qlogic/qed/
Dqed_int.h110 u16 sb_id);
139 u16 sb_id);
270 u16 qed_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id);
452 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.c1451 dma_addr_t sb_phy_addr, u16 sb_id, in qed_sb_init() argument
1461 p_hwfn = &cdev->hwfns[sb_id % cdev->num_hwfns]; in qed_sb_init()
1462 rel_sb_id = sb_id / cdev->num_hwfns; in qed_sb_init()
1465 rel_sb_id = sb_id; in qed_sb_init()
1470 IS_LEAD_HWFN(p_hwfn) ? 0 : 1, rel_sb_id, sb_id); in qed_sb_init()
1490 u16 sb_id, in qed_sb_release() argument
1499 p_hwfn = &cdev->hwfns[sb_id % cdev->num_hwfns]; in qed_sb_release()
1500 rel_sb_id = sb_id / cdev->num_hwfns; in qed_sb_release()
1503 rel_sb_id = sb_id; in qed_sb_release()
1508 IS_LEAD_HWFN(p_hwfn) ? 0 : 1, rel_sb_id, sb_id); in qed_sb_release()
Dqed_vf.c1454 u16 qed_vf_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id) in qed_vf_get_igu_sb_id() argument
1463 return p_iov->acquire_resp.resc.hw_sbs[sb_id].hw_sb_id; in qed_vf_get_igu_sb_id()
1467 u16 sb_id, struct qed_sb_info *p_sb) in qed_vf_set_sb_info() argument
1476 if (sb_id >= PFVF_MAX_SBS_PER_VF) { in qed_vf_set_sb_info()
1477 DP_NOTICE(p_hwfn, "Can't configure SB %04x\n", sb_id); in qed_vf_set_sb_info()
1481 p_iov->sbs_info[sb_id] = p_sb; in qed_vf_set_sb_info()
Dqed_sriov.c1899 int sb_id; in qed_iov_vf_mbx_start_vport() local
1916 for (sb_id = 0; sb_id < vf->num_sbs; sb_id++) { in qed_iov_vf_mbx_start_vport()
1917 if (!start->sb_addr[sb_id]) { in qed_iov_vf_mbx_start_vport()
1920 vf->relative_vf_id, sb_id); in qed_iov_vf_mbx_start_vport()
1925 start->sb_addr[sb_id], in qed_iov_vf_mbx_start_vport()
1926 vf->igu_sbs[sb_id], vf->abs_vf_id, 1); in qed_iov_vf_mbx_start_vport()
Dqed_rdma.c560 u32 cnq_id, sb_id; in qed_rdma_start_fw() local
601 sb_id = qed_rdma_get_sb_id(p_hwfn, cnq_id); in qed_rdma_start_fw()
602 igu_sb_id = qed_get_igu_sb_id(p_hwfn, sb_id); in qed_rdma_start_fw()
Dqed_ll2.c982 p_ramrod->sb_id = cpu_to_le16(qed_int_get_sp_sb_id(p_hwfn)); in qed_sp_ll2_rx_queue_start()
1054 p_ramrod->sb_id = cpu_to_le16(qed_int_get_sp_sb_id(p_hwfn)); in qed_sp_ll2_tx_queue_start()
/Linux-v6.1/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()
/Linux-v6.1/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.c352 struct qed_sb_info *sb_info, u16 sb_id) in qedi_alloc_and_init_sb() argument
364 sb_id); in qedi_alloc_and_init_sb()
369 sb_id, QED_SB_TYPE_STORAGE); in qedi_alloc_and_init_sb()
373 sb_id); in qedi_alloc_and_init_sb()
448 fp->sb_id = id; in qedi_int_fp()
472 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
/Linux-v6.1/include/linux/
Dqnx6_fs.h122 __u8 sb_id[12]; member
/Linux-v6.1/drivers/infiniband/hw/qedr/
Dmain.c272 struct qed_sb_info *sb_info, u16 sb_id) in qedr_alloc_mem_sb() argument
284 sb_virt, sb_phys, sb_id, in qedr_alloc_mem_sb()
297 struct qed_sb_info *sb_info, int sb_id) in qedr_free_mem_sb() argument
300 dev->ops->common->sb_release(dev->cdev, sb_info, sb_id, in qedr_free_mem_sb()
/Linux-v6.1/drivers/net/ethernet/broadcom/
Dcnic.c2326 fcoe_init->sb_id = HC_INDEX_FCOE_EQ_CONS; in cnic_bnx2x_fcoe_init1()
4532 u32 cid_addr, tx_cid, sb_id; in cnic_init_bnx2_tx_ring() local
4539 sb_id = cp->status_blk_num; in cnic_init_bnx2_tx_ring()
4545 tx_cid = TX_TSS_CID + sb_id - 1; in cnic_init_bnx2_tx_ring()
4546 CNIC_WR(dev, BNX2_TSCH_TSS_CFG, (sb_id << 24) | in cnic_init_bnx2_tx_ring()
4599 u32 cid_addr, sb_id, val, coal_reg, coal_val; in cnic_init_bnx2_rx_ring() local
4605 sb_id = cp->status_blk_num; in cnic_init_bnx2_rx_ring()
4615 coal_val = 1 << (11 + sb_id); in cnic_init_bnx2_rx_ring()
4631 if (sb_id == 0) in cnic_init_bnx2_rx_ring()
4634 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()
/Linux-v6.1/drivers/scsi/qedf/
Dqedf_main.c2199 que = qedf->global_queues[fp->sb_id]; in qedf_fp_has_work()
2238 que = qedf->global_queues[fp->sb_id]; in qedf_process_completions()
2263 qedf_process_unsol_compl(qedf, fp->sb_id, cqe); in qedf_process_completions()
2711 struct qed_sb_info *sb_info, u16 sb_id) in qedf_alloc_and_init_sb() argument
2723 sb_id); in qedf_alloc_and_init_sb()
2728 sb_id, QED_SB_TYPE_STORAGE); in qedf_alloc_and_init_sb()
2733 ret, sb_id); in qedf_alloc_and_init_sb()
2754 if (fp->sb_id == QEDF_SB_ID_NULL) in qedf_destroy_sb()
2780 fp->sb_id = QEDF_SB_ID_NULL; in qedf_prepare_sb()
2793 fp->sb_id = id; in qedf_prepare_sb()
Dqedf_debugfs.c115 if (fp->sb_id == QEDF_SB_ID_NULL) in qedf_dbg_fp_int_cmd_read()
Dqedf.h247 u16 sb_id; member
/Linux-v6.1/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()
/Linux-v6.1/include/linux/qed/
Dqed_if.h912 u16 sb_id,
917 u16 sb_id,
/Linux-v6.1/drivers/net/ethernet/qlogic/qede/
Dqede_main.c1444 u16 sb_id) in qede_free_mem_sb() argument
1447 edev->ops->common->sb_release(edev->cdev, sb_info, sb_id, in qede_free_mem_sb()
1457 struct qed_sb_info *sb_info, u16 sb_id) in qede_alloc_mem_sb() argument
1471 sb_virt, sb_phys, sb_id, in qede_alloc_mem_sb()

12