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()
158 cmd->res = 0; in ar5523_cmd_rx_cb()
173 ar->rx_cmd_urb = usb_alloc_urb(0, GFP_KERNEL); in ar5523_alloc_rx_cmd()
184 return 0; in ar5523_alloc_rx_cmd()
215 return 0; in ar5523_submit_rx_cmd()
235 cmd->res = 0; in ar5523_cmd_tx_cb()
251 memset(hdr, 0, sizeof(struct ar5523_cmd_hdr)); in ar5523_cmd()
273 ar5523_err(ar, "could not send command 0x%x, error=%d\n", in ar5523_cmd()
291 return ar5523_cmd(ar, code, data, len, NULL, 0, flags); in ar5523_cmd_write()
307 write.len = cpu_to_be32(0); /* 0 = single write */ in ar5523_config()
311 3 * sizeof(u32), 0); in ar5523_config()
312 if (error != 0) in ar5523_config()
313 ar5523_err(ar, "could not write register 0x%02x\n", reg); in ar5523_config()
329 (len == 0) ? sizeof(u32) : 2 * sizeof(u32) + len, 0); in ar5523_config_multi()
330 if (error != 0) in ar5523_config_multi()
331 ar5523_err(ar, "could not write %d bytes to register 0x%02x\n", in ar5523_config_multi()
345 if (error != 0) in ar5523_get_status()
346 ar5523_err(ar, "could not read EEPROM offset 0x%02x\n", which); in ar5523_get_status()
359 if (error != 0) { in ar5523_get_capability()
371 if (error != 0) \ in ar5523_get_devcap()
374 "%s=0x%08x\n", #x, cap); \ in ar5523_get_devcap()
375 } while (0) in ar5523_get_devcap()
413 return 0; in ar5523_get_devcap()
427 0); in ar5523_set_ledsteady()
437 ar5523_dbg(ar, "setting Rx filter=0x%x flags=0x%x\n", bits, op); in ar5523_set_rxfilter()
439 sizeof(rxfilter), 0); in ar5523_set_rxfilter()
444 __be32 qid = cpu_to_be32(0); in ar5523_reset_tx_queues()
448 &qid, sizeof(qid), 0); in ar5523_reset_tx_queues()
457 memset(&reset, 0, sizeof(reset)); in ar5523_set_chan()
463 reset.keeprccontent = cpu_to_be32(0); in ar5523_set_chan()
465 ar5523_dbg(ar, "set chan flags 0x%x freq %d\n", in ar5523_set_chan()
468 return ar5523_cmd_write(ar, WDCMSG_RESET, &reset, sizeof(reset), 0); in ar5523_set_chan()
476 qinfo.qid = cpu_to_be32(0); in ar5523_queue_init()
478 qinfo.attr.priority = cpu_to_be32(0); /* XXX */ in ar5523_queue_init()
482 qinfo.attr.bursttime = cpu_to_be32(0); in ar5523_queue_init()
483 qinfo.attr.mode = cpu_to_be32(0); in ar5523_queue_init()
486 sizeof(qinfo), 0); in ar5523_queue_init()
552 if (((chunk->flags & UATH_CFLAGS_FINAL) == 0) || in ar5523_data_rx_cb()
553 chunk->seqnum != 0) { in ar5523_data_rx_cb()
572 ar5523_dbg(ar, "RX: rxlen is 0\n"); in ar5523_data_rx_cb()
576 if (be32_to_cpu(desc->status) != 0) { in ar5523_data_rx_cb()
577 ar5523_dbg(ar, "Bad RX status (0x%x len = %d). Skip\n", in ar5523_data_rx_cb()
595 memset(rx_status, 0, sizeof(*rx_status)); in ar5523_data_rx_cb()
705 for (i = 0; i < AR5523_RX_DATA_COUNT; i++) { in ar5523_alloc_rx_bufs()
709 data->urb = usb_alloc_urb(0, GFP_KERNEL); in ar5523_alloc_rx_bufs()
715 return 0; in ar5523_alloc_rx_bufs()
796 int error = 0, paylen; in ar5523_tx_work_locked()
819 txqid = 0; in ar5523_tx_work_locked()
824 urb = usb_alloc_urb(0, GFP_KERNEL); in ar5523_tx_work_locked()
836 chunk->seqnum = 0; in ar5523_tx_work_locked()
915 ar5523_cmd_write(ar, WDCMSG_TARGET_RESET, NULL, 0, 0); in ar5523_tx_wd_work()
949 cmd->urb_tx = usb_alloc_urb(0, GFP_KERNEL); in ar5523_alloc_tx_cmd()
959 return 0; in ar5523_alloc_tx_cmd()
978 error = ar5523_cmd_write(ar, WDCMSG_TARGET_GET_STATS, NULL, 0, 0); in ar5523_stat_work()
997 val = cpu_to_be32(0); in ar5523_start()
998 ar5523_cmd_write(ar, WDCMSG_BIND, &val, sizeof(val), 0); in ar5523_start()
1005 ar5523_config(ar, CFG_RATE_CONTROL_ENABLE, 0x00000001); in ar5523_start()
1006 ar5523_config(ar, CFG_DIVERSITY_CTL, 0x00000001); in ar5523_start()
1007 ar5523_config(ar, CFG_ABOLT, 0x0000003f); in ar5523_start()
1008 ar5523_config(ar, CFG_WME_ENABLED, 0x00000000); in ar5523_start()
1011 ar5523_config(ar, CFG_TP_SCALE, 0x00000000); in ar5523_start()
1012 ar5523_config(ar, CFG_TPC_HALF_DBM5, 0x0000003c); in ar5523_start()
1013 ar5523_config(ar, CFG_TPC_HALF_DBM2, 0x0000003c); in ar5523_start()
1014 ar5523_config(ar, CFG_OVERRD_TX_POWER, 0x00000000); in ar5523_start()
1015 ar5523_config(ar, CFG_GMODE_PROTECTION, 0x00000000); in ar5523_start()
1016 ar5523_config(ar, CFG_GMODE_PROTECT_RATE_INDEX, 0x00000003); in ar5523_start()
1017 ar5523_config(ar, CFG_PROTECTION_TYPE, 0x00000000); in ar5523_start()
1018 ar5523_config(ar, CFG_MODE_CTS, 0x00000002); in ar5523_start()
1020 error = ar5523_cmd_read(ar, WDCMSG_TARGET_START, NULL, 0, in ar5523_start()
1026 ar5523_dbg(ar, "WDCMSG_TARGET_START returns handle: 0x%x\n", in ar5523_start()
1032 ar5523_cmd_write(ar, WDCMSG_SET_PWR_MODE, &val, sizeof(val), 0); in ar5523_start()
1034 ar5523_cmd_write(ar, WDCMSG_RESET_KEY_CACHE, NULL, 0, 0); in ar5523_start()
1040 ar5523_set_rxfilter(ar, 0, UATH_FILTER_OP_INIT); in ar5523_start()
1067 ar5523_cmd_write(ar, WDCMSG_TARGET_STOP, NULL, 0, 0); in ar5523_stop()
1118 return 0; in ar5523_add_interface()
1142 return 0; in ar5523_hwconfig()
1161 for (bit = 0; bit < band->n_bitrates; bit++) { in ar5523_get_wlan_mode()
1188 int bit, i = 0; in ar5523_create_rateset()
1202 for (bit = 0; bit < band->n_bitrates; bit++) { in ar5523_create_rateset()
1209 rs->set[i] |= 0x80; in ar5523_create_rateset()
1224 memset(&rates, 0, sizeof(rates)); in ar5523_set_basic_rates()
1230 sizeof(rates), 0); in ar5523_set_basic_rates()
1240 memset(&create, 0, sizeof(create)); in ar5523_create_connection()
1242 create.bssid = cpu_to_be32(0); in ar5523_create_connection()
1252 sizeof(create), 0); in ar5523_create_connection()
1260 memset(&associd, 0, sizeof(associd)); in ar5523_write_associd()
1261 associd.defaultrateix = cpu_to_be32(0); /* XXX */ in ar5523_write_associd()
1263 associd.timoffset = cpu_to_be32(0x3b); /* XXX */ in ar5523_write_associd()
1266 sizeof(associd), 0); in ar5523_write_associd()
1328 u32 filter = 0; in ar5523_configure_filter()
1344 ar5523_set_rxfilter(ar, 0, UATH_FILTER_OP_INIT); in ar5523_configure_filter()
1373 &setup, sizeof(setup), NULL, 0, 0); in ar5523_host_available()
1391 &ar->serial[0], sizeof(ar->serial)); in ar5523_get_devstatus()
1396 return 0; in ar5523_get_devstatus()
1409 if (error != 0) { in ar5523_get_max_rxsz()
1423 return 0; in ar5523_get_max_rxsz()
1476 return 0; in ar5523_init_modes()
1511 memset(txblock, 0, sizeof(struct ar5523_fwblock)); in ar5523_load_firmware()
1515 offset = 0; in ar5523_load_firmware()
1517 while (len > 0) { in ar5523_load_firmware()
1603 timer_setup(&ar->tx_wd_timer, ar5523_tx_wd_timer, 0); in ar5523_probe()
1609 atomic_set(&ar->tx_nr_total, 0); in ar5523_probe()
1610 atomic_set(&ar->tx_nr_pending, 0); in ar5523_probe()
1613 atomic_set(&ar->rx_data_free_cnt, 0); in ar5523_probe()
1671 if (error != 0) { in ar5523_probe()
1703 return 0; in ar5523_probe()
1753 AR5523_DEVICE_UG(0x168c, 0x0001), /* Atheros / AR5523 */
1754 AR5523_DEVICE_UG(0x0cf3, 0x0001), /* Atheros2 / AR5523_1 */
1755 AR5523_DEVICE_UG(0x0cf3, 0x0003), /* Atheros2 / AR5523_2 */
1756 AR5523_DEVICE_UX(0x0cf3, 0x0005), /* Atheros2 / AR5523_3 */
1757 AR5523_DEVICE_UG(0x0d8e, 0x7801), /* Conceptronic / AR5523_1 */
1758 AR5523_DEVICE_UX(0x0d8e, 0x7811), /* Conceptronic / AR5523_2 */
1759 AR5523_DEVICE_UX(0x2001, 0x3a00), /* Dlink / DWLAG132 */
1760 AR5523_DEVICE_UG(0x2001, 0x3a02), /* Dlink / DWLG132 */
1761 AR5523_DEVICE_UX(0x2001, 0x3a04), /* Dlink / DWLAG122 */
1762 AR5523_DEVICE_UG(0x07d1, 0x3a07), /* D-Link / WUA-2340 rev A1 */
1763 AR5523_DEVICE_UG(0x1690, 0x0712), /* Gigaset / AR5523 */
1764 AR5523_DEVICE_UG(0x1690, 0x0710), /* Gigaset / SMCWUSBTG */
1765 AR5523_DEVICE_UG(0x129b, 0x160b), /* Gigaset / USB stick 108
1767 AR5523_DEVICE_UG(0x16ab, 0x7801), /* Globalsun / AR5523_1 */
1768 AR5523_DEVICE_UX(0x16ab, 0x7811), /* Globalsun / AR5523_2 */
1769 AR5523_DEVICE_UG(0x0d8e, 0x7802), /* Globalsun / AR5523_3 */
1770 AR5523_DEVICE_UX(0x0846, 0x4300), /* Netgear / WG111U */
1771 AR5523_DEVICE_UG(0x0846, 0x4250), /* Netgear / WG111T */
1772 AR5523_DEVICE_UG(0x0846, 0x5f00), /* Netgear / WPN111 */
1773 AR5523_DEVICE_UG(0x083a, 0x4506), /* SMC / EZ Connect
1775 AR5523_DEVICE_UG(0x157e, 0x3006), /* Umedia / AR5523_1 */
1776 AR5523_DEVICE_UX(0x157e, 0x3205), /* Umedia / AR5523_2 */
1777 AR5523_DEVICE_UG(0x157e, 0x3006), /* Umedia / TEW444UBEU */
1778 AR5523_DEVICE_UG(0x1435, 0x0826), /* Wistronneweb / AR5523_1 */
1779 AR5523_DEVICE_UX(0x1435, 0x0828), /* Wistronneweb / AR5523_2 */
1780 AR5523_DEVICE_UG(0x0cde, 0x0012), /* Zcom / AR5523 */
1781 AR5523_DEVICE_UG(0x1385, 0x4250), /* Netgear3 / WG111T (2) */
1782 AR5523_DEVICE_UG(0x1385, 0x5f00), /* Netgear / WPN111 */
1783 AR5523_DEVICE_UG(0x1385, 0x5f02), /* Netgear / WPN111 */