/openbmc/linux/drivers/power/supply/ |
H A D | max8997_charger.c | 103 int current_limit; in max8997_battery_extcon_evt_worker() local 107 current_limit = 450000; in max8997_battery_extcon_evt_worker() 110 current_limit = 650000; in max8997_battery_extcon_evt_worker() 113 current_limit = 650000; in max8997_battery_extcon_evt_worker() 116 current_limit = 650000; in max8997_battery_extcon_evt_worker() 119 current_limit = 650000; in max8997_battery_extcon_evt_worker() 122 current_limit = -1; in max8997_battery_extcon_evt_worker() 125 if (current_limit > 0) { in max8997_battery_extcon_evt_worker() 126 int ret = regulator_set_current_limit(charger->reg, current_limit, current_limit); in max8997_battery_extcon_evt_worker()
|
H A D | axp288_charger.c | 621 int ret, current_limit; in axp288_charger_extcon_evt_worker() local 646 current_limit = 3000000; in axp288_charger_extcon_evt_worker() 649 current_limit = 500000; in axp288_charger_extcon_evt_worker() 652 current_limit = 1500000; in axp288_charger_extcon_evt_worker() 655 current_limit = 2000000; in axp288_charger_extcon_evt_worker() 662 ret = axp288_charger_set_vbus_inlmt(info, current_limit); in axp288_charger_extcon_evt_worker()
|
H A D | qcom_battmgr.c | 271 unsigned int current_limit; member 777 val->intval = battmgr->usb.current_limit; in qcom_battmgr_usb_get_property() 1210 battmgr->usb.current_limit = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
|
H A D | bq2415x_charger.c | 705 bq2415x_set_default_value(bq, current_limit); in bq2415x_set_defaults() 1407 static DEVICE_ATTR(current_limit, S_IWUSR | S_IRUGO, 1590 &bq->init_data.current_limit); in bq2415x_probe()
|
/openbmc/linux/drivers/leds/ |
H A D | leds-cpcap.c | 70 u32 current_limit; member 73 static u16 cpcap_led_val(u8 current_limit, u8 duty_cycle) in cpcap_led_val() argument 75 current_limit &= 0x1f; /* 5 bit */ in cpcap_led_val() 78 return current_limit << 4 | duty_cycle; in cpcap_led_val()
|
/openbmc/linux/include/linux/power/ |
H A D | bq2415x_charger.h | 36 int current_limit; /* mA */ member
|
/openbmc/linux/drivers/staging/media/atomisp/include/media/ |
H A D | lm3554.h | 127 unsigned int current_limit; member
|
/openbmc/linux/mm/ |
H A D | memblock.c | 127 .current_limit = MEMBLOCK_ALLOC_ANYWHERE, 301 end = memblock.current_limit; in memblock_find_in_range_node() 456 memblock.current_limit, in memblock_double_array() 460 min(new_area_start, memblock.current_limit), in memblock_double_array() 1535 if (max_addr > memblock.current_limit) in memblock_alloc_internal() 1536 max_addr = memblock.current_limit; in memblock_alloc_internal() 1909 memblock.current_limit = limit; in memblock_set_current_limit() 1914 return memblock.current_limit; in memblock_get_current_limit()
|
/openbmc/linux/drivers/mmc/core/ |
H A D | sd.c | 559 int current_limit = SD_SET_CURRENT_NO_CHANGE; in sd_set_current_limit() local 596 current_limit = SD_SET_CURRENT_LIMIT_800; in sd_set_current_limit() 599 current_limit = SD_SET_CURRENT_LIMIT_600; in sd_set_current_limit() 602 current_limit = SD_SET_CURRENT_LIMIT_400; in sd_set_current_limit() 605 current_limit = SD_SET_CURRENT_LIMIT_200; in sd_set_current_limit() 607 if (current_limit != SD_SET_CURRENT_NO_CHANGE) { in sd_set_current_limit() 608 err = mmc_sd_switch(card, 1, 3, current_limit, status); in sd_set_current_limit() 612 if (((status[15] >> 4) & 0x0F) != current_limit) in sd_set_current_limit()
|
/openbmc/linux/tools/testing/memblock/tests/ |
H A D | common.c | 59 memblock.current_limit = MEMBLOCK_ALLOC_ANYWHERE; in reset_memblock_attributes()
|
H A D | basic_api.c | 28 ASSERT_EQ(memblock.current_limit, MEMBLOCK_ALLOC_ANYWHERE); in memblock_initialization_check()
|
/openbmc/linux/drivers/usb/typec/tcpm/ |
H A D | fusb302.c | 440 int current_limit = 0; in tcpm_get_current_limit() local 453 current_limit = 500; in tcpm_get_current_limit() 457 current_limit = 1500; in tcpm_get_current_limit() 460 current_limit = 2000; in tcpm_get_current_limit() 463 } while (current_limit == 0 && time_before(jiffies, timeout)); in tcpm_get_current_limit() 465 return current_limit; in tcpm_get_current_limit()
|
H A D | tcpm.c | 431 u32 current_limit; member 1029 port->current_limit = max_ma; in tcpm_set_current_limit() 2736 port->pps_data.req_op_curr = port->current_limit; in tcpm_pd_ctrl_request() 4397 port->current_limit * port->supply_voltage / 1000 > PD_P_SNK_STDBY_MW) { in run_state_machine() 5900 target_mw = (port->current_limit * req_out_volt) / 1000; in tcpm_pps_set_out_volt() 5976 port->pps_data.req_op_curr = port->current_limit; in tcpm_pps_activate() 6339 val->intval = port->current_limit * 1000; in tcpm_psy_get_current_max() 6347 val->intval = port->current_limit * 1000; in tcpm_psy_get_current_now()
|
/openbmc/linux/drivers/staging/media/atomisp/i2c/ |
H A D | atomisp-lm3554.c | 153 (flash->pdata->current_limit << LM3554_CURRENT_LIMIT_SHIFT); in lm3554_set_duration() 828 platform_data.current_limit = 0; in lm3554_platform_data_func()
|
/openbmc/linux/include/linux/ |
H A D | memblock.h | 93 phys_addr_t current_limit; member
|