| /linux/sound/aoa/codecs/ | 
| H A D | tas-gain-table.h | 13   printf(" *      hwvalue = 1048576.0*exp(0.057564628*dB*2)\n");16   printf("	0x000000, /" "* -infinity dB *" "/\n");
 18     printf("	0x%.6x, /" "* %-02.1f dB *" "/\n", (int)(1048576.0*exp(0.057564628*dB2)), dB2/2.0);
 28  *      hwvalue = 1048576.0*exp(0.057564628*dB*2)
 31 	0x000000, /* -infinity dB */
 32 	0x00014b, /* -70.0 dB */
 33 	0x00015f, /* -69.5 dB */
 34 	0x000174, /* -69.0 dB */
 35 	0x00018a, /* -68.5 dB */
 36 	0x0001a1, /* -68.0 dB */
 [all …]
 
 | 
| /linux/sound/pci/vx222/ | 
| H A D | vx222_ops.c | 514     0x7f,       // [000] =  +0.000 dB  ->  AKM(0x7f) =  +0.000 dB  error(+0.000 dB)515     0x7d,       // [001] =  -0.500 dB  ->  AKM(0x7d) =  -0.572 dB  error(-0.072 dB)
 516     0x7c,       // [002] =  -1.000 dB  ->  AKM(0x7c) =  -0.873 dB  error(+0.127 dB)
 517     0x7a,       // [003] =  -1.500 dB
 [all...]
 | 
| /linux/include/sound/ | 
| H A D | tas2563-tlv.h | 20 /* pow(10, db/20) * pow(2,30) */22 	{ 0X00, 0X00, 0X00, 0X00 }, /* -121.5db */
 23 	{ 0X00, 0X00, 0X03, 0XBC }, /* -121.0db */
 24 	{ 0X00, 0X00, 0X03, 0XF5 }, /* -120.5db */
 25 	{ 0X00, 0X00, 0X04, 0X31 }, /* -120.0db */
 26 	{ 0X00, 0X00, 0X04, 0X71 }, /* -119.5db */
 27 	{ 0X00, 0X00, 0X04, 0XB4 }, /* -119.0db */
 28 	{ 0X00, 0X00, 0X04, 0XFC }, /* -118.5db */
 29 	{ 0X00, 0X00, 0X05, 0X47 }, /* -118.0db */
 30 	{ 0X00, 0X00, 0X05, 0X97 }, /* -117.5db */
 [all …]
 
 | 
| /linux/drivers/net/ethernet/davicom/ | 
| 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()  argument123 	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 …]
 
 | 
| H A D | dm9000.c | 141 #define dm9000_dbg(db, lev, msg...) do {		\  argument143 		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 …]
 
 | 
| /linux/sound/pci/pcxhr/ | 
| H A D | pcxhr_mix22.c | 103     0x00,   /* [000] -49.5 dB:	AKM[000] = -1.#INF dB	(mute) */104     0x01,   /* [001] -49.0 dB:	AKM[001] = -48.131 dB	(diff=0.86920 dB) */
 105     0x01,   /* [002] -48.5 dB:	AKM[001] = -48.131 dB	(diff=0.36920 dB) */
 106     0x01,   /* [003] -48.0 dB:	AKM[001] = -48.131 dB	(dif
 [all...]
 | 
| /linux/sound/pci/mixart/ | 
| H A D | mixart_mixer.c | 24 	0xc2c00000,		/* [000] -96.0 dB */25 	0xc2bf0000,		/* [001] -95.5 dB */
 26 	0xc2be0000,		/* [002] -95.0 dB */
 27 	0xc2bd0000,		/* [003] -94.5 dB */
 28 	0xc2bc0000,		/* [004] -94.0 dB */
 29 	0xc2bb0000,		/* [005] -93.5 dB */
 30 	0xc2ba0000,		/* [006] -93.0 dB */
 31 	0xc2b90000,		/* [007] -92.5 dB */
 32 	0xc2b80000,		/* [008] -92.0 dB */
 33 	0xc2b70000,		/* [009] -91.5 dB */
 [all...]
 | 
