Home
last modified time | relevance | path

Searched refs:num_sgs (Results 1 – 21 of 21) sorted by relevance

/drivers/dma/
Ddma-jz4740.c115 unsigned int num_sgs; member
178 static struct jz4740_dma_desc *jz4740_dma_alloc_desc(unsigned int num_sgs) in jz4740_dma_alloc_desc() argument
181 sizeof(struct jz4740_dma_sg) * num_sgs, GFP_ATOMIC); in jz4740_dma_alloc_desc()
326 if (chan->next_sg == chan->desc->num_sgs) in jz4740_dma_start_transfer()
364 if (chan->next_sg == chan->desc->num_sgs) { in jz4740_dma_chan_irq()
427 desc->num_sgs = sg_len; in jz4740_dma_prep_slave_sg()
458 desc->num_sgs = num_periods; in jz4740_dma_prep_dma_cyclic()
474 for (i = next_sg; i < desc->num_sgs; i++) in jz4740_dma_desc_residue()
/drivers/usb/core/
Ddevio.c292 for (i = 0; i < as->urb->num_sgs; i++) { in free_async()
404 if (urb->num_sgs == 0) { in snoop_urb_data()
410 for (i = 0; i < urb->num_sgs && len; i++) { in snoop_urb_data()
427 if (urb->num_sgs == 0) { in copy_urb_data_to_user()
433 for (i = 0; i < urb->num_sgs && len; i++) { in copy_urb_data_to_user()
1290 int i, ret, is_in, num_sgs = 0, ifnum = -1; in proc_do_submiturb() local
1376 num_sgs = DIV_ROUND_UP(uurb->buffer_length, USB_SG_SIZE); in proc_do_submiturb()
1377 if (num_sgs == 1 || num_sgs > ps->dev->bus->sg_tablesize) in proc_do_submiturb()
1378 num_sgs = 0; in proc_do_submiturb()
1439 num_sgs * sizeof(struct scatterlist); in proc_do_submiturb()
[all …]
Durb.c428 } else if (urb->num_sgs && !urb->dev->bus->no_sg_constraint && in usb_submit_urb()
433 for_each_sg(urb->sg, sg, urb->num_sgs - 1, i) in usb_submit_urb()
Dhcd.c1395 urb->num_sgs, in usb_hcd_unmap_urb_for_dma()
1471 if (urb->num_sgs) { in usb_hcd_map_urb_for_dma()
1483 urb->num_sgs, in usb_hcd_map_urb_for_dma()
1490 if (n != urb->num_sgs) in usb_hcd_map_urb_for_dma()
Dmessage.c416 urb->num_sgs = nents; in usb_sg_init()
/drivers/crypto/
Dmv_cesa.c528 int num_sgs; in mv_start_new_crypt_req() local
537 num_sgs = count_sgs(req->src, req->nbytes); in mv_start_new_crypt_req()
538 sg_miter_start(&p->src_sg_it, req->src, num_sgs, SG_MITER_FROM_SG); in mv_start_new_crypt_req()
540 num_sgs = count_sgs(req->dst, req->nbytes); in mv_start_new_crypt_req()
541 sg_miter_start(&p->dst_sg_it, req->dst, num_sgs, SG_MITER_TO_SG); in mv_start_new_crypt_req()
550 int num_sgs, hw_bytes, old_extra_bytes, rc; in mv_start_new_hash_req() local
563 num_sgs = count_sgs(req->src, req->nbytes); in mv_start_new_hash_req()
564 sg_miter_start(&p->src_sg_it, req->src, num_sgs, SG_MITER_FROM_SG); in mv_start_new_hash_req()
/drivers/net/usb/
Dusbnet.c1255 unsigned num_sgs, total_len = 0; in build_dma_sg() local
1258 num_sgs = skb_shinfo(skb)->nr_frags + 1; in build_dma_sg()
1259 if (num_sgs == 1) in build_dma_sg()
1263 urb->sg = kmalloc((num_sgs + 1) * sizeof(struct scatterlist), in build_dma_sg()
1268 urb->num_sgs = num_sgs; in build_dma_sg()
1269 sg_init_table(urb->sg, urb->num_sgs + 1); in build_dma_sg()
1341 if (skb_tailroom(skb) && !urb->num_sgs) { in usbnet_start_xmit()
1344 } else if (urb->num_sgs) in usbnet_start_xmit()
1345 sg_set_buf(&urb->sg[urb->num_sgs++], in usbnet_start_xmit()
/drivers/usb/wusbcore/
Dwa-xfer.c1104 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()
/drivers/usb/gadget/udc/
Dudc-core.c63 if (req->num_sgs) { in usb_gadget_map_request()
66 mapped = dma_map_sg(&gadget->dev, req->sg, req->num_sgs, in usb_gadget_map_request()
Ddummy_hcd.c1244 if (!urb->num_sgs) { in dummy_perform_transfer()
1261 sg_miter_start(miter, urb->sg, urb->num_sgs, flags); in dummy_perform_transfer()
/drivers/usb/host/
Dxhci-ring.c2917 int num_sgs, num_trbs, running_total, temp, i; in count_sg_trbs_needed() local
2921 num_sgs = urb->num_mapped_sgs; in count_sg_trbs_needed()
2925 for_each_sg(urb->sg, sg, num_sgs, i) { in count_sg_trbs_needed()
3076 int num_sgs; in queue_bulk_sg_tx() local
3093 num_sgs = urb->num_mapped_sgs; in queue_bulk_sg_tx()
3219 --num_sgs; in queue_bulk_sg_tx()
3220 if (num_sgs == 0) in queue_bulk_sg_tx()
3263 if (urb->num_sgs) in xhci_queue_bulk_tx()
Dehci-tegra.c328 if (urb->num_sgs || urb->sg || in alloc_dma_aligned_buffer()
/drivers/usb/gadget/legacy/
Dtcm_usb_gadget.c239 fu->bot_req_in->num_sgs = se_cmd->t_data_nents; in bot_send_read_response()
278 fu->bot_req_out->num_sgs = se_cmd->t_data_nents; in bot_send_write_request()
543 stream->req_in->num_sgs = se_cmd->t_data_nents; in uasp_prepare_r_request()
974 if (req->num_sgs == 0) { in usbg_data_write_cmpl()
1002 req->num_sgs = se_cmd->t_data_nents; in usbg_prepare_w_request()
/drivers/usb/mon/
Dmon_bin.c409 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()
Dmon_text.c158 if (urb->num_sgs == 0) { in mon_text_get_data()
/drivers/usb/host/whci/
Dqset.c656 if (urb->num_sgs) { in qset_add_urb()
/drivers/usb/renesas_usbhs/
Dmod_gadget.c203 WARN_ON(req->num_sgs); in usbhsg_dma_map_ctrl()
Dmod_host.c939 if (urb->num_sgs) in usbhsh_dma_map_ctrl()
/drivers/usb/storage/
Duas.c431 urb->num_sgs = udev->bus->sg_tablesize ? sdb->table.nents : 0; in uas_alloc_data_urb()
/drivers/usb/musb/
Dmusb_host.c2546 if (urb->num_sgs || urb->sg || in musb_alloc_temp_buffer()
/drivers/staging/octeon-usb/
Docteon-hcd.c472 if (urb->num_sgs || urb->sg || in octeon_alloc_temp_buffer()