Lines Matching +full:4 +full:- +full:bits

1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* ZD1211 USB-WLAN driver for Linux
4 * Copyright (C) 2005-2007 Ulrich Kunitz <kune@deine-taler.de>
5 * Copyright (C) 2006-2007 Daniel Drake <dsd@gentoo.org>
18 RF_CHANNEL( 4) = { 0x1819a9, 0x1e6666 },
32 static int bits(u32 rw, int from, int to)
41 return bits(rw, bit, bit);
46 int reg = bits(rw, 18, 22);
47 int rw_flag = bits(rw, 23, 23);
54 bits(rw, 14, 15), bit(rw, 3), bit(rw, 2), bit(rw, 1),
63 bits(rw, 7, 9), bits(rw, 4, 6), bits(rw, 0, 3));
67 bits(rw, 6, 17), bits(rw, 0, 5));
70 PDEBUG("reg3 IFPLL3 num %d", bits(rw, 0, 17));
72 case 4:
74 bits(rw, 8, 16), bits(rw, 4, 7), bits(rw, 0, 3));
82 bits(rw, 7, 9), bits(rw, 4, 6), bits(rw, 0,3));
86 bits(rw, 6, 17), bits(rw, 0, 5));
89 PDEBUG("reg7 RFPLL3 num2 %d", bits(rw, 0, 17));
93 bits(rw, 8, 16), bits(rw, 4, 7), bits(rw, 0, 3));
97 bits(rw, 13, 17), bits(rw, 8, 12), bits(rw, 3, 7),
98 bits(rw, 0, 2));
104 bit(rw, 17), bits(rw, 15, 16), bits(rw, 10, 14),
105 bits(rw, 7, 9), bits(rw, 4, 6), bit(rw, 3), bit(rw, 2),
111 bits(rw, 15, 17), bits(rw, 9, 14), bits(rw, 3, 8),
112 bits(rw, 0, 2));
116 bits(rw, 12, 17), bits(rw, 6, 11), bits(rw, 0, 5));
123 bits(rw, 8, 9), bits(rw, 5, 7), bits(rw, 3, 4),
124 bits(rw, 0, 2));
129 bits(rw, 13, 17), bits(rw, 9, 12), bits(rw, 4, 8),
130 bits(rw, 0, 3));
200 /* ZD_CR31_CCK, ZD_CR51_6-36M, ZD_CR52_48M, ZD_CR53_54M */ in rf2959_init_hw()
221 const u32 *rv = rf2959_table[channel-1]; in rf2959_set_channel()
262 return -ENODEV; in zd_rf_init_rf2959()
264 rf->init_hw = rf2959_init_hw; in zd_rf_init_rf2959()
265 rf->set_channel = rf2959_set_channel; in zd_rf_init_rf2959()
266 rf->switch_radio_on = rf2959_switch_radio_on; in zd_rf_init_rf2959()
267 rf->switch_radio_off = rf2959_switch_radio_off; in zd_rf_init_rf2959()