| /linux/drivers/net/ethernet/dec/tulip/ | 
| H A D | dmfe.c | 354 	struct dmfe_board_info *db;	/* board information structure */  in dmfe_init_one()  local378 	dev = alloc_etherdev(sizeof(*db));  in dmfe_init_one()
 422 	db = netdev_priv(dev);  in dmfe_init_one()
 425 	db->desc_pool_ptr = dma_alloc_coherent(&pdev->dev,  in dmfe_init_one()
 427 					       &db->desc_pool_dma_ptr, GFP_KERNEL);  in dmfe_init_one()
 428 	if (!db->desc_pool_ptr) {  in dmfe_init_one()
 433 	db->buf_pool_ptr = dma_alloc_coherent(&pdev->dev,  in dmfe_init_one()
 435 					      &db->buf_pool_dma_ptr, GFP_KERNEL);  in dmfe_init_one()
 436 	if (!db->buf_pool_ptr) {  in dmfe_init_one()
 441 	db->first_tx_desc = (struct tx_desc *) db->desc_pool_ptr;  in dmfe_init_one()
 [all …]
 
 | 
| H A D | uli526x.c | 226 static void phy_write_1bit(struct uli526x_board_info *db, u32);227 static u16 phy_read_1bit(struct uli526x_board_info *db);
 239 static void srom_clk_write(struct uli526x_board_info *db, u32 data)  in srom_clk_write()  argument
 241 	void __iomem *ioaddr = db->ioaddr;  in srom_clk_write()
 272 	struct uli526x_board_info *db;	/* board information structure */  in uli526x_init_one()  local
 281 	dev = alloc_etherdev(sizeof(*db));  in uli526x_init_one()
 316 	db = netdev_priv(dev);  in uli526x_init_one()
 321 	db->desc_pool_ptr = dma_alloc_coherent(&pdev->dev,  in uli526x_init_one()
 323 					       &db->desc_pool_dma_ptr, GFP_KERNEL);  in uli526x_init_one()
 324 	if (!db->desc_pool_ptr)  in uli526x_init_one()
 [all …]
 
 | 
| /linux/sound/soc/codecs/ | 
| H A D | es83xx-dsm-common.h | 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 */
 167 #define LINEIN_GAIN_24db			0x08 /* gain = +24db */
 168 #define LINEIN_GAIN_27db			0x09 /* gain = +27db */
 [all …]
 
 | 
| /linux/drivers/infiniband/hw/hns/ | 
| H A D | hns_roce_db.c | 11 			 struct hns_roce_db *db)  in hns_roce_db_map_user()  argument44 	db->dma = sg_dma_address(page->umem->sgt_append.sgt.sgl) + offset;  in hns_roce_db_map_user()
 45 	db->virt_addr = sg_virt(page->umem->sgt_append.sgt.sgl) + offset;  in hns_roce_db_map_user()
 46 	db->u.user_page = page;  in hns_roce_db_map_user()
 56 			    struct hns_roce_db *db)  in hns_roce_db_unmap_user()  argument
 60 	refcount_dec(&db->u.user_page->refcount);  in hns_roce_db_unmap_user()
 61 	if (refcount_dec_if_one(&db->u.user_page->refcount)) {  in hns_roce_db_unmap_user()
 62 		list_del(&db->u.user_page->list);  in hns_roce_db_unmap_user()
 63 		ib_umem_release(db->u.user_page->umem);  in hns_roce_db_unmap_user()
 64 		kfree(db->u.user_page);  in hns_roce_db_unmap_user()
 [all …]
 
 | 
| /linux/net/dsa/ | 
| H A D | trace.h | 21 void dsa_db_print(const struct dsa_db *db, char buf[DSA_DB_BUFSIZ]);27 		 const struct dsa_db *db, int err),
 29 	TP_ARGS(dp, addr, vid, db, err),
 47 		dsa_db_print(db, __entry->db_buf);
 51 	TP_printk("%s %s port %d addr %pM vid %u db \"%s\" err %d",
 62 		      u16 vid, const struct dsa_db *db, int err),
 63 	     TP_ARGS(dp, addr, vid, db, err));
 67 		      u16 vid, const struct dsa_db *db, int err),
 68 	     TP_ARGS(dp, addr, vid, db, err));
 75 		      u16 vid, const struct dsa_db *db, in
 [all...]
 | 
