bdi               236 block/blk-wbt.c 	struct backing_dev_info *bdi = rwb->rqos.q->backing_dev_info;
bdi               252 block/blk-wbt.c 		trace_wbt_lat(bdi, thislat);
bdi               276 block/blk-wbt.c 		trace_wbt_lat(bdi, stat[READ].min);
bdi               277 block/blk-wbt.c 		trace_wbt_stat(bdi, stat);
bdi               282 block/blk-wbt.c 		trace_wbt_stat(bdi, stat);
bdi               289 block/blk-wbt.c 	struct backing_dev_info *bdi = rwb->rqos.q->backing_dev_info;
bdi               292 block/blk-wbt.c 	trace_wbt_step(bdi, msg, rqd->scale_step, rwb->cur_win_nsec,
bdi               922 drivers/block/drbd/drbd_req.c 	struct backing_dev_info *bdi;
bdi               927 drivers/block/drbd/drbd_req.c 		bdi = device->ldev->backing_bdev->bd_disk->queue->backing_dev_info;
bdi               928 drivers/block/drbd/drbd_req.c 		return bdi_read_congested(bdi);
bdi              1813 drivers/md/dm.c 			struct backing_dev_info *bdi = md->queue->backing_dev_info;
bdi              1814 drivers/md/dm.c 			r = bdi->wb.congested->state & bdi_bits;
bdi              1940 drivers/mtd/mtdcore.c 	struct backing_dev_info *bdi;
bdi              1943 drivers/mtd/mtdcore.c 	bdi = bdi_alloc(GFP_KERNEL);
bdi              1944 drivers/mtd/mtdcore.c 	if (!bdi)
bdi              1947 drivers/mtd/mtdcore.c 	bdi->name = name;
bdi              1952 drivers/mtd/mtdcore.c 	ret = bdi_register(bdi, "%.28s-0", name);
bdi              1954 drivers/mtd/mtdcore.c 		bdi_put(bdi);
bdi              1956 drivers/mtd/mtdcore.c 	return ret ? ERR_PTR(ret) : bdi;
bdi              3282 drivers/net/wireless/broadcom/b43/tables_nphy.c 	check(bdi, BDI);
bdi               242 drivers/power/supply/bq24190_charger.c static int bq24190_read(struct bq24190_dev_info *bdi, u8 reg, u8 *data)
bdi               246 drivers/power/supply/bq24190_charger.c 	ret = i2c_smbus_read_byte_data(bdi->client, reg);
bdi               254 drivers/power/supply/bq24190_charger.c static int bq24190_write(struct bq24190_dev_info *bdi, u8 reg, u8 data)
bdi               256 drivers/power/supply/bq24190_charger.c 	return i2c_smbus_write_byte_data(bdi->client, reg, data);
bdi               259 drivers/power/supply/bq24190_charger.c static int bq24190_read_mask(struct bq24190_dev_info *bdi, u8 reg,
bdi               265 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read(bdi, reg, &v);
bdi               276 drivers/power/supply/bq24190_charger.c static int bq24190_write_mask(struct bq24190_dev_info *bdi, u8 reg,
bdi               282 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read(bdi, reg, &v);
bdi               289 drivers/power/supply/bq24190_charger.c 	return bq24190_write(bdi, reg, v);
bdi               292 drivers/power/supply/bq24190_charger.c static int bq24190_get_field_val(struct bq24190_dev_info *bdi,
bdi               300 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read_mask(bdi, reg, mask, shift, &v);
bdi               310 drivers/power/supply/bq24190_charger.c static int bq24190_set_field_val(struct bq24190_dev_info *bdi,
bdi               319 drivers/power/supply/bq24190_charger.c 	return bq24190_write_mask(bdi, reg, mask, shift, idx);
bdi               440 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi = power_supply_get_drvdata(psy);
bdi               450 drivers/power/supply/bq24190_charger.c 	ret = pm_runtime_get_sync(bdi->dev);
bdi               454 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read_mask(bdi, info->reg, info->mask, info->shift, &v);
bdi               460 drivers/power/supply/bq24190_charger.c 	pm_runtime_mark_last_busy(bdi->dev);
bdi               461 drivers/power/supply/bq24190_charger.c 	pm_runtime_put_autosuspend(bdi->dev);
bdi               470 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi = power_supply_get_drvdata(psy);
bdi               483 drivers/power/supply/bq24190_charger.c 	ret = pm_runtime_get_sync(bdi->dev);
bdi               487 drivers/power/supply/bq24190_charger.c 	ret = bq24190_write_mask(bdi, info->reg, info->mask, info->shift, v);
bdi               491 drivers/power/supply/bq24190_charger.c 	pm_runtime_mark_last_busy(bdi->dev);
bdi               492 drivers/power/supply/bq24190_charger.c 	pm_runtime_put_autosuspend(bdi->dev);
bdi               501 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi = rdev_get_drvdata(dev);
bdi               504 drivers/power/supply/bq24190_charger.c 	ret = pm_runtime_get_sync(bdi->dev);
bdi               506 drivers/power/supply/bq24190_charger.c 		dev_warn(bdi->dev, "pm_runtime_get failed: %i\n", ret);
bdi               507 drivers/power/supply/bq24190_charger.c 		pm_runtime_put_noidle(bdi->dev);
bdi               511 drivers/power/supply/bq24190_charger.c 	ret = bq24190_write_mask(bdi, BQ24190_REG_POC,
bdi               515 drivers/power/supply/bq24190_charger.c 	pm_runtime_mark_last_busy(bdi->dev);
bdi               516 drivers/power/supply/bq24190_charger.c 	pm_runtime_put_autosuspend(bdi->dev);
bdi               533 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi = rdev_get_drvdata(dev);
bdi               537 drivers/power/supply/bq24190_charger.c 	ret = pm_runtime_get_sync(bdi->dev);
bdi               539 drivers/power/supply/bq24190_charger.c 		dev_warn(bdi->dev, "pm_runtime_get failed: %i\n", ret);
bdi               540 drivers/power/supply/bq24190_charger.c 		pm_runtime_put_noidle(bdi->dev);
bdi               544 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read_mask(bdi, BQ24190_REG_POC,
bdi               548 drivers/power/supply/bq24190_charger.c 	pm_runtime_mark_last_busy(bdi->dev);
bdi               549 drivers/power/supply/bq24190_charger.c 	pm_runtime_put_autosuspend(bdi->dev);
bdi               576 drivers/power/supply/bq24190_charger.c static int bq24190_register_vbus_regulator(struct bq24190_dev_info *bdi)
bdi               578 drivers/power/supply/bq24190_charger.c 	struct bq24190_platform_data *pdata = bdi->dev->platform_data;
bdi               583 drivers/power/supply/bq24190_charger.c 	cfg.dev = bdi->dev;
bdi               588 drivers/power/supply/bq24190_charger.c 	cfg.driver_data = bdi;
bdi               589 drivers/power/supply/bq24190_charger.c 	reg = devm_regulator_register(bdi->dev, &bq24190_vbus_desc, &cfg);
bdi               592 drivers/power/supply/bq24190_charger.c 		dev_err(bdi->dev, "Can't register regulator: %d\n", ret);
bdi               598 drivers/power/supply/bq24190_charger.c static int bq24190_register_vbus_regulator(struct bq24190_dev_info *bdi)
bdi               604 drivers/power/supply/bq24190_charger.c static int bq24190_set_config(struct bq24190_dev_info *bdi)
bdi               609 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read(bdi, BQ24190_REG_CTTC, &v);
bdi               613 drivers/power/supply/bq24190_charger.c 	bdi->watchdog = ((v & BQ24190_REG_CTTC_WATCHDOG_MASK) >>
bdi               626 drivers/power/supply/bq24190_charger.c 	ret = bq24190_write(bdi, BQ24190_REG_CTTC, v);
bdi               630 drivers/power/supply/bq24190_charger.c 	if (bdi->sys_min) {
bdi               631 drivers/power/supply/bq24190_charger.c 		v = bdi->sys_min / 100 - 30; // manual section 9.5.1.2, table 9
bdi               632 drivers/power/supply/bq24190_charger.c 		ret = bq24190_write_mask(bdi, BQ24190_REG_POC,
bdi               640 drivers/power/supply/bq24190_charger.c 	if (bdi->iprechg) {
bdi               641 drivers/power/supply/bq24190_charger.c 		v = bdi->iprechg / 128 - 1; // manual section 9.5.1.4, table 11
bdi               642 drivers/power/supply/bq24190_charger.c 		ret = bq24190_write_mask(bdi, BQ24190_REG_PCTCC,
bdi               650 drivers/power/supply/bq24190_charger.c 	if (bdi->iterm) {
bdi               651 drivers/power/supply/bq24190_charger.c 		v = bdi->iterm / 128 - 1; // manual section 9.5.1.4, table 11
bdi               652 drivers/power/supply/bq24190_charger.c 		ret = bq24190_write_mask(bdi, BQ24190_REG_PCTCC,
bdi               663 drivers/power/supply/bq24190_charger.c static int bq24190_register_reset(struct bq24190_dev_info *bdi)
bdi               678 drivers/power/supply/bq24190_charger.c 	if (device_property_read_bool(bdi->dev, "disable-reset"))
bdi               682 drivers/power/supply/bq24190_charger.c 	ret = bq24190_write_mask(bdi, BQ24190_REG_POC,
bdi               691 drivers/power/supply/bq24190_charger.c 		ret = bq24190_read_mask(bdi, BQ24190_REG_POC,
bdi               709 drivers/power/supply/bq24190_charger.c static int bq24190_charger_get_charge_type(struct bq24190_dev_info *bdi,
bdi               715 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read_mask(bdi, BQ24190_REG_POC,
bdi               726 drivers/power/supply/bq24190_charger.c 		ret = bq24190_read_mask(bdi, BQ24190_REG_CCC,
bdi               742 drivers/power/supply/bq24190_charger.c static int bq24190_charger_set_charge_type(struct bq24190_dev_info *bdi,
bdi               777 drivers/power/supply/bq24190_charger.c 		ret = bq24190_write_mask(bdi, BQ24190_REG_CCC,
bdi               784 drivers/power/supply/bq24190_charger.c 		ret = bq24190_write_mask(bdi, BQ24190_REG_CTTC,
bdi               792 drivers/power/supply/bq24190_charger.c 	return bq24190_write_mask(bdi, BQ24190_REG_POC,
bdi               797 drivers/power/supply/bq24190_charger.c static int bq24190_charger_get_health(struct bq24190_dev_info *bdi,
bdi               803 drivers/power/supply/bq24190_charger.c 	mutex_lock(&bdi->f_reg_lock);
bdi               804 drivers/power/supply/bq24190_charger.c 	v = bdi->f_reg;
bdi               805 drivers/power/supply/bq24190_charger.c 	mutex_unlock(&bdi->f_reg_lock);
bdi               862 drivers/power/supply/bq24190_charger.c static int bq24190_charger_get_online(struct bq24190_dev_info *bdi,
bdi               868 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read_mask(bdi, BQ24190_REG_SS,
bdi               874 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read_mask(bdi, BQ24190_REG_MOC,
bdi               885 drivers/power/supply/bq24190_charger.c static int bq24190_battery_set_online(struct bq24190_dev_info *bdi,
bdi               887 drivers/power/supply/bq24190_charger.c static int bq24190_battery_get_status(struct bq24190_dev_info *bdi,
bdi               889 drivers/power/supply/bq24190_charger.c static int bq24190_battery_get_temp_alert_max(struct bq24190_dev_info *bdi,
bdi               891 drivers/power/supply/bq24190_charger.c static int bq24190_battery_set_temp_alert_max(struct bq24190_dev_info *bdi,
bdi               894 drivers/power/supply/bq24190_charger.c static int bq24190_charger_set_online(struct bq24190_dev_info *bdi,
bdi               897 drivers/power/supply/bq24190_charger.c 	return bq24190_battery_set_online(bdi, val);
bdi               900 drivers/power/supply/bq24190_charger.c static int bq24190_charger_get_status(struct bq24190_dev_info *bdi,
bdi               903 drivers/power/supply/bq24190_charger.c 	return bq24190_battery_get_status(bdi, val);
bdi               906 drivers/power/supply/bq24190_charger.c static int bq24190_charger_get_temp_alert_max(struct bq24190_dev_info *bdi,
bdi               909 drivers/power/supply/bq24190_charger.c 	return bq24190_battery_get_temp_alert_max(bdi, val);
bdi               912 drivers/power/supply/bq24190_charger.c static int bq24190_charger_set_temp_alert_max(struct bq24190_dev_info *bdi,
bdi               915 drivers/power/supply/bq24190_charger.c 	return bq24190_battery_set_temp_alert_max(bdi, val);
bdi               918 drivers/power/supply/bq24190_charger.c static int bq24190_charger_get_precharge(struct bq24190_dev_info *bdi,
bdi               924 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read_mask(bdi, BQ24190_REG_PCTCC,
bdi               934 drivers/power/supply/bq24190_charger.c static int bq24190_charger_get_charge_term(struct bq24190_dev_info *bdi,
bdi               940 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read_mask(bdi, BQ24190_REG_PCTCC,
bdi               950 drivers/power/supply/bq24190_charger.c static int bq24190_charger_get_current(struct bq24190_dev_info *bdi,
bdi               956 drivers/power/supply/bq24190_charger.c 	ret = bq24190_get_field_val(bdi, BQ24190_REG_CCC,
bdi               963 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read_mask(bdi, BQ24190_REG_CCC,
bdi               977 drivers/power/supply/bq24190_charger.c static int bq24190_charger_get_current_max(struct bq24190_dev_info *bdi,
bdi               986 drivers/power/supply/bq24190_charger.c static int bq24190_charger_set_current(struct bq24190_dev_info *bdi,
bdi               992 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read_mask(bdi, BQ24190_REG_CCC,
bdi              1002 drivers/power/supply/bq24190_charger.c 	return bq24190_set_field_val(bdi, BQ24190_REG_CCC,
bdi              1008 drivers/power/supply/bq24190_charger.c static int bq24190_charger_get_voltage(struct bq24190_dev_info *bdi,
bdi              1013 drivers/power/supply/bq24190_charger.c 	ret = bq24190_get_field_val(bdi, BQ24190_REG_CVC,
bdi              1024 drivers/power/supply/bq24190_charger.c static int bq24190_charger_get_voltage_max(struct bq24190_dev_info *bdi,
bdi              1033 drivers/power/supply/bq24190_charger.c static int bq24190_charger_set_voltage(struct bq24190_dev_info *bdi,
bdi              1036 drivers/power/supply/bq24190_charger.c 	return bq24190_set_field_val(bdi, BQ24190_REG_CVC,
bdi              1042 drivers/power/supply/bq24190_charger.c static int bq24190_charger_get_iinlimit(struct bq24190_dev_info *bdi,
bdi              1047 drivers/power/supply/bq24190_charger.c 	ret = bq24190_get_field_val(bdi, BQ24190_REG_ISC,
bdi              1059 drivers/power/supply/bq24190_charger.c static int bq24190_charger_set_iinlimit(struct bq24190_dev_info *bdi,
bdi              1062 drivers/power/supply/bq24190_charger.c 	return bq24190_set_field_val(bdi, BQ24190_REG_ISC,
bdi              1072 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi = power_supply_get_drvdata(psy);
bdi              1075 drivers/power/supply/bq24190_charger.c 	dev_dbg(bdi->dev, "prop: %d\n", psp);
bdi              1077 drivers/power/supply/bq24190_charger.c 	ret = pm_runtime_get_sync(bdi->dev);
bdi              1083 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_get_charge_type(bdi, val);
bdi              1086 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_get_health(bdi, val);
bdi              1089 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_get_online(bdi, val);
bdi              1092 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_get_status(bdi, val);
bdi              1095 drivers/power/supply/bq24190_charger.c 		ret =  bq24190_charger_get_temp_alert_max(bdi, val);
bdi              1098 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_get_precharge(bdi, val);
bdi              1101 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_get_charge_term(bdi, val);
bdi              1104 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_get_current(bdi, val);
bdi              1107 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_get_current_max(bdi, val);
bdi              1110 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_get_voltage(bdi, val);
bdi              1113 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_get_voltage_max(bdi, val);
bdi              1116 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_get_iinlimit(bdi, val);
bdi              1123 drivers/power/supply/bq24190_charger.c 		val->strval = bdi->model_name;
bdi              1134 drivers/power/supply/bq24190_charger.c 	pm_runtime_mark_last_busy(bdi->dev);
bdi              1135 drivers/power/supply/bq24190_charger.c 	pm_runtime_put_autosuspend(bdi->dev);
bdi              1144 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi = power_supply_get_drvdata(psy);
bdi              1147 drivers/power/supply/bq24190_charger.c 	dev_dbg(bdi->dev, "prop: %d\n", psp);
bdi              1149 drivers/power/supply/bq24190_charger.c 	ret = pm_runtime_get_sync(bdi->dev);
bdi              1155 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_set_online(bdi, val);
bdi              1158 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_set_temp_alert_max(bdi, val);
bdi              1161 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_set_charge_type(bdi, val);
bdi              1164 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_set_current(bdi, val);
bdi              1167 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_set_voltage(bdi, val);
bdi              1170 drivers/power/supply/bq24190_charger.c 		ret = bq24190_charger_set_iinlimit(bdi, val);
bdi              1176 drivers/power/supply/bq24190_charger.c 	pm_runtime_mark_last_busy(bdi->dev);
bdi              1177 drivers/power/supply/bq24190_charger.c 	pm_runtime_put_autosuspend(bdi->dev);
bdi              1200 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi =
bdi              1204 drivers/power/supply/bq24190_charger.c 	power_supply_set_input_current_limit_from_supplier(bdi->charger);
bdi              1210 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi = power_supply_get_drvdata(psy);
bdi              1220 drivers/power/supply/bq24190_charger.c 	queue_delayed_work(system_wq, &bdi->input_current_limit_work,
bdi              1259 drivers/power/supply/bq24190_charger.c static int bq24190_battery_get_status(struct bq24190_dev_info *bdi,
bdi              1265 drivers/power/supply/bq24190_charger.c 	mutex_lock(&bdi->f_reg_lock);
bdi              1266 drivers/power/supply/bq24190_charger.c 	chrg_fault = bdi->f_reg;
bdi              1267 drivers/power/supply/bq24190_charger.c 	mutex_unlock(&bdi->f_reg_lock);
bdi              1272 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read(bdi, BQ24190_REG_SS, &ss_reg);
bdi              1311 drivers/power/supply/bq24190_charger.c static int bq24190_battery_get_health(struct bq24190_dev_info *bdi,
bdi              1317 drivers/power/supply/bq24190_charger.c 	mutex_lock(&bdi->f_reg_lock);
bdi              1318 drivers/power/supply/bq24190_charger.c 	v = bdi->f_reg;
bdi              1319 drivers/power/supply/bq24190_charger.c 	mutex_unlock(&bdi->f_reg_lock);
bdi              1350 drivers/power/supply/bq24190_charger.c static int bq24190_battery_get_online(struct bq24190_dev_info *bdi,
bdi              1356 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read_mask(bdi, BQ24190_REG_MOC,
bdi              1366 drivers/power/supply/bq24190_charger.c static int bq24190_battery_set_online(struct bq24190_dev_info *bdi,
bdi              1369 drivers/power/supply/bq24190_charger.c 	return bq24190_write_mask(bdi, BQ24190_REG_MOC,
bdi              1374 drivers/power/supply/bq24190_charger.c static int bq24190_battery_get_temp_alert_max(struct bq24190_dev_info *bdi,
bdi              1379 drivers/power/supply/bq24190_charger.c 	ret = bq24190_get_field_val(bdi, BQ24190_REG_ICTRC,
bdi              1391 drivers/power/supply/bq24190_charger.c static int bq24190_battery_set_temp_alert_max(struct bq24190_dev_info *bdi,
bdi              1394 drivers/power/supply/bq24190_charger.c 	return bq24190_set_field_val(bdi, BQ24190_REG_ICTRC,
bdi              1404 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi = power_supply_get_drvdata(psy);
bdi              1407 drivers/power/supply/bq24190_charger.c 	dev_warn(bdi->dev, "warning: /sys/class/power_supply/bq24190-battery is deprecated\n");
bdi              1408 drivers/power/supply/bq24190_charger.c 	dev_dbg(bdi->dev, "prop: %d\n", psp);
bdi              1410 drivers/power/supply/bq24190_charger.c 	ret = pm_runtime_get_sync(bdi->dev);
bdi              1416 drivers/power/supply/bq24190_charger.c 		ret = bq24190_battery_get_status(bdi, val);
bdi              1419 drivers/power/supply/bq24190_charger.c 		ret = bq24190_battery_get_health(bdi, val);
bdi              1422 drivers/power/supply/bq24190_charger.c 		ret = bq24190_battery_get_online(bdi, val);
bdi              1430 drivers/power/supply/bq24190_charger.c 		ret = bq24190_battery_get_temp_alert_max(bdi, val);
bdi              1440 drivers/power/supply/bq24190_charger.c 	pm_runtime_mark_last_busy(bdi->dev);
bdi              1441 drivers/power/supply/bq24190_charger.c 	pm_runtime_put_autosuspend(bdi->dev);
bdi              1450 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi = power_supply_get_drvdata(psy);
bdi              1453 drivers/power/supply/bq24190_charger.c 	dev_warn(bdi->dev, "warning: /sys/class/power_supply/bq24190-battery is deprecated\n");
bdi              1454 drivers/power/supply/bq24190_charger.c 	dev_dbg(bdi->dev, "prop: %d\n", psp);
bdi              1456 drivers/power/supply/bq24190_charger.c 	ret = pm_runtime_get_sync(bdi->dev);
bdi              1462 drivers/power/supply/bq24190_charger.c 		ret = bq24190_battery_set_online(bdi, val);
bdi              1465 drivers/power/supply/bq24190_charger.c 		ret = bq24190_battery_set_temp_alert_max(bdi, val);
bdi              1471 drivers/power/supply/bq24190_charger.c 	pm_runtime_mark_last_busy(bdi->dev);
bdi              1472 drivers/power/supply/bq24190_charger.c 	pm_runtime_put_autosuspend(bdi->dev);
bdi              1513 drivers/power/supply/bq24190_charger.c static int bq24190_configure_usb_otg(struct bq24190_dev_info *bdi, u8 ss_reg)
bdi              1519 drivers/power/supply/bq24190_charger.c 	ret = extcon_set_state_sync(bdi->edev, EXTCON_USB, otg_enabled);
bdi              1521 drivers/power/supply/bq24190_charger.c 		dev_err(bdi->dev, "Can't set extcon state to %d: %d\n",
bdi              1527 drivers/power/supply/bq24190_charger.c static void bq24190_check_status(struct bq24190_dev_info *bdi)
bdi              1536 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read(bdi, BQ24190_REG_SS, &ss_reg);
bdi              1538 drivers/power/supply/bq24190_charger.c 		dev_err(bdi->dev, "Can't read SS reg: %d\n", ret);
bdi              1544 drivers/power/supply/bq24190_charger.c 		ret = bq24190_read(bdi, BQ24190_REG_F, &f_reg);
bdi              1546 drivers/power/supply/bq24190_charger.c 			dev_err(bdi->dev, "Can't read F reg: %d\n", ret);
bdi              1556 drivers/power/supply/bq24190_charger.c 	if (f_reg != bdi->f_reg) {
bdi              1557 drivers/power/supply/bq24190_charger.c 		dev_warn(bdi->dev,
bdi              1564 drivers/power/supply/bq24190_charger.c 		mutex_lock(&bdi->f_reg_lock);
bdi              1565 drivers/power/supply/bq24190_charger.c 		if ((bdi->f_reg & battery_mask_f) != (f_reg & battery_mask_f))
bdi              1567 drivers/power/supply/bq24190_charger.c 		if ((bdi->f_reg & ~battery_mask_f) != (f_reg & ~battery_mask_f))
bdi              1569 drivers/power/supply/bq24190_charger.c 		bdi->f_reg = f_reg;
bdi              1570 drivers/power/supply/bq24190_charger.c 		mutex_unlock(&bdi->f_reg_lock);
bdi              1573 drivers/power/supply/bq24190_charger.c 	if (ss_reg != bdi->ss_reg) {
bdi              1578 drivers/power/supply/bq24190_charger.c 		if ((bdi->ss_reg & BQ24190_REG_SS_PG_STAT_MASK) &&
bdi              1580 drivers/power/supply/bq24190_charger.c 			ret = bq24190_write_mask(bdi, BQ24190_REG_ISC,
bdi              1585 drivers/power/supply/bq24190_charger.c 				dev_err(bdi->dev, "Can't access ISC reg: %d\n",
bdi              1589 drivers/power/supply/bq24190_charger.c 		if ((bdi->ss_reg & battery_mask_ss) != (ss_reg & battery_mask_ss))
bdi              1591 drivers/power/supply/bq24190_charger.c 		if ((bdi->ss_reg & ~battery_mask_ss) != (ss_reg & ~battery_mask_ss))
bdi              1593 drivers/power/supply/bq24190_charger.c 		bdi->ss_reg = ss_reg;
bdi              1597 drivers/power/supply/bq24190_charger.c 		power_supply_changed(bdi->charger);
bdi              1598 drivers/power/supply/bq24190_charger.c 		bq24190_configure_usb_otg(bdi, ss_reg);
bdi              1600 drivers/power/supply/bq24190_charger.c 	if (alert_battery && bdi->battery)
bdi              1601 drivers/power/supply/bq24190_charger.c 		power_supply_changed(bdi->battery);
bdi              1603 drivers/power/supply/bq24190_charger.c 	dev_dbg(bdi->dev, "ss_reg: 0x%02x, f_reg: 0x%02x\n", ss_reg, f_reg);
bdi              1608 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi = data;
bdi              1611 drivers/power/supply/bq24190_charger.c 	bdi->irq_event = true;
bdi              1612 drivers/power/supply/bq24190_charger.c 	error = pm_runtime_get_sync(bdi->dev);
bdi              1614 drivers/power/supply/bq24190_charger.c 		dev_warn(bdi->dev, "pm_runtime_get failed: %i\n", error);
bdi              1615 drivers/power/supply/bq24190_charger.c 		pm_runtime_put_noidle(bdi->dev);
bdi              1618 drivers/power/supply/bq24190_charger.c 	bq24190_check_status(bdi);
bdi              1619 drivers/power/supply/bq24190_charger.c 	pm_runtime_mark_last_busy(bdi->dev);
bdi              1620 drivers/power/supply/bq24190_charger.c 	pm_runtime_put_autosuspend(bdi->dev);
bdi              1621 drivers/power/supply/bq24190_charger.c 	bdi->irq_event = false;
bdi              1626 drivers/power/supply/bq24190_charger.c static int bq24190_hw_init(struct bq24190_dev_info *bdi)
bdi              1632 drivers/power/supply/bq24190_charger.c 	ret = bq24190_read_mask(bdi, BQ24190_REG_VPRS,
bdi              1645 drivers/power/supply/bq24190_charger.c 		dev_err(bdi->dev, "Error unknown model: 0x%02x\n", v);
bdi              1649 drivers/power/supply/bq24190_charger.c 	ret = bq24190_register_reset(bdi);
bdi              1653 drivers/power/supply/bq24190_charger.c 	ret = bq24190_set_config(bdi);
bdi              1657 drivers/power/supply/bq24190_charger.c 	return bq24190_read(bdi, BQ24190_REG_SS, &bdi->ss_reg);
bdi              1660 drivers/power/supply/bq24190_charger.c static int bq24190_get_config(struct bq24190_dev_info *bdi)
bdi              1666 drivers/power/supply/bq24190_charger.c 	if (device_property_read_u32(bdi->dev, s, &v) == 0) {
bdi              1670 drivers/power/supply/bq24190_charger.c 			bdi->sys_min = v;
bdi              1672 drivers/power/supply/bq24190_charger.c 			dev_warn(bdi->dev, "invalid value for %s: %u\n", s, v);
bdi              1675 drivers/power/supply/bq24190_charger.c 	if (bdi->dev->of_node &&
bdi              1676 drivers/power/supply/bq24190_charger.c 	    !power_supply_get_battery_info(bdi->charger, &info)) {
bdi              1680 drivers/power/supply/bq24190_charger.c 			bdi->iprechg = v;
bdi              1682 drivers/power/supply/bq24190_charger.c 			dev_warn(bdi->dev, "invalid value for battery:precharge-current-microamp: %d\n",
bdi              1688 drivers/power/supply/bq24190_charger.c 			bdi->iterm = v;
bdi              1690 drivers/power/supply/bq24190_charger.c 			dev_warn(bdi->dev, "invalid value for battery:charge-term-current-microamp: %d\n",
bdi              1703 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi;
bdi              1711 drivers/power/supply/bq24190_charger.c 	bdi = devm_kzalloc(dev, sizeof(*bdi), GFP_KERNEL);
bdi              1712 drivers/power/supply/bq24190_charger.c 	if (!bdi) {
bdi              1717 drivers/power/supply/bq24190_charger.c 	bdi->client = client;
bdi              1718 drivers/power/supply/bq24190_charger.c 	bdi->dev = dev;
bdi              1719 drivers/power/supply/bq24190_charger.c 	strncpy(bdi->model_name, id->name, I2C_NAME_SIZE);
bdi              1720 drivers/power/supply/bq24190_charger.c 	mutex_init(&bdi->f_reg_lock);
bdi              1721 drivers/power/supply/bq24190_charger.c 	bdi->f_reg = 0;
bdi              1722 drivers/power/supply/bq24190_charger.c 	bdi->ss_reg = BQ24190_REG_SS_VBUS_STAT_MASK; /* impossible state */
bdi              1723 drivers/power/supply/bq24190_charger.c 	INIT_DELAYED_WORK(&bdi->input_current_limit_work,
bdi              1726 drivers/power/supply/bq24190_charger.c 	i2c_set_clientdata(client, bdi);
bdi              1733 drivers/power/supply/bq24190_charger.c 	bdi->edev = devm_extcon_dev_allocate(dev, bq24190_usb_extcon_cable);
bdi              1734 drivers/power/supply/bq24190_charger.c 	if (IS_ERR(bdi->edev))
bdi              1735 drivers/power/supply/bq24190_charger.c 		return PTR_ERR(bdi->edev);
bdi              1737 drivers/power/supply/bq24190_charger.c 	ret = devm_extcon_dev_register(dev, bdi->edev);
bdi              1755 drivers/power/supply/bq24190_charger.c 	charger_cfg.drv_data = bdi;
bdi              1759 drivers/power/supply/bq24190_charger.c 	bdi->charger = power_supply_register(dev, &bq24190_charger_desc,
bdi              1761 drivers/power/supply/bq24190_charger.c 	if (IS_ERR(bdi->charger)) {
bdi              1763 drivers/power/supply/bq24190_charger.c 		ret = PTR_ERR(bdi->charger);
bdi              1770 drivers/power/supply/bq24190_charger.c 		battery_cfg.drv_data = bdi;
bdi              1771 drivers/power/supply/bq24190_charger.c 		bdi->battery = power_supply_register(dev, &bq24190_battery_desc,
bdi              1773 drivers/power/supply/bq24190_charger.c 		if (IS_ERR(bdi->battery)) {
bdi              1775 drivers/power/supply/bq24190_charger.c 			ret = PTR_ERR(bdi->battery);
bdi              1780 drivers/power/supply/bq24190_charger.c 	ret = bq24190_get_config(bdi);
bdi              1786 drivers/power/supply/bq24190_charger.c 	ret = bq24190_hw_init(bdi);
bdi              1792 drivers/power/supply/bq24190_charger.c 	ret = bq24190_configure_usb_otg(bdi, bdi->ss_reg);
bdi              1796 drivers/power/supply/bq24190_charger.c 	bdi->initialized = true;
bdi              1801 drivers/power/supply/bq24190_charger.c 			"bq24190-charger", bdi);
bdi              1807 drivers/power/supply/bq24190_charger.c 	ret = bq24190_register_vbus_regulator(bdi);
bdi              1819 drivers/power/supply/bq24190_charger.c 	if (!IS_ERR_OR_NULL(bdi->battery))
bdi              1820 drivers/power/supply/bq24190_charger.c 		power_supply_unregister(bdi->battery);
bdi              1821 drivers/power/supply/bq24190_charger.c 	power_supply_unregister(bdi->charger);
bdi              1832 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi = i2c_get_clientdata(client);
bdi              1835 drivers/power/supply/bq24190_charger.c 	error = pm_runtime_get_sync(bdi->dev);
bdi              1837 drivers/power/supply/bq24190_charger.c 		dev_warn(bdi->dev, "pm_runtime_get failed: %i\n", error);
bdi              1838 drivers/power/supply/bq24190_charger.c 		pm_runtime_put_noidle(bdi->dev);
bdi              1841 drivers/power/supply/bq24190_charger.c 	bq24190_register_reset(bdi);
bdi              1842 drivers/power/supply/bq24190_charger.c 	if (bdi->battery)
bdi              1843 drivers/power/supply/bq24190_charger.c 		power_supply_unregister(bdi->battery);
bdi              1844 drivers/power/supply/bq24190_charger.c 	power_supply_unregister(bdi->charger);
bdi              1846 drivers/power/supply/bq24190_charger.c 		pm_runtime_put_sync(bdi->dev);
bdi              1847 drivers/power/supply/bq24190_charger.c 	pm_runtime_dont_use_autosuspend(bdi->dev);
bdi              1848 drivers/power/supply/bq24190_charger.c 	pm_runtime_disable(bdi->dev);
bdi              1856 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi = i2c_get_clientdata(client);
bdi              1858 drivers/power/supply/bq24190_charger.c 	if (!bdi->initialized)
bdi              1861 drivers/power/supply/bq24190_charger.c 	dev_dbg(bdi->dev, "%s\n", __func__);
bdi              1869 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi = i2c_get_clientdata(client);
bdi              1871 drivers/power/supply/bq24190_charger.c 	if (!bdi->initialized)
bdi              1874 drivers/power/supply/bq24190_charger.c 	if (!bdi->irq_event) {
bdi              1875 drivers/power/supply/bq24190_charger.c 		dev_dbg(bdi->dev, "checking events on possible wakeirq\n");
bdi              1876 drivers/power/supply/bq24190_charger.c 		bq24190_check_status(bdi);
bdi              1885 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi = i2c_get_clientdata(client);
bdi              1888 drivers/power/supply/bq24190_charger.c 	error = pm_runtime_get_sync(bdi->dev);
bdi              1890 drivers/power/supply/bq24190_charger.c 		dev_warn(bdi->dev, "pm_runtime_get failed: %i\n", error);
bdi              1891 drivers/power/supply/bq24190_charger.c 		pm_runtime_put_noidle(bdi->dev);
bdi              1894 drivers/power/supply/bq24190_charger.c 	bq24190_register_reset(bdi);
bdi              1897 drivers/power/supply/bq24190_charger.c 		pm_runtime_mark_last_busy(bdi->dev);
bdi              1898 drivers/power/supply/bq24190_charger.c 		pm_runtime_put_autosuspend(bdi->dev);
bdi              1907 drivers/power/supply/bq24190_charger.c 	struct bq24190_dev_info *bdi = i2c_get_clientdata(client);
bdi              1910 drivers/power/supply/bq24190_charger.c 	bdi->f_reg = 0;
bdi              1911 drivers/power/supply/bq24190_charger.c 	bdi->ss_reg = BQ24190_REG_SS_VBUS_STAT_MASK; /* impossible state */
bdi              1913 drivers/power/supply/bq24190_charger.c 	error = pm_runtime_get_sync(bdi->dev);
bdi              1915 drivers/power/supply/bq24190_charger.c 		dev_warn(bdi->dev, "pm_runtime_get failed: %i\n", error);
bdi              1916 drivers/power/supply/bq24190_charger.c 		pm_runtime_put_noidle(bdi->dev);
bdi              1919 drivers/power/supply/bq24190_charger.c 	bq24190_register_reset(bdi);
bdi              1920 drivers/power/supply/bq24190_charger.c 	bq24190_set_config(bdi);
bdi              1921 drivers/power/supply/bq24190_charger.c 	bq24190_read(bdi, BQ24190_REG_SS, &bdi->ss_reg);
bdi              1924 drivers/power/supply/bq24190_charger.c 		pm_runtime_mark_last_busy(bdi->dev);
bdi              1925 drivers/power/supply/bq24190_charger.c 		pm_runtime_put_autosuspend(bdi->dev);
bdi              1929 drivers/power/supply/bq24190_charger.c 	power_supply_changed(bdi->charger);
bdi              1930 drivers/power/supply/bq24190_charger.c 	if (bdi->battery)
bdi              1931 drivers/power/supply/bq24190_charger.c 		power_supply_changed(bdi->battery);
bdi               479 drivers/soc/fsl/dpio/qbman-portal.h 	u8 bdi;
bdi                90 drivers/usb/gadget/udc/bdc/bdc_dbg.c 	int tbi, bdi, gbdi;
bdi               105 drivers/usb/gadget/udc/bdc/bdc_dbg.c 		for (bdi = 0; bdi < bd_list->num_bds_table; bdi++) {
bdi               106 drivers/usb/gadget/udc/bdc/bdc_dbg.c 			bd =  bd_table->start_bd + bdi;
bdi               107 drivers/usb/gadget/udc/bdc/bdc_dbg.c 			dma = bd_table->dma + (sizeof(struct bdc_bd) * bdi);
bdi               110 drivers/usb/gadget/udc/bdc/bdc_dbg.c 				tbi, bdi, gbdi++, bd, (unsigned long long)dma,
bdi               222 drivers/usb/gadget/udc/bdc/bdc_ep.c 	int tbi, bdi;
bdi               251 drivers/usb/gadget/udc/bdc/bdc_ep.c 	bdi = (bd_dma_addr - dma_first_bd) / sizeof(struct bdc_bd);
bdi               254 drivers/usb/gadget/udc/bdc/bdc_ep.c 	return (bdi + (tbi * bd_list->num_bds_table));
bdi               258 drivers/usb/gadget/udc/bdc/bdc_ep.c static int bdi_to_tbi(struct bdc_ep *ep, int bdi)
bdi               262 drivers/usb/gadget/udc/bdc/bdc_ep.c 	tbi = bdi / ep->bd_list.num_bds_table;
bdi               265 drivers/usb/gadget/udc/bdc/bdc_ep.c 		bdi, ep->bd_list.num_bds_table, tbi);
bdi               357 drivers/usb/gadget/udc/bdc/bdc_ep.c static struct bdc_bd *bdi_to_bd(struct bdc_ep *ep, int bdi)
bdi               359 drivers/usb/gadget/udc/bdc/bdc_ep.c 	int tbi = bdi_to_tbi(ep, bdi);
bdi               362 drivers/usb/gadget/udc/bdc/bdc_ep.c 	local_bdi = bdi - (tbi * ep->bd_list.num_bds_table);
bdi               365 drivers/usb/gadget/udc/bdc/bdc_ep.c 		 __func__, bdi, local_bdi);
bdi              1617 fs/btrfs/disk-io.c 	struct backing_dev_info *bdi;
bdi              1623 fs/btrfs/disk-io.c 		bdi = device->bdev->bd_bdi;
bdi              1624 fs/btrfs/disk-io.c 		if (bdi_congested(bdi, bdi_bits)) {
bdi               533 fs/btrfs/volumes.c 	struct backing_dev_info *bdi;
bdi               553 fs/btrfs/volumes.c 	bdi = device->bdev->bd_bdi;
bdi               649 fs/btrfs/volumes.c 		if (pending && bdi_write_congested(bdi) && batch_run > 8 &&
bdi               172 fs/ext2/ialloc.c 	struct backing_dev_info *bdi;
bdi               174 fs/ext2/ialloc.c 	bdi = inode_to_bdi(inode);
bdi               175 fs/ext2/ialloc.c 	if (bdi_rw_congested(bdi))
bdi               407 fs/ext4/super.c 	struct backing_dev_info *bdi = inode_to_bdi(bd_inode);
bdi               409 fs/ext4/super.c 	return bdi->dev == NULL;
bdi                94 fs/fs-writeback.c 				&wb->bdi->tot_write_bandwidth);
bdi               105 fs/fs-writeback.c 					&wb->bdi->tot_write_bandwidth) < 0);
bdi               251 fs/fs-writeback.c 	struct backing_dev_info *bdi = inode_to_bdi(inode);
bdi               259 fs/fs-writeback.c 			wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC);
bdi               263 fs/fs-writeback.c 			wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC);
bdi               269 fs/fs-writeback.c 		wb = &bdi->wb;
bdi               341 fs/fs-writeback.c static void bdi_down_write_wb_switch_rwsem(struct backing_dev_info *bdi)
bdi               343 fs/fs-writeback.c 	down_write(&bdi->wb_switch_rwsem);
bdi               346 fs/fs-writeback.c static void bdi_up_write_wb_switch_rwsem(struct backing_dev_info *bdi)
bdi               348 fs/fs-writeback.c 	up_write(&bdi->wb_switch_rwsem);
bdi               356 fs/fs-writeback.c 	struct backing_dev_info *bdi = inode_to_bdi(inode);
bdi               368 fs/fs-writeback.c 	down_read(&bdi->wb_switch_rwsem);
bdi               457 fs/fs-writeback.c 	up_read(&bdi->wb_switch_rwsem);
bdi               491 fs/fs-writeback.c 	struct backing_dev_info *bdi = inode_to_bdi(inode);
bdi               511 fs/fs-writeback.c 		isw->new_wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC);
bdi               812 fs/fs-writeback.c 	unsigned long tot_bw = atomic_long_read(&wb->bdi->tot_write_bandwidth);
bdi               839 fs/fs-writeback.c static void bdi_split_work_to_wbs(struct backing_dev_info *bdi,
bdi               844 fs/fs-writeback.c 	struct bdi_writeback *wb = list_entry(&bdi->wb_list,
bdi               850 fs/fs-writeback.c 	list_for_each_entry_continue_rcu(wb, &bdi->wb_list, bdi_node) {
bdi               851 fs/fs-writeback.c 		DEFINE_WB_COMPLETION(fallback_work_done, bdi);
bdi               921 fs/fs-writeback.c 	struct backing_dev_info *bdi;
bdi               928 fs/fs-writeback.c 	bdi = bdi_get_by_id(bdi_id);
bdi               929 fs/fs-writeback.c 	if (!bdi)
bdi               946 fs/fs-writeback.c 	wb = wb_get_lookup(bdi, memcg_css);
bdi               986 fs/fs-writeback.c 	bdi_put(bdi);
bdi              1023 fs/fs-writeback.c static void bdi_down_write_wb_switch_rwsem(struct backing_dev_info *bdi) { }
bdi              1024 fs/fs-writeback.c static void bdi_up_write_wb_switch_rwsem(struct backing_dev_info *bdi) { }
bdi              1052 fs/fs-writeback.c static void bdi_split_work_to_wbs(struct backing_dev_info *bdi,
bdi              1058 fs/fs-writeback.c 	if (!skip_if_busy || !writeback_in_progress(&bdi->wb)) {
bdi              1060 fs/fs-writeback.c 		wb_queue_work(&bdi->wb, base_work);
bdi              2066 fs/fs-writeback.c 	set_worker_desc("flush-%s", bdi_dev_name(wb->bdi));
bdi              2104 fs/fs-writeback.c static void __wakeup_flusher_threads_bdi(struct backing_dev_info *bdi,
bdi              2109 fs/fs-writeback.c 	if (!bdi_has_dirty_io(bdi))
bdi              2112 fs/fs-writeback.c 	list_for_each_entry_rcu(wb, &bdi->wb_list, bdi_node)
bdi              2116 fs/fs-writeback.c void wakeup_flusher_threads_bdi(struct backing_dev_info *bdi,
bdi              2120 fs/fs-writeback.c 	__wakeup_flusher_threads_bdi(bdi, reason);
bdi              2129 fs/fs-writeback.c 	struct backing_dev_info *bdi;
bdi              2138 fs/fs-writeback.c 	list_for_each_entry_rcu(bdi, &bdi_list, bdi_list)
bdi              2139 fs/fs-writeback.c 		__wakeup_flusher_threads_bdi(bdi, reason);
bdi              2163 fs/fs-writeback.c 	struct backing_dev_info *bdi;
bdi              2166 fs/fs-writeback.c 	list_for_each_entry_rcu(bdi, &bdi_list, bdi_list) {
bdi              2169 fs/fs-writeback.c 		list_for_each_entry_rcu(wb, &bdi->wb_list, bdi_node)
bdi              2321 fs/fs-writeback.c 			WARN(bdi_cap_writeback_dirty(wb->bdi) &&
bdi              2323 fs/fs-writeback.c 			     "bdi-%s not registered\n", wb->bdi->name);
bdi              2346 fs/fs-writeback.c 			if (bdi_cap_writeback_dirty(wb->bdi) && wakeup_bdi)
bdi              2453 fs/fs-writeback.c 	struct backing_dev_info *bdi = sb->s_bdi;
bdi              2454 fs/fs-writeback.c 	DEFINE_WB_COMPLETION(done, bdi);
bdi              2464 fs/fs-writeback.c 	if (!bdi_has_dirty_io(bdi) || bdi == &noop_backing_dev_info)
bdi              2531 fs/fs-writeback.c 	struct backing_dev_info *bdi = sb->s_bdi;
bdi              2532 fs/fs-writeback.c 	DEFINE_WB_COMPLETION(done, bdi);
bdi              2548 fs/fs-writeback.c 	if (bdi == &noop_backing_dev_info)
bdi              2553 fs/fs-writeback.c 	bdi_down_write_wb_switch_rwsem(bdi);
bdi              2554 fs/fs-writeback.c 	bdi_split_work_to_wbs(bdi, &work, false);
bdi              2556 fs/fs-writeback.c 	bdi_up_write_wb_switch_rwsem(bdi);
bdi              1614 fs/fuse/file.c 	struct backing_dev_info *bdi = inode_to_bdi(inode);
bdi              1619 fs/fuse/file.c 		dec_wb_stat(&bdi->wb, WB_WRITEBACK);
bdi              1621 fs/fuse/file.c 		wb_writeout_inc(&bdi->wb);
bdi              1999 fs/fuse/file.c 		struct backing_dev_info *bdi = inode_to_bdi(new_wpa->inode);
bdi              2001 fs/fuse/file.c 		dec_wb_stat(&bdi->wb, WB_WRITEBACK);
bdi              2003 fs/fuse/file.c 		wb_writeout_inc(&bdi->wb);
bdi               506 fs/gfs2/super.c 	struct backing_dev_info *bdi = inode_to_bdi(metamapping->host);
bdi               514 fs/gfs2/super.c 	if (bdi->wb.dirty_exceeded)
bdi              2648 fs/nfs/super.c static void nfs_set_readahead(struct backing_dev_info *bdi,
bdi              2651 fs/nfs/super.c 	bdi->ra_pages = VM_READAHEAD_PAGES;
bdi              2652 fs/nfs/super.c 	bdi->io_pages = iomax_pages;
bdi              1213 fs/ocfs2/dlm/dlmmaster.c 	struct dlm_bitmap_diff_iter bdi;
bdi              1223 fs/ocfs2/dlm/dlmmaster.c 	dlm_bitmap_diff_iter_init(&bdi, mle->vote_map, mle->node_map);
bdi              1224 fs/ocfs2/dlm/dlmmaster.c 	node = dlm_bitmap_diff_iter_next(&bdi, &sc);
bdi              1292 fs/ocfs2/dlm/dlmmaster.c 		node = dlm_bitmap_diff_iter_next(&bdi, &sc);
bdi              1597 fs/super.c     	struct backing_dev_info *bdi;
bdi              1601 fs/super.c     	bdi = bdi_alloc(GFP_KERNEL);
bdi              1602 fs/super.c     	if (!bdi)
bdi              1605 fs/super.c     	bdi->name = sb->s_type->name;
bdi              1608 fs/super.c     	err = bdi_register_va(bdi, fmt, args);
bdi              1611 fs/super.c     		bdi_put(bdi);
bdi              1615 fs/super.c     	sb->s_bdi = bdi;
bdi                86 include/linux/backing-dev-defs.h #define WB_COMPLETION_INIT(bdi)		__WB_COMPLETION_INIT(&(bdi)->wb_waitq)
bdi                88 include/linux/backing-dev-defs.h #define DEFINE_WB_COMPLETION(cmpl, bdi)	\
bdi                89 include/linux/backing-dev-defs.h 	struct wb_completion cmpl = WB_COMPLETION_INIT(bdi)
bdi               131 include/linux/backing-dev-defs.h 	struct backing_dev_info *bdi;	/* our parent bdi */
bdi               241 include/linux/backing-dev-defs.h static inline void clear_bdi_congested(struct backing_dev_info *bdi, int sync)
bdi               243 include/linux/backing-dev-defs.h 	clear_wb_congested(bdi->wb.congested, sync);
bdi               246 include/linux/backing-dev-defs.h static inline void set_bdi_congested(struct backing_dev_info *bdi, int sync)
bdi               248 include/linux/backing-dev-defs.h 	set_wb_congested(bdi->wb.congested, sync);
bdi               264 include/linux/backing-dev-defs.h 	if (wb != &wb->bdi->wb)
bdi               275 include/linux/backing-dev-defs.h 	if (wb != &wb->bdi->wb)
bdi               285 include/linux/backing-dev-defs.h 	if (WARN_ON_ONCE(!wb->bdi)) {
bdi               293 include/linux/backing-dev-defs.h 	if (wb != &wb->bdi->wb)
bdi                22 include/linux/backing-dev.h static inline struct backing_dev_info *bdi_get(struct backing_dev_info *bdi)
bdi                24 include/linux/backing-dev.h 	kref_get(&bdi->refcnt);
bdi                25 include/linux/backing-dev.h 	return bdi;
bdi                29 include/linux/backing-dev.h void bdi_put(struct backing_dev_info *bdi);
bdi                32 include/linux/backing-dev.h int bdi_register(struct backing_dev_info *bdi, const char *fmt, ...);
bdi                34 include/linux/backing-dev.h int bdi_register_va(struct backing_dev_info *bdi, const char *fmt,
bdi                36 include/linux/backing-dev.h int bdi_register_owner(struct backing_dev_info *bdi, struct device *owner);
bdi                37 include/linux/backing-dev.h void bdi_unregister(struct backing_dev_info *bdi);
bdi                62 include/linux/backing-dev.h static inline bool bdi_has_dirty_io(struct backing_dev_info *bdi)
bdi                68 include/linux/backing-dev.h 	return atomic_long_read(&bdi->tot_write_bandwidth);
bdi               111 include/linux/backing-dev.h int bdi_set_min_ratio(struct backing_dev_info *bdi, unsigned int min_ratio);
bdi               112 include/linux/backing-dev.h int bdi_set_max_ratio(struct backing_dev_info *bdi, unsigned int max_ratio);
bdi               176 include/linux/backing-dev.h 	struct backing_dev_info *bdi = wb->bdi;
bdi               178 include/linux/backing-dev.h 	if (bdi->congested_fn)
bdi               179 include/linux/backing-dev.h 		return bdi->congested_fn(bdi->congested_data, cong_bits);
bdi               186 include/linux/backing-dev.h static inline bool bdi_cap_synchronous_io(struct backing_dev_info *bdi)
bdi               188 include/linux/backing-dev.h 	return bdi->capabilities & BDI_CAP_SYNCHRONOUS_IO;
bdi               191 include/linux/backing-dev.h static inline bool bdi_cap_stable_pages_required(struct backing_dev_info *bdi)
bdi               193 include/linux/backing-dev.h 	return bdi->capabilities & BDI_CAP_STABLE_WRITES;
bdi               196 include/linux/backing-dev.h static inline bool bdi_cap_writeback_dirty(struct backing_dev_info *bdi)
bdi               198 include/linux/backing-dev.h 	return !(bdi->capabilities & BDI_CAP_NO_WRITEBACK);
bdi               201 include/linux/backing-dev.h static inline bool bdi_cap_account_dirty(struct backing_dev_info *bdi)
bdi               203 include/linux/backing-dev.h 	return !(bdi->capabilities & BDI_CAP_NO_ACCT_DIRTY);
bdi               206 include/linux/backing-dev.h static inline bool bdi_cap_account_writeback(struct backing_dev_info *bdi)
bdi               209 include/linux/backing-dev.h 	return !(bdi->capabilities & (BDI_CAP_NO_ACCT_WB |
bdi               232 include/linux/backing-dev.h wb_congested_get_create(struct backing_dev_info *bdi, int blkcg_id, gfp_t gfp);
bdi               234 include/linux/backing-dev.h struct bdi_writeback *wb_get_lookup(struct backing_dev_info *bdi,
bdi               236 include/linux/backing-dev.h struct bdi_writeback *wb_get_create(struct backing_dev_info *bdi,
bdi               256 include/linux/backing-dev.h 	struct backing_dev_info *bdi = inode_to_bdi(inode);
bdi               260 include/linux/backing-dev.h 		bdi_cap_account_dirty(bdi) &&
bdi               261 include/linux/backing-dev.h 		(bdi->capabilities & BDI_CAP_CGROUP_WRITEBACK) &&
bdi               273 include/linux/backing-dev.h static inline struct bdi_writeback *wb_find_current(struct backing_dev_info *bdi)
bdi               280 include/linux/backing-dev.h 		return &bdi->wb;
bdi               282 include/linux/backing-dev.h 	wb = radix_tree_lookup(&bdi->cgwb_tree, memcg_css->id);
bdi               303 include/linux/backing-dev.h wb_get_create_current(struct backing_dev_info *bdi, gfp_t gfp)
bdi               308 include/linux/backing-dev.h 	wb = wb_find_current(bdi);
bdi               317 include/linux/backing-dev.h 		wb = wb_get_create(bdi, memcg_css, gfp);
bdi               412 include/linux/backing-dev.h wb_congested_get_create(struct backing_dev_info *bdi, int blkcg_id, gfp_t gfp)
bdi               414 include/linux/backing-dev.h 	refcount_inc(&bdi->wb_congested->refcnt);
bdi               415 include/linux/backing-dev.h 	return bdi->wb_congested;
bdi               424 include/linux/backing-dev.h static inline struct bdi_writeback *wb_find_current(struct backing_dev_info *bdi)
bdi               426 include/linux/backing-dev.h 	return &bdi->wb;
bdi               430 include/linux/backing-dev.h wb_get_create_current(struct backing_dev_info *bdi, gfp_t gfp)
bdi               432 include/linux/backing-dev.h 	return &bdi->wb;
bdi               487 include/linux/backing-dev.h static inline int bdi_congested(struct backing_dev_info *bdi, int cong_bits)
bdi               489 include/linux/backing-dev.h 	return wb_congested(&bdi->wb, cong_bits);
bdi               492 include/linux/backing-dev.h static inline int bdi_read_congested(struct backing_dev_info *bdi)
bdi               494 include/linux/backing-dev.h 	return bdi_congested(bdi, 1 << WB_sync_congested);
bdi               497 include/linux/backing-dev.h static inline int bdi_write_congested(struct backing_dev_info *bdi)
bdi               499 include/linux/backing-dev.h 	return bdi_congested(bdi, 1 << WB_async_congested);
bdi               502 include/linux/backing-dev.h static inline int bdi_rw_congested(struct backing_dev_info *bdi)
bdi               504 include/linux/backing-dev.h 	return bdi_congested(bdi, (1 << WB_sync_congested) |
bdi               508 include/linux/backing-dev.h const char *bdi_dev_name(struct backing_dev_info *bdi);
bdi               197 include/linux/writeback.h void wakeup_flusher_threads_bdi(struct backing_dev_info *bdi,
bdi                17 include/trace/events/wbt.h 	TP_PROTO(struct backing_dev_info *bdi, struct blk_rq_stat *stat),
bdi                19 include/trace/events/wbt.h 	TP_ARGS(bdi, stat),
bdi                36 include/trace/events/wbt.h 		strlcpy(__entry->name, dev_name(bdi->dev),
bdi                61 include/trace/events/wbt.h 	TP_PROTO(struct backing_dev_info *bdi, unsigned long lat),
bdi                63 include/trace/events/wbt.h 	TP_ARGS(bdi, lat),
bdi                71 include/trace/events/wbt.h 		strlcpy(__entry->name, dev_name(bdi->dev),
bdi                91 include/trace/events/wbt.h 	TP_PROTO(struct backing_dev_info *bdi, const char *msg,
bdi                95 include/trace/events/wbt.h 	TP_ARGS(bdi, msg, step, window, bg, normal, max),
bdi               108 include/trace/events/wbt.h 		strlcpy(__entry->name, dev_name(bdi->dev),
bdi               131 include/trace/events/wbt.h 	TP_PROTO(struct backing_dev_info *bdi, unsigned int status,
bdi               134 include/trace/events/wbt.h 	TP_ARGS(bdi, status, step, inflight),
bdi               144 include/trace/events/wbt.h 		strlcpy(__entry->name, dev_name(bdi->dev),
bdi               111 include/trace/events/writeback.h 		struct backing_dev_info *bdi = inode_to_bdi(inode);
bdi               114 include/trace/events/writeback.h 		strscpy_pad(__entry->name, bdi_dev_name(bdi), 32);
bdi               224 include/trace/events/writeback.h 		strncpy(__entry->name,	bdi_dev_name(old_wb->bdi), 32);
bdi               257 include/trace/events/writeback.h 		strncpy(__entry->name,	bdi_dev_name(wb->bdi), 32);
bdi               258 include/trace/events/writeback.h 		__entry->bdi_id		= wb->bdi->id;
bdi               290 include/trace/events/writeback.h 		strncpy(__entry->name,	bdi_dev_name(wb->bdi), 32);
bdi               363 include/trace/events/writeback.h 		strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32);
bdi               416 include/trace/events/writeback.h 		strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32);
bdi               432 include/trace/events/writeback.h 	TP_PROTO(struct backing_dev_info *bdi),
bdi               433 include/trace/events/writeback.h 	TP_ARGS(bdi),
bdi               438 include/trace/events/writeback.h 		strscpy_pad(__entry->name, bdi_dev_name(bdi), 32);
bdi               446 include/trace/events/writeback.h 	TP_PROTO(struct writeback_control *wbc, struct backing_dev_info *bdi),
bdi               447 include/trace/events/writeback.h 	TP_ARGS(wbc, bdi),
bdi               463 include/trace/events/writeback.h 		strscpy_pad(__entry->name, bdi_dev_name(bdi), 32);
bdi               495 include/trace/events/writeback.h 	TP_PROTO(struct writeback_control *wbc, struct backing_dev_info *bdi), \
bdi               496 include/trace/events/writeback.h 	TP_ARGS(wbc, bdi))
bdi               514 include/trace/events/writeback.h 		strscpy_pad(__entry->name, bdi_dev_name(wb->bdi), 32);
bdi               589 include/trace/events/writeback.h 		__array(char,		bdi, 32)
bdi               600 include/trace/events/writeback.h 		strscpy_pad(__entry->bdi, bdi_dev_name(wb->bdi), 32);
bdi               615 include/trace/events/writeback.h 		  __entry->bdi,
bdi               646 include/trace/events/writeback.h 		__array(	 char,	bdi, 32)
bdi               665 include/trace/events/writeback.h 		strscpy_pad(__entry->bdi, bdi_dev_name(wb->bdi), 32);
bdi               693 include/trace/events/writeback.h 		  __entry->bdi,
bdi                51 mm/backing-dev.c 	struct backing_dev_info *bdi = m->private;
bdi                52 mm/backing-dev.c 	struct bdi_writeback *wb = &bdi->wb;
bdi               103 mm/backing-dev.c 		   !list_empty(&bdi->bdi_list), bdi->wb.state);
bdi               110 mm/backing-dev.c static void bdi_debug_register(struct backing_dev_info *bdi, const char *name)
bdi               112 mm/backing-dev.c 	bdi->debug_dir = debugfs_create_dir(name, bdi_debug_root);
bdi               114 mm/backing-dev.c 	debugfs_create_file("stats", 0444, bdi->debug_dir, bdi,
bdi               118 mm/backing-dev.c static void bdi_debug_unregister(struct backing_dev_info *bdi)
bdi               120 mm/backing-dev.c 	debugfs_remove_recursive(bdi->debug_dir);
bdi               126 mm/backing-dev.c static inline void bdi_debug_register(struct backing_dev_info *bdi,
bdi               130 mm/backing-dev.c static inline void bdi_debug_unregister(struct backing_dev_info *bdi)
bdi               139 mm/backing-dev.c 	struct backing_dev_info *bdi = dev_get_drvdata(dev);
bdi               147 mm/backing-dev.c 	bdi->ra_pages = read_ahead_kb >> (PAGE_SHIFT - 10);
bdi               158 mm/backing-dev.c 	struct backing_dev_info *bdi = dev_get_drvdata(dev);		\
bdi               164 mm/backing-dev.c BDI_SHOW(read_ahead_kb, K(bdi->ra_pages))
bdi               169 mm/backing-dev.c 	struct backing_dev_info *bdi = dev_get_drvdata(dev);
bdi               177 mm/backing-dev.c 	ret = bdi_set_min_ratio(bdi, ratio);
bdi               183 mm/backing-dev.c BDI_SHOW(min_ratio, bdi->min_ratio)
bdi               188 mm/backing-dev.c 	struct backing_dev_info *bdi = dev_get_drvdata(dev);
bdi               196 mm/backing-dev.c 	ret = bdi_set_max_ratio(bdi, ratio);
bdi               202 mm/backing-dev.c BDI_SHOW(max_ratio, bdi->max_ratio)
bdi               208 mm/backing-dev.c 	struct backing_dev_info *bdi = dev_get_drvdata(dev);
bdi               211 mm/backing-dev.c 			bdi_cap_stable_pages_required(bdi) ? 1 : 0);
bdi               237 mm/backing-dev.c static int bdi_init(struct backing_dev_info *bdi);
bdi               284 mm/backing-dev.c static int wb_init(struct bdi_writeback *wb, struct backing_dev_info *bdi,
bdi               291 mm/backing-dev.c 	if (wb != &bdi->wb)
bdi               292 mm/backing-dev.c 		bdi_get(bdi);
bdi               293 mm/backing-dev.c 	wb->bdi = bdi;
bdi               312 mm/backing-dev.c 	wb->congested = wb_congested_get_create(bdi, blkcg_id, gfp);
bdi               337 mm/backing-dev.c 	if (wb != &bdi->wb)
bdi               338 mm/backing-dev.c 		bdi_put(bdi);
bdi               379 mm/backing-dev.c 	if (wb != &wb->bdi->wb)
bdi               380 mm/backing-dev.c 		bdi_put(wb->bdi);
bdi               406 mm/backing-dev.c wb_congested_get_create(struct backing_dev_info *bdi, int blkcg_id, gfp_t gfp)
bdi               414 mm/backing-dev.c 	node = &bdi->cgwb_congested_tree.rb_node;
bdi               433 mm/backing-dev.c 		rb_insert_color(&congested->rb_node, &bdi->cgwb_congested_tree);
bdi               446 mm/backing-dev.c 	new_congested->__bdi = bdi;
bdi               487 mm/backing-dev.c 	mutex_lock(&wb->bdi->cgwb_release_mutex);
bdi               492 mm/backing-dev.c 	mutex_unlock(&wb->bdi->cgwb_release_mutex);
bdi               514 mm/backing-dev.c 	WARN_ON(!radix_tree_delete(&wb->bdi->cgwb_tree, wb->memcg_css->id));
bdi               527 mm/backing-dev.c static int cgwb_create(struct backing_dev_info *bdi,
bdi               546 mm/backing-dev.c 	wb = radix_tree_lookup(&bdi->cgwb_tree, memcg_css->id);
bdi               562 mm/backing-dev.c 	ret = wb_init(wb, bdi, blkcg_css->id, gfp);
bdi               587 mm/backing-dev.c 	if (test_bit(WB_registered, &bdi->wb.state) &&
bdi               590 mm/backing-dev.c 		ret = radix_tree_insert(&bdi->cgwb_tree, memcg_css->id, wb);
bdi               592 mm/backing-dev.c 			list_add_tail_rcu(&wb->bdi_node, &bdi->wb_list);
bdi               644 mm/backing-dev.c struct bdi_writeback *wb_get_lookup(struct backing_dev_info *bdi,
bdi               650 mm/backing-dev.c 		return &bdi->wb;
bdi               653 mm/backing-dev.c 	wb = radix_tree_lookup(&bdi->cgwb_tree, memcg_css->id);
bdi               677 mm/backing-dev.c struct bdi_writeback *wb_get_create(struct backing_dev_info *bdi,
bdi               686 mm/backing-dev.c 		return &bdi->wb;
bdi               689 mm/backing-dev.c 		wb = wb_get_lookup(bdi, memcg_css);
bdi               690 mm/backing-dev.c 	} while (!wb && !cgwb_create(bdi, memcg_css, gfp));
bdi               695 mm/backing-dev.c static int cgwb_bdi_init(struct backing_dev_info *bdi)
bdi               699 mm/backing-dev.c 	INIT_RADIX_TREE(&bdi->cgwb_tree, GFP_ATOMIC);
bdi               700 mm/backing-dev.c 	bdi->cgwb_congested_tree = RB_ROOT;
bdi               701 mm/backing-dev.c 	mutex_init(&bdi->cgwb_release_mutex);
bdi               702 mm/backing-dev.c 	init_rwsem(&bdi->wb_switch_rwsem);
bdi               704 mm/backing-dev.c 	ret = wb_init(&bdi->wb, bdi, 1, GFP_KERNEL);
bdi               706 mm/backing-dev.c 		bdi->wb.memcg_css = &root_mem_cgroup->css;
bdi               707 mm/backing-dev.c 		bdi->wb.blkcg_css = blkcg_root_css;
bdi               712 mm/backing-dev.c static void cgwb_bdi_unregister(struct backing_dev_info *bdi)
bdi               718 mm/backing-dev.c 	WARN_ON(test_bit(WB_registered, &bdi->wb.state));
bdi               721 mm/backing-dev.c 	radix_tree_for_each_slot(slot, &bdi->cgwb_tree, &iter, 0)
bdi               725 mm/backing-dev.c 	mutex_lock(&bdi->cgwb_release_mutex);
bdi               727 mm/backing-dev.c 	while (!list_empty(&bdi->wb_list)) {
bdi               728 mm/backing-dev.c 		wb = list_first_entry(&bdi->wb_list, struct bdi_writeback,
bdi               735 mm/backing-dev.c 	mutex_unlock(&bdi->cgwb_release_mutex);
bdi               773 mm/backing-dev.c static void cgwb_bdi_exit(struct backing_dev_info *bdi)
bdi               778 mm/backing-dev.c 	while ((rbn = rb_first(&bdi->cgwb_congested_tree))) {
bdi               782 mm/backing-dev.c 		rb_erase(rbn, &bdi->cgwb_congested_tree);
bdi               788 mm/backing-dev.c static void cgwb_bdi_register(struct backing_dev_info *bdi)
bdi               791 mm/backing-dev.c 	list_add_tail_rcu(&bdi->wb.bdi_node, &bdi->wb_list);
bdi               812 mm/backing-dev.c static int cgwb_bdi_init(struct backing_dev_info *bdi)
bdi               816 mm/backing-dev.c 	bdi->wb_congested = kzalloc(sizeof(*bdi->wb_congested), GFP_KERNEL);
bdi               817 mm/backing-dev.c 	if (!bdi->wb_congested)
bdi               820 mm/backing-dev.c 	refcount_set(&bdi->wb_congested->refcnt, 1);
bdi               822 mm/backing-dev.c 	err = wb_init(&bdi->wb, bdi, 1, GFP_KERNEL);
bdi               824 mm/backing-dev.c 		wb_congested_put(bdi->wb_congested);
bdi               830 mm/backing-dev.c static void cgwb_bdi_unregister(struct backing_dev_info *bdi) { }
bdi               832 mm/backing-dev.c static void cgwb_bdi_exit(struct backing_dev_info *bdi)
bdi               834 mm/backing-dev.c 	wb_congested_put(bdi->wb_congested);
bdi               837 mm/backing-dev.c static void cgwb_bdi_register(struct backing_dev_info *bdi)
bdi               839 mm/backing-dev.c 	list_add_tail_rcu(&bdi->wb.bdi_node, &bdi->wb_list);
bdi               849 mm/backing-dev.c static int bdi_init(struct backing_dev_info *bdi)
bdi               853 mm/backing-dev.c 	bdi->dev = NULL;
bdi               855 mm/backing-dev.c 	kref_init(&bdi->refcnt);
bdi               856 mm/backing-dev.c 	bdi->min_ratio = 0;
bdi               857 mm/backing-dev.c 	bdi->max_ratio = 100;
bdi               858 mm/backing-dev.c 	bdi->max_prop_frac = FPROP_FRAC_BASE;
bdi               859 mm/backing-dev.c 	INIT_LIST_HEAD(&bdi->bdi_list);
bdi               860 mm/backing-dev.c 	INIT_LIST_HEAD(&bdi->wb_list);
bdi               861 mm/backing-dev.c 	init_waitqueue_head(&bdi->wb_waitq);
bdi               863 mm/backing-dev.c 	ret = cgwb_bdi_init(bdi);
bdi               870 mm/backing-dev.c 	struct backing_dev_info *bdi;
bdi               872 mm/backing-dev.c 	bdi = kmalloc_node(sizeof(struct backing_dev_info),
bdi               874 mm/backing-dev.c 	if (!bdi)
bdi               877 mm/backing-dev.c 	if (bdi_init(bdi)) {
bdi               878 mm/backing-dev.c 		kfree(bdi);
bdi               881 mm/backing-dev.c 	return bdi;
bdi               889 mm/backing-dev.c 	struct backing_dev_info *bdi;
bdi               895 mm/backing-dev.c 		bdi = rb_entry(parent, struct backing_dev_info, rb_node);
bdi               897 mm/backing-dev.c 		if (bdi->id > id)
bdi               899 mm/backing-dev.c 		else if (bdi->id < id)
bdi               919 mm/backing-dev.c 	struct backing_dev_info *bdi = NULL;
bdi               925 mm/backing-dev.c 		bdi = rb_entry(*p, struct backing_dev_info, rb_node);
bdi               926 mm/backing-dev.c 		bdi_get(bdi);
bdi               930 mm/backing-dev.c 	return bdi;
bdi               933 mm/backing-dev.c int bdi_register_va(struct backing_dev_info *bdi, const char *fmt, va_list args)
bdi               938 mm/backing-dev.c 	if (bdi->dev)	/* The driver needs to use separate queues per device */
bdi               941 mm/backing-dev.c 	vsnprintf(bdi->dev_name, sizeof(bdi->dev_name), fmt, args);
bdi               942 mm/backing-dev.c 	dev = device_create(bdi_class, NULL, MKDEV(0, 0), bdi, bdi->dev_name);
bdi               946 mm/backing-dev.c 	cgwb_bdi_register(bdi);
bdi               947 mm/backing-dev.c 	bdi->dev = dev;
bdi               949 mm/backing-dev.c 	bdi_debug_register(bdi, dev_name(dev));
bdi               950 mm/backing-dev.c 	set_bit(WB_registered, &bdi->wb.state);
bdi               954 mm/backing-dev.c 	bdi->id = ++bdi_id_cursor;
bdi               956 mm/backing-dev.c 	p = bdi_lookup_rb_node(bdi->id, &parent);
bdi               957 mm/backing-dev.c 	rb_link_node(&bdi->rb_node, parent, p);
bdi               958 mm/backing-dev.c 	rb_insert_color(&bdi->rb_node, &bdi_tree);
bdi               960 mm/backing-dev.c 	list_add_tail_rcu(&bdi->bdi_list, &bdi_list);
bdi               964 mm/backing-dev.c 	trace_writeback_bdi_register(bdi);
bdi               969 mm/backing-dev.c int bdi_register(struct backing_dev_info *bdi, const char *fmt, ...)
bdi               975 mm/backing-dev.c 	ret = bdi_register_va(bdi, fmt, args);
bdi               981 mm/backing-dev.c int bdi_register_owner(struct backing_dev_info *bdi, struct device *owner)
bdi               985 mm/backing-dev.c 	rc = bdi_register(bdi, "%u:%u", MAJOR(owner->devt), MINOR(owner->devt));
bdi               989 mm/backing-dev.c 	WARN_ON(bdi->owner);
bdi               990 mm/backing-dev.c 	bdi->owner = owner;
bdi               999 mm/backing-dev.c static void bdi_remove_from_list(struct backing_dev_info *bdi)
bdi              1002 mm/backing-dev.c 	rb_erase(&bdi->rb_node, &bdi_tree);
bdi              1003 mm/backing-dev.c 	list_del_rcu(&bdi->bdi_list);
bdi              1009 mm/backing-dev.c void bdi_unregister(struct backing_dev_info *bdi)
bdi              1012 mm/backing-dev.c 	bdi_remove_from_list(bdi);
bdi              1013 mm/backing-dev.c 	wb_shutdown(&bdi->wb);
bdi              1014 mm/backing-dev.c 	cgwb_bdi_unregister(bdi);
bdi              1016 mm/backing-dev.c 	if (bdi->dev) {
bdi              1017 mm/backing-dev.c 		bdi_debug_unregister(bdi);
bdi              1018 mm/backing-dev.c 		device_unregister(bdi->dev);
bdi              1019 mm/backing-dev.c 		bdi->dev = NULL;
bdi              1022 mm/backing-dev.c 	if (bdi->owner) {
bdi              1023 mm/backing-dev.c 		put_device(bdi->owner);
bdi              1024 mm/backing-dev.c 		bdi->owner = NULL;
bdi              1030 mm/backing-dev.c 	struct backing_dev_info *bdi =
bdi              1033 mm/backing-dev.c 	if (test_bit(WB_registered, &bdi->wb.state))
bdi              1034 mm/backing-dev.c 		bdi_unregister(bdi);
bdi              1035 mm/backing-dev.c 	WARN_ON_ONCE(bdi->dev);
bdi              1036 mm/backing-dev.c 	wb_exit(&bdi->wb);
bdi              1037 mm/backing-dev.c 	cgwb_bdi_exit(bdi);
bdi              1038 mm/backing-dev.c 	kfree(bdi);
bdi              1041 mm/backing-dev.c void bdi_put(struct backing_dev_info *bdi)
bdi              1043 mm/backing-dev.c 	kref_put(&bdi->refcnt, release_bdi);
bdi              1047 mm/backing-dev.c const char *bdi_dev_name(struct backing_dev_info *bdi)
bdi              1049 mm/backing-dev.c 	if (!bdi || !bdi->dev)
bdi              1051 mm/backing-dev.c 	return bdi->dev_name;
bdi                34 mm/fadvise.c   	struct backing_dev_info *bdi;
bdi                48 mm/fadvise.c   	bdi = inode_to_bdi(mapping->host);
bdi                50 mm/fadvise.c   	if (IS_DAX(inode) || (bdi == &noop_backing_dev_info)) {
bdi                79 mm/fadvise.c   		file->f_ra.ra_pages = bdi->ra_pages;
bdi                90 mm/fadvise.c   		file->f_ra.ra_pages = bdi->ra_pages * 2;
bdi              4525 mm/memcontrol.c 		if (frn->bdi_id == wb->bdi->id &&
bdi              4552 mm/memcontrol.c 		frn->bdi_id = wb->bdi->id;
bdi               193 mm/page-writeback.c 	unsigned long tot_bw = atomic_long_read(&wb->bdi->tot_write_bandwidth);
bdi               194 mm/page-writeback.c 	unsigned long long min = wb->bdi->min_ratio;
bdi               195 mm/page-writeback.c 	unsigned long long max = wb->bdi->max_ratio;
bdi               246 mm/page-writeback.c 	*minp = wb->bdi->min_ratio;
bdi               247 mm/page-writeback.c 	*maxp = wb->bdi->max_ratio;
bdi               606 mm/page-writeback.c 			       wb->bdi->max_prop_frac);
bdi               611 mm/page-writeback.c 				       wb->bdi->max_prop_frac);
bdi               675 mm/page-writeback.c int bdi_set_min_ratio(struct backing_dev_info *bdi, unsigned int min_ratio)
bdi               680 mm/page-writeback.c 	if (min_ratio > bdi->max_ratio) {
bdi               683 mm/page-writeback.c 		min_ratio -= bdi->min_ratio;
bdi               686 mm/page-writeback.c 			bdi->min_ratio += min_ratio;
bdi               696 mm/page-writeback.c int bdi_set_max_ratio(struct backing_dev_info *bdi, unsigned max_ratio)
bdi               704 mm/page-writeback.c 	if (bdi->min_ratio > max_ratio) {
bdi               707 mm/page-writeback.c 		bdi->max_ratio = max_ratio;
bdi               708 mm/page-writeback.c 		bdi->max_prop_frac = (FPROP_FRAC_BASE * max_ratio) / 100;
bdi               956 mm/page-writeback.c 	if (unlikely(wb->bdi->capabilities & BDI_CAP_STRICTLIMIT)) {
bdi              1127 mm/page-writeback.c 					&wb->bdi->tot_write_bandwidth) <= 0);
bdi              1303 mm/page-writeback.c 	if (unlikely(wb->bdi->capabilities & BDI_CAP_STRICTLIMIT)) {
bdi              1579 mm/page-writeback.c 	struct backing_dev_info *bdi = wb->bdi;
bdi              1580 mm/page-writeback.c 	bool strictlimit = bdi->capabilities & BDI_CAP_STRICTLIMIT;
bdi              1867 mm/page-writeback.c 	struct backing_dev_info *bdi = inode_to_bdi(inode);
bdi              1872 mm/page-writeback.c 	if (!bdi_cap_account_dirty(bdi))
bdi              1876 mm/page-writeback.c 		wb = wb_get_create_current(bdi, GFP_KERNEL);
bdi              1878 mm/page-writeback.c 		wb = &bdi->wb;
bdi              2022 mm/page-writeback.c 	struct backing_dev_info *bdi;
bdi              2026 mm/page-writeback.c 	list_for_each_entry_rcu(bdi, &bdi_list, bdi_list)
bdi              2027 mm/page-writeback.c 		del_timer(&bdi->laptop_mode_wb_timer);
bdi              2725 mm/page-writeback.c 		struct backing_dev_info *bdi = inode_to_bdi(inode);
bdi              2733 mm/page-writeback.c 			if (bdi_cap_account_writeback(bdi)) {
bdi              2773 mm/page-writeback.c 		struct backing_dev_info *bdi = inode_to_bdi(inode);
bdi              2786 mm/page-writeback.c 			if (bdi_cap_account_writeback(bdi))
bdi               225 mm/readahead.c 	struct backing_dev_info *bdi = inode_to_bdi(mapping->host);
bdi               236 mm/readahead.c 	max_pages = max_t(unsigned long, bdi->io_pages, ra->ra_pages);
bdi               387 mm/readahead.c 	struct backing_dev_info *bdi = inode_to_bdi(mapping->host);
bdi               396 mm/readahead.c 	if (req_size > max_pages && bdi->io_pages > max_pages)
bdi               397 mm/readahead.c 		max_pages = min(req_size, bdi->io_pages);