Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

irlan_client_event.c File Reference

#include <linux/skbuff.h>
#include <net/irda/irda.h>
#include <net/irda/timer.h>
#include <net/irda/irmod.h>
#include <net/irda/iriap.h>
#include <net/irda/irlmp.h>
#include <net/irda/irttp.h>
#include <net/irda/irlan_common.h>
#include <net/irda/irlan_client.h>
#include <net/irda/irlan_event.h>

Include dependency graph for irlan_client_event.c:

Go to the source code of this file.

Functions

static int irlan_client_state_idle (struct irlan_cb *self, IRLAN_EVENT event, struct sk_buff *skb)
static int irlan_client_state_query (struct irlan_cb *self, IRLAN_EVENT event, struct sk_buff *skb)
static int irlan_client_state_conn (struct irlan_cb *self, IRLAN_EVENT event, struct sk_buff *skb)
static int irlan_client_state_info (struct irlan_cb *self, IRLAN_EVENT event, struct sk_buff *skb)
static int irlan_client_state_media (struct irlan_cb *self, IRLAN_EVENT event, struct sk_buff *skb)
static int irlan_client_state_open (struct irlan_cb *self, IRLAN_EVENT event, struct sk_buff *skb)
static int irlan_client_state_wait (struct irlan_cb *self, IRLAN_EVENT event, struct sk_buff *skb)
static int irlan_client_state_arb (struct irlan_cb *self, IRLAN_EVENT event, struct sk_buff *skb)
static int irlan_client_state_data (struct irlan_cb *self, IRLAN_EVENT event, struct sk_buff *skb)
static int irlan_client_state_close (struct irlan_cb *self, IRLAN_EVENT event, struct sk_buff *skb)
static int irlan_client_state_sync (struct irlan_cb *self, IRLAN_EVENT event, struct sk_buff *skb)
void irlan_do_client_event (struct irlan_cb *self, IRLAN_EVENT event, struct sk_buff *skb)

Variables

static int(* state [])(struct irlan_cb *, IRLAN_EVENT event, struct sk_buff *)


Function Documentation

static int irlan_client_state_arb struct irlan_cb self,
IRLAN_EVENT  event,
struct sk_buff skb
[static]
 

Definition at line 406 of file irlan_client_event.c.

References ASSERT, qos_value_t::bits, irlan_cb::client, irlan_cb::daddr, dev_kfree_skb, irlan_cb::dtsap_sel_data, IRDA_DEBUG, IRLAN_CHECK_CON_ARB, IRLAN_CLOSE, irlan_close_data_channel(), IRLAN_DATA, IRLAN_DATA_CONNECT_INDICATION, IRLAN_IDLE, IRLAN_LAP_DISCONNECT, IRLAN_LMP_DISCONNECT, IRLAN_MTU, irlan_next_client_state(), IRLAN_WATCHDOG_TIMEOUT, irttp_connect_request(), qos_info::link_disc_time, NULL, irlan_cb::provider, irlan_client_cb::recv_arb_val, irlan_cb::saddr, irlan_provider_cb::send_arb_val, and irlan_cb::tsap_data.

Here is the call graph for this function:

static int irlan_client_state_close struct irlan_cb self,
IRLAN_EVENT  event,
struct sk_buff skb
[static]
 

Definition at line 495 of file irlan_client_event.c.

References dev_kfree_skb, and IRDA_DEBUG.

static int irlan_client_state_conn struct irlan_cb self,
IRLAN_EVENT  event,
struct sk_buff skb
[static]
 

Definition at line 190 of file irlan_client_event.c.

References ASSERT, dev_kfree_skb, IRDA_DEBUG, IRLAN_CONNECT_COMPLETE, irlan_get_provider_info(), IRLAN_IDLE, IRLAN_INFO, IRLAN_LAP_DISCONNECT, IRLAN_LMP_DISCONNECT, irlan_next_client_state(), IRLAN_WATCHDOG_TIMEOUT, and NULL.

Here is the call graph for this function:

static int irlan_client_state_data struct irlan_cb self,
IRLAN_EVENT  event,
struct sk_buff skb
[static]
 

Definition at line 463 of file irlan_client_event.c.

References ASSERT, dev_kfree_skb, IRDA_DEBUG, irlan_client_parse_response(), IRLAN_DATA_INDICATION, IRLAN_IDLE, IRLAN_LAP_DISCONNECT, IRLAN_LMP_DISCONNECT, IRLAN_MAGIC, irlan_next_client_state(), irlan_cb::magic, and NULL.

Here is the call graph for this function:

static int irlan_client_state_idle struct irlan_cb self,
IRLAN_EVENT  event,
struct sk_buff skb
[static]
 

Definition at line 92 of file irlan_client_event.c.

References ASSERT, irlan_cb::client, irlan_cb::daddr, dev_kfree_skb, EBUSY, IAS_CLIENT, IRDA_DEBUG, irlan_client_cb::iriap, iriap_getvaluebyclass_request(), iriap_open(), irlan_client_get_value_confirm(), IRLAN_DISCOVERY_INDICATION, IRLAN_MAGIC, irlan_next_client_state(), IRLAN_QUERY, IRLAN_WATCHDOG_TIMEOUT, LSAP_ANY, irlan_cb::magic, NULL, irlan_cb::saddr, and WARNING.

