Lines Matching refs:bm
27 unsigned char *bm = ai->bm; in uwb_rsv_fill_column_alloc() local
37 if (bm[col * UWB_MAS_PER_ZONE + mas] == 0) { in uwb_rsv_fill_column_alloc()
48 bm[col * UWB_MAS_PER_ZONE + mas] = c; in uwb_rsv_fill_column_alloc()
57 unsigned char *bm = ai->bm; in uwb_rsv_fill_row_alloc() local
73 if (bm[col * UWB_NUM_ZONES + mas] != UWB_RSV_MAS_NOT_AVAIL) { in uwb_rsv_fill_row_alloc()
74 bm[col * UWB_NUM_ZONES + mas] = c; in uwb_rsv_fill_row_alloc()
206 unsigned char *bm = ai->bm; in get_row_descriptors() local
214 if (bm[col * UWB_NUM_ZONES + mas] == UWB_RSV_MAS_NOT_AVAIL) { in get_row_descriptors()
223 static void uwb_rsv_fill_column_info(unsigned char *bm, int column, struct uwb_rsv_col_info *rci) in uwb_rsv_fill_column_info() argument
236 if (!bm[column * UWB_NUM_ZONES + mas]) { in uwb_rsv_fill_column_info()
262 unsigned char *bm = ai->bm; in get_column_descriptors() local
267 uwb_rsv_fill_column_info(bm, col, &ci[col]); in get_column_descriptors()
337 for_each_clear_bit(bit_index, available->bm, UWB_NUM_MAS) in uwb_rsv_find_best_allocation()
338 ai->bm[bit_index] = UWB_RSV_MAS_NOT_AVAIL; in uwb_rsv_find_best_allocation()
365 bitmap_zero(result->bm, UWB_NUM_MAS); in uwb_rsv_find_best_allocation()
369 if (ai->bm[bit_index] == UWB_RSV_MAS_SAFE) in uwb_rsv_find_best_allocation()
370 set_bit(bit_index, result->bm); in uwb_rsv_find_best_allocation()
371 else if (ai->bm[bit_index] == UWB_RSV_MAS_UNSAFE) in uwb_rsv_find_best_allocation()
374 bitmap_or(result->bm, result->bm, result->unsafe_bm, UWB_NUM_MAS); in uwb_rsv_find_best_allocation()