Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
drp-ie.c File Reference
#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)
 

Function Documentation

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.

Definition at line 296 of file drp-ie.c.

int uwb_drp_ie_update ( struct uwb_rsv rsv)

uwb_drp_ie_update - update a reservation's DRP IE : the reservation

Definition at line 191 of file drp-ie.c.

int uwb_rsv_companion_reason_code ( struct uwb_rsv rsv)

Definition at line 58 of file drp-ie.c.

int uwb_rsv_companion_status ( struct uwb_rsv rsv)

Definition at line 103 of file drp-ie.c.

int uwb_rsv_reason_code ( struct uwb_rsv rsv)

Definition at line 30 of file drp-ie.c.

int uwb_rsv_status ( struct uwb_rsv rsv)

Definition at line 74 of file drp-ie.c.