/drivers/net/wireless/ath/ath5k/ |
D | eeprom.c | 40 static u16 ath5k_eeprom_bin2freq(struct ath5k_eeprom_info *ee, u16 bin, in ath5k_eeprom_bin2freq() argument 49 if (ee->ee_version > AR5K_EEPROM_VERSION_3_2) in ath5k_eeprom_bin2freq() 55 if (ee->ee_version > AR5K_EEPROM_VERSION_3_2) in ath5k_eeprom_bin2freq() 75 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom; in ath5k_eeprom_init_header() local 141 if (ee->ee_version >= AR5K_EEPROM_VERSION_4_3) in ath5k_eeprom_init_header() 144 if (ee->ee_version >= AR5K_EEPROM_VERSION_5_0) { in ath5k_eeprom_init_header() 153 ee->ee_ob[AR5K_EEPROM_MODE_11B][0] = val & 0x7; in ath5k_eeprom_init_header() 154 ee->ee_db[AR5K_EEPROM_MODE_11B][0] = (val >> 3) & 0x7; in ath5k_eeprom_init_header() 157 ee->ee_ob[AR5K_EEPROM_MODE_11G][0] = val & 0x7; in ath5k_eeprom_init_header() 158 ee->ee_db[AR5K_EEPROM_MODE_11G][0] = (val >> 3) & 0x7; in ath5k_eeprom_init_header() [all …]
|
D | reset.c | 283 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom; in ath5k_hw_set_sleep_clock() local 288 if ((AR5K_EEPROM_HAS32KHZCRYSTAL(ee->ee_misc1) || in ath5k_hw_set_sleep_clock() 289 AR5K_EEPROM_HAS32KHZCRYSTAL_OLD(ee->ee_misc1)) && in ath5k_hw_set_sleep_clock() 348 else if (ee->ee_is_hb63) in ath5k_hw_set_sleep_clock() 979 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom; in ath5k_hw_commit_eeprom_settings() local 992 ((ee->ee_cck_ofdm_power_delta - in ath5k_hw_commit_eeprom_settings() 993 ee->ee_scaled_cck_delta) * 2) / 10; in ath5k_hw_commit_eeprom_settings() 996 (ee->ee_cck_ofdm_power_delta * 2) / 10; in ath5k_hw_commit_eeprom_settings() 1003 AR5K_REG_SM((ee->ee_cck_ofdm_gain_delta * -1), in ath5k_hw_commit_eeprom_settings() 1015 ee->ee_cck_ofdm_gain_delta; in ath5k_hw_commit_eeprom_settings() [all …]
|
D | phy.c | 686 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom; in ath5k_hw_gainf_calibrate() local 711 ee->ee_cck_ofdm_gain_delta; in ath5k_hw_gainf_calibrate() 823 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom; in ath5k_hw_rfregs_init() local 940 ath5k_hw_rfb_op(ah, rf_regs, ee->ee_ob[ee_mode][obdb], in ath5k_hw_rfregs_init() 943 ath5k_hw_rfb_op(ah, rf_regs, ee->ee_db[ee_mode][obdb], in ath5k_hw_rfregs_init() 961 ath5k_hw_rfb_op(ah, rf_regs, ee->ee_ob[ee_mode][obdb], in ath5k_hw_rfregs_init() 964 ath5k_hw_rfb_op(ah, rf_regs, ee->ee_db[ee_mode][obdb], in ath5k_hw_rfregs_init() 1002 ath5k_hw_rfb_op(ah, rf_regs, !ee->ee_xpd[ee_mode], in ath5k_hw_rfregs_init() 1005 ath5k_hw_rfb_op(ah, rf_regs, ee->ee_x_gain[ee_mode], in ath5k_hw_rfregs_init() 1008 ath5k_hw_rfb_op(ah, rf_regs, ee->ee_i_gain[ee_mode], in ath5k_hw_rfregs_init() [all …]
|
D | attach.c | 109 struct ath5k_eeprom_info *ee; in ath5k_hw_init() local 270 ee = &ah->ah_capabilities.cap_eeprom; in ath5k_hw_init() 286 if (ee->ee_serdes) in ath5k_hw_init() 316 (ee->ee_version < AR5K_EEPROM_VERSION_5_0 || in ath5k_hw_init() 317 !AR5K_EEPROM_AES_DIS(ee->ee_misc5))) in ath5k_hw_init()
|
/drivers/staging/lustre/lustre/llite/ |
D | llite_rmtacl.c | 184 struct eacl_entry *ee; in ee_alloc() local 186 ee = kzalloc(sizeof(*ee), GFP_NOFS); in ee_alloc() 187 if (!ee) in ee_alloc() 190 INIT_LIST_HEAD(&ee->ee_list); in ee_alloc() 191 ee->ee_key = key; in ee_alloc() 192 ee->ee_fid = *fid; in ee_alloc() 193 ee->ee_type = type; in ee_alloc() 194 ee->ee_acl = header; in ee_alloc() 196 return ee; in ee_alloc() 199 void ee_free(struct eacl_entry *ee) in ee_free() argument [all …]
|
D | xattr.c | 157 struct eacl_entry *ee; in ll_setxattr_common() local 159 ee = et_search_del(&sbi->ll_et, current_pid(), in ll_setxattr_common() 161 LASSERT(ee != NULL); in ll_setxattr_common() 165 size, ee->ee_acl); in ll_setxattr_common() 167 ee_free(ee); in ll_setxattr_common() 175 ee_free(ee); in ll_setxattr_common()
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | debugfs.c | 101 struct mt7601u_rate_power *rp = &dev->ee->power_rate_table; in mt7601u_eeprom_param_read() 102 struct tssi_data *td = &dev->ee->tssi_data; in mt7601u_eeprom_param_read() 105 seq_printf(file, "RF freq offset: %hhx\n", dev->ee->rf_freq_off); in mt7601u_eeprom_param_read() 107 dev->ee->rssi_offset[0], dev->ee->rssi_offset[1]); in mt7601u_eeprom_param_read() 108 seq_printf(file, "Reference temp: %hhx\n", dev->ee->ref_temp); in mt7601u_eeprom_param_read() 109 seq_printf(file, "LNA gain: %hhx\n", dev->ee->lna_gain); in mt7601u_eeprom_param_read() 110 seq_printf(file, "Reg channels: %hhu-%hhu\n", dev->ee->reg.start, in mt7601u_eeprom_param_read() 111 dev->ee->reg.start + dev->ee->reg.num - 1); in mt7601u_eeprom_param_read() 127 i * 2 + 1, dev->ee->chan_pwr[i * 2], in mt7601u_eeprom_param_read() 128 i * 2 + 2, dev->ee->chan_pwr[i * 2 + 1]); in mt7601u_eeprom_param_read() [all …]
|
D | eeprom.c | 121 dev->ee->tssi_enabled = mt7601u_has_tssi(dev, eeprom) && in mt7601u_set_chip_cap() 169 memset(dev->ee->chan_pwr, trgt_pwr, sizeof(dev->ee->chan_pwr)); in mt7601u_set_channel_target_power() 192 dev->ee->chan_pwr[i] = power; in mt7601u_set_channel_power() 225 dev->ee->reg = chan_bounds[idx]; in mt7601u_set_country_reg() 237 dev->ee->rf_freq_off = field_validate(eeprom[MT_EE_FREQ_OFFSET]); in mt7601u_set_rf_freq_off() 241 dev->ee->rf_freq_off -= comp & 0x7f; in mt7601u_set_rf_freq_off() 243 dev->ee->rf_freq_off += comp; in mt7601u_set_rf_freq_off() 250 s8 *rssi_offset = dev->ee->rssi_offset; in mt7601u_set_rssi_offset() 293 struct mt7601u_rate_power *t = &dev->ee->power_rate_table; in mt7601u_save_power_rate() 300 dev->ee->real_cck_bw20[0] = t->cck[0].bw20; in mt7601u_save_power_rate() [all …]
|
D | phy.c | 263 val -= dev->ee->lna_gain; in mt7601u_phy_get_rssi() 264 val -= dev->ee->rssi_offset[0]; in mt7601u_phy_get_rssi() 330 struct mt7601u_rate_power *t = &dev->ee->power_rate_table; in mt7601u_apply_ch14_fixup() 336 t->cck[0].bw20 = dev->ee->real_cck_bw20[0]; in mt7601u_apply_ch14_fixup() 337 t->cck[1].bw20 = dev->ee->real_cck_bw20[1]; in mt7601u_apply_ch14_fixup() 343 t->cck[0].bw20 = dev->ee->real_cck_bw20[0] - 2; in mt7601u_apply_ch14_fixup() 344 t->cck[1].bw20 = dev->ee->real_cck_bw20[1] - 2; in mt7601u_apply_ch14_fixup() 372 { 62, 0x37 - dev->ee->lna_gain }, in __mt7601u_phy_set_channel() 373 { 63, 0x37 - dev->ee->lna_gain }, in __mt7601u_phy_set_channel() 374 { 64, 0x37 - dev->ee->lna_gain }, in __mt7601u_phy_set_channel() [all …]
|
D | init.c | 568 WARN_ON(dev->ee->reg.start - 1 + dev->ee->reg.num > in mt76_init_sband_2g() 572 &mt76_channels_2ghz[dev->ee->reg.start - 1], in mt76_init_sband_2g() 573 dev->ee->reg.num, in mt76_init_sband_2g()
|
D | mt7601u.h | 186 struct mt7601u_eeprom_params *ee; member
|
/drivers/staging/lustre/lustre/obdclass/ |
D | acl.c | 299 ext_acl_xattr_entry *ee, eae; in lustre_acl_xattr_merge2ext() local 337 ee = lustre_ext_acl_xattr_search(ext_header, in lustre_acl_xattr_merge2ext() 339 if (ee) { in lustre_acl_xattr_merge2ext() 341 ee->e_perm) in lustre_acl_xattr_merge2ext() 343 ee->e_stat = in lustre_acl_xattr_merge2ext() 348 ee->e_stat = in lustre_acl_xattr_merge2ext() 367 ee = lustre_ext_acl_xattr_search(ext_header, in lustre_acl_xattr_merge2ext() 369 if (ee) { in lustre_acl_xattr_merge2ext() 371 ee->e_perm) in lustre_acl_xattr_merge2ext() 373 ee->e_stat = in lustre_acl_xattr_merge2ext() [all …]
|
/drivers/staging/media/davinci_vpfe/ |
D | dm365_ipipe_hw.c | 910 struct vpfe_ipipe_yee *ee) in ipipe_set_ee_regs() argument 916 regw_ip(base_addr, ee->en, YEE_EN); in ipipe_set_ee_regs() 918 if (!ee->en) in ipipe_set_ee_regs() 921 val = ee->en_halo_red & 1; in ipipe_set_ee_regs() 922 val |= ee->merge_meth << YEE_HALO_RED_EN_SHIFT; in ipipe_set_ee_regs() 925 regw_ip(base_addr, ee->hpf_shft, YEE_SHF); in ipipe_set_ee_regs() 926 regw_ip(base_addr, ee->hpf_coef_00 & YEE_COEF_MASK, YEE_MUL_00); in ipipe_set_ee_regs() 927 regw_ip(base_addr, ee->hpf_coef_01 & YEE_COEF_MASK, YEE_MUL_01); in ipipe_set_ee_regs() 928 regw_ip(base_addr, ee->hpf_coef_02 & YEE_COEF_MASK, YEE_MUL_02); in ipipe_set_ee_regs() 929 regw_ip(base_addr, ee->hpf_coef_10 & YEE_COEF_MASK, YEE_MUL_10); in ipipe_set_ee_regs() [all …]
|
/drivers/net/ethernet/micrel/ |
D | ks8851.c | 1130 static void ks8851_eeprom_regread(struct eeprom_93cx6 *ee) in ks8851_eeprom_regread() argument 1132 struct ks8851_net *ks = ee->data; in ks8851_eeprom_regread() 1137 ee->reg_data_out = (val & EEPCR_EESB) ? 1 : 0; in ks8851_eeprom_regread() 1138 ee->reg_data_clock = (val & EEPCR_EESCK) ? 1 : 0; in ks8851_eeprom_regread() 1139 ee->reg_chip_select = (val & EEPCR_EECS) ? 1 : 0; in ks8851_eeprom_regread() 1142 static void ks8851_eeprom_regwrite(struct eeprom_93cx6 *ee) in ks8851_eeprom_regwrite() argument 1144 struct ks8851_net *ks = ee->data; in ks8851_eeprom_regwrite() 1147 if (ee->drive_data) in ks8851_eeprom_regwrite() 1149 if (ee->reg_data_in) in ks8851_eeprom_regwrite() 1151 if (ee->reg_data_clock) in ks8851_eeprom_regwrite() [all …]
|
/drivers/spmi/ |
D | spmi-pmic-arb.c | 131 u8 ee; member 463 pa->ver_ops->owner_acc_status(pa->ee, i)); in pmic_arb_chained_irq() 715 return 0x1000 * pa->ee + 0x8000 * chan; in pmic_arb_offset_v2() 799 u32 channel, ee, hw_ver; in spmi_pmic_arb_probe() local 904 err = of_property_read_u32(pdev->dev.of_node, "qcom,ee", &ee); in spmi_pmic_arb_probe() 910 if (ee > 5) { in spmi_pmic_arb_probe() 911 dev_err(&pdev->dev, "invalid EE (%u) specified\n", ee); in spmi_pmic_arb_probe() 916 pa->ee = ee; in spmi_pmic_arb_probe()
|
/drivers/net/ethernet/sfc/ |
D | qt202x_phy.c | 461 struct ethtool_eeprom *ee, u8 *data) in qt202x_phy_get_module_eeprom() argument 473 for (i = 0; i < ee->len; i++) { in qt202x_phy_get_module_eeprom() 474 rc = efx_mdio_read(efx, mmd, reg_base + ee->offset + i); in qt202x_phy_get_module_eeprom()
|
D | mcdi_port.c | 738 struct ethtool_eeprom *ee, u8 *data) in efx_mcdi_phy_get_module_eeprom() argument 745 unsigned int space_remaining = ee->len; in efx_mcdi_phy_get_module_eeprom() 753 page_off = ee->offset % SFP_PAGE_SIZE; in efx_mcdi_phy_get_module_eeprom() 754 page = ee->offset / SFP_PAGE_SIZE; in efx_mcdi_phy_get_module_eeprom()
|
/drivers/net/ethernet/davicom/ |
D | dm9000.c | 635 struct ethtool_eeprom *ee, u8 *data) in dm9000_get_eeprom() argument 638 int offset = ee->offset; in dm9000_get_eeprom() 639 int len = ee->len; in dm9000_get_eeprom() 650 ee->magic = DM_EEPROM_MAGIC; in dm9000_get_eeprom() 659 struct ethtool_eeprom *ee, u8 *data) in dm9000_set_eeprom() argument 662 int offset = ee->offset; in dm9000_set_eeprom() 663 int len = ee->len; in dm9000_set_eeprom() 671 if (ee->magic != DM_EEPROM_MAGIC) in dm9000_set_eeprom()
|
/drivers/net/usb/ |
D | smsc95xx.c | 660 struct ethtool_eeprom *ee, u8 *data) in smsc95xx_ethtool_get_eeprom() argument 664 ee->magic = LAN95XX_EEPROM_MAGIC; in smsc95xx_ethtool_get_eeprom() 666 return smsc95xx_read_eeprom(dev, ee->offset, ee->len, data); in smsc95xx_ethtool_get_eeprom() 670 struct ethtool_eeprom *ee, u8 *data) in smsc95xx_ethtool_set_eeprom() argument 674 if (ee->magic != LAN95XX_EEPROM_MAGIC) { in smsc95xx_ethtool_set_eeprom() 676 ee->magic); in smsc95xx_ethtool_set_eeprom() 680 return smsc95xx_write_eeprom(dev, ee->offset, ee->len, data); in smsc95xx_ethtool_set_eeprom()
|
D | lan78xx.c | 948 struct ethtool_eeprom *ee, u8 *data) in lan78xx_ethtool_get_eeprom() argument 952 ee->magic = LAN78XX_EEPROM_MAGIC; in lan78xx_ethtool_get_eeprom() 954 return lan78xx_read_raw_eeprom(dev, ee->offset, ee->len, data); in lan78xx_ethtool_get_eeprom() 958 struct ethtool_eeprom *ee, u8 *data) in lan78xx_ethtool_set_eeprom() argument 963 if ((ee->magic == LAN78XX_EEPROM_MAGIC) && in lan78xx_ethtool_set_eeprom() 964 (ee->offset == 0) && in lan78xx_ethtool_set_eeprom() 965 (ee->len == 512) && in lan78xx_ethtool_set_eeprom() 967 return lan78xx_write_raw_eeprom(dev, ee->offset, ee->len, data); in lan78xx_ethtool_set_eeprom() 968 else if ((ee->magic == LAN78XX_OTP_MAGIC) && in lan78xx_ethtool_set_eeprom() 969 (ee->offset == 0) && in lan78xx_ethtool_set_eeprom() [all …]
|
D | smsc75xx.c | 691 struct ethtool_eeprom *ee, u8 *data) in smsc75xx_ethtool_get_eeprom() argument 695 ee->magic = LAN75XX_EEPROM_MAGIC; in smsc75xx_ethtool_get_eeprom() 697 return smsc75xx_read_eeprom(dev, ee->offset, ee->len, data); in smsc75xx_ethtool_get_eeprom() 701 struct ethtool_eeprom *ee, u8 *data) in smsc75xx_ethtool_set_eeprom() argument 705 if (ee->magic != LAN75XX_EEPROM_MAGIC) { in smsc75xx_ethtool_set_eeprom() 707 ee->magic); in smsc75xx_ethtool_set_eeprom() 711 return smsc75xx_write_eeprom(dev, ee->offset, ee->len, data); in smsc75xx_ethtool_set_eeprom()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_ethtool.c | 1954 struct ethtool_eeprom *ee, in mlx4_en_get_module_eeprom() argument 1959 int offset = ee->offset; in mlx4_en_get_module_eeprom() 1962 if (ee->len == 0) in mlx4_en_get_module_eeprom() 1965 memset(data, 0, ee->len); in mlx4_en_get_module_eeprom() 1967 while (i < ee->len) { in mlx4_en_get_module_eeprom() 1970 i, offset, ee->len - i); in mlx4_en_get_module_eeprom() 1973 offset, ee->len - i, data + i); in mlx4_en_get_module_eeprom() 1981 i, offset, ee->len - i, ret); in mlx4_en_get_module_eeprom()
|
/drivers/dma/ |
D | qcom_bam_dma.c | 389 u32 ee; member 414 r.ee_mult * bdev->ee; in bam_addr() 1046 if (bdev->ee >= val) in bam_init() 1133 ret = of_property_read_u32(pdev->dev.of_node, "qcom,ee", &bdev->ee); in bam_dma_probe()
|
/drivers/media/pci/bt8xx/ |
D | bttv-cards.c | 51 static void osprey_eeprom(struct bttv *btv, const u8 ee[256]); 3929 static void osprey_eeprom(struct bttv *btv, const u8 ee[256]) in osprey_eeprom() 3938 if (!strncmp(ee, "MMAC", 4)) { in osprey_eeprom() 3941 checksum += ee[i]; in osprey_eeprom() 3942 if (checksum != ee[21]) in osprey_eeprom() 3946 serial *= 10, serial += ee[i] - '0'; in osprey_eeprom() 3952 u16 checksum = (__force u16)ip_compute_csum(ee + i, 16); in osprey_eeprom() 3959 ee += i; in osprey_eeprom() 3962 type = get_unaligned_be16((__be16 *)(ee+4)); in osprey_eeprom() 4021 serial = get_unaligned_be32((__be32 *)(ee+6)); in osprey_eeprom()
|
/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 2803 struct ethtool_eeprom *ee, u8 *data) in igb_get_module_eeprom() argument 2812 if (ee->len == 0) in igb_get_module_eeprom() 2815 first_word = ee->offset >> 1; in igb_get_module_eeprom() 2816 last_word = (ee->offset + ee->len - 1) >> 1; in igb_get_module_eeprom() 2835 memcpy(data, (u8 *)dataword + (ee->offset & 1), ee->len); in igb_get_module_eeprom()
|