Home
last modified time | relevance | path

Searched refs:ctrl_val (Results 1 – 25 of 27) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/hwmon/
Dgpio-fan.c26 int ctrl_val; member
105 static void __set_fan_ctrl(struct gpio_fan_data *fan_data, int ctrl_val) in __set_fan_ctrl() argument
111 (ctrl_val >> i) & 1); in __set_fan_ctrl()
117 int ctrl_val = 0; in __get_fan_ctrl() local
123 ctrl_val |= (value << i); in __get_fan_ctrl()
125 return ctrl_val; in __get_fan_ctrl()
134 __set_fan_ctrl(fan_data, fan_data->speed[speed_index].ctrl_val); in set_fan_speed()
140 int ctrl_val = __get_fan_ctrl(fan_data); in get_fan_speed_index() local
144 if (fan_data->speed[i].ctrl_val == ctrl_val) in get_fan_speed_index()
148 "missing speed array entry for GPIO value 0x%x\n", ctrl_val); in get_fan_speed_index()
[all …]
/kernel/linux/linux-5.10/arch/x86/events/zhaoxin/
Dcore.c292 u64 ctrl_val, mask; in zhaoxin_pmu_disable_fixed() local
296 rdmsrl(hwc->config_base, ctrl_val); in zhaoxin_pmu_disable_fixed()
297 ctrl_val &= ~mask; in zhaoxin_pmu_disable_fixed()
298 wrmsrl(hwc->config_base, ctrl_val); in zhaoxin_pmu_disable_fixed()
316 u64 ctrl_val, bits, mask; in zhaoxin_pmu_enable_fixed() local
332 rdmsrl(hwc->config_base, ctrl_val); in zhaoxin_pmu_enable_fixed()
333 ctrl_val &= ~mask; in zhaoxin_pmu_enable_fixed()
334 ctrl_val |= bits; in zhaoxin_pmu_enable_fixed()
335 wrmsrl(hwc->config_base, ctrl_val); in zhaoxin_pmu_enable_fixed()
/kernel/linux/linux-5.10/drivers/input/keyboard/
Dpmic8xxx-keypad.c348 unsigned int ctrl_val, events; in pmic8xxx_kp_irq() local
351 rc = regmap_read(kp->regmap, KEYP_CTRL, &ctrl_val); in pmic8xxx_kp_irq()
357 events = ctrl_val & KEYP_CTRL_EVNTS_MASK; in pmic8xxx_kp_irq()
374 u8 scan_val = 0, ctrl_val = 0; in pmic8xxx_kpd_init() local
384 ctrl_val = (bits & KEYP_CTRL_SCAN_COLS_BITS) << in pmic8xxx_kpd_init()
393 ctrl_val |= (bits << KEYP_CTRL_SCAN_ROWS_SHIFT); in pmic8xxx_kpd_init()
395 rc = regmap_write(kp->regmap, KEYP_CTRL, ctrl_val); in pmic8xxx_kpd_init()
508 unsigned int ctrl_val; in pmic8xxx_kp_probe() local
605 rc = regmap_read(kp->regmap, KEYP_CTRL, &ctrl_val); in pmic8xxx_kp_probe()
611 kp->ctrl_reg = ctrl_val; in pmic8xxx_kp_probe()
/kernel/linux/linux-5.10/drivers/tty/serial/
Dst-asc.c509 u32 ctrl_val; in asc_set_termios() local
525 ctrl_val = asc_in(port, ASC_CTL); in asc_set_termios()
528 asc_out(port, ASC_CTL, (ctrl_val & ~ASC_CTL_RUN)); in asc_set_termios()
529 ctrl_val = ASC_CTL_RXENABLE | ASC_CTL_FIFOENABLE; in asc_set_termios()
537 ctrl_val |= ASC_CTL_MODE_7BIT_PAR; in asc_set_termios()
540 ctrl_val |= (cflag & PARENB) ? ASC_CTL_MODE_8BIT_PAR : in asc_set_termios()
548 ctrl_val |= (cflag & CSTOPB) ? ASC_CTL_STOP_2BIT : ASC_CTL_STOP_1BIT; in asc_set_termios()
552 ctrl_val |= ASC_CTL_PARITYODD; in asc_set_termios()
556 ctrl_val |= ASC_CTL_CTSENABLE; in asc_set_termios()
597 ctrl_val |= ASC_CTL_BAUDMODE; in asc_set_termios()
[all …]
/kernel/linux/linux-5.10/drivers/reset/sti/
Dreset-syscfg.c54 u32 ctrl_val = rst->active_low ? !assert : !!assert; in syscfg_reset_program_hw() local
62 err = regmap_field_write(ch->reset, ctrl_val); in syscfg_reset_program_hw()
75 if (ack_val == ctrl_val) in syscfg_reset_program_hw()
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/resctrl/
Dctrlmondata.c257 dc = !mba_sc ? d->ctrl_val : d->mbps_val; in update_domains()
378 u32 ctrl_val; in show_doms() local
385 ctrl_val = (!is_mba_sc(r) ? dom->ctrl_val[closid] : in show_doms()
388 ctrl_val); in show_doms()
Dcore.c370 wrmsrl(r->msr_base + i, d->ctrl_val[i]); in mba_wrmsr_amd()
395 wrmsrl(r->msr_base + i, delay_bw_map(d->ctrl_val[i], r)); in mba_wrmsr_intel()
404 wrmsrl(r->msr_base + cbm_idx(r, i), d->ctrl_val[i]); in cat_wrmsr()
490 dc = kmalloc_array(r->num_closid, sizeof(*d->ctrl_val), GFP_KERNEL); in domain_setup_ctrlval()
500 d->ctrl_val = dc; in domain_setup_ctrlval()
593 kfree(d->ctrl_val); in domain_add_cpu()
651 kfree(d->ctrl_val); in domain_remove_cpu()
Dmonitor.c383 cur_msr_val = dom_mba->ctrl_val[closid]; in update_mba_bw()
420 dom_mba->ctrl_val[closid] = new_msr_val; in update_mba_bw()
Drdtgroup.c915 ctrl = dom->ctrl_val; in rdt_bit_usage_show()
1191 ctrl = d->ctrl_val; in __rdtgroup_cbm_overlaps()
1270 if (rdtgroup_cbm_overlaps(r, d, d->ctrl_val[closid], in rdtgroup_mode_test_exclusive()
1442 d->ctrl_val[rdtgrp->closid] : in rdtgroup_size_show()
1946 setup_default_ctrlval(r, d->ctrl_val, d->mbps_val); in set_mba_sc()
2283 d->ctrl_val[i] = r->default_ctrl; in reset_all_ctrls()
2670 ctrl = d->ctrl_val; in __init_one_rdt_domain()
2687 peer_ctl = d_cdp->ctrl_val[i]; in __init_one_rdt_domain()
Dinternal.h332 u32 *ctrl_val; member
/kernel/linux/linux-5.10/sound/soc/codecs/
Dnau8824.c1074 unsigned int val_len = 0, osr, ctrl_val, bclk_fs, bclk_div; in nau8824_hw_params() local
1110 NAU8824_REG_PORT0_I2S_PCM_CTRL_2, &ctrl_val); in nau8824_hw_params()
1111 if (ctrl_val & NAU8824_I2S_MS_MASTER) { in nau8824_hw_params()
1238 unsigned int tslot_l = 0, ctrl_val = 0; in nau8824_set_tdm_slot() local
1246 ctrl_val |= (NAU8824_TDM_MODE | NAU8824_TDM_OFFSET_EN); in nau8824_set_tdm_slot()
1249 ctrl_val |= (tx_mask >> 4); in nau8824_set_tdm_slot()
1251 ctrl_val |= tx_mask; in nau8824_set_tdm_slot()
1254 ctrl_val |= ((rx_mask >> 4) << NAU8824_TDM_DACR_RX_SFT); in nau8824_set_tdm_slot()
1256 ctrl_val |= (rx_mask << NAU8824_TDM_DACR_RX_SFT); in nau8824_set_tdm_slot()
1261 NAU8824_TDM_TX_MASK, ctrl_val); in nau8824_set_tdm_slot()
Dnau8810.c701 unsigned int ctrl_val, bclk_fs, bclk_div; in nau8810_pcm_hw_params() local
704 regmap_read(nau8810->regmap, NAU8810_REG_CLOCK, &ctrl_val); in nau8810_pcm_hw_params()
705 if (ctrl_val & NAU8810_CLKIO_MASTER) { in nau8810_pcm_hw_params()
Dnau8822.c835 unsigned int ctrl_val, bclk_fs, bclk_div; in nau8822_hw_params() local
838 ctrl_val = snd_soc_component_read(component, NAU8822_REG_CLOCKING); in nau8822_hw_params()
839 if (ctrl_val & NAU8822_CLK_MASTER) { in nau8822_hw_params()
Dnau8825.c1247 unsigned int val_len = 0, osr, ctrl_val, bclk_fs, bclk_div; in nau8825_hw_params() local
1282 regmap_read(nau8825->regmap, NAU8825_REG_I2S_PCM_CTRL2, &ctrl_val); in nau8825_hw_params()
1283 if (ctrl_val & NAU8825_I2S_MS_MASTER) { in nau8825_hw_params()
/kernel/linux/linux-5.10/drivers/media/i2c/
Dov5675.c615 static int ov5675_set_ctrl_hflip(struct ov5675 *ov5675, u32 ctrl_val) in ov5675_set_ctrl_hflip() argument
627 ctrl_val ? val & ~BIT(3) : val); in ov5675_set_ctrl_hflip()
630 static int ov5675_set_ctrl_vflip(struct ov5675 *ov5675, u8 ctrl_val) in ov5675_set_ctrl_vflip() argument
642 ctrl_val ? val | BIT(4) | BIT(5) : val); in ov5675_set_ctrl_vflip()
655 ctrl_val ? val | BIT(1) : val); in ov5675_set_ctrl_vflip()
/kernel/linux/linux-5.10/drivers/media/usb/gspca/m5602/
Dm5602_s5k83a.c562 u8 old_val, ctrl_val, test_val = 0xff; in s5k83a_dump_registers() local
566 m5602_read_sensor(sd, address, &ctrl_val, 1); in s5k83a_dump_registers()
568 if (ctrl_val == test_val) in s5k83a_dump_registers()
/kernel/linux/linux-5.10/include/linux/
Dsfi.h134 u32 ctrl_val; /* value to write to PERF_CTL */ member
/kernel/linux/linux-5.10/drivers/cpufreq/
Dsfi-cpufreq.c56 ((u32) sfi_cpufreq_array[next_perf_state].ctrl_val & in sfi_cpufreq_target()
/kernel/linux/linux-5.10/drivers/clk/nxp/
Dclk-lpc32xx.c800 u32 val, ctrl_val, count; in clk_usb_enable() local
805 regmap_read(clk_regmap, LPC32XX_CLKPWR_USB_CTRL, &ctrl_val); in clk_usb_enable()
814 ctrl_val); in clk_usb_enable()
831 regmap_write(clk_regmap, LPC32XX_CLKPWR_USB_CTRL, ctrl_val); in clk_usb_enable()
852 u32 ctrl_val, val; in clk_usb_is_enabled() local
855 regmap_read(clk_regmap, LPC32XX_CLKPWR_USB_CTRL, &ctrl_val); in clk_usb_is_enabled()
856 if ((ctrl_val & clk->ctrl_mask) != clk->ctrl_enable) in clk_usb_is_enabled()
/kernel/linux/linux-5.10/drivers/iio/temperature/
Dmlx90632.c66 #define MLX90632_PWR_STATUS(ctrl_val) (ctrl_val << 1) argument
77 #define MLX90632_MTYP_STATUS(ctrl_val) (ctrl_val << 4) argument
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_minidump.c115 u32 ctrl_val; member
599 qlcnic_ind_wr(adapter, l1->ctrl_addr, LSW(l1->ctrl_val)); in qlcnic_dump_l1_cache()
622 poll_mask = LSB(MSW(l2->ctrl_val)); in qlcnic_dump_l2_cache()
623 poll_to = MSB(MSW(l2->ctrl_val)); in qlcnic_dump_l2_cache()
627 if (LSW(l2->ctrl_val)) in qlcnic_dump_l2_cache()
629 LSW(l2->ctrl_val)); in qlcnic_dump_l2_cache()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_xgmac.c441 u32 pause_time, pause_ctrl, port_mode, ctrl_val; in hns_xgmac_get_info() local
443 ctrl_val = dsaf_read_dev(drv, XGMAC_MAC_CONTROL_REG); in hns_xgmac_get_info()
444 mac_info->pad_and_crc_en = dsaf_get_bit(ctrl_val, XGMAC_CTL_TX_PAD_B); in hns_xgmac_get_info()
/kernel/linux/linux-5.10/arch/x86/events/intel/
Dcore.c2180 u64 ctrl_val, mask; in intel_pmu_disable_fixed() local
2198 rdmsrl(hwc->config_base, ctrl_val); in intel_pmu_disable_fixed()
2199 ctrl_val &= ~mask; in intel_pmu_disable_fixed()
2200 wrmsrl(hwc->config_base, ctrl_val); in intel_pmu_disable_fixed()
2437 u64 ctrl_val, mask, bits = 0; in intel_pmu_enable_fixed() local
2481 rdmsrl(hwc->config_base, ctrl_val); in intel_pmu_enable_fixed()
2482 ctrl_val &= ~mask; in intel_pmu_enable_fixed()
2483 ctrl_val |= bits; in intel_pmu_enable_fixed()
2484 wrmsrl(hwc->config_base, ctrl_val); in intel_pmu_enable_fixed()
/kernel/linux/linux-5.10/drivers/media/platform/s5p-jpeg/
Djpeg-core.c1867 static int s5p_jpeg_adjust_subs_ctrl(struct s5p_jpeg_ctx *ctx, int *ctrl_val) in s5p_jpeg_adjust_subs_ctrl() argument
1879 *ctrl_val = 0; in s5p_jpeg_adjust_subs_ctrl()
1888 *ctrl_val == V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY) in s5p_jpeg_adjust_subs_ctrl()
1898 if (ctx->out_q.fmt->subsampling > *ctrl_val) in s5p_jpeg_adjust_subs_ctrl()
1899 *ctrl_val = ctx->out_q.fmt->subsampling; in s5p_jpeg_adjust_subs_ctrl()
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
Dniu.c758 u64 ctrl_val, test_cfg_val, sig, mask, val; in serdes_init_10g() local
774 ctrl_val = (ENET_SERDES_CTRL_SDET_0 | in serdes_init_10g()
799 nw64(ctrl_reg, ctrl_val); in serdes_init_10g()
911 u64 ctrl_val, test_cfg_val, sig, mask, val; in serdes_init_1g_serdes() local
935 ctrl_val = (ENET_SERDES_CTRL_SDET_0 | in serdes_init_1g_serdes()
965 nw64(ctrl_reg, ctrl_val); in serdes_init_1g_serdes()
2354 u64 ctrl_val, test_cfg_val, sig, mask, val; in serdes_init_10g_serdes() local
2371 ctrl_val = (ENET_SERDES_CTRL_SDET_0 | in serdes_init_10g_serdes()
2398 nw64(ctrl_reg, ctrl_val); in serdes_init_10g_serdes()

12