Lines Matching defs:map
114 * @map: The bitmap representing the schedule; will be updated
200 * unschedule routine. The map bitmap will be updated on a non-error result.
202 static int pmap_schedule(unsigned long *map, int bits_per_period,
244 start = bitmap_find_next_zero_area(map, end, start, num_bits,
265 map, ith_start + num_bits, ith_start, num_bits,
274 map, ith_end, ith_start, num_bits, 0);
294 bitmap_set(map, ith_start, num_bits);
303 * @map: See pmap_schedule().
310 static void pmap_unschedule(unsigned long *map, int bits_per_period,
327 bitmap_clear(map, ith_start, num_bits);
332 * dwc2_get_ls_map() - Get the map used for the given qh
337 * We'll always get the periodic map out of our TT. Note that even if we're
340 * add logic here to get a map out of "hsotg" if !qh->do_split.
342 * Returns: the map or NULL if a map couldn't be found.
347 unsigned long *map;
353 /* Get the map and adjust if this is a multi_tt hub */
354 map = qh->dwc_tt->periodic_bitmaps;
356 map += DWC2_ELEMENTS_PER_LS_BITMAP * (qh->ttport - 1);
358 return map;
398 * pmap_print() - Print the given periodic map
402 * @map: See pmap_schedule().
410 static void pmap_print(unsigned long *map, int bits_per_period,
432 bitmap_find_next_zero_area(map, i + 1,
498 unsigned long *map = dwc2_get_ls_map(hsotg, qh);
505 if (map) {
507 "QH=%p Whole low/full speed map %p now:\n",
508 qh, map);
509 pmap_print(map, DWC2_LS_PERIODIC_SLICES_PER_FRAME,
527 dwc2_sch_dbg(hsotg, "QH=%p Whole high speed map now:\n", qh);
550 * Normally we schedule low speed devices on the map associated with the TT.
558 unsigned long *map = dwc2_get_ls_map(hsotg, qh);
561 if (!map)
565 * Schedule on the proper low speed map with our low speed scheduling
576 slice = pmap_schedule(map, DWC2_LS_PERIODIC_SLICES_PER_FRAME,
597 unsigned long *map = dwc2_get_ls_map(hsotg, qh);
600 if (!map)
603 pmap_unschedule(map, DWC2_LS_PERIODIC_SLICES_PER_FRAME,
1909 * Adjust interval as per gcd with map size.