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()
255 memset(hdr, 0, sizeof(struct ar5523_cmd_hdr)); in ar5523_cmd()
277 ar5523_err(ar, "could not send command 0x%x, error=%d\n", in ar5523_cmd()
295 return ar5523_cmd(ar, code, data, len, NULL, 0, flags); in ar5523_cmd_write()
311 write.len = cpu_to_be32(0); /* 0 = single write */ in ar5523_config()
315 3 * sizeof(u32), 0); in ar5523_config()
316 if (error != 0) in ar5523_config()
317 ar5523_err(ar, "could not write register 0x%02x\n", reg); in ar5523_config()
333 (len == 0) ? sizeof(u32) : 2 * sizeof(u32) + len, 0); in ar5523_config_multi()
334 if (error != 0) in ar5523_config_multi()
335 ar5523_err(ar, "could not write %d bytes to register 0x%02x\n", in ar5523_config_multi()
349 if (error != 0) in ar5523_get_status()
350 ar5523_err(ar, "could not read EEPROM offset 0x%02x\n", which); in ar5523_get_status()
363 if (error != 0) { in ar5523_get_capability()
375 if (error != 0) \ in ar5523_get_devcap()
378 "%s=0x%08x\n", #x, cap); \ in ar5523_get_devcap()
379 } while (0) in ar5523_get_devcap()
417 return 0; in ar5523_get_devcap()
431 0); in ar5523_set_ledsteady()
441 ar5523_dbg(ar, "setting Rx filter=0x%x flags=0x%x\n", bits, op); in ar5523_set_rxfilter()
443 sizeof(rxfilter), 0); in ar5523_set_rxfilter()
448 __be32 qid = cpu_to_be32(0); in ar5523_reset_tx_queues()
452 &qid, sizeof(qid), 0); in ar5523_reset_tx_queues()
461 memset(&reset, 0, sizeof(reset)); in ar5523_set_chan()
467 reset.keeprccontent = cpu_to_be32(0); in ar5523_set_chan()
469 ar5523_dbg(ar, "set chan flags 0x%x freq %d\n", in ar5523_set_chan()
472 return ar5523_cmd_write(ar, WDCMSG_RESET, &reset, sizeof(reset), 0); in ar5523_set_chan()
480 qinfo.qid = cpu_to_be32(0); in ar5523_queue_init()
482 qinfo.attr.priority = cpu_to_be32(0); /* XXX */ in ar5523_queue_init()
486 qinfo.attr.bursttime = cpu_to_be32(0); in ar5523_queue_init()
487 qinfo.attr.mode = cpu_to_be32(0); in ar5523_queue_init()
490 sizeof(qinfo), 0); in ar5523_queue_init()
556 if (((chunk->flags & UATH_CFLAGS_FINAL) == 0) || in ar5523_data_rx_cb()
557 chunk->seqnum != 0) { in ar5523_data_rx_cb()
576 ar5523_dbg(ar, "RX: rxlen is 0\n"); in ar5523_data_rx_cb()
580 if (be32_to_cpu(desc->status) != 0) { in ar5523_data_rx_cb()
581 ar5523_dbg(ar, "Bad RX status (0x%x len = %d). Skip\n", in ar5523_data_rx_cb()
599 memset(rx_status, 0, sizeof(*rx_status)); in ar5523_data_rx_cb()
709 for (i = 0; i < AR5523_RX_DATA_COUNT; i++) { in ar5523_alloc_rx_bufs()
713 data->urb = usb_alloc_urb(0, GFP_KERNEL); in ar5523_alloc_rx_bufs()
719 return 0; in ar5523_alloc_rx_bufs()
800 int error = 0, paylen; in ar5523_tx_work_locked()
823 txqid = 0; in ar5523_tx_work_locked()
828 urb = usb_alloc_urb(0, GFP_KERNEL); in ar5523_tx_work_locked()
840 chunk->seqnum = 0; in ar5523_tx_work_locked()
919 ar5523_cmd_write(ar, WDCMSG_TARGET_RESET, NULL, 0, 0); in ar5523_tx_wd_work()
953 cmd->urb_tx = usb_alloc_urb(0, GFP_KERNEL); in ar5523_alloc_tx_cmd()
963 return 0; in ar5523_alloc_tx_cmd()
982 error = ar5523_cmd_write(ar, WDCMSG_TARGET_GET_STATS, NULL, 0, 0); in ar5523_stat_work()
1001 val = cpu_to_be32(0); in ar5523_start()
1002 ar5523_cmd_write(ar, WDCMSG_BIND, &val, sizeof(val), 0); in ar5523_start()
1009 ar5523_config(ar, CFG_RATE_CONTROL_ENABLE, 0x00000001); in ar5523_start()
1010 ar5523_config(ar, CFG_DIVERSITY_CTL, 0x00000001); in ar5523_start()
1011 ar5523_config(ar, CFG_ABOLT, 0x0000003f); in ar5523_start()
1012 ar5523_config(ar, CFG_WME_ENABLED, 0x00000000); in ar5523_start()
1015 ar5523_config(ar, CFG_TP_SCALE, 0x00000000); in ar5523_start()
1016 ar5523_config(ar, CFG_TPC_HALF_DBM5, 0x0000003c); in ar5523_start()
1017 ar5523_config(ar, CFG_TPC_HALF_DBM2, 0x0000003c); in ar5523_start()
1018 ar5523_config(ar, CFG_OVERRD_TX_POWER, 0x00000000); in ar5523_start()
1019 ar5523_config(ar, CFG_GMODE_PROTECTION, 0x00000000); in ar5523_start()
1020 ar5523_config(ar, CFG_GMODE_PROTECT_RATE_INDEX, 0x00000003); in ar5523_start()
1021 ar5523_config(ar, CFG_PROTECTION_TYPE, 0x00000000); in ar5523_start()
1022 ar5523_config(ar, CFG_MODE_CTS, 0x00000002); in ar5523_start()
1024 error = ar5523_cmd_read(ar, WDCMSG_TARGET_START, NULL, 0, in ar5523_start()
1030 ar5523_dbg(ar, "WDCMSG_TARGET_START returns handle: 0x%x\n", in ar5523_start()
1036 ar5523_cmd_write(ar, WDCMSG_SET_PWR_MODE, &val, sizeof(val), 0); in ar5523_start()
1038 ar5523_cmd_write(ar, WDCMSG_RESET_KEY_CACHE, NULL, 0, 0); in ar5523_start()
1044 ar5523_set_rxfilter(ar, 0, UATH_FILTER_OP_INIT); in ar5523_start()
1071 ar5523_cmd_write(ar, WDCMSG_TARGET_STOP, NULL, 0, 0); in ar5523_stop()
1122 return 0; in ar5523_add_interface()
1146 return 0; in ar5523_hwconfig()
1165 for (bit = 0; bit < band->n_bitrates; bit++) { in ar5523_get_wlan_mode()
1192 int bit, i = 0; in ar5523_create_rateset()
1206 for (bit = 0; bit < band->n_bitrates; bit++) { in ar5523_create_rateset()
1213 rs->set[i] |= 0x80; in ar5523_create_rateset()
1228 memset(&rates, 0, sizeof(rates)); in ar5523_set_basic_rates()
1234 sizeof(rates), 0); in ar5523_set_basic_rates()
1244 memset(&create, 0, sizeof(create)); in ar5523_create_connection()
1246 create.bssid = cpu_to_be32(0); in ar5523_create_connection()
1256 sizeof(create), 0); in ar5523_create_connection()
1264 memset(&associd, 0, sizeof(associd)); in ar5523_write_associd()
1265 associd.defaultrateix = cpu_to_be32(0); /* XXX */ in ar5523_write_associd()
1267 associd.timoffset = cpu_to_be32(0x3b); /* XXX */ in ar5523_write_associd()
1270 sizeof(associd), 0); in ar5523_write_associd()
1332 u32 filter = 0; in ar5523_configure_filter()
1348 ar5523_set_rxfilter(ar, 0, UATH_FILTER_OP_INIT); in ar5523_configure_filter()
1377 &setup, sizeof(setup), NULL, 0, 0); in ar5523_host_available()
1395 &ar->serial[0], sizeof(ar->serial)); in ar5523_get_devstatus()
1400 return 0; in ar5523_get_devstatus()
1413 if (error != 0) { in ar5523_get_max_rxsz()
1427 return 0; in ar5523_get_max_rxsz()
1480 return 0; in ar5523_init_modes()
1518 offset = 0; in ar5523_load_firmware()
1520 while (len > 0) { in ar5523_load_firmware()
1606 timer_setup(&ar->tx_wd_timer, ar5523_tx_wd_timer, 0); in ar5523_probe()
1612 atomic_set(&ar->tx_nr_total, 0); in ar5523_probe()
1613 atomic_set(&ar->tx_nr_pending, 0); in ar5523_probe()
1616 atomic_set(&ar->rx_data_free_cnt, 0); in ar5523_probe()
1674 if (error != 0) { in ar5523_probe()
1706 return 0; in ar5523_probe()
1756 AR5523_DEVICE_UG(0x168c, 0x0001), /* Atheros / AR5523 */
1757 AR5523_DEVICE_UG(0x0cf3, 0x0001), /* Atheros2 / AR5523_1 */
1758 AR5523_DEVICE_UG(0x0cf3, 0x0003), /* Atheros2 / AR5523_2 */
1759 AR5523_DEVICE_UX(0x0cf3, 0x0005), /* Atheros2 / AR5523_3 */
1760 AR5523_DEVICE_UG(0x0d8e, 0x7801), /* Conceptronic / AR5523_1 */
1761 AR5523_DEVICE_UX(0x0d8e, 0x7811), /* Conceptronic / AR5523_2 */
1762 AR5523_DEVICE_UX(0x2001, 0x3a00), /* Dlink / DWLAG132 */
1763 AR5523_DEVICE_UG(0x2001, 0x3a02), /* Dlink / DWLG132 */
1764 AR5523_DEVICE_UX(0x2001, 0x3a04), /* Dlink / DWLAG122 */
1765 AR5523_DEVICE_UG(0x07d1, 0x3a07), /* D-Link / WUA-2340 rev A1 */
1766 AR5523_DEVICE_UG(0x1690, 0x0712), /* Gigaset / AR5523 */
1767 AR5523_DEVICE_UG(0x1690, 0x0710), /* Gigaset / SMCWUSBTG */
1768 AR5523_DEVICE_UG(0x129b, 0x160b), /* Gigaset / USB stick 108
1770 AR5523_DEVICE_UG(0x16ab, 0x7801), /* Globalsun / AR5523_1 */
1771 AR5523_DEVICE_UX(0x16ab, 0x7811), /* Globalsun / AR5523_2 */
1772 AR5523_DEVICE_UG(0x0d8e, 0x7802), /* Globalsun / AR5523_3 */
1773 AR5523_DEVICE_UX(0x0846, 0x4300), /* Netgear / WG111U */
1774 AR5523_DEVICE_UG(0x0846, 0x4250), /* Netgear / WG111T */
1775 AR5523_DEVICE_UG(0x0846, 0x5f00), /* Netgear / WPN111 */
1776 AR5523_DEVICE_UG(0x083a, 0x4506), /* SMC / EZ Connect
1778 AR5523_DEVICE_UG(0x157e, 0x3006), /* Umedia / AR5523_1, TEW444UBEU*/
1779 AR5523_DEVICE_UX(0x157e, 0x3205), /* Umedia / AR5523_2 */
1780 AR5523_DEVICE_UG(0x1435, 0x0826), /* Wistronneweb / AR5523_1 */
1781 AR5523_DEVICE_UX(0x1435, 0x0828), /* Wistronneweb / AR5523_2 */
1782 AR5523_DEVICE_UG(0x0cde, 0x0012), /* Zcom / AR5523 */
1783 AR5523_DEVICE_UG(0x1385, 0x4250), /* Netgear3 / WG111T (2) */
1784 AR5523_DEVICE_UG(0x1385, 0x5f00), /* Netgear / WPN111 */
1785 AR5523_DEVICE_UG(0x1385, 0x5f02), /* Netgear / WPN111 */