| /freebsd-12.1/sys/dev/usb/template/ |
| H A D | usb_template.c | 648 uint16_t max_frame_size; in usb_hw_ep_find_match() local 707 max_frame_size = pf->max_in_frame_size; in usb_hw_ep_find_match() 709 max_frame_size = pf->max_out_frame_size; in usb_hw_ep_find_match() 712 if (max_frame_size >= ep->max_frame_size) { in usb_hw_ep_find_match() 713 temp = (max_frame_size - ep->max_frame_size); in usb_hw_ep_find_match() 878 ep_curr->max_frame_size) { in usb_hw_ep_get_needs() 892 if (ep_curr->max_frame_size < wMaxPacketSize) { in usb_hw_ep_get_needs() 893 ep_curr->max_frame_size = wMaxPacketSize; in usb_hw_ep_get_needs()
|
| /freebsd-12.1/sys/dev/e1000/ |
| H A D | e1000_api.h | 156 min_frame_size, max_frame_size) \ argument 162 ((length) <= ((max_frame_size) + 1))) : \ 164 ((length) <= ((max_frame_size) + VLAN_TAG_SIZE + 1)))))
|
| H A D | e1000_82543.h | 53 u32 max_frame_size);
|
| H A D | if_em.c | 1193 int max_frame_size; in em_if_mtu_set() local 1212 max_frame_size = 9234; in em_if_mtu_set() 1215 max_frame_size = 4096; in em_if_mtu_set() 1220 max_frame_size = ETHER_MAX_LEN; in em_if_mtu_set() 1224 max_frame_size = 9234; in em_if_mtu_set() 1226 max_frame_size = MAX_JUMBO_FRAME_SIZE; in em_if_mtu_set() 2313 u16 max_frame_size; in igb_init_dmac() local 2330 hwm = 64 * pba - max_frame_size / 16; in igb_init_dmac() 2340 dmac = pba - max_frame_size / 512; in igb_init_dmac() 2395 (2 * max_frame_size)) >> 6); in igb_init_dmac() [all …]
|
| /freebsd-12.1/sys/dev/usb/controller/ |
| H A D | uhci.c | 136 uint16_t max_frame_size; member 148 uint16_t max_frame_size; member 213 ml->max_frame_size = xfer->max_frame_size; in uhci_mem_layout_init() 1676 temp.average = xfer->max_frame_size; in uhci_setup_standard_chain() 1677 temp.max_frame_size = xfer->max_frame_size; in uhci_setup_standard_chain() 2219 if (*plen > xfer->max_frame_size) { in uhci_device_isoc_enter() 2226 xfer->max_frame_size); in uhci_device_isoc_enter() 2229 *plen = xfer->max_frame_size; in uhci_device_isoc_enter() 2921 align = xfer->max_frame_size; in uhci_xfer_setup() 2929 if (!(xfer->max_frame_size & in uhci_xfer_setup() [all …]
|
| H A D | musb_otg.c | 204 if (td->max_frame_size > in musbotg_channel_alloc() 208 if (td->max_frame_size > in musbotg_channel_alloc() 687 if (count != td->max_frame_size) { in musbotg_dev_ctrl_data_rx() 688 if (count < td->max_frame_size) { in musbotg_dev_ctrl_data_rx() 816 count = td->max_frame_size; in musbotg_dev_ctrl_data_tx() 977 if (count != td->max_frame_size) { in musbotg_host_ctrl_data_rx() 1167 count = td->max_frame_size; in musbotg_host_ctrl_data_tx() 1633 count = td->max_frame_size; in musbotg_dev_data_tx() 2033 count = td->max_frame_size; in musbotg_host_data_tx() 2436 temp.max_frame_size = xfer->max_frame_size; in musbotg_setup_standard_chain() [all …]
|
| H A D | musb_otg.h | 320 uint16_t max_frame_size; /* packet_size * mult */ member 345 uint16_t max_frame_size; member
|
| H A D | saf1761_otg.h | 97 uint16_t max_frame_size; member
|
| H A D | ehci.c | 142 uint16_t max_frame_size; member 1598 if (temp->len % temp->max_frame_size) { in ehci_setup_standard_chain_sub() 1660 if (howmany(average, temp->max_frame_size) & 1) { in ehci_setup_standard_chain_sub() 1765 temp.max_frame_size = xfer->max_frame_size; in ehci_setup_standard_chain() 2551 if (*plen > xfer->max_frame_size) { in ehci_device_isoc_fs_enter() 2558 xfer->max_frame_size); in ehci_device_isoc_fs_enter() 2561 *plen = xfer->max_frame_size; in ehci_device_isoc_fs_enter() 2856 if (*plen > xfer->max_frame_size) { in ehci_device_isoc_hs_enter() 2862 __FUNCTION__, *plen, xfer->max_frame_size); in ehci_device_isoc_hs_enter() 2865 *plen = xfer->max_frame_size; in ehci_device_isoc_hs_enter()
|
| H A D | dwc_otg.h | 109 uint16_t max_frame_size; member
|
| H A D | atmegadci.h | 220 uint16_t max_frame_size; member
|
| H A D | avr32dci.h | 187 uint16_t max_frame_size; member
|
| H A D | uss820dci.h | 298 uint16_t max_frame_size; member
|
| /freebsd-12.1/sys/dev/ixgbe/ |
| H A D | if_sriov.c | 155 if (adapter->max_frame_size < max_frame) in ixgbe_update_max_frame() 156 adapter->max_frame_size = max_frame; in ixgbe_update_max_frame() 276 if (adapter->max_frame_size > ETHER_MAX_LEN || in ixgbe_vf_frame_size_compatible() 296 if (adapter->max_frame_size <= ETHER_MAX_LEN) in ixgbe_vf_frame_size_compatible() 503 if (pf_max_size < adapter->max_frame_size) { in ixgbe_vf_set_lpe() 505 mhadd |= adapter->max_frame_size << IXGBE_MHADD_MFS_SHIFT; in ixgbe_vf_set_lpe()
|
| H A D | ixgbe_dcb.c | 54 int max_frame_size) in ixgbe_dcb_calculate_tc_credits() argument 60 min_credit = ((max_frame_size / 2) + IXGBE_DCB_CREDIT_QUANTUM - 1) / in ixgbe_dcb_calculate_tc_credits() 97 u32 max_frame_size, u8 direction) in ixgbe_dcb_calculate_tc_credits_cee() argument 116 min_credit = ((max_frame_size / 2) + IXGBE_DCB_CREDIT_QUANTUM - 1) / in ixgbe_dcb_calculate_tc_credits_cee()
|
| /freebsd-12.1/sys/mips/cavium/usb/ |
| H A D | octusb.h | 72 uint16_t max_frame_size; member
|
| H A D | octusb.c | 462 rem = OCTUSB_MAX_FIXUP % td->qh->max_frame_size; in octusb_non_control_data_tx() 474 if ((rem == 0) || (rem % td->qh->max_frame_size)) in octusb_non_control_data_tx() 590 rem = OCTUSB_MAX_FIXUP % td->qh->max_frame_size; in octusb_non_control_data_rx() 1773 qh->max_frame_size = xfer->max_frame_size; in octusb_xfer_setup()
|
| /freebsd-12.1/sys/dev/usb/ |
| H A D | usb_transfer.c | 175 xfer->max_frame_size = xfer->max_packet_size * xfer->max_packet_count; in usbd_update_max_frame_size() 649 if ((xfer->max_frame_size == 0) || in usbd_transfer_setup_sub() 680 parm->bufsize = xfer->max_frame_size; in usbd_transfer_setup_sub() 695 parm->bufsize += (xfer->max_frame_size - 1); in usbd_transfer_setup_sub() 697 if (parm->bufsize < xfer->max_frame_size) { in usbd_transfer_setup_sub() 704 parm->bufsize -= (parm->bufsize % xfer->max_frame_size); in usbd_transfer_setup_sub() 862 (parm->hc_max_frame_size % xfer->max_frame_size)); in usbd_transfer_setup_sub() 895 xfer->max_frame_size = 1; in usbd_transfer_setup_sub() 2264 return (xfer->max_frame_size); in usbd_xfer_max_framelen()
|
| H A D | usb_core.h | 169 uint16_t max_frame_size; member
|
| H A D | usb_generic.c | 167 f->xfer[0]->max_frame_size, in ugen_transfer_setup() 554 offset += xfer->max_frame_size; in ugen_isoc_read_callback() 561 usbd_xfer_set_frame_len(xfer, n, xfer->max_frame_size); in ugen_isoc_read_callback() 591 xfer->max_frame_size, &actlen, 1)) { in ugen_isoc_write_callback() 1599 f->fs_xfer[u.popen->ep_index]->max_frame_size; in ugen_ioctl() 1710 *(int *)addr = f->xfer[0]->max_frame_size; in ugen_get_frame_size()
|
| /freebsd-12.1/sys/dev/qlxgb/ |
| H A D | qla_def.h | 152 uint16_t max_frame_size; member
|
| H A D | qla_os.c | 686 ha->max_frame_size = ifp->if_mtu + ETHER_HDR_LEN + ETHER_CRC_LEN; in qla_init_ifnet() 842 ha->max_frame_size = in qla_ioctl() 845 ret = qla_set_max_mtu(ha, ha->max_frame_size, in qla_ioctl() 872 ha->max_frame_size = ifp->if_mtu + in qla_ioctl() 874 ret = qla_set_max_mtu(ha, ha->max_frame_size, in qla_ioctl()
|
| /freebsd-12.1/sys/dev/bxe/ |
| H A D | ecore_mfw_req.h | 175 uint32_t max_frame_size; /* Max Frame Size. bytes */ member
|
| /freebsd-12.1/sys/dev/qlxge/ |
| H A D | qls_os.c | 753 ha->max_frame_size = ifp->if_mtu + ETHER_HDR_LEN + ETHER_CRC_LEN; in qls_init_ifnet() 754 if (ha->max_frame_size <= MCLBYTES) { in qls_init_ifnet() 756 } else if (ha->max_frame_size <= MJUMPAGESIZE) { in qls_init_ifnet() 915 ha->max_frame_size = in qls_ioctl() 942 ha->max_frame_size = ifp->if_mtu + in qls_ioctl()
|
| /freebsd-12.1/sys/dev/qlxgbe/ |
| H A D | ql_def.h | 181 uint16_t max_frame_size; member
|