Home
last modified time | relevance | path

Searched refs:bdi (Results 1 – 25 of 37) sorted by relevance

12

/Linux-v6.6/drivers/power/supply/
Dbq24190_charger.c181 static int bq24190_charger_set_charge_type(struct bq24190_dev_info *bdi,
250 static int bq24190_read(struct bq24190_dev_info *bdi, u8 reg, u8 *data) in bq24190_read() argument
254 ret = i2c_smbus_read_byte_data(bdi->client, reg); in bq24190_read()
262 static int bq24190_write(struct bq24190_dev_info *bdi, u8 reg, u8 data) in bq24190_write() argument
264 return i2c_smbus_write_byte_data(bdi->client, reg, data); in bq24190_write()
267 static int bq24190_read_mask(struct bq24190_dev_info *bdi, u8 reg, in bq24190_read_mask() argument
273 ret = bq24190_read(bdi, reg, &v); in bq24190_read_mask()
284 static int bq24190_write_mask(struct bq24190_dev_info *bdi, u8 reg, in bq24190_write_mask() argument
290 ret = bq24190_read(bdi, reg, &v); in bq24190_write_mask()
297 return bq24190_write(bdi, reg, v); in bq24190_write_mask()
[all …]
/Linux-v6.6/mm/
Dbacking-dev.c51 struct backing_dev_info *bdi = m->private; in bdi_debug_stats_show() local
52 struct bdi_writeback *wb = &bdi->wb; in bdi_debug_stats_show()
102 !list_empty(&bdi->bdi_list), bdi->wb.state); in bdi_debug_stats_show()
108 static void 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()
112 debugfs_create_file("stats", 0444, bdi->debug_dir, bdi, in bdi_debug_register()
116 static void bdi_debug_unregister(struct backing_dev_info *bdi) in bdi_debug_unregister() argument
118 debugfs_remove_recursive(bdi->debug_dir); in bdi_debug_unregister()
124 static inline void bdi_debug_register(struct backing_dev_info *bdi, in bdi_debug_register() argument
128 static inline void bdi_debug_unregister(struct backing_dev_info *bdi) in bdi_debug_unregister() argument
[all …]
Dpage-writeback.c188 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()
585 wb->bdi->max_prop_frac, nr); in __wb_writeout_add()
590 wb->bdi->max_prop_frac, nr); in __wb_writeout_add()
688 static int __bdi_set_min_ratio(struct backing_dev_info *bdi, unsigned int min_ratio) in __bdi_set_min_ratio() argument
698 if (min_ratio > bdi->max_ratio) { in __bdi_set_min_ratio()
701 if (min_ratio < bdi->min_ratio) { in __bdi_set_min_ratio()
[all …]
Dfadvise.c35 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()
Dreadahead.c311 struct backing_dev_info *bdi = inode_to_bdi(mapping->host); in force_page_cache_ra() local
322 max_pages = max_t(unsigned long, bdi->io_pages, ra->ra_pages); in force_page_cache_ra()
555 struct backing_dev_info *bdi = inode_to_bdi(ractl->mapping->host); in ondemand_readahead() local
567 if (req_size > max_pages && bdi->io_pages > max_pages) in ondemand_readahead()
568 max_pages = min(req_size, bdi->io_pages); in ondemand_readahead()
/Linux-v6.6/include/linux/
Dbacking-dev.h20 static inline struct backing_dev_info *bdi_get(struct backing_dev_info *bdi) in bdi_get() argument
22 kref_get(&bdi->refcnt); in bdi_get()
23 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 void bdi_set_owner(struct backing_dev_info *bdi, struct device *owner);
35 void bdi_unregister(struct backing_dev_info *bdi);
55 static inline bool bdi_has_dirty_io(struct backing_dev_info *bdi) in bdi_has_dirty_io() argument
61 return atomic_long_read(&bdi->tot_write_bandwidth); in bdi_has_dirty_io()
[all …]
Dbacking-dev-defs.h78 #define WB_COMPLETION_INIT(bdi) __WB_COMPLETION_INIT(&(bdi)->wb_waitq) argument
80 #define DEFINE_WB_COMPLETION(cmpl, bdi) \ argument
81 struct wb_completion cmpl = WB_COMPLETION_INIT(bdi)
106 struct backing_dev_info *bdi; /* our parent bdi */ member
216 if (wb != &wb->bdi->wb) in wb_tryget()
227 if (wb != &wb->bdi->wb) in wb_get()
238 if (WARN_ON_ONCE(!wb->bdi)) { in wb_put_many()
246 if (wb != &wb->bdi->wb) in wb_put_many()
Dwriteback.h188 void wakeup_flusher_threads_bdi(struct backing_dev_info *bdi,
/Linux-v6.6/include/trace/events/
Dwbt.h17 TP_PROTO(struct backing_dev_info *bdi, struct blk_rq_stat *stat),
19 TP_ARGS(bdi, stat),
36 strscpy(__entry->name, bdi_dev_name(bdi),
61 TP_PROTO(struct backing_dev_info *bdi, unsigned long lat),
63 TP_ARGS(bdi, lat),
71 strscpy(__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 strscpy(__entry->name, bdi_dev_name(bdi),
131 TP_PROTO(struct backing_dev_info *bdi, unsigned int status,
[all …]
Dwriteback.h110 struct backing_dev_info *bdi = inode_to_bdi(inode);
113 strscpy_pad(__entry->name, bdi_dev_name(bdi), 32);
223 strscpy_pad(__entry->name, bdi_dev_name(old_wb->bdi), 32);
256 strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32);
257 __entry->bdi_id = wb->bdi->id;
289 strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32);
362 strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32);
415 strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32);
431 TP_PROTO(struct backing_dev_info *bdi),
432 TP_ARGS(bdi),
[all …]
/Linux-v6.6/Documentation/ABI/testing/
Dsysfs-class-bdi1 What: /sys/class/bdi/<bdi>/
9 The <bdi> identifier can be either of the following:
26 What: /sys/class/bdi/<bdi>/read_ahead_kb
33 What: /sys/class/bdi/<bdi>/min_ratio
47 What: /sys/class/bdi/<bdi>/min_ratio_fine
62 What: /sys/class/bdi/<bdi>/max_ratio
75 What: /sys/class/bdi/<bdi>/max_ratio_fine
88 What: /sys/class/bdi/<bdi>/min_bytes
103 What: /sys/class/bdi/<bdi>/max_bytes
116 What: /sys/class/bdi/<bdi>/strict_limit
[all …]
/Linux-v6.6/fs/
Dfs-writeback.c93 &wb->bdi->tot_write_bandwidth); in wb_io_lists_populated()
104 &wb->bdi->tot_write_bandwidth) < 0); in wb_io_lists_depopulated()
242 struct backing_dev_info *bdi = inode_to_bdi(inode); in __inode_attach_wb() local
250 wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in __inode_attach_wb()
254 wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in __inode_attach_wb()
260 wb = &bdi->wb; in __inode_attach_wb()
287 if (wb != &wb->bdi->wb) in inode_cgwb_move_to_attached()
362 static void bdi_down_write_wb_switch_rwsem(struct backing_dev_info *bdi) in bdi_down_write_wb_switch_rwsem() argument
364 down_write(&bdi->wb_switch_rwsem); in bdi_down_write_wb_switch_rwsem()
367 static void bdi_up_write_wb_switch_rwsem(struct backing_dev_info *bdi) in bdi_up_write_wb_switch_rwsem() argument
[all …]
Dsuper.c1518 sb->s_bdi = bdi_get(bdev->bd_disk->bdi); in setup_bdev_super()
1800 struct backing_dev_info *bdi; in super_setup_bdi_name() local
1804 bdi = bdi_alloc(NUMA_NO_NODE); in super_setup_bdi_name()
1805 if (!bdi) in super_setup_bdi_name()
1809 err = bdi_register_va(bdi, fmt, args); in super_setup_bdi_name()
1812 bdi_put(bdi); in super_setup_bdi_name()
1816 sb->s_bdi = bdi; in super_setup_bdi_name()
/Linux-v6.6/drivers/usb/gadget/udc/bdc/
Dbdc_dbg.c90 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()
Dbdc_ep.c222 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-v6.6/block/
Dblk-wbt.c168 struct bdi_writeback *wb = &rwb->rqos.disk->bdi->wb; in wb_recent_wait()
306 struct backing_dev_info *bdi = rwb->rqos.disk->bdi; in latency_exceeded() local
322 trace_wbt_lat(bdi, thislat); in latency_exceeded()
346 trace_wbt_lat(bdi, stat[READ].min); in latency_exceeded()
347 trace_wbt_stat(bdi, stat); in latency_exceeded()
352 trace_wbt_stat(bdi, stat); in latency_exceeded()
359 struct backing_dev_info *bdi = rwb->rqos.disk->bdi; in rwb_trace_step() local
362 trace_wbt_step(bdi, msg, rqd->scale_step, rwb->cur_win_nsec, in rwb_trace_step()
434 trace_wbt_timer(rwb->rqos.disk->bdi, status, rqd->scale_step, inflight); in wb_timer_fn()
Dgenhd.c493 ret = bdi_register(disk->bdi, "%u:%u", in device_add_disk()
497 bdi_set_owner(disk->bdi, ddev); in device_add_disk()
499 &disk->bdi->dev->kobj, "bdi"); in device_add_disk()
534 bdi_unregister(disk->bdi); in device_add_disk()
675 bdi_unregister(disk->bdi); in del_gendisk()
1337 disk->bdi = bdi_alloc(node_id); in __alloc_disk_node()
1338 if (!disk->bdi) in __alloc_disk_node()
1376 bdi_put(disk->bdi); in __alloc_disk_node()
Dblk-settings.c151 q->disk->bdi->io_pages = max_sectors >> (PAGE_SHIFT - 9); in blk_queue_max_hw_sectors()
399 disk->bdi->ra_pages = in disk_update_readahead()
401 disk->bdi->io_pages = queue_max_sectors(q) >> (PAGE_SHIFT - 9); in disk_update_readahead()
485 q->disk->bdi->ra_pages = in blk_queue_io_opt()
Dioctl.c548 bdev->bd_disk->bdi->ra_pages = (arg * 512) / PAGE_SIZE; in blkdev_common_ioctl()
603 (bdev->bd_disk->bdi->ra_pages * PAGE_SIZE) / 512); in blkdev_ioctl()
663 (bdev->bd_disk->bdi->ra_pages * PAGE_SIZE) / 512); in compat_blkdev_ioctl()
Dblk-sysfs.c84 ra_kb = q->disk->bdi->ra_pages << (PAGE_SHIFT - 10); in queue_ra_show()
99 q->disk->bdi->ra_pages = ra_kb >> (PAGE_SHIFT - 10); in queue_ra_store()
255 q->disk->bdi->io_pages = max_sectors_kb >> (PAGE_SHIFT - 10); in queue_max_sectors_store()
Dbdev.c315 if (bdev->bd_disk && bdev->bd_disk->bdi) in bdev_free_inode()
316 bdi_put(bdev->bd_disk->bdi); in bdev_free_inode()
/Linux-v6.6/Documentation/filesystems/nfs/
Dexporting.rst221 write to one bdi (the final bdi) in order to free up writes queued
222 to another bdi (the client bdi). Such threads get a private balance
223 of dirty pages so that dirty pages for the client bdi do not imact
224 the daemon writing to the final bdi. For filesystems whose durable
/Linux-v6.6/drivers/mtd/
Dmtdcore.c2483 struct backing_dev_info *bdi; in mtd_bdi_init() local
2486 bdi = bdi_alloc(NUMA_NO_NODE); in mtd_bdi_init()
2487 if (!bdi) in mtd_bdi_init()
2489 bdi->ra_pages = 0; in mtd_bdi_init()
2490 bdi->io_pages = 0; in mtd_bdi_init()
2496 ret = bdi_register(bdi, "%.28s-0", name); in mtd_bdi_init()
2498 bdi_put(bdi); in mtd_bdi_init()
2500 return ret ? ERR_PTR(ret) : bdi; in mtd_bdi_init()
/Linux-v6.6/drivers/soc/fsl/dpio/
Dqbman-portal.h585 u8 bdi; member
/Linux-v6.6/fs/fuse/
Dfile.c1679 struct backing_dev_info *bdi = inode_to_bdi(inode); in fuse_writepage_finish() local
1683 dec_wb_stat(&bdi->wb, WB_WRITEBACK); in fuse_writepage_finish()
1685 wb_writeout_inc(&bdi->wb); in fuse_writepage_finish()
2136 struct backing_dev_info *bdi = inode_to_bdi(new_wpa->inode); in fuse_writepage_add() local
2138 dec_wb_stat(&bdi->wb, WB_WRITEBACK); in fuse_writepage_add()
2140 wb_writeout_inc(&bdi->wb); in fuse_writepage_add()

12