| /kernel/linux/linux-4.19/sound/aoa/codecs/ |
| 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 …]
|
| /kernel/linux/linux-5.10/sound/aoa/codecs/ |
| 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 …]
|
| /kernel/linux/linux-5.10/sound/pci/vx222/ |
| D | vx222_ops.c | 512 0x7f, // [000] = +0.000 dB -> AKM(0x7f) = +0.000 dB error(+0.000 dB) 513 0x7d, // [001] = -0.500 dB -> AKM(0x7d) = -0.572 dB error(-0.072 dB) 514 0x7c, // [002] = -1.000 dB -> AKM(0x7c) = -0.873 dB error(+0.127 dB) 515 0x7a, // [003] = -1.500 dB -> AKM(0x7a) = -1.508 dB error(-0.008 dB) 516 0x79, // [004] = -2.000 dB -> AKM(0x79) = -1.844 dB error(+0.156 dB) 517 0x77, // [005] = -2.500 dB -> AKM(0x77) = -2.557 dB error(-0.057 dB) 518 0x76, // [006] = -3.000 dB -> AKM(0x76) = -2.937 dB error(+0.063 dB) 519 0x75, // [007] = -3.500 dB -> AKM(0x75) = -3.334 dB error(+0.166 dB) 520 0x73, // [008] = -4.000 dB -> AKM(0x73) = -4.188 dB error(-0.188 dB) 521 0x72, // [009] = -4.500 dB -> AKM(0x72) = -4.648 dB error(-0.148 dB) [all …]
|
| /kernel/linux/linux-4.19/sound/pci/vx222/ |
| D | vx222_ops.c | 525 0x7f, // [000] = +0.000 dB -> AKM(0x7f) = +0.000 dB error(+0.000 dB) 526 0x7d, // [001] = -0.500 dB -> AKM(0x7d) = -0.572 dB error(-0.072 dB) 527 0x7c, // [002] = -1.000 dB -> AKM(0x7c) = -0.873 dB error(+0.127 dB) 528 0x7a, // [003] = -1.500 dB -> AKM(0x7a) = -1.508 dB error(-0.008 dB) 529 0x79, // [004] = -2.000 dB -> AKM(0x79) = -1.844 dB error(+0.156 dB) 530 0x77, // [005] = -2.500 dB -> AKM(0x77) = -2.557 dB error(-0.057 dB) 531 0x76, // [006] = -3.000 dB -> AKM(0x76) = -2.937 dB error(+0.063 dB) 532 0x75, // [007] = -3.500 dB -> AKM(0x75) = -3.334 dB error(+0.166 dB) 533 0x73, // [008] = -4.000 dB -> AKM(0x73) = -4.188 dB error(-0.188 dB) 534 0x72, // [009] = -4.500 dB -> AKM(0x72) = -4.648 dB error(-0.148 dB) [all …]
|
| /kernel/linux/linux-5.10/sound/pci/pcxhr/ |
| 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 (diff=0.13080 dB) */ 107 0x01, /* [004] -47.5 dB: AKM[001] = -48.131 dB (diff=0.63080 dB) */ 108 0x01, /* [005] -46.5 dB: AKM[001] = -48.131 dB (diff=1.63080 dB) */ 109 0x01, /* [006] -47.0 dB: AKM[001] = -48.131 dB (diff=1.13080 dB) */ 110 0x01, /* [007] -46.0 dB: AKM[001] = -48.131 dB (diff=2.13080 dB) */ 111 0x01, /* [008] -45.5 dB: AKM[001] = -48.131 dB (diff=2.63080 dB) */ 112 0x02, /* [009] -45.0 dB: AKM[002] = -42.110 dB (diff=2.88980 dB) */ [all …]
|
| /kernel/linux/linux-4.19/sound/pci/pcxhr/ |
| D | pcxhr_mix22.c | 116 0x00, /* [000] -49.5 dB: AKM[000] = -1.#INF dB (mute) */ 117 0x01, /* [001] -49.0 dB: AKM[001] = -48.131 dB (diff=0.86920 dB) */ 118 0x01, /* [002] -48.5 dB: AKM[001] = -48.131 dB (diff=0.36920 dB) */ 119 0x01, /* [003] -48.0 dB: AKM[001] = -48.131 dB (diff=0.13080 dB) */ 120 0x01, /* [004] -47.5 dB: AKM[001] = -48.131 dB (diff=0.63080 dB) */ 121 0x01, /* [005] -46.5 dB: AKM[001] = -48.131 dB (diff=1.63080 dB) */ 122 0x01, /* [006] -47.0 dB: AKM[001] = -48.131 dB (diff=1.13080 dB) */ 123 0x01, /* [007] -46.0 dB: AKM[001] = -48.131 dB (diff=2.13080 dB) */ 124 0x01, /* [008] -45.5 dB: AKM[001] = -48.131 dB (diff=2.63080 dB) */ 125 0x02, /* [009] -45.0 dB: AKM[002] = -42.110 dB (diff=2.88980 dB) */ [all …]
|
| /kernel/linux/linux-4.19/sound/pci/mixart/ |
| D | mixart_mixer.c | 37 0xc2c00000, /* [000] -96.0 dB */ 38 0xc2bf0000, /* [001] -95.5 dB */ 39 0xc2be0000, /* [002] -95.0 dB */ 40 0xc2bd0000, /* [003] -94.5 dB */ 41 0xc2bc0000, /* [004] -94.0 dB */ 42 0xc2bb0000, /* [005] -93.5 dB */ 43 0xc2ba0000, /* [006] -93.0 dB */ 44 0xc2b90000, /* [007] -92.5 dB */ 45 0xc2b80000, /* [008] -92.0 dB */ 46 0xc2b70000, /* [009] -91.5 dB */ [all …]
|
| /kernel/linux/linux-5.10/sound/pci/mixart/ |
| 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 …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/dec/tulip/ |
| D | dmfe.c | 368 struct dmfe_board_info *db; /* board information structure */ in dmfe_init_one() local 395 dev = alloc_etherdev(sizeof(*db)); in dmfe_init_one() 439 db = netdev_priv(dev); in dmfe_init_one() 442 db->desc_pool_ptr = pci_alloc_consistent(pdev, sizeof(struct tx_desc) * in dmfe_init_one() 443 DESC_ALL_CNT + 0x20, &db->desc_pool_dma_ptr); in dmfe_init_one() 444 if (!db->desc_pool_ptr) { in dmfe_init_one() 449 db->buf_pool_ptr = pci_alloc_consistent(pdev, TX_BUF_ALLOC * in dmfe_init_one() 450 TX_DESC_CNT + 4, &db->buf_pool_dma_ptr); in dmfe_init_one() 451 if (!db->buf_pool_ptr) { in dmfe_init_one() 456 db->first_tx_desc = (struct tx_desc *) db->desc_pool_ptr; in dmfe_init_one() [all …]
|
| D | uli526x.c | 240 static void phy_write_1bit(struct uli526x_board_info *db, u32); 241 static u16 phy_read_1bit(struct uli526x_board_info *db); 253 static void srom_clk_write(struct uli526x_board_info *db, u32 data) in srom_clk_write() argument 255 void __iomem *ioaddr = db->ioaddr; in srom_clk_write() 286 struct uli526x_board_info *db; /* board information structure */ in uli526x_init_one() local 297 dev = alloc_etherdev(sizeof(*db)); in uli526x_init_one() 332 db = netdev_priv(dev); in uli526x_init_one() 337 …db->desc_pool_ptr = pci_alloc_consistent(pdev, sizeof(struct tx_desc) * DESC_ALL_CNT + 0x20, &db->… in uli526x_init_one() 338 if (!db->desc_pool_ptr) in uli526x_init_one() 341 …db->buf_pool_ptr = pci_alloc_consistent(pdev, TX_BUF_ALLOC * TX_DESC_CNT + 4, &db->buf_pool_dma_pt… in uli526x_init_one() [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/davicom/ |
| D | dm9000.c | 150 #define dm9000_dbg(db, lev, msg...) do { \ argument 152 dev_dbg(db->dev, msg); \ 167 ior(struct board_info *db, int reg) in ior() argument 169 writeb(reg, db->io_addr); in ior() 170 return readb(db->io_data); in ior() 178 iow(struct board_info *db, int reg, int value) in iow() argument 180 writeb(reg, db->io_addr); in iow() 181 writeb(value, db->io_data); in iow() 185 dm9000_reset(struct board_info *db) in dm9000_reset() argument 187 dev_dbg(db->dev, "resetting device\n"); in dm9000_reset() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/davicom/ |
| D | dm9000.c | 142 #define dm9000_dbg(db, lev, msg...) do { \ argument 144 dev_dbg(db->dev, msg); \ 159 ior(struct board_info *db, int reg) in ior() argument 161 writeb(reg, db->io_addr); in ior() 162 return readb(db->io_data); in ior() 170 iow(struct board_info *db, int reg, int value) in iow() argument 172 writeb(reg, db->io_addr); in iow() 173 writeb(value, db->io_data); in iow() 177 dm9000_reset(struct board_info *db) in dm9000_reset() argument 179 dev_dbg(db->dev, "resetting device\n"); in dm9000_reset() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/ |
| D | dmfe.c | 354 struct dmfe_board_info *db; /* board information structure */ in dmfe_init_one() local 378 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 …]
|
| 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 280 dev = alloc_etherdev(sizeof(*db)); in uli526x_init_one() 315 db = netdev_priv(dev); in uli526x_init_one() 320 db->desc_pool_ptr = dma_alloc_coherent(&pdev->dev, in uli526x_init_one() 322 &db->desc_pool_dma_ptr, GFP_KERNEL); in uli526x_init_one() 323 if (!db->desc_pool_ptr) in uli526x_init_one() [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/allwinner/ |
| D | sun4i-emac.c | 95 struct emac_board_info *db = netdev_priv(dev); in emac_update_speed() local 99 reg_val = readl(db->membase + EMAC_MAC_SUPP_REG); in emac_update_speed() 101 if (db->speed == SPEED_100) in emac_update_speed() 103 writel(reg_val, db->membase + EMAC_MAC_SUPP_REG); in emac_update_speed() 108 struct emac_board_info *db = netdev_priv(dev); in emac_update_duplex() local 112 reg_val = readl(db->membase + EMAC_MAC_CTL1_REG); in emac_update_duplex() 114 if (db->duplex) in emac_update_duplex() 116 writel(reg_val, db->membase + EMAC_MAC_CTL1_REG); in emac_update_duplex() 121 struct emac_board_info *db = netdev_priv(dev); in emac_handle_link_change() local 127 if (db->speed != phydev->speed) { in emac_handle_link_change() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/allwinner/ |
| D | sun4i-emac.c | 94 struct emac_board_info *db = netdev_priv(dev); in emac_update_speed() local 98 reg_val = readl(db->membase + EMAC_MAC_SUPP_REG); in emac_update_speed() 100 if (db->speed == SPEED_100) in emac_update_speed() 102 writel(reg_val, db->membase + EMAC_MAC_SUPP_REG); in emac_update_speed() 107 struct emac_board_info *db = netdev_priv(dev); in emac_update_duplex() local 111 reg_val = readl(db->membase + EMAC_MAC_CTL1_REG); in emac_update_duplex() 113 if (db->duplex) in emac_update_duplex() 115 writel(reg_val, db->membase + EMAC_MAC_CTL1_REG); in emac_update_duplex() 120 struct emac_board_info *db = netdev_priv(dev); in emac_handle_link_change() local 126 if (db->speed != phydev->speed) { in emac_handle_link_change() [all …]
|
| /kernel/linux/linux-4.19/drivers/staging/rtlwifi/phydm/ |
| D | phydm_powertracking_ce.c | 26 0x7f8001fe, /* 0, +6.0dB */ 27 0x788001e2, /* 1, +5.5dB */ 28 0x71c001c7, /* 2, +5.0dB*/ 29 0x6b8001ae, /* 3, +4.5dB*/ 30 0x65400195, /* 4, +4.0dB*/ 31 0x5fc0017f, /* 5, +3.5dB*/ 32 0x5a400169, /* 6, +3.0dB*/ 33 0x55400155, /* 7, +2.5dB*/ 34 0x50800142, /* 8, +2.0dB*/ 35 0x4c000130, /* 9, +1.5dB*/ [all …]
|
| /kernel/linux/linux-4.19/drivers/isdn/i4l/ |
| D | isdn_bsdcomp.c | 174 static void bsd_clear(struct bsd_db *db) in bsd_clear() argument 176 db->clear_count++; in bsd_clear() 177 db->max_ent = FIRST - 1; in bsd_clear() 178 db->n_bits = BSD_INIT_BITS; in bsd_clear() 179 db->bytes_out = 0; in bsd_clear() 180 db->in_count = 0; in bsd_clear() 181 db->incomp_count = 0; in bsd_clear() 182 db->ratio = 0; in bsd_clear() 183 db->checkpoint = CHECK_GAP; in bsd_clear() 199 static int bsd_check(struct bsd_db *db) /* 1=output CLEAR */ in bsd_check() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ppp/ |
| D | bsd_comp.c | 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() 247 static int bsd_check (struct bsd_db *db) /* 1=output CLEAR */ in bsd_check() argument [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ppp/ |
| D | bsd_comp.c | 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() 247 static int bsd_check (struct bsd_db *db) /* 1=output CLEAR */ in bsd_check() argument [all …]
|
| /kernel/linux/linux-4.19/drivers/staging/rtl8723bs/hal/ |
| D | odm.c | 26 0x7f8001fe, /* 0, +6.0dB */ 27 0x788001e2, /* 1, +5.5dB */ 28 0x71c001c7, /* 2, +5.0dB */ 29 0x6b8001ae, /* 3, +4.5dB */ 30 0x65400195, /* 4, +4.0dB */ 31 0x5fc0017f, /* 5, +3.5dB */ 32 0x5a400169, /* 6, +3.0dB */ 33 0x55400155, /* 7, +2.5dB */ 34 0x50800142, /* 8, +2.0dB */ 35 0x4c000130, /* 9, +1.5dB */ [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/rtl8723bs/hal/ |
| D | odm.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 …]
|
| /kernel/linux/linux-4.19/drivers/infiniband/hw/hns/ |
| D | hns_roce_db.c | 12 struct hns_roce_db *db) in hns_roce_db_map_user() argument 42 db->dma = sg_dma_address(page->umem->sg_head.sgl) + in hns_roce_db_map_user() 45 db->virt_addr = sg_virt(page->umem->sg_head.sgl); in hns_roce_db_map_user() 46 db->u.user_page = page; in hns_roce_db_map_user() 57 struct hns_roce_db *db) in hns_roce_db_unmap_user() argument 61 refcount_dec(&db->u.user_page->refcount); in hns_roce_db_unmap_user() 62 if (refcount_dec_if_one(&db->u.user_page->refcount)) { in hns_roce_db_unmap_user() 63 list_del(&db->u.user_page->list); in hns_roce_db_unmap_user() 64 ib_umem_release(db->u.user_page->umem); in hns_roce_db_unmap_user() 65 kfree(db->u.user_page); in hns_roce_db_unmap_user() [all …]
|
| /kernel/linux/linux-5.10/drivers/infiniband/hw/hns/ |
| D | hns_roce_db.c | 13 struct hns_roce_db *db) in hns_roce_db_map_user() argument 46 db->dma = sg_dma_address(page->umem->sg_head.sgl) + offset; in hns_roce_db_map_user() 47 db->virt_addr = sg_virt(page->umem->sg_head.sgl) + offset; in hns_roce_db_map_user() 48 db->u.user_page = page; in hns_roce_db_map_user() 58 struct hns_roce_db *db) in hns_roce_db_unmap_user() argument 62 refcount_dec(&db->u.user_page->refcount); in hns_roce_db_unmap_user() 63 if (refcount_dec_if_one(&db->u.user_page->refcount)) { in hns_roce_db_unmap_user() 64 list_del(&db->u.user_page->list); in hns_roce_db_unmap_user() 65 ib_umem_release(db->u.user_page->umem); in hns_roce_db_unmap_user() 66 kfree(db->u.user_page); in hns_roce_db_unmap_user() [all …]
|
| /kernel/linux/linux-4.19/drivers/mailbox/ |
| D | tegra-hsp.c | 112 static bool tegra_hsp_doorbell_can_ring(struct tegra_hsp_doorbell *db) in tegra_hsp_doorbell_can_ring() argument 116 value = tegra_hsp_channel_readl(&db->channel, HSP_DB_ENABLE); in tegra_hsp_doorbell_can_ring() 136 struct tegra_hsp_doorbell *db; in tegra_hsp_doorbell_get() local 140 db = __tegra_hsp_doorbell_get(hsp, master); in tegra_hsp_doorbell_get() 143 return db; in tegra_hsp_doorbell_get() 149 struct tegra_hsp_doorbell *db; in tegra_hsp_doorbell_irq() local 152 db = tegra_hsp_doorbell_get(hsp, TEGRA_HSP_DB_MASTER_CCPLEX); in tegra_hsp_doorbell_irq() 153 if (!db) in tegra_hsp_doorbell_irq() 156 value = tegra_hsp_channel_readl(&db->channel, HSP_DB_PENDING); in tegra_hsp_doorbell_irq() 157 tegra_hsp_channel_writel(&db->channel, value, HSP_DB_PENDING); in tegra_hsp_doorbell_irq() [all …]
|