Lines Matching defs:desc
300 struct vio_net_desc *desc = port->vio.desc_buf;
303 err = ldc_get_dring_entry(port->vio.lp, desc, dr->entry_size,
309 return desc;
314 struct vio_net_desc *desc,
319 err = ldc_put_dring_entry(port->vio.lp, desc, dr->entry_size,
332 struct vio_net_desc *desc = get_rx_desc(port, dr, index);
336 if (IS_ERR(desc))
337 return PTR_ERR(desc);
339 viodbg(DATA, "vio_walk_rx_one desc[%02x:%02x:%08x:%08x:%llx:%llx]\n",
340 desc->hdr.state, desc->hdr.ack,
341 desc->size, desc->ncookies,
342 desc->cookies[0].cookie_addr,
343 desc->cookies[0].cookie_size);
345 if (desc->hdr.state != VIO_DESC_READY)
347 err = vnet_rx_one(port, desc->size, desc->cookies, desc->ncookies);
350 desc->hdr.state = VIO_DESC_DONE;
351 err = put_rx_desc(port, dr, desc, index);
354 *needs_ack = desc->hdr.ack;