Searched refs:mas (Results 1 - 13 of 13) sorted by relevance

/linux-4.4.14/drivers/uwb/
H A Dallocator.c26 int col, mas, safe_mas, unsafe_mas; uwb_rsv_fill_column_alloc() local
36 for (mas = 0; mas < UWB_MAS_PER_ZONE; mas++ ) { uwb_rsv_fill_column_alloc()
37 if (bm[col * UWB_MAS_PER_ZONE + mas] == 0) { uwb_rsv_fill_column_alloc()
48 bm[col * UWB_MAS_PER_ZONE + mas] = c; uwb_rsv_fill_column_alloc()
56 int mas, col, rows; uwb_rsv_fill_row_alloc() local
63 for (mas = UWB_MAS_PER_ZONE - 1; mas >= 0; mas--) { uwb_rsv_fill_row_alloc()
64 if (ri->avail[mas] == 1) { uwb_rsv_fill_row_alloc()
73 if (bm[col * UWB_NUM_ZONES + mas] != UWB_RSV_MAS_NOT_AVAIL) { uwb_rsv_fill_row_alloc()
74 bm[col * UWB_NUM_ZONES + mas] = c; uwb_rsv_fill_row_alloc()
88 * Find the best column set for a given availability, interval, num safe mas and
89 * num unsafe mas.
208 int col, mas; get_row_descriptors() local
211 for (mas = 0; mas < UWB_MAS_PER_ZONE; mas ++) { get_row_descriptors()
212 ri->avail[mas] = 1; get_row_descriptors()
214 if (bm[col * UWB_NUM_ZONES + mas] == UWB_RSV_MAS_NOT_AVAIL) { get_row_descriptors()
216 ri->avail[mas]=0; get_row_descriptors()
225 int mas; uwb_rsv_fill_column_info() local
235 for (mas = 0; mas < UWB_MAS_PER_ZONE; mas ++) { uwb_rsv_fill_column_info()
236 if (!bm[column * UWB_NUM_ZONES + mas]) { uwb_rsv_fill_column_info()
240 rci->highest_mas[available] = mas; uwb_rsv_fill_column_info()
249 start_block = mas; uwb_rsv_fill_column_info()
H A Ddrp.c275 bitmap_and(mv->companion_mas.bm, rsv->mas.bm, conflicting_mas->bm, UWB_NUM_MAS); handle_conflict_normal()
335 bitmap_andnot(mv->companion_mas.bm, rsv->mas.bm, handle_conflict_expanding()
355 if (bitmap_intersects(rsv->mas.bm, conflicting_mas->bm, uwb_drp_handle_conflict_rsv()
368 } else if (bitmap_intersects(rsv->mas.bm, conflicting_mas->bm, uwb_drp_handle_conflict_rsv()
390 struct uwb_ie_drp *drp_ie, struct uwb_mas_bm *mas) uwb_drp_process_target_accepted()
404 if (!bitmap_equal(rsv->mas.bm, mas->bm, UWB_NUM_MAS)) { uwb_drp_process_target_accepted()
410 if (!bitmap_equal(rsv->mas.bm, mas->bm, UWB_NUM_MAS)) { uwb_drp_process_target_accepted()
411 if (uwb_drp_avail_reserve_pending(rc, mas) == -EBUSY) { uwb_drp_process_target_accepted()
418 drp_ie, mas); uwb_drp_process_target_accepted()
421 bitmap_copy(mv->companion_mas.bm, mas->bm, uwb_drp_process_target_accepted()
447 struct uwb_mas_bm mas; uwb_drp_process_target() local
451 uwb_drp_ie_to_bm(&mas, drp_ie); uwb_drp_process_target()
455 uwb_drp_process_target_accepted(rc, rsv, drp_evt, drp_ie, &mas); uwb_drp_process_target()
460 if (bitmap_equal(rsv->mas.bm, mas.bm, UWB_NUM_MAS)) { uwb_drp_process_target()
466 if (bitmap_subset(mas.bm, rsv->mas.bm, UWB_NUM_MAS)) { uwb_drp_process_target()
468 bitmap_andnot(mv->companion_mas.bm, rsv->mas.bm, mas.bm, uwb_drp_process_target()
473 bitmap_copy(rsv->mas.bm, mas.bm, UWB_NUM_MAS); uwb_drp_process_target()
483 struct uwb_mas_bm *mas) uwb_drp_process_owner_accepted()
494 if (bitmap_equal(mas->bm, rsv->mas.bm, UWB_NUM_MAS)) uwb_drp_process_owner_accepted()
501 if (bitmap_equal(mas->bm, rsv->mas.bm, UWB_NUM_MAS)) uwb_drp_process_owner_accepted()
507 if (bitmap_equal(mas->bm, mv->companion_mas.bm, UWB_NUM_MAS)) { uwb_drp_process_owner_accepted()
515 if (bitmap_equal(mas->bm, rsv->mas.bm, UWB_NUM_MAS)) uwb_drp_process_owner_accepted()
535 struct uwb_mas_bm mas; uwb_drp_process_owner() local
539 uwb_drp_ie_to_bm(&mas, drp_ie); uwb_drp_process_owner()
544 uwb_drp_process_owner_accepted(rsv, &mas); uwb_drp_process_owner()
560 bitmap_complement(mas.bm, src->last_availability_bm, uwb_drp_process_owner()
562 uwb_drp_handle_conflict_rsv(rc, rsv, drp_evt, drp_ie, &mas); uwb_drp_process_owner()
596 c->mas.bm, UWB_NUM_MAS); uwb_cnflt_update_work()
620 struct uwb_mas_bm mas; uwb_drp_handle_alien_drp() local
624 uwb_drp_ie_to_bm(&mas, drp_ie); uwb_drp_handle_alien_drp()
627 if (bitmap_equal(cnflt->mas.bm, mas.bm, UWB_NUM_MAS)) { uwb_drp_handle_alien_drp()
650 bitmap_copy(cnflt->mas.bm, mas.bm, UWB_NUM_MAS); uwb_drp_handle_alien_drp()
655 bitmap_or(rc->cnflt_alien_bitmap.bm, rc->cnflt_alien_bitmap.bm, mas.bm, UWB_NUM_MAS); uwb_drp_handle_alien_drp()
667 struct uwb_mas_bm mas; uwb_drp_process_not_involved() local
669 uwb_drp_ie_to_bm(&mas, drp_ie); uwb_drp_process_not_involved()
670 uwb_drp_handle_all_conflict_rsv(rc, drp_evt, drp_ie, &mas); uwb_drp_process_not_involved()
388 uwb_drp_process_target_accepted(struct uwb_rc *rc, struct uwb_rsv *rsv, struct uwb_rc_evt_drp *drp_evt, struct uwb_ie_drp *drp_ie, struct uwb_mas_bm *mas) uwb_drp_process_target_accepted() argument
482 uwb_drp_process_owner_accepted(struct uwb_rsv *rsv, struct uwb_mas_bm *mas) uwb_drp_process_owner_accepted() argument
H A Ddrp-ie.c142 struct uwb_mas_bm *mas) uwb_drp_ie_from_bm()
152 bitmap_copy(tmp_bmp, mas->bm, UWB_NUM_MAS); uwb_drp_ie_from_bm()
203 unsafe = rsv->mas.unsafe ? 1 : 0; uwb_drp_ie_update()
232 uwb_drp_ie_from_bm(drp_ie, &rsv->mas); uwb_drp_ie_update()
271 int mas; uwb_drp_ie_single_zone_to_bm() local
274 for (mas = 0; mas < UWB_MAS_PER_ZONE; mas++) { uwb_drp_ie_single_zone_to_bm()
275 mas_mask = 1 << mas; uwb_drp_ie_single_zone_to_bm()
277 set_bit(zone * UWB_NUM_ZONES + mas, bm->bm); uwb_drp_ie_single_zone_to_bm()
283 * @mas: MAS bitmap that will be populated to correspond to the
141 uwb_drp_ie_from_bm(struct uwb_ie_drp *drp_ie, struct uwb_mas_bm *mas) uwb_drp_ie_from_bm() argument
H A Ddrp-avail.c70 * @mas: the MAS to reserve
74 int uwb_drp_avail_reserve_pending(struct uwb_rc *rc, struct uwb_mas_bm *mas) uwb_drp_avail_reserve_pending() argument
79 if (!bitmap_subset(mas->bm, avail.bm, UWB_NUM_MAS)) uwb_drp_avail_reserve_pending()
82 bitmap_andnot(rc->drp_avail.pending, rc->drp_avail.pending, mas->bm, UWB_NUM_MAS); uwb_drp_avail_reserve_pending()
89 * @mas: the MAS to reserve
91 void uwb_drp_avail_reserve(struct uwb_rc *rc, struct uwb_mas_bm *mas) uwb_drp_avail_reserve() argument
93 bitmap_or(rc->drp_avail.pending, rc->drp_avail.pending, mas->bm, UWB_NUM_MAS); uwb_drp_avail_reserve()
94 bitmap_andnot(rc->drp_avail.local, rc->drp_avail.local, mas->bm, UWB_NUM_MAS); uwb_drp_avail_reserve()
101 * @mas: the MAS to release
103 void uwb_drp_avail_release(struct uwb_rc *rc, struct uwb_mas_bm *mas) uwb_drp_avail_release() argument
105 bitmap_or(rc->drp_avail.local, rc->drp_avail.local, mas->bm, UWB_NUM_MAS); uwb_drp_avail_release()
106 bitmap_or(rc->drp_avail.pending, rc->drp_avail.pending, mas->bm, UWB_NUM_MAS); uwb_drp_avail_release()
H A Drsv.c340 bitmap_andnot(rsv->mas.bm, rsv->mas.bm, mv->companion_mas.bm, UWB_NUM_MAS); uwb_rsv_set_state()
349 uwb_drp_avail_reserve(rsv->rc, &rsv->mas); uwb_rsv_set_state()
360 bitmap_or(rsv->mas.bm, rsv->mas.bm, mv->companion_mas.bm, UWB_NUM_MAS); uwb_rsv_set_state()
361 rsv->mas.safe += mv->companion_mas.safe; uwb_rsv_set_state()
362 rsv->mas.unsafe += mv->companion_mas.unsafe; uwb_rsv_set_state()
366 bitmap_andnot(mv->companion_mas.bm, rsv->mas.bm, mv->final_mas.bm, UWB_NUM_MAS); uwb_rsv_set_state()
368 rsv->mas.safe = mv->final_mas.safe; uwb_rsv_set_state()
369 rsv->mas.unsafe = mv->final_mas.unsafe; uwb_rsv_set_state()
370 bitmap_copy(rsv->mas.bm, mv->final_mas.bm, UWB_NUM_MAS); uwb_rsv_set_state()
371 bitmap_copy(rsv->mas.unsafe_bm, mv->final_mas.unsafe_bm, UWB_NUM_MAS); uwb_rsv_set_state()
377 uwb_drp_avail_reserve(rsv->rc, &rsv->mas); uwb_rsv_set_state()
518 uwb_drp_avail_release(rsv->rc, &rsv->mas); uwb_rsv_remove()
570 /* get available mas bitmap */ uwb_rsv_establish()
573 ret = uwb_rsv_find_best_allocation(rsv, &available, &rsv->mas); uwb_rsv_establish()
582 ret = uwb_drp_avail_reserve_pending(rc, &rsv->mas); uwb_rsv_establish()
635 if (!bitmap_equal(rsv->mas.bm, mv->final_mas.bm, UWB_NUM_MAS)) { uwb_rsv_try_move()
637 bitmap_andnot(mv->companion_mas.bm, mv->final_mas.bm, rsv->mas.bm, UWB_NUM_MAS); uwb_rsv_try_move()
655 struct uwb_mas_bm mas; uwb_rsv_handle_drp_avail_change() local
663 uwb_drp_available(rc, &mas); uwb_rsv_handle_drp_avail_change()
664 bitmap_or(mas.bm, mas.bm, rsv->mas.bm, UWB_NUM_MAS); uwb_rsv_handle_drp_avail_change()
665 uwb_rsv_try_move(rsv, &mas); uwb_rsv_handle_drp_avail_change()
763 uwb_drp_ie_to_bm(&rsv->mas, drp_ie); uwb_rsv_new_target()
785 && uwb_drp_avail_reserve_pending(rc, &rsv->mas) == -EBUSY) { uwb_rsv_new_target()
797 * @mas: returns the available MAS.
802 void uwb_rsv_get_usable_mas(struct uwb_rsv *rsv, struct uwb_mas_bm *mas) uwb_rsv_get_usable_mas() argument
804 bitmap_zero(mas->bm, UWB_NUM_MAS); uwb_rsv_get_usable_mas()
805 bitmap_andnot(mas->bm, rsv->mas.bm, rsv->rc->cnflt_alien_bitmap.bm, UWB_NUM_MAS); uwb_rsv_get_usable_mas()
H A Duwb-internal.h121 struct uwb_mas_bm mas; member in struct:uwb_cnflt_alien
349 int uwb_drp_avail_reserve_pending(struct uwb_rc *rc, struct uwb_mas_bm *mas);
350 void uwb_drp_avail_reserve(struct uwb_rc *rc, struct uwb_mas_bm *mas);
351 void uwb_drp_avail_release(struct uwb_rc *rc, struct uwb_mas_bm *mas);
H A Duwb-debug.c236 seq_printf(s, " %*pb\n", UWB_NUM_MAS, rsv->mas.bm); reservations_print()
/linux-4.4.14/drivers/usb/wusbcore/
H A Dreservation.c32 const struct uwb_mas_bm *mas) wusbhc_bwa_set()
34 if (mas == NULL) wusbhc_bwa_set()
35 mas = &uwb_mas_bm_zero; wusbhc_bwa_set()
36 return wusbhc->bwa_set(wusbhc, stream, mas); wusbhc_bwa_set()
51 struct uwb_mas_bm mas; wusbhc_rsv_complete_cb() local
56 uwb_rsv_get_usable_mas(rsv, &mas); wusbhc_rsv_complete_cb()
58 UWB_NUM_MAS, mas.bm); wusbhc_rsv_complete_cb()
59 wusbhc_bwa_set(wusbhc, rsv->stream, &mas); wusbhc_rsv_complete_cb()
31 wusbhc_bwa_set(struct wusbhc *wusbhc, u8 stream, const struct uwb_mas_bm *mas) wusbhc_bwa_set() argument
/linux-4.4.14/include/linux/
H A Duwb.h228 * @mas: reserved MAS
260 struct uwb_mas_bm mas; member in struct:uwb_rsv
271 static inline void uwb_mas_bm_copy_le(void *dst, const struct uwb_mas_bm *mas) uwb_mas_bm_copy_le() argument
273 bitmap_copy_le(dst, mas->bm, UWB_NUM_MAS); uwb_mas_bm_copy_le()
329 void uwb_rsv_get_usable_mas(struct uwb_rsv *orig_rsv, struct uwb_mas_bm *mas);
/linux-4.4.14/drivers/usb/host/
H A Dhwa-hc.c331 * @mas: mas bitmap to use
334 const struct uwb_mas_bm *mas) __hwahc_op_bwa_set()
353 uwb_mas_bm_copy_le(mas_le, mas); __hwahc_op_bwa_set()
333 __hwahc_op_bwa_set(struct wusbhc *wusbhc, s8 stream_index, const struct uwb_mas_bm *mas) __hwahc_op_bwa_set() argument
/linux-4.4.14/drivers/media/pci/saa7164/
H A Dsaa7164-api.c629 u8 mas; saa7164_api_set_dif() local
635 mas = 0xd0; saa7164_api_set_dif()
637 mas = 0xe0; saa7164_api_set_dif()
653 buf[0x0a] = mas; saa7164_api_set_dif()
/linux-4.4.14/fs/ocfs2/dlm/
H A Ddlmrecovery.c904 "recovery master %u died, thread=(dead=%u,mas=%u)" dlm_request_all_locks_worker()
905 " current=(dead=%u,mas=%u)\n", dlm->name, dlm_request_all_locks_worker()
/linux-4.4.14/drivers/pinctrl/sirf/
H A Dpinctrl-atlas7.c4774 * @mask:The mas value of this pin's pull bits.

Completed in 360 milliseconds