Lines Matching refs:zd_chip
752 struct zd_chip { struct
771 static inline struct zd_chip *zd_usb_to_chip(struct zd_usb *usb) in zd_usb_to_chip() argument
773 return container_of(usb, struct zd_chip, usb); in zd_usb_to_chip()
776 static inline struct zd_chip *zd_rf_to_chip(struct zd_rf *rf) in zd_rf_to_chip()
778 return container_of(rf, struct zd_chip, rf); in zd_rf_to_chip()
783 void zd_chip_init(struct zd_chip *chip,
786 void zd_chip_clear(struct zd_chip *chip);
787 int zd_chip_read_mac_addr_fw(struct zd_chip *chip, u8 *addr);
788 int zd_chip_init_hw(struct zd_chip *chip);
789 int zd_chip_reset(struct zd_chip *chip);
791 static inline int zd_chip_is_zd1211b(struct zd_chip *chip) in zd_chip_is_zd1211b()
796 static inline int zd_ioread16v_locked(struct zd_chip *chip, u16 *values, in zd_ioread16v_locked()
804 static inline int zd_ioread16_locked(struct zd_chip *chip, u16 *value, in zd_ioread16_locked()
811 int zd_ioread32v_locked(struct zd_chip *chip, u32 *values,
814 static inline int zd_ioread32_locked(struct zd_chip *chip, u32 *value, in zd_ioread32_locked()
820 static inline int zd_iowrite16_locked(struct zd_chip *chip, u16 value, in zd_iowrite16_locked()
832 int zd_iowrite16a_locked(struct zd_chip *chip,
835 int _zd_iowrite32v_locked(struct zd_chip *chip, const struct zd_ioreq32 *ioreqs,
838 static inline int zd_iowrite32_locked(struct zd_chip *chip, u32 value, in zd_iowrite32_locked()
849 int zd_iowrite32a_locked(struct zd_chip *chip,
852 static inline int zd_rfwrite_locked(struct zd_chip *chip, u32 value, u8 bits) in zd_rfwrite_locked()
858 int zd_rfwrite_cr_locked(struct zd_chip *chip, u32 value);
860 int zd_rfwritev_locked(struct zd_chip *chip,
862 int zd_rfwritev_cr_locked(struct zd_chip *chip,
868 int zd_ioread16(struct zd_chip *chip, zd_addr_t addr, u16 *value);
869 int zd_iowrite16(struct zd_chip *chip, zd_addr_t addr, u16 value);
870 int zd_ioread32(struct zd_chip *chip, zd_addr_t addr, u32 *value);
871 int zd_iowrite32(struct zd_chip *chip, zd_addr_t addr, u32 value);
872 int zd_ioread32v(struct zd_chip *chip, const zd_addr_t *addresses,
874 int zd_iowrite32a(struct zd_chip *chip, const struct zd_ioreq32 *ioreqs,
877 int zd_chip_set_channel(struct zd_chip *chip, u8 channel);
878 static inline u8 _zd_chip_get_channel(struct zd_chip *chip) in _zd_chip_get_channel()
882 u8 zd_chip_get_channel(struct zd_chip *chip);
883 int zd_read_regdomain(struct zd_chip *chip, u8 *regdomain);
884 int zd_write_mac_addr(struct zd_chip *chip, const u8 *mac_addr);
885 int zd_write_bssid(struct zd_chip *chip, const u8 *bssid);
886 int zd_chip_switch_radio_on(struct zd_chip *chip);
887 int zd_chip_switch_radio_off(struct zd_chip *chip);
888 int zd_chip_enable_int(struct zd_chip *chip);
889 void zd_chip_disable_int(struct zd_chip *chip);
890 int zd_chip_enable_rxtx(struct zd_chip *chip);
891 void zd_chip_disable_rxtx(struct zd_chip *chip);
892 int zd_chip_enable_hwint(struct zd_chip *chip);
893 int zd_chip_disable_hwint(struct zd_chip *chip);
894 int zd_chip_generic_patch_6m_band(struct zd_chip *chip, int channel);
895 int zd_chip_set_rts_cts_rate_locked(struct zd_chip *chip, int preamble);
897 static inline int zd_get_encryption_type(struct zd_chip *chip, u32 *type) in zd_get_encryption_type()
902 static inline int zd_set_encryption_type(struct zd_chip *chip, u32 type) in zd_set_encryption_type()
907 static inline int zd_chip_get_basic_rates(struct zd_chip *chip, u16 *cr_rates) in zd_chip_get_basic_rates()
912 int zd_chip_set_basic_rates(struct zd_chip *chip, u16 cr_rates);
914 int zd_chip_lock_phy_regs(struct zd_chip *chip);
915 int zd_chip_unlock_phy_regs(struct zd_chip *chip);
923 int zd_chip_control_leds(struct zd_chip *chip, enum led_status status);
925 int zd_set_beacon_interval(struct zd_chip *chip, u16 interval, u8 dtim_period,
928 static inline int zd_get_beacon_interval(struct zd_chip *chip, u32 *interval) in zd_get_beacon_interval()
966 int zd_chip_set_multicast_hash(struct zd_chip *chip,
969 u64 zd_chip_get_tsf(struct zd_chip *chip);