Linux Kernel
3.7.1
|
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/bitmap.h>
#include "uwb-internal.h"
Go to the source code of this file.
Functions | |
void | uwb_drp_avail_init (struct uwb_rc *rc) |
void | uwb_drp_available (struct uwb_rc *rc, struct uwb_mas_bm *avail) |
int | uwb_drp_avail_reserve_pending (struct uwb_rc *rc, struct uwb_mas_bm *mas) |
void | uwb_drp_avail_reserve (struct uwb_rc *rc, struct uwb_mas_bm *mas) |
void | uwb_drp_avail_release (struct uwb_rc *rc, struct uwb_mas_bm *mas) |
void | uwb_drp_avail_ie_update (struct uwb_rc *rc) |
int | uwbd_evt_handle_rc_drp_avail (struct uwb_event *evt) |
uwb_drp_avail_ie_update - update the DRP Availability IE : the radio controller
avail = global & local
Definition at line 117 of file drp-avail.c.
void uwb_drp_avail_release | ( | struct uwb_rc * | rc, |
struct uwb_mas_bm * | mas | ||
) |
uwb_drp_avail_release - release MAS from a pending or established reservation : the radio controller : the MAS to release
Definition at line 103 of file drp-avail.c.
void uwb_drp_avail_reserve | ( | struct uwb_rc * | rc, |
struct uwb_mas_bm * | mas | ||
) |
uwb_drp_avail_reserve - reserve MAS for an established reservation : the radio controller : the MAS to reserve
Definition at line 91 of file drp-avail.c.
int uwb_drp_avail_reserve_pending | ( | struct uwb_rc * | rc, |
struct uwb_mas_bm * | mas | ||
) |
uwb_drp_avail_reserve_pending - reserve MAS for a new reservation : the radio controller : the MAS to reserve
Returns 0 on success, or -EBUSY if the MAS requested aren't available.
Definition at line 74 of file drp-avail.c.
void uwb_drp_available | ( | struct uwb_rc * | rc, |
struct uwb_mas_bm * | avail | ||
) |
Definition at line 61 of file drp-avail.c.
Process an incoming DRP Availability notification.
: Event information (packs the actual event data, which radio controller it came to, etc).
According to ECMA-368 1.0 [16.8.7], bits set to ONE indicate that the MAS slot is available, bits set to ZERO indicate that the slot is busy.
So we clear available slots, we set used slots :)
The notification only marks non-availability based on the BP and received DRP IEs that are not for this radio controller. A copy of this bitmap is needed to generate the real availability (which includes local and pending reservations).
The DRP Availability IE that this radio controller emits will need to be updated.
Definition at line 271 of file drp-avail.c.