• Home
  • Raw
  • Download

Lines Matching refs:fifo_size

699 	int fifo_size;  in dwc3_gadget_calc_tx_fifo_size()  local
708 fifo_size = mult * (max_packet / mdwidth) + 1; in dwc3_gadget_calc_tx_fifo_size()
710 fifo_size = mult * ((max_packet + mdwidth) / mdwidth) + 1; in dwc3_gadget_calc_tx_fifo_size()
711 return fifo_size; in dwc3_gadget_calc_tx_fifo_size()
781 int fifo_size; in dwc3_gadget_resize_tx_fifos() local
828 fifo_size = (num_fifos - 1) * fifo; in dwc3_gadget_resize_tx_fifos()
829 if (remaining < fifo_size) in dwc3_gadget_resize_tx_fifos()
830 fifo_size = remaining; in dwc3_gadget_resize_tx_fifos()
832 fifo_size += fifo; in dwc3_gadget_resize_tx_fifos()
834 fifo_size++; in dwc3_gadget_resize_tx_fifos()
840 fifo_size |= (fifo_0_start + (dwc->last_fifo_depth << 16)); in dwc3_gadget_resize_tx_fifos()
842 dwc->last_fifo_depth += DWC3_GTXFIFOSIZ_TXFDEP(fifo_size); in dwc3_gadget_resize_tx_fifos()
844 dwc->last_fifo_depth += DWC31_GTXFIFOSIZ_TXFDEP(fifo_size); in dwc3_gadget_resize_tx_fifos()
850 dep->endpoint.name, fifo_size); in dwc3_gadget_resize_tx_fifos()
852 fifo_size = DWC3_GTXFIFOSIZ_TXFDEP(fifo_size); in dwc3_gadget_resize_tx_fifos()
854 fifo_size = DWC31_GTXFIFOSIZ_TXFDEP(fifo_size); in dwc3_gadget_resize_tx_fifos()
856 dwc->last_fifo_depth -= fifo_size; in dwc3_gadget_resize_tx_fifos()
860 dwc3_writel(dwc->regs, DWC3_GTXFIFOSIZ(dep->number >> 1), fifo_size); in dwc3_gadget_resize_tx_fifos()
2998 int fifo_size = 0; in dwc3_gadget_check_config() local
3017 fifo_size = dwc3_gadget_calc_tx_fifo_size(dwc, dwc->max_cfg_eps); in dwc3_gadget_check_config()
3019 fifo_size += dwc->max_cfg_eps; in dwc3_gadget_check_config()
3023 if (fifo_size > ram1_depth) in dwc3_gadget_check_config()