Here is the call graph for this function:

static int irlan_client_state_info struct irlan_cb self,
IRLAN_EVENT  event,
struct sk_buff skb
[static]
 

Definition at line 225 of file irlan_client_event.c.

References ASSERT, dev_kfree_skb, IRDA_DEBUG, irlan_client_parse_response(), IRLAN_DATA_INDICATION, irlan_get_media_char(), IRLAN_IDLE, IRLAN_LAP_DISCONNECT, IRLAN_LMP_DISCONNECT, IRLAN_MEDIA, irlan_next_client_state(), IRLAN_WATCHDOG_TIMEOUT, and NULL.

Here is the call graph for this function:

static int irlan_client_state_media struct irlan_cb self,
IRLAN_EVENT  event,
struct sk_buff skb
[static]
 

Definition at line 267 of file irlan_client_event.c.

References ASSERT, dev_kfree_skb, IRDA_DEBUG, irlan_client_parse_response(), IRLAN_DATA_INDICATION, IRLAN_IDLE, IRLAN_LAP_DISCONNECT, IRLAN_LMP_DISCONNECT, irlan_next_client_state(), IRLAN_OPEN, irlan_open_data_channel(), IRLAN_WATCHDOG_TIMEOUT, and NULL.

Here is the call graph for this function:

static int irlan_client_state_open struct irlan_cb self,
IRLAN_EVENT  event,
struct sk_buff skb
[static]
 

Definition at line 304 of file irlan_client_event.c.

References ACCESS_DIRECT, ACCESS_HOSTED, ACCESS_PEER, irlan_client_cb::access_type, ASSERT, qos_value_t::bits, irlan_cb::client, irlan_cb::daddr, dev_kfree_skb, irlan_cb::dtsap_sel_data, IRDA_DEBUG, IRLAN_ARB, IRLAN_CHECK_CON_ARB, irlan_client_parse_response(), IRLAN_DATA, IRLAN_DATA_INDICATION, irlan_do_client_event(), IRLAN_IDLE, IRLAN_LAP_DISCONNECT, IRLAN_LMP_DISCONNECT, IRLAN_MTU, irlan_next_client_state(), IRLAN_OPEN, IRLAN_WAIT, IRLAN_WATCHDOG_TIMEOUT, irttp_connect_request(), qos_info::link_disc_time, NULL, irlan_cb::provider, irlan_cb::saddr, irlan_provider_cb::state, and irlan_cb::tsap_data.

Here is the call graph for this function:

static int irlan_client_state_query struct irlan_cb self,
IRLAN_EVENT  event,
struct sk_buff skb
[static]
 

Definition at line 137 of file irlan_client_event.c.

References ACCESS_PEER, irlan_provider_cb::access_type, ASSERT, irlan_cb::client, irlan_cb::daddr, dev_kfree_skb, irlan_cb::dtsap_sel_ctrl, IRDA_DEBUG, irlan_client_wakeup(), IRLAN_CONN, IRLAN_IAS_PROVIDER_AVAIL, IRLAN_IAS_PROVIDER_NOT_AVAIL, IRLAN_IDLE, IRLAN_LAP_DISCONNECT, IRLAN_LMP_DISCONNECT, IRLAN_MAGIC, IRLAN_MTU, irlan_next_client_state(), IRLAN_WATCHDOG_TIMEOUT, irttp_connect_request(), irlan_cb::magic, NULL, irlan_cb::provider, irlan_cb::saddr, irlan_provider_cb::state, and irlan_client_cb::tsap_ctrl.

Here is the call graph for this function:

static int irlan_client_state_sync struct irlan_cb self,
IRLAN_EVENT  event,
struct sk_buff skb
[static]
 

Definition at line 512 of file irlan_client_event.c.

References dev_kfree_skb, and IRDA_DEBUG.

static int irlan_client_state_wait struct irlan_cb self,
IRLAN_EVENT  event,
struct sk_buff skb
[static]
 

Definition at line 377 of file irlan_client_event.c.

References ASSERT, dev_kfree_skb, IRDA_DEBUG, IRLAN_ARB, IRLAN_CHECK_CON_ARB, irlan_do_client_event(), IRLAN_IDLE, IRLAN_LAP_DISCONNECT, IRLAN_LMP_DISCONNECT, irlan_next_client_state(), IRLAN_PROVIDER_SIGNAL, IRLAN_WATCHDOG_TIMEOUT, and NULL.

Here is the call graph for this function:

void irlan_do_client_event struct irlan_cb self,
IRLAN_EVENT  event,
struct sk_buff skb
 

Definition at line 77 of file irlan_client_event.c.

References ASSERT, IRLAN_MAGIC, irlan_cb::magic, NULL, and state.

Referenced by irlan_client_ctrl_connect_confirm(), irlan_client_ctrl_data_indication(), irlan_client_ctrl_disconnect_indication(), irlan_client_get_value_confirm(), irlan_client_state_open(), irlan_client_state_wait(), irlan_client_wakeup(), irlan_connect_indication(), irlan_disconnect_indication(), irlan_eth_close(), and irlan_provider_state_info().


Variable Documentation

int(* state[])(struct irlan_cb *, IRLAN_EVENT event, struct sk_buff *) [static]
 

Initial value:

Definition at line 62 of file irlan_client_event.c.