Home
last modified time | relevance | path

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

/linux/sound/hda/
H A Dhdac_controller.c420 unsigned int cur_cap; in snd_hdac_bus_parse_capabilities() local
428 cur_cap = _snd_hdac_chip_readl(bus, offset); in snd_hdac_bus_parse_capabilities()
431 (cur_cap & AZX_CAP_HDR_VER_MASK) >> AZX_CAP_HDR_VER_OFF); in snd_hdac_bus_parse_capabilities()
434 (cur_cap & AZX_CAP_HDR_ID_MASK) >> AZX_CAP_HDR_ID_OFF); in snd_hdac_bus_parse_capabilities()
436 if (cur_cap == -1) { in snd_hdac_bus_parse_capabilities()
441 switch ((cur_cap & AZX_CAP_HDR_ID_MASK) >> AZX_CAP_HDR_ID_OFF) { in snd_hdac_bus_parse_capabilities()
471 dev_err(bus->dev, "Unknown capability %d\n", cur_cap); in snd_hdac_bus_parse_capabilities()
472 cur_cap = 0; in snd_hdac_bus_parse_capabilities()
484 offset = cur_cap & AZX_CAP_HDR_NXT_PTR_MASK; in snd_hdac_bus_parse_capabilities()
/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()
/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()