Home
last modified time | relevance | path

Searched refs:cur_cap (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/sound/hda/
H A Dhdac_controller.c307 unsigned int cur_cap; in snd_hdac_bus_parse_capabilities() local
315 cur_cap = _snd_hdac_chip_readl(bus, offset); in snd_hdac_bus_parse_capabilities()
318 (cur_cap & AZX_CAP_HDR_VER_MASK) >> AZX_CAP_HDR_VER_OFF); in snd_hdac_bus_parse_capabilities()
321 (cur_cap & AZX_CAP_HDR_ID_MASK) >> AZX_CAP_HDR_ID_OFF); in snd_hdac_bus_parse_capabilities()
323 if (cur_cap == -1) { in snd_hdac_bus_parse_capabilities()
328 switch ((cur_cap & AZX_CAP_HDR_ID_MASK) >> AZX_CAP_HDR_ID_OFF) { in snd_hdac_bus_parse_capabilities()
358 dev_err(bus->dev, "Unknown capability %d\n", cur_cap); in snd_hdac_bus_parse_capabilities()
359 cur_cap = 0; in snd_hdac_bus_parse_capabilities()
371 offset = cur_cap & AZX_CAP_HDR_NXT_PTR_MASK; in snd_hdac_bus_parse_capabilities()
/openbmc/linux/sound/xen/
H A Dxen_snd_front_cfg.c333 const char *path, int index, int *cur_pb, int *cur_cap, in cfg_stream() argument
360 stream = &pcm_instance->streams_cap[(*cur_cap)++]; in cfg_stream()
392 int cur_pb, cur_cap; in cfg_device() local
461 cur_cap = 0; in cfg_device()
464 &cur_pb, &cur_cap, stream_cnt); in cfg_device()
/openbmc/linux/drivers/power/supply/
H A Dsc27xx_fuel_gauge.c829 int cur_cap = power_supply_ocv2cap_simple(data->cap_table, in sc27xx_fgu_capacity_calibration() local
832 sc27xx_fgu_adjust_cap(data, cur_cap); in sc27xx_fgu_capacity_calibration()
842 int cur_cap; in sc27xx_fgu_capacity_calibration() local
850 cur_cap = power_supply_ocv2cap_simple(data->cap_table, in sc27xx_fgu_capacity_calibration()
853 sc27xx_fgu_adjust_cap(data, cur_cap); in sc27xx_fgu_capacity_calibration()
949 int cur_cap = DIV_ROUND_CLOSEST(data->total_cap * capacity, 100); in sc27xx_fgu_cap_to_clbcnt() local
955 return DIV_ROUND_CLOSEST(cur_cap * 36 * data->cur_1000ma_adc * SC27XX_FGU_SAMPLE_HZ, 10); in sc27xx_fgu_cap_to_clbcnt()