Lines Matching refs:i2400m
25 struct i2400m *i2400m = data; in debugfs_netdev_queue_stopped_get() local
26 *val = netif_queue_stopped(i2400m->wimax_dev.net_dev); in debugfs_netdev_queue_stopped_get()
44 struct i2400m *i2400m = filp->private_data; in i2400m_rx_stats_read() local
52 spin_lock_irqsave(&i2400m->rx_lock, flags); in i2400m_rx_stats_read()
54 i2400m->rx_pl_num, i2400m->rx_pl_min, in i2400m_rx_stats_read()
55 i2400m->rx_pl_max, i2400m->rx_num, in i2400m_rx_stats_read()
56 i2400m->rx_size_acc, in i2400m_rx_stats_read()
57 i2400m->rx_size_min, i2400m->rx_size_max); in i2400m_rx_stats_read()
58 spin_unlock_irqrestore(&i2400m->rx_lock, flags); in i2400m_rx_stats_read()
68 struct i2400m *i2400m = filp->private_data; in i2400m_rx_stats_write() local
71 spin_lock_irqsave(&i2400m->rx_lock, flags); in i2400m_rx_stats_write()
72 i2400m->rx_pl_num = 0; in i2400m_rx_stats_write()
73 i2400m->rx_pl_max = 0; in i2400m_rx_stats_write()
74 i2400m->rx_pl_min = UINT_MAX; in i2400m_rx_stats_write()
75 i2400m->rx_num = 0; in i2400m_rx_stats_write()
76 i2400m->rx_size_acc = 0; in i2400m_rx_stats_write()
77 i2400m->rx_size_min = UINT_MAX; in i2400m_rx_stats_write()
78 i2400m->rx_size_max = 0; in i2400m_rx_stats_write()
79 spin_unlock_irqrestore(&i2400m->rx_lock, flags); in i2400m_rx_stats_write()
98 struct i2400m *i2400m = filp->private_data; in i2400m_tx_stats_read() local
106 spin_lock_irqsave(&i2400m->tx_lock, flags); in i2400m_tx_stats_read()
108 i2400m->tx_pl_num, i2400m->tx_pl_min, in i2400m_tx_stats_read()
109 i2400m->tx_pl_max, i2400m->tx_num, in i2400m_tx_stats_read()
110 i2400m->tx_size_acc, in i2400m_tx_stats_read()
111 i2400m->tx_size_min, i2400m->tx_size_max); in i2400m_tx_stats_read()
112 spin_unlock_irqrestore(&i2400m->tx_lock, flags); in i2400m_tx_stats_read()
121 struct i2400m *i2400m = filp->private_data; in i2400m_tx_stats_write() local
124 spin_lock_irqsave(&i2400m->tx_lock, flags); in i2400m_tx_stats_write()
125 i2400m->tx_pl_num = 0; in i2400m_tx_stats_write()
126 i2400m->tx_pl_max = 0; in i2400m_tx_stats_write()
127 i2400m->tx_pl_min = UINT_MAX; in i2400m_tx_stats_write()
128 i2400m->tx_num = 0; in i2400m_tx_stats_write()
129 i2400m->tx_size_acc = 0; in i2400m_tx_stats_write()
130 i2400m->tx_size_min = UINT_MAX; in i2400m_tx_stats_write()
131 i2400m->tx_size_max = 0; in i2400m_tx_stats_write()
132 spin_unlock_irqrestore(&i2400m->tx_lock, flags); in i2400m_tx_stats_write()
151 struct i2400m *i2400m = data; in debugfs_i2400m_suspend_set() local
152 result = i2400m_cmd_enter_powersave(i2400m); in debugfs_i2400m_suspend_set()
171 struct i2400m *i2400m = data; in debugfs_i2400m_reset_set() local
177 result = i2400m_reset(i2400m, rt); in debugfs_i2400m_reset_set()
190 void i2400m_debugfs_add(struct i2400m *i2400m) in i2400m_debugfs_add() argument
192 struct dentry *dentry = i2400m->wimax_dev.debugfs_dentry; in i2400m_debugfs_add()
195 i2400m->debugfs_dentry = dentry; in i2400m_debugfs_add()
206 debugfs_create_size_t("tx_in", 0400, dentry, &i2400m->tx_in); in i2400m_debugfs_add()
207 debugfs_create_size_t("tx_out", 0400, dentry, &i2400m->tx_out); in i2400m_debugfs_add()
208 debugfs_create_u32("state", 0600, dentry, &i2400m->state); in i2400m_debugfs_add()
233 &i2400m->trace_msg_from_user); in i2400m_debugfs_add()
235 debugfs_create_file("netdev_queue_stopped", 0400, dentry, i2400m, in i2400m_debugfs_add()
238 debugfs_create_file("rx_stats", 0600, dentry, i2400m, in i2400m_debugfs_add()
241 debugfs_create_file("tx_stats", 0600, dentry, i2400m, in i2400m_debugfs_add()
244 debugfs_create_file("suspend", 0200, dentry, i2400m, in i2400m_debugfs_add()
247 debugfs_create_file("reset", 0200, dentry, i2400m, &fops_i2400m_reset); in i2400m_debugfs_add()
250 void i2400m_debugfs_rm(struct i2400m *i2400m) in i2400m_debugfs_rm() argument
252 debugfs_remove_recursive(i2400m->debugfs_dentry); in i2400m_debugfs_rm()