Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835-vchiq.c17 unsigned int max_packet; member
233 instance->max_packet = 0; /* bulk transfer */ in bcm2835_audio_open()
235 instance->max_packet = 4000; in bcm2835_audio_open()
328 .write.max_packet = instance->max_packet, in bcm2835_audio_write()
344 if (!instance->max_packet) { in bcm2835_audio_write()
351 int bytes = min(instance->max_packet, count); in bcm2835_audio_write()
Dvc_vchi_audioserv_defs.h67 s16 max_packet; member
/kernel/linux/linux-5.10/drivers/staging/octeon-usb/
Docteon-hcd.c326 u16 max_packet; member
1088 int max_packet, in cvmx_usb_open_pipe() argument
1109 pipe->max_packet = max_packet; in cvmx_usb_open_pipe()
1401 else if (bytes_to_transfer > pipe->max_packet) in cvmx_usb_start_channel_control()
1402 bytes_to_transfer = pipe->max_packet; in cvmx_usb_start_channel_control()
1450 bytes_to_transfer = MAX_TRANSFER_BYTES / pipe->max_packet; in cvmx_usb_start_channel_control()
1451 bytes_to_transfer *= pipe->max_packet; in cvmx_usb_start_channel_control()
1459 pipe->max_packet); in cvmx_usb_start_channel_control()
1470 bytes_to_transfer = packets_to_transfer * pipe->max_packet; in cvmx_usb_start_channel_control()
1477 bytes_to_transfer = packets_to_transfer * pipe->max_packet; in cvmx_usb_start_channel_control()
[all …]
/kernel/linux/linux-5.10/drivers/usb/host/
Dxhci-mem.c30 unsigned int max_packet, in xhci_segment_alloc() argument
48 if (max_packet) { in xhci_segment_alloc()
49 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()
624 unsigned int max_packet, gfp_t mem_flags) in xhci_alloc_stream_info() argument
[all …]
Dmax3421-hcd.c534 u32 max_packet; in max3421_transfer_out() local
549 max_packet = usb_maxpacket(urb->dev, urb->pipe, 1); in max3421_transfer_out()
551 if (max_packet > MAX3421_FIFO_SIZE) { in max3421_transfer_out()
558 __func__, max_packet, MAX3421_FIFO_SIZE); in max3421_transfer_out()
563 urb->actual_length), max_packet); in max3421_transfer_out()
946 u32 max_packet; in max3421_transfer_in_done() local
955 max_packet = usb_maxpacket(urb->dev, urb->pipe, 0); in max3421_transfer_in_done()
956 if (max_packet > MAX3421_FIFO_SIZE) { in max3421_transfer_in_done()
963 __func__, max_packet, MAX3421_FIFO_SIZE); in max3421_transfer_in_done()
967 if (max3421_hcd->curr_len < max_packet) { in max3421_transfer_in_done()
[all …]
/kernel/linux/linux-5.10/drivers/media/rc/
Dttusbir.c201 int max_packet, bulk_out_endp = -1, iso_in_endp = -1; in ttusbir_probe() local
207 max_packet = le16_to_cpu(desc->wMaxPacketSize); in ttusbir_probe()
210 max_packet == 0x10) in ttusbir_probe()
214 max_packet == 0x20) in ttusbir_probe()
/kernel/linux/linux-5.10/arch/um/include/shared/
Dnet_user.h23 int max_packet; member
Dnet_kern.h32 int max_packet; member
/kernel/linux/linux-5.10/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()
437 .max_packet = transport->user->max_packet, in eth_configure()
460 err = update_drop_skb(lp->max_packet); in eth_configure()
Dvector_kern.h96 int max_packet; member
Dvector_kern.c623 int linear = vp->max_packet + vp->headroom + SAFETY_MARGIN; in prep_skb()
636 len - vp->max_packet, in prep_skb()
650 skb_put(result, vp->max_packet); in prep_skb()
651 result->data_len = len - vp->max_packet; in prep_skb()
652 result->len += len - vp->max_packet; in prep_skb()
656 iov[iov_index].iov_len = vp->max_packet; in prep_skb()
1366 vp->req_size = vp->max_packet + vp->headroom + SAFETY_MARGIN; in vector_set_features()
1610 .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,
/kernel/linux/linux-5.10/drivers/usb/dwc2/
Dhcd_ddma.c697 if (len > HOST_DMA_NBYTES_LIMIT - (chan->max_packet - 1)) in dwc2_fill_host_dma_desc()
698 len = HOST_DMA_NBYTES_LIMIT - (chan->max_packet - 1); in dwc2_fill_host_dma_desc()
703 if (len > 0 && chan->max_packet) in dwc2_fill_host_dma_desc()
704 num_packets = (len + chan->max_packet - 1) in dwc2_fill_host_dma_desc()
705 / chan->max_packet; in dwc2_fill_host_dma_desc()
711 len = num_packets * chan->max_packet; in dwc2_fill_host_dma_desc()
Dhcd.c465 dev_dbg(hsotg->dev, " max_packet: %d\n", chan->max_packet); in dwc2_dump_channel_info()
715 hcchar |= chan->max_packet << HCCHAR_MPS_SHIFT & HCCHAR_MPS_MASK; in dwc2_hc_init()
734 chan->max_packet); in dwc2_hc_init()
764 chan->max_packet); in dwc2_hc_init()
1141 if (remaining_count > chan->max_packet) in dwc2_hc_write_packet()
1142 byte_count = chan->max_packet; in dwc2_hc_write_packet()
1266 else if (chan->ep_is_in || chan->xfer_len > chan->max_packet) in dwc2_hc_start_transfer()
1267 chan->xfer_len = chan->max_packet; in dwc2_hc_start_transfer()
1297 chan->multi_count * chan->max_packet; in dwc2_hc_start_transfer()
1307 max_hc_xfer_size - chan->max_packet + 1; in dwc2_hc_start_transfer()
[all …]
Dhcd.h126 unsigned max_packet:11; member
Dhcd_intr.c469 length = (chan->start_pkt_count - count) * chan->max_packet; in dwc2_get_actual_xfer_length()
514 !(urb->length % chan->max_packet)) { in dwc2_update_urb_state()
1195 dev_vdbg(hsotg->dev, " chan->max_packet %d\n", chan->max_packet); in dwc2_update_urb_state_abn()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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,
/kernel/linux/linux-5.10/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