/kernel/linux/linux-5.10/drivers/power/supply/ |
D | bq24190_charger.c | 242 static int bq24190_read(struct bq24190_dev_info *bdi, u8 reg, u8 *data) in bq24190_read() argument 246 ret = i2c_smbus_read_byte_data(bdi->client, reg); in bq24190_read() 254 static int bq24190_write(struct bq24190_dev_info *bdi, u8 reg, u8 data) in bq24190_write() argument 256 return i2c_smbus_write_byte_data(bdi->client, reg, data); in bq24190_write() 259 static int bq24190_read_mask(struct bq24190_dev_info *bdi, u8 reg, in bq24190_read_mask() argument 265 ret = bq24190_read(bdi, reg, &v); in bq24190_read_mask() 276 static int bq24190_write_mask(struct bq24190_dev_info *bdi, u8 reg, in bq24190_write_mask() argument 282 ret = bq24190_read(bdi, reg, &v); in bq24190_write_mask() 289 return bq24190_write(bdi, reg, v); in bq24190_write_mask() 292 static int bq24190_get_field_val(struct bq24190_dev_info *bdi, in bq24190_get_field_val() argument [all …]
|
/kernel/linux/linux-5.10/mm/ |
D | backing-dev.c | 48 struct backing_dev_info *bdi = m->private; in bdi_debug_stats_show() local 49 struct bdi_writeback *wb = &bdi->wb; in bdi_debug_stats_show() 100 !list_empty(&bdi->bdi_list), bdi->wb.state); in bdi_debug_stats_show() 107 static void bdi_debug_register(struct backing_dev_info *bdi, const char *name) in bdi_debug_register() argument 109 bdi->debug_dir = debugfs_create_dir(name, bdi_debug_root); in bdi_debug_register() 111 debugfs_create_file("stats", 0444, bdi->debug_dir, bdi, in bdi_debug_register() 115 static void bdi_debug_unregister(struct backing_dev_info *bdi) in bdi_debug_unregister() argument 117 debugfs_remove_recursive(bdi->debug_dir); in bdi_debug_unregister() 123 static inline void bdi_debug_register(struct backing_dev_info *bdi, in bdi_debug_register() argument 127 static inline void bdi_debug_unregister(struct backing_dev_info *bdi) in bdi_debug_unregister() argument [all …]
|
D | fadvise.c | 36 struct backing_dev_info *bdi; in generic_fadvise() local 50 bdi = inode_to_bdi(mapping->host); in generic_fadvise() 52 if (IS_DAX(inode) || (bdi == &noop_backing_dev_info)) { in generic_fadvise() 81 file->f_ra.ra_pages = bdi->ra_pages; in generic_fadvise() 92 file->f_ra.ra_pages = bdi->ra_pages * 2; in generic_fadvise()
|
D | page-writeback.c | 188 unsigned long tot_bw = atomic_long_read(&wb->bdi->tot_write_bandwidth); in wb_min_max_ratio() 189 unsigned long long min = wb->bdi->min_ratio; in wb_min_max_ratio() 190 unsigned long long max = wb->bdi->max_ratio; in wb_min_max_ratio() 241 *minp = wb->bdi->min_ratio; in wb_min_max_ratio() 242 *maxp = wb->bdi->max_ratio; in wb_min_max_ratio() 595 wb->bdi->max_prop_frac); in __wb_writeout_inc() 600 wb->bdi->max_prop_frac); in __wb_writeout_inc() 664 int bdi_set_min_ratio(struct backing_dev_info *bdi, unsigned int min_ratio) in bdi_set_min_ratio() argument 669 if (min_ratio > bdi->max_ratio) { in bdi_set_min_ratio() 672 min_ratio -= bdi->min_ratio; in bdi_set_min_ratio() [all …]
|
D | readahead.c | 278 struct backing_dev_info *bdi = inode_to_bdi(mapping->host); in force_page_cache_ra() local 290 max_pages = max_t(unsigned long, bdi->io_pages, ra->ra_pages); in force_page_cache_ra() 439 struct backing_dev_info *bdi = inode_to_bdi(ractl->mapping->host); in ondemand_readahead() local 449 if (req_size > max_pages && bdi->io_pages > max_pages) in ondemand_readahead() 450 max_pages = min(req_size, bdi->io_pages); in ondemand_readahead()
|
/kernel/linux/linux-5.10/include/linux/ |
D | backing-dev.h | 22 static inline struct backing_dev_info *bdi_get(struct backing_dev_info *bdi) in bdi_get() argument 24 kref_get(&bdi->refcnt); in bdi_get() 25 return bdi; in bdi_get() 29 void bdi_put(struct backing_dev_info *bdi); 32 int bdi_register(struct backing_dev_info *bdi, const char *fmt, ...); 34 int bdi_register_va(struct backing_dev_info *bdi, const char *fmt, 36 void bdi_set_owner(struct backing_dev_info *bdi, struct device *owner); 37 void bdi_unregister(struct backing_dev_info *bdi); 58 static inline bool bdi_has_dirty_io(struct backing_dev_info *bdi) in bdi_has_dirty_io() argument 64 return atomic_long_read(&bdi->tot_write_bandwidth); in bdi_has_dirty_io() [all …]
|
D | backing-dev-defs.h | 83 #define WB_COMPLETION_INIT(bdi) __WB_COMPLETION_INIT(&(bdi)->wb_waitq) argument 85 #define DEFINE_WB_COMPLETION(cmpl, bdi) \ argument 86 struct wb_completion cmpl = WB_COMPLETION_INIT(bdi) 108 struct backing_dev_info *bdi; /* our parent bdi */ member 208 void clear_bdi_congested(struct backing_dev_info *bdi, int sync); 209 void set_bdi_congested(struct backing_dev_info *bdi, int sync); 224 if (wb != &wb->bdi->wb) in wb_tryget() 235 if (wb != &wb->bdi->wb) in wb_get() 245 if (WARN_ON_ONCE(!wb->bdi)) { in wb_put() 253 if (wb != &wb->bdi->wb) in wb_put()
|
D | writeback.h | 197 void wakeup_flusher_threads_bdi(struct backing_dev_info *bdi,
|
/kernel/linux/linux-5.10/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 strlcpy(__entry->name, bdi_dev_name(bdi), 61 TP_PROTO(struct backing_dev_info *bdi, unsigned long lat), 63 TP_ARGS(bdi, lat), 71 strlcpy(__entry->name, bdi_dev_name(bdi), 91 TP_PROTO(struct backing_dev_info *bdi, const char *msg, 95 TP_ARGS(bdi, msg, step, window, bg, normal, max), 108 strlcpy(__entry->name, bdi_dev_name(bdi), 131 TP_PROTO(struct backing_dev_info *bdi, unsigned int status, [all …]
|
D | writeback.h | 109 struct backing_dev_info *bdi = inode_to_bdi(inode); 112 strscpy_pad(__entry->name, bdi_dev_name(bdi), 32); 222 strscpy_pad(__entry->name, bdi_dev_name(old_wb->bdi), 32); 255 strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32); 256 __entry->bdi_id = wb->bdi->id; 288 strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32); 361 strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32); 414 strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32); 430 TP_PROTO(struct backing_dev_info *bdi), 431 TP_ARGS(bdi), [all …]
|
/kernel/linux/linux-5.10/fs/ |
D | fs-writeback.c | 93 &wb->bdi->tot_write_bandwidth); in wb_io_lists_populated() 104 &wb->bdi->tot_write_bandwidth) < 0); in wb_io_lists_depopulated() 252 struct backing_dev_info *bdi = inode_to_bdi(inode); in __inode_attach_wb() local 260 wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in __inode_attach_wb() 264 wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in __inode_attach_wb() 270 wb = &bdi->wb; in __inode_attach_wb() 342 static void bdi_down_write_wb_switch_rwsem(struct backing_dev_info *bdi) in bdi_down_write_wb_switch_rwsem() argument 344 down_write(&bdi->wb_switch_rwsem); in bdi_down_write_wb_switch_rwsem() 347 static void bdi_up_write_wb_switch_rwsem(struct backing_dev_info *bdi) in bdi_up_write_wb_switch_rwsem() argument 349 up_write(&bdi->wb_switch_rwsem); in bdi_up_write_wb_switch_rwsem() [all …]
|
D | super.c | 1599 struct backing_dev_info *bdi; in super_setup_bdi_name() local 1603 bdi = bdi_alloc(NUMA_NO_NODE); in super_setup_bdi_name() 1604 if (!bdi) in super_setup_bdi_name() 1608 err = bdi_register_va(bdi, fmt, args); in super_setup_bdi_name() 1611 bdi_put(bdi); in super_setup_bdi_name() 1615 sb->s_bdi = bdi; in super_setup_bdi_name()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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>/
|
/kernel/linux/linux-5.10/block/ |
D | blk-wbt.c | 237 struct backing_dev_info *bdi = rwb->rqos.q->backing_dev_info; in latency_exceeded() local 253 trace_wbt_lat(bdi, thislat); in latency_exceeded() 277 trace_wbt_lat(bdi, stat[READ].min); in latency_exceeded() 278 trace_wbt_stat(bdi, stat); in latency_exceeded() 283 trace_wbt_stat(bdi, stat); in latency_exceeded() 290 struct backing_dev_info *bdi = rwb->rqos.q->backing_dev_info; in rwb_trace_step() local 293 trace_wbt_step(bdi, msg, rqd->scale_step, rwb->cur_win_nsec, in rwb_trace_step()
|
D | genhd.c | 822 struct backing_dev_info *bdi = disk->queue->backing_dev_info; in __device_add_disk() local 828 ret = bdi_register(bdi, "%u:%u", MAJOR(devt), MINOR(devt)); in __device_add_disk() 830 bdi_set_owner(bdi, dev); in __device_add_disk()
|
/kernel/linux/linux-5.10/fs/ext2/ |
D | ialloc.c | 173 struct backing_dev_info *bdi; in ext2_preread_inode() local 175 bdi = inode_to_bdi(inode); in ext2_preread_inode() 176 if (bdi_rw_congested(bdi)) in ext2_preread_inode()
|
/kernel/linux/linux-5.10/drivers/mtd/ |
D | mtdcore.c | 2215 struct backing_dev_info *bdi; in mtd_bdi_init() local 2218 bdi = bdi_alloc(NUMA_NO_NODE); in mtd_bdi_init() 2219 if (!bdi) in mtd_bdi_init() 2221 bdi->ra_pages = 0; in mtd_bdi_init() 2222 bdi->io_pages = 0; in mtd_bdi_init() 2228 ret = bdi_register(bdi, "%.28s-0", name); in mtd_bdi_init() 2230 bdi_put(bdi); in mtd_bdi_init() 2232 return ret ? ERR_PTR(ret) : bdi; in mtd_bdi_init()
|
/kernel/linux/linux-5.10/drivers/block/drbd/ |
D | drbd_req.c | 904 struct backing_dev_info *bdi; in remote_due_to_read_balancing() local 909 bdi = device->ldev->backing_bdev->bd_disk->queue->backing_dev_info; in remote_due_to_read_balancing() 910 return bdi_read_congested(bdi); in remote_due_to_read_balancing()
|
/kernel/linux/linux-5.10/drivers/soc/fsl/dpio/ |
D | qbman-portal.h | 578 u8 bdi; member
|
/kernel/linux/linux-5.10/fs/fuse/ |
D | file.c | 1633 struct backing_dev_info *bdi = inode_to_bdi(inode); in fuse_writepage_finish() local 1637 dec_wb_stat(&bdi->wb, WB_WRITEBACK); in fuse_writepage_finish() 1639 wb_writeout_inc(&bdi->wb); in fuse_writepage_finish() 2074 struct backing_dev_info *bdi = inode_to_bdi(new_wpa->inode); in fuse_writepage_add() local 2076 dec_wb_stat(&bdi->wb, WB_WRITEBACK); in fuse_writepage_add() 2078 wb_writeout_inc(&bdi->wb); in fuse_writepage_add()
|
/kernel/linux/linux-5.10/fs/gfs2/ |
D | super.c | 461 struct backing_dev_info *bdi = inode_to_bdi(metamapping->host); in gfs2_write_inode() local 469 if (bdi->wb.dirty_exceeded) in gfs2_write_inode()
|
/kernel/linux/linux-5.10/fs/ocfs2/dlm/ |
D | dlmmaster.c | 1213 struct dlm_bitmap_diff_iter bdi; in dlm_restart_lock_mastery() local 1223 dlm_bitmap_diff_iter_init(&bdi, mle->vote_map, mle->node_map); in dlm_restart_lock_mastery() 1224 node = dlm_bitmap_diff_iter_next(&bdi, &sc); in dlm_restart_lock_mastery() 1292 node = dlm_bitmap_diff_iter_next(&bdi, &sc); in dlm_restart_lock_mastery()
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/ |
D | tables_nphy.c | 3282 check(bdi, BDI); in assert_ntab_array_sizes()
|