Lines Matching refs:nsgs
375 int nsgs, gfp_t gfp) in mt76u_fill_rx_sg() argument
379 for (i = 0; i < nsgs; i++) { in mt76u_fill_rx_sg()
393 if (i < nsgs) { in mt76u_fill_rx_sg()
396 for (j = nsgs; j < urb->num_sgs; j++) in mt76u_fill_rx_sg()
410 struct urb *urb, int nsgs, gfp_t gfp) in mt76u_refill_rx() argument
415 return mt76u_fill_rx_sg(dev, q, urb, nsgs, gfp); in mt76u_refill_rx()
572 int len, nsgs = 1, head_room, drv_flags = dev->drv->drv_flags; in mt76u_process_rx_entry() local
589 while (len > 0 && nsgs < urb->num_sgs) { in mt76u_process_rx_entry()
590 data_len = min_t(int, len, urb->sg[nsgs].length); in mt76u_process_rx_entry()
592 sg_page(&urb->sg[nsgs]), in mt76u_process_rx_entry()
593 urb->sg[nsgs].offset, data_len, in mt76u_process_rx_entry()
596 nsgs++; in mt76u_process_rx_entry()
600 return nsgs; in mt76u_process_rx_entry()