Home
last modified time | relevance | path

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

12

/linux-6.1.9/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-6.1.9/mm/
Dbacking-dev.c53 struct backing_dev_info *bdi = m->private; in bdi_debug_stats_show() local
54 struct bdi_writeback *wb = &bdi->wb; in bdi_debug_stats_show()
104 !list_empty(&bdi->bdi_list), bdi->wb.state); in bdi_debug_stats_show()
110 static void bdi_debug_register(struct backing_dev_info *bdi, const char *name) in bdi_debug_register() argument
112 bdi->debug_dir = debugfs_create_dir(name, bdi_debug_root); in bdi_debug_register()
114 debugfs_create_file("stats", 0444, bdi->debug_dir, bdi, in bdi_debug_register()
118 static void bdi_debug_unregister(struct backing_dev_info *bdi) in bdi_debug_unregister() argument
120 debugfs_remove_recursive(bdi->debug_dir); in bdi_debug_unregister()
126 static inline void bdi_debug_register(struct backing_dev_info *bdi, in bdi_debug_register() argument
130 static inline void bdi_debug_unregister(struct backing_dev_info *bdi) in bdi_debug_unregister() argument
[all …]
Dfadvise.c36 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()
Dpage-writeback.c187 unsigned long tot_bw = atomic_long_read(&wb->bdi->tot_write_bandwidth); in wb_min_max_ratio()
188 unsigned long long min = wb->bdi->min_ratio; in wb_min_max_ratio()
189 unsigned long long max = wb->bdi->max_ratio; in wb_min_max_ratio()
240 *minp = wb->bdi->min_ratio; in wb_min_max_ratio()
241 *maxp = wb->bdi->max_ratio; in wb_min_max_ratio()
584 wb->bdi->max_prop_frac, nr); in __wb_writeout_add()
589 wb->bdi->max_prop_frac, nr); in __wb_writeout_add()
653 int bdi_set_min_ratio(struct backing_dev_info *bdi, unsigned int min_ratio) in bdi_set_min_ratio() argument
659 if (min_ratio > bdi->max_ratio) { in bdi_set_min_ratio()
662 if (min_ratio < bdi->min_ratio) { in bdi_set_min_ratio()
[all …]
Dreadahead.c312 struct backing_dev_info *bdi = inode_to_bdi(mapping->host); in force_page_cache_ra() local
323 max_pages = max_t(unsigned long, bdi->io_pages, ra->ra_pages); in force_page_cache_ra()
569 struct backing_dev_info *bdi = inode_to_bdi(ractl->mapping->host); in ondemand_readahead() local
581 if (req_size > max_pages && bdi->io_pages > max_pages) in ondemand_readahead()
582 max_pages = min(req_size, bdi->io_pages); in ondemand_readahead()
/linux-6.1.9/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);
56 static inline bool bdi_has_dirty_io(struct backing_dev_info *bdi) in bdi_has_dirty_io() argument
62 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.h193 void wakeup_flusher_threads_bdi(struct backing_dev_info *bdi,
/linux-6.1.9/include/trace/events/
Dwbt.h17 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 …]
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-6.1.9/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>/max_ratio
59 What: /sys/class/bdi/<bdi>/stable_pages_required
/linux-6.1.9/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()
241 struct backing_dev_info *bdi = inode_to_bdi(inode); in __inode_attach_wb() local
249 wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in __inode_attach_wb()
253 wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in __inode_attach_wb()
259 wb = &bdi->wb; in __inode_attach_wb()
285 if (wb != &wb->bdi->wb) in inode_cgwb_move_to_attached()
360 static void bdi_down_write_wb_switch_rwsem(struct backing_dev_info *bdi) in bdi_down_write_wb_switch_rwsem() argument
362 down_write(&bdi->wb_switch_rwsem); in bdi_down_write_wb_switch_rwsem()
365 static void bdi_up_write_wb_switch_rwsem(struct backing_dev_info *bdi) in bdi_up_write_wb_switch_rwsem() argument
[all …]
Dsuper.c1235 s->s_bdi = bdi_get(s->s_bdev->bd_disk->bdi); in set_bdev_super()
1581 struct backing_dev_info *bdi; in super_setup_bdi_name() local
1585 bdi = bdi_alloc(NUMA_NO_NODE); in super_setup_bdi_name()
1586 if (!bdi) in super_setup_bdi_name()
1590 err = bdi_register_va(bdi, fmt, args); in super_setup_bdi_name()
1593 bdi_put(bdi); in super_setup_bdi_name()
1597 sb->s_bdi = bdi; in super_setup_bdi_name()
/linux-6.1.9/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-6.1.9/block/
Dblk-wbt.c100 struct bdi_writeback *wb = &rwb->rqos.q->disk->bdi->wb; in wb_recent_wait()
237 struct backing_dev_info *bdi = rwb->rqos.q->disk->bdi; 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->disk->bdi; in rwb_trace_step() local
293 trace_wbt_step(bdi, msg, rqd->scale_step, rwb->cur_win_nsec, in rwb_trace_step()
365 trace_wbt_timer(rwb->rqos.q->disk->bdi, status, rqd->scale_step, in wb_timer_fn()
Dgenhd.c494 ret = bdi_register(disk->bdi, "%u:%u", in device_add_disk()
498 bdi_set_owner(disk->bdi, ddev); in device_add_disk()
500 &disk->bdi->dev->kobj, "bdi"); in device_add_disk()
530 bdi_unregister(disk->bdi); in device_add_disk()
629 bdi_unregister(disk->bdi); in del_gendisk()
1368 disk->bdi = bdi_alloc(node_id); in __alloc_disk_node()
1369 if (!disk->bdi) in __alloc_disk_node()
1407 bdi_put(disk->bdi); in __alloc_disk_node()
Dblk-settings.c145 q->disk->bdi->io_pages = max_sectors >> (PAGE_SHIFT - 9); in blk_queue_max_hw_sectors()
393 disk->bdi->ra_pages = in disk_update_readahead()
395 disk->bdi->io_pages = queue_max_sectors(q) >> (PAGE_SHIFT - 9); in disk_update_readahead()
479 q->disk->bdi->ra_pages = in blk_queue_io_opt()
Dioctl.c524 bdev->bd_disk->bdi->ra_pages = (arg * 512) / PAGE_SIZE; in blkdev_common_ioctl()
589 (bdev->bd_disk->bdi->ra_pages * PAGE_SIZE) / 512); in blkdev_ioctl()
658 (bdev->bd_disk->bdi->ra_pages * PAGE_SIZE) / 512); in compat_blkdev_ioctl()
Dblk-sysfs.c97 ra_kb = q->disk->bdi->ra_pages << (PAGE_SHIFT - 10); in queue_ra_show()
112 q->disk->bdi->ra_pages = ra_kb >> (PAGE_SHIFT - 10); in queue_ra_store()
259 q->disk->bdi->io_pages = max_sectors_kb >> (PAGE_SHIFT - 10); in queue_max_sectors_store()
Dbdev.c410 if (bdev->bd_disk && bdev->bd_disk->bdi) in bdev_free_inode()
411 bdi_put(bdev->bd_disk->bdi); in bdev_free_inode()
/linux-6.1.9/drivers/mtd/
Dmtdcore.c2439 struct backing_dev_info *bdi; in mtd_bdi_init() local
2442 bdi = bdi_alloc(NUMA_NO_NODE); in mtd_bdi_init()
2443 if (!bdi) in mtd_bdi_init()
2445 bdi->ra_pages = 0; in mtd_bdi_init()
2446 bdi->io_pages = 0; in mtd_bdi_init()
2452 ret = bdi_register(bdi, "%.28s-0", name); in mtd_bdi_init()
2454 bdi_put(bdi); in mtd_bdi_init()
2456 return ret ? ERR_PTR(ret) : bdi; in mtd_bdi_init()
/linux-6.1.9/drivers/soc/fsl/dpio/
Dqbman-portal.h585 u8 bdi; member
/linux-6.1.9/fs/fuse/
Dfile.c1649 struct backing_dev_info *bdi = inode_to_bdi(inode); in fuse_writepage_finish() local
1653 dec_wb_stat(&bdi->wb, WB_WRITEBACK); in fuse_writepage_finish()
1655 wb_writeout_inc(&bdi->wb); in fuse_writepage_finish()
2106 struct backing_dev_info *bdi = inode_to_bdi(new_wpa->inode); in fuse_writepage_add() local
2108 dec_wb_stat(&bdi->wb, WB_WRITEBACK); in fuse_writepage_add()
2110 wb_writeout_inc(&bdi->wb); in fuse_writepage_add()
/linux-6.1.9/fs/gfs2/
Dsuper.c430 struct backing_dev_info *bdi = inode_to_bdi(metamapping->host); in gfs2_write_inode() local
438 if (bdi->wb.dirty_exceeded) in gfs2_write_inode()

12