Lines Matching defs:size
612 /* Burst size is only needed in SuperSpeed mode */
680 * dwc3_gadget_calc_tx_fifo_size - calculates the txfifo size value
684 * Calculates the size value based on the equation below:
692 * The max packet size is set to 1024, as the txfifo requirements mainly apply
725 int size;
731 /* Read ep0IN related TXFIFO size */
733 size = dwc3_readl(dwc->regs, DWC3_GTXFIFOSIZ(0));
735 fifo_depth = DWC3_GTXFIFOSIZ_TXFDEP(size);
737 fifo_depth = DWC31_GTXFIFOSIZ_TXFDEP(size);
745 size = DWC3_IP_IS(DWC3) ? 0 :
749 dwc3_writel(dwc->regs, DWC3_GTXFIFOSIZ(num >> 1), size);
764 * on the configured size for RAM1 - which contains TxFifo -,
812 /* FIFO size for a single buffer */
833 /* Last increment according to the TX FIFO size equation */
846 /* Check fifo size allocation doesn't exceed available RAM size. */
848 dev_err(dwc->dev, "Fifosize(%d) > RAM size(%d) %s depth:%d\n",
1225 * @trb_length: buffer size of the TRB
1263 trb->size = DWC3_TRB_SIZE_LENGTH(trb_length);
1309 trb->size |= DWC3_TRB_SIZE_PCM1(mult);
1397 * @entry_length: The last SG entry size
2826 * gonna use RxFIFO size.
2828 * To calculate RxFIFO size we need two numbers:
2829 * MDWIDTH = size, in bits, of the internal memory bus
3169 int size;
3177 size = dwc3_readl(dwc->regs, DWC3_GTXFIFOSIZ(dep->number >> 1));
3179 size = DWC3_GTXFIFOSIZ_TXFDEP(size);
3181 size = DWC31_GTXFIFOSIZ_TXFDEP(size);
3184 * maxpacket size is determined as part of the following, after assuming
3195 maxpacket = mdwidth * (size - 1);
3197 maxpacket = mdwidth * ((size - 1) - 1) - mdwidth;
3200 size = min_t(int, maxpacket, 1024);
3201 usb_ep_set_maxpacket_limit(&dep->endpoint, size);
3218 int size;
3226 size = dwc3_readl(dwc->regs, DWC3_GRXFIFOSIZ(0));
3228 size = DWC3_GRXFIFOSIZ_RXFDEP(size);
3230 size = DWC31_GRXFIFOSIZ_RXFDEP(size);
3233 size *= mdwidth;
3236 * To meet performance requirement, a minimum recommended RxFIFO size
3238 * RxFIFO size >= (3 x MaxPacketSize) +
3239 * (3 x 8 bytes setup packets size) + (16 bytes clock crossing margin)
3243 size -= (3 * 8) + 16;
3244 if (size < 0)
3245 size = 0;
3247 size /= 3;
3249 usb_ep_set_maxpacket_limit(&dep->endpoint, size);
3407 count = trb->size & DWC3_TRB_SIZE_MASK;
3417 DWC3_TRB_SIZE_TRBSTS(trb->size) == DWC3_TRBSTS_MISSED_ISOC)
3503 switch (DWC3_TRB_SIZE_TRBSTS(trb->size)) {
4428 * almost all entries are 4 bytes in size. There is one