| /linux/drivers/iommu/iommufd/ |
| H A D | viommu.c | 267 struct iommufd_hw_queue *hw_queue = in iommufd_hw_queue_destroy() local 270 if (hw_queue->destroy) in iommufd_hw_queue_destroy() 271 hw_queue->destroy(hw_queue); in iommufd_hw_queue_destroy() 272 if (hw_queue->access) in iommufd_hw_queue_destroy() 273 iommufd_hw_queue_destroy_access(hw_queue->viommu->ictx, in iommufd_hw_queue_destroy() 274 hw_queue->access, in iommufd_hw_queue_destroy() 275 hw_queue->base_addr, in iommufd_hw_queue_destroy() 276 hw_queue->length); in iommufd_hw_queue_destroy() 277 if (hw_queue->viommu) in iommufd_hw_queue_destroy() 278 refcount_dec(&hw_queue->viommu->obj.users); in iommufd_hw_queue_destroy() [all …]
|
| H A D | selftest.c | 147 struct mock_hw_queue *hw_queue[IOMMU_TEST_HW_QUEUE_MAX]; member 167 to_mock_hw_queue(struct iommufd_hw_queue *hw_queue) in to_mock_hw_queue() argument 169 return container_of(hw_queue, struct mock_hw_queue, core); in to_mock_hw_queue() 740 static void mock_hw_queue_destroy(struct iommufd_hw_queue *hw_queue) in mock_hw_queue_destroy() argument 742 struct mock_hw_queue *mock_hw_queue = to_mock_hw_queue(hw_queue); in mock_hw_queue_destroy() 746 mock_viommu->hw_queue[mock_hw_queue->index] = NULL; in mock_hw_queue_destroy() 754 static int mock_hw_queue_init_phys(struct iommufd_hw_queue *hw_queue, u32 index, in mock_hw_queue_init_phys() argument 757 struct mock_viommu *mock_viommu = to_mock_viommu(hw_queue->viommu); in mock_hw_queue_init_phys() 758 struct mock_hw_queue *mock_hw_queue = to_mock_hw_queue(hw_queue); in mock_hw_queue_init_phys() 767 if (mock_viommu->hw_queue[index]) { in mock_hw_queue_init_phys() [all …]
|
| /linux/drivers/net/ethernet/ibm/ehea/ |
| H A D | ehea_qmr.h | 196 static inline void *hw_qeit_calc(struct hw_queue *queue, u64 q_offset) in hw_qeit_calc() 206 static inline void *hw_qeit_get(struct hw_queue *queue) in hw_qeit_get() 211 static inline void hw_qeit_inc(struct hw_queue *queue) in hw_qeit_inc() 221 static inline void *hw_qeit_get_inc(struct hw_queue *queue) in hw_qeit_get_inc() 228 static inline void *hw_qeit_get_inc_valid(struct hw_queue *queue) in hw_qeit_get_inc_valid() 245 static inline void *hw_qeit_get_valid(struct hw_queue *queue) in hw_qeit_get_valid() 261 static inline void *hw_qeit_reset(struct hw_queue *queue) in hw_qeit_reset() 267 static inline void *hw_qeit_eq_get_inc(struct hw_queue *queue) in hw_qeit_eq_get_inc() 281 static inline void *hw_eqit_eq_get_inc_valid(struct hw_queue *queue) in hw_eqit_eq_get_inc_valid() 295 struct hw_queue *queue; in ehea_get_next_rwqe() [all …]
|
| H A D | ehea_qmr.c | 25 static void *hw_qpageit_get_inc(struct hw_queue *queue) in hw_qpageit_get_inc() 40 static int hw_queue_ctor(struct hw_queue *queue, const u32 nr_of_pages, in hw_queue_ctor() 90 static void hw_queue_dtor(struct hw_queue *queue) in hw_queue_dtor() 134 ret = hw_queue_ctor(&cq->hw_queue, cq->attr.nr_pages, in ehea_create_cq() 140 vpage = hw_qpageit_get_inc(&cq->hw_queue); in ehea_create_cq() 157 vpage = hw_qpageit_get_inc(&cq->hw_queue); in ehea_create_cq() 173 hw_qeit_reset(&cq->hw_queue); in ehea_create_cq() 180 hw_queue_dtor(&cq->hw_queue); in ehea_create_cq() 202 hw_queue_dtor(&cq->hw_queue); in ehea_destroy_cq_res() 255 ret = hw_queue_ctor(&eq->hw_queue, eq->attr.nr_pages, in ehea_create_eq() [all …]
|
| H A D | ehea.h | 141 struct hw_queue { struct 260 struct hw_queue hw_queue; member 273 struct hw_queue hw_squeue; 274 struct hw_queue hw_rqueue1; 275 struct hw_queue hw_rqueue2; 276 struct hw_queue hw_rqueue3; 301 struct hw_queue hw_queue; member
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
| H A D | trx.c | 16 static u8 _rtl92de_map_hwqueue_to_fwqueue(struct sk_buff *skb, u8 hw_queue) in _rtl92de_map_hwqueue_to_fwqueue() argument 49 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) in rtl92de_tx_fill_desc() argument 61 u8 fw_qsel = _rtl92de_map_hwqueue_to_fwqueue(skb, hw_queue); in rtl92de_tx_fill_desc() 290 u8 hw_queue, u16 index) in rtl92de_is_tx_desc_closed() argument 293 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl92de_is_tx_desc_closed() 306 void rtl92de_tx_polling(struct ieee80211_hw *hw, u8 hw_queue) in rtl92de_tx_polling() argument 309 if (hw_queue == BEACON_QUEUE) in rtl92de_tx_polling() 313 BIT(0) << (hw_queue)); in rtl92de_tx_polling()
|
| H A D | trx.h | 128 struct sk_buff *skb, u8 hw_queue, 131 u8 hw_queue, u16 index); 132 void rtl92de_tx_polling(struct ieee80211_hw *hw, u8 hw_queue);
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | mock_engine.c | 95 return list_first_entry_or_null(&engine->hw_queue, in first_request() 245 list_add_tail(&request->mock.link, &engine->hw_queue); in mock_submit_request() 246 if (list_is_first(&request->mock.link, &engine->hw_queue)) { in mock_submit_request() 310 list_for_each_entry(rq, &mock->hw_queue, mock.link) { in mock_reset_cancel() 316 INIT_LIST_HEAD(&mock->hw_queue); in mock_reset_cancel() 386 INIT_LIST_HEAD(&engine->hw_queue); in mock_engine() 438 list_for_each_entry_safe(request, rn, &mock->hw_queue, mock.link) in mock_engine_flush()
|
| H A D | mock_engine.h | 19 struct list_head hw_queue; member
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
| H A D | trx.h | 11 struct sk_buff *skb, u8 hw_queue, 22 void rtl92se_tx_polling(struct ieee80211_hw *hw, u8 hw_queue);
|
| H A D | trx.c | 317 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) in rtl92se_tx_fill_desc() argument 327 u8 fw_qsel = _rtl92se_map_hwqueue_to_fwqueue(skb, hw_queue); in rtl92se_tx_fill_desc() 634 void rtl92se_tx_polling(struct ieee80211_hw *hw, u8 hw_queue) in rtl92se_tx_polling() argument 637 rtl_write_word(rtlpriv, TP_POLL, BIT(0) << (hw_queue)); in rtl92se_tx_polling()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
| H A D | trx.c | 14 static u8 _rtl92ce_map_hwqueue_to_fwqueue(struct sk_buff *skb, u8 hw_queue) in _rtl92ce_map_hwqueue_to_fwqueue() argument 347 u8 hw_queue, struct rtl_tcb_desc *tcb_desc) in rtl92ce_tx_fill_desc() argument 356 u8 fw_qsel = _rtl92ce_map_hwqueue_to_fwqueue(skb, hw_queue); in rtl92ce_tx_fill_desc() 659 u8 hw_queue, u16 index) in rtl92ce_is_tx_desc_closed() argument 662 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl92ce_is_tx_desc_closed() 675 void rtl92ce_tx_polling(struct ieee80211_hw *hw, u8 hw_queue) in rtl92ce_tx_polling() argument 679 if (hw_queue == BEACON_QUEUE) { in rtl92ce_tx_polling() 683 BIT(0) << (hw_queue)); in rtl92ce_tx_polling()
|
| H A D | trx.h | 516 struct sk_buff *skb, u8 hw_queue, 527 u8 hw_queue, u16 index); 528 void rtl92ce_tx_polling(struct ieee80211_hw *hw, u8 hw_queue);
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
| H A D | trx.c | 14 static u8 _rtl8723e_map_hwqueue_to_fwqueue(struct sk_buff *skb, u8 hw_queue) in _rtl8723e_map_hwqueue_to_fwqueue() argument 346 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) in rtl8723e_tx_fill_desc() argument 357 u8 fw_qsel = _rtl8723e_map_hwqueue_to_fwqueue(skb, hw_queue); in rtl8723e_tx_fill_desc() 661 u8 hw_queue, u16 index) in rtl8723e_is_tx_desc_closed() argument 664 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl8723e_is_tx_desc_closed() 678 void rtl8723e_tx_polling(struct ieee80211_hw *hw, u8 hw_queue) in rtl8723e_tx_polling() argument 681 if (hw_queue == BEACON_QUEUE) { in rtl8723e_tx_polling() 685 BIT(0) << (hw_queue)); in rtl8723e_tx_polling()
|
| H A D | trx.h | 519 struct sk_buff *skb, u8 hw_queue, 530 u8 hw_queue, u16 index); 531 void rtl8723e_tx_polling(struct ieee80211_hw *hw, u8 hw_queue);
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
| H A D | trx.c | 16 static u8 _rtl8723be_map_hwqueue_to_fwqueue(struct sk_buff *skb, u8 hw_queue) in _rtl8723be_map_hwqueue_to_fwqueue() argument 406 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) in rtl8723be_tx_fill_desc() argument 418 u8 fw_qsel = _rtl8723be_map_hwqueue_to_fwqueue(skb, hw_queue); in rtl8723be_tx_fill_desc() 718 u8 hw_queue, u16 index) in rtl8723be_is_tx_desc_closed() argument 721 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl8723be_is_tx_desc_closed() 734 void rtl8723be_tx_polling(struct ieee80211_hw *hw, u8 hw_queue) in rtl8723be_tx_polling() argument 737 if (hw_queue == BEACON_QUEUE) { in rtl8723be_tx_polling() 741 BIT(0) << (hw_queue)); in rtl8723be_tx_polling()
|
| H A D | trx.h | 632 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc); 642 u8 hw_queue, u16 index); 643 void rtl8723be_tx_polling(struct ieee80211_hw *hw, u8 hw_queue);
|
| /linux/drivers/iommu/arm/arm-smmu-v3/ |
| H A D | tegra241-cmdqv.c | 1035 tegra241_vintf_destroy_lvcmdq_user(struct iommufd_hw_queue *hw_queue) in tegra241_vintf_destroy_lvcmdq_user() argument 1037 struct tegra241_vcmdq *vcmdq = hw_queue_to_vcmdq(hw_queue); in tegra241_vintf_destroy_lvcmdq_user() 1048 static int tegra241_vintf_alloc_lvcmdq_user(struct iommufd_hw_queue *hw_queue, in tegra241_vintf_alloc_lvcmdq_user() argument 1051 struct tegra241_vintf *vintf = viommu_to_vintf(hw_queue->viommu); in tegra241_vintf_alloc_lvcmdq_user() 1052 struct tegra241_vcmdq *vcmdq = hw_queue_to_vcmdq(hw_queue); in tegra241_vintf_alloc_lvcmdq_user() 1060 if (hw_queue->type != IOMMU_HW_QUEUE_TYPE_TEGRA241_CMDQV) in tegra241_vintf_alloc_lvcmdq_user() 1090 if (!is_power_of_2(hw_queue->length) || hw_queue->length < 32 || in tegra241_vintf_alloc_lvcmdq_user() 1091 hw_queue->length > (1 << (max_n_shift + CMDQ_ENT_SZ_SHIFT))) { in tegra241_vintf_alloc_lvcmdq_user() 1095 log2size = ilog2(hw_queue->length) - CMDQ_ENT_SZ_SHIFT; in tegra241_vintf_alloc_lvcmdq_user() 1099 base_addr_pa & (hw_queue->length - 1)) { in tegra241_vintf_alloc_lvcmdq_user() [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
| H A D | trx.c | 15 static u8 _rtl88ee_map_hwqueue_to_fwqueue(struct sk_buff *skb, u8 hw_queue) in _rtl88ee_map_hwqueue_to_fwqueue() argument 481 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) in rtl88ee_tx_fill_desc() argument 492 u8 fw_qsel = _rtl88ee_map_hwqueue_to_fwqueue(skb, hw_queue); in rtl88ee_tx_fill_desc() 807 bool rtl88ee_is_tx_desc_closed(struct ieee80211_hw *hw, u8 hw_queue, u16 index) in rtl88ee_is_tx_desc_closed() argument 810 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl88ee_is_tx_desc_closed() 823 void rtl88ee_tx_polling(struct ieee80211_hw *hw, u8 hw_queue) in rtl88ee_tx_polling() argument 826 if (hw_queue == BEACON_QUEUE) { in rtl88ee_tx_polling() 830 BIT(0) << (hw_queue)); in rtl88ee_tx_polling()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
| H A D | trx.c | 16 static u8 _rtl92ee_map_hwqueue_to_fwqueue(struct sk_buff *skb, u8 hw_queue) in _rtl92ee_map_hwqueue_to_fwqueue() argument 647 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) in rtl92ee_tx_fill_desc() argument 656 u8 fw_qsel = _rtl92ee_map_hwqueue_to_fwqueue(skb, hw_queue); in rtl92ee_tx_fill_desc() 689 rtl92ee_pre_fill_tx_bd_desc(hw, pbd_desc_tx, pdesc8, hw_queue, in rtl92ee_tx_fill_desc() 994 bool rtl92ee_is_tx_desc_closed(struct ieee80211_hw *hw, u8 hw_queue, u16 index) in rtl92ee_is_tx_desc_closed() argument 1000 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl92ee_is_tx_desc_closed() 1008 get_desc_addr_fr_q_idx(hw_queue)); in rtl92ee_is_tx_desc_closed() 1033 if (hw_queue == BEACON_QUEUE) in rtl92ee_is_tx_desc_closed() 1043 void rtl92ee_tx_polling(struct ieee80211_hw *hw, u8 hw_queue) in rtl92ee_tx_polling() argument
|
| /linux/drivers/net/wireless/realtek/rtlwifi/ |
| H A D | pci.c | 417 u8 hw_queue = ac_to_hwq[rtl_tid_to_ac(tid)]; in _rtl_pci_tx_chk_waitq() local 418 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in _rtl_pci_tx_chk_waitq() 656 u8 hw_queue = 0; in _rtl_pci_rx_interrupt() local 681 hw_queue); in _rtl_pci_rx_interrupt() 716 hw_queue); in _rtl_pci_rx_interrupt() 793 rtlpci->rx_ring[hw_queue].next_rx_rp += 1; in _rtl_pci_rx_interrupt() 794 rtlpci->rx_ring[hw_queue].next_rx_rp %= in _rtl_pci_rx_interrupt() 799 rtlpci->rx_ring[hw_queue].next_rx_rp); in _rtl_pci_rx_interrupt() 1531 u8 hw_queue = _rtl_mac_to_hwqueue(hw, skb); in rtl_pci_tx() local 1559 ring = &rtlpci->tx_ring[hw_queue]; in rtl_pci_tx() [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
| H A D | trx.c | 16 static u8 _rtl8821ae_map_hwqueue_to_fwqueue(struct sk_buff *skb, u8 hw_queue) in _rtl8821ae_map_hwqueue_to_fwqueue() argument 667 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) in rtl8821ae_tx_fill_desc() argument 678 u8 fw_qsel = _rtl8821ae_map_hwqueue_to_fwqueue(skb, hw_queue); in rtl8821ae_tx_fill_desc() 963 u8 hw_queue, u16 index) in rtl8821ae_is_tx_desc_closed() argument 966 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl8821ae_is_tx_desc_closed() 980 void rtl8821ae_tx_polling(struct ieee80211_hw *hw, u8 hw_queue) in rtl8821ae_tx_polling() argument 984 if (hw_queue == BEACON_QUEUE) { in rtl8821ae_tx_polling() 988 BIT(0) << (hw_queue)); in rtl8821ae_tx_polling()
|
| /linux/drivers/infiniband/hw/cxgb4/ |
| H A D | device.c | 992 devp->rdev.hw_queue.t4_eq_status_entries = in c4iw_alloc() 994 devp->rdev.hw_queue.t4_max_eq_size = 65520; in c4iw_alloc() 995 devp->rdev.hw_queue.t4_max_iq_size = 65520; in c4iw_alloc() 996 devp->rdev.hw_queue.t4_max_rq_size = 8192 - in c4iw_alloc() 997 devp->rdev.hw_queue.t4_eq_status_entries - 1; in c4iw_alloc() 998 devp->rdev.hw_queue.t4_max_sq_size = in c4iw_alloc() 999 devp->rdev.hw_queue.t4_max_eq_size - in c4iw_alloc() 1000 devp->rdev.hw_queue.t4_eq_status_entries - 1; in c4iw_alloc() 1001 devp->rdev.hw_queue.t4_max_qp_depth = in c4iw_alloc() 1002 devp->rdev.hw_queue.t4_max_rq_size; in c4iw_alloc() [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | ops.c | 1818 int hw_queue, bool start) in iwl_mvm_queue_state_change() argument 1830 mvm->tvqm_info[hw_queue].sta_id : in iwl_mvm_queue_state_change() 1831 mvm->queue_info[hw_queue].ra_sta_id; in iwl_mvm_queue_state_change() 1843 if (iwl_mvm_is_static_queue(mvm, hw_queue)) { in iwl_mvm_queue_state_change() 1853 int tid = mvm->tvqm_info[hw_queue].txq_tid; in iwl_mvm_queue_state_change() 1857 tid_bitmap = mvm->queue_info[hw_queue].tid_bitmap; in iwl_mvm_queue_state_change() 1884 static void iwl_mvm_stop_sw_queue(struct iwl_op_mode *op_mode, int hw_queue) in iwl_mvm_stop_sw_queue() argument 1886 iwl_mvm_queue_state_change(op_mode, hw_queue, false); in iwl_mvm_stop_sw_queue() 1889 static void iwl_mvm_wake_sw_queue(struct iwl_op_mode *op_mode, int hw_queue) in iwl_mvm_wake_sw_queue() argument 1891 iwl_mvm_queue_state_change(op_mode, hw_queue, true); in iwl_mvm_wake_sw_queue()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192du/ |
| H A D | trx.h | 50 struct sk_buff *skb, u8 hw_queue,
|