Lines Matching defs:map

144  * @map:             The bitmap representing the schedule; will be updated
230 * unschedule routine. The map bitmap will be updated on a non-error result.
232 static int pmap_schedule(unsigned long *map, int bits_per_period,
274 start = bitmap_find_next_zero_area(map, end, start, num_bits,
295 map, ith_start + num_bits, ith_start, num_bits,
304 map, ith_end, ith_start, num_bits, 0);
324 bitmap_set(map, ith_start, num_bits);
333 * @map: See pmap_schedule().
340 static void pmap_unschedule(unsigned long *map, int bits_per_period,
357 bitmap_clear(map, ith_start, num_bits);
362 * dwc2_get_ls_map() - Get the map used for the given qh
367 * We'll always get the periodic map out of our TT. Note that even if we're
370 * add logic here to get a map out of "hsotg" if !qh->do_split.
372 * Returns: the map or NULL if a map couldn't be found.
377 unsigned long *map;
383 /* Get the map and adjust if this is a multi_tt hub */
384 map = qh->dwc_tt->periodic_bitmaps;
386 map += DWC2_ELEMENTS_PER_LS_BITMAP * (qh->ttport - 1);
388 return map;
428 * pmap_print() - Print the given periodic map
432 * @map: See pmap_schedule().
440 static void pmap_print(unsigned long *map, int bits_per_period,
462 bitmap_find_next_zero_area(map, i + 1,
528 unsigned long *map = dwc2_get_ls_map(hsotg, qh);
535 if (map) {
537 "QH=%p Whole low/full speed map %p now:\n",
538 qh, map);
539 pmap_print(map, DWC2_LS_PERIODIC_SLICES_PER_FRAME,
557 dwc2_sch_dbg(hsotg, "QH=%p Whole high speed map now:\n", qh);
580 * Normally we schedule low speed devices on the map associated with the TT.
588 unsigned long *map = dwc2_get_ls_map(hsotg, qh);
591 if (!map)
595 * Schedule on the proper low speed map with our low speed scheduling
606 slice = pmap_schedule(map, DWC2_LS_PERIODIC_SLICES_PER_FRAME,
627 unsigned long *map = dwc2_get_ls_map(hsotg, qh);
630 if (!map)
633 pmap_unschedule(map, DWC2_LS_PERIODIC_SLICES_PER_FRAME,
1939 * Adjust interval as per gcd with map size.