Home
last modified time | relevance | path

Searched refs:db (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/linux-6.12.1/drivers/net/ethernet/dec/tulip/
Ddmfe.c354 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 …]
Duli526x.c226 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-6.12.1/drivers/net/ethernet/davicom/
Ddm9051.c119 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 …]
Ddm9000.c141 #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 …]
/linux-6.12.1/drivers/net/ethernet/allwinner/
Dsun4i-emac.c95 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-6.12.1/drivers/net/ppp/
Dbsd_comp.c173 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 …]
/linux-6.12.1/drivers/gpu/drm/panel/
Dpanel-magnachip-d53e6ea8966.c42 void (*panel_init_seq)(struct d53e6ea8966 *db);
44 int (*backlight_register)(struct d53e6ea8966 *db);
166 static void ams495qa01_panel_init(struct d53e6ea8966 *db) in ams495qa01_panel_init() argument
168 struct mipi_dbi *dbi = &db->dbi; in ams495qa01_panel_init()
206 struct d53e6ea8966 *db = to_d53e6ea8966(panel); in d53e6ea8966_prepare() local
210 ret = regulator_enable(db->reg_vdd); in d53e6ea8966_prepare()
212 dev_err(db->dev, "failed to enable vdd regulator: %d\n", ret); in d53e6ea8966_prepare()
216 if (db->reg_elvdd) { in d53e6ea8966_prepare()
217 ret = regulator_enable(db->reg_elvdd); in d53e6ea8966_prepare()
219 dev_err(db->dev, in d53e6ea8966_prepare()
[all …]
Dpanel-samsung-db7430.c89 static int db7430_power_on(struct db7430 *db) in db7430_power_on() argument
91 struct mipi_dbi *dbi = &db->dbi; in db7430_power_on()
95 ret = regulator_bulk_enable(ARRAY_SIZE(db->regulators), in db7430_power_on()
96 db->regulators); in db7430_power_on()
98 dev_err(db->dev, "failed to enable regulators: %d\n", ret); in db7430_power_on()
104 gpiod_set_value_cansleep(db->reset, 1); in db7430_power_on()
107 gpiod_set_value_cansleep(db->reset, 0); in db7430_power_on()
110 dev_dbg(db->dev, "de-asserted RESET\n"); in db7430_power_on()
164 static int db7430_power_off(struct db7430 *db) in db7430_power_off() argument
167 gpiod_set_value_cansleep(db->reset, 1); in db7430_power_off()
[all …]
/linux-6.12.1/drivers/infiniband/hw/hns/
Dhns_roce_db.c11 struct hns_roce_db *db) in hns_roce_db_map_user() argument
44 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-6.12.1/arch/powerpc/platforms/ps3/
Dos-area.c371 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()
423 i->idx = (void *)db + db->index_64; in db_for_each_64()
424 i->last_idx = i->idx + db->count_64; in db_for_each_64()
[all …]
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_hwinfo.c129 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 …]
/linux-6.12.1/tools/perf/scripts/python/
Dtask-analyzer.py189 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 …]
Dexport-to-sqlite.py156 db = QSqlDatabase.addDatabase('QSQLITE') variable
157 db.setDatabaseName(dbname)
158 db.open()
160 query = QSqlQuery(db)
572 evsel_query = QSqlQuery(db)
574 machine_query = QSqlQuery(db)
576 thread_query = QSqlQuery(db)
578 comm_query = QSqlQuery(db)
580 comm_thread_query = QSqlQuery(db)
582 dso_query = QSqlQuery(db)
[all …]
/linux-6.12.1/net/dsa/
Dtrace.h21 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);
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, int err),
76 TP_ARGS(dp, addr, vid, db, err));
[all …]
Dswitch.c146 struct dsa_db db) in dsa_mac_addr_find() argument
152 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 …]
Dtrace.c8 void dsa_db_print(const struct dsa_db *db, char buf[DSA_DB_BUFSIZ]) in dsa_db_print() argument
10 switch (db->type) { in dsa_db_print()
12 sprintf(buf, "port %s", db->dp->name); in dsa_db_print()
15 sprintf(buf, "lag %s id %d", db->lag.dev->name, db->lag.id); in dsa_db_print()
18 sprintf(buf, "bridge %s num %d", db->bridge.dev->name, in dsa_db_print()
19 db->bridge.num); in dsa_db_print()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Dalloc.c163 struct mlx5_db *db) in mlx5_alloc_db_from_pgdir() argument
175 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 …]
Dwq.c46 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 …]
/linux-6.12.1/lib/
Ddebugobjects.c462 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()
624 struct debug_bucket *db; in __debug_object_init() local
629 db = get_bucket((unsigned long) addr); in __debug_object_init()
631 raw_spin_lock_irqsave(&db->lock, flags); in __debug_object_init()
633 obj = lookup_object_or_alloc(addr, db, descr, onstack, false); in __debug_object_init()
635 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_object_init()
[all …]
/linux-6.12.1/security/integrity/platform_certs/
Dload_uefi.c54 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()
87 kfree(db); in get_cert_list()
93 return db; in get_cert_list()
164 void *db = NULL, *dbx = NULL, *mokx = NULL; in load_uefi_certs() local
[all …]
Dload_powerpc.c18 #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
99 extract_esl(db, data, dsize, offset); in load_powerpc_certs()
[all …]
/linux-6.12.1/drivers/mailbox/
Dtegra-hsp.c149 static bool tegra_hsp_doorbell_can_ring(struct tegra_hsp_doorbell *db) in tegra_hsp_doorbell_can_ring() argument
153 value = tegra_hsp_channel_readl(&db->channel, HSP_DB_ENABLE); in tegra_hsp_doorbell_can_ring()
173 struct tegra_hsp_doorbell *db; in tegra_hsp_doorbell_get() local
177 db = __tegra_hsp_doorbell_get(hsp, master); in tegra_hsp_doorbell_get()
180 return db; in tegra_hsp_doorbell_get()
186 struct tegra_hsp_doorbell *db; in tegra_hsp_doorbell_irq() local
189 db = tegra_hsp_doorbell_get(hsp, TEGRA_HSP_DB_MASTER_CCPLEX); in tegra_hsp_doorbell_irq()
190 if (!db) in tegra_hsp_doorbell_irq()
193 value = tegra_hsp_channel_readl(&db->channel, HSP_DB_PENDING); in tegra_hsp_doorbell_irq()
194 tegra_hsp_channel_writel(&db->channel, value, HSP_DB_PENDING); in tegra_hsp_doorbell_irq()
[all …]
/linux-6.12.1/drivers/net/ethernet/tehuti/
Dtehuti.c917 static void bdx_rxdb_destroy(struct rxdb *db) in bdx_rxdb_destroy() argument
919 vfree(db); in bdx_rxdb_destroy()
924 struct rxdb *db; in bdx_rxdb_create() local
927 db = vmalloc(sizeof(struct rxdb) in bdx_rxdb_create()
930 if (likely(db != NULL)) { in bdx_rxdb_create()
931 db->stack = (int *)(db + 1); in bdx_rxdb_create()
932 db->elems = (void *)(db->stack + nelem); in bdx_rxdb_create()
933 db->nelem = nelem; in bdx_rxdb_create()
934 db->top = nelem; in bdx_rxdb_create()
936 db->stack[i] = nelem - i - 1; /* to make first allocs in bdx_rxdb_create()
[all …]
Dtn40.c73 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()
84 db->stack[i] = nelem - i - 1; in tn40_rxdb_alloc()
86 return db; in tn40_rxdb_alloc()
89 static void tn40_rxdb_free(struct tn40_rxdb *db) in tn40_rxdb_free() argument
[all …]
/linux-6.12.1/arch/arm64/boot/dts/marvell/
DMakefile3 dtb-$(CONFIG_ARCH_MVEBU) += armada-3720-db.dtb
13 dtb-$(CONFIG_ARCH_MVEBU) += armada-7040-db.dtb
16 dtb-$(CONFIG_ARCH_MVEBU) += armada-8040-db.dtb
20 dtb-$(CONFIG_ARCH_MVEBU) += armada-8080-db.dtb
21 dtb-$(CONFIG_ARCH_MVEBU) += cn9130-db.dtb
22 dtb-$(CONFIG_ARCH_MVEBU) += cn9130-db-B.dtb
23 dtb-$(CONFIG_ARCH_MVEBU) += cn9131-db.dtb
24 dtb-$(CONFIG_ARCH_MVEBU) += cn9131-db-B.dtb
25 dtb-$(CONFIG_ARCH_MVEBU) += cn9132-db.dtb
26 dtb-$(CONFIG_ARCH_MVEBU) += cn9132-db-B.dtb

12345678910>>...14