Lines Matching refs:lch
189 int lch; in ssi_claim_lch() local
191 for (lch = 0; lch < SSI_MAX_GDD_LCH; lch++) in ssi_claim_lch()
192 if (!omap_ssi->gdd_trn[lch].msg) { in ssi_claim_lch()
193 omap_ssi->gdd_trn[lch].msg = msg; in ssi_claim_lch()
194 omap_ssi->gdd_trn[lch].sg = msg->sgt.sgl; in ssi_claim_lch()
195 return lch; in ssi_claim_lch()
201 static int ssi_start_dma(struct hsi_msg *msg, int lch) in ssi_start_dma() argument
260 lch, csdp, ccr, s_addr, d_addr); in ssi_start_dma()
262 writew_relaxed(csdp, gdd + SSI_GDD_CSDP_REG(lch)); in ssi_start_dma()
263 writew_relaxed(SSI_BLOCK_IE | SSI_TOUT_IE, gdd + SSI_GDD_CICR_REG(lch)); in ssi_start_dma()
264 writel_relaxed(d_addr, gdd + SSI_GDD_CDSA_REG(lch)); in ssi_start_dma()
265 writel_relaxed(s_addr, gdd + SSI_GDD_CSSA_REG(lch)); in ssi_start_dma()
267 gdd + SSI_GDD_CEN_REG(lch)); in ssi_start_dma()
271 tmp |= SSI_GDD_LCH(lch); in ssi_start_dma()
274 writew(ccr, gdd + SSI_GDD_CCR_REG(lch)); in ssi_start_dma()
317 int lch = -1; in ssi_start_transfer() local
325 lch = ssi_claim_lch(msg); in ssi_start_transfer()
326 if (lch >= 0) in ssi_start_transfer()
327 return ssi_start_dma(msg, lch); in ssi_start_transfer()