Lines Matching refs:fifo_size

654 	int fifo_size;  in dwc3_gadget_calc_tx_fifo_size()  local
663 fifo_size = mult * (max_packet / mdwidth) + 1; in dwc3_gadget_calc_tx_fifo_size()
665 fifo_size = mult * ((max_packet + mdwidth) / mdwidth) + 1; in dwc3_gadget_calc_tx_fifo_size()
666 return fifo_size; in dwc3_gadget_calc_tx_fifo_size()
735 int fifo_size; in dwc3_gadget_resize_tx_fifos() local
777 fifo_size = (num_fifos - 1) * fifo; in dwc3_gadget_resize_tx_fifos()
778 if (remaining < fifo_size) in dwc3_gadget_resize_tx_fifos()
779 fifo_size = remaining; in dwc3_gadget_resize_tx_fifos()
781 fifo_size += fifo; in dwc3_gadget_resize_tx_fifos()
783 fifo_size++; in dwc3_gadget_resize_tx_fifos()
789 fifo_size |= (fifo_0_start + (dwc->last_fifo_depth << 16)); in dwc3_gadget_resize_tx_fifos()
791 dwc->last_fifo_depth += DWC3_GTXFIFOSIZ_TXFDEP(fifo_size); in dwc3_gadget_resize_tx_fifos()
793 dwc->last_fifo_depth += DWC31_GTXFIFOSIZ_TXFDEP(fifo_size); in dwc3_gadget_resize_tx_fifos()
799 dep->endpoint.name, fifo_size); in dwc3_gadget_resize_tx_fifos()
801 fifo_size = DWC3_GTXFIFOSIZ_TXFDEP(fifo_size); in dwc3_gadget_resize_tx_fifos()
803 fifo_size = DWC31_GTXFIFOSIZ_TXFDEP(fifo_size); in dwc3_gadget_resize_tx_fifos()
805 dwc->last_fifo_depth -= fifo_size; in dwc3_gadget_resize_tx_fifos()
809 dwc3_writel(dwc->regs, DWC3_GTXFIFOSIZ(dep->number >> 1), fifo_size); in dwc3_gadget_resize_tx_fifos()
2798 int fifo_size = 0; in dwc3_gadget_check_config() local
2817 fifo_size = dwc3_gadget_calc_tx_fifo_size(dwc, dwc->max_cfg_eps); in dwc3_gadget_check_config()
2819 fifo_size += dwc->max_cfg_eps; in dwc3_gadget_check_config()
2823 if (fifo_size > ram1_depth) in dwc3_gadget_check_config()