Lines Matching refs:mq

16628  * @mq: The queue structure to use to create the mailbox queue.
16640 lpfc_mq_create_fb_init(struct lpfc_hba *phba, struct lpfc_queue *mq,
16654 mq->page_count);
16658 switch (mq->entry_count) {
16676 list_for_each_entry(dmabuf, &mq->page_list, list) {
16687 * @mq: The queue structure to use to create the mailbox queue.
16691 * This function creates a mailbox queue, as detailed in @mq, on a port,
16706 lpfc_mq_create(struct lpfc_hba *phba, struct lpfc_queue *mq,
16719 if (!mq || !cq)
16736 &mq_create_ext->u.request, mq->page_count);
16756 switch (mq->entry_count) {
16760 mq->entry_count);
16761 if (mq->entry_count < 16) {
16787 list_for_each_entry(dmabuf, &mq->page_list, list) {
16795 mq->queue_id = bf_get(lpfc_mbx_mq_create_q_id,
16802 lpfc_mq_create_fb_init(phba, mq, mbox, cq);
16806 mq->queue_id = bf_get(lpfc_mbx_mq_create_q_id,
16821 if (mq->queue_id == 0xFFFF) {
16825 mq->type = LPFC_MQ;
16826 mq->assoc_qid = cq->queue_id;
16827 mq->subtype = subtype;
16828 mq->host_index = 0;
16829 mq->hba_index = 0;
16831 /* link the mq onto the parent cq child list */
16832 list_add_tail(&mq->list, &cq->child_list);
17700 * @mq: The queue structure associated with the queue to destroy.
17702 * This function destroys a queue, as detailed in @mq by sending an mailbox
17705 * The @mq struct is used to get the queue ID of the queue to destroy.
17711 lpfc_mq_destroy(struct lpfc_hba *phba, struct lpfc_queue *mq)
17719 if (!mq)
17721 mbox = mempool_alloc(mq->phba->mbox_mem_pool, GFP_KERNEL);
17730 mq->queue_id);
17731 mbox->vport = mq->phba->pport;
17733 rc = lpfc_sli_issue_mbox(mq->phba, mbox, MBX_POLL);
17746 /* Remove mq from any list */
17747 list_del_init(&mq->list);
17748 mempool_free(mbox, mq->phba->mbox_mem_pool);