Lines Matching refs:uld
61 if (adap->uld[q->uld].lro_flush) in uldrx_flush_handler()
62 adap->uld[q->uld].lro_flush(&q->lro_mgr); in uldrx_flush_handler()
87 ret = adap->uld[q->uld].lro_rx_handler(adap->uld[q->uld].handle, in uldrx_handler()
91 ret = adap->uld[q->uld].rx_handler(adap->uld[q->uld].handle, in uldrx_handler()
290 r->rspq.uld = uld_type; in cfg_queues_uld()
304 r->rspq.uld = uld_type; in cfg_queues_uld()
528 adap->uld = kcalloc(CXGB4_ULD_MAX, sizeof(*adap->uld), GFP_KERNEL); in t4_uld_mem_alloc()
529 if (!adap->uld) in t4_uld_mem_alloc()
548 kfree(adap->uld); in t4_uld_mem_alloc()
558 kfree(adap->uld); in t4_uld_mem_free()
564 if (adap->uld[type].handle) { in cxgb4_shutdown_uld_adapter()
565 adap->uld[type].handle = NULL; in cxgb4_shutdown_uld_adapter()
566 adap->uld[type].add = NULL; in cxgb4_shutdown_uld_adapter()
589 if (!adap->uld[i].handle) in t4_uld_clean_up()
644 static int uld_attach(struct adapter *adap, unsigned int uld) in uld_attach() argument
650 uld_queue_init(adap, uld, &lli); in uld_attach()
652 handle = adap->uld[uld].add(&lli); in uld_attach()
656 adap->uld[uld].name, PTR_ERR(handle)); in uld_attach()
660 adap->uld[uld].handle = handle; in uld_attach()
664 adap->uld[uld].state_change(handle, CXGB4_STATE_UP); in uld_attach()
754 if (adap->uld[type].add) in cxgb4_uld_alloc_resources()
759 adap->uld[type] = *p; in cxgb4_uld_alloc_resources()