Lines Matching defs:tmp

75 	uint16_t tmp[4];
82 tmp, sizeof (tmp));
87 if (tmp[0] != regs[0] || tmp[2] != regs[1]) {
91 LE_16(tmp[0]), LE_16(tmp[2]));
95 *val = ((uint32_t)LE_16(tmp[1]) << 16) | (uint32_t)LE_16(tmp[3]);
111 uint16_t tmp[4];
113 tmp[0] = LE_16(ZYD_REG32_HI(reg));
114 tmp[1] = LE_16(val >> 16);
115 tmp[2] = LE_16(ZYD_REG32_LO(reg));
116 tmp[3] = LE_16(val & 0xffff);
118 result = zyd_usb_cmd_send(&sc->usb, ZYD_CMD_IOWR, tmp, sizeof (tmp));
134 uint16_t tmp[2];
140 tmp, sizeof (tmp));
145 if (tmp[0] != regbuf) {
148 LE_16(regbuf), LE_16(tmp[0]));
155 *val = LE_16(tmp[1]);
171 uint16_t tmp[2];
173 tmp[0] = LE_16(ZYD_REG32_LO(reg));
174 tmp[1] = LE_16(val & 0xffff);
176 result = zyd_usb_cmd_send(&sc->usb, ZYD_CMD_IOWR, tmp, sizeof (tmp));
209 uint32_t tmp;
211 (void) zyd_read32(sc, ZYD_MAC_MISC, &tmp);
212 tmp &= ~ZYD_UNLOCK_PHY_REGS;
213 (void) zyd_write32(sc, ZYD_MAC_MISC, tmp);
222 uint32_t tmp;
224 (void) zyd_read32(sc, ZYD_MAC_MISC, &tmp);
225 tmp |= ZYD_UNLOCK_PHY_REGS;
226 (void) zyd_write32(sc, ZYD_MAC_MISC, tmp);
235 uint32_t tmp;
237 if (zyd_read32(sc, ZYD_EEPROM_MAC_ADDR_P1, &tmp) != ZYD_SUCCESS)
240 sc->macaddr[0] = tmp & 0xff;
241 sc->macaddr[1] = tmp >> 8;
242 sc->macaddr[2] = tmp >> 16;
243 sc->macaddr[3] = tmp >> 24;
245 if (zyd_read32(sc, ZYD_EEPROM_MAC_ADDR_P2, &tmp) != ZYD_SUCCESS)
248 sc->macaddr[4] = tmp & 0xff;
249 sc->macaddr[5] = tmp >> 8;
262 uint16_t tmp;
277 tmp = LE_16(cr203) | (bit ? LE_16(ZYD_RF_DATA) : 0);
278 req.bit[i] = tmp;
297 uint32_t tmp;
299 (void) zyd_read32(sc, ZYD_MAC_TX_PE_CONTROL, &tmp);
300 tmp &= ~which;
302 tmp |= which;
303 (void) zyd_write32(sc, ZYD_MAC_TX_PE_CONTROL, tmp);
312 uint32_t tmp;
314 tmp = addr[3] << 24 | addr[2] << 16 | addr[1] << 8 | addr[0];
315 (void) zyd_write32(sc, ZYD_MAC_MACADRL, tmp);
317 tmp = addr[5] << 8 | addr[4];
318 (void) zyd_write32(sc, ZYD_MAC_MACADRH, tmp);
327 uint32_t tmp;
332 (void) zyd_read32(sc, ZYD_EEPROM_POD, &tmp);
333 sc->rf_rev = tmp & 0x0f;
334 sc->pa_rev = (tmp >> 16) & 0x0f;
335 sc->fix_cr47 = (tmp >> 8) & 0x01;
336 sc->fix_cr157 = (tmp >> 13) & 0x01;
344 (void) zyd_read32(sc, ZYD_EEPROM_SUBID, &tmp);
345 sc->regdomain = tmp >> 16;
488 uint32_t tmp;
515 if (zyd_read32(sc, ZYD_EEPROM_PHY_REG, &tmp) == 0)
516 (void) zyd_write32(sc, ZYD_CR157, tmp >> 8);
565 uint32_t tmp;
595 if (zyd_read32(sc, ZYD_EEPROM_PHY_REG, &tmp) == 0)
596 (void) zyd_write16(sc, ZYD_CR47, tmp & 0xff);