Lines Matching refs:pdi

678 	struct sdw_cdns_pdi *pdi;  in cdns_allocate_pdi()  local
684 pdi = devm_kcalloc(cdns->dev, num, sizeof(*pdi), GFP_KERNEL); in cdns_allocate_pdi()
685 if (!pdi) in cdns_allocate_pdi()
689 pdi[i].num = i + pdi_offset; in cdns_allocate_pdi()
690 pdi[i].assigned = false; in cdns_allocate_pdi()
693 *stream = pdi; in cdns_allocate_pdi()
1029 unsigned int num, struct sdw_cdns_pdi *pdi) in cdns_find_pdi() argument
1034 if (pdi[i].assigned == true) in cdns_find_pdi()
1036 pdi[i].assigned = true; in cdns_find_pdi()
1037 return &pdi[i]; in cdns_find_pdi()
1054 u32 ch, u32 dir, struct sdw_cdns_pdi *pdi) in sdw_cdns_config_stream() argument
1066 cdns_writel(cdns, CDNS_PDI_CONFIG(pdi->num), val); in sdw_cdns_config_stream()
1079 struct sdw_cdns_pdi *pdi, in cdns_get_num_pdi() argument
1085 if (pdi[i].assigned == true) in cdns_get_num_pdi()
1088 if (pdi[i].ch_count < ch_count) in cdns_get_num_pdi()
1089 ch_count -= pdi[i].ch_count; in cdns_get_num_pdi()
1145 struct sdw_cdns_pdi *pdi = NULL; in sdw_cdns_alloc_stream() local
1148 pdi = cdns_find_pdi(cdns, stream->num_in, stream->in); in sdw_cdns_alloc_stream()
1150 pdi = cdns_find_pdi(cdns, stream->num_out, stream->out); in sdw_cdns_alloc_stream()
1153 if (!pdi) in sdw_cdns_alloc_stream()
1154 pdi = cdns_find_pdi(cdns, stream->num_bd, stream->bd); in sdw_cdns_alloc_stream()
1156 if (!pdi) in sdw_cdns_alloc_stream()
1159 port->pdi = pdi; in sdw_cdns_alloc_stream()
1160 pdi->l_ch_num = 0; in sdw_cdns_alloc_stream()
1161 pdi->h_ch_num = ch - 1; in sdw_cdns_alloc_stream()
1162 pdi->dir = dir; in sdw_cdns_alloc_stream()
1163 pdi->ch_count = ch; in sdw_cdns_alloc_stream()