Lines Matching refs:nsgs
322 int nsgs, gfp_t gfp) in mt76u_fill_rx_sg() argument
326 for (i = 0; i < nsgs; i++) { in mt76u_fill_rx_sg()
340 if (i < nsgs) { in mt76u_fill_rx_sg()
343 for (j = nsgs; j < urb->num_sgs; j++) in mt76u_fill_rx_sg()
357 struct urb *urb, int nsgs, gfp_t gfp) in mt76u_refill_rx() argument
362 return mt76u_fill_rx_sg(dev, q, urb, nsgs, gfp); in mt76u_refill_rx()
519 int len, nsgs = 1, head_room, drv_flags = dev->drv->drv_flags; in mt76u_process_rx_entry() local
541 while (len > 0 && nsgs < urb->num_sgs) { in mt76u_process_rx_entry()
542 data_len = min_t(int, len, urb->sg[nsgs].length); in mt76u_process_rx_entry()
544 sg_page(&urb->sg[nsgs]), in mt76u_process_rx_entry()
545 urb->sg[nsgs].offset, data_len, in mt76u_process_rx_entry()
548 nsgs++; in mt76u_process_rx_entry()
552 return nsgs; in mt76u_process_rx_entry()