/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-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/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-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-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-5.10/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_hwinfo.c | 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() 185 err = nfp_cpp_read(cpp, cpp_id, cpp_addr, db, *cpp_size); in hwinfo_try_fetch() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/ps3/ |
D | os-area.c | 373 static int db_verify(const struct os_area_db *db) in db_verify() argument 375 if (memcmp(db->magic_num, OS_AREA_DB_MAGIC_NUM, in db_verify() 376 sizeof(db->magic_num))) { in db_verify() 381 if (db->version != 1) { in db_verify() 395 const struct os_area_db *db; member 418 static int db_for_each_64(const struct os_area_db *db, in db_for_each_64() argument 422 if (!i->db) { in db_for_each_64() 423 i->db = db; in db_for_each_64() 425 i->idx = (void *)db + db->index_64; in db_for_each_64() 426 i->last_idx = i->idx + db->count_64; in db_for_each_64() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | wq.c | 51 err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node); in mlx5_wq_cyc_create() 57 wq->db = wq_ctrl->db.db; in mlx5_wq_cyc_create() 74 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_wq_cyc_create() 118 err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node); in mlx5_wq_qp_create() 151 wq->rq.db = &wq_ctrl->db.db[MLX5_RCV_DBR]; in mlx5_wq_qp_create() 152 wq->sq.db = &wq_ctrl->db.db[MLX5_SND_DBR]; in mlx5_wq_qp_create() 159 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_wq_qp_create() 173 err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node); in mlx5_cqwq_create() 179 wq->db = wq_ctrl->db.db; in mlx5_cqwq_create() 197 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_cqwq_create() [all …]
|
D | alloc.c | 210 struct mlx5_db *db) in mlx5_alloc_db_from_pgdir() argument 222 db->u.pgdir = pgdir; in mlx5_alloc_db_from_pgdir() 223 db->index = i; in mlx5_alloc_db_from_pgdir() 224 offset = db->index * cache_line_size(); in mlx5_alloc_db_from_pgdir() 225 db->db = pgdir->db_page + offset / sizeof(*pgdir->db_page); in mlx5_alloc_db_from_pgdir() 226 db->dma = pgdir->db_dma + offset; in mlx5_alloc_db_from_pgdir() 228 db->db[0] = 0; in mlx5_alloc_db_from_pgdir() 229 db->db[1] = 0; in mlx5_alloc_db_from_pgdir() 234 int mlx5_db_alloc_node(struct mlx5_core_dev *dev, struct mlx5_db *db, int node) in mlx5_db_alloc_node() argument 242 if (!mlx5_alloc_db_from_pgdir(pgdir, db)) in mlx5_db_alloc_node() [all …]
|
/kernel/linux/linux-5.10/security/integrity/platform_certs/ |
D | load_powerpc.c | 24 void *db; in get_cert_list() local 32 db = kmalloc(*size, GFP_KERNEL); in get_cert_list() 33 if (!db) in get_cert_list() 36 rc = secvar_ops->get(key, keylen, db, size); in get_cert_list() 38 kfree(db); in get_cert_list() 43 return db; in get_cert_list() 53 void *db = NULL, *dbx = NULL; in load_powerpc_certs() local 70 db = get_cert_list("db", 3, &dbsize); in load_powerpc_certs() 71 if (!db) { in load_powerpc_certs() 74 rc = parse_efi_signature_list("powerpc:db", db, dbsize, in load_powerpc_certs() [all …]
|
D | load_uefi.c | 26 unsigned int db = 0; in uefi_check_ignore_db() local 27 unsigned long size = sizeof(db); in uefi_check_ignore_db() 30 status = efi.get_variable(L"MokIgnoreDB", &guid, NULL, &size, &db); in uefi_check_ignore_db() 42 void *db; in get_cert_list() local 53 db = kmalloc(lsize, GFP_KERNEL); in get_cert_list() 54 if (!db) in get_cert_list() 57 *status = efi.get_variable(name, guid, NULL, &lsize, db); in get_cert_list() 59 kfree(db); in get_cert_list() 65 return db; in get_cert_list() 136 void *db = NULL, *dbx = NULL, *mokx = NULL; in load_uefi_certs() local [all …]
|
/kernel/linux/linux-5.10/lib/ |
D | debugobjects.c | 462 struct debug_bucket *db = obj_hash; in debug_objects_oom() local 471 for (i = 0; i < ODEBUG_HASH_SIZE; i++, db++) { in debug_objects_oom() 472 raw_spin_lock_irqsave(&db->lock, flags); in debug_objects_oom() 473 hlist_move_list(&db->list, &freelist); in debug_objects_oom() 474 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_objects_oom() 556 struct debug_bucket *db; in __debug_object_init() local 562 db = get_bucket((unsigned long) addr); in __debug_object_init() 564 raw_spin_lock_irqsave(&db->lock, flags); in __debug_object_init() 566 obj = lookup_object(addr, db); in __debug_object_init() 568 obj = alloc_object(addr, db, descr); in __debug_object_init() [all …]
|
/kernel/linux/linux-5.10/drivers/mailbox/ |
D | tegra-hsp.c | 132 static bool tegra_hsp_doorbell_can_ring(struct tegra_hsp_doorbell *db) in tegra_hsp_doorbell_can_ring() argument 136 value = tegra_hsp_channel_readl(&db->channel, HSP_DB_ENABLE); in tegra_hsp_doorbell_can_ring() 156 struct tegra_hsp_doorbell *db; in tegra_hsp_doorbell_get() local 160 db = __tegra_hsp_doorbell_get(hsp, master); in tegra_hsp_doorbell_get() 163 return db; in tegra_hsp_doorbell_get() 169 struct tegra_hsp_doorbell *db; in tegra_hsp_doorbell_irq() local 172 db = tegra_hsp_doorbell_get(hsp, TEGRA_HSP_DB_MASTER_CCPLEX); in tegra_hsp_doorbell_irq() 173 if (!db) in tegra_hsp_doorbell_irq() 176 value = tegra_hsp_channel_readl(&db->channel, HSP_DB_PENDING); in tegra_hsp_doorbell_irq() 177 tegra_hsp_channel_writel(&db->channel, value, HSP_DB_PENDING); in tegra_hsp_doorbell_irq() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/tehuti/ |
D | tehuti.c | 923 static void bdx_rxdb_destroy(struct rxdb *db) in bdx_rxdb_destroy() argument 925 vfree(db); in bdx_rxdb_destroy() 930 struct rxdb *db; in bdx_rxdb_create() local 933 db = vmalloc(sizeof(struct rxdb) in bdx_rxdb_create() 936 if (likely(db != NULL)) { in bdx_rxdb_create() 937 db->stack = (int *)(db + 1); in bdx_rxdb_create() 938 db->elems = (void *)(db->stack + nelem); in bdx_rxdb_create() 939 db->nelem = nelem; in bdx_rxdb_create() 940 db->top = nelem; in bdx_rxdb_create() 942 db->stack[i] = nelem - i - 1; /* to make first allocs in bdx_rxdb_create() [all …]
|
/kernel/linux/linux-5.10/tools/perf/scripts/python/ |
D | export-to-sqlite.py | 156 db = QSqlDatabase.addDatabase('QSQLITE') variable 157 db.setDatabaseName(dbname) 158 db.open() 160 query = QSqlQuery(db) 569 evsel_query = QSqlQuery(db) 571 machine_query = QSqlQuery(db) 573 thread_query = QSqlQuery(db) 575 comm_query = QSqlQuery(db) 577 comm_thread_query = QSqlQuery(db) 579 dso_query = QSqlQuery(db) [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | doorbell.c | 48 struct mlx5_db *db) in mlx5_ib_db_map_user() argument 78 db->dma = sg_dma_address(page->umem->sg_head.sgl) + (virt & ~PAGE_MASK); in mlx5_ib_db_map_user() 79 db->u.user_page = page; in mlx5_ib_db_map_user() 88 void mlx5_ib_db_unmap_user(struct mlx5_ib_ucontext *context, struct mlx5_db *db) in mlx5_ib_db_unmap_user() argument 92 if (!--db->u.user_page->refcnt) { in mlx5_ib_db_unmap_user() 93 list_del(&db->u.user_page->list); in mlx5_ib_db_unmap_user() 94 ib_umem_release(db->u.user_page->umem); in mlx5_ib_db_unmap_user() 95 kfree(db->u.user_page); in mlx5_ib_db_unmap_user()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/ |
D | doorbell.c | 46 struct mlx4_db *db) in mlx4_ib_db_map_user() argument 78 db->dma = sg_dma_address(page->umem->sg_head.sgl) + (virt & ~PAGE_MASK); in mlx4_ib_db_map_user() 79 db->u.user_page = page; in mlx4_ib_db_map_user() 88 void mlx4_ib_db_unmap_user(struct mlx4_ib_ucontext *context, struct mlx4_db *db) in mlx4_ib_db_unmap_user() argument 92 if (!--db->u.user_page->refcnt) { in mlx4_ib_db_unmap_user() 93 list_del(&db->u.user_page->list); in mlx4_ib_db_unmap_user() 94 ib_umem_release(db->u.user_page->umem); in mlx4_ib_db_unmap_user() 95 kfree(db->u.user_page); in mlx4_ib_db_unmap_user()
|
/kernel/linux/linux-5.10/arch/arm64/boot/dts/marvell/ |
D | Makefile | 3 dtb-$(CONFIG_ARCH_MVEBU) += armada-3720-db.dtb 10 dtb-$(CONFIG_ARCH_MVEBU) += armada-7040-db.dtb 12 dtb-$(CONFIG_ARCH_MVEBU) += armada-8040-db.dtb 15 dtb-$(CONFIG_ARCH_MVEBU) += armada-8080-db.dtb 16 dtb-$(CONFIG_ARCH_MVEBU) += cn9130-db.dtb 17 dtb-$(CONFIG_ARCH_MVEBU) += cn9131-db.dtb 18 dtb-$(CONFIG_ARCH_MVEBU) += cn9132-db.dtb
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
D | alloc.c | 685 struct mlx4_db *db, int order) in mlx4_alloc_db_from_pgdir() argument 706 db->u.pgdir = pgdir; in mlx4_alloc_db_from_pgdir() 707 db->index = i; in mlx4_alloc_db_from_pgdir() 708 db->db = pgdir->db_page + db->index; in mlx4_alloc_db_from_pgdir() 709 db->dma = pgdir->db_dma + db->index * 4; in mlx4_alloc_db_from_pgdir() 710 db->order = order; in mlx4_alloc_db_from_pgdir() 715 int mlx4_db_alloc(struct mlx4_dev *dev, struct mlx4_db *db, int order) in mlx4_db_alloc() argument 724 if (!mlx4_alloc_db_from_pgdir(pgdir, db, order)) in mlx4_db_alloc() 736 WARN_ON(mlx4_alloc_db_from_pgdir(pgdir, db, order)); in mlx4_db_alloc() 745 void mlx4_db_free(struct mlx4_dev *dev, struct mlx4_db *db) in mlx4_db_free() argument [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_doorbell.c | 211 void write_kernel_doorbell(void __iomem *db, u32 value) in write_kernel_doorbell() argument 213 if (db) { in write_kernel_doorbell() 214 writel(value, db); in write_kernel_doorbell() 215 pr_debug("Writing %d to doorbell address %p\n", value, db); in write_kernel_doorbell() 219 void write_kernel_doorbell64(void __iomem *db, u64 value) in write_kernel_doorbell64() argument 221 if (db) { in write_kernel_doorbell64() 222 WARN(((unsigned long)db & 7) != 0, in write_kernel_doorbell64() 224 writeq(value, (u64 __iomem *)db); in write_kernel_doorbell64() 225 pr_debug("writing %llu to doorbell address %p\n", value, db); in write_kernel_doorbell64()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_edid.c | 3781 do_cea_modes(struct drm_connector *connector, const u8 *db, u8 len) in do_cea_modes() argument 3789 mode = drm_display_mode_from_vic_index(connector, db, len, i); in do_cea_modes() 3801 drm_add_cmdb_modes(connector, db[i]); in do_cea_modes() 3944 do_hdmi_vsdb_modes(struct drm_connector *connector, const u8 *db, u8 len, in do_hdmi_vsdb_modes() argument 3957 if (!(db[8] & (1 << 5))) in do_hdmi_vsdb_modes() 3961 if (db[8] & (1 << 7)) in do_hdmi_vsdb_modes() 3965 if (db[8] & (1 << 6)) in do_hdmi_vsdb_modes() 3975 if (db[8 + offset] & (1 << 7)) { in do_hdmi_vsdb_modes() 3979 multi_present = (db[8 + offset] & 0x60) >> 5; in do_hdmi_vsdb_modes() 3983 vic_len = db[8 + offset] >> 5; in do_hdmi_vsdb_modes() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/ |
D | mthca_doorbell.h | 65 static inline void mthca_write_db_rec(__be32 val[2], __be32 *db) in mthca_write_db_rec() argument 67 *(u64 *) db = *(u64 *) val; in mthca_write_db_rec() 102 static inline void mthca_write_db_rec(__be32 val[2], __be32 *db) in mthca_write_db_rec() argument 104 db[0] = val[0]; in mthca_write_db_rec() 106 db[1] = val[1]; in mthca_write_db_rec()
|
/kernel/linux/linux-5.10/drivers/firmware/arm_scmi/ |
D | perf.c | 326 if (db->mask) \ 327 val = ioread##w(db->addr) & db->mask; \ 328 iowrite##w((u##w)db->set | val, db->addr); \ 331 static void scmi_perf_fc_ring_db(struct scmi_fc_db_info *db) in scmi_perf_fc_ring_db() argument 333 if (!db || !db->addr) in scmi_perf_fc_ring_db() 336 if (db->width == 1) in scmi_perf_fc_ring_db() 338 else if (db->width == 2) in scmi_perf_fc_ring_db() 340 else if (db->width == 4) in scmi_perf_fc_ring_db() 349 if (db->mask) in scmi_perf_fc_ring_db() 350 val = ioread64_hi_lo(db->addr) & db->mask; in scmi_perf_fc_ring_db() [all …]
|
/kernel/linux/linux-5.10/net/iucv/ |
D | iucv.c | 267 struct iucv_cmd_db db; member 432 parm->db.ipbfadr1 = virt_to_phys(iucv_irq_data[cpu]); in iucv_declare_cpu() 1124 parm->db.ipbfadr1 = (u32)(addr_t) buffer; in __iucv_message_receive() 1125 parm->db.ipbfln1f = (u32) size; in __iucv_message_receive() 1126 parm->db.ipmsgid = msg->id; in __iucv_message_receive() 1127 parm->db.ippathid = path->pathid; in __iucv_message_receive() 1128 parm->db.iptrgcls = msg->class; in __iucv_message_receive() 1129 parm->db.ipflags1 = (flags | IUCV_IPFGPID | in __iucv_message_receive() 1133 msg->flags = parm->db.ipflags1; in __iucv_message_receive() 1135 *residual = parm->db.ipbfln1f; in __iucv_message_receive() [all …]
|