Lines Matching defs:n
321 int n;
341 n = (RT2661_READ(sc, RT2661_E2PROM_CSR) & RT2661_93C46) ? 5 : 7;
342 for (; n >= 0; n--) {
344 (((addr >> n) & 1) << RT2661_SHIFT_D));
346 (((addr >> n) & 1) << RT2661_SHIFT_D) | RT2661_C);
353 for (n = 15; n >= 0; n--) {
356 val |= ((tmp & RT2661_Q) >> RT2661_SHIFT_Q) << n;
400 "RF revision=%d\n", sc->rf_rev);
407 "External 2GHz LNA=%d\nExternal 5GHz LNA=%d\n",
425 "RSSI 2GHz corr=%d\nRSSI 5GHz corr=%d\n",
435 "RF prog=%d\nRF freq=%d\n", sc->rfprog, sc->rffreq);
442 "Channel=%d Tx power=%d\n",
446 "Channel=%d Tx power=%d\n",
458 "BBP R%d=%02x\n", sc->bbp_prom[i].reg,
515 "timeout waiting for MCU to initialize\n");
520 "MCU initialized successfully\n");
541 "failed to alloc handle\n");
553 "failed to alloc mem\n");
565 "failed to bind handle\n");
571 "failed to alloc cookies\n");
630 "failed to alloc dma mem\n");
641 "failed to alloc tx buffer\n");
656 "failed to alloc tx buffer dma\n");
757 "failed to alloc dma mem\n");
768 "failed to alloc rx buffer\n");
783 "failed to alloc rx buffer dma\n");
878 "tx dma done q=%p idx=%u\n", ring, ring->next);
912 "no frame has been send, ignore\n");
922 "%d retries\n", retrycnt);
931 "sending data frame failed (too much retries)\n");
938 "sending data frame failed 0x%08x\n", val);
942 "tx done q=%d idx=%u\n", qid, ring->stat);
1000 "PHY or CRC error flags 0x%08x\n",
1021 "bad fram length=%u\n", pktlen);
1028 "allocate mblk failed.\n");
1056 "rx intr idx=%u\n", sc->rxq.cur);
1141 "RT2661_MGT_DONE\n");
1147 "RT2661_RX_DONE\n");
1154 "RT2661_TX0_DMA_DONE\n");
1160 "RT2661_TX1_DMA_DONE\n");
1166 "RT2661_TX2_DMA_DONE\n");
1172 "RT2661_TX3_DMA_DONE\n");
1178 "RT2661_TX_DONE\n");
1184 "RT2661_MCU_CMD_DONE\n");
1190 "RT2661_MCU_WAKEUP\n");
1433 "can't alloc mblk.\n");
1507 "sending data frame len=%u idx=%u rate=%u\n",
1562 "can't alloc mblk.\n");
1630 "sending mgmt frame len=%u idx=%u rate=%u\n",
1692 "increase rate = %d, #tx = %d, #retries = %d\n",
1713 "decrease rate = %d, #tx = %d, #retries = %d\n",
1740 "%s promiscuous mode\n",
1758 "setting slot time to %uus\n", slottime);
1775 "setting slot time to %uus\n", slottime);
1931 "RSSI=%ddBm false CCA=%d\n", dbm, cca);
1960 "BBP17 %x->%x\n", sc->bbp17, bbp17);
2004 "%x -> %x\n", ostate, nstate);
2151 "could not read from BBP\n");
2166 "could not read from BBP\n");
2187 "timeout waiting for BBP\n");
2221 "could not write to BBP\n");
2229 "BBP R%u <- 0x%02x\n", reg, val);
2317 "could not write to RF\n");
2329 "RF R[%u] <- 0x%05x\n", reg & 3, val & 0x1fffff);
2425 "could not load 8051 microcode\n");
2488 "timeout waiting for BBP/RF to wakeup\n");
2566 "Hardware initialization failed\n");
2690 "discard, state %u\n", ic->ic_state);
2833 "resume now\n");
2844 "unable to alloc soft_state_p\n");
2873 "vendor 0x%x, device id 0x%x, cache size %d\n",
2898 "PCI configuration is done successfully\n");
2903 "fixed type interrupt is not supported\n");
2910 "no fixed interrupts\n");
2920 "ddi_intr_alloc() failed 0x%x\n", err);
2927 "ddi_intr_get_pri() failed 0x%x\n", err);
2942 "timeout waiting for NIC to initialize\n");
2950 "MAC/BBP RT%X, RF %s\n"
2951 "MAC address is: %x:%x:%x:%x:%x:%x\n", val,
2977 "could not load 8051 microcode\n");
2992 "could not allocate Tx ring %d\n", ac);
3000 "could not allocate Mgt ring\n");
3007 "could not allocate Rx ring\n");
3072 "ddi_intr_addr_handle() failed\n");
3079 "ddi_intr_enable() failed\n");
3093 "MAC version mismatch\n");
3111 "mac_register err %x\n", err);
3129 "attach successfully\n");
3181 "suspend now\n");
3225 "detach successfully\n");