num_sgs 104 drivers/dma/dma-axi-dmac.c unsigned int num_sgs; num_sgs 225 drivers/dma/dma-axi-dmac.c if (desc->num_submitted == desc->num_sgs || num_sgs 254 drivers/dma/dma-axi-dmac.c desc->num_sgs == 1) num_sgs 295 drivers/dma/dma-axi-dmac.c for (i = 0; i < desc->num_sgs; i++) { num_sgs 342 drivers/dma/dma-axi-dmac.c for (i = start; i < active->num_sgs; i++) { num_sgs 383 drivers/dma/dma-axi-dmac.c if (active->num_completed == active->num_sgs || num_sgs 466 drivers/dma/dma-axi-dmac.c static struct axi_dmac_desc *axi_dmac_alloc_desc(unsigned int num_sgs) num_sgs 471 drivers/dma/dma-axi-dmac.c desc = kzalloc(struct_size(desc, sg, num_sgs), GFP_NOWAIT); num_sgs 475 drivers/dma/dma-axi-dmac.c for (i = 0; i < num_sgs; i++) num_sgs 478 drivers/dma/dma-axi-dmac.c desc->num_sgs = num_sgs; num_sgs 535 drivers/dma/dma-axi-dmac.c unsigned int num_sgs; num_sgs 541 drivers/dma/dma-axi-dmac.c num_sgs = 0; num_sgs 543 drivers/dma/dma-axi-dmac.c num_sgs += DIV_ROUND_UP(sg_dma_len(sg), chan->max_length); num_sgs 545 drivers/dma/dma-axi-dmac.c desc = axi_dmac_alloc_desc(num_sgs); num_sgs 418 drivers/dma/mediatek/mtk-hsdma.c u16 reserved, prev, tlen, num_sgs; num_sgs 428 drivers/dma/mediatek/mtk-hsdma.c num_sgs = DIV_ROUND_UP(hvd->len, MTK_HSDMA_MAX_LEN); num_sgs 429 drivers/dma/mediatek/mtk-hsdma.c reserved = min_t(u16, num_sgs, atomic_read(&pc->nr_free)); num_sgs 187 drivers/dma/stm32-dma.c u32 num_sgs; num_sgs 552 drivers/dma/stm32-dma.c if (chan->next_sg == chan->desc->num_sgs) num_sgs 596 drivers/dma/stm32-dma.c if (chan->next_sg == chan->desc->num_sgs) num_sgs 624 drivers/dma/stm32-dma.c if (chan->next_sg == chan->desc->num_sgs) { num_sgs 883 drivers/dma/stm32-dma.c desc->num_sgs = sg_len; num_sgs 968 drivers/dma/stm32-dma.c desc->num_sgs = num_periods; num_sgs 982 drivers/dma/stm32-dma.c u32 num_sgs, best_burst, dma_burst, threshold; num_sgs 985 drivers/dma/stm32-dma.c num_sgs = DIV_ROUND_UP(len, STM32_DMA_ALIGNED_MAX_DATA_ITEMS); num_sgs 986 drivers/dma/stm32-dma.c desc = kzalloc(struct_size(desc, sg_req, num_sgs), GFP_NOWAIT); num_sgs 1020 drivers/dma/stm32-dma.c desc->num_sgs = num_sgs; num_sgs 1113 drivers/dma/stm32-dma.c if (n_sg == chan->desc->num_sgs) num_sgs 1126 drivers/dma/stm32-dma.c for (i = n_sg; i < desc->num_sgs; i++) num_sgs 301 drivers/mmc/host/ushc.c ushc->data_urb->num_sgs = 1; num_sgs 1315 drivers/net/usb/usbnet.c unsigned num_sgs, total_len = 0; num_sgs 1318 drivers/net/usb/usbnet.c num_sgs = skb_shinfo(skb)->nr_frags + 1; num_sgs 1319 drivers/net/usb/usbnet.c if (num_sgs == 1) num_sgs 1323 drivers/net/usb/usbnet.c urb->sg = kmalloc_array(num_sgs + 1, sizeof(struct scatterlist), num_sgs 1328 drivers/net/usb/usbnet.c urb->num_sgs = num_sgs; num_sgs 1329 drivers/net/usb/usbnet.c sg_init_table(urb->sg, urb->num_sgs + 1); num_sgs 1401 drivers/net/usb/usbnet.c if (skb_tailroom(skb) && !urb->num_sgs) { num_sgs 1404 drivers/net/usb/usbnet.c } else if (urb->num_sgs) num_sgs 1405 drivers/net/usb/usbnet.c sg_set_buf(&urb->sg[urb->num_sgs++], num_sgs 297 drivers/net/wireless/mediatek/mt76/usb.c for (j = nsgs; j < urb->num_sgs; j++) num_sgs 299 drivers/net/wireless/mediatek/mt76/usb.c urb->num_sgs = i; num_sgs 302 drivers/net/wireless/mediatek/mt76/usb.c urb->num_sgs = max_t(int, i, urb->num_sgs); num_sgs 303 drivers/net/wireless/mediatek/mt76/usb.c urb->transfer_buffer_length = urb->num_sgs * q->buf_size; num_sgs 304 drivers/net/wireless/mediatek/mt76/usb.c sg_init_marker(urb->sg, urb->num_sgs); num_sgs 361 drivers/net/wireless/mediatek/mt76/usb.c for (i = 0; i < urb->num_sgs; i++) num_sgs 463 drivers/net/wireless/mediatek/mt76/usb.c u8 *data = urb->num_sgs ? sg_virt(&urb->sg[0]) : urb->transfer_buffer; num_sgs 464 drivers/net/wireless/mediatek/mt76/usb.c int data_len = urb->num_sgs ? urb->sg[0].length : urb->actual_length; num_sgs 481 drivers/net/wireless/mediatek/mt76/usb.c while (len > 0 && nsgs < urb->num_sgs) { num_sgs 760 drivers/net/wireless/mediatek/mt76/usb.c urb->num_sgs = skb_to_sgvec(skb, urb->sg, 0, skb->len); num_sgs 761 drivers/net/wireless/mediatek/mt76/usb.c if (!urb->num_sgs) num_sgs 764 drivers/net/wireless/mediatek/mt76/usb.c return urb->num_sgs; num_sgs 953 drivers/scsi/qedf/qedf_io.c int num_sgs = 0; num_sgs 955 drivers/scsi/qedf/qedf_io.c num_sgs = scsi_sg_count(sc_cmd); num_sgs 959 drivers/scsi/qedf/qedf_io.c num_sgs, QEDF_MAX_BDS_PER_CMD); num_sgs 139 drivers/staging/mt7621-dma/mtk-hsdma.c unsigned int num_sgs; num_sgs 327 drivers/staging/mt7621-dma/mtk-hsdma.c chan->desc->num_sgs = DIV_ROUND_UP(len, HSDMA_MAX_PLEN); num_sgs 331 drivers/staging/mt7621-dma/mtk-hsdma.c for (i = 0; i < chan->desc->num_sgs; i++) { num_sgs 362 drivers/staging/mt7621-dma/mtk-hsdma.c for (i = 0; i < chan->desc->num_sgs; i++) { num_sgs 411 drivers/staging/mt7621-dma/mtk-hsdma.c if (chan->next_sg == desc->num_sgs) { num_sgs 430 drivers/staging/octeon-usb/octeon-hcd.c if (urb->num_sgs || urb->sg || num_sgs 103 drivers/staging/ralink-gdma/ralink-gdma.c unsigned int num_sgs; num_sgs 441 drivers/staging/ralink-gdma/ralink-gdma.c if (chan->next_sg == desc->num_sgs) num_sgs 446 drivers/staging/ralink-gdma/ralink-gdma.c if (chan->next_sg == desc->num_sgs) { num_sgs 550 drivers/staging/ralink-gdma/ralink-gdma.c desc->num_sgs = sg_len; num_sgs 597 drivers/staging/ralink-gdma/ralink-gdma.c desc->num_sgs = num_periods; num_sgs 644 drivers/staging/ralink-gdma/ralink-gdma.c desc->num_sgs = num_periods; num_sgs 648 drivers/staging/wusbcore/host/whci/qset.c if (urb->num_sgs) { num_sgs 1090 drivers/staging/wusbcore/wa-xfer.c seg->dto_urb->num_sgs = 0; num_sgs 1115 drivers/staging/wusbcore/wa-xfer.c seg->dto_urb->num_sgs = 0; num_sgs 1128 drivers/staging/wusbcore/wa-xfer.c seg->dto_urb->num_sgs = 0; num_sgs 1141 drivers/staging/wusbcore/wa-xfer.c &(seg->dto_urb->num_sgs)); num_sgs 2210 drivers/staging/wusbcore/wa-xfer.c buf_in_urb->num_sgs = 0; num_sgs 2234 drivers/staging/wusbcore/wa-xfer.c buf_in_urb->num_sgs = 0; num_sgs 2244 drivers/staging/wusbcore/wa-xfer.c buf_in_urb->num_sgs = 0; num_sgs 2254 drivers/staging/wusbcore/wa-xfer.c &(buf_in_urb->num_sgs)); num_sgs 2257 drivers/staging/wusbcore/wa-xfer.c buf_in_urb->num_sgs = 0; num_sgs 833 drivers/usb/cdns3/gadget.c num_trb = request->num_sgs ? request->num_sgs : 1; num_sgs 902 drivers/usb/cdns3/gadget.c trb->buffer = TRB_BUFFER(request->num_sgs == 0 num_sgs 905 drivers/usb/cdns3/gadget.c if (likely(!request->num_sgs)) num_sgs 400 drivers/usb/core/devio.c for (i = 0; i < as->urb->num_sgs; i++) { num_sgs 519 drivers/usb/core/devio.c if (urb->num_sgs == 0) { num_sgs 525 drivers/usb/core/devio.c for (i = 0; i < urb->num_sgs && len; i++) { num_sgs 542 drivers/usb/core/devio.c if (urb->num_sgs == 0) { num_sgs 548 drivers/usb/core/devio.c for (i = 0; i < urb->num_sgs && len; i++) { num_sgs 1512 drivers/usb/core/devio.c int i, ret, num_sgs = 0, ifnum = -1; num_sgs 1607 drivers/usb/core/devio.c num_sgs = DIV_ROUND_UP(uurb->buffer_length, USB_SG_SIZE); num_sgs 1608 drivers/usb/core/devio.c if (num_sgs == 1 || num_sgs > ps->dev->bus->sg_tablesize) num_sgs 1609 drivers/usb/core/devio.c num_sgs = 0; num_sgs 1681 drivers/usb/core/devio.c num_sgs = 0; num_sgs 1685 drivers/usb/core/devio.c num_sgs * sizeof(struct scatterlist); num_sgs 1691 drivers/usb/core/devio.c if (num_sgs) { num_sgs 1692 drivers/usb/core/devio.c as->urb->sg = kmalloc_array(num_sgs, num_sgs 1699 drivers/usb/core/devio.c as->urb->num_sgs = num_sgs; num_sgs 1700 drivers/usb/core/devio.c sg_init_table(as->urb->sg, as->urb->num_sgs); num_sgs 1703 drivers/usb/core/devio.c for (i = 0; i < as->urb->num_sgs; i++) { num_sgs 1361 drivers/usb/core/hcd.c urb->num_sgs, num_sgs 1456 drivers/usb/core/hcd.c if (urb->num_sgs) { num_sgs 1468 drivers/usb/core/hcd.c urb->num_sgs, num_sgs 1475 drivers/usb/core/hcd.c if (n != urb->num_sgs) num_sgs 424 drivers/usb/core/message.c urb->num_sgs = nents; num_sgs 457 drivers/usb/core/urb.c } else if (urb->num_sgs && !urb->dev->bus->no_sg_constraint && num_sgs 462 drivers/usb/core/urb.c for_each_sg(urb->sg, sg, urb->num_sgs - 1, i) num_sgs 851 drivers/usb/dwc2/gadget.c if (!ureq || !ureq->num_sgs) { num_sgs 858 drivers/usb/dwc2/gadget.c for_each_sg(ureq->sg, sg, ureq->num_sgs, i) { num_sgs 981 drivers/usb/dwc2/gadget.c if (hs_req->req.num_sgs) { num_sgs 982 drivers/usb/dwc2/gadget.c WARN_ON(hs_req->req.num_sgs > 1); num_sgs 1444 drivers/usb/dwc2/gadget.c if (hs_req->req.num_sgs) { num_sgs 1445 drivers/usb/dwc2/gadget.c WARN_ON(hs_req->req.num_sgs > 1); num_sgs 2507 drivers/usb/dwc2/hcd.c if (urb->num_sgs || urb->sg || num_sgs 1033 drivers/usb/dwc3/gadget.c if (req->request.num_sgs > 0) { num_sgs 1062 drivers/usb/gadget/function/f_fs.c req->num_sgs = io_data->sgt.nents; num_sgs 1065 drivers/usb/gadget/function/f_fs.c req->num_sgs = 0; num_sgs 1106 drivers/usb/gadget/function/f_fs.c req->num_sgs = io_data->sgt.nents; num_sgs 1109 drivers/usb/gadget/function/f_fs.c req->num_sgs = 0; num_sgs 228 drivers/usb/gadget/function/f_tcm.c fu->bot_req_in->num_sgs = se_cmd->t_data_nents; num_sgs 267 drivers/usb/gadget/function/f_tcm.c fu->bot_req_out->num_sgs = se_cmd->t_data_nents; num_sgs 530 drivers/usb/gadget/function/f_tcm.c stream->req_in->num_sgs = se_cmd->t_data_nents; num_sgs 962 drivers/usb/gadget/function/f_tcm.c if (req->num_sgs == 0) { num_sgs 990 drivers/usb/gadget/function/f_tcm.c req->num_sgs = se_cmd->t_data_nents; num_sgs 820 drivers/usb/gadget/udc/core.c if (req->num_sgs) { num_sgs 823 drivers/usb/gadget/udc/core.c mapped = dma_map_sg(dev, req->sg, req->num_sgs, num_sgs 869 drivers/usb/gadget/udc/core.c dma_unmap_sg(dev, req->sg, req->num_sgs, num_sgs 1327 drivers/usb/gadget/udc/dummy_hcd.c if (!urb->num_sgs) { num_sgs 1344 drivers/usb/gadget/udc/dummy_hcd.c sg_miter_start(miter, urb->sg, urb->num_sgs, flags); num_sgs 220 drivers/usb/gadget/udc/trace.h __field(unsigned, num_sgs) num_sgs 234 drivers/usb/gadget/udc/trace.h __entry->num_sgs = req->num_sgs; num_sgs 246 drivers/usb/gadget/udc/trace.h __entry->num_mapped_sgs, __entry->num_sgs, __entry->stream_id, num_sgs 320 drivers/usb/host/ehci-tegra.c if (urb->num_sgs || urb->sg || num_sgs 698 drivers/usb/host/xhci-ring.c len = sg_pcopy_from_buffer(urb->sg, urb->num_sgs, seg->bounce_buf, num_sgs 3264 drivers/usb/host/xhci-ring.c len = sg_pcopy_to_buffer(urb->sg, urb->num_sgs, num_sgs 3304 drivers/usb/host/xhci-ring.c unsigned int start_cycle, num_sgs = 0; num_sgs 3316 drivers/usb/host/xhci-ring.c if (urb->num_sgs) { num_sgs 3317 drivers/usb/host/xhci-ring.c num_sgs = urb->num_mapped_sgs; num_sgs 3422 drivers/usb/host/xhci-ring.c --num_sgs; num_sgs 3425 drivers/usb/host/xhci-ring.c if (num_sgs != 0 && sg) { num_sgs 267 drivers/usb/host/xhci-trace.h __field(int, num_sgs) num_sgs 282 drivers/usb/host/xhci-trace.h __entry->num_sgs = urb->num_sgs; num_sgs 299 drivers/usb/host/xhci-trace.h __entry->num_sgs, __entry->stream, __entry->flags num_sgs 2190 drivers/usb/host/xhci.h !urb->num_sgs) num_sgs 412 drivers/usb/mon/mon_bin.c if (urb->num_sgs == 0) { num_sgs 428 drivers/usb/mon/mon_bin.c for_each_sg(urb->sg, sg, urb->num_sgs, i) { num_sgs 163 drivers/usb/mon/mon_text.c if (urb->num_sgs == 0) { num_sgs 2610 drivers/usb/musb/musb_host.c if (urb->num_sgs || urb->sg || num_sgs 200 drivers/usb/renesas_usbhs/mod_gadget.c WARN_ON(req->num_sgs); num_sgs 925 drivers/usb/renesas_usbhs/mod_host.c if (urb->num_sgs) num_sgs 461 drivers/usb/storage/uas.c urb->num_sgs = udev->bus->sg_tablesize ? sdb->table.nents : 0; num_sgs 312 drivers/usb/usbip/stub_main.c if (urb->num_sgs) { num_sgs 315 drivers/usb/usbip/stub_main.c urb->num_sgs = 0; num_sgs 542 drivers/usb/usbip/stub_rx.c priv->urbs[0]->num_sgs = nents; num_sgs 176 drivers/usb/usbip/stub_tx.c !urb->num_sgs) { num_sgs 186 drivers/usb/usbip/stub_tx.c urb->num_sgs) num_sgs 187 drivers/usb/usbip/stub_tx.c iovnum = 1 + urb->num_sgs; num_sgs 240 drivers/usb/usbip/stub_tx.c if (urb->num_sgs) { num_sgs 244 drivers/usb/usbip/stub_tx.c for_each_sg(urb->sg, sg, urb->num_sgs, i) { num_sgs 712 drivers/usb/usbip/usbip_common.c if (urb->num_sgs) { num_sgs 714 drivers/usb/usbip/usbip_common.c for_each_sg(urb->sg, sg, urb->num_sgs, i) { num_sgs 700 drivers/usb/usbip/vhci_hcd.c if (!urb->transfer_buffer && !urb->num_sgs && num_sgs 98 drivers/usb/usbip/vhci_rx.c if (urb->num_sgs) num_sgs 80 drivers/usb/usbip/vhci_tx.c if (urb->num_sgs && usb_pipeout(urb->pipe)) num_sgs 81 drivers/usb/usbip/vhci_tx.c iovnum = 2 + urb->num_sgs; num_sgs 91 drivers/usb/usbip/vhci_tx.c if (urb->num_sgs) num_sgs 106 drivers/usb/usbip/vhci_tx.c if (urb->num_sgs && num_sgs 108 drivers/usb/usbip/vhci_tx.c for_each_sg(urb->sg, sg, urb->num_sgs, i) { num_sgs 985 fs/cifs/smbdirect.c int num_sgs; num_sgs 995 fs/cifs/smbdirect.c num_sgs = sgl ? sg_nents(sgl) : 0; num_sgs 996 fs/cifs/smbdirect.c for_each_sg(sgl, sg, num_sgs, i) { num_sgs 1573 include/linux/usb.h int num_sgs; /* (in) number of entries in the sg list */ num_sgs 103 include/linux/usb/gadget.h unsigned num_sgs; num_sgs 338 net/rds/message.c int num_sgs = DIV_ROUND_UP(total_len, PAGE_SIZE); num_sgs 339 net/rds/message.c int extra_bytes = num_sgs * sizeof(struct scatterlist); num_sgs 348 net/rds/message.c rm->data.op_sg = rds_message_alloc_sgs(rm, num_sgs); num_sgs 889 net/rds/send.c static int rds_rm_size(struct msghdr *msg, int num_sgs, num_sgs 899 net/rds/send.c if (num_sgs < 0) num_sgs 962 net/rds/send.c size += num_sgs * sizeof(struct scatterlist); num_sgs 1120 net/rds/send.c int num_sgs = DIV_ROUND_UP(payload_len, PAGE_SIZE); num_sgs 1262 net/rds/send.c num_sgs = iov_iter_npages(&msg->msg_iter, INT_MAX); num_sgs 1265 net/rds/send.c ret = rds_rm_size(msg, num_sgs, &vct); num_sgs 1277 net/rds/send.c rm->data.op_sg = rds_message_alloc_sgs(rm, num_sgs);