Home
last modified time | relevance | path

Searched refs:hwq (Results 1 – 25 of 32) sorted by relevance

12

/openbmc/linux/drivers/ufs/core/
H A Dufs-mcq.c205 hwq = &hba->uhq[i]; in ufshcd_mcq_memory_alloc()
208 hwq->max_entries; in ufshcd_mcq_memory_alloc()
301 hwq->cq_head_slot = hwq->cq_tail_slot; in ufshcd_mcq_compl_all_cqes_lock()
334 hwq = &hba->uhq[i]; in ufshcd_mcq_make_queues_operational()
335 hwq->id = i; in ufshcd_mcq_make_queues_operational()
371 hwq->sq_tail_slot = hwq->cq_tail_slot = hwq->cq_head_slot = 0; in ufshcd_mcq_make_queues_operational()
435 hwq = &hba->uhq[i]; in ufshcd_mcq_init()
452 u32 id = hwq->id, val; in ufshcd_mcq_sq_stop()
471 u32 id = hwq->id, val; in ufshcd_mcq_sq_start()
511 if (!hwq) in ufshcd_mcq_sq_cleanup()
[all …]
H A Dufshcd-priv.h76 struct ufs_hw_queue *hwq);
78 struct ufs_hw_queue *hwq);
H A Dufshcd.c446 hwq_id = hwq->id; in ufshcd_add_command_trace()
2177 spin_lock(&hwq->sq_lock); in ufshcd_send_command()
2178 dest = hwq->sqe_base_addr + hwq->sq_tail_slot; in ufshcd_send_command()
2180 ufshcd_inc_sq_tail(hwq); in ufshcd_send_command()
5476 struct ufs_hw_queue *hwq; in ufshcd_poll() local
5517 struct ufs_hw_queue *hwq; in ufshcd_mcq_compl_pending_transfer() local
6370 struct ufs_hw_queue *hwq; in ufshcd_abort_one() local
6381 if (!hwq) in ufshcd_abort_one()
6807 struct ufs_hw_queue *hwq; in ufshcd_handle_mcq_cq_events() local
6820 hwq = &hba->uhq[i]; in ufshcd_handle_mcq_cq_events()
[all …]
/openbmc/linux/drivers/scsi/cxlflash/
H A Dmain.c693 struct hwq *hwq; in stop_afu() local
732 struct hwq *hwq; in term_intr() local
778 struct hwq *hwq; in term_mc() local
1334 struct hwq *hwq = (struct hwq *)data; in cxlflash_sync_err_irq() local
1472 struct hwq *hwq = (struct hwq *)data; in cxlflash_rrq_irq() local
1540 struct hwq *hwq = (struct hwq *)data; in cxlflash_async_err_irq() local
1711 struct hwq *hwq; in init_pcr() local
1746 struct hwq *hwq; in init_global() local
1872 struct hwq *hwq; in start_afu() local
2097 struct hwq *hwq; in init_afu() local
[all …]
H A Dcommon.h196 struct hwq { struct
231 struct hwq hwqs[CXLFLASH_MAX_HWQS]; argument
233 int (*context_reset)(struct hwq *hwq);
255 static inline struct hwq *get_hwq(struct afu *afu, u32 index) in get_hwq()
H A Dsuperpipe.c267 struct hwq *hwq = get_hwq(afu, PRIMARY_HWQ); in afu_attach() local
291 val = hwq->ctx_hndl; in afu_attach()
298 val = SISL_RHT_CNT_ID((u64)MAX_RHT_PER_CONTEXT, (u64)(hwq->ctx_hndl)); in afu_attach()
1660 struct hwq *hwq = get_hwq(afu, PRIMARY_HWQ); in cxlflash_afu_recover() local
1737 reg = readq_be(&hwq->ctrl_map->mbox_r); in cxlflash_afu_recover()
/openbmc/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_res.h83 #define HWQ_CMP(idx, hwq) ((idx) & ((hwq)->max_elements - 1)) argument
85 #define HWQ_FREE_SLOTS(hwq) (hwq->max_elements - \ argument
86 ((HWQ_CMP(hwq->prod, hwq)\
87 - HWQ_CMP(hwq->cons, hwq))\
360 return (void *)(hwq->pbl_ptr[pg_num] + hwq->element_size * pg_idx); in bnxt_qplib_get_qe()
365 idx += hwq->prod; in bnxt_qplib_get_prod_qe()
366 if (idx >= hwq->depth) in bnxt_qplib_get_prod_qe()
367 idx -= hwq->depth; in bnxt_qplib_get_prod_qe()
411 hwq->prod += cnt; in bnxt_qplib_hwq_incr_prod()
412 if (hwq->prod >= hwq->depth) { in bnxt_qplib_hwq_incr_prod()
[all …]
H A Dqplib_fp.c682 srq->dbinfo.hwq = &srq->hwq; in bnxt_qplib_create_srq()
918 sq->dbinfo.hwq = &sq->hwq; in bnxt_qplib_create_qp1()
923 rq->dbinfo.hwq = &rq->hwq; in bnxt_qplib_create_qp1()
955 hwq = &sq->hwq; in bnxt_qplib_init_psn_ptr()
1147 sq->dbinfo.hwq = &sq->hwq; in bnxt_qplib_create_qp()
1152 rq->dbinfo.hwq = &rq->hwq; in bnxt_qplib_create_qp()
1674 hwq = &qp->sq.hwq; in bnxt_qplib_put_inline()
1758 hwq = &sq->hwq; in bnxt_qplib_pull_psn_buff()
1799 hwq = &sq->hwq; in bnxt_qplib_post_send()
1813 hwq->prod, hwq->cons, hwq->depth, sq->q_full_delta); in bnxt_qplib_post_send()
[all …]
H A Dqplib_res.c168 __free_pbl(res, &hwq->pbl[i], hwq->is_user); in bnxt_qplib_free_hwq()
176 hwq->prod = 0; in bnxt_qplib_free_hwq()
177 hwq->cons = 0; in bnxt_qplib_free_hwq()
178 hwq->cp_bit = 0; in bnxt_qplib_free_hwq()
342 hwq->prod = 0; in bnxt_qplib_alloc_init_hwq()
343 hwq->cons = 0; in bnxt_qplib_alloc_init_hwq()
344 hwq->pdev = pdev; in bnxt_qplib_alloc_init_hwq()
346 hwq->max_elements = hwq->depth; in bnxt_qplib_alloc_init_hwq()
350 lvl = hwq->level; in bnxt_qplib_alloc_init_hwq()
353 hwq->pbl_ptr = hwq->pbl[lvl].pg_arr; in bnxt_qplib_alloc_init_hwq()
[all …]
H A Dqplib_rcfw.c239 struct bnxt_qplib_hwq *hwq = &cmdq->hwq; in __send_message_no_waiter() local
264 sw_prod = HWQ_CMP(hwq->prod, hwq); in __send_message_no_waiter()
271 hwq->prod++; in __send_message_no_waiter()
298 hwq = &cmdq->hwq; in __send_message()
345 sw_prod = HWQ_CMP(hwq->prod, hwq); in __send_message()
624 struct bnxt_qplib_hwq *hwq = &rcfw->cmdq.hwq; in bnxt_qplib_process_qp_event() local
735 struct bnxt_qplib_hwq *hwq = &creq->hwq; in bnxt_qplib_service_creq() local
744 creqe = bnxt_qplib_get_qe(hwq, hwq->cons, NULL); in bnxt_qplib_service_creq()
798 hwq = &creq->hwq; in bnxt_qplib_creq_irq()
800 sw_cons = HWQ_CMP(hwq->cons, hwq); in bnxt_qplib_creq_irq()
[all …]
H A Dqplib_fp.h101 struct bnxt_qplib_hwq hwq; member
249 struct bnxt_qplib_hwq hwq; member
362 cons = hwq->cons; in __bnxt_qplib_get_avail()
363 prod = hwq->prod; in __bnxt_qplib_get_avail()
366 avail += hwq->depth; in __bnxt_qplib_get_avail()
373 struct bnxt_qplib_hwq *hwq; in bnxt_qplib_queue_full() local
376 hwq = &que->hwq; in bnxt_qplib_queue_full()
378 avail = hwq->cons - hwq->prod; in bnxt_qplib_queue_full()
379 if (hwq->cons <= hwq->prod) in bnxt_qplib_queue_full()
380 avail += hwq->depth; in bnxt_qplib_queue_full()
[all …]
H A Dqplib_sp.c520 if (mrw->hwq.max_elements) in bnxt_qplib_free_mrw()
521 bnxt_qplib_free_hwq(res, &mrw->hwq); in bnxt_qplib_free_mrw()
585 if (mrw->hwq.max_elements) { in bnxt_qplib_dereg_mrw()
588 bnxt_qplib_free_hwq(res, &mrw->hwq); in bnxt_qplib_dereg_mrw()
613 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
614 bnxt_qplib_free_hwq(res, &mr->hwq); in bnxt_qplib_reg_mr()
637 if (mr->hwq.level == PBL_LVL_MAX) { in bnxt_qplib_reg_mr()
643 level = mr->hwq.level; in bnxt_qplib_reg_mr()
668 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
669 bnxt_qplib_free_hwq(res, &mr->hwq); in bnxt_qplib_reg_mr()
[all …]
H A Dqplib_rcfw.h188 struct bnxt_qplib_hwq hwq; member
207 struct bnxt_qplib_hwq hwq; member
H A Dqplib_sp.h119 struct bnxt_qplib_hwq hwq; member
124 struct bnxt_qplib_hwq hwq; member
H A Dmain.c1174 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_re_alloc_res()
1182 rattr.dma_arr = nq->hwq.pbl[PBL_LVL_0].pg_map_arr; in bnxt_re_alloc_res()
1183 rattr.pages = nq->hwq.pbl[rdev->nq[i].hwq.level].pg_count; in bnxt_re_alloc_res()
1500 rattr.dma_arr = creq->hwq.pbl[PBL_LVL_0].pg_map_arr; in bnxt_re_dev_init()
1501 rattr.pages = creq->hwq.pbl[creq->hwq.level].pg_count; in bnxt_re_dev_init()
H A Dib_verbs.c2576 wqe->frmr.pbl_ptr = (__le64 *)qplib_frpl->hwq.pbl_ptr[0]; in bnxt_re_build_reg_wqe()
2577 wqe->frmr.pbl_dma_ptr = qplib_frpl->hwq.pbl_dma_ptr[0]; in bnxt_re_build_reg_wqe()
2580 wqe->frmr.levels = qplib_frpl->hwq.level; in bnxt_re_build_reg_wqe()
3016 resp.tail = cq->qplib_cq.hwq.cons; in bnxt_re_create_cq()
3621 lib_qp->id, lib_qp->sq.hwq.prod, in send_phantom_wqe()
3622 HWQ_CMP(lib_qp->sq.hwq.prod, &lib_qp->sq.hwq), in send_phantom_wqe()
3819 mr->qplib_mr.hwq.level = PBL_LVL_MAX; in bnxt_re_get_dma_mr()
/openbmc/linux/include/scsi/
H A Dscsi_tcq.h26 u16 hwq; in scsi_host_find_tag() local
31 hwq = blk_mq_unique_tag_to_hwq(tag); in scsi_host_find_tag()
32 if (hwq < shost->tag_set.nr_hw_queues) { in scsi_host_find_tag()
33 req = blk_mq_tag_to_rq(shost->tag_set.tags[hwq], in scsi_host_find_tag()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7603/
H A Ddma.c32 u8 tid = 0, hwq = 0; in mt7603_rx_loopback_skb() local
56 hwq = wmm_queue_map[IEEE80211_AC_BE]; in mt7603_rx_loopback_skb()
61 hwq = wmm_queue_map[qid]; in mt7603_rx_loopback_skb()
65 hwq = wmm_queue_map[IEEE80211_AC_BE]; in mt7603_rx_loopback_skb()
72 hwq = MT_TX_HW_QUEUE_MGMT; in mt7603_rx_loopback_skb()
79 val |= FIELD_PREP(MT_TXD0_Q_IDX, hwq); in mt7603_rx_loopback_skb()
/openbmc/linux/drivers/net/wireless/ti/wlcore/
H A Dtx.c1199 int hwq = wlcore_tx_get_mac80211_queue(wlvif, queue); in wlcore_stop_queue_locked() local
1200 bool stopped = !!wl->queue_stop_reasons[hwq]; in wlcore_stop_queue_locked()
1203 WARN_ON_ONCE(test_and_set_bit(reason, &wl->queue_stop_reasons[hwq])); in wlcore_stop_queue_locked()
1208 ieee80211_stop_queue(wl->hw, hwq); in wlcore_stop_queue_locked()
1225 int hwq = wlcore_tx_get_mac80211_queue(wlvif, queue); in wlcore_wake_queue() local
1232 if (wl->queue_stop_reasons[hwq]) in wlcore_wake_queue()
1235 ieee80211_wake_queue(wl->hw, hwq); in wlcore_wake_queue()
1302 int hwq = wlcore_tx_get_mac80211_queue(wlvif, queue); in wlcore_is_queue_stopped_by_reason_locked() local
1305 return test_bit(reason, &wl->queue_stop_reasons[hwq]); in wlcore_is_queue_stopped_by_reason_locked()
1311 int hwq = wlcore_tx_get_mac80211_queue(wlvif, queue); in wlcore_is_queue_stopped_locked() local
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A Dtx.c403 struct mt76_queue *hwq = phy->q_tx[MT_TXQ_PSD]; in mt76_release_buffered_frames() local
406 spin_lock_bh(&hwq->lock); in mt76_release_buffered_frames()
430 dev->queue_ops->kick(dev, hwq); in mt76_release_buffered_frames()
435 spin_unlock_bh(&hwq->lock); in mt76_release_buffered_frames()
712 struct mt76_queue *hwq; in mt76_stop_tx_queues() local
718 hwq = phy->q_tx[mt76_txq_get_qid(txq)]; in mt76_stop_tx_queues()
721 spin_lock_bh(&hwq->lock); in mt76_stop_tx_queues()
723 spin_unlock_bh(&hwq->lock); in mt76_stop_tx_queues()
H A Dmac80211.c1729 struct mt76_queue *hwq; in mt76_init_queue() local
1732 hwq = devm_kzalloc(dev->dev, sizeof(*hwq), GFP_KERNEL); in mt76_init_queue()
1733 if (!hwq) in mt76_init_queue()
1736 hwq->flags = flags; in mt76_init_queue()
1738 err = dev->queue_ops->alloc(dev, hwq, idx, n_desc, 0, ring_base); in mt76_init_queue()
1742 return hwq; in mt76_init_queue()
/openbmc/linux/drivers/scsi/
H A Dvirtio_scsi.c556 u16 hwq = blk_mq_unique_tag_to_hwq(tag); in virtscsi_pick_vq_mq() local
558 return &vscsi->req_vqs[hwq]; in virtscsi_pick_vq_mq()
730 static void virtscsi_commit_rqs(struct Scsi_Host *shost, u16 hwq) in virtscsi_commit_rqs() argument
734 virtscsi_kick_vq(&vscsi->req_vqs[hwq]); in virtscsi_commit_rqs()
/openbmc/linux/drivers/net/wireless/intel/iwlegacy/
H A Dcommon.h2246 il_set_swq_id(struct il_tx_queue *txq, u8 ac, u8 hwq) in il_set_swq_id() argument
2249 BUG_ON(hwq > 31); /* only use 5 bits */ in il_set_swq_id()
2251 txq->swq_id = (hwq << 2) | ac; in il_set_swq_id()
2272 u8 hwq = (queue >> 2) & 0x1f; in il_wake_queue() local
2274 if (test_and_clear_bit(hwq, il->queue_stopped)) in il_wake_queue()
2283 u8 hwq = (queue >> 2) & 0x1f; in il_stop_queue() local
2285 if (!test_and_set_bit(hwq, il->queue_stopped)) in il_stop_queue()
/openbmc/linux/Documentation/devicetree/bindings/media/
H A Dmediatek,vcodec-decoder.yaml37 - const: hwq
/openbmc/linux/drivers/ufs/host/
H A Dufs-mediatek.c1592 struct ufs_hw_queue *hwq; in ufs_mtk_mcq_intr() local
1596 hwq = &hba->uhq[qid]; in ufs_mtk_mcq_intr()
1603 ufshcd_mcq_poll_cqe_lock(hba, hwq); in ufs_mtk_mcq_intr()

12