/Linux-v4.19/drivers/power/supply/ |
D | bq24190_charger.c | 238 static int bq24190_read(struct bq24190_dev_info *bdi, u8 reg, u8 *data) in bq24190_read() argument 242 ret = i2c_smbus_read_byte_data(bdi->client, reg); in bq24190_read() 250 static int bq24190_write(struct bq24190_dev_info *bdi, u8 reg, u8 data) in bq24190_write() argument 252 return i2c_smbus_write_byte_data(bdi->client, reg, data); in bq24190_write() 255 static int bq24190_read_mask(struct bq24190_dev_info *bdi, u8 reg, in bq24190_read_mask() argument 261 ret = bq24190_read(bdi, reg, &v); in bq24190_read_mask() 272 static int bq24190_write_mask(struct bq24190_dev_info *bdi, u8 reg, in bq24190_write_mask() argument 278 ret = bq24190_read(bdi, reg, &v); in bq24190_write_mask() 285 return bq24190_write(bdi, reg, v); in bq24190_write_mask() 288 static int bq24190_get_field_val(struct bq24190_dev_info *bdi, in bq24190_get_field_val() argument [all …]
|
/Linux-v4.19/mm/ |
D | backing-dev.c | 46 struct backing_dev_info *bdi = m->private; in bdi_debug_stats_show() local 47 struct bdi_writeback *wb = &bdi->wb; in bdi_debug_stats_show() 98 !list_empty(&bdi->bdi_list), bdi->wb.state); in bdi_debug_stats_show() 105 static int bdi_debug_register(struct backing_dev_info *bdi, const char *name) in bdi_debug_register() argument 110 bdi->debug_dir = debugfs_create_dir(name, bdi_debug_root); in bdi_debug_register() 111 if (!bdi->debug_dir) in bdi_debug_register() 114 bdi->debug_stats = debugfs_create_file("stats", 0444, bdi->debug_dir, in bdi_debug_register() 115 bdi, &bdi_debug_stats_fops); in bdi_debug_register() 116 if (!bdi->debug_stats) { in bdi_debug_register() 117 debugfs_remove(bdi->debug_dir); in bdi_debug_register() [all …]
|
D | fadvise.c | 35 struct backing_dev_info *bdi; in generic_fadvise() local 49 bdi = inode_to_bdi(mapping->host); in generic_fadvise() 51 if (IS_DAX(inode) || (bdi == &noop_backing_dev_info)) { in generic_fadvise() 80 file->f_ra.ra_pages = bdi->ra_pages; in generic_fadvise() 91 file->f_ra.ra_pages = bdi->ra_pages * 2; in generic_fadvise()
|
D | page-writeback.c | 192 unsigned long tot_bw = atomic_long_read(&wb->bdi->tot_write_bandwidth); in wb_min_max_ratio() 193 unsigned long long min = wb->bdi->min_ratio; in wb_min_max_ratio() 194 unsigned long long max = wb->bdi->max_ratio; in wb_min_max_ratio() 245 *minp = wb->bdi->min_ratio; in wb_min_max_ratio() 246 *maxp = wb->bdi->max_ratio; in wb_min_max_ratio() 605 wb->bdi->max_prop_frac); in __wb_writeout_inc() 610 wb->bdi->max_prop_frac); in __wb_writeout_inc() 674 int bdi_set_min_ratio(struct backing_dev_info *bdi, unsigned int min_ratio) in bdi_set_min_ratio() argument 679 if (min_ratio > bdi->max_ratio) { in bdi_set_min_ratio() 682 min_ratio -= bdi->min_ratio; in bdi_set_min_ratio() [all …]
|
D | readahead.c | 224 struct backing_dev_info *bdi = inode_to_bdi(mapping->host); in force_page_cache_readahead() local 235 max_pages = max_t(unsigned long, bdi->io_pages, ra->ra_pages); in force_page_cache_readahead() 388 struct backing_dev_info *bdi = inode_to_bdi(mapping->host); in ondemand_readahead() local 397 if (req_size > max_pages && bdi->io_pages > max_pages) in ondemand_readahead() 398 max_pages = min(req_size, bdi->io_pages); in ondemand_readahead()
|
/Linux-v4.19/include/linux/ |
D | backing-dev.h | 21 static inline struct backing_dev_info *bdi_get(struct backing_dev_info *bdi) in bdi_get() argument 23 kref_get(&bdi->refcnt); in bdi_get() 24 return bdi; in bdi_get() 27 void bdi_put(struct backing_dev_info *bdi); 30 int bdi_register(struct backing_dev_info *bdi, const char *fmt, ...); 32 int bdi_register_va(struct backing_dev_info *bdi, const char *fmt, 34 int bdi_register_owner(struct backing_dev_info *bdi, struct device *owner); 35 void bdi_unregister(struct backing_dev_info *bdi); 57 static inline bool bdi_has_dirty_io(struct backing_dev_info *bdi) in bdi_has_dirty_io() argument 63 return atomic_long_read(&bdi->tot_write_bandwidth); in bdi_has_dirty_io() [all …]
|
D | backing-dev-defs.h | 110 struct backing_dev_info *bdi; /* our parent bdi */ member 217 static inline void clear_bdi_congested(struct backing_dev_info *bdi, int sync) in clear_bdi_congested() argument 219 clear_wb_congested(bdi->wb.congested, sync); in clear_bdi_congested() 222 static inline void set_bdi_congested(struct backing_dev_info *bdi, int sync) in set_bdi_congested() argument 224 set_wb_congested(bdi->wb.congested, sync); in set_bdi_congested() 240 if (wb != &wb->bdi->wb) in wb_tryget() 251 if (wb != &wb->bdi->wb) in wb_get() 261 if (wb != &wb->bdi->wb) in wb_put()
|
D | writeback.h | 170 void wakeup_flusher_threads_bdi(struct backing_dev_info *bdi,
|
/Linux-v4.19/include/trace/events/ |
D | wbt.h | 17 TP_PROTO(struct backing_dev_info *bdi, struct blk_rq_stat *stat), 19 TP_ARGS(bdi, stat), 36 strncpy(__entry->name, dev_name(bdi->dev), 32); 60 TP_PROTO(struct backing_dev_info *bdi, unsigned long lat), 62 TP_ARGS(bdi, lat), 70 strncpy(__entry->name, dev_name(bdi->dev), 32); 89 TP_PROTO(struct backing_dev_info *bdi, const char *msg, 93 TP_ARGS(bdi, msg, step, window, bg, normal, max), 106 strncpy(__entry->name, dev_name(bdi->dev), 32); 128 TP_PROTO(struct backing_dev_info *bdi, unsigned int status, [all …]
|
D | writeback.h | 96 struct backing_dev_info *bdi = inode_to_bdi(inode); 100 bdi->dev ? dev_name(bdi->dev) : "(unknown)", 32); 224 wb->bdi->dev ? dev_name(wb->bdi->dev) : "(unknown)", 32); 277 strncpy(__entry->name, dev_name(wb->bdi->dev), 32); 293 TP_PROTO(struct backing_dev_info *bdi), 294 TP_ARGS(bdi), 299 strncpy(__entry->name, dev_name(bdi->dev), 32); 307 TP_PROTO(struct writeback_control *wbc, struct backing_dev_info *bdi), 308 TP_ARGS(wbc, bdi), 324 strncpy(__entry->name, dev_name(bdi->dev), 32); [all …]
|
/Linux-v4.19/fs/ |
D | fs-writeback.c | 110 &wb->bdi->tot_write_bandwidth); in wb_io_lists_populated() 121 &wb->bdi->tot_write_bandwidth) < 0); in wb_io_lists_depopulated() 184 wake_up_all(&wb->bdi->wb_waitq); in finish_writeback_work() 217 static void wb_wait_for_completion(struct backing_dev_info *bdi, in wb_wait_for_completion() argument 221 wait_event(bdi->wb_waitq, !atomic_read(&done->cnt)); in wb_wait_for_completion() 245 struct backing_dev_info *bdi = inode_to_bdi(inode); in __inode_attach_wb() local 253 wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in __inode_attach_wb() 257 wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in __inode_attach_wb() 263 wb = &bdi->wb; in __inode_attach_wb() 470 struct backing_dev_info *bdi = inode_to_bdi(inode); in inode_switch_wbs() local [all …]
|
D | super.c | 1310 struct backing_dev_info *bdi; in super_setup_bdi_name() local 1314 bdi = bdi_alloc(GFP_KERNEL); in super_setup_bdi_name() 1315 if (!bdi) in super_setup_bdi_name() 1318 bdi->name = sb->s_type->name; in super_setup_bdi_name() 1321 err = bdi_register_va(bdi, fmt, args); in super_setup_bdi_name() 1324 bdi_put(bdi); in super_setup_bdi_name() 1328 sb->s_bdi = bdi; in super_setup_bdi_name()
|
D | block_dev.c | 739 struct bdev_inode *bdi = BDEV_I(inode); in bdev_i_callback() local 741 kmem_cache_free(bdev_cachep, bdi); in bdev_i_callback()
|
/Linux-v4.19/drivers/usb/gadget/udc/bdc/ |
D | bdc_dbg.c | 90 int tbi, bdi, gbdi; in bdc_dbg_bd_list() local 105 for (bdi = 0; bdi < bd_list->num_bds_table; bdi++) { in bdc_dbg_bd_list() 106 bd = bd_table->start_bd + bdi; in bdc_dbg_bd_list() 107 dma = bd_table->dma + (sizeof(struct bdc_bd) * bdi); in bdc_dbg_bd_list() 110 tbi, bdi, gbdi++, bd, (unsigned long long)dma, in bdc_dbg_bd_list()
|
D | bdc_ep.c | 222 int tbi, bdi; in bd_add_to_bdi() local 251 bdi = (bd_dma_addr - dma_first_bd) / sizeof(struct bdc_bd); in bd_add_to_bdi() 254 return (bdi + (tbi * bd_list->num_bds_table)); in bd_add_to_bdi() 258 static int bdi_to_tbi(struct bdc_ep *ep, int bdi) in bdi_to_tbi() argument 262 tbi = bdi / ep->bd_list.num_bds_table; in bdi_to_tbi() 265 bdi, ep->bd_list.num_bds_table, tbi); in bdi_to_tbi() 357 static struct bdc_bd *bdi_to_bd(struct bdc_ep *ep, int bdi) in bdi_to_bd() argument 359 int tbi = bdi_to_tbi(ep, bdi); in bdi_to_bd() 362 local_bdi = bdi - (tbi * ep->bd_list.num_bds_table); in bdi_to_bd() 365 __func__, bdi, local_bdi); in bdi_to_bd()
|
/Linux-v4.19/Documentation/ABI/testing/ |
D | sysfs-class-bdi | 1 What: /sys/class/bdi/<bdi>/ 9 The <bdi> identifier can be either of the following: 26 Files under /sys/class/bdi/<bdi>/
|
/Linux-v4.19/block/ |
D | blk-wbt.c | 235 struct backing_dev_info *bdi = rwb->rqos.q->backing_dev_info; in latency_exceeded() local 251 trace_wbt_lat(bdi, thislat); in latency_exceeded() 275 trace_wbt_lat(bdi, stat[READ].min); in latency_exceeded() 276 trace_wbt_stat(bdi, stat); in latency_exceeded() 281 trace_wbt_stat(bdi, stat); in latency_exceeded() 288 struct backing_dev_info *bdi = rwb->rqos.q->backing_dev_info; in rwb_trace_step() local 291 trace_wbt_step(bdi, msg, rqd->scale_step, rwb->cur_win_nsec, in rwb_trace_step()
|
/Linux-v4.19/fs/ext2/ |
D | ialloc.c | 172 struct backing_dev_info *bdi; in ext2_preread_inode() local 174 bdi = inode_to_bdi(inode); in ext2_preread_inode() 175 if (bdi_read_congested(bdi)) in ext2_preread_inode() 177 if (bdi_write_congested(bdi)) in ext2_preread_inode()
|
/Linux-v4.19/drivers/mtd/ |
D | mtdcore.c | 1859 struct backing_dev_info *bdi; in mtd_bdi_init() local 1862 bdi = bdi_alloc(GFP_KERNEL); in mtd_bdi_init() 1863 if (!bdi) in mtd_bdi_init() 1866 bdi->name = name; in mtd_bdi_init() 1871 ret = bdi_register(bdi, "%.28s-0", name); in mtd_bdi_init() 1873 bdi_put(bdi); in mtd_bdi_init() 1875 return ret ? ERR_PTR(ret) : bdi; in mtd_bdi_init()
|
/Linux-v4.19/drivers/block/drbd/ |
D | drbd_req.c | 934 struct backing_dev_info *bdi; in remote_due_to_read_balancing() local 939 bdi = device->ldev->backing_bdev->bd_disk->queue->backing_dev_info; in remote_due_to_read_balancing() 940 return bdi_read_congested(bdi); in remote_due_to_read_balancing()
|
/Linux-v4.19/fs/fuse/ |
D | file.c | 1469 struct backing_dev_info *bdi = inode_to_bdi(inode); in fuse_writepage_finish() local 1474 dec_wb_stat(&bdi->wb, WB_WRITEBACK); in fuse_writepage_finish() 1476 wb_writeout_inc(&bdi->wb); in fuse_writepage_finish() 1774 struct backing_dev_info *bdi = inode_to_bdi(page->mapping->host); in fuse_writepage_in_flight() local 1779 dec_wb_stat(&bdi->wb, WB_WRITEBACK); in fuse_writepage_in_flight() 1781 wb_writeout_inc(&bdi->wb); in fuse_writepage_in_flight()
|
/Linux-v4.19/fs/ocfs2/dlm/ |
D | dlmmaster.c | 1228 struct dlm_bitmap_diff_iter bdi; in dlm_restart_lock_mastery() local 1238 dlm_bitmap_diff_iter_init(&bdi, mle->vote_map, mle->node_map); in dlm_restart_lock_mastery() 1239 node = dlm_bitmap_diff_iter_next(&bdi, &sc); in dlm_restart_lock_mastery() 1307 node = dlm_bitmap_diff_iter_next(&bdi, &sc); in dlm_restart_lock_mastery()
|
/Linux-v4.19/drivers/net/wireless/broadcom/b43/ |
D | tables_nphy.c | 3295 check(bdi, BDI); in assert_ntab_array_sizes()
|
/Linux-v4.19/fs/gfs2/ |
D | super.c | 755 struct backing_dev_info *bdi = inode_to_bdi(metamapping->host); in gfs2_write_inode() local 763 if (bdi->wb.dirty_exceeded) in gfs2_write_inode()
|
/Linux-v4.19/fs/btrfs/ |
D | disk-io.c | 1628 struct backing_dev_info *bdi; in btrfs_congested_fn() local 1634 bdi = device->bdev->bd_bdi; in btrfs_congested_fn() 1635 if (bdi_congested(bdi, bdi_bits)) { in btrfs_congested_fn()
|