• Home
  • Raw
  • Download

Lines Matching refs:ch_ctrl

255 int pnx4008_dma_pack_control(const struct pnx4008_dma_ch_ctrl * ch_ctrl,  in pnx4008_dma_pack_control()  argument
260 if (!ctrl || !ch_ctrl) { in pnx4008_dma_pack_control()
267 switch (ch_ctrl->tc_mask) { in pnx4008_dma_pack_control()
279 switch (ch_ctrl->cacheable) { in pnx4008_dma_pack_control()
290 switch (ch_ctrl->bufferable) { in pnx4008_dma_pack_control()
301 switch (ch_ctrl->priv_mode) { in pnx4008_dma_pack_control()
312 switch (ch_ctrl->di) { in pnx4008_dma_pack_control()
323 switch (ch_ctrl->si) { in pnx4008_dma_pack_control()
334 switch (ch_ctrl->dest_ahb1) { in pnx4008_dma_pack_control()
345 switch (ch_ctrl->src_ahb1) { in pnx4008_dma_pack_control()
356 switch (ch_ctrl->dwidth) { in pnx4008_dma_pack_control()
373 switch (ch_ctrl->swidth) { in pnx4008_dma_pack_control()
390 dbsize = ch_ctrl->dbsize; in pnx4008_dma_pack_control()
395 if (ch_ctrl->dbsize != 1 || i > 8 || i == 1) { in pnx4008_dma_pack_control()
403 sbsize = ch_ctrl->sbsize; in pnx4008_dma_pack_control()
408 if (ch_ctrl->sbsize != 1 || i > 8 || i == 1) { in pnx4008_dma_pack_control()
416 if (ch_ctrl->tr_size > 0x7ff) { in pnx4008_dma_pack_control()
421 *ctrl |= ch_ctrl->tr_size & 0x7ff; in pnx4008_dma_pack_control()
430 struct pnx4008_dma_ch_ctrl * ch_ctrl) in pnx4008_dma_parse_control() argument
434 if (!ch_ctrl) { in pnx4008_dma_parse_control()
439 ch_ctrl->tr_size = ctrl & 0x7ff; in pnx4008_dma_parse_control()
442 ch_ctrl->sbsize = 1 << (ctrl & 7); in pnx4008_dma_parse_control()
443 if (ch_ctrl->sbsize > 1) in pnx4008_dma_parse_control()
444 ch_ctrl->sbsize <<= 1; in pnx4008_dma_parse_control()
447 ch_ctrl->dbsize = 1 << (ctrl & 7); in pnx4008_dma_parse_control()
448 if (ch_ctrl->dbsize > 1) in pnx4008_dma_parse_control()
449 ch_ctrl->dbsize <<= 1; in pnx4008_dma_parse_control()
454 ch_ctrl->swidth = WIDTH_BYTE; in pnx4008_dma_parse_control()
457 ch_ctrl->swidth = WIDTH_HWORD; in pnx4008_dma_parse_control()
460 ch_ctrl->swidth = WIDTH_WORD; in pnx4008_dma_parse_control()
470 ch_ctrl->dwidth = WIDTH_BYTE; in pnx4008_dma_parse_control()
473 ch_ctrl->dwidth = WIDTH_HWORD; in pnx4008_dma_parse_control()
476 ch_ctrl->dwidth = WIDTH_WORD; in pnx4008_dma_parse_control()
484 ch_ctrl->src_ahb1 = ctrl & 1; in pnx4008_dma_parse_control()
487 ch_ctrl->dest_ahb1 = ctrl & 1; in pnx4008_dma_parse_control()
490 ch_ctrl->si = ctrl & 1; in pnx4008_dma_parse_control()
493 ch_ctrl->di = ctrl & 1; in pnx4008_dma_parse_control()
496 ch_ctrl->priv_mode = ctrl & 1; in pnx4008_dma_parse_control()
499 ch_ctrl->bufferable = ctrl & 1; in pnx4008_dma_parse_control()
502 ch_ctrl->cacheable = ctrl & 1; in pnx4008_dma_parse_control()
505 ch_ctrl->tc_mask = ctrl & 1; in pnx4008_dma_parse_control()
734 config->ch_ctrl &= ~0x7ff; in pnx4008_dma_split_head_entry()
735 config->ch_ctrl |= new_len; in pnx4008_dma_split_head_entry()
763 ll->ch_ctrl = config->ch_ctrl & 0x7fffffff; in pnx4008_dma_split_head_entry()
797 ll->ch_ctrl = config->ch_ctrl & 0x7fffffff; in pnx4008_dma_split_head_entry()
807 ll->ch_ctrl = config->ch_ctrl & (~0x7ff); in pnx4008_dma_split_head_entry()
808 ll->ch_ctrl |= old_len - new_len * (count - 1); in pnx4008_dma_split_head_entry()
809 config->ch_ctrl &= 0x7fffffff; in pnx4008_dma_split_head_entry()
856 cur_ll->ch_ctrl &= ~0x7ff; in pnx4008_dma_split_ll_entry()
857 cur_ll->ch_ctrl |= new_len; in pnx4008_dma_split_ll_entry()
884 ll->ch_ctrl = cur_ll->ch_ctrl & 0x7fffffff; in pnx4008_dma_split_ll_entry()
918 ll->ch_ctrl = cur_ll->ch_ctrl & 0x7fffffff; in pnx4008_dma_split_ll_entry()
929 ll->ch_ctrl = cur_ll->ch_ctrl & (~0x7ff); in pnx4008_dma_split_ll_entry()
930 ll->ch_ctrl |= old_len - new_len * (count - 1); in pnx4008_dma_split_ll_entry()
931 cur_ll->ch_ctrl &= 0x7fffffff; in pnx4008_dma_split_ll_entry()
951 __raw_writel(config->ch_ctrl, DMAC_Cx_CONTROL(ch)); in pnx4008_config_channel()
968 config->ch_ctrl = __raw_readl(DMAC_Cx_CONTROL(ch)); in pnx4008_channel_get_config()