Lines Matching refs:segment
108 unsigned segment; member
176 int segment, int burstsize) in ipu_dmfc_setup_channel() argument
183 slots, segment, dmfc->data->ipu_channel); in ipu_dmfc_setup_channel()
217 field |= DMFC_SEGMENT(segment); in ipu_dmfc_setup_channel()
227 dmfc->segment = segment; in ipu_dmfc_setup_channel()
229 dmfc->slotmask = ((1 << slots) - 1) << segment; in ipu_dmfc_setup_channel()
248 int i, segment = 0; in dmfc_find_slots() local
257 return segment; in dmfc_find_slots()
260 segment++; in dmfc_find_slots()
272 dmfc->slots, dmfc->segment); in ipu_dmfc_free_bandwidth()
281 dmfc->segment = 0; in ipu_dmfc_free_bandwidth()
288 priv->channels[i].segment = in ipu_dmfc_free_bandwidth()
292 priv->channels[i].segment; in ipu_dmfc_free_bandwidth()
300 priv->channels[i].segment, in ipu_dmfc_free_bandwidth()
313 int segment = -1, ret = 0; in ipu_dmfc_alloc_bandwidth() local
330 segment = dmfc_find_slots(priv, slots * 2); in ipu_dmfc_alloc_bandwidth()
335 if (segment >= 0) in ipu_dmfc_alloc_bandwidth()
338 segment = dmfc_find_slots(priv, slots); in ipu_dmfc_alloc_bandwidth()
339 if (segment < 0) { in ipu_dmfc_alloc_bandwidth()
344 ipu_dmfc_setup_channel(dmfc, slots, segment, burstsize); in ipu_dmfc_alloc_bandwidth()