Home
last modified time | relevance | path

Searched refs:max_packet (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.6.21/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835-vchiq.c17 unsigned int max_packet; member
240 instance->max_packet = 0; /* bulk transfer */ in bcm2835_audio_open()
242 instance->max_packet = 4000; in bcm2835_audio_open()
337 .write.max_packet = instance->max_packet, in bcm2835_audio_write()
353 if (!instance->max_packet) { in bcm2835_audio_write()
359 int bytes = min(instance->max_packet, count); in bcm2835_audio_write()
Dvc_vchi_audioserv_defs.h67 s16 max_packet; member
/linux-6.6.21/drivers/usb/cdns3/
Dcdnsp-mem.c31 unsigned int max_packet, in cdnsp_segment_alloc() argument
48 if (max_packet) { in cdnsp_segment_alloc()
49 seg->bounce_buf = kzalloc(max_packet, flags | GFP_DMA); in cdnsp_segment_alloc()
328 unsigned int max_packet, in cdnsp_alloc_segments_for_ring() argument
334 prev = cdnsp_segment_alloc(pdev, cycle_state, max_packet, flags); in cdnsp_alloc_segments_for_ring()
346 max_packet, flags); in cdnsp_alloc_segments_for_ring()
373 unsigned int max_packet, in cdnsp_ring_alloc() argument
384 ring->bounce_buf_len = max_packet; in cdnsp_ring_alloc()
393 1, type, max_packet, flags); in cdnsp_ring_alloc()
918 int max_packet; in cdnsp_get_max_esit_payload() local
[all …]
/linux-6.6.21/drivers/usb/host/
Docteon-hcd.c328 u16 max_packet; member
1090 int max_packet, in cvmx_usb_open_pipe() argument
1111 pipe->max_packet = max_packet; in cvmx_usb_open_pipe()
1403 else if (bytes_to_transfer > pipe->max_packet) in cvmx_usb_start_channel_control()
1404 bytes_to_transfer = pipe->max_packet; in cvmx_usb_start_channel_control()
1452 bytes_to_transfer = MAX_TRANSFER_BYTES / pipe->max_packet; in cvmx_usb_start_channel_control()
1453 bytes_to_transfer *= pipe->max_packet; in cvmx_usb_start_channel_control()
1461 pipe->max_packet); in cvmx_usb_start_channel_control()
1472 bytes_to_transfer = packets_to_transfer * pipe->max_packet; in cvmx_usb_start_channel_control()
1479 bytes_to_transfer = packets_to_transfer * pipe->max_packet; in cvmx_usb_start_channel_control()
[all …]
Dxhci-mem.c31 unsigned int max_packet, in xhci_segment_alloc() argument
49 if (max_packet) { in xhci_segment_alloc()
50 seg->bounce_buf = kzalloc_node(max_packet, flags, in xhci_segment_alloc()
324 enum xhci_ring_type type, unsigned int max_packet, gfp_t flags) in xhci_alloc_segments_for_ring() argument
334 prev = xhci_segment_alloc(xhci, cycle_state, max_packet, flags); in xhci_alloc_segments_for_ring()
343 next = xhci_segment_alloc(xhci, cycle_state, max_packet, flags); in xhci_alloc_segments_for_ring()
373 enum xhci_ring_type type, unsigned int max_packet, gfp_t flags) in xhci_ring_alloc() argument
384 ring->bounce_buf_len = max_packet; in xhci_ring_alloc()
392 max_packet, flags); in xhci_ring_alloc()
592 unsigned int max_packet, gfp_t mem_flags) in xhci_alloc_stream_info() argument
[all …]
Dmax3421-hcd.c528 u32 max_packet; in max3421_transfer_out() local
543 max_packet = usb_maxpacket(urb->dev, urb->pipe); in max3421_transfer_out()
545 if (max_packet > MAX3421_FIFO_SIZE) { in max3421_transfer_out()
552 __func__, max_packet, MAX3421_FIFO_SIZE); in max3421_transfer_out()
557 urb->actual_length), max_packet); in max3421_transfer_out()
937 u32 max_packet; in max3421_transfer_in_done() local
946 max_packet = usb_maxpacket(urb->dev, urb->pipe); in max3421_transfer_in_done()
947 if (max_packet > MAX3421_FIFO_SIZE) { in max3421_transfer_in_done()
954 __func__, max_packet, MAX3421_FIFO_SIZE); in max3421_transfer_in_done()
958 if (max3421_hcd->curr_len < max_packet) { in max3421_transfer_in_done()
[all …]
/linux-6.6.21/drivers/media/rc/
Dttusbir.c199 int max_packet, bulk_out_endp = -1, iso_in_endp = -1; in ttusbir_probe() local
205 max_packet = le16_to_cpu(desc->wMaxPacketSize); in ttusbir_probe()
208 max_packet == 0x10) in ttusbir_probe()
212 max_packet == 0x20) in ttusbir_probe()
/linux-6.6.21/arch/um/include/shared/
Dnet_user.h23 int max_packet; member
Dnet_kern.h32 int max_packet; member
/linux-6.6.21/arch/um/drivers/
Dnet_kern.c80 skb = dev_alloc_skb(lp->max_packet); in uml_net_rx()
90 skb_put(skb, lp->max_packet); in uml_net_rx()
438 .max_packet = transport->user->max_packet, in eth_configure()
461 err = update_drop_skb(lp->max_packet); in eth_configure()
Dvector_kern.h98 int max_packet; member
Dvector_kern.c619 int linear = vp->max_packet + vp->headroom + SAFETY_MARGIN; in prep_skb()
632 len - vp->max_packet, in prep_skb()
646 skb_put(result, vp->max_packet); in prep_skb()
647 result->data_len = len - vp->max_packet; in prep_skb()
648 result->len += len - vp->max_packet; in prep_skb()
652 iov[iov_index].iov_len = vp->max_packet; in prep_skb()
1360 vp->req_size = vp->max_packet + vp->headroom + SAFETY_MARGIN; in vector_set_features()
1611 .max_packet = get_mtu(def) + ETH_HEADER_OTHER, in vector_eth_configure()
Dslirp_user.c124 .max_packet = BUF_SIZE,
Dvde_user.c72 .max_packet = ETH_MAX_PACKET + ETH_HEADER_OTHER,
Dpcap_user.c136 .max_packet = ETH_MAX_PACKET + ETH_HEADER_OTHER,
Dumcast_user.c183 .max_packet = ETH_MAX_PACKET + ETH_HEADER_OTHER,
Ddaemon_user.c193 .max_packet = ETH_MAX_PACKET + ETH_HEADER_OTHER,
Dslip_user.c251 .max_packet = BUF_SIZE,
/linux-6.6.21/drivers/usb/dwc2/
Dhcd_ddma.c667 if (len > HOST_DMA_NBYTES_LIMIT - (chan->max_packet - 1)) in dwc2_fill_host_dma_desc()
668 len = HOST_DMA_NBYTES_LIMIT - (chan->max_packet - 1); in dwc2_fill_host_dma_desc()
673 if (len > 0 && chan->max_packet) in dwc2_fill_host_dma_desc()
674 num_packets = (len + chan->max_packet - 1) in dwc2_fill_host_dma_desc()
675 / chan->max_packet; in dwc2_fill_host_dma_desc()
681 len = num_packets * chan->max_packet; in dwc2_fill_host_dma_desc()
Dhcd.c430 dev_dbg(hsotg->dev, " max_packet: %d\n", chan->max_packet); in dwc2_dump_channel_info()
680 hcchar |= chan->max_packet << HCCHAR_MPS_SHIFT & HCCHAR_MPS_MASK; in dwc2_hc_init()
699 chan->max_packet); in dwc2_hc_init()
729 chan->max_packet); in dwc2_hc_init()
1106 if (remaining_count > chan->max_packet) in dwc2_hc_write_packet()
1107 byte_count = chan->max_packet; in dwc2_hc_write_packet()
1231 else if (chan->ep_is_in || chan->xfer_len > chan->max_packet) in dwc2_hc_start_transfer()
1232 chan->xfer_len = chan->max_packet; in dwc2_hc_start_transfer()
1262 chan->multi_count * chan->max_packet; in dwc2_hc_start_transfer()
1272 max_hc_xfer_size - chan->max_packet + 1; in dwc2_hc_start_transfer()
[all …]
Dhcd.h97 unsigned max_packet:11; member
/linux-6.6.21/drivers/staging/octeon/
Dethernet.c256 int max_packet = new_mtu + mtu_overhead; in cvm_oct_common_change_mtu() local
262 max_packet); in cvm_oct_common_change_mtu()
272 frm_len_chk.s.maxlen = max_packet; in cvm_oct_common_change_mtu()
282 (max_packet + 7) & ~7u); in cvm_oct_common_change_mtu()
/linux-6.6.21/arch/um/os-Linux/drivers/
Dtuntap_user.c214 .max_packet = ETH_MAX_PACKET + ETH_HEADER_OTHER,
Dethertap_user.c247 .max_packet = ETH_MAX_PACKET + ETH_HEADER_ETHERTAP,
/linux-6.6.21/drivers/net/ethernet/cavium/octeon/
Docteon_mgmt.c650 int max_packet = new_mtu + ETH_HLEN + ETH_FCS_LEN; in octeon_mgmt_change_mtu() local
657 cvmx_write_csr(p->agl + AGL_GMX_RX_FRM_MAX, max_packet); in octeon_mgmt_change_mtu()
664 (max_packet + 7 + VLAN_HLEN * 2) & 0xfff8); in octeon_mgmt_change_mtu()

12