Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/usb/usbip/
Dvhci_tx.c80 if (urb->num_sgs && usb_pipeout(urb->pipe)) in vhci_send_cmd_submit()
81 iovnum = 2 + urb->num_sgs; in vhci_send_cmd_submit()
91 if (urb->num_sgs) in vhci_send_cmd_submit()
106 if (urb->num_sgs && in vhci_send_cmd_submit()
108 for_each_sg(urb->sg, sg, urb->num_sgs, i) { in vhci_send_cmd_submit()
Dstub_tx.c176 !urb->num_sgs) { in stub_send_ret_submit()
186 urb->num_sgs) in stub_send_ret_submit()
187 iovnum = 1 + urb->num_sgs; in stub_send_ret_submit()
240 if (urb->num_sgs) { in stub_send_ret_submit()
244 for_each_sg(urb->sg, sg, urb->num_sgs, i) { in stub_send_ret_submit()
Dstub_main.c312 if (urb->num_sgs) { in stub_free_priv_and_urb()
315 urb->num_sgs = 0; in stub_free_priv_and_urb()
Dvhci_rx.c98 if (urb->num_sgs) in vhci_recv_ret_submit()
Dusbip_common.c712 if (urb->num_sgs) { in usbip_recv_xbuff()
714 for_each_sg(urb->sg, sg, urb->num_sgs, i) { in usbip_recv_xbuff()
Dstub_rx.c542 priv->urbs[0]->num_sgs = nents; in stub_recv_cmd_submit()
/kernel/linux/linux-5.10/drivers/dma/
Ddma-axi-dmac.c115 unsigned int num_sgs; member
234 if (desc->num_submitted == desc->num_sgs || in axi_dmac_start_transfer()
263 desc->num_sgs == 1) in axi_dmac_start_transfer()
304 for (i = 0; i < desc->num_sgs; i++) { in axi_dmac_dequeue_partial_xfers()
351 for (i = start; i < active->num_sgs; i++) { in axi_dmac_compute_residue()
392 if (active->num_completed == active->num_sgs || in axi_dmac_transfer_done()
475 static struct axi_dmac_desc *axi_dmac_alloc_desc(unsigned int num_sgs) in axi_dmac_alloc_desc() argument
480 desc = kzalloc(struct_size(desc, sg, num_sgs), GFP_NOWAIT); in axi_dmac_alloc_desc()
484 for (i = 0; i < num_sgs; i++) in axi_dmac_alloc_desc()
487 desc->num_sgs = num_sgs; in axi_dmac_alloc_desc()
[all …]
Dstm32-dma.c192 u32 num_sgs; member
557 if (chan->next_sg == chan->desc->num_sgs) in stm32_dma_start_transfer()
602 if (chan->next_sg == chan->desc->num_sgs) in stm32_dma_configure_next_sg()
630 if (chan->next_sg == chan->desc->num_sgs) { in stm32_dma_handle_chan_done()
896 desc->num_sgs = sg_len; in stm32_dma_prep_slave_sg()
981 desc->num_sgs = num_periods; in stm32_dma_prep_dma_cyclic()
995 u32 num_sgs, best_burst, dma_burst, threshold; in stm32_dma_prep_dma_memcpy() local
998 num_sgs = DIV_ROUND_UP(len, STM32_DMA_ALIGNED_MAX_DATA_ITEMS); in stm32_dma_prep_dma_memcpy()
999 desc = kzalloc(struct_size(desc, sg_req, num_sgs), GFP_NOWAIT); in stm32_dma_prep_dma_memcpy()
1033 desc->num_sgs = num_sgs; in stm32_dma_prep_dma_memcpy()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dusb.c396 for (j = nsgs; j < urb->num_sgs; j++) in mt76u_fill_rx_sg()
398 urb->num_sgs = i; in mt76u_fill_rx_sg()
401 urb->num_sgs = max_t(int, i, urb->num_sgs); in mt76u_fill_rx_sg()
402 urb->transfer_buffer_length = urb->num_sgs * q->buf_size; in mt76u_fill_rx_sg()
403 sg_init_marker(urb->sg, urb->num_sgs); in mt76u_fill_rx_sg()
463 for (i = 0; i < urb->num_sgs; i++) in mt76u_urb_free()
570 u8 *data = urb->num_sgs ? sg_virt(&urb->sg[0]) : urb->transfer_buffer; in mt76u_process_rx_entry()
571 int data_len = urb->num_sgs ? urb->sg[0].length : urb->actual_length; in mt76u_process_rx_entry()
589 while (len > 0 && nsgs < urb->num_sgs) { in mt76u_process_rx_entry()
882 urb->num_sgs = skb_to_sgvec(skb, urb->sg, 0, skb->len); in mt76u_tx_setup_buffers()
[all …]
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
Dtrace.h220 __field(unsigned, num_sgs)
234 __entry->num_sgs = req->num_sgs;
246 __entry->num_mapped_sgs, __entry->num_sgs, __entry->stream_id,
Dcore.c823 if (req->num_sgs) { in usb_gadget_map_request_by_dev()
826 mapped = dma_map_sg(dev, req->sg, req->num_sgs, in usb_gadget_map_request_by_dev()
872 dma_unmap_sg(dev, req->sg, req->num_sgs, in usb_gadget_unmap_request_by_dev()
/kernel/linux/linux-5.10/drivers/usb/core/
Ddevio.c400 for (i = 0; i < as->urb->num_sgs; i++) { in free_async()
519 if (urb->num_sgs == 0) { in snoop_urb_data()
525 for (i = 0; i < urb->num_sgs && len; i++) { in snoop_urb_data()
542 if (urb->num_sgs == 0) { in copy_urb_data_to_user()
548 for (i = 0; i < urb->num_sgs && len; i++) { in copy_urb_data_to_user()
1522 int i, ret, num_sgs = 0, ifnum = -1; in proc_do_submiturb() local
1617 num_sgs = DIV_ROUND_UP(uurb->buffer_length, USB_SG_SIZE); in proc_do_submiturb()
1618 if (num_sgs == 1 || num_sgs > ps->dev->bus->sg_tablesize) in proc_do_submiturb()
1619 num_sgs = 0; in proc_do_submiturb()
1691 num_sgs = 0; in proc_do_submiturb()
[all …]
Durb.c472 } else if (urb->num_sgs && !urb->dev->bus->no_sg_constraint && in usb_submit_urb()
477 for_each_sg(urb->sg, sg, urb->num_sgs - 1, i) in usb_submit_urb()
Dhcd.c1369 urb->num_sgs, in usb_hcd_unmap_urb_for_dma()
1461 if (urb->num_sgs) { in usb_hcd_map_urb_for_dma()
1473 urb->num_sgs, in usb_hcd_map_urb_for_dma()
1480 if (n != urb->num_sgs) in usb_hcd_map_urb_for_dma()
/kernel/linux/linux-5.10/drivers/staging/mt7621-dma/
Dhsdma-mt7621.c139 unsigned int num_sgs; member
326 chan->desc->num_sgs = DIV_ROUND_UP(len, HSDMA_MAX_PLEN); in mtk_hsdma_start_transfer()
330 for (i = 0; i < chan->desc->num_sgs; i++) { in mtk_hsdma_start_transfer()
361 for (i = 0; i < chan->desc->num_sgs; i++) { in mtk_hsdma_start_transfer()
410 if (chan->next_sg == desc->num_sgs) { in mtk_hsdma_chan_done()
/kernel/linux/linux-5.10/drivers/staging/ralink-gdma/
Dralink-gdma.c103 unsigned int num_sgs; member
441 if (chan->next_sg == desc->num_sgs) in gdma_dma_chan_irq()
446 if (chan->next_sg == desc->num_sgs) { in gdma_dma_chan_irq()
550 desc->num_sgs = sg_len; in gdma_dma_prep_slave_sg()
597 desc->num_sgs = num_periods; in gdma_dma_prep_dma_memcpy()
644 desc->num_sgs = num_periods; in gdma_dma_prep_dma_cyclic()
/kernel/linux/linux-5.10/net/rds/
Dsend.c889 static int rds_rm_size(struct msghdr *msg, int num_sgs, in rds_rm_size() argument
899 if (num_sgs < 0) in rds_rm_size()
962 size += num_sgs * sizeof(struct scatterlist); in rds_rm_size()
1120 int num_sgs = DIV_ROUND_UP(payload_len, PAGE_SIZE); in rds_sendmsg() local
1262 num_sgs = iov_iter_npages(&msg->msg_iter, INT_MAX); in rds_sendmsg()
1265 ret = rds_rm_size(msg, num_sgs, &vct); in rds_sendmsg()
1277 rm->data.op_sg = rds_message_alloc_sgs(rm, num_sgs); in rds_sendmsg()
Dmessage.c338 int num_sgs = DIV_ROUND_UP(total_len, PAGE_SIZE); in rds_message_map_pages() local
339 int extra_bytes = num_sgs * sizeof(struct scatterlist); in rds_message_map_pages()
348 rm->data.op_sg = rds_message_alloc_sgs(rm, num_sgs); in rds_message_map_pages()
/kernel/linux/linux-5.10/drivers/net/usb/
Dusbnet.c1290 unsigned num_sgs, total_len = 0; in build_dma_sg() local
1293 num_sgs = skb_shinfo(skb)->nr_frags + 1; in build_dma_sg()
1294 if (num_sgs == 1) in build_dma_sg()
1298 urb->sg = kmalloc_array(num_sgs + 1, sizeof(struct scatterlist), in build_dma_sg()
1303 urb->num_sgs = num_sgs; in build_dma_sg()
1304 sg_init_table(urb->sg, urb->num_sgs + 1); in build_dma_sg()
1376 if (skb_tailroom(skb) && !urb->num_sgs) { in usbnet_start_xmit()
1379 } else if (urb->num_sgs) in usbnet_start_xmit()
1380 sg_set_buf(&urb->sg[urb->num_sgs++], in usbnet_start_xmit()
/kernel/linux/linux-5.10/drivers/usb/host/
Dxhci-trace.h266 __field(int, num_sgs)
281 __entry->num_sgs = urb->num_sgs;
298 __entry->num_sgs, __entry->stream, __entry->flags
Dxhci-ring.c762 if (urb->num_sgs) { in xhci_unmap_td_bounce_buffer()
763 len = sg_pcopy_from_buffer(urb->sg, urb->num_sgs, seg->bounce_buf, in xhci_unmap_td_bounce_buffer()
3353 if (urb->num_sgs) { in xhci_align_td()
3354 len = sg_pcopy_to_buffer(urb->sg, urb->num_sgs, in xhci_align_td()
3397 unsigned int start_cycle, num_sgs = 0; in xhci_queue_bulk_tx() local
3409 if (urb->num_sgs) { in xhci_queue_bulk_tx()
3410 num_sgs = urb->num_mapped_sgs; in xhci_queue_bulk_tx()
3515 --num_sgs; in xhci_queue_bulk_tx()
3518 if (num_sgs != 0 && sg) { in xhci_queue_bulk_tx()
Dehci-tegra.c318 if (urb->num_sgs || urb->sg || in alloc_dma_aligned_buffer()
/kernel/linux/linux-5.10/drivers/dma/mediatek/
Dmtk-hsdma.c418 u16 reserved, prev, tlen, num_sgs; in mtk_hsdma_issue_pending_vdesc() local
428 num_sgs = DIV_ROUND_UP(hvd->len, MTK_HSDMA_MAX_LEN); in mtk_hsdma_issue_pending_vdesc()
429 reserved = min_t(u16, num_sgs, atomic_read(&pc->nr_free)); in mtk_hsdma_issue_pending_vdesc()
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Df_tcm.c228 fu->bot_req_in->num_sgs = se_cmd->t_data_nents; in bot_send_read_response()
267 fu->bot_req_out->num_sgs = se_cmd->t_data_nents; in bot_send_write_request()
530 stream->req_in->num_sgs = se_cmd->t_data_nents; in uasp_prepare_r_request()
965 if (req->num_sgs == 0) { in usbg_data_write_cmpl()
993 req->num_sgs = se_cmd->t_data_nents; in usbg_prepare_w_request()
/kernel/linux/linux-5.10/include/linux/usb/
Dgadget.h106 unsigned num_sgs; member

12