| /linux/sound/soc/codecs/ |
| H A D | es83xx-dsm-common.h | 150 /* BIT[3:0] FOR BUS NUMBER, BIT[7:4] FOR SLOT NUMBER 151 * BIT[3:0] 0 for I2S0, 1 for IS21, 2 for I2S2. 159 #define LINEIN_GAIN_0db 0x00 /* gain = 0db */ 160 #define LINEIN_GAIN_3db 0x01 /* gain = +3db */ 161 #define LINEIN_GAIN_6db 0x02 /* gain = +6db */ 162 #define LINEIN_GAIN_9db 0x03 /* gain = +9db */ 163 #define LINEIN_GAIN_12db 0x04 /* gain = +12db */ 164 #define LINEIN_GAIN_15db 0x05 /* gain = +15db */ 165 #define LINEIN_GAIN_18db 0x06 /* gain = +18db */ 166 #define LINEIN_GAIN_21db 0x07 /* gain = +21db */ [all …]
|
| /linux/drivers/net/ethernet/allwinner/ |
| H A D | sun4i-emac.c | 95 struct emac_board_info *db; member 104 struct emac_board_info *db = netdev_priv(dev); in emac_update_speed() local 108 reg_val = readl(db->membase + EMAC_MAC_SUPP_REG); in emac_update_speed() 110 if (db->speed == SPEED_100) in emac_update_speed() 112 writel(reg_val, db->membase + EMAC_MAC_SUPP_REG); in emac_update_speed() 117 struct emac_board_info *db = netdev_priv(dev); in emac_update_duplex() local 121 reg_val = readl(db->membase + EMAC_MAC_CTL1_REG); in emac_update_duplex() 123 if (db->duplex) in emac_update_duplex() 125 writel(reg_val, db->membase + EMAC_MAC_CTL1_REG); in emac_update_duplex() 130 struct emac_board_info *db = netdev_priv(dev); in emac_handle_link_change() local [all …]
|
| /linux/arch/powerpc/platforms/ps3/ |
| H A D | os-area.c | 91 u32 _reserved_1[3]; 93 u32 _reserved_2[3]; 110 #define OS_AREA_DB_MAGIC_NUM "-db-" 114 * @magic_num: Always '-db-'. 151 OS_AREA_DB_OWNER_PETITBOOT = 3, 191 * 3) The number of seconds from 1970 to 2000. 335 p->static_ip_addr[2], p->static_ip_addr[3]); in _dump_params() 338 p->network_mask[2], p->network_mask[3]); in _dump_params() 341 p->default_gateway[2], p->default_gateway[3]); in _dump_params() 344 p->dns_primary[2], p->dns_primary[3]); in _dump_params() [all …]
|
| /linux/drivers/net/ethernet/davicom/ |
| H A D | dm9000.c | 141 #define dm9000_dbg(db, lev, msg...) do { \ argument 143 dev_dbg(db->dev, msg); \ 158 ior(struct board_info *db, int reg) in ior() argument 160 writeb(reg, db->io_addr); in ior() 161 return readb(db->io_data); in ior() 169 iow(struct board_info *db, int reg, int value) in iow() argument 171 writeb(reg, db->io_addr); in iow() 172 writeb(value, db->io_data); in iow() 176 dm9000_reset(struct board_info *db) in dm9000_reset() argument 178 dev_dbg(db->dev, "resetting device\n"); in dm9000_reset() [all …]
|
| H A D | dm9051.c | 119 static int dm9051_set_reg(struct board_info *db, unsigned int reg, unsigned int val) in dm9051_set_reg() argument 123 ret = regmap_write(db->regmap_dm, reg, val); in dm9051_set_reg() 125 netif_err(db, drv, db->ndev, "%s: error %d set reg %02x\n", in dm9051_set_reg() 130 static int dm9051_update_bits(struct board_info *db, unsigned int reg, unsigned int mask, in dm9051_update_bits() argument 135 ret = regmap_update_bits(db->regmap_dm, reg, mask, val); in dm9051_update_bits() 137 netif_err(db, drv, db->ndev, "%s: error %d update bits reg %02x\n", in dm9051_update_bits() 144 static int dm9051_dumpblk(struct board_info *db, u8 reg, size_t count) in dm9051_dumpblk() argument 146 struct net_device *ndev = db->ndev; in dm9051_dumpblk() 155 ret = regmap_read(db->regmap_dm, reg, &rb); in dm9051_dumpblk() 157 netif_err(db, drv, ndev, "%s: error %d dumping read reg %02x\n", in dm9051_dumpblk() [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
| H A D | dm.c | 18 0x0b40002d, /* 0, -15.0dB */ 19 0x0c000030, /* 1, -14.5dB */ 20 0x0cc00033, /* 2, -14.0dB */ 21 0x0d800036, /* 3, -13.5dB */ 22 0x0e400039, /* 4, -13.0dB */ 23 0x0f00003c, /* 5, -12.5dB */ 24 0x10000040, /* 6, -12.0dB */ 25 0x11000044, /* 7, -11.5dB */ 26 0x12000048, /* 8, -11.0dB */ 27 0x1300004c, /* 9, -10.5dB */ [all …]
|
| /linux/sound/soc/atmel/ |
| H A D | atmel-pdmic.c | 227 /* range from -90 dB to 90 dB */ 229 { 1, 15}, { 1, 14}, /* -90, -84 dB */ 230 { 3, 15}, { 1, 13}, { 3, 14}, { 1, 12}, /* -81, -78, -75, -72 dB */ 231 { 5, 14}, { 13, 15}, /* -70, -68 dB */ 232 { 9, 14}, { 21, 15}, { 23, 15}, { 13, 14}, /* -65 ~ -62 dB */ 233 { 29, 15}, { 33, 15}, { 37, 15}, { 41, 15}, /* -61 ~ -58 dB */ 234 { 23, 14}, { 13, 13}, { 58, 15}, { 65, 15}, /* -57 ~ -54 dB */ [all...] |
| /linux/drivers/net/ppp/ |
| H A D | bsd_comp.c | 26 * 3. All advertising materials mentioning features or use of this software 173 static int bsd_init (void *db, unsigned char *options, 222 bsd_clear(struct bsd_db *db) in bsd_clear() argument 224 db->clear_count++; in bsd_clear() 225 db->max_ent = FIRST-1; in bsd_clear() 226 db->n_bits = BSD_INIT_BITS; in bsd_clear() 227 db->bytes_out = 0; in bsd_clear() 228 db->in_count = 0; in bsd_clear() 229 db->ratio = 0; in bsd_clear() 230 db->checkpoint = CHECK_GAP; in bsd_clear() [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
| H A D | dm.c | 17 0x081, /* 0, -12.0dB */ 18 0x088, /* 1, -11.5dB */ 19 0x090, /* 2, -11.0dB */ 20 0x099, /* 3, -10.5dB */ 21 0x0A2, /* 4, -10.0dB */ 22 0x0AC, /* 5, -9.5dB */ 23 0x0B6, /* 6, -9.0dB */ 24 0x0C0, /* 7, -8.5dB */ 25 0x0CC, /* 8, -8.0dB */ 26 0x0D8, /* 9, -7.5dB */ [all …]
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | stv0900_init.h | 21 { -30, 13348 }, /*C/N=-3dB*/ 22 { -20, 12640 }, /*C/N=-2dB*/ 23 { -10, 11883 }, /*C/N=-1dB*/ 24 { 0, 11101 }, /*C/N=-0dB*/ 25 { 5, 10718 }, /*C/N=0.5dB*/ 26 { 10, 10339 }, /*C/N=1.0dB*/ 27 { 15, 9947 }, /*C/N=1.5dB*/ 28 { 20, 9552 }, /*C/N=2.0dB*/ 29 { 25, 9183 }, /*C/N=2.5dB*/ 30 { 30, 8799 }, /*C/N=3.0dB*/ [all …]
|
| H A D | stv0910.c | 130 u8 data[3] = {reg >> 8, reg & 0xff, val}; in write_reg() 132 .buf = data, .len = 3}; in write_reg() 213 { 0, 9242 }, /* C/N= 0dB */ 214 { 5, 9105 }, /* C/N= 0.5dB */ 215 { 10, 8950 }, /* C/N= 1.0dB */ 216 { 15, 8780 }, /* C/N= 1.5dB */ 217 { 20, 8566 }, /* C/N= 2.0dB */ 218 { 25, 8366 }, /* C/N= 2.5dB */ 219 { 30, 8146 }, /* C/N= 3.0dB */ 220 { 35, 7908 }, /* C/N= 3.5dB */ [all …]
|
| H A D | dib0090.c | 133 s16 wbd_target; /* in dB */ 182 u8 i2c_write_buffer[3]; 249 state->msg[0].len = 3; in dib0090_write_reg() 680 550, /* max BB gain in 10th of dB */ 681 (1<<9) | 8, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> BB_RAMP2 */ 683 (4 << 9) | 0, /* BB_RAMP3 = 26dB */ 685 (4 << 9) | 208, /* BB_RAMP5 = 29dB */ 690 280, /* max RF gain in 10th of dB */ 691 18, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> RF_RAMP2 */ 693 (29 << 10) | 364, /* RF_RAMP5, LNA 1 = 8dB */ [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192d/ |
| H A D | dm_common.c | 13 0x7f8001fe, /* 0, +6.0dB */ 14 0x788001e2, /* 1, +5.5dB */ 15 0x71c001c7, /* 2, +5.0dB */ 16 0x6b8001ae, /* 3, +4.5dB */ 17 0x65400195, /* 4, +4.0dB */ 18 0x5fc0017f, /* 5, +3.5dB */ 19 0x5a400169, /* 6, +3.0dB */ 20 0x55400155, /* 7, +2.5dB */ 21 0x50800142, /* 8, +2.0dB */ 22 0x4c000130, /* 9, +1.5dB */ [all …]
|
| /linux/arch/alpha/math-emu/ |
| H A D | math.c | 30 #define FOP_SRC_Q 3 36 #define FOP_FNC_DIVx 3 102 FP_DECL_D(DA); FP_DECL_D(DB); FP_DECL_D(DR); in alpha_fp_emul() 120 if (mode == 3) { in alpha_fp_emul() 122 mode = (fpcr >> FPCR_DYN_SHIFT) & 3; in alpha_fp_emul() 160 if ((func & ~3) == FOP_FNC_CMPxUN) { in alpha_fp_emul() 162 FP_UNPACK_RAW_DP(DB, &vb); in alpha_fp_emul() 168 if (!DB_e && !_FP_FRAC_ZEROP_1(DB)) { in alpha_fp_emul() 171 _FP_FRAC_SET_1(DB, _FP_ZEROFRAC_1); in alpha_fp_emul() 173 FP_CMP_D(res, DA, DB, 3); in alpha_fp_emul() [all …]
|
| /linux/sound/pci/ice1712/ |
| H A D | wm8776.h | 30 #define WM8776_DAC_TOD (1 << 3) 34 #define WM8776_DAC_PL_LB (3 << 4) /* L chan: both */ 37 #define WM8776_DAC_PL_RB (3 << 6) /* R chan: both */ 45 #define WM8776_DAC2_ZFLAG_EITHER (3 << 1) 50 #define WM8776_FMT_DSP (3 << 0) 53 #define WM8776_FMT_BCLK_INVERTED (1 << 3) 57 #define WM8776_FMT_32BIT (3 << 4) 63 #define WM8776_IF_ADC384FS (3 << 0) 66 #define WM8776_IF_OVERSAMP64 (1 << 3) 70 #define WM8776_IF_DAC384FS (3 << 4) [all …]
|
| /linux/sound/i2c/other/ |
| H A D | pt2258.c | 24 0x80, 0x90, /* channel 1: -10dB, -1dB */ 25 0x40, 0x50, /* channel 2: -10dB, -1dB */ 26 0x00, 0x10, /* channel 3: -10dB, -1dB */ 27 0x20, 0x30, /* channel 4: -10dB, -1dB */ 28 0x60, 0x70, /* channel 5: -10dB, -1dB */ 29 0xa0, 0xb0 /* channel 6: -10dB, -1dB */ 52 /* set all channels to 0dB */ in snd_pt2258_reset() 117 bytes[1] = pt2258_channel_code[2 * base + 3] | (val1 % 10); in pt2258_stereo_volume_put() 173 char *names[3] = { in snd_pt2258_build_controls() 180 for (i = 0; i < 3; ++i) { in snd_pt2258_build_controls()
|
| /linux/security/integrity/platform_certs/ |
| H A D | load_uefi.c | 17 * On T2 Macs reading the db and dbx efi variables to load UEFI Secure Boot 25 { UEFI_QUIRK_SKIP_CERT("Apple Inc.", "MacBookPro15,3") }, 29 { UEFI_QUIRK_SKIP_CERT("Apple Inc.", "MacBookPro16,3") }, 47 * the certs/hashes in the UEFI db variable for verification purposes. If it 48 * is set, we should ignore the db variable also and the true return indicates 54 unsigned int db = 0; in uefi_check_ignore_db() local 55 unsigned long size = sizeof(db); in uefi_check_ignore_db() 58 status = efi.get_variable(L"MokIgnoreDB", &guid, NULL, &size, &db); in uefi_check_ignore_db() 70 void *db; in get_cert_list() local 81 db in get_cert_list() 164 void *db = NULL, *dbx = NULL, *mokx = NULL; load_uefi_certs() local [all...] |
| H A D | load_powerpc.c | 18 #define extract_esl(db, data, size, offset) \ argument 19 do { db = data + offset; size = size - offset; } while (0) 32 void *db; in get_cert_list() local 41 db = kmalloc(*size, GFP_KERNEL); in get_cert_list() 42 if (!db) in get_cert_list() 45 rc = secvar_ops->get(key, keylen, db, size); in get_cert_list() 47 kfree(db); in get_cert_list() 51 return db; in get_cert_list() 61 void *db = NULL, *dbx = NULL, *data = NULL; in load_powerpc_certs() local 89 * Get db, and dbx. They might not exist, so it isn't an error if we in load_powerpc_certs() [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
| H A D | dm.c | 16 0x7f8001fe, /* 0, +6.0dB */ 17 0x788001e2, /* 1, +5.5dB */ 18 0x71c001c7, /* 2, +5.0dB */ 19 0x6b8001ae, /* 3, +4.5dB */ 20 0x65400195, /* 4, +4.0dB */ 21 0x5fc0017f, /* 5, +3.5dB */ 22 0x5a400169, /* 6, +3.0dB */ 23 0x55400155, /* 7, +2.5dB */ 24 0x50800142, /* 8, +2.0dB */ 25 0x4c000130, /* 9, +1.5dB */ [all …]
|
| /linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A D | nfp_hwinfo.c | 65 * been strcmp(3) sorted (yes, please use bsearch(3) on the table). 129 hwinfo_db_validate(struct nfp_cpp *cpp, struct nfp_hwinfo *db, u32 len) in hwinfo_db_validate() argument 133 size = le32_to_cpu(db->size); in hwinfo_db_validate() 140 crc = crc32_posix(db, size); in hwinfo_db_validate() 141 if (crc != get_unaligned_le32(db->start + size)) { in hwinfo_db_validate() 143 crc, get_unaligned_le32(db->start + size)); in hwinfo_db_validate() 148 return hwinfo_db_walk(cpp, db, size); in hwinfo_db_validate() 159 u8 *db; in hwinfo_try_fetch() local 181 db = kmalloc(*cpp_size + 1, GFP_KERNEL); in hwinfo_try_fetch() 182 if (!db) in hwinfo_try_fetch() [all …]
|
| /linux/drivers/iio/amplifiers/ |
| H A D | hmc425a.c | 29 * Except for the shutdown value, all can be converted to dB using 20 * log10(x) 31 * with the correspondent of 6.020dB. 102 /* Bit [0-3]: 2dB 4dB 8dB 8dB */ in adrf5740_gain_dB_to_code() 103 *code = temp & BIT(3) ? temp | BIT(2) : temp; in adrf5740_gain_dB_to_code() 109 *code = ~(DIV_ROUND_CLOSEST(gain, LTC6373_CONVERSION_CONSTANT) + 3) in ltc6373_gain_dB_to_code() 138 * Bit [0-3]: 2dB 4dB 8dB 8dB in adrf5740_code_to_gain_dB() 139 * When BIT(3) is set, unset BIT(2) and use 3 as double the place value in adrf5740_code_to_gain_dB() 141 code = code & BIT(3) ? code & ~BIT(2) : code; in adrf5740_code_to_gain_dB() 149 int gain = ((~code & LTC6373_CONVERSION_MASK) - 3) * in ltc6373_code_to_gain_dB() 311 .default_gain = -0x40, /* set default gain -31.5db*/ [all …]
|
| /linux/tools/perf/scripts/python/ |
| H A D | task-analyzer.py | 189 global db 190 db = dict() 191 db["running"] = dict() 192 db["cpu"] = dict() 193 db["tid"] = dict() 194 db["global"] = [] 196 db["task_info"] = dict() 197 db["runtime_info"] = dict() 199 db["task_info"]["pid"] = len("PID") 200 db["task_info"]["tid"] = len("TID") [all …]
|
| /linux/drivers/net/ethernet/tehuti/ |
| H A D | tehuti.c | 30 * skb db - used to keep track of all skbs owned by SW and their dma addresses. 33 * skb db. Implemented as array with bitmask. 35 * usage and skb db. Each RXD and RXF Fifo has its own fifo structure. 140 * @fsz_type: fifo size type: 0-4KB, 1-8KB, 2-16KB, 3-32KB 375 val = (ndev->dev_addr[2] << 8) | (ndev->dev_addr[3]); in bdx_restore_mac() 508 /* 3. disable port */ in bdx_sw_reset() 644 u32 data[3]; in bdx_siocdevprivate() 842 u16 macAddress[3], i; in bdx_read_mac() 852 for (i = 0; i < 3; i++) { in bdx_read_mac() 914 * Rx DB * [all …]
|
| H A D | tn40.c | 73 struct tn40_rxdb *db; in tn40_rxdb_alloc() local 76 db = vzalloc(size); in tn40_rxdb_alloc() 77 if (db) { in tn40_rxdb_alloc() 78 db->stack = (int *)(db + 1); in tn40_rxdb_alloc() 79 db->elems = (void *)(db->stack + nelem); in tn40_rxdb_alloc() 80 db->nelem = nelem; in tn40_rxdb_alloc() 81 db->top = nelem; in tn40_rxdb_alloc() 82 /* make the first alloc close to db struct */ in tn40_rxdb_alloc() 84 db->stack[i] = nelem - i - 1; in tn40_rxdb_alloc() 86 return db; in tn40_rxdb_alloc() [all …]
|
| /linux/drivers/net/wireless/ath/ath5k/ |
| H A D | eeprom.h | 53 #define AR5K_EEPROM_VERSION_3_1 0x3001 /* ob/db values for 2GHz (ar5211_rfregs) */ 78 #define AR5K_EEPROM_HDR_T_2GHZ_DIS(_v) (((_v) >> 3) & 0x1) /* Disable turbo for 2GHz */ 80 #define AR5K_EEPROM_HDR_DEVICE(_v) (((_v) >> 11) & 0x7) /* Device type (1 Cardbus, 2 PCI, 3 MiniPCI… 121 #define AR5K_EEPROM_BURST_DIS(_v) (((_v) >> 3) & 0x1) /* disable bursting */ 128 #define AR5K_EEPROM_RX_CHAIN_DIS (((_v) >> 3) & 0x7) /* MIMO chains disabled for RX bitmask */ 183 #define AR5K_EEPROM_N_MODES 3 186 #define AR5K_EEPROM_N_2GHZ_CHAN 3 211 #define AR5K_EEPROM_N_XPD3_POINTS 3 263 AR5K_CTL_TURBO = 3, 288 * for lower (0) and higher (3) [all …]
|