/openbmc/linux/arch/powerpc/platforms/pasemi/ |
H A D | dma_lib.c | 176 int chno; in pasemi_dma_alloc_chan() local 190 chno = pasemi_alloc_rx_chan(); in pasemi_dma_alloc_chan() 191 chan->chno = chno; in pasemi_dma_alloc_chan() 193 base_hw_irq + num_txch + chno); in pasemi_dma_alloc_chan() 194 chan->status = &dma_status->rx_sta[chno]; in pasemi_dma_alloc_chan() 197 chno = pasemi_alloc_tx_chan(type); in pasemi_dma_alloc_chan() 198 chan->chno = chno; in pasemi_dma_alloc_chan() 200 chan->status = &dma_status->tx_sta[chno]; in pasemi_dma_alloc_chan() 223 pasemi_free_rx_chan(chan->chno); in pasemi_dma_free_chan() 226 pasemi_free_tx_chan(chan->chno); in pasemi_dma_free_chan() [all …]
|
/openbmc/linux/drivers/gpu/drm/imx/ipuv3/ |
H A D | imx-ldb.c | 72 int chno; member 118 if (imx_ldb_ch->chno == 0 || dual) in imx_ldb_ch_set_bus_format() 120 if (imx_ldb_ch->chno == 1 || dual) in imx_ldb_ch_set_bus_format() 124 if (imx_ldb_ch->chno == 0 || dual) in imx_ldb_ch_set_bus_format() 127 if (imx_ldb_ch->chno == 1 || dual) in imx_ldb_ch_set_bus_format() 179 clk_get_rate(ldb->clk[chno]), in imx_ldb_set_clock() 184 clk_get_rate(ldb->clk[chno])); in imx_ldb_set_clock() 191 chno); in imx_ldb_set_clock() 424 if (IS_ERR(ldb->clk[chno])) in imx_ldb_get_clk() 425 return PTR_ERR(ldb->clk[chno]); in imx_ldb_get_clk() [all …]
|
/openbmc/linux/drivers/gpu/ipu-v3/ |
H A D | ipu-smfc.c | 19 int chno; member 44 shift = smfc->chno * 4; in ipu_smfc_set_burstsize() 64 shift = smfc->chno * 3; in ipu_smfc_map_channel() 84 shift = smfc->chno * 6 + (smfc->chno > 1 ? 4 : 0); in ipu_smfc_set_watermark() 135 struct ipu_smfc *ipu_smfc_get(struct ipu_soc *ipu, unsigned int chno) in ipu_smfc_get() argument 141 if (chno >= 4) in ipu_smfc_get() 144 smfc = &priv->channel[chno]; in ipu_smfc_get() 192 priv->channel[i].chno = i; in ipu_smfc_init()
|
H A D | ipu-common.c | 266 unsigned int chno = channel->num; in __ipu_idmac_reset_current_buffer() local 268 ipu_cm_write(ipu, idma_mask(chno), IPU_CHA_CUR_BUF(chno)); in __ipu_idmac_reset_current_buffer() 425 unsigned int chno = channel->num; in ipu_idmac_get_current_buffer() local 427 return (ipu_cm_read(ipu, IPU_CHA_CUR_BUF(chno)) & idma_mask(chno)) ? 1 : 0; in ipu_idmac_get_current_buffer() 465 ipu_cm_write(ipu, idma_mask(chno), IPU_CHA_BUF0_RDY(chno)); in ipu_idmac_select_buffer() 467 ipu_cm_write(ipu, idma_mask(chno), IPU_CHA_BUF1_RDY(chno)); in ipu_idmac_select_buffer() 484 ipu_cm_write(ipu, idma_mask(chno), IPU_CHA_BUF0_RDY(chno)); in ipu_idmac_clear_buffer() 487 ipu_cm_write(ipu, idma_mask(chno), IPU_CHA_BUF1_RDY(chno)); in ipu_idmac_clear_buffer() 490 ipu_cm_write(ipu, idma_mask(chno), IPU_CHA_BUF2_RDY(chno)); in ipu_idmac_clear_buffer() 521 return (ipu_idmac_read(ipu, IDMAC_CHA_BUSY(chno)) & idma_mask(chno)); in ipu_idmac_channel_busy() [all …]
|
H A D | ipu-dc.c | 94 int chno; member 366 priv->channels[i].chno = i; in ipu_dc_init()
|
H A D | ipu-cpmem.c | 893 int chno = ch->num; in ipu_cpmem_dump() local 895 dev_dbg(ipu->dev, "ch %d word 0 - %08X %08X %08X %08X %08X\n", chno, in ipu_cpmem_dump() 901 dev_dbg(ipu->dev, "ch %d word 1 - %08X %08X %08X %08X %08X\n", chno, in ipu_cpmem_dump()
|
H A D | ipu-prv.h | 219 bool ipu_idmac_channel_busy(struct ipu_soc *ipu, unsigned int chno);
|
/openbmc/linux/drivers/gpu/drm/bridge/imx/ |
H A D | imx8qm-ldb.c | 140 u32 chno = ldb_ch->chno; in imx8qm_ldb_bridge_mode_set() local 171 if (ldb_ch->chno == 0 || is_split) in imx8qm_ldb_bridge_mode_set() 173 if (ldb_ch->chno == 1 || is_split) in imx8qm_ldb_bridge_mode_set() 181 if (ldb_ch->chno == 0 || is_split) in imx8qm_ldb_bridge_mode_set() 183 if (ldb_ch->chno == 1 || is_split) in imx8qm_ldb_bridge_mode_set() 191 regmap_update_bits(ldb->regmap, SS_CTRL, CH_VSYNC_M(chno), 0); in imx8qm_ldb_bridge_mode_set() 194 CH_VSYNC_M(chno), CH_PVSYNC(chno)); in imx8qm_ldb_bridge_mode_set() 200 CH_HSYNC_M(chno), CH_PHSYNC(chno)); in imx8qm_ldb_bridge_mode_set() 220 if (ldb_ch->chno == 0 || is_split) { in imx8qm_ldb_bridge_atomic_enable() 224 if (ldb_ch->chno == 1 || is_split) { in imx8qm_ldb_bridge_atomic_enable() [all …]
|
H A D | imx-ldb-helper.c | 62 if (ldb_ch->chno == 0 || is_split) in ldb_bridge_mode_set_helper() 64 if (ldb_ch->chno == 1 || is_split) in ldb_bridge_mode_set_helper() 68 if (ldb_ch->chno == 0 || is_split) in ldb_bridge_mode_set_helper() 71 if (ldb_ch->chno == 1 || is_split) in ldb_bridge_mode_set_helper() 98 if (ldb_ch->chno == 0 || is_split) in ldb_bridge_disable_helper() 100 if (ldb_ch->chno == 1 || is_split) in ldb_bridge_disable_helper() 160 ldb_ch->chno = i; in ldb_init_helper()
|
H A D | imx8qxp-ldb.c | 140 u32 chno = ldb_ch->chno; in imx8qxp_ldb_bridge_mode_set() local 170 if (chno == 0) in imx8qxp_ldb_bridge_mode_set() 191 regmap_update_bits(ldb->regmap, SS_CTRL, CH_VSYNC_M(chno), 0); in imx8qxp_ldb_bridge_mode_set() 194 CH_VSYNC_M(chno), CH_PVSYNC(chno)); in imx8qxp_ldb_bridge_mode_set() 197 regmap_update_bits(ldb->regmap, SS_CTRL, CH_HSYNC_M(chno), 0); in imx8qxp_ldb_bridge_mode_set() 200 CH_HSYNC_M(chno), CH_PHSYNC(chno)); in imx8qxp_ldb_bridge_mode_set() 237 if (ldb_ch->chno == 0 || is_split) { in imx8qxp_ldb_bridge_atomic_enable() 242 if (ldb_ch->chno == 1 || is_split) { in imx8qxp_ldb_bridge_atomic_enable() 511 if (i == (ldb_ch->chno ^ 0x1)) { in imx8qxp_ldb_parse_dt_companion() 554 ldb_ch->chno, dual_link); in imx8qxp_ldb_parse_dt_companion() [all …]
|
H A D | imx-ldb-helper.h | 50 u32 chno; member
|
/openbmc/linux/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.c | 271 int chno; in pasemi_mac_setup_csring() local 281 chno = ring->chan.chno; in pasemi_mac_setup_csring() 290 write_dma_reg(PAS_DMA_TXCHAN_BASEL(chno), in pasemi_mac_setup_csring() 368 int chno; in pasemi_mac_setup_rx_resources() local 378 chno = ring->chan.chno; in pasemi_mac_setup_rx_resources() 452 int chno; in pasemi_mac_setup_tx_resources() local 462 chno = ring->chan.chno; in pasemi_mac_setup_tx_resources() 1219 int txch = tx_ring(mac)->chan.chno; in pasemi_mac_pause_txchan() 1241 int rxch = rx_ring(mac)->chan.chno; in pasemi_mac_pause_rxchan() 1283 rxch = rx_ring(mac)->chan.chno; in pasemi_mac_close() [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | imx-dma.c | 410 int chno = imxdmac->channel; in dma_irq_handle_channel() local 432 tmp = imx_dmav1_readl(imxdma, DMA_CCR(chno)); in dma_irq_handle_channel() 442 imx_dmav1_writel(imxdma, tmp, DMA_CCR(chno)); in dma_irq_handle_channel() 445 DMA_CCR(chno)); in dma_irq_handle_channel() 449 imx_dmav1_writel(imxdma, tmp, DMA_CCR(chno)); in dma_irq_handle_channel() 465 imx_dmav1_writel(imxdma, 0, DMA_CCR(chno)); in dma_irq_handle_channel()
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | pasemi_dma.h | 471 int chno; /* Channel number */ member
|
/openbmc/linux/include/video/ |
H A D | imx-ipu-v3.h | 479 struct ipu_smfc *ipu_smfc_get(struct ipu_soc *ipu, unsigned int chno);
|