Lines Matching refs:fifo_size
678 int fifo_size; in dwc3_gadget_calc_tx_fifo_size() local
687 fifo_size = mult * (max_packet / mdwidth) + 1; in dwc3_gadget_calc_tx_fifo_size()
689 fifo_size = mult * ((max_packet + mdwidth) / mdwidth) + 1; in dwc3_gadget_calc_tx_fifo_size()
690 return fifo_size; in dwc3_gadget_calc_tx_fifo_size()
800 int fifo_size; in dwc3_gadget_resize_tx_fifos() local
862 fifo_size = (num_fifos - 1) * fifo; in dwc3_gadget_resize_tx_fifos()
863 if (remaining < fifo_size) in dwc3_gadget_resize_tx_fifos()
864 fifo_size = remaining; in dwc3_gadget_resize_tx_fifos()
866 fifo_size += fifo; in dwc3_gadget_resize_tx_fifos()
868 fifo_size++; in dwc3_gadget_resize_tx_fifos()
874 fifo_size |= (fifo_0_start + (dwc->last_fifo_depth << 16)); in dwc3_gadget_resize_tx_fifos()
876 dwc->last_fifo_depth += DWC3_GTXFIFOSIZ_TXFDEP(fifo_size); in dwc3_gadget_resize_tx_fifos()
878 dwc->last_fifo_depth += DWC31_GTXFIFOSIZ_TXFDEP(fifo_size); in dwc3_gadget_resize_tx_fifos()
884 dep->endpoint.name, fifo_size); in dwc3_gadget_resize_tx_fifos()
886 fifo_size = DWC3_GTXFIFOSIZ_TXFDEP(fifo_size); in dwc3_gadget_resize_tx_fifos()
888 fifo_size = DWC31_GTXFIFOSIZ_TXFDEP(fifo_size); in dwc3_gadget_resize_tx_fifos()
890 dwc->last_fifo_depth -= fifo_size; in dwc3_gadget_resize_tx_fifos()
894 dwc3_writel(dwc->regs, DWC3_GTXFIFOSIZ(dep->number >> 1), fifo_size); in dwc3_gadget_resize_tx_fifos()
3145 int fifo_size = 0; in dwc3_gadget_check_config() local
3164 fifo_size = dwc3_gadget_calc_tx_fifo_size(dwc, dwc->max_cfg_eps); in dwc3_gadget_check_config()
3166 fifo_size += dwc->max_cfg_eps; in dwc3_gadget_check_config()
3170 if (fifo_size > ram_depth) in dwc3_gadget_check_config()