Lines Matching refs:hwq

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()
265 cmdqe = bnxt_qplib_get_qe(hwq, sw_prod, NULL); in __send_message_no_waiter()
271 hwq->prod++; in __send_message_no_waiter()
275 cmdq_prod = hwq->prod; in __send_message_no_waiter()
290 struct bnxt_qplib_hwq *hwq; in __send_message() local
298 hwq = &cmdq->hwq; in __send_message()
304 spin_lock_irqsave(&hwq->lock, flags); in __send_message()
306 free_slots = HWQ_FREE_SLOTS(hwq); in __send_message()
314 spin_unlock_irqrestore(&hwq->lock, flags); in __send_message()
345 sw_prod = HWQ_CMP(hwq->prod, hwq); in __send_message()
346 cmdqe = bnxt_qplib_get_qe(hwq, sw_prod, NULL); in __send_message()
352 hwq->prod++; in __send_message()
356 cmdq_prod = hwq->prod & 0xFFFF; in __send_message()
370 spin_unlock_irqrestore(&hwq->lock, flags); in __send_message()
515 spin_lock_irqsave(&rcfw->cmdq.hwq.lock, flags); in __bnxt_qplib_rcfw_send_message()
520 spin_unlock_irqrestore(&rcfw->cmdq.hwq.lock, flags); in __bnxt_qplib_rcfw_send_message()
624 struct bnxt_qplib_hwq *hwq = &rcfw->cmdq.hwq; in bnxt_qplib_process_qp_event() local
662 spin_lock_irqsave_nested(&hwq->lock, flags, in bnxt_qplib_process_qp_event()
675 spin_unlock_irqrestore(&hwq->lock, flags); in bnxt_qplib_process_qp_event()
704 hwq->cons += req_size; in bnxt_qplib_process_qp_event()
723 spin_unlock_irqrestore(&hwq->lock, flags); in bnxt_qplib_process_qp_event()
735 struct bnxt_qplib_hwq *hwq = &creq->hwq; in bnxt_qplib_service_creq() local
742 spin_lock_irqsave(&hwq->lock, flags); in bnxt_qplib_service_creq()
744 creqe = bnxt_qplib_get_qe(hwq, hwq->cons, NULL); in bnxt_qplib_service_creq()
778 bnxt_qplib_hwq_incr_cons(hwq->max_elements, &hwq->cons, in bnxt_qplib_service_creq()
785 spin_unlock_irqrestore(&hwq->lock, flags); in bnxt_qplib_service_creq()
794 struct bnxt_qplib_hwq *hwq; in bnxt_qplib_creq_irq() local
798 hwq = &creq->hwq; in bnxt_qplib_creq_irq()
800 sw_cons = HWQ_CMP(hwq->cons, hwq); in bnxt_qplib_creq_irq()
801 prefetch(bnxt_qplib_get_qe(hwq, sw_cons, NULL)); in bnxt_qplib_creq_irq()
923 bnxt_qplib_free_hwq(rcfw->res, &rcfw->cmdq.hwq); in bnxt_qplib_free_rcfw_channel()
924 bnxt_qplib_free_hwq(rcfw->res, &rcfw->creq.hwq); in bnxt_qplib_free_rcfw_channel()
952 if (bnxt_qplib_alloc_init_hwq(&creq->hwq, &hwq_attr)) { in bnxt_qplib_alloc_rcfw_channel()
964 if (bnxt_qplib_alloc_init_hwq(&cmdq->hwq, &hwq_attr)) { in bnxt_qplib_alloc_rcfw_channel()
970 rcfw->crsqe_tbl = kcalloc(cmdq->hwq.max_elements, in bnxt_qplib_alloc_rcfw_channel()
1135 creq_db->dbinfo.hwq = &rcfw->creq.hwq; in bnxt_qplib_map_creq_db()
1151 init.cmdq_pbl = cpu_to_le64(cmdq->hwq.pbl[PBL_LVL_0].pg_map_arr[0]); in bnxt_qplib_start_rcfw()
1156 ((cmdq->hwq.level << in bnxt_qplib_start_rcfw()