Lines Matching refs:tx_scrq

115 					 struct ibmvnic_sub_crq_queue *tx_scrq);
201 txqs = adapter->tx_scrq; in ibmvnic_clean_affinity()
254 struct ibmvnic_sub_crq_queue **txqs = adapter->tx_scrq; in ibmvnic_set_affinity()
264 if (!(adapter->rx_scrq && adapter->tx_scrq)) { in ibmvnic_set_affinity()
1887 enable_irq(adapter->tx_scrq[i]->irq); in __ibmvnic_open()
1888 enable_scrq_irq(adapter, adapter->tx_scrq[i]); in __ibmvnic_open()
2062 if (adapter->tx_scrq) { in ibmvnic_disable_irqs()
2064 if (adapter->tx_scrq[i]->irq) { in ibmvnic_disable_irqs()
2067 disable_scrq_irq(adapter, adapter->tx_scrq[i]); in ibmvnic_disable_irqs()
2068 disable_irq(adapter->tx_scrq[i]->irq); in ibmvnic_disable_irqs()
2280 struct ibmvnic_sub_crq_queue *tx_scrq) in ibmvnic_tx_scrq_clean_buffer() argument
2291 ind_bufp = &tx_scrq->ind_buf; in ibmvnic_tx_scrq_clean_buffer()
2293 queue_num = tx_scrq->pool_index; in ibmvnic_tx_scrq_clean_buffer()
2323 if (atomic_sub_return(entries, &tx_scrq->used) <= in ibmvnic_tx_scrq_clean_buffer()
2359 struct ibmvnic_sub_crq_queue *tx_scrq, in ibmvnic_tx_scrq_flush() argument
2368 ind_bufp = &tx_scrq->ind_buf; in ibmvnic_tx_scrq_flush()
2371 handle = tx_scrq->handle; in ibmvnic_tx_scrq_flush()
2383 ibmvnic_tx_scrq_clean_buffer(adapter, tx_scrq); in ibmvnic_tx_scrq_flush()
2397 struct ibmvnic_sub_crq_queue *tx_scrq; in ibmvnic_xmit() local
2433 tx_scrq = adapter->tx_scrq[queue_num]; in ibmvnic_xmit()
2435 ind_bufp = &tx_scrq->ind_buf; in ibmvnic_xmit()
2441 lpar_rc = ibmvnic_tx_scrq_flush(adapter, tx_scrq, true); in ibmvnic_xmit()
2459 lpar_rc = ibmvnic_tx_scrq_flush(adapter, tx_scrq, true); in ibmvnic_xmit()
2575 lpar_rc = ibmvnic_tx_scrq_flush(adapter, tx_scrq, false); in ibmvnic_xmit()
2590 lpar_rc = ibmvnic_tx_scrq_flush(adapter, tx_scrq, true); in ibmvnic_xmit()
2603 lpar_rc = ibmvnic_tx_scrq_flush(adapter, tx_scrq, true); in ibmvnic_xmit()
2611 if (atomic_add_return(num_entries, &tx_scrq->used) in ibmvnic_xmit()
3943 if (!adapter->tx_scrq || !adapter->rx_scrq) in reset_sub_crq_queues()
3950 rc = reset_one_sub_crq_queue(adapter, adapter->tx_scrq[i]); in reset_sub_crq_queues()
4086 if (adapter->tx_scrq) { in release_sub_crqs()
4088 if (!adapter->tx_scrq[i]) in release_sub_crqs()
4093 ibmvnic_tx_scrq_clean_buffer(adapter, adapter->tx_scrq[i]); in release_sub_crqs()
4094 if (adapter->tx_scrq[i]->irq) { in release_sub_crqs()
4095 free_irq(adapter->tx_scrq[i]->irq, in release_sub_crqs()
4096 adapter->tx_scrq[i]); in release_sub_crqs()
4097 irq_dispose_mapping(adapter->tx_scrq[i]->irq); in release_sub_crqs()
4098 adapter->tx_scrq[i]->irq = 0; in release_sub_crqs()
4101 release_sub_crq_queue(adapter, adapter->tx_scrq[i], in release_sub_crqs()
4105 kfree(adapter->tx_scrq); in release_sub_crqs()
4106 adapter->tx_scrq = NULL; in release_sub_crqs()
4324 scrq = adapter->tx_scrq[i]; in init_sub_crq_irqs()
4382 free_irq(adapter->tx_scrq[j]->irq, adapter->tx_scrq[j]); in init_sub_crq_irqs()
4383 irq_dispose_mapping(adapter->tx_scrq[j]->irq); in init_sub_crq_irqs()
4439 adapter->tx_scrq = kcalloc(adapter->req_tx_queues, in init_sub_crqs()
4440 sizeof(*adapter->tx_scrq), GFP_KERNEL); in init_sub_crqs()
4441 if (!adapter->tx_scrq) in init_sub_crqs()
4445 adapter->tx_scrq[i] = allqueues[i]; in init_sub_crqs()
4446 adapter->tx_scrq[i]->pool_index = i; in init_sub_crqs()
4465 kfree(adapter->tx_scrq); in init_sub_crqs()
4466 adapter->tx_scrq = NULL; in init_sub_crqs()
4847 if (!adapter->tx_scrq || !adapter->rx_scrq) { in send_login()
4917 if (adapter->tx_scrq[i]) { in send_login()
4919 cpu_to_be64(adapter->tx_scrq[i]->crq_num); in send_login()
5606 adapter->tx_scrq[i]->handle = tx_handle_array[i]; in handle_login_rsp()