Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
qib_sysfs.c File Reference
#include <linux/ctype.h>
#include "qib.h"
#include "qib_mad.h"

Go to the source code of this file.

Data Structures

struct  qib_port_attr
 
struct  qib_sl2vl_attr
 
struct  qib_diagc_attr
 

Macros

#define QIB_PORT_ATTR(name, mode, show, store)
 
#define QIB_SL2VL_ATTR(N)
 
#define QIB_DIAGC_ATTR(N)
 

Functions

 QIB_PORT_ATTR (loopback, S_IWUSR, NULL, store_loopback)
 
 QIB_PORT_ATTR (led_override, S_IWUSR, NULL, store_led_override)
 
 QIB_PORT_ATTR (hrtbt_enable, S_IWUSR|S_IRUGO, show_hrtbt_enb, store_hrtbt_enb)
 
 QIB_PORT_ATTR (status, S_IRUGO, show_status, NULL)
 
 QIB_PORT_ATTR (status_str, S_IRUGO, show_status_str, NULL)
 
 QIB_SL2VL_ATTR (0)
 
 QIB_SL2VL_ATTR (1)
 
 QIB_SL2VL_ATTR (2)
 
 QIB_SL2VL_ATTR (3)
 
 QIB_SL2VL_ATTR (4)
 
 QIB_SL2VL_ATTR (5)
 
 QIB_SL2VL_ATTR (6)
 
 QIB_SL2VL_ATTR (7)
 
 QIB_SL2VL_ATTR (8)
 
 QIB_SL2VL_ATTR (9)
 
 QIB_SL2VL_ATTR (10)
 
 QIB_SL2VL_ATTR (11)
 
 QIB_SL2VL_ATTR (12)
 
 QIB_SL2VL_ATTR (13)
 
 QIB_SL2VL_ATTR (14)
 
 QIB_SL2VL_ATTR (15)
 
 QIB_DIAGC_ATTR (rc_resends)
 
 QIB_DIAGC_ATTR (rc_acks)
 
 QIB_DIAGC_ATTR (rc_qacks)
 
 QIB_DIAGC_ATTR (rc_delayed_comp)
 
 QIB_DIAGC_ATTR (seq_naks)
 
 QIB_DIAGC_ATTR (rdma_seq)
 
 QIB_DIAGC_ATTR (rnr_naks)
 
 QIB_DIAGC_ATTR (other_naks)
 
 QIB_DIAGC_ATTR (rc_timeouts)
 
 QIB_DIAGC_ATTR (loop_pkts)
 
 QIB_DIAGC_ATTR (pkt_drops)
 
 QIB_DIAGC_ATTR (dmawait)
 
 QIB_DIAGC_ATTR (unaligned)
 
 QIB_DIAGC_ATTR (rc_dupreq)
 
 QIB_DIAGC_ATTR (rc_seqnak)
 
int qib_create_port_files (struct ib_device *ibdev, u8 port_num, struct kobject *kobj)
 
int qib_verbs_register_sysfs (struct qib_devdata *dd)
 
void qib_verbs_unregister_sysfs (struct qib_devdata *dd)
 

Macro Definition Documentation

#define QIB_DIAGC_ATTR (   N)
Value:
static struct qib_diagc_attr qib_diagc_attr_##N = { \
.attr = { .name = __stringify(N), .mode = 0664 }, \
.counter = offsetof(struct qib_ibport, n_##N) \
}

Definition at line 406 of file qib_sysfs.c.

#define QIB_PORT_ATTR (   name,
  mode,
  show,
  store 
)
Value:
static struct qib_port_attr qib_port_attr_##name = \
__ATTR(name, mode, show, store)

Definition at line 178 of file qib_sysfs.c.

#define QIB_SL2VL_ATTR (   N)
Value:
static struct qib_sl2vl_attr qib_sl2vl_attr_##N = { \
.attr = { .name = __stringify(N), .mode = 0444 }, \
.sl = N \
}

Definition at line 332 of file qib_sysfs.c.

Function Documentation

int qib_create_port_files ( struct ib_device ibdev,
u8  port_num,
struct kobject kobj 
)

Definition at line 702 of file qib_sysfs.c.

QIB_DIAGC_ATTR ( rc_resends  )
QIB_DIAGC_ATTR ( rc_acks  )
QIB_DIAGC_ATTR ( rc_qacks  )
QIB_DIAGC_ATTR ( rc_delayed_comp  )
QIB_DIAGC_ATTR ( seq_naks  )
QIB_DIAGC_ATTR ( rdma_seq  )
QIB_DIAGC_ATTR ( rnr_naks  )
QIB_DIAGC_ATTR ( other_naks  )
QIB_DIAGC_ATTR ( rc_timeouts  )
QIB_DIAGC_ATTR ( loop_pkts  )
QIB_DIAGC_ATTR ( pkt_drops  )
QIB_DIAGC_ATTR ( dmawait  )
QIB_DIAGC_ATTR ( unaligned  )
QIB_DIAGC_ATTR ( rc_dupreq  )
QIB_DIAGC_ATTR ( rc_seqnak  )
QIB_PORT_ATTR ( loopback  ,
S_IWUSR  ,
NULL  ,
store_loopback   
)
QIB_PORT_ATTR ( led_override  ,
S_IWUSR  ,
NULL  ,
store_led_override   
)
QIB_PORT_ATTR ( hrtbt_enable  ,
S_IWUSR S_IRUGO,
show_hrtbt_enb  ,
store_hrtbt_enb   
)
QIB_PORT_ATTR ( status  ,
S_IRUGO  ,
show_status  ,
NULL   
)
QIB_PORT_ATTR ( status_str  ,
S_IRUGO  ,
show_status_str  ,
NULL   
)
QIB_SL2VL_ATTR ( )
QIB_SL2VL_ATTR ( )
QIB_SL2VL_ATTR ( )
QIB_SL2VL_ATTR ( )
QIB_SL2VL_ATTR ( )
QIB_SL2VL_ATTR ( )
QIB_SL2VL_ATTR ( )
QIB_SL2VL_ATTR ( )
QIB_SL2VL_ATTR ( )
QIB_SL2VL_ATTR ( )
QIB_SL2VL_ATTR ( 10  )
QIB_SL2VL_ATTR ( 11  )
QIB_SL2VL_ATTR ( 12  )
QIB_SL2VL_ATTR ( 13  )
QIB_SL2VL_ATTR ( 14  )
QIB_SL2VL_ATTR ( 15  )
int qib_verbs_register_sysfs ( struct qib_devdata dd)

Definition at line 803 of file qib_sysfs.c.

void qib_verbs_unregister_sysfs ( struct qib_devdata dd)

Definition at line 820 of file qib_sysfs.c.