Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
commands.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/nfc.h>
#include <net/nfc/nfc.h>
#include "../nfc.h"
#include "llcp.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "llcp: %s: " fmt, __func__
 

Functions

u8nfc_llcp_build_tlv (u8 type, u8 *value, u8 value_length, u8 *tlv_length)
 
int nfc_llcp_parse_gb_tlv (struct nfc_llcp_local *local, u8 *tlv_array, u16 tlv_array_len)
 
int nfc_llcp_parse_connection_tlv (struct nfc_llcp_sock *sock, u8 *tlv_array, u16 tlv_array_len)
 
int nfc_llcp_disconnect (struct nfc_llcp_sock *sock)
 
int nfc_llcp_send_symm (struct nfc_dev *dev)
 
int nfc_llcp_send_connect (struct nfc_llcp_sock *sock)
 
int nfc_llcp_send_cc (struct nfc_llcp_sock *sock)
 
int nfc_llcp_send_dm (struct nfc_llcp_local *local, u8 ssap, u8 dsap, u8 reason)
 
int nfc_llcp_send_disconnect (struct nfc_llcp_sock *sock)
 
int nfc_llcp_send_i_frame (struct nfc_llcp_sock *sock, struct msghdr *msg, size_t len)
 
int nfc_llcp_send_rr (struct nfc_llcp_sock *sock)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    "llcp: %s: " fmt, __func__

Definition at line 20 of file commands.c.

Function Documentation

u8* nfc_llcp_build_tlv ( u8  type,
u8 value,
u8  value_length,
u8 tlv_length 
)

Definition at line 93 of file commands.c.

int nfc_llcp_disconnect ( struct nfc_llcp_sock sock)

Definition at line 259 of file commands.c.

int nfc_llcp_parse_connection_tlv ( struct nfc_llcp_sock sock,
u8 tlv_array,
u16  tlv_array_len 
)

Definition at line 169 of file commands.c.

int nfc_llcp_parse_gb_tlv ( struct nfc_llcp_local local,
u8 tlv_array,
u16  tlv_array_len 
)

Definition at line 120 of file commands.c.

int nfc_llcp_send_cc ( struct nfc_llcp_sock sock)

Definition at line 384 of file commands.c.

int nfc_llcp_send_connect ( struct nfc_llcp_sock sock)

Definition at line 321 of file commands.c.

int nfc_llcp_send_disconnect ( struct nfc_llcp_sock sock)

Definition at line 464 of file commands.c.

int nfc_llcp_send_dm ( struct nfc_llcp_local local,
u8  ssap,
u8  dsap,
u8  reason 
)

Definition at line 431 of file commands.c.

int nfc_llcp_send_i_frame ( struct nfc_llcp_sock sock,
struct msghdr msg,
size_t  len 
)

Definition at line 484 of file commands.c.

int nfc_llcp_send_rr ( struct nfc_llcp_sock sock)

Definition at line 544 of file commands.c.

int nfc_llcp_send_symm ( struct nfc_dev dev)

Definition at line 292 of file commands.c.