Lines Matching refs:last_fifo_depth
764 dwc->last_fifo_depth = fifo_depth; in dwc3_gadget_clear_tx_fifos()
793 u32 fifo_0_start, last_fifo_depth, ram1_depth; in __dwc3_gadget_resize_tx_fifos() local
841 last_fifo_depth = dwc->last_fifo_depth; in __dwc3_gadget_resize_tx_fifos()
851 fifo_size |= (fifo_0_start + (last_fifo_depth << 16)); in __dwc3_gadget_resize_tx_fifos()
854 last_fifo_depth += DWC3_GTXFIFOSIZ_TXFDEP(fifo_size); in __dwc3_gadget_resize_tx_fifos()
856 last_fifo_depth += DWC31_GTXFIFOSIZ_TXFDEP(fifo_size); in __dwc3_gadget_resize_tx_fifos()
859 if (last_fifo_depth >= ram1_depth) { in __dwc3_gadget_resize_tx_fifos()
861 last_fifo_depth, ram1_depth, in __dwc3_gadget_resize_tx_fifos()
868 dwc->last_fifo_depth = last_fifo_depth; in __dwc3_gadget_resize_tx_fifos()
944 remaining = ram1_depth - min_depth - dwc->last_fifo_depth; in dwc3_gadget_resize_tx_fifos()
963 fifo_size |= (fifo_0_start + (dwc->last_fifo_depth << 16)); in dwc3_gadget_resize_tx_fifos()
965 dwc->last_fifo_depth += DWC3_GTXFIFOSIZ_TXFDEP(fifo_size); in dwc3_gadget_resize_tx_fifos()
967 dwc->last_fifo_depth += DWC31_GTXFIFOSIZ_TXFDEP(fifo_size); in dwc3_gadget_resize_tx_fifos()
970 if (dwc->last_fifo_depth >= ram1_depth) { in dwc3_gadget_resize_tx_fifos()
972 dwc->last_fifo_depth, ram1_depth, in dwc3_gadget_resize_tx_fifos()
979 dwc->last_fifo_depth -= fifo_size; in dwc3_gadget_resize_tx_fifos()