| /linux-6.15/drivers/ufs/core/ |
| H A D | ufs-mcq.c | 239 hwq = &hba->uhq[i]; in ufshcd_mcq_memory_alloc() 329 hwq->cq_head_slot = hwq->cq_tail_slot; in ufshcd_mcq_compl_all_cqes_lock() 362 hwq = &hba->uhq[i]; in ufshcd_mcq_make_queues_operational() 363 hwq->id = i; in ufshcd_mcq_make_queues_operational() 399 hwq->sq_tail_slot = hwq->cq_tail_slot = hwq->cq_head_slot = 0; in ufshcd_mcq_make_queues_operational() 476 hwq = &hba->uhq[i]; in ufshcd_mcq_init() 493 u32 id = hwq->id, val; in ufshcd_mcq_sq_stop() 512 u32 id = hwq->id, val; in ufshcd_mcq_sq_start() 552 if (!hwq) in ufshcd_mcq_sq_cleanup() 558 id = hwq->id; in ufshcd_mcq_sq_cleanup() [all …]
|
| H A D | ufshcd.c | 473 hwq_id = hwq->id; in ufshcd_add_command_trace() 2303 struct ufs_hw_queue *hwq) in ufshcd_send_command() argument 2323 spin_lock(&hwq->sq_lock); in ufshcd_send_command() 2324 dest = hwq->sqe_base_addr + hwq->sq_tail_slot; in ufshcd_send_command() 2326 ufshcd_inc_sq_tail(hwq); in ufshcd_send_command() 5626 struct ufs_hw_queue *hwq; in ufshcd_poll() local 5667 struct ufs_hw_queue *hwq; in ufshcd_mcq_compl_pending_transfer() local 5681 if (!hwq) in ufshcd_mcq_compl_pending_transfer() 6946 struct ufs_hw_queue *hwq; in ufshcd_handle_mcq_cq_events() local 6959 hwq = &hba->uhq[i]; in ufshcd_handle_mcq_cq_events() [all …]
|
| H A D | ufshcd-priv.h | 73 struct ufs_hw_queue *hwq);
|
| /linux-6.15/drivers/infiniband/hw/bnxt_re/ |
| H A D | qplib_res.h | 105 #define HWQ_CMP(idx, hwq) ((idx) & ((hwq)->max_elements - 1)) argument 107 #define HWQ_FREE_SLOTS(hwq) (hwq->max_elements - \ argument 108 ((HWQ_CMP(hwq->prod, hwq)\ 109 - HWQ_CMP(hwq->cons, hwq))\ 400 return (void *)(hwq->pbl_ptr[pg_num] + hwq->element_size * pg_idx); in bnxt_qplib_get_qe() 405 idx += hwq->prod; in bnxt_qplib_get_prod_qe() 406 if (idx >= hwq->depth) in bnxt_qplib_get_prod_qe() 407 idx -= hwq->depth; in bnxt_qplib_get_prod_qe() 449 hwq->prod += cnt; in bnxt_qplib_hwq_incr_prod() 450 if (hwq->prod >= hwq->depth) { in bnxt_qplib_hwq_incr_prod() [all …]
|
| H A D | qplib_fp.c | 703 srq->dbinfo.hwq = &srq->hwq; in bnxt_qplib_create_srq() 939 sq->dbinfo.hwq = &sq->hwq; in bnxt_qplib_create_qp1() 944 rq->dbinfo.hwq = &rq->hwq; in bnxt_qplib_create_qp1() 976 hwq = &sq->hwq; in bnxt_qplib_init_psn_ptr() 1174 sq->dbinfo.hwq = &sq->hwq; in bnxt_qplib_create_qp() 1179 rq->dbinfo.hwq = &rq->hwq; in bnxt_qplib_create_qp() 1765 hwq = &qp->sq.hwq; in bnxt_qplib_put_inline() 1849 hwq = &sq->hwq; in bnxt_qplib_pull_psn_buff() 1890 hwq = &sq->hwq; in bnxt_qplib_post_send() 1904 hwq->prod, hwq->cons, hwq->depth, sq->q_full_delta); in bnxt_qplib_post_send() [all …]
|
| H A D | qplib_res.c | 168 __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() 331 hwq->prod = 0; in bnxt_qplib_alloc_init_hwq() 332 hwq->cons = 0; in bnxt_qplib_alloc_init_hwq() 333 hwq->pdev = pdev; in bnxt_qplib_alloc_init_hwq() 335 hwq->max_elements = hwq->depth; in bnxt_qplib_alloc_init_hwq() 339 lvl = hwq->level; in bnxt_qplib_alloc_init_hwq() 342 hwq->pbl_ptr = hwq->pbl[lvl].pg_arr; in bnxt_qplib_alloc_init_hwq() [all …]
|
| H A D | qplib_rcfw.c | 239 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() 297 hwq = &cmdq->hwq; in __send_message() 344 sw_prod = HWQ_CMP(hwq->prod, hwq); in __send_message() 623 struct bnxt_qplib_hwq *hwq = &rcfw->cmdq.hwq; in bnxt_qplib_process_qp_event() local 736 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 D | qplib_fp.h | 101 struct bnxt_qplib_hwq hwq; member 249 struct bnxt_qplib_hwq hwq; member 365 cons = hwq->cons; in __bnxt_qplib_get_avail() 366 prod = hwq->prod; in __bnxt_qplib_get_avail() 369 avail += hwq->depth; in __bnxt_qplib_get_avail() 376 struct bnxt_qplib_hwq *hwq; in bnxt_qplib_queue_full() local 379 hwq = &que->hwq; in bnxt_qplib_queue_full() 381 avail = hwq->cons - hwq->prod; in bnxt_qplib_queue_full() 382 if (hwq->cons <= hwq->prod) in bnxt_qplib_queue_full() 383 avail += hwq->depth; in bnxt_qplib_queue_full() [all …]
|
| H A D | qplib_sp.c | 543 if (mrw->hwq.max_elements) in bnxt_qplib_free_mrw() 544 bnxt_qplib_free_hwq(res, &mrw->hwq); in bnxt_qplib_free_mrw() 608 if (mrw->hwq.max_elements) { in bnxt_qplib_dereg_mrw() 611 bnxt_qplib_free_hwq(res, &mrw->hwq); in bnxt_qplib_dereg_mrw() 636 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr() 637 bnxt_qplib_free_hwq(res, &mr->hwq); in bnxt_qplib_reg_mr() 660 if (mr->hwq.level == PBL_LVL_MAX) { in bnxt_qplib_reg_mr() 666 level = mr->hwq.level; in bnxt_qplib_reg_mr() 699 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr() 700 bnxt_qplib_free_hwq(res, &mr->hwq); in bnxt_qplib_reg_mr() [all …]
|
| H A D | qplib_rcfw.h | 190 struct bnxt_qplib_hwq hwq; member 209 struct bnxt_qplib_hwq hwq; member
|
| H A D | qplib_sp.h | 123 struct bnxt_qplib_hwq hwq; member 128 struct bnxt_qplib_hwq hwq; member
|
| H A D | main.c | 1013 mr_hwq = &mr->qplib_mr.hwq; in bnxt_re_fill_res_mr_entry() 1071 cq_hwq = &cq->qplib_cq.hwq; in bnxt_re_fill_res_cq_entry() 1767 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_re_alloc_res() 1775 rattr.dma_arr = nq->hwq.pbl[PBL_LVL_0].pg_map_arr; in bnxt_re_alloc_res() 1776 rattr.pages = nq->hwq.pbl[rdev->nqr->nq[i].hwq.level].pg_count; in bnxt_re_alloc_res() 2143 rattr.dma_arr = creq->hwq.pbl[PBL_LVL_0].pg_map_arr; in bnxt_re_dev_init() 2144 rattr.pages = creq->hwq.pbl[creq->hwq.level].pg_count; in bnxt_re_dev_init()
|
| /linux-6.15/drivers/scsi/fnic/ |
| H A D | fnic_scsi.c | 361 uint16_t hwq) in fnic_queue_wq_copy_desc() argument 474 uint16_t hwq = 0; in fnic_queuecommand() local 1352 hwq, mqtag, in fnic_fcpio_itmf_cmpl_handler() 1383 hwq, mqtag, in fnic_fcpio_itmf_cmpl_handler() 1395 hwq, mqtag, in fnic_fcpio_itmf_cmpl_handler() 1417 hwq, mqtag, in fnic_fcpio_itmf_cmpl_handler() 1653 uint16_t hwq; in fnic_wq_copy_cleanup_handler() local 1989 int hwq = 0; in fnic_scsi_unload_cleanup() local 1993 for (hwq = 0; hwq < fnic->wq_copy_count; hwq++) in fnic_scsi_unload_cleanup() 2437 hwq, abt_tag); in fnic_pending_aborts_iter() [all …]
|
| H A D | fnic_main.c | 586 int hwq; in fnic_free_ioreq_tables_mq() local 588 for (hwq = 0; hwq < fnic->wq_copy_count; hwq++) in fnic_free_ioreq_tables_mq() 589 kfree(fnic->sw_copy_wq[hwq].io_req_table); in fnic_free_ioreq_tables_mq() 598 int hwq; in fnic_scsi_drv_init() local 619 for (hwq = 0; hwq < fnic->wq_copy_count; hwq++) { in fnic_scsi_drv_init() 620 fnic->sw_copy_wq[hwq].ioreq_table_size = fnic->fnic_max_tag_id; in fnic_scsi_drv_init() 621 fnic->sw_copy_wq[hwq].io_req_table = in fnic_scsi_drv_init() 622 kzalloc((fnic->sw_copy_wq[hwq].ioreq_table_size + 1) * in fnic_scsi_drv_init() 625 if (!fnic->sw_copy_wq[hwq].io_req_table) { in fnic_scsi_drv_init()
|
| H A D | fnic.h | 551 int fnic_count_ioreqs_wq(struct fnic *fnic, u32 hwq, u32 portid); 554 unsigned int fnic_count_lun_ioreqs_wq(struct fnic *fnic, u32 hwq,
|
| /linux-6.15/include/scsi/ |
| H A D | scsi_tcq.h | 26 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()
|
| /linux-6.15/drivers/net/wireless/mediatek/mt76/mt7603/ |
| H A D | dma.c | 32 u8 qid, 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()
|
| /linux-6.15/drivers/net/wireless/ti/wlcore/ |
| H A D | tx.c | 1196 int hwq = wlcore_tx_get_mac80211_queue(wlvif, queue); in wlcore_stop_queue_locked() local 1197 bool stopped = !!wl->queue_stop_reasons[hwq]; in wlcore_stop_queue_locked() 1200 WARN_ON_ONCE(test_and_set_bit(reason, &wl->queue_stop_reasons[hwq])); in wlcore_stop_queue_locked() 1205 ieee80211_stop_queue(wl->hw, hwq); in wlcore_stop_queue_locked() 1222 int hwq = wlcore_tx_get_mac80211_queue(wlvif, queue); in wlcore_wake_queue() local 1229 if (wl->queue_stop_reasons[hwq]) in wlcore_wake_queue() 1232 ieee80211_wake_queue(wl->hw, hwq); in wlcore_wake_queue() 1299 int hwq = wlcore_tx_get_mac80211_queue(wlvif, queue); in wlcore_is_queue_stopped_by_reason_locked() local 1302 return test_bit(reason, &wl->queue_stop_reasons[hwq]); in wlcore_is_queue_stopped_by_reason_locked() 1308 int hwq = wlcore_tx_get_mac80211_queue(wlvif, queue); in wlcore_is_queue_stopped_locked() local [all …]
|
| /linux-6.15/drivers/net/wireless/mediatek/mt76/ |
| H A D | tx.c | 414 struct mt76_queue *hwq = phy->q_tx[MT_TXQ_PSD]; in mt76_release_buffered_frames() local 417 spin_lock_bh(&hwq->lock); in mt76_release_buffered_frames() 441 dev->queue_ops->kick(dev, hwq); in mt76_release_buffered_frames() 446 spin_unlock_bh(&hwq->lock); in mt76_release_buffered_frames() 739 struct mt76_queue *hwq; in mt76_stop_tx_queues() local 745 hwq = phy->q_tx[mt76_txq_get_qid(txq)]; in mt76_stop_tx_queues() 748 spin_lock_bh(&hwq->lock); in mt76_stop_tx_queues() 750 spin_unlock_bh(&hwq->lock); in mt76_stop_tx_queues()
|
| H A D | mac80211.c | 1915 struct mt76_queue *hwq; in mt76_init_queue() local 1918 hwq = devm_kzalloc(dev->dev, sizeof(*hwq), GFP_KERNEL); in mt76_init_queue() 1919 if (!hwq) in mt76_init_queue() 1922 hwq->flags = flags; in mt76_init_queue() 1923 hwq->wed = wed; in mt76_init_queue() 1925 err = dev->queue_ops->alloc(dev, hwq, idx, n_desc, 0, ring_base); in mt76_init_queue() 1929 return hwq; in mt76_init_queue()
|
| /linux-6.15/drivers/scsi/ |
| H A D | virtio_scsi.c | 559 u16 hwq = blk_mq_unique_tag_to_hwq(tag); in virtscsi_pick_vq_mq() local 561 return &vscsi->req_vqs[hwq]; in virtscsi_pick_vq_mq() 773 static void virtscsi_commit_rqs(struct Scsi_Host *shost, u16 hwq) in virtscsi_commit_rqs() argument 777 virtscsi_kick_vq(&vscsi->req_vqs[hwq]); in virtscsi_commit_rqs()
|
| /linux-6.15/drivers/net/wireless/intel/iwlegacy/ |
| H A D | common.h | 2257 il_set_swq_id(struct il_tx_queue *txq, u8 ac, u8 hwq) in il_set_swq_id() argument 2260 BUG_ON(hwq > 31); /* only use 5 bits */ in il_set_swq_id() 2262 txq->swq_id = (hwq << 2) | ac; in il_set_swq_id() 2283 u8 hwq = (queue >> 2) & 0x1f; in il_wake_queue() local 2285 if (test_and_clear_bit(hwq, il->queue_stopped)) in il_wake_queue() 2294 u8 hwq = (queue >> 2) & 0x1f; in il_stop_queue() local 2296 if (!test_and_set_bit(hwq, il->queue_stopped)) in il_stop_queue()
|
| /linux-6.15/Documentation/devicetree/bindings/media/ |
| H A D | mediatek,vcodec-decoder.yaml | 36 - const: hwq
|
| /linux-6.15/drivers/ufs/host/ |
| H A D | ufs-mediatek.c | 1711 struct ufs_hw_queue *hwq; in ufs_mtk_mcq_intr() local 1715 hwq = &hba->uhq[qid]; in ufs_mtk_mcq_intr() 1722 ufshcd_mcq_poll_cqe_lock(hba, hwq); in ufs_mtk_mcq_intr()
|
| /linux-6.15/drivers/block/ |
| H A D | nbd.c | 876 u16 hwq; in nbd_handle_reply() local 882 hwq = blk_mq_unique_tag_to_hwq(tag); in nbd_handle_reply() 883 if (hwq < nbd->tag_set.nr_hw_queues) in nbd_handle_reply() 884 req = blk_mq_tag_to_rq(nbd->tag_set.tags[hwq], in nbd_handle_reply()
|