Searched refs:cur_cap (Results 1 – 3 of 3) sorted by relevance
/kernel/linux/linux-5.10/sound/hda/ |
D | hdac_controller.c | 304 unsigned int cur_cap; in snd_hdac_bus_parse_capabilities() local 312 cur_cap = _snd_hdac_chip_readl(bus, offset); in snd_hdac_bus_parse_capabilities() 315 (cur_cap & AZX_CAP_HDR_VER_MASK) >> AZX_CAP_HDR_VER_OFF); in snd_hdac_bus_parse_capabilities() 318 (cur_cap & AZX_CAP_HDR_ID_MASK) >> AZX_CAP_HDR_ID_OFF); in snd_hdac_bus_parse_capabilities() 320 if (cur_cap == -1) { in snd_hdac_bus_parse_capabilities() 325 switch ((cur_cap & AZX_CAP_HDR_ID_MASK) >> AZX_CAP_HDR_ID_OFF) { in snd_hdac_bus_parse_capabilities() 355 dev_err(bus->dev, "Unknown capability %d\n", cur_cap); in snd_hdac_bus_parse_capabilities() 356 cur_cap = 0; in snd_hdac_bus_parse_capabilities() 368 offset = cur_cap & AZX_CAP_HDR_NXT_PTR_MASK; in snd_hdac_bus_parse_capabilities()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
D | sc27xx_fuel_gauge.c | 836 int cur_cap = power_supply_ocv2cap_simple(data->cap_table, in sc27xx_fgu_capacity_calibration() local 839 sc27xx_fgu_adjust_cap(data, cur_cap); in sc27xx_fgu_capacity_calibration() 849 int cur_cap; in sc27xx_fgu_capacity_calibration() local 857 cur_cap = power_supply_ocv2cap_simple(data->cap_table, in sc27xx_fgu_capacity_calibration() 860 sc27xx_fgu_adjust_cap(data, cur_cap); in sc27xx_fgu_capacity_calibration() 956 int cur_cap = DIV_ROUND_CLOSEST(data->total_cap * capacity, 100); in sc27xx_fgu_cap_to_clbcnt() local 962 return DIV_ROUND_CLOSEST(cur_cap * 36 * data->cur_1000ma_adc * SC27XX_FGU_SAMPLE_HZ, 10); in sc27xx_fgu_cap_to_clbcnt()
|