/linux-6.6.21/drivers/hwmon/ |
D | gpio-fan.c | 27 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-6.6.21/arch/x86/events/zhaoxin/ |
D | core.c | 292 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-6.6.21/drivers/input/keyboard/ |
D | pmic8xxx-keypad.c | 348 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-6.6.21/drivers/tty/serial/ |
D | st-asc.c | 470 u32 ctrl_val; in asc_set_termios() local 486 ctrl_val = asc_in(port, ASC_CTL); in asc_set_termios() 489 asc_out(port, ASC_CTL, (ctrl_val & ~ASC_CTL_RUN)); in asc_set_termios() 490 ctrl_val = ASC_CTL_RXENABLE | ASC_CTL_FIFOENABLE; in asc_set_termios() 498 ctrl_val |= ASC_CTL_MODE_7BIT_PAR; in asc_set_termios() 501 ctrl_val |= (cflag & PARENB) ? ASC_CTL_MODE_8BIT_PAR : in asc_set_termios() 509 ctrl_val |= (cflag & CSTOPB) ? ASC_CTL_STOP_2BIT : ASC_CTL_STOP_1BIT; in asc_set_termios() 513 ctrl_val |= ASC_CTL_PARITYODD; in asc_set_termios() 517 ctrl_val |= ASC_CTL_CTSENABLE; in asc_set_termios() 558 ctrl_val |= ASC_CTL_BAUDMODE; in asc_set_termios() [all …]
|
/linux-6.6.21/arch/x86/kernel/cpu/resctrl/ |
D | ctrlmondata.c | 274 if (cfg->new_ctrl != hw_dom->ctrl_val[idx]) { in apply_config() 276 hw_dom->ctrl_val[idx] = cfg->new_ctrl; in apply_config() 295 hw_dom->ctrl_val[idx] = cfg_val; in resctrl_arch_update_one() 456 return hw_dom->ctrl_val[idx]; in resctrl_arch_get_config() 464 u32 ctrl_val; in show_doms() local 472 ctrl_val = dom->mbps_val[closid]; in show_doms() 474 ctrl_val = resctrl_arch_get_config(r, dom, closid, in show_doms() 478 ctrl_val); in show_doms()
|
D | core.c | 310 wrmsrl(hw_res->msr_base + i, hw_dom->ctrl_val[i]); in mba_wrmsr_amd() 337 wrmsrl(hw_res->msr_base + i, delay_bw_map(hw_dom->ctrl_val[i], r)); in mba_wrmsr_intel() 348 wrmsrl(hw_res->msr_base + i, hw_dom->ctrl_val[i]); in cat_wrmsr() 437 kfree(hw_dom->ctrl_val); in domain_free() 448 dc = kmalloc_array(hw_res->num_closid, sizeof(*hw_dom->ctrl_val), in domain_setup_ctrlval() 453 hw_dom->ctrl_val = dc; in domain_setup_ctrlval()
|
D | rdtgroup.c | 927 u32 ctrl_val; in rdt_bit_usage_show() local 940 ctrl_val = resctrl_arch_get_config(r, dom, i, in rdt_bit_usage_show() 945 sw_shareable |= ctrl_val; in rdt_bit_usage_show() 948 exclusive |= ctrl_val; in rdt_bit_usage_show() 2657 hw_dom->ctrl_val[i] = r->default_ctrl; in reset_all_ctrls() 3031 u32 peer_ctl, ctrl_val; in __init_one_rdt_domain() local 3058 ctrl_val = resctrl_arch_get_config(r, d, i, in __init_one_rdt_domain() 3060 used_b |= ctrl_val | peer_ctl; in __init_one_rdt_domain() 3062 cfg->new_ctrl |= ctrl_val | peer_ctl; in __init_one_rdt_domain()
|
D | internal.h | 333 u32 *ctrl_val; member
|
/linux-6.6.21/drivers/reset/sti/ |
D | reset-syscfg.c | 54 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() 69 err = regmap_field_read_poll_timeout(ch->ack, ack_val, (ack_val == ctrl_val), in syscfg_reset_program_hw()
|
/linux-6.6.21/sound/soc/codecs/ |
D | nau8825.c | 1280 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 …]
|
D | nau8824.c | 1066 unsigned int val_len = 0, ctrl_val, bclk_fs, bclk_div; in nau8824_hw_params() local 1095 NAU8824_REG_PORT0_I2S_PCM_CTRL_2, &ctrl_val); in nau8824_hw_params() 1096 if (ctrl_val & NAU8824_I2S_MS_MASTER) { in nau8824_hw_params() 1223 unsigned int tslot_l = 0, ctrl_val = 0; in nau8824_set_tdm_slot() local 1231 ctrl_val |= (NAU8824_TDM_MODE | NAU8824_TDM_OFFSET_EN); in nau8824_set_tdm_slot() 1234 ctrl_val |= (tx_mask >> 4); in nau8824_set_tdm_slot() 1236 ctrl_val |= tx_mask; in nau8824_set_tdm_slot() 1239 ctrl_val |= ((rx_mask >> 4) << NAU8824_TDM_DACR_RX_SFT); in nau8824_set_tdm_slot() 1241 ctrl_val |= (rx_mask << NAU8824_TDM_DACR_RX_SFT); in nau8824_set_tdm_slot() 1246 NAU8824_TDM_TX_MASK, ctrl_val); in nau8824_set_tdm_slot()
|
D | nau8810.c | 701 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()
|
D | nau8822.c | 852 unsigned int ctrl_val, bclk_fs, bclk_div; in nau8822_hw_params() local 855 ctrl_val = snd_soc_component_read(component, NAU8822_REG_CLOCKING); in nau8822_hw_params() 856 if (ctrl_val & NAU8822_CLK_MASTER) { in nau8822_hw_params()
|
D | nau8821.c | 850 unsigned int val_len = 0, ctrl_val, bclk_fs, clk_div; in nau8821_hw_params() local 875 regmap_read(nau8821->regmap, NAU8821_R1D_I2S_PCM_CTRL2, &ctrl_val); in nau8821_hw_params() 876 if (ctrl_val & NAU8821_I2S_MS_MASTER) { in nau8821_hw_params()
|
/linux-6.6.21/drivers/media/i2c/ |
D | ov8856.c | 1733 static int ov8856_set_ctrl_hflip(struct ov8856 *ov8856, u32 ctrl_val) in ov8856_set_ctrl_hflip() argument 1745 ctrl_val ? val & ~OV8856_REG_MIRROR_OP_2 : in ov8856_set_ctrl_hflip() 1758 ctrl_val ? val & ~OV8856_REG_FORMAT2_OP_1 & in ov8856_set_ctrl_hflip() 1766 static int ov8856_set_ctrl_vflip(struct ov8856 *ov8856, u8 ctrl_val) in ov8856_set_ctrl_vflip() argument 1778 ctrl_val ? val | OV8856_REG_FLIP_OP_1 | in ov8856_set_ctrl_vflip() 1790 ctrl_val ? val | OV8856_REG_FLIP_OP_2 : in ov8856_set_ctrl_vflip() 1800 ctrl_val ? val & ~OV8856_REG_FLIP_OP_0 & in ov8856_set_ctrl_vflip() 1812 ctrl_val ? val | OV8856_REG_FORMAT1_OP_1 | in ov8856_set_ctrl_vflip()
|
D | ov13b10.c | 773 static int ov13b10_set_ctrl_hflip(struct ov13b10 *ov13b, u32 ctrl_val) in ov13b10_set_ctrl_hflip() argument 785 ctrl_val ? val & ~BIT(3) : val); in ov13b10_set_ctrl_hflip() 801 ctrl_val ? ++val : val); in ov13b10_set_ctrl_hflip() 804 static int ov13b10_set_ctrl_vflip(struct ov13b10 *ov13b, u32 ctrl_val) in ov13b10_set_ctrl_vflip() argument 816 ctrl_val ? val | BIT(4) | BIT(5) : val); in ov13b10_set_ctrl_vflip() 832 ctrl_val ? --val : val); in ov13b10_set_ctrl_vflip()
|
D | ov5675.c | 659 static int ov5675_set_ctrl_hflip(struct ov5675 *ov5675, u32 ctrl_val) in ov5675_set_ctrl_hflip() argument 671 ctrl_val ? val & ~BIT(3) : val | BIT(3)); in ov5675_set_ctrl_hflip() 674 static int ov5675_set_ctrl_vflip(struct ov5675 *ov5675, u8 ctrl_val) in ov5675_set_ctrl_vflip() argument 686 ctrl_val ? val | BIT(4) | BIT(5) : val & ~BIT(4) & ~BIT(5)); in ov5675_set_ctrl_vflip() 699 ctrl_val ? val | BIT(1) : val & ~BIT(1)); in ov5675_set_ctrl_vflip()
|
D | hi847.c | 2372 static int hi847_set_ctrl_hflip(struct hi847 *hi847, u32 ctrl_val) in hi847_set_ctrl_hflip() argument 2388 ctrl_val ? val | BIT(8) : val & ~BIT(8)); in hi847_set_ctrl_hflip() 2391 static int hi847_set_ctrl_vflip(struct hi847 *hi847, u8 ctrl_val) in hi847_set_ctrl_vflip() argument 2407 ctrl_val ? val | BIT(9) : val & ~BIT(9)); in hi847_set_ctrl_vflip()
|
D | ov08x40.c | 2634 static int ov08x40_set_ctrl_hflip(struct ov08x40 *ov08x, u32 ctrl_val) in ov08x40_set_ctrl_hflip() argument 2646 ctrl_val ? val | BIT(2) : val & ~BIT(2)); in ov08x40_set_ctrl_hflip() 2649 static int ov08x40_set_ctrl_vflip(struct ov08x40 *ov08x, u32 ctrl_val) in ov08x40_set_ctrl_vflip() argument 2661 ctrl_val ? val | BIT(2) : val & ~BIT(2)); in ov08x40_set_ctrl_vflip()
|
/linux-6.6.21/drivers/media/usb/gspca/m5602/ |
D | m5602_s5k83a.c | 557 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-6.6.21/drivers/clk/nxp/ |
D | clk-lpc32xx.c | 800 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-6.6.21/drivers/net/ethernet/ti/ |
D | am65-cpts.c | 413 u32 ctrl_val, ppm_hi, ppm_low; in am65_cpts_ptp_adjfine() local 435 ctrl_val = am65_cpts_read32(cpts, control); in am65_cpts_ptp_adjfine() 437 ctrl_val |= AM65_CPTS_CONTROL_TS_PPM_DIR; in am65_cpts_ptp_adjfine() 439 ctrl_val &= ~AM65_CPTS_CONTROL_TS_PPM_DIR; in am65_cpts_ptp_adjfine() 470 am65_cpts_write32(cpts, ctrl_val, control); in am65_cpts_ptp_adjfine()
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_minidump.c | 115 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-6.6.21/drivers/iio/temperature/ |
D | mlx90632.c | 77 #define MLX90632_PWR_STATUS(ctrl_val) (ctrl_val << 1) argument 93 #define MLX90632_MTYP_STATUS(ctrl_val) (ctrl_val << 4) argument
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_xgmac.c | 428 u32 pause_time, pause_ctrl, port_mode, ctrl_val; in hns_xgmac_get_info() local 430 ctrl_val = dsaf_read_dev(drv, XGMAC_MAC_CONTROL_REG); in hns_xgmac_get_info() 431 mac_info->pad_and_crc_en = dsaf_get_bit(ctrl_val, XGMAC_CTL_TX_PAD_B); in hns_xgmac_get_info()
|