Home
last modified time | relevance | path

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

12

/linux-6.12.1/drivers/power/supply/
Dbq24190_charger.c251 int (*check_chip)(struct bq24190_dev_info *bdi);
252 int (*set_chg_config)(struct bq24190_dev_info *bdi, const u8 chg_config);
253 int (*set_otg_vbus)(struct bq24190_dev_info *bdi, bool enable);
258 static int bq24190_charger_set_charge_type(struct bq24190_dev_info *bdi,
286 static int bq24190_read(struct bq24190_dev_info *bdi, u8 reg, u8 *data) in bq24190_read() argument
290 ret = i2c_smbus_read_byte_data(bdi->client, reg); in bq24190_read()
298 static int bq24190_write(struct bq24190_dev_info *bdi, u8 reg, u8 data) in bq24190_write() argument
300 return i2c_smbus_write_byte_data(bdi->client, reg, data); in bq24190_write()
303 static int bq24190_read_mask(struct bq24190_dev_info *bdi, u8 reg, in bq24190_read_mask() argument
309 ret = bq24190_read(bdi, reg, &v); in bq24190_read_mask()
[all …]
/linux-6.12.1/mm/
Dbacking-dev.c87 static void bdi_collect_stats(struct backing_dev_info *bdi, in bdi_collect_stats() argument
93 list_for_each_entry_rcu(wb, &bdi->wb_list, bdi_node) { in bdi_collect_stats()
103 static void bdi_collect_stats(struct backing_dev_info *bdi, in bdi_collect_stats() argument
106 collect_wb_stats(stats, &bdi->wb); in bdi_collect_stats()
112 struct backing_dev_info *bdi = m->private; in bdi_debug_stats_show() local
122 bdi_collect_stats(bdi, &stats); in bdi_debug_stats_show()
123 tot_bw = atomic_long_read(&bdi->tot_write_bandwidth); in bdi_debug_stats_show()
152 !list_empty(&bdi->bdi_list), bdi->wb.state); in bdi_debug_stats_show()
195 struct backing_dev_info *bdi = m->private; in cgwb_debug_stats_show() local
203 list_for_each_entry_rcu(wb, &bdi->wb_list, bdi_node) { in cgwb_debug_stats_show()
[all …]
Dpage-writeback.c190 unsigned long tot_bw = atomic_long_read(&wb->bdi->tot_write_bandwidth); in wb_min_max_ratio()
191 unsigned long long min = wb->bdi->min_ratio; in wb_min_max_ratio()
192 unsigned long long max = wb->bdi->max_ratio; in wb_min_max_ratio()
243 *minp = wb->bdi->min_ratio; in wb_min_max_ratio()
244 *maxp = wb->bdi->max_ratio; in wb_min_max_ratio()
609 wb->bdi->max_prop_frac, nr); in __wb_writeout_add()
614 wb->bdi->max_prop_frac, nr); in __wb_writeout_add()
712 static int __bdi_set_min_ratio(struct backing_dev_info *bdi, unsigned int min_ratio) in __bdi_set_min_ratio() argument
721 if (min_ratio > bdi->max_ratio) { in __bdi_set_min_ratio()
724 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.c332 struct backing_dev_info *bdi = inode_to_bdi(mapping->host); in force_page_cache_ra() local
342 max_pages = max_t(unsigned long, bdi->io_pages, ra->ra_pages); in force_page_cache_ra()
526 struct backing_dev_info *bdi = inode_to_bdi(ractl->mapping->host); in ractl_max_pages() local
533 if (req_size > max_pages && bdi->io_pages > max_pages) in ractl_max_pages()
534 max_pages = min(req_size, bdi->io_pages); in ractl_max_pages()
/linux-6.12.1/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);
54 static inline bool bdi_has_dirty_io(struct backing_dev_info *bdi) in bdi_has_dirty_io() argument
60 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
219 if (wb != &wb->bdi->wb) in wb_tryget()
230 if (wb != &wb->bdi->wb) in wb_get()
241 if (WARN_ON_ONCE(!wb->bdi)) { in wb_put_many()
249 if (wb != &wb->bdi->wb) in wb_put_many()
Dwriteback.h198 void wakeup_flusher_threads_bdi(struct backing_dev_info *bdi,
/linux-6.12.1/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.h118 struct backing_dev_info *bdi = inode_to_bdi(inode);
121 strscpy_pad(__entry->name, bdi_dev_name(bdi), 32);
231 strscpy_pad(__entry->name, bdi_dev_name(old_wb->bdi), 32);
264 strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32);
265 __entry->bdi_id = wb->bdi->id;
297 strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32);
370 strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32);
423 strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32);
439 TP_PROTO(struct backing_dev_info *bdi),
440 TP_ARGS(bdi),
[all …]
/linux-6.12.1/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-6.12.1/tools/writeback/
Dwb_monitor.py93 bdi_name = wb.bdi.dev_name.string_().decode()
96 if wb == wb.bdi.wb.address_of_():
112 def __init__(self, bdi): argument
113 self.name = bdi.dev_name.string_().decode()
136 if args.bdi:
137 for r in args.bdi:
152 … for bdi in list_for_each_entry('struct backing_dev_info', bdi_list.address_of_(), 'bdi_list'):
153 bdi_stats = BdiStats(bdi)
157 … for wb in list_for_each_entry('struct bdi_writeback', bdi.wb_list.address_of_(), 'bdi_node'):
/linux-6.12.1/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()
266 struct backing_dev_info *bdi = inode_to_bdi(inode); in __inode_attach_wb() local
274 wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in __inode_attach_wb()
278 wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in __inode_attach_wb()
284 wb = &bdi->wb; in __inode_attach_wb()
311 if (wb != &wb->bdi->wb) in inode_cgwb_move_to_attached()
386 static void bdi_down_write_wb_switch_rwsem(struct backing_dev_info *bdi) in bdi_down_write_wb_switch_rwsem() argument
388 down_write(&bdi->wb_switch_rwsem); in bdi_down_write_wb_switch_rwsem()
391 static void bdi_up_write_wb_switch_rwsem(struct backing_dev_info *bdi) in bdi_up_write_wb_switch_rwsem() argument
[all …]
Dsuper.c1585 sb->s_bdi = bdi_get(bdev->bd_disk->bdi); in setup_bdev_super()
1864 struct backing_dev_info *bdi; in super_setup_bdi_name() local
1868 bdi = bdi_alloc(NUMA_NO_NODE); in super_setup_bdi_name()
1869 if (!bdi) in super_setup_bdi_name()
1873 err = bdi_register_va(bdi, fmt, args); in super_setup_bdi_name()
1876 bdi_put(bdi); in super_setup_bdi_name()
1880 sb->s_bdi = bdi; in super_setup_bdi_name()
/linux-6.12.1/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.12.1/block/
Dblk-wbt.c167 struct backing_dev_info *bdi = rwb->rqos.disk->bdi; in wb_recent_wait() local
169 return time_before(jiffies, bdi->last_bdp_sleep + HZ); in wb_recent_wait()
305 struct backing_dev_info *bdi = rwb->rqos.disk->bdi; in latency_exceeded() local
321 trace_wbt_lat(bdi, thislat); in latency_exceeded()
345 trace_wbt_lat(bdi, stat[READ].min); in latency_exceeded()
346 trace_wbt_stat(bdi, stat); in latency_exceeded()
351 trace_wbt_stat(bdi, stat); in latency_exceeded()
358 struct backing_dev_info *bdi = rwb->rqos.disk->bdi; in rwb_trace_step() local
361 trace_wbt_step(bdi, msg, rqd->scale_step, rwb->cur_win_nsec, in rwb_trace_step()
433 trace_wbt_timer(rwb->rqos.disk->bdi, status, rqd->scale_step, inflight); 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()
527 blk_apply_bdi_limits(disk->bdi, &disk->queue->limits); in device_add_disk()
534 bdi_unregister(disk->bdi); in device_add_disk()
683 bdi_unregister(disk->bdi); in del_gendisk()
1349 disk->bdi = bdi_alloc(node_id); in __alloc_disk_node()
1350 if (!disk->bdi) in __alloc_disk_node()
1389 bdi_put(disk->bdi); in __alloc_disk_node()
Dblk-settings.c58 void blk_apply_bdi_limits(struct backing_dev_info *bdi, in blk_apply_bdi_limits() argument
65 bdi->ra_pages = max(lim->io_opt * 2 / PAGE_SIZE, VM_READAHEAD_PAGES); in blk_apply_bdi_limits()
66 bdi->io_pages = lim->max_sectors >> PAGE_SECTORS_SHIFT; in blk_apply_bdi_limits()
415 blk_apply_bdi_limits(q->disk->bdi, lim); in queue_limits_commit_update()
Dioctl.c610 bdev->bd_disk->bdi->ra_pages = (arg * 512) / PAGE_SIZE; in blkdev_common_ioctl()
666 (bdev->bd_disk->bdi->ra_pages * PAGE_SIZE) / 512); in blkdev_ioctl()
726 (bdev->bd_disk->bdi->ra_pages * PAGE_SIZE) / 512); in compat_blkdev_ioctl()
Dblk-sysfs.c81 return queue_var_show(disk->bdi->ra_pages << (PAGE_SHIFT - 10), page); in queue_ra_show()
93 disk->bdi->ra_pages = ra_kb >> (PAGE_SHIFT - 10); in queue_ra_store()
Dbdev.c345 if (bdev->bd_disk && bdev->bd_disk->bdi) in bdev_free_inode()
346 bdi_put(bdev->bd_disk->bdi); in bdev_free_inode()
/linux-6.12.1/Documentation/filesystems/nfs/
Dexporting.rst218 write to one bdi (the final bdi) in order to free up writes queued
219 to another bdi (the client bdi). Such threads get a private balance
220 of dirty pages so that dirty pages for the client bdi do not imact
221 the daemon writing to the final bdi. For filesystems whose durable
/linux-6.12.1/drivers/mtd/
Dmtdcore.c2497 struct backing_dev_info *bdi; in mtd_bdi_init() local
2500 bdi = bdi_alloc(NUMA_NO_NODE); in mtd_bdi_init()
2501 if (!bdi) in mtd_bdi_init()
2503 bdi->ra_pages = 0; in mtd_bdi_init()
2504 bdi->io_pages = 0; in mtd_bdi_init()
2510 ret = bdi_register(bdi, "%.28s-0", name); in mtd_bdi_init()
2512 bdi_put(bdi); in mtd_bdi_init()
2514 return ret ? ERR_PTR(ret) : bdi; in mtd_bdi_init()
/linux-6.12.1/drivers/soc/fsl/dpio/
Dqbman-portal.h585 u8 bdi; member

12