Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/random.h>
#include <linux/slab.h>
#include <linux/uwb.h>
#include "uwb-internal.h"
Go to the source code of this file.
Functions | |
int | uwb_rsv_reason_code (struct uwb_rsv *rsv) |
int | uwb_rsv_companion_reason_code (struct uwb_rsv *rsv) |
int | uwb_rsv_status (struct uwb_rsv *rsv) |
int | uwb_rsv_companion_status (struct uwb_rsv *rsv) |
int | uwb_drp_ie_update (struct uwb_rsv *rsv) |
void | uwb_drp_ie_to_bm (struct uwb_mas_bm *bm, const struct uwb_ie_drp *drp_ie) |
void uwb_drp_ie_to_bm | ( | struct uwb_mas_bm * | bm, |
const struct uwb_ie_drp * | drp_ie | ||
) |
uwb_drp_ie_zones_to_bm - convert DRP allocation fields to a bitmap : MAS bitmap that will be populated to correspond to the allocation fields in the DRP IE : the DRP IE that contains the allocation fields.
The input format is an array of MAS allocation fields (16 bit Zone bitmap, 16 bit MAS bitmap) as described in [ECMA-368] section 16.8.6. The output is a full 256 bit MAS bitmap.
We go over all the allocation fields, for each allocation field we know which zones are impacted. We iterate over all the zones impacted and call a function that will set the correct MAS bits in each zone.