Lines Matching refs:i2400m
39 struct i2400m *i2400m = data; in debugfs_netdev_queue_stopped_get() local
40 *val = netif_queue_stopped(i2400m->wimax_dev.net_dev); in debugfs_netdev_queue_stopped_get()
50 const char *name, struct dentry *parent, struct i2400m *i2400m) in debugfs_create_netdev_queue_stopped() argument
52 return debugfs_create_file(name, 0400, parent, i2400m, in debugfs_create_netdev_queue_stopped()
67 struct i2400m *i2400m = filp->private_data; in i2400m_rx_stats_read() local
75 spin_lock_irqsave(&i2400m->rx_lock, flags); in i2400m_rx_stats_read()
77 i2400m->rx_pl_num, i2400m->rx_pl_min, in i2400m_rx_stats_read()
78 i2400m->rx_pl_max, i2400m->rx_num, in i2400m_rx_stats_read()
79 i2400m->rx_size_acc, in i2400m_rx_stats_read()
80 i2400m->rx_size_min, i2400m->rx_size_max); in i2400m_rx_stats_read()
81 spin_unlock_irqrestore(&i2400m->rx_lock, flags); in i2400m_rx_stats_read()
91 struct i2400m *i2400m = filp->private_data; in i2400m_rx_stats_write() local
94 spin_lock_irqsave(&i2400m->rx_lock, flags); in i2400m_rx_stats_write()
95 i2400m->rx_pl_num = 0; in i2400m_rx_stats_write()
96 i2400m->rx_pl_max = 0; in i2400m_rx_stats_write()
97 i2400m->rx_pl_min = UINT_MAX; in i2400m_rx_stats_write()
98 i2400m->rx_num = 0; in i2400m_rx_stats_write()
99 i2400m->rx_size_acc = 0; in i2400m_rx_stats_write()
100 i2400m->rx_size_min = UINT_MAX; in i2400m_rx_stats_write()
101 i2400m->rx_size_max = 0; in i2400m_rx_stats_write()
102 spin_unlock_irqrestore(&i2400m->rx_lock, flags); in i2400m_rx_stats_write()
121 struct i2400m *i2400m = filp->private_data; in i2400m_tx_stats_read() local
129 spin_lock_irqsave(&i2400m->tx_lock, flags); in i2400m_tx_stats_read()
131 i2400m->tx_pl_num, i2400m->tx_pl_min, in i2400m_tx_stats_read()
132 i2400m->tx_pl_max, i2400m->tx_num, in i2400m_tx_stats_read()
133 i2400m->tx_size_acc, in i2400m_tx_stats_read()
134 i2400m->tx_size_min, i2400m->tx_size_max); in i2400m_tx_stats_read()
135 spin_unlock_irqrestore(&i2400m->tx_lock, flags); in i2400m_tx_stats_read()
144 struct i2400m *i2400m = filp->private_data; in i2400m_tx_stats_write() local
147 spin_lock_irqsave(&i2400m->tx_lock, flags); in i2400m_tx_stats_write()
148 i2400m->tx_pl_num = 0; in i2400m_tx_stats_write()
149 i2400m->tx_pl_max = 0; in i2400m_tx_stats_write()
150 i2400m->tx_pl_min = UINT_MAX; in i2400m_tx_stats_write()
151 i2400m->tx_num = 0; in i2400m_tx_stats_write()
152 i2400m->tx_size_acc = 0; in i2400m_tx_stats_write()
153 i2400m->tx_size_min = UINT_MAX; in i2400m_tx_stats_write()
154 i2400m->tx_size_max = 0; in i2400m_tx_stats_write()
155 spin_unlock_irqrestore(&i2400m->tx_lock, flags); in i2400m_tx_stats_write()
174 struct i2400m *i2400m = data; in debugfs_i2400m_suspend_set() local
175 result = i2400m_cmd_enter_powersave(i2400m); in debugfs_i2400m_suspend_set()
186 const char *name, struct dentry *parent, struct i2400m *i2400m) in debugfs_create_i2400m_suspend() argument
188 return debugfs_create_file(name, 0200, parent, i2400m, in debugfs_create_i2400m_suspend()
203 struct i2400m *i2400m = data; in debugfs_i2400m_reset_set() local
209 result = i2400m_reset(i2400m, rt); in debugfs_i2400m_reset_set()
224 const char *name, struct dentry *parent, struct i2400m *i2400m) in debugfs_create_i2400m_reset() argument
226 return debugfs_create_file(name, 0200, parent, i2400m, in debugfs_create_i2400m_reset()
239 int i2400m_debugfs_add(struct i2400m *i2400m) in i2400m_debugfs_add() argument
242 struct device *dev = i2400m_dev(i2400m); in i2400m_debugfs_add()
243 struct dentry *dentry = i2400m->wimax_dev.debugfs_dentry; in i2400m_debugfs_add()
253 i2400m->debugfs_dentry = dentry; in i2400m_debugfs_add()
264 &i2400m->tx_in); in i2400m_debugfs_add()
273 &i2400m->tx_out); in i2400m_debugfs_add()
282 &i2400m->state); in i2400m_debugfs_add()
313 &i2400m->trace_msg_from_user); in i2400m_debugfs_add()
322 dentry, i2400m); in i2400m_debugfs_add()
330 fd = debugfs_create_file("rx_stats", 0600, dentry, i2400m, in i2400m_debugfs_add()
339 fd = debugfs_create_file("tx_stats", 0600, dentry, i2400m, in i2400m_debugfs_add()
348 fd = debugfs_create_i2400m_suspend("suspend", dentry, i2400m); in i2400m_debugfs_add()
356 fd = debugfs_create_i2400m_reset("reset", dentry, i2400m); in i2400m_debugfs_add()
368 void i2400m_debugfs_rm(struct i2400m *i2400m) in i2400m_debugfs_rm() argument
370 debugfs_remove_recursive(i2400m->debugfs_dentry); in i2400m_debugfs_rm()