/linux-3.4.99/net/wimax/ |
D | op-rfkill.c | 93 void wimax_report_rfkill_hw(struct wimax_dev *wimax_dev, in wimax_report_rfkill_hw() argument 97 struct device *dev = wimax_dev_to_dev(wimax_dev); in wimax_report_rfkill_hw() 100 d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); in wimax_report_rfkill_hw() 104 mutex_lock(&wimax_dev->mutex); in wimax_report_rfkill_hw() 105 result = wimax_dev_is_ready(wimax_dev); in wimax_report_rfkill_hw() 109 if (state != wimax_dev->rf_hw) { in wimax_report_rfkill_hw() 110 wimax_dev->rf_hw = state; in wimax_report_rfkill_hw() 111 if (wimax_dev->rf_hw == WIMAX_RF_ON && in wimax_report_rfkill_hw() 112 wimax_dev->rf_sw == WIMAX_RF_ON) in wimax_report_rfkill_hw() 117 result = rfkill_set_hw_state(wimax_dev->rfkill, in wimax_report_rfkill_hw() [all …]
|
D | stack.c | 102 struct wimax_dev *wimax_dev, in wimax_gnl_re_state_change_alloc() argument 107 struct device *dev = wimax_dev_to_dev(wimax_dev); in wimax_gnl_re_state_change_alloc() 112 wimax_dev, new_state, old_state); in wimax_gnl_re_state_change_alloc() 138 wimax_dev->net_dev->ifindex); in wimax_gnl_re_state_change_alloc() 144 wimax_dev, new_state, old_state, report_skb); in wimax_gnl_re_state_change_alloc() 151 wimax_dev, new_state, old_state, result); in wimax_gnl_re_state_change_alloc() 168 struct wimax_dev *wimax_dev, struct sk_buff *report_skb, in wimax_gnl_re_state_change_send() argument 172 struct device *dev = wimax_dev_to_dev(wimax_dev); in wimax_gnl_re_state_change_send() 174 wimax_dev, report_skb); in wimax_gnl_re_state_change_send() 183 wimax_dev, report_skb, result); in wimax_gnl_re_state_change_send() [all …]
|
D | wimax-internal.h | 49 int wimax_dev_is_ready(struct wimax_dev *wimax_dev) in wimax_dev_is_ready() argument 51 if (wimax_dev->state == __WIMAX_ST_NULL) in wimax_dev_is_ready() 53 if (wimax_dev->state == WIMAX_ST_DOWN) in wimax_dev_is_ready() 55 if (wimax_dev->state == __WIMAX_ST_QUIESCING) in wimax_dev_is_ready() 62 void __wimax_state_set(struct wimax_dev *wimax_dev, enum wimax_st state) in __wimax_state_set() argument 64 wimax_dev->state = state; in __wimax_state_set() 66 extern void __wimax_state_change(struct wimax_dev *, enum wimax_st); 69 extern int wimax_debugfs_add(struct wimax_dev *); 70 extern void wimax_debugfs_rm(struct wimax_dev *); 72 static inline int wimax_debugfs_add(struct wimax_dev *wimax_dev) in wimax_debugfs_add() argument [all …]
|
D | id-table.c | 67 void wimax_id_table_add(struct wimax_dev *wimax_dev) in wimax_id_table_add() argument 69 d_fnstart(3, NULL, "(wimax_dev %p)\n", wimax_dev); in wimax_id_table_add() 71 list_add(&wimax_dev->id_table_node, &wimax_id_table); in wimax_id_table_add() 73 d_fnend(3, NULL, "(wimax_dev %p)\n", wimax_dev); in wimax_id_table_add() 87 struct wimax_dev *wimax_dev_get_by_genl_info( in wimax_dev_get_by_genl_info() 90 struct wimax_dev *wimax_dev = NULL; in wimax_dev_get_by_genl_info() local 94 list_for_each_entry(wimax_dev, &wimax_id_table, id_table_node) { in wimax_dev_get_by_genl_info() 95 if (wimax_dev->net_dev->ifindex == ifindex) { in wimax_dev_get_by_genl_info() 96 dev_hold(wimax_dev->net_dev); in wimax_dev_get_by_genl_info() 100 wimax_dev = NULL; in wimax_dev_get_by_genl_info() [all …]
|
D | op-reset.c | 69 int wimax_reset(struct wimax_dev *wimax_dev) in wimax_reset() argument 72 struct device *dev = wimax_dev_to_dev(wimax_dev); in wimax_reset() 76 d_fnstart(3, dev, "(wimax_dev %p)\n", wimax_dev); in wimax_reset() 77 mutex_lock(&wimax_dev->mutex); in wimax_reset() 78 dev_hold(wimax_dev->net_dev); in wimax_reset() 79 state = wimax_dev->state; in wimax_reset() 80 mutex_unlock(&wimax_dev->mutex); in wimax_reset() 83 mutex_lock(&wimax_dev->mutex_reset); in wimax_reset() 84 result = wimax_dev->op_reset(wimax_dev); in wimax_reset() 85 mutex_unlock(&wimax_dev->mutex_reset); in wimax_reset() [all …]
|
D | op-msg.c | 120 struct sk_buff *wimax_msg_alloc(struct wimax_dev *wimax_dev, in wimax_msg_alloc() argument 126 struct device *dev = wimax_dev_to_dev(wimax_dev); in wimax_msg_alloc() 145 wimax_dev->net_dev->ifindex); in wimax_msg_alloc() 273 int wimax_msg_send(struct wimax_dev *wimax_dev, struct sk_buff *skb) in wimax_msg_send() argument 275 struct device *dev = wimax_dev_to_dev(wimax_dev); in wimax_msg_send() 309 int wimax_msg(struct wimax_dev *wimax_dev, const char *pipe_name, in wimax_msg() argument 315 skb = wimax_msg_alloc(wimax_dev, pipe_name, buf, size, gfp_flags); in wimax_msg() 319 result = wimax_msg_send(wimax_dev, skb); in wimax_msg() 347 struct wimax_dev *wimax_dev; in wimax_gnl_doit_msg_from_user() local 363 wimax_dev = wimax_dev_get_by_genl_info(info, ifindex); in wimax_gnl_doit_msg_from_user() [all …]
|
D | debugfs.c | 39 int wimax_debugfs_add(struct wimax_dev *wimax_dev) in wimax_debugfs_add() argument 42 struct net_device *net_dev = wimax_dev->net_dev; in wimax_debugfs_add() 58 wimax_dev->debugfs_dentry = dentry; in wimax_debugfs_add() 71 debugfs_remove_recursive(wimax_dev->debugfs_dentry); in wimax_debugfs_add() 75 void wimax_debugfs_rm(struct wimax_dev *wimax_dev) in wimax_debugfs_rm() argument 77 debugfs_remove_recursive(wimax_dev->debugfs_dentry); in wimax_debugfs_rm()
|
D | op-state-get.c | 55 struct wimax_dev *wimax_dev; in wimax_gnl_doit_state_get() local 65 wimax_dev = wimax_dev_get_by_genl_info(info, ifindex); in wimax_gnl_doit_state_get() 66 if (wimax_dev == NULL) in wimax_gnl_doit_state_get() 69 result = wimax_state_get(wimax_dev); in wimax_gnl_doit_state_get() 70 dev_put(wimax_dev->net_dev); in wimax_gnl_doit_state_get()
|
/linux-3.4.99/include/net/ |
D | wimax.h | 260 struct wimax_dev; 410 struct wimax_dev { struct 417 int (*op_msg_from_user)(struct wimax_dev *wimax_dev, argument 421 int (*op_rfkill_sw_toggle)(struct wimax_dev *wimax_dev, argument 423 int (*op_reset)(struct wimax_dev *wimax_dev); argument 441 extern void wimax_dev_init(struct wimax_dev *); argument 442 extern int wimax_dev_add(struct wimax_dev *, struct net_device *); 443 extern void wimax_dev_rm(struct wimax_dev *); 446 struct wimax_dev *net_dev_to_wimax(struct net_device *net_dev) in net_dev_to_wimax() 452 struct device *wimax_dev_to_dev(struct wimax_dev *wimax_dev) in wimax_dev_to_dev() argument [all …]
|
/linux-3.4.99/drivers/net/wimax/i2400m/ |
D | driver.c | 126 int i2400m_op_msg_from_user(struct wimax_dev *wimax_dev, in i2400m_op_msg_from_user() argument 132 struct i2400m *i2400m = wimax_dev_to_i2400m(wimax_dev); in i2400m_op_msg_from_user() 137 "msg_len %zu genl_info %p)\n", wimax_dev, i2400m, in i2400m_op_msg_from_user() 143 result = wimax_msg_send(&i2400m->wimax_dev, ack_skb); in i2400m_op_msg_from_user() 146 "genl_info %p) = %d\n", wimax_dev, i2400m, msg_buf, msg_len, in i2400m_op_msg_from_user() 178 int i2400m_op_reset(struct wimax_dev *wimax_dev) in i2400m_op_reset() argument 181 struct i2400m *i2400m = wimax_dev_to_i2400m(wimax_dev); in i2400m_op_reset() 188 d_fnstart(4, dev, "(wimax_dev %p)\n", wimax_dev); in i2400m_op_reset() 205 d_fnend(4, dev, "(wimax_dev %p) = %d\n", wimax_dev, result); in i2400m_op_reset() 224 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_check_mac_addr() [all …]
|
D | op-rfkill.c | 84 int i2400m_op_rfkill_sw_toggle(struct wimax_dev *wimax_dev, in i2400m_op_rfkill_sw_toggle() argument 88 struct i2400m *i2400m = wimax_dev_to_i2400m(wimax_dev); in i2400m_op_rfkill_sw_toggle() 97 d_fnstart(4, dev, "(wimax_dev %p state %d)\n", wimax_dev, state); in i2400m_op_rfkill_sw_toggle() 149 wimax_dev, state, result); in i2400m_op_rfkill_sw_toggle() 180 wimax_state = wimax_state_get(&i2400m->wimax_dev); in i2400m_report_tlv_rf_switches_status() 188 wimax_report_rfkill_sw(&i2400m->wimax_dev, WIMAX_RF_ON); in i2400m_report_tlv_rf_switches_status() 191 wimax_report_rfkill_sw(&i2400m->wimax_dev, WIMAX_RF_OFF); in i2400m_report_tlv_rf_switches_status() 199 wimax_report_rfkill_hw(&i2400m->wimax_dev, WIMAX_RF_ON); in i2400m_report_tlv_rf_switches_status() 202 wimax_report_rfkill_hw(&i2400m->wimax_dev, WIMAX_RF_OFF); in i2400m_report_tlv_rf_switches_status()
|
D | i2400m.h | 568 struct wimax_dev wimax_dev; /* FIRST! See doc */ member 667 struct i2400m *wimax_dev_to_i2400m(struct wimax_dev *wimax_dev) in wimax_dev_to_i2400m() argument 669 return container_of(wimax_dev, struct i2400m, wimax_dev); in wimax_dev_to_i2400m() 867 dev_hold(i2400m->wimax_dev.net_dev); in i2400m_get() 874 dev_put(i2400m->wimax_dev.net_dev); in i2400m_put() 901 return i2400m->wimax_dev.net_dev->dev.parent; in i2400m_dev() 925 extern int i2400m_op_rfkill_sw_toggle(struct wimax_dev *,
|
D | usb-tx.c | 245 struct wimax_dev *wimax_dev = &i2400m->wimax_dev; in i2400mu_tx_setup() local 249 wimax_dev->name); in i2400mu_tx_setup()
|
D | control.c | 315 struct wimax_dev *wimax_dev = &i2400m->wimax_dev; in i2400m_report_tlv_system_state() local 329 wimax_state_change(wimax_dev, WIMAX_ST_UNINITIALIZED); in i2400m_report_tlv_system_state() 334 wimax_state_change(wimax_dev, WIMAX_ST_RADIO_OFF); in i2400m_report_tlv_system_state() 340 wimax_state_change(wimax_dev, WIMAX_ST_READY); in i2400m_report_tlv_system_state() 345 wimax_state_change(wimax_dev, WIMAX_ST_READY); in i2400m_report_tlv_system_state() 350 wimax_state_change(wimax_dev, WIMAX_ST_SCANNING); in i2400m_report_tlv_system_state() 357 wimax_state_change(wimax_dev, WIMAX_ST_CONNECTED); in i2400m_report_tlv_system_state() 391 struct wimax_dev *wimax_dev = &i2400m->wimax_dev; in i2400m_report_tlv_media_status() local 392 struct net_device *net_dev = wimax_dev->net_dev; in i2400m_report_tlv_media_status() 763 wimax_msg(&i2400m->wimax_dev, "echo", buf, buf_len, GFP_KERNEL); in i2400m_msg_to_dev() [all …]
|
D | netdev.c | 157 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_wake_tx_work() 488 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_net_rx() 510 i2400m_rx_fake_eth_header(i2400m->wimax_dev.net_dev, in i2400m_net_rx() 514 skb->dev = i2400m->wimax_dev.net_dev; in i2400m_net_rx() 553 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_net_erx() 563 i2400m_rx_fake_eth_header(i2400m->wimax_dev.net_dev, in i2400m_net_erx() 567 skb->dev = i2400m->wimax_dev.net_dev; in i2400m_net_erx()
|
D | usb-rx.c | 337 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400mu_rxd() 435 struct wimax_dev *wimax_dev = &i2400m->wimax_dev; in i2400mu_rx_setup() local 439 wimax_dev->name); in i2400mu_rx_setup()
|
D | rx.c | 290 struct wimax_dev *wimax_dev = &i2400m->wimax_dev; in i2400m_rx_ctl_ack() local 302 ack_skb = wimax_msg_alloc(wimax_dev, NULL, payload, size, GFP_KERNEL); in i2400m_rx_ctl_ack() 402 wimax_msg(&i2400m->wimax_dev, "echo", in i2400m_rx_ctl() 404 result = wimax_msg(&i2400m->wimax_dev, NULL, l3l4_hdr, size, in i2400m_rx_ctl() 439 struct wimax_dev *wimax_dev = &i2400m->wimax_dev; in i2400m_rx_trace() local 454 result = wimax_msg(wimax_dev, "trace", l3l4_hdr, size, GFP_KERNEL); in i2400m_rx_trace() 985 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_rx_edata()
|
D | sdio.c | 410 struct dentry *dentry = i2400ms->i2400m.wimax_dev.debugfs_dentry; in i2400ms_debugfs_add() 482 i2400m->wimax_dev.net_dev = net_dev; in i2400ms_probe() 549 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400ms_remove()
|
D | debugfs.c | 40 *val = netif_queue_stopped(i2400m->wimax_dev.net_dev); in debugfs_netdev_queue_stopped_get() 242 struct dentry *dentry = i2400m->wimax_dev.debugfs_dentry; in i2400m_debugfs_add()
|
D | usb.c | 397 struct dentry *dentry = i2400mu->i2400m.wimax_dev.debugfs_dentry; in i2400mu_debugfs_add() 485 i2400m->wimax_dev.net_dev = net_dev; in i2400mu_probe() 578 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400mu_disconnect()
|
D | sdio-tx.c | 148 "%s-tx", i2400m->wimax_dev.name); in i2400ms_tx_setup()
|
D | fw.c | 1028 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_read_mac_addr()
|
/linux-3.4.99/Documentation/wimax/ |
D | README.wimax | 19 The stack works by embedding a struct wimax_dev in your device's
|