Home
last modified time | relevance | path

Searched refs:current_limit (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/drivers/power/supply/
Dmax8997_charger.c103 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()
Daxp288_charger.c621 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()
Dbq2415x_charger.c705 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()
/linux-6.1.9/drivers/leds/
Dleds-cpcap.c70 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()
/linux-6.1.9/include/linux/power/
Dbq2415x_charger.h36 int current_limit; /* mA */ member
/linux-6.1.9/drivers/mmc/core/
Dsd.c558 int current_limit = SD_SET_CURRENT_NO_CHANGE; in sd_set_current_limit() local
595 current_limit = SD_SET_CURRENT_LIMIT_800; in sd_set_current_limit()
598 current_limit = SD_SET_CURRENT_LIMIT_600; in sd_set_current_limit()
601 current_limit = SD_SET_CURRENT_LIMIT_400; in sd_set_current_limit()
604 current_limit = SD_SET_CURRENT_LIMIT_200; in sd_set_current_limit()
606 if (current_limit != SD_SET_CURRENT_NO_CHANGE) { in sd_set_current_limit()
607 err = mmc_sd_switch(card, 1, 3, current_limit, status); in sd_set_current_limit()
611 if (((status[15] >> 4) & 0x0F) != current_limit) in sd_set_current_limit()
/linux-6.1.9/mm/
Dmemblock.c127 .current_limit = MEMBLOCK_ALLOC_ANYWHERE,
295 end = memblock.current_limit; in memblock_find_in_range_node()
450 memblock.current_limit, in memblock_double_array()
454 min(new_area_start, memblock.current_limit), in memblock_double_array()
1507 if (max_addr > memblock.current_limit) in memblock_alloc_internal()
1508 max_addr = memblock.current_limit; in memblock_alloc_internal()
1887 memblock.current_limit = limit; in memblock_set_current_limit()
1892 return memblock.current_limit; in memblock_get_current_limit()
/linux-6.1.9/drivers/staging/media/atomisp/include/media/
Dlm3554.h127 unsigned int current_limit; member
/linux-6.1.9/tools/testing/memblock/tests/
Dcommon.c61 memblock.current_limit = MEMBLOCK_ALLOC_ANYWHERE; in reset_memblock_attributes()
Dbasic_api.c28 ASSERT_EQ(memblock.current_limit, MEMBLOCK_ALLOC_ANYWHERE); in memblock_initialization_check()
/linux-6.1.9/drivers/usb/typec/tcpm/
Dfusb302.c440 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()
Dtcpm.c429 u32 current_limit; member
1020 port->current_limit = max_ma; in tcpm_set_current_limit()
2692 port->pps_data.req_op_curr = port->current_limit; in tcpm_pd_ctrl_request()
4357 port->current_limit * port->supply_voltage / 1000 > PD_P_SNK_STDBY_MW) { in run_state_machine()
5806 target_mw = (port->current_limit * req_out_volt) / 1000; in tcpm_pps_set_out_volt()
5882 port->pps_data.req_op_curr = port->current_limit; in tcpm_pps_activate()
6245 val->intval = port->current_limit * 1000; in tcpm_psy_get_current_max()
6253 val->intval = port->current_limit * 1000; in tcpm_psy_get_current_now()
/linux-6.1.9/drivers/staging/media/atomisp/i2c/
Datomisp-lm3554.c153 (flash->pdata->current_limit << LM3554_CURRENT_LIMIT_SHIFT); in lm3554_set_duration()
828 platform_data.current_limit = 0; in lm3554_platform_data_func()
/linux-6.1.9/include/linux/
Dmemblock.h93 phys_addr_t current_limit; member