Home
last modified time | relevance | path

Searched refs:scrq (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/net/ethernet/ibm/
H A Dibmvnic.c3871 struct ibmvnic_sub_crq_queue *scrq) in reset_one_sub_crq_queue() argument
3875 if (!scrq) { in reset_one_sub_crq_queue()
3880 if (scrq->irq) { in reset_one_sub_crq_queue()
3881 free_irq(scrq->irq, scrq); in reset_one_sub_crq_queue()
3882 irq_dispose_mapping(scrq->irq); in reset_one_sub_crq_queue()
3883 scrq->irq = 0; in reset_one_sub_crq_queue()
3886 if (scrq->msgs) { in reset_one_sub_crq_queue()
3887 memset(scrq->msgs, 0, 4 * PAGE_SIZE); in reset_one_sub_crq_queue()
3888 atomic_set(&scrq->used, 0); in reset_one_sub_crq_queue()
3889 scrq->cur = 0; in reset_one_sub_crq_queue()
[all …]
/openbmc/linux/drivers/scsi/ibmvscsi/
H A Dibmvfc.c3805 static int ibmvfc_toggle_scrq_irq(struct ibmvfc_queue *scrq, int enable) in ibmvfc_toggle_scrq_irq() argument
3807 struct device *dev = scrq->vhost->dev; in ibmvfc_toggle_scrq_irq()
3816 scrq->hw_irq, 0, 0); in ibmvfc_toggle_scrq_irq()
3820 enable ? "enable" : "disable", scrq->hwq_id, rc); in ibmvfc_toggle_scrq_irq()
3861 static struct ibmvfc_crq *ibmvfc_next_scrq(struct ibmvfc_queue *scrq) in ibmvfc_next_scrq() argument
3865 crq = &scrq->msgs.scrq[scrq->cur].crq; in ibmvfc_next_scrq()
3867 if (++scrq->cur == scrq->size) in ibmvfc_next_scrq()
3868 scrq->cur = 0; in ibmvfc_next_scrq()
3876 static void ibmvfc_drain_sub_crq(struct ibmvfc_queue *scrq) in ibmvfc_drain_sub_crq() argument
3884 spin_lock_irqsave(scrq->q_lock, flags); in ibmvfc_drain_sub_crq()
[all …]
H A Dibmvfc.h781 struct ibmvfc_sub_crq *scrq; member