/openbmc/linux/drivers/power/supply/ |
H A D | bq24190_charger.c | 676 if (bdi->ichg) { in bq24190_set_config() 687 if (bdi->vreg) { in bq24190_set_config() 850 v = bdi->f_reg; in bq24190_charger_get_health() 1392 v = bdi->f_reg; in bq24190_battery_get_health() 1730 return bq24190_read(bdi, BQ24190_REG_SS, &bdi->ss_reg); in bq24190_hw_init() 1774 bdi->ichg = bdi->ichg_max = v; in bq24190_get_config() 1778 bdi->vreg = bdi->vreg_max = v; in bq24190_get_config() 1798 bdi = devm_kzalloc(dev, sizeof(*bdi), GFP_KERNEL); in bq24190_probe() 1799 if (!bdi) { in bq24190_probe() 1880 ret = bq24190_configure_usb_otg(bdi, bdi->ss_reg); in bq24190_probe() [all …]
|
/openbmc/linux/mm/ |
H A D | backing-dev.c | 102 !list_empty(&bdi->bdi_list), bdi->wb.state); in bdi_debug_stats_show() 112 debugfs_create_file("stats", 0444, bdi->debug_dir, bdi, in bdi_debug_register() 420 wb->bdi = bdi; in wb_init() 526 struct backing_dev_info *bdi = wb->bdi; in cgwb_release_workfn() local 749 ret = wb_init(&bdi->wb, bdi, GFP_KERNEL); in cgwb_bdi_init() 872 list_add_tail_rcu(&bdi->wb.bdi_node, &bdi->wb_list); in cgwb_bdi_register() 895 return wb_init(&bdi->wb, bdi, GFP_KERNEL); in cgwb_bdi_init() 902 list_add_tail_rcu(&bdi->wb.bdi_node, &bdi->wb_list); in cgwb_bdi_register() 933 if (!bdi) in bdi_alloc() 944 return bdi; in bdi_alloc() [all …]
|
H A D | page-writeback.c | 241 *minp = wb->bdi->min_ratio; in wb_min_max_ratio() 242 *maxp = wb->bdi->max_ratio; in wb_min_max_ratio() 720 if (min_ratio > bdi->max_ratio) { in __bdi_set_min_ratio() 726 bdi->min_ratio = min_ratio; in __bdi_set_min_ratio() 731 bdi->min_ratio = min_ratio; in __bdi_set_min_ratio() 750 if (bdi->min_ratio > max_ratio) { in __bdi_set_max_ratio() 753 bdi->max_ratio = max_ratio; in __bdi_set_max_ratio() 1709 struct backing_dev_info *bdi = wb->bdi; in balance_dirty_pages() local 1946 bdi->last_bdp_sleep = jiffies; in balance_dirty_pages() 2030 wb = &bdi->wb; in balance_dirty_pages_ratelimited_flags() [all …]
|
H A 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()
|
H A D | readahead.c | 311 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() 554 struct backing_dev_info *bdi = inode_to_bdi(ractl->mapping->host); in ondemand_readahead() local 566 if (req_size > max_pages && bdi->io_pages > max_pages) in ondemand_readahead() 567 max_pages = min(req_size, bdi->io_pages); in ondemand_readahead()
|
/openbmc/linux/include/linux/ |
H A D | backing-dev.h | 22 kref_get(&bdi->refcnt); in bdi_get() 23 return bdi; in bdi_get() 27 void bdi_put(struct backing_dev_info *bdi); 35 void bdi_unregister(struct backing_dev_info *bdi); 131 int bdi_init(struct backing_dev_info *bdi); 179 (bdi->capabilities & BDI_CAP_WRITEBACK) && in inode_cgwb_enabled() 198 return &bdi->wb; in wb_find_current() 226 wb = wb_find_current(bdi); in wb_get_create_current() 235 wb = wb_get_create(bdi, memcg_css, gfp); in wb_get_create_current() 330 return &bdi->wb; in wb_find_current() [all …]
|
H A D | backing-dev-defs.h | 78 #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()
|
/openbmc/linux/include/trace/events/ |
H A D | wbt.h | 17 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), 134 TP_ARGS(bdi, status, step, inflight), [all …]
|
H A D | writeback.h | 257 __entry->bdi_id = wb->bdi->id; 431 TP_PROTO(struct backing_dev_info *bdi), 432 TP_ARGS(bdi), 446 TP_ARGS(wbc, bdi), 495 TP_ARGS(wbc, bdi)) 584 __array(char, bdi, 32) 595 strscpy_pad(__entry->bdi, bdi_dev_name(wb->bdi), 32); 610 __entry->bdi, 641 __array( char, bdi, 32) 660 strscpy_pad(__entry->bdi, bdi_dev_name(wb->bdi), 32); [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-bdi | 1 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 …]
|
/openbmc/linux/fs/ |
H A D | fs-writeback.c | 93 &wb->bdi->tot_write_bandwidth); in wb_io_lists_populated() 260 wb = &bdi->wb; in __inode_attach_wb() 287 if (wb != &wb->bdi->wb) in inode_cgwb_move_to_attached() 1041 struct backing_dev_info *bdi; in cgroup_writeback_by_id() local 1049 bdi = bdi_get_by_id(bdi_id); in cgroup_writeback_by_id() 1050 if (!bdi) in cgroup_writeback_by_id() 1105 bdi_put(bdi); in cgroup_writeback_by_id() 2311 if (!bdi_has_dirty_io(bdi)) in __wakeup_flusher_threads_bdi() 2331 struct backing_dev_info *bdi; in wakeup_flusher_threads() local 2364 struct backing_dev_info *bdi; in wakeup_dirtytime_writeback() local [all …]
|
H A D | super.c | 1532 sb->s_bdi = bdi_get(bdev->bd_disk->bdi); in setup_bdev_super() 1814 struct backing_dev_info *bdi; in super_setup_bdi_name() local 1818 bdi = bdi_alloc(NUMA_NO_NODE); in super_setup_bdi_name() 1819 if (!bdi) in super_setup_bdi_name() 1823 err = bdi_register_va(bdi, fmt, args); in super_setup_bdi_name() 1826 bdi_put(bdi); in super_setup_bdi_name() 1830 sb->s_bdi = bdi; in super_setup_bdi_name()
|
/openbmc/linux/drivers/usb/gadget/udc/bdc/ |
H A 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()
|
H A 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()
|
/openbmc/qemu/block/ |
H A D | filter-compress.c | 105 BlockDriverInfo bdi; in compress_refresh_limits() local 112 ret = bdrv_get_info(bs->file->bs, &bdi); in compress_refresh_limits() 113 if (ret < 0 || bdi.cluster_size == 0) { in compress_refresh_limits() 117 bs->bl.request_alignment = bdi.cluster_size; in compress_refresh_limits()
|
H A D | dirty-bitmap.c | 500 BlockDriverInfo bdi; in bdrv_get_default_bitmap_granularity() local 503 if (bdrv_get_info(bs, &bdi) >= 0 && bdi.cluster_size > 0) { in bdrv_get_default_bitmap_granularity() 504 granularity = MAX(4096, bdi.cluster_size); in bdrv_get_default_bitmap_granularity()
|
H A D | qapi.c | 233 BlockDriverInfo bdi; in bdrv_do_query_node_info() local 255 if (bdrv_get_info(bs, &bdi) >= 0) { in bdrv_do_query_node_info() 256 if (bdi.cluster_size != 0) { in bdrv_do_query_node_info() 257 info->cluster_size = bdi.cluster_size; in bdrv_do_query_node_info() 260 info->dirty_flag = bdi.is_dirty; in bdrv_do_query_node_info()
|
/openbmc/linux/block/ |
H A D | blk-wbt.c | 168 struct backing_dev_info *bdi = rwb->rqos.disk->bdi; in wb_recent_wait() local 170 return time_before(jiffies, bdi->last_bdp_sleep + HZ); 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()
|
H A D | genhd.c | 493 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() 533 bdi_unregister(disk->bdi); in device_add_disk() 675 bdi_unregister(disk->bdi); in del_gendisk() 1345 disk->bdi = bdi_alloc(node_id); in __alloc_disk_node() 1346 if (!disk->bdi) in __alloc_disk_node() 1384 bdi_put(disk->bdi); in __alloc_disk_node()
|
H A D | blk-settings.c | 151 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()
|
H A D | ioctl.c | 550 bdev->bd_disk->bdi->ra_pages = (arg * 512) / PAGE_SIZE; in blkdev_common_ioctl() 605 (bdev->bd_disk->bdi->ra_pages * PAGE_SIZE) / 512); in blkdev_ioctl() 665 (bdev->bd_disk->bdi->ra_pages * PAGE_SIZE) / 512); in compat_blkdev_ioctl()
|
/openbmc/linux/Documentation/filesystems/nfs/ |
H A D | exporting.rst | 221 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
|
/openbmc/qemu/include/block/ |
H A D | block-io.h | 195 bdrv_co_get_info(BlockDriverState *bs, BlockDriverInfo *bdi); 198 bdrv_get_info(BlockDriverState *bs, BlockDriverInfo *bdi);
|
/openbmc/qemu/hw/nvme/ |
H A D | ns.c | 33 BlockDriverInfo bdi; in nvme_ns_init_format() local 52 ret = bdrv_get_info(blk_bs(ns->blkconf.blk), &bdi); in nvme_ns_init_format() 53 if (ret >= 0 && bdi.cluster_size > ns->blkconf.discard_granularity) { in nvme_ns_init_format() 54 npdg = bdi.cluster_size / ns->lbasz; in nvme_ns_init_format()
|
/openbmc/linux/drivers/mtd/ |
H A D | mtdcore.c | 2487 struct backing_dev_info *bdi; in mtd_bdi_init() local 2490 bdi = bdi_alloc(NUMA_NO_NODE); in mtd_bdi_init() 2491 if (!bdi) in mtd_bdi_init() 2493 bdi->ra_pages = 0; in mtd_bdi_init() 2494 bdi->io_pages = 0; in mtd_bdi_init() 2500 ret = bdi_register(bdi, "%.28s-0", name); in mtd_bdi_init() 2502 bdi_put(bdi); in mtd_bdi_init() 2504 return ret ? ERR_PTR(ret) : bdi; in mtd_bdi_init()
|