Lines Matching refs:ioreqs

132 				       const struct zd_ioreq32 *ioreqs,  in _zd_iowrite32v_async_locked()  argument
154 ioreqs16[j].value = ioreqs[i].value >> 16; in _zd_iowrite32v_async_locked()
155 ioreqs16[j].addr = inc_addr(ioreqs[i].addr); in _zd_iowrite32v_async_locked()
156 ioreqs16[j+1].value = ioreqs[i].value; in _zd_iowrite32v_async_locked()
157 ioreqs16[j+1].addr = ioreqs[i].addr; in _zd_iowrite32v_async_locked()
170 int _zd_iowrite32v_locked(struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, in _zd_iowrite32v_locked() argument
176 r = _zd_iowrite32v_async_locked(chip, ioreqs, count); in _zd_iowrite32v_locked()
185 const struct zd_ioreq16 *ioreqs, unsigned int count) in zd_iowrite16a_locked() argument
199 if (!ioreqs[i+j].addr) { in zd_iowrite16a_locked()
205 r = zd_usb_iowrite16v_async(&chip->usb, &ioreqs[i], j); in zd_iowrite16a_locked()
223 const struct zd_ioreq32 *ioreqs, unsigned int count) in zd_iowrite32a_locked() argument
236 if (!ioreqs[i+j].addr) { in zd_iowrite32a_locked()
242 r = _zd_iowrite32v_async_locked(chip, &ioreqs[i], j); in zd_iowrite32a_locked()
306 int zd_iowrite32a(struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, in zd_iowrite32a() argument
312 r = zd_iowrite32a_locked(chip, ioreqs, count); in zd_iowrite32a()
581 struct zd_ioreq16 ioreqs[] = { in zd_chip_generic_patch_6m_band() local
588 ioreqs[0].value = 0x12; in zd_chip_generic_patch_6m_band()
591 return zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd_chip_generic_patch_6m_band()
596 static const struct zd_ioreq16 ioreqs[] = { in zd1211_hw_reset_phy() local
670 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd1211_hw_reset_phy()
685 static const struct zd_ioreq16 ioreqs[] = { in zd1211b_hw_reset_phy() local
752 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd1211b_hw_reset_phy()
768 static const struct zd_ioreq32 ioreqs[] = { in zd1211_hw_init_hmac() local
775 return zd_iowrite32a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd1211_hw_init_hmac()
780 static const struct zd_ioreq32 ioreqs[] = { in zd1211b_hw_init_hmac() local
794 return zd_iowrite32a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd1211b_hw_init_hmac()
800 static const struct zd_ioreq32 ioreqs[] = { in hw_init_hmac() local
824 r = zd_iowrite32a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in hw_init_hmac()
1200 struct zd_ioreq16 ioreqs[3]; in update_ofdm_cal() local
1202 ioreqs[0].addr = ZD_CR67; in update_ofdm_cal()
1203 ioreqs[0].value = chip->ofdm_cal_values[OFDM_36M_INDEX][channel-1]; in update_ofdm_cal()
1204 ioreqs[1].addr = ZD_CR66; in update_ofdm_cal()
1205 ioreqs[1].value = chip->ofdm_cal_values[OFDM_48M_INDEX][channel-1]; in update_ofdm_cal()
1206 ioreqs[2].addr = ZD_CR65; in update_ofdm_cal()
1207 ioreqs[2].value = chip->ofdm_cal_values[OFDM_54M_INDEX][channel-1]; in update_ofdm_cal()
1209 return zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in update_ofdm_cal()
1224 static const struct zd_ioreq16 ioreqs[] = { in update_channel_integration_and_calibration() local
1236 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in update_channel_integration_and_calibration()
1310 struct zd_ioreq16 ioreqs[ARRAY_SIZE(a)] = { in zd_chip_control_leds() local
1325 ioreqs[0].value = FW_LINK_OFF; in zd_chip_control_leds()
1326 ioreqs[1].value = v[1] & ~(LED1|LED2); in zd_chip_control_leds()
1329 ioreqs[0].value = FW_LINK_OFF; in zd_chip_control_leds()
1330 ioreqs[1].value = v[1] & ~other_led; in zd_chip_control_leds()
1332 ioreqs[1].value &= ~chip->link_led; in zd_chip_control_leds()
1334 ioreqs[1].value |= chip->link_led; in zd_chip_control_leds()
1338 ioreqs[0].value = FW_LINK_TX; in zd_chip_control_leds()
1339 ioreqs[1].value = v[1] & ~other_led; in zd_chip_control_leds()
1340 ioreqs[1].value |= chip->link_led; in zd_chip_control_leds()
1347 if (v[0] != ioreqs[0].value || v[1] != ioreqs[1].value) { in zd_chip_control_leds()
1348 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd_chip_control_leds()
1493 const struct zd_ioreq16 ioreqs[] = { in zd_rfwrite_cr_locked() local
1499 return zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd_rfwrite_cr_locked()
1520 const struct zd_ioreq32 ioreqs[] = { in zd_chip_set_multicast_hash() local
1525 return zd_iowrite32a(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd_chip_set_multicast_hash()