Home
last modified time | relevance | path

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

12

/linux/drivers/hwmon/
H A Dgpio-fan.c27 int ctrl_val; member
104 static void __set_fan_ctrl(struct gpio_fan_data *fan_data, int ctrl_val) in __set_fan_ctrl() argument
110 (ctrl_val >> i) & 1); in __set_fan_ctrl()
116 int ctrl_val = 0; in __get_fan_ctrl() local
122 ctrl_val |= (value << i); in __get_fan_ctrl()
124 return ctrl_val; in __get_fan_ctrl()
133 __set_fan_ctrl(fan_data, fan_data->speed[speed_index].ctrl_val); in set_fan_speed()
139 int ctrl_val = __get_fan_ctrl(fan_data); in get_fan_speed_index() local
143 if (fan_data->speed[i].ctrl_val == ctrl_val) in get_fan_speed_index()
147 "missing speed array entry for GPIO value 0x%x\n", ctrl_val); in get_fan_speed_index()
[all …]
/linux/arch/x86/events/zhaoxin/
H A 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()
/linux/drivers/input/keyboard/
H A 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()
/linux/drivers/tty/serial/
H A Dst-asc.c471 u32 ctrl_val; in asc_set_termios() local
487 ctrl_val = asc_in(port, ASC_CTL); in asc_set_termios()
490 asc_out(port, ASC_CTL, (ctrl_val & ~ASC_CTL_RUN)); in asc_set_termios()
491 ctrl_val = ASC_CTL_RXENABLE | ASC_CTL_FIFOENABLE; in asc_set_termios()
499 ctrl_val |= ASC_CTL_MODE_7BIT_PAR; in asc_set_termios()
502 ctrl_val |= (cflag & PARENB) ? ASC_CTL_MODE_8BIT_PAR : in asc_set_termios()
510 ctrl_val |= (cflag & CSTOPB) ? ASC_CTL_STOP_2BIT : ASC_CTL_STOP_1BIT; in asc_set_termios()
514 ctrl_val |= ASC_CTL_PARITYODD; in asc_set_termios()
518 ctrl_val |= ASC_CTL_CTSENABLE; in asc_set_termios()
547 ctrl_val |= ASC_CTL_BAUDMODE; in asc_set_termios()
[all …]
/linux/arch/x86/kernel/cpu/resctrl/
H A Dctrlmondata.c291 hw_dom->ctrl_val[idx] = cfg_val; in resctrl_arch_update_one()
323 if (cfg->new_ctrl == hw_dom->ctrl_val[idx]) in resctrl_arch_update_domains()
325 hw_dom->ctrl_val[idx] = cfg->new_ctrl; in resctrl_arch_update_domains()
444 return hw_dom->ctrl_val[idx]; in resctrl_arch_get_config()
452 u32 ctrl_val; in show_doms() local
463 ctrl_val = dom->mbps_val[closid]; in show_doms()
465 ctrl_val = resctrl_arch_get_config(r, dom, closid, in show_doms()
469 ctrl_val); in show_doms()
H A Dcore.c324 wrmsrl(hw_res->msr_base + i, hw_dom->ctrl_val[i]); in mba_wrmsr_amd()
349 wrmsrl(hw_res->msr_base + i, delay_bw_map(hw_dom->ctrl_val[i], m->res)); in mba_wrmsr_intel()
359 wrmsrl(hw_res->msr_base + i, hw_dom->ctrl_val[i]); in cat_wrmsr()
452 kfree(hw_dom->ctrl_val); in ctrl_domain_free()
470 dc = kmalloc_array(hw_res->num_closid, sizeof(*hw_dom->ctrl_val), in domain_setup_ctrlval()
475 hw_dom->ctrl_val = dc; in domain_setup_ctrlval()
H A Dinternal.h392 u32 *ctrl_val; member
/linux/drivers/reset/sti/
H A Dreset-syscfg.c55 u32 ctrl_val = rst->active_low ? !assert : !!assert; in syscfg_reset_program_hw() local
63 err = regmap_field_write(ch->reset, ctrl_val); in syscfg_reset_program_hw()
70 err = regmap_field_read_poll_timeout(ch->ack, ack_val, (ack_val == ctrl_val), in syscfg_reset_program_hw()
/linux/sound/soc/codecs/
H A Dnau8825.c1280 unsigned int val_len = 0, ctrl_val, bclk_fs, bclk_div; in nau8825_hw_params() local
1307 regmap_read(nau8825->regmap, NAU8825_REG_I2S_PCM_CTRL2, &ctrl_val); in nau8825_hw_params()
1308 if (ctrl_val & NAU8825_I2S_MS_MASTER) { in nau8825_hw_params()
1430 unsigned int ctrl_val = 0, ctrl_offset = 0, value = 0, dac_s, adc_s; in nau8825_set_tdm_slot() local
1459 ctrl_val |= NAU8825_TDM_OFFSET_EN; in nau8825_set_tdm_slot()
1470 ctrl_val |= NAU8825_TDM_MODE; in nau8825_set_tdm_slot()
1474 ctrl_val |= 1 << NAU8825_TDM_DACR_RX_SFT; in nau8825_set_tdm_slot()
1477 ctrl_val |= 2 << NAU8825_TDM_DACR_RX_SFT; in nau8825_set_tdm_slot()
1480 ctrl_val |= 1 << NAU8825_TDM_DACL_RX_SFT; in nau8825_set_tdm_slot()
1481 ctrl_val |= 2 << NAU8825_TDM_DACR_RX_SFT; in nau8825_set_tdm_slot()
[all …]
H A Dnau8824.c1079 unsigned int val_len = 0, ctrl_val, bclk_fs, bclk_div; in nau8824_hw_params() local
1108 NAU8824_REG_PORT0_I2S_PCM_CTRL_2, &ctrl_val); in nau8824_hw_params()
1109 if (ctrl_val & NAU8824_I2S_MS_MASTER) { in nau8824_hw_params()
1236 unsigned int tslot_l = 0, ctrl_val = 0; in nau8824_set_tdm_slot() local
1244 ctrl_val |= (NAU8824_TDM_MODE | NAU8824_TDM_OFFSET_EN); in nau8824_set_tdm_slot()
1247 ctrl_val |= (tx_mask >> 4); in nau8824_set_tdm_slot()
1249 ctrl_val |= tx_mask; in nau8824_set_tdm_slot()
1252 ctrl_val |= ((rx_mask >> 4) << NAU8824_TDM_DACR_RX_SFT); in nau8824_set_tdm_slot()
1254 ctrl_val |= (rx_mask << NAU8824_TDM_DACR_RX_SFT); in nau8824_set_tdm_slot()
1259 NAU8824_TDM_TX_MASK, ctrl_val); in nau8824_set_tdm_slot()
H A Dnau8810.c704 unsigned int ctrl_val, bclk_fs, bclk_div; in nau8810_pcm_hw_params() local
707 regmap_read(nau8810->regmap, NAU8810_REG_CLOCK, &ctrl_val); in nau8810_pcm_hw_params()
708 if (ctrl_val & NAU8810_CLKIO_MASTER) { in nau8810_pcm_hw_params()
H A Dnau8822.c868 unsigned int ctrl_val, bclk_fs, bclk_div; in nau8822_hw_params() local
871 ctrl_val = snd_soc_component_read(component, NAU8822_REG_CLOCKING); in nau8822_hw_params()
872 if (ctrl_val & NAU8822_CLK_MASTER) { in nau8822_hw_params()
/linux/drivers/media/i2c/
H A Dov13b10.c825 static int ov13b10_set_ctrl_hflip(struct ov13b10 *ov13b, u32 ctrl_val) in ov13b10_set_ctrl_hflip() argument
837 ctrl_val ? val & ~BIT(3) : val); in ov13b10_set_ctrl_hflip()
853 ctrl_val ? ++val : val); in ov13b10_set_ctrl_hflip()
856 static int ov13b10_set_ctrl_vflip(struct ov13b10 *ov13b, u32 ctrl_val) in ov13b10_set_ctrl_vflip() argument
868 ctrl_val ? val | BIT(4) | BIT(5) : val); in ov13b10_set_ctrl_vflip()
884 ctrl_val ? --val : val); in ov13b10_set_ctrl_vflip()
H A Dov5675.c656 static int ov5675_set_ctrl_hflip(struct ov5675 *ov5675, u32 ctrl_val) in ov5675_set_ctrl_hflip() argument
668 ctrl_val ? val & ~BIT(3) : val | BIT(3)); in ov5675_set_ctrl_hflip()
671 static int ov5675_set_ctrl_vflip(struct ov5675 *ov5675, u8 ctrl_val) in ov5675_set_ctrl_vflip() argument
683 ctrl_val ? val | BIT(4) | BIT(5) : val & ~BIT(4) & ~BIT(5)); in ov5675_set_ctrl_vflip()
696 ctrl_val ? val | BIT(1) : val & ~BIT(1)); in ov5675_set_ctrl_vflip()
H A Dhi847.c2369 static int hi847_set_ctrl_hflip(struct hi847 *hi847, u32 ctrl_val) in hi847_set_ctrl_hflip() argument
2385 ctrl_val ? val | BIT(8) : val & ~BIT(8)); in hi847_set_ctrl_hflip()
2388 static int hi847_set_ctrl_vflip(struct hi847 *hi847, u8 ctrl_val) in hi847_set_ctrl_vflip() argument
2404 ctrl_val ? val | BIT(9) : val & ~BIT(9)); in hi847_set_ctrl_vflip()
H A Dgc08a3.c780 static int gc08a3_set_ctrl_hflip(struct gc08a3 *gc08a3, u32 ctrl_val) in gc08a3_set_ctrl_hflip() argument
793 ctrl_val ? GC08A3_FLIP_H_MASK : 0, NULL); in gc08a3_set_ctrl_hflip()
796 static int gc08a3_set_ctrl_vflip(struct gc08a3 *gc08a3, u32 ctrl_val) in gc08a3_set_ctrl_vflip() argument
809 ctrl_val ? GC08A3_FLIP_V_MASK : 0, NULL); in gc08a3_set_ctrl_vflip()
H A Dgc05a2.c804 static int gc05a2_set_ctrl_hflip(struct gc05a2 *gc05a2, u32 ctrl_val) in gc05a2_set_ctrl_hflip() argument
817 ctrl_val ? GC05A2_FLIP_H_MASK : 0, NULL); in gc05a2_set_ctrl_hflip()
820 static int gc05a2_set_ctrl_vflip(struct gc05a2 *gc05a2, u32 ctrl_val) in gc05a2_set_ctrl_vflip() argument
833 ctrl_val ? GC05A2_FLIP_V_MASK : 0, NULL); in gc05a2_set_ctrl_vflip()
H A Dov08d10.c818 static int ov08d10_set_ctrl_flip(struct ov08d10 *ov08d10, u32 ctrl_val) in ov08d10_set_ctrl_flip() argument
833 val = ret | (ctrl_val & OV08D10_REG_FLIP_MASK); in ov08d10_set_ctrl_flip()
/linux/drivers/media/usb/gspca/m5602/
H A Dm5602_s5k83a.c557 u8 old_val, ctrl_val, test_val = 0xff; in s5k83a_dump_registers() local
561 m5602_read_sensor(sd, address, &ctrl_val, 1); in s5k83a_dump_registers()
563 if (ctrl_val == test_val) in s5k83a_dump_registers()
/linux/drivers/clk/nxp/
H A 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()
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A 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()
/linux/drivers/net/ethernet/ti/
H A Dam65-cpts.c420 u32 ctrl_val, ppm_hi, ppm_low; in am65_cpts_ptp_adjfine() local
442 ctrl_val = am65_cpts_read32(cpts, control); in am65_cpts_ptp_adjfine()
444 ctrl_val |= AM65_CPTS_CONTROL_TS_PPM_DIR; in am65_cpts_ptp_adjfine()
446 ctrl_val &= ~AM65_CPTS_CONTROL_TS_PPM_DIR; in am65_cpts_ptp_adjfine()
477 am65_cpts_write32(cpts, ctrl_val, control); in am65_cpts_ptp_adjfine()
/linux/drivers/iio/temperature/
H A Dmlx90632.c77 #define MLX90632_PWR_STATUS(ctrl_val) (ctrl_val << 1) argument
93 #define MLX90632_MTYP_STATUS(ctrl_val) (ctrl_val << 4) argument
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
H A Dmcu.c618 u8 ctrl_val; in mt7921_mcu_fw_log_2_host() member
621 .ctrl_val = ctrl in mt7921_mcu_fw_log_2_host()
/linux/drivers/hwtracing/coresight/
H A Dcoresight-tpdm.c724 static DEVICE_ATTR_WO(ctrl_val);

12