/linux-4.4.14/drivers/dma/ |
D | dma-jz4740.c | 111 unsigned int num_sgs; member 174 static struct jz4740_dma_desc *jz4740_dma_alloc_desc(unsigned int num_sgs) in jz4740_dma_alloc_desc() argument 177 sizeof(struct jz4740_dma_sg) * num_sgs, GFP_ATOMIC); in jz4740_dma_alloc_desc() 307 if (chan->next_sg == chan->desc->num_sgs) in jz4740_dma_start_transfer() 345 if (chan->next_sg == chan->desc->num_sgs) { in jz4740_dma_chan_irq() 408 desc->num_sgs = sg_len; in jz4740_dma_prep_slave_sg() 439 desc->num_sgs = num_periods; in jz4740_dma_prep_dma_cyclic() 455 for (i = next_sg; i < desc->num_sgs; i++) in jz4740_dma_desc_residue()
|
D | dma-axi-dmac.c | 91 unsigned int num_sgs; member 204 if (desc->num_submitted == desc->num_sgs) in axi_dmac_start_transfer() 258 if (active->num_completed == active->num_sgs) { in axi_dmac_transfer_done() 324 static struct axi_dmac_desc *axi_dmac_alloc_desc(unsigned int num_sgs) in axi_dmac_alloc_desc() argument 329 sizeof(struct axi_dmac_sg) * num_sgs, GFP_NOWAIT); in axi_dmac_alloc_desc() 333 desc->num_sgs = num_sgs; in axi_dmac_alloc_desc()
|
/linux-4.4.14/net/rds/ |
D | message.c | 242 int num_sgs = ceil(total_len, PAGE_SIZE); in rds_message_map_pages() local 243 int extra_bytes = num_sgs * sizeof(struct scatterlist); in rds_message_map_pages() 252 rm->data.op_sg = rds_message_alloc_sgs(rm, num_sgs); in rds_message_map_pages()
|
/linux-4.4.14/drivers/usb/core/ |
D | devio.c | 296 for (i = 0; i < as->urb->num_sgs; i++) { in free_async() 408 if (urb->num_sgs == 0) { in snoop_urb_data() 414 for (i = 0; i < urb->num_sgs && len; i++) { in snoop_urb_data() 431 if (urb->num_sgs == 0) { in copy_urb_data_to_user() 437 for (i = 0; i < urb->num_sgs && len; i++) { in copy_urb_data_to_user() 1295 int i, ret, is_in, num_sgs = 0, ifnum = -1; in proc_do_submiturb() local 1375 num_sgs = DIV_ROUND_UP(uurb->buffer_length, USB_SG_SIZE); in proc_do_submiturb() 1376 if (num_sgs == 1 || num_sgs > ps->dev->bus->sg_tablesize) in proc_do_submiturb() 1377 num_sgs = 0; in proc_do_submiturb() 1443 num_sgs * sizeof(struct scatterlist); in proc_do_submiturb() [all …]
|
D | urb.c | 427 } else if (urb->num_sgs && !urb->dev->bus->no_sg_constraint && in usb_submit_urb() 432 for_each_sg(urb->sg, sg, urb->num_sgs - 1, i) in usb_submit_urb()
|
D | hcd.c | 1446 urb->num_sgs, in usb_hcd_unmap_urb_for_dma() 1522 if (urb->num_sgs) { in usb_hcd_map_urb_for_dma() 1534 urb->num_sgs, in usb_hcd_map_urb_for_dma() 1541 if (n != urb->num_sgs) in usb_hcd_map_urb_for_dma()
|
D | message.c | 416 urb->num_sgs = nents; in usb_sg_init()
|
/linux-4.4.14/drivers/crypto/ |
D | mv_cesa.c | 533 int num_sgs; in mv_start_new_crypt_req() local 542 num_sgs = count_sgs(req->src, req->nbytes); in mv_start_new_crypt_req() 543 sg_miter_start(&p->src_sg_it, req->src, num_sgs, SG_MITER_FROM_SG); in mv_start_new_crypt_req() 545 num_sgs = count_sgs(req->dst, req->nbytes); in mv_start_new_crypt_req() 546 sg_miter_start(&p->dst_sg_it, req->dst, num_sgs, SG_MITER_TO_SG); in mv_start_new_crypt_req() 555 int num_sgs, hw_bytes, old_extra_bytes, rc; in mv_start_new_hash_req() local 568 num_sgs = count_sgs(req->src, req->nbytes); in mv_start_new_hash_req() 569 sg_miter_start(&p->src_sg_it, req->src, num_sgs, SG_MITER_FROM_SG); in mv_start_new_hash_req()
|
/linux-4.4.14/drivers/net/usb/ |
D | usbnet.c | 1272 unsigned num_sgs, total_len = 0; in build_dma_sg() local 1275 num_sgs = skb_shinfo(skb)->nr_frags + 1; in build_dma_sg() 1276 if (num_sgs == 1) in build_dma_sg() 1280 urb->sg = kmalloc((num_sgs + 1) * sizeof(struct scatterlist), in build_dma_sg() 1285 urb->num_sgs = num_sgs; in build_dma_sg() 1286 sg_init_table(urb->sg, urb->num_sgs + 1); in build_dma_sg() 1358 if (skb_tailroom(skb) && !urb->num_sgs) { in usbnet_start_xmit() 1361 } else if (urb->num_sgs) in usbnet_start_xmit() 1362 sg_set_buf(&urb->sg[urb->num_sgs++], in usbnet_start_xmit()
|
/linux-4.4.14/drivers/usb/wusbcore/ |
D | wa-xfer.c | 1104 seg->dto_urb->num_sgs = 0; in __wa_populate_dto_urb_isoc() 1129 seg->dto_urb->num_sgs = 0; in __wa_populate_dto_urb() 1142 seg->dto_urb->num_sgs = 0; in __wa_populate_dto_urb() 1155 &(seg->dto_urb->num_sgs)); in __wa_populate_dto_urb() 2222 buf_in_urb->num_sgs = 0; in __wa_populate_buf_in_urb_isoc() 2246 buf_in_urb->num_sgs = 0; in wa_populate_buf_in_urb() 2256 buf_in_urb->num_sgs = 0; in wa_populate_buf_in_urb() 2266 &(buf_in_urb->num_sgs)); in wa_populate_buf_in_urb() 2269 buf_in_urb->num_sgs = 0; in wa_populate_buf_in_urb()
|
/linux-4.4.14/drivers/usb/gadget/udc/ |
D | udc-core.c | 68 if (req->num_sgs) { in usb_gadget_map_request() 71 mapped = dma_map_sg(dev, req->sg, req->num_sgs, in usb_gadget_map_request()
|
D | dummy_hcd.c | 1293 if (!urb->num_sgs) { in dummy_perform_transfer() 1310 sg_miter_start(miter, urb->sg, urb->num_sgs, flags); in dummy_perform_transfer()
|
/linux-4.4.14/drivers/usb/gadget/legacy/ |
D | tcm_usb_gadget.c | 233 fu->bot_req_in->num_sgs = se_cmd->t_data_nents; in bot_send_read_response() 272 fu->bot_req_out->num_sgs = se_cmd->t_data_nents; in bot_send_write_request() 537 stream->req_in->num_sgs = se_cmd->t_data_nents; in uasp_prepare_r_request() 968 if (req->num_sgs == 0) { in usbg_data_write_cmpl() 996 req->num_sgs = se_cmd->t_data_nents; in usbg_prepare_w_request()
|
/linux-4.4.14/drivers/usb/host/ |
D | xhci-ring.c | 2942 int num_sgs, num_trbs, running_total, temp, i; in count_sg_trbs_needed() local 2946 num_sgs = urb->num_mapped_sgs; in count_sg_trbs_needed() 2950 for_each_sg(urb->sg, sg, num_sgs, i) { in count_sg_trbs_needed() 3092 int num_sgs; in queue_bulk_sg_tx() local 3109 num_sgs = urb->num_mapped_sgs; in queue_bulk_sg_tx() 3230 --num_sgs; in queue_bulk_sg_tx() 3231 if (num_sgs == 0) in queue_bulk_sg_tx() 3274 if (urb->num_sgs) in xhci_queue_bulk_tx()
|
D | ehci-tegra.c | 334 if (urb->num_sgs || urb->sg || in alloc_dma_aligned_buffer()
|
/linux-4.4.14/include/linux/usb/ |
D | gadget.h | 97 unsigned num_sgs; member
|
/linux-4.4.14/drivers/usb/mon/ |
D | mon_bin.c | 409 if (urb->num_sgs == 0) { in mon_bin_get_data() 425 for_each_sg(urb->sg, sg, urb->num_sgs, i) { in mon_bin_get_data()
|
D | mon_text.c | 158 if (urb->num_sgs == 0) { in mon_text_get_data()
|
/linux-4.4.14/drivers/usb/host/whci/ |
D | qset.c | 656 if (urb->num_sgs) { in qset_add_urb()
|
/linux-4.4.14/include/linux/ |
D | usb.h | 1477 int num_sgs; /* (in) number of entries in the sg list */ member
|
/linux-4.4.14/drivers/usb/renesas_usbhs/ |
D | mod_gadget.c | 208 WARN_ON(req->num_sgs); in usbhsg_dma_map_ctrl()
|
D | mod_host.c | 939 if (urb->num_sgs) in usbhsh_dma_map_ctrl()
|
/linux-4.4.14/drivers/usb/storage/ |
D | uas.c | 417 urb->num_sgs = udev->bus->sg_tablesize ? sdb->table.nents : 0; in uas_alloc_data_urb()
|
/linux-4.4.14/drivers/staging/octeon-usb/ |
D | octeon-hcd.c | 473 if (urb->num_sgs || urb->sg || in octeon_alloc_temp_buffer()
|
/linux-4.4.14/drivers/usb/musb/ |
D | musb_host.c | 2665 if (urb->num_sgs || urb->sg || in musb_alloc_temp_buffer()
|