Lines Matching +full:0 +full:x3a00

56 	if (dlen < 0) {  in ar5523_read_reply()
61 ar5523_dbg(ar, "Code = %d len = %d\n", be32_to_cpu(hdr->code) & 0xff, in ar5523_read_reply()
66 olen = be32_to_cpu(rp[0]); in ar5523_read_reply()
68 if (olen == 0) { in ar5523_read_reply()
69 /* convention is 0 =>'s one word */ in ar5523_read_reply()
73 olen = 0; in ar5523_read_reply()
79 cmd->olen = 0; in ar5523_read_reply()
84 cmd->res = 0; in ar5523_read_reply()
112 be32_to_cpu(hdr->code) & 0xff, hdr->priv); in ar5523_cmd_rx_cb()
117 switch (code & 0xff) { in ar5523_cmd_rx_cb()
122 code & 0xff); in ar5523_cmd_rx_cb()
130 cmd->res = 0; in ar5523_cmd_rx_cb()
131 cmd->olen = 0; in ar5523_cmd_rx_cb()
162 cmd->res = 0; in ar5523_cmd_rx_cb()
177 ar->rx_cmd_urb = usb_alloc_urb(0, GFP_KERNEL); in ar5523_alloc_rx_cmd()
188 return 0; in ar5523_alloc_rx_cmd()
219 return 0; in ar5523_submit_rx_cmd()
239 cmd->res = 0; in ar5523_cmd_tx_cb()
260 memset(hdr, 0, sizeof(struct ar5523_cmd_hdr)); in ar5523_cmd()
282 ar5523_err(ar, "could not send command 0x%x, error=%d\n", in ar5523_cmd()
301 return ar5523_cmd(ar, code, data, len, NULL, 0, flags); in ar5523_cmd_write()
317 write.len = cpu_to_be32(0); /* 0 = single write */ in ar5523_config()
321 3 * sizeof(u32), 0); in ar5523_config()
322 if (error != 0) in ar5523_config()
323 ar5523_err(ar, "could not write register 0x%02x\n", reg); in ar5523_config()
339 (len == 0) ? sizeof(u32) : 2 * sizeof(u32) + len, 0); in ar5523_config_multi()
340 if (error != 0) in ar5523_config_multi()
341 ar5523_err(ar, "could not write %d bytes to register 0x%02x\n", in ar5523_config_multi()
355 if (error != 0) in ar5523_get_status()
356 ar5523_err(ar, "could not read EEPROM offset 0x%02x\n", which); in ar5523_get_status()
369 if (error != 0) { in ar5523_get_capability()
381 if (error != 0) \ in ar5523_get_devcap()
384 "%s=0x%08x\n", #x, cap); \ in ar5523_get_devcap()
385 } while (0) in ar5523_get_devcap()
423 return 0; in ar5523_get_devcap()
437 0); in ar5523_set_ledsteady()
447 ar5523_dbg(ar, "setting Rx filter=0x%x flags=0x%x\n", bits, op); in ar5523_set_rxfilter()
449 sizeof(rxfilter), 0); in ar5523_set_rxfilter()
454 __be32 qid = cpu_to_be32(0); in ar5523_reset_tx_queues()
458 &qid, sizeof(qid), 0); in ar5523_reset_tx_queues()
467 memset(&reset, 0, sizeof(reset)); in ar5523_set_chan()
473 reset.keeprccontent = cpu_to_be32(0); in ar5523_set_chan()
475 ar5523_dbg(ar, "set chan flags 0x%x freq %d\n", in ar5523_set_chan()
478 return ar5523_cmd_write(ar, WDCMSG_RESET, &reset, sizeof(reset), 0); in ar5523_set_chan()
486 qinfo.qid = cpu_to_be32(0); in ar5523_queue_init()
488 qinfo.attr.priority = cpu_to_be32(0); /* XXX */ in ar5523_queue_init()
492 qinfo.attr.bursttime = cpu_to_be32(0); in ar5523_queue_init()
493 qinfo.attr.mode = cpu_to_be32(0); in ar5523_queue_init()
496 sizeof(qinfo), 0); in ar5523_queue_init()
562 if (((chunk->flags & UATH_CFLAGS_FINAL) == 0) || in ar5523_data_rx_cb()
563 chunk->seqnum != 0) { in ar5523_data_rx_cb()
582 ar5523_dbg(ar, "RX: rxlen is 0\n"); in ar5523_data_rx_cb()
586 if (be32_to_cpu(desc->status) != 0) { in ar5523_data_rx_cb()
587 ar5523_dbg(ar, "Bad RX status (0x%x len = %d). Skip\n", in ar5523_data_rx_cb()
605 memset(rx_status, 0, sizeof(*rx_status)); in ar5523_data_rx_cb()
715 for (i = 0; i < AR5523_RX_DATA_COUNT; i++) { in ar5523_alloc_rx_bufs()
719 data->urb = usb_alloc_urb(0, GFP_KERNEL); in ar5523_alloc_rx_bufs()
725 return 0; in ar5523_alloc_rx_bufs()
806 int error = 0, paylen; in ar5523_tx_work_locked()
829 txqid = 0; in ar5523_tx_work_locked()
834 urb = usb_alloc_urb(0, GFP_KERNEL); in ar5523_tx_work_locked()
846 chunk->seqnum = 0; in ar5523_tx_work_locked()
925 ar5523_cmd_write(ar, WDCMSG_TARGET_RESET, NULL, 0, 0); in ar5523_tx_wd_work()
959 cmd->urb_tx = usb_alloc_urb(0, GFP_KERNEL); in ar5523_alloc_tx_cmd()
969 return 0; in ar5523_alloc_tx_cmd()
988 error = ar5523_cmd_write(ar, WDCMSG_TARGET_GET_STATS, NULL, 0, 0); in ar5523_stat_work()
1007 val = cpu_to_be32(0); in ar5523_start()
1008 ar5523_cmd_write(ar, WDCMSG_BIND, &val, sizeof(val), 0); in ar5523_start()
1015 ar5523_config(ar, CFG_RATE_CONTROL_ENABLE, 0x00000001); in ar5523_start()
1016 ar5523_config(ar, CFG_DIVERSITY_CTL, 0x00000001); in ar5523_start()
1017 ar5523_config(ar, CFG_ABOLT, 0x0000003f); in ar5523_start()
1018 ar5523_config(ar, CFG_WME_ENABLED, 0x00000000); in ar5523_start()
1021 ar5523_config(ar, CFG_TP_SCALE, 0x00000000); in ar5523_start()
1022 ar5523_config(ar, CFG_TPC_HALF_DBM5, 0x0000003c); in ar5523_start()
1023 ar5523_config(ar, CFG_TPC_HALF_DBM2, 0x0000003c); in ar5523_start()
1024 ar5523_config(ar, CFG_OVERRD_TX_POWER, 0x00000000); in ar5523_start()
1025 ar5523_config(ar, CFG_GMODE_PROTECTION, 0x00000000); in ar5523_start()
1026 ar5523_config(ar, CFG_GMODE_PROTECT_RATE_INDEX, 0x00000003); in ar5523_start()
1027 ar5523_config(ar, CFG_PROTECTION_TYPE, 0x00000000); in ar5523_start()
1028 ar5523_config(ar, CFG_MODE_CTS, 0x00000002); in ar5523_start()
1030 error = ar5523_cmd_read(ar, WDCMSG_TARGET_START, NULL, 0, in ar5523_start()
1036 ar5523_dbg(ar, "WDCMSG_TARGET_START returns handle: 0x%x\n", in ar5523_start()
1042 ar5523_cmd_write(ar, WDCMSG_SET_PWR_MODE, &val, sizeof(val), 0); in ar5523_start()
1044 ar5523_cmd_write(ar, WDCMSG_RESET_KEY_CACHE, NULL, 0, 0); in ar5523_start()
1050 ar5523_set_rxfilter(ar, 0, UATH_FILTER_OP_INIT); in ar5523_start()
1077 ar5523_cmd_write(ar, WDCMSG_TARGET_STOP, NULL, 0, 0); in ar5523_stop()
1129 return 0; in ar5523_add_interface()
1153 return 0; in ar5523_hwconfig()
1172 for (bit = 0; bit < band->n_bitrates; bit++) { in ar5523_get_wlan_mode()
1199 int bit, i = 0; in ar5523_create_rateset()
1213 for (bit = 0; bit < band->n_bitrates; bit++) { in ar5523_create_rateset()
1220 rs->set[i] |= 0x80; in ar5523_create_rateset()
1235 memset(&rates, 0, sizeof(rates)); in ar5523_set_basic_rates()
1241 sizeof(rates), 0); in ar5523_set_basic_rates()
1251 memset(&create, 0, sizeof(create)); in ar5523_create_connection()
1253 create.bssid = cpu_to_be32(0); in ar5523_create_connection()
1263 sizeof(create), 0); in ar5523_create_connection()
1271 memset(&associd, 0, sizeof(associd)); in ar5523_write_associd()
1272 associd.defaultrateix = cpu_to_be32(0); /* XXX */ in ar5523_write_associd()
1274 associd.timoffset = cpu_to_be32(0x3b); /* XXX */ in ar5523_write_associd()
1277 sizeof(associd), 0); in ar5523_write_associd()
1339 u32 filter = 0; in ar5523_configure_filter()
1355 ar5523_set_rxfilter(ar, 0, UATH_FILTER_OP_INIT); in ar5523_configure_filter()
1389 &setup, sizeof(setup), NULL, 0, 0); in ar5523_host_available()
1407 &ar->serial[0], sizeof(ar->serial)); in ar5523_get_devstatus()
1412 return 0; in ar5523_get_devstatus()
1425 if (error != 0) { in ar5523_get_max_rxsz()
1439 return 0; in ar5523_get_max_rxsz()
1492 return 0; in ar5523_init_modes()
1530 offset = 0; in ar5523_load_firmware()
1532 while (len > 0) { in ar5523_load_firmware()
1603 0}; in ar5523_probe()
1632 timer_setup(&ar->tx_wd_timer, ar5523_tx_wd_timer, 0); in ar5523_probe()
1638 atomic_set(&ar->tx_nr_total, 0); in ar5523_probe()
1639 atomic_set(&ar->tx_nr_pending, 0); in ar5523_probe()
1642 atomic_set(&ar->rx_data_free_cnt, 0); in ar5523_probe()
1700 if (error != 0) { in ar5523_probe()
1732 return 0; in ar5523_probe()
1782 AR5523_DEVICE_UG(0x168c, 0x0001), /* Atheros / AR5523 */
1783 AR5523_DEVICE_UG(0x0cf3, 0x0001), /* Atheros2 / AR5523_1 */
1784 AR5523_DEVICE_UG(0x0cf3, 0x0003), /* Atheros2 / AR5523_2 */
1785 AR5523_DEVICE_UX(0x0cf3, 0x0005), /* Atheros2 / AR5523_3 */
1786 AR5523_DEVICE_UG(0x0d8e, 0x7801), /* Conceptronic / AR5523_1 */
1787 AR5523_DEVICE_UX(0x0d8e, 0x7811), /* Conceptronic / AR5523_2 */
1788 AR5523_DEVICE_UX(0x2001, 0x3a00), /* Dlink / DWLAG132 */
1789 AR5523_DEVICE_UG(0x2001, 0x3a02), /* Dlink / DWLG132 */
1790 AR5523_DEVICE_UX(0x2001, 0x3a04), /* Dlink / DWLAG122 */
1791 AR5523_DEVICE_UG(0x07d1, 0x3a07), /* D-Link / WUA-2340 rev A1 */
1792 AR5523_DEVICE_UG(0x1690, 0x0712), /* Gigaset / AR5523 */
1793 AR5523_DEVICE_UG(0x1690, 0x0710), /* Gigaset / SMCWUSBTG */
1794 AR5523_DEVICE_UG(0x129b, 0x160b), /* Gigaset / USB stick 108
1796 AR5523_DEVICE_UG(0x16ab, 0x7801), /* Globalsun / AR5523_1 */
1797 AR5523_DEVICE_UX(0x16ab, 0x7811), /* Globalsun / AR5523_2 */
1798 AR5523_DEVICE_UG(0x0d8e, 0x7802), /* Globalsun / AR5523_3 */
1799 AR5523_DEVICE_UX(0x0846, 0x4300), /* Netgear / WG111U */
1800 AR5523_DEVICE_UG(0x0846, 0x4250), /* Netgear / WG111T */
1801 AR5523_DEVICE_UG(0x0846, 0x5f00), /* Netgear / WPN111 */
1802 AR5523_DEVICE_UG(0x083a, 0x4506), /* SMC / EZ Connect
1804 AR5523_DEVICE_UG(0x157e, 0x3006), /* Umedia / AR5523_1, TEW444UBEU*/
1805 AR5523_DEVICE_UX(0x157e, 0x3205), /* Umedia / AR5523_2 */
1806 AR5523_DEVICE_UG(0x1435, 0x0826), /* Wistronneweb / AR5523_1 */
1807 AR5523_DEVICE_UX(0x1435, 0x0828), /* Wistronneweb / AR5523_2 */
1808 AR5523_DEVICE_UG(0x0cde, 0x0012), /* Zcom / AR5523 */
1809 AR5523_DEVICE_UG(0x1385, 0x4250), /* Netgear3 / WG111T (2) */
1810 AR5523_DEVICE_UG(0x1385, 0x5f00), /* Netgear / WPN111 */
1811 AR5523_DEVICE_UG(0x1385, 0x5f02), /* Netgear / WPN111 */