Lines Matching refs:uld
90 if (adap->uld[q->uld].lro_flush) in uldrx_flush_handler()
91 adap->uld[q->uld].lro_flush(&q->lro_mgr); in uldrx_flush_handler()
116 ret = adap->uld[q->uld].lro_rx_handler(adap->uld[q->uld].handle, in uldrx_handler()
120 ret = adap->uld[q->uld].rx_handler(adap->uld[q->uld].handle, in uldrx_handler()
321 r->rspq.uld = uld_type; in cfg_queues_uld()
335 r->rspq.uld = uld_type; in cfg_queues_uld()
563 adap->uld = kcalloc(CXGB4_ULD_MAX, sizeof(*adap->uld), GFP_KERNEL); in t4_uld_mem_alloc()
564 if (!adap->uld) in t4_uld_mem_alloc()
583 kfree(adap->uld); in t4_uld_mem_alloc()
593 kfree(adap->uld); in t4_uld_mem_free()
599 if (adap->uld[type].handle) { in cxgb4_shutdown_uld_adapter()
600 adap->uld[type].handle = NULL; in cxgb4_shutdown_uld_adapter()
601 adap->uld[type].add = NULL; in cxgb4_shutdown_uld_adapter()
621 if (!adap->uld[i].handle) in t4_uld_clean_up()
673 static int uld_attach(struct adapter *adap, unsigned int uld) in uld_attach() argument
679 uld_queue_init(adap, uld, &lli); in uld_attach()
681 handle = adap->uld[uld].add(&lli); in uld_attach()
685 adap->uld[uld].name, PTR_ERR(handle)); in uld_attach()
689 adap->uld[uld].handle = handle; in uld_attach()
693 adap->uld[uld].state_change(handle, CXGB4_STATE_UP); in uld_attach()
737 if (adap->uld[type].add) { in cxgb4_register_uld()
744 adap->uld[type] = *p; in cxgb4_register_uld()
774 adap->uld[type].handle = NULL; in cxgb4_register_uld()
775 adap->uld[type].add = NULL; in cxgb4_register_uld()