| H A D | switch.c | 146 					      struct dsa_db db)  in dsa_mac_addr_find()  argument152 		    dsa_db_equal(&a->db, &db))  in dsa_mac_addr_find()
 160 			       struct dsa_db db)  in dsa_port_do_mdb_add()  argument
 169 		err = ds->ops->port_mdb_add(ds, port, mdb, db);  in dsa_port_do_mdb_add()
 170 		trace_dsa_mdb_add_hw(dp, mdb->addr, mdb->vid, &db, err);  in dsa_port_do_mdb_add()
 177 	a = dsa_mac_addr_find(&dp->mdbs, mdb->addr, mdb->vid, db);  in dsa_port_do_mdb_add()
 180 		trace_dsa_mdb_add_bump(dp, mdb->addr, mdb->vid, &db,  in dsa_port_do_mdb_add()
 191 	err = ds->ops->port_mdb_add(ds, port, mdb, db);  in dsa_port_do_mdb_add()
 192 	trace_dsa_mdb_add_hw(dp, mdb->addr, mdb->vid, &db, err);  in dsa_port_do_mdb_add()
 200 	a->db = db;  in dsa_port_do_mdb_add()
 [all …]
 
 | 
| /linux/arch/powerpc/platforms/ps3/ | 
| H A D | os-area.c | 110 #define OS_AREA_DB_MAGIC_NUM "-db-"114  * @magic_num: Always '-db-'.
 371 static int db_verify(const struct os_area_db *db)  in db_verify()  argument
 373 	if (memcmp(db->magic_num, OS_AREA_DB_MAGIC_NUM,  in db_verify()
 374 		sizeof(db->magic_num))) {  in db_verify()
 379 	if (db->version != 1) {  in db_verify()
 393 	const struct os_area_db *db;  member
 416 static int db_for_each_64(const struct os_area_db *db,  in db_for_each_64()  argument
 420 	if (!i->db) {  in db_for_each_64()
 421 		i->db = db;  in db_for_each_64()
 [all …]
 
 | 
| /linux/tools/perf/scripts/python/ | 
| H A D | task-analyzer.py | 189     global db190     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/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/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/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 Boot47  * 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 = kmalloc(lsize, GFP_KERNEL);  in get_cert_list()
 82 	if (!db)  in get_cert_list()
 85 	*status = efi.get_variable(name, guid, NULL, &lsize, db);  in get_cert_list()
 [all …]
 
 | 
| H A D | load_powerpc.c | 18 #define extract_esl(db, data, size, offset)	\  argument19 	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/ethernet/mellanox/mlx5/core/ | 
| H A D | wq.c | 46 	err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node);  in mlx5_wq_cyc_create()52 	wq->db  = wq_ctrl->db.db;  in mlx5_wq_cyc_create()
 69 	mlx5_db_free(mdev, &wq_ctrl->db);  in mlx5_wq_cyc_create()
 113 	err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node);  in mlx5_wq_qp_create()
 146 	wq->rq.db  = &wq_ctrl->db.db[MLX5_RCV_DBR];  in mlx5_wq_qp_create()
 147 	wq->sq.db  = &wq_ctrl->db.db[MLX5_SND_DBR];  in mlx5_wq_qp_create()
 154 	mlx5_db_free(mdev, &wq_ctrl->db);  in mlx5_wq_qp_create()
 168 	err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node);  in mlx5_cqwq_create()
 174 	wq->db  = wq_ctrl->db.db;  in mlx5_cqwq_create()
 192 	mlx5_db_free(mdev, &wq_ctrl->db);  in mlx5_cqwq_create()
 [all …]
 
 | 
| H A D | alloc.c | 163 				    struct mlx5_db *db)  in mlx5_alloc_db_from_pgdir()  argument175 	db->u.pgdir = pgdir;  in mlx5_alloc_db_from_pgdir()
 176 	db->index   = i;  in mlx5_alloc_db_from_pgdir()
 177 	offset = db->index * cache_line_size();  in mlx5_alloc_db_from_pgdir()
 178 	db->db      = pgdir->db_page + offset / sizeof(*pgdir->db_page);  in mlx5_alloc_db_from_pgdir()
 179 	db->dma     = pgdir->db_dma  + offset;  in mlx5_alloc_db_from_pgdir()
 181 	db->db[0] = 0;  in mlx5_alloc_db_from_pgdir()
 182 	db->db[1] = 0;  in mlx5_alloc_db_from_pgdir()
 187 int mlx5_db_alloc_node(struct mlx5_core_dev *dev, struct mlx5_db *db, int node)  in mlx5_db_alloc_node()  argument
 195 		if (!mlx5_alloc_db_from_pgdir(pgdir, db))  in mlx5_db_alloc_node()
 [all …]
 
 | 
| /linux/drivers/net/ethernet/netronome/nfp/nfpcore/ | 
| H A D | nfp_hwinfo.c | 129 hwinfo_db_validate(struct nfp_cpp *cpp, struct nfp_hwinfo *db, u32 len)  in hwinfo_db_validate()  argument133 	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()
 185 	err = nfp_cpp_read(cpp, cpp_id, cpp_addr, db, *cpp_size);  in hwinfo_try_fetch()
 [all …]
 
 | 
| /linux/drivers/media/i2c/ | 
| H A D | tda7432.c | 23  * maxvol   - set maximum volume to +20db (1), default is 0db(0)57 MODULE_PARM_DESC(maxvol, "Set maximum volume to +20dB(0) else +0dB(1). Default is +20dB(0).");
 138 /* Lower 7 bits control volume from -79dB to +32dB in 1dB steps
 139  * Recommended maximum is +20 dB
 141  * +32dB: 0x00
 142  * +20dB: 0x0c
 143  *   0dB: 0x20
 144  * -79dB: 0x6f
 155 /* Bits 0,1,2 control absolute treble gain from 0dB to 14dB
 156  * 0x0 is 14dB, 0x7 is 0dB
 [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 …]
 
 | 
| /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 */
 235 {   73, 15}, {   41, 14}, {   23, 13}, {   13, 12}, /* -53 ~ -50 dB */
 236 {   29, 13}, {   65, 14}, {   73, 14}, {   41, 13}, /* -49 ~ -46 dB */
 237 {   23, 12}, {  207, 15}, {   29, 12}, {   65, 13}, /* -45 ~ -42 dB */
 [all …]
 
 |