Searched refs:cur_cap (Results 1 – 3 of 3) sorted by relevance
| /Linux-v5.4/sound/hda/ |
| D | hdac_controller.c | 278 unsigned int cur_cap; in snd_hdac_bus_parse_capabilities() local 286 cur_cap = _snd_hdac_chip_readl(bus, offset); in snd_hdac_bus_parse_capabilities() 289 (cur_cap & AZX_CAP_HDR_VER_MASK) >> AZX_CAP_HDR_VER_OFF); in snd_hdac_bus_parse_capabilities() 292 (cur_cap & AZX_CAP_HDR_ID_MASK) >> AZX_CAP_HDR_ID_OFF); in snd_hdac_bus_parse_capabilities() 294 if (cur_cap == -1) { in snd_hdac_bus_parse_capabilities() 299 switch ((cur_cap & AZX_CAP_HDR_ID_MASK) >> AZX_CAP_HDR_ID_OFF) { in snd_hdac_bus_parse_capabilities() 329 dev_err(bus->dev, "Unknown capability %d\n", cur_cap); in snd_hdac_bus_parse_capabilities() 330 cur_cap = 0; in snd_hdac_bus_parse_capabilities() 342 offset = cur_cap & AZX_CAP_HDR_NXT_PTR_MASK; in snd_hdac_bus_parse_capabilities()
|
| /Linux-v5.4/sound/xen/ |
| D | xen_snd_front_cfg.c | 333 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-v5.4/drivers/power/supply/ |
| D | sc27xx_fuel_gauge.c | 732 int cur_cap = power_supply_ocv2cap_simple(data->cap_table, in sc27xx_fgu_capacity_calibration() local 735 sc27xx_fgu_adjust_cap(data, cur_cap); in sc27xx_fgu_capacity_calibration() 745 int cur_cap; in sc27xx_fgu_capacity_calibration() local 753 cur_cap = power_supply_ocv2cap_simple(data->cap_table, in sc27xx_fgu_capacity_calibration() 756 sc27xx_fgu_adjust_cap(data, cur_cap); in sc27xx_fgu_capacity_calibration() 852 int cur_cap = DIV_ROUND_CLOSEST(data->total_cap * capacity, 100); in sc27xx_fgu_cap_to_clbcnt() local 858 return DIV_ROUND_CLOSEST(cur_cap * 36 * data->cur_1000ma_adc * SC27XX_FGU_SAMPLE_HZ, 10); in sc27xx_fgu_cap_to_clbcnt()
|