/drivers/spi/ |
D | spi-dw-dma.c | 39 u32 max_burst, def_burst; in dw_spi_dma_maxburst_init() local 45 if (!ret && caps.max_burst) in dw_spi_dma_maxburst_init() 46 max_burst = caps.max_burst; in dw_spi_dma_maxburst_init() 48 max_burst = RX_BURST_LEVEL; in dw_spi_dma_maxburst_init() 50 dws->rxburst = min(max_burst, def_burst); in dw_spi_dma_maxburst_init() 54 if (!ret && caps.max_burst) in dw_spi_dma_maxburst_init() 55 max_burst = caps.max_burst; in dw_spi_dma_maxburst_init() 57 max_burst = TX_BURST_LEVEL; in dw_spi_dma_maxburst_init() 70 dws->txburst = min(max_burst, def_burst); in dw_spi_dma_maxburst_init()
|
D | spi-uniphier.c | 731 dma_tx_burst = caps.max_burst; in uniphier_spi_probe() 749 dma_rx_burst = caps.max_burst; in uniphier_spi_probe()
|
/drivers/dma/dw/ |
D | of.c | 91 memset32(pdata->max_burst, DW_DMA_MAX_BURST, nr_channels); in dw_dma_parse_dt() 92 of_property_read_u32_array(np, "snps,max-burst-len", pdata->max_burst, nr_channels); in dw_dma_parse_dt()
|
D | core.c | 794 clamp(dwc->dma_sconfig.src_maxburst, 0U, dwc->max_burst); in dwc_config() 796 clamp(dwc->dma_sconfig.dst_maxburst, 0U, dwc->max_burst); in dwc_config() 1053 caps->max_burst = dwc->max_burst; in dwc_caps() 1208 dwc->max_burst = in do_dma_probe() 1213 dwc->max_burst = pdata->max_burst[i] ?: DW_DMA_MAX_BURST; in do_dma_probe() 1247 dw->dma.max_burst = DW_DMA_MAX_BURST; in do_dma_probe()
|
D | regs.h | 288 u32 max_burst; member
|
/drivers/dma/ |
D | stm32-mdma.c | 414 static u32 stm32_mdma_get_best_burst(u32 buf_len, u32 tlen, u32 max_burst, in stm32_mdma_get_best_burst() argument 420 max_burst * width) / width; in stm32_mdma_get_best_burst() 918 u32 ccr, ctcr, ctbr, cbndtr, count, max_burst, mdma_burst; in stm32_mdma_prep_dma_memcpy() local 992 max_burst = tlen / max_width; in stm32_mdma_prep_dma_memcpy() 993 best_burst = stm32_mdma_get_best_burst(len, tlen, max_burst, in stm32_mdma_prep_dma_memcpy() 1005 max_burst = tlen / max_width; in stm32_mdma_prep_dma_memcpy() 1006 best_burst = stm32_mdma_get_best_burst(len, tlen, max_burst, in stm32_mdma_prep_dma_memcpy() 1046 max_burst = tlen / max_width; in stm32_mdma_prep_dma_memcpy() 1048 max_burst, in stm32_mdma_prep_dma_memcpy() 1060 max_burst = tlen / max_width; in stm32_mdma_prep_dma_memcpy() [all …]
|
D | img-mdc-dma.c | 211 unsigned int max_burst, burst_size; in mdc_list_desc_config() local 231 max_burst = mdma->bus_width * mdma->max_burst_mult; in mdc_list_desc_config() 233 max_burst = mdma->bus_width * (mdma->max_burst_mult - 1); in mdc_list_desc_config() 240 burst_size = min(max_burst, mchan->config.dst_maxburst * in mdc_list_desc_config() 247 burst_size = min(max_burst, mchan->config.src_maxburst * in mdc_list_desc_config() 254 burst_size = max_burst; in mdc_list_desc_config()
|
D | nbpfaxi.c | 437 int max_burst = nbpf->config->buffer_size * 8; in nbpf_xfer_ds() local 442 max_burst = min_not_zero(nbpf->max_burst_mem_read, in nbpf_xfer_ds() 447 max_burst = nbpf->max_burst_mem_read; in nbpf_xfer_ds() 451 max_burst = nbpf->max_burst_mem_write; in nbpf_xfer_ds() 460 return min_t(int, __ffs(size), ilog2(max_burst)); in nbpf_xfer_ds()
|
D | uniphier-xdmac.c | 345 if (maxburst > xc->xdev->ddev.max_burst) { in uniphier_xdmac_prep_slave_sg() 515 ddev->max_burst = XDMAC_MAX_WORDS; in uniphier_xdmac_probe()
|
D | mmp_tdma.c | 716 tdev->device.max_burst = SZ_128; in mmp_tdma_probe() 720 tdev->device.max_burst = SZ_32; in mmp_tdma_probe()
|
D | stm32-dma.c | 330 static u32 stm32_dma_get_best_burst(u32 buf_len, u32 max_burst, u32 threshold, in stm32_dma_get_best_burst() argument 333 u32 best_burst = max_burst; in stm32_dma_get_best_burst() 1390 dd->max_burst = STM32_DMA_MAX_BURST; in stm32_dma_probe()
|
/drivers/staging/media/hantro/ |
D | hantro_postproc.c | 38 .max_burst = {G1_REG_PP_DEV_CONFIG, 0, 0x1f}, 93 HANTRO_PP_REG_WRITE(vpu, max_burst, 16); in hantro_postproc_enable()
|
D | hantro.h | 286 struct hantro_reg max_burst; member
|
/drivers/net/ethernet/marvell/prestera/ |
D | prestera_rxtx.c | 91 int max_burst; member 544 tx_ring->max_burst = PRESTERA_SDMA_TX_MAX_BURST; in prestera_sdma_tx_init() 545 tx_ring->burst = tx_ring->max_burst; in prestera_sdma_tx_init() 698 int tx_wait_num = PRESTERA_SDMA_WAIT_MUL * tx_ring->max_burst; in prestera_sdma_tx_wait() 750 tx_ring->burst = tx_ring->max_burst; in prestera_sdma_xmit()
|
/drivers/usb/host/ |
D | xhci-mtk-sch.c | 295 u32 max_burst; in setup_sch_info() local 304 max_burst = CTX_TO_MAX_BURST(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info() 334 sch_ep->pkts = max_burst + 1; in setup_sch_info() 348 esit_pkts = (mult + 1) * (max_burst + 1); in setup_sch_info()
|
D | xhci-dbgcap.c | 95 unsigned int max_burst; in xhci_dbc_init_contexts() local 111 max_burst = DBC_CTRL_MAXBURST(readl(&dbc->regs->control)); in xhci_dbc_init_contexts() 114 ep_ctx->ep_info2 = dbc_epctx_info2(BULK_OUT_EP, 1024, max_burst); in xhci_dbc_init_contexts() 121 ep_ctx->ep_info2 = dbc_epctx_info2(BULK_IN_EP, 1024, max_burst); in xhci_dbc_init_contexts()
|
D | xhci-mem.c | 1402 int max_burst; in xhci_get_max_esit_payload() local 1419 max_burst = usb_endpoint_maxp_mult(&ep->desc); in xhci_get_max_esit_payload() 1421 return max_packet * max_burst; in xhci_get_max_esit_payload() 1440 unsigned int max_burst; in xhci_endpoint_init() local 1476 max_burst = xhci_get_endpoint_max_burst(udev, ep); in xhci_endpoint_init() 1515 MAX_BURST(max_burst) | in xhci_endpoint_init()
|
D | xhci-ring.c | 3893 unsigned int max_burst; in xhci_get_burst_count() local 3898 max_burst = urb->ep->ss_ep_comp.bMaxBurst; in xhci_get_burst_count() 3899 return DIV_ROUND_UP(total_packet_count, max_burst + 1) - 1; in xhci_get_burst_count() 3913 unsigned int max_burst; in xhci_get_last_burst_packet_count() local 3921 max_burst = urb->ep->ss_ep_comp.bMaxBurst; in xhci_get_last_burst_packet_count() 3922 residue = total_packet_count % (max_burst + 1); in xhci_get_last_burst_packet_count() 3927 return max_burst; in xhci_get_last_burst_packet_count()
|
/drivers/usb/cdns3/ |
D | cdnsp-mem.c | 919 int max_burst; in cdnsp_get_max_esit_payload() local 935 max_burst = usb_endpoint_maxp_mult(pep->endpoint.desc); in cdnsp_get_max_esit_payload() 938 return max_packet * max_burst; in cdnsp_get_max_esit_payload() 950 unsigned int max_burst; in cdnsp_endpoint_init() local 975 max_burst = cdnsp_get_endpoint_max_burst(&pdev->gadget, pep); in cdnsp_endpoint_init() 999 MAX_PACKET(max_packet) | MAX_BURST(max_burst) | in cdnsp_endpoint_init()
|
D | cdnsp-ring.c | 2152 unsigned int max_burst; in cdnsp_get_burst_count() local 2157 max_burst = preq->pep->endpoint.comp_desc->bMaxBurst; in cdnsp_get_burst_count() 2158 return DIV_ROUND_UP(total_packet_count, max_burst + 1) - 1; in cdnsp_get_burst_count() 2174 unsigned int max_burst; in cdnsp_get_last_burst_packet_count() local 2179 max_burst = preq->pep->endpoint.comp_desc->bMaxBurst; in cdnsp_get_last_burst_packet_count() 2180 residue = total_packet_count % (max_burst + 1); in cdnsp_get_last_burst_packet_count() 2187 return max_burst; in cdnsp_get_last_burst_packet_count()
|
/drivers/usb/early/ |
D | xhci-dbc.c | 233 unsigned int max_burst; in xdbc_mem_init() local 321 max_burst = DEBUG_MAX_BURST(readl(&xdbc.xdbc_reg->control)); in xdbc_mem_init() 325 ep_out->ep_info2 = cpu_to_le32(EP_TYPE(BULK_OUT_EP) | MAX_PACKET(1024) | MAX_BURST(max_burst)); in xdbc_mem_init() 332 ep_in->ep_info2 = cpu_to_le32(EP_TYPE(BULK_IN_EP) | MAX_PACKET(1024) | MAX_BURST(max_burst)); in xdbc_mem_init()
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_tc.c | 89 int max_burst, max_mantissa; in otx2_get_egress_burst_cfg() local 93 max_burst = MAX_BURST_SIZE; in otx2_get_egress_burst_cfg() 96 max_burst = CN10K_MAX_BURST_SIZE; in otx2_get_egress_burst_cfg() 104 burst = min_t(u32, burst, max_burst); in otx2_get_egress_burst_cfg()
|
/drivers/scsi/be2iscsi/ |
D | be_iscsi.c | 685 if (session->max_burst > 262144) in beiscsi_set_param() 686 session->max_burst = 262144; in beiscsi_set_param() 866 params, session->max_burst); in beiscsi_set_params_for_offld()
|
/drivers/net/xen-netback/ |
D | netback.c | 181 unsigned long max_burst, max_credit; in tx_add_credit() local 187 max_burst = max(131072UL, queue->credit_bytes); in tx_add_credit() 194 queue->remaining_credit = min(max_credit, max_burst); in tx_add_credit()
|
/drivers/scsi/ |
D | libiscsi_tcp.c | 602 if (data_length > session->max_burst) in iscsi_tcp_r2t_rsp() 605 data_length, session->max_burst); in iscsi_tcp_r2t_rsp()
|