/Linux-v5.4/drivers/hwmon/ |
D | gpio-fan.c | 26 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 …]
|
/Linux-v5.4/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-v5.4/drivers/tty/serial/ |
D | st-asc.c | 514 u32 ctrl_val; in asc_set_termios() local 530 ctrl_val = asc_in(port, ASC_CTL); in asc_set_termios() 533 asc_out(port, ASC_CTL, (ctrl_val & ~ASC_CTL_RUN)); in asc_set_termios() 534 ctrl_val = ASC_CTL_RXENABLE | ASC_CTL_FIFOENABLE; in asc_set_termios() 542 ctrl_val |= ASC_CTL_MODE_7BIT_PAR; in asc_set_termios() 544 ctrl_val |= (cflag & PARENB) ? ASC_CTL_MODE_8BIT_PAR : in asc_set_termios() 549 ctrl_val |= (cflag & CSTOPB) ? ASC_CTL_STOP_2BIT : ASC_CTL_STOP_1BIT; in asc_set_termios() 553 ctrl_val |= ASC_CTL_PARITYODD; in asc_set_termios() 557 ctrl_val |= ASC_CTL_CTSENABLE; in asc_set_termios() 599 ctrl_val |= ASC_CTL_BAUDMODE; in asc_set_termios() [all …]
|
/Linux-v5.4/drivers/reset/sti/ |
D | reset-syscfg.c | 53 u32 ctrl_val = rst->active_low ? !assert : !!assert; in syscfg_reset_program_hw() local 61 err = regmap_field_write(ch->reset, ctrl_val); in syscfg_reset_program_hw() 74 if (ack_val == ctrl_val) in syscfg_reset_program_hw()
|
/Linux-v5.4/arch/x86/kernel/cpu/resctrl/ |
D | ctrlmondata.c | 323 dc = !mba_sc ? d->ctrl_val : d->mbps_val; in update_domains() 444 u32 ctrl_val; in show_doms() local 451 ctrl_val = (!is_mba_sc(r) ? dom->ctrl_val[closid] : in show_doms() 454 ctrl_val); in show_doms()
|
D | core.c | 368 wrmsrl(r->msr_base + i, d->ctrl_val[i]); in mba_wrmsr_amd() 393 wrmsrl(r->msr_base + i, delay_bw_map(d->ctrl_val[i], r)); in mba_wrmsr_intel() 402 wrmsrl(r->msr_base + cbm_idx(r, i), d->ctrl_val[i]); in cat_wrmsr() 488 dc = kmalloc_array(r->num_closid, sizeof(*d->ctrl_val), GFP_KERNEL); in domain_setup_ctrlval() 498 d->ctrl_val = dc; in domain_setup_ctrlval() 643 kfree(d->ctrl_val); in domain_remove_cpu()
|
D | monitor.c | 380 cur_msr_val = dom_mba->ctrl_val[closid]; in update_mba_bw() 417 dom_mba->ctrl_val[closid] = new_msr_val; in update_mba_bw()
|
D | rdtgroup.c | 814 ctrl = dom->ctrl_val; in rdt_bit_usage_show() 1076 ctrl = d->ctrl_val; in __rdtgroup_cbm_overlaps() 1155 if (rdtgroup_cbm_overlaps(r, d, d->ctrl_val[closid], in rdtgroup_mode_test_exclusive() 1327 d->ctrl_val[rdtgrp->closid] : in rdtgroup_size_show() 1789 setup_default_ctrlval(r, d->ctrl_val, d->mbps_val); in set_mba_sc() 2134 d->ctrl_val[i] = r->default_ctrl; in reset_all_ctrls() 2526 ctrl = d->ctrl_val; in __init_one_rdt_domain() 2543 peer_ctl = d_cdp->ctrl_val[i]; in __init_one_rdt_domain()
|
D | internal.h | 325 u32 *ctrl_val; member
|
/Linux-v5.4/sound/soc/codecs/ |
D | nau8824.c | 1067 unsigned int val_len = 0, osr, ctrl_val, bclk_fs, bclk_div; in nau8824_hw_params() local 1102 NAU8824_REG_PORT0_I2S_PCM_CTRL_2, &ctrl_val); in nau8824_hw_params() 1103 if (ctrl_val & NAU8824_I2S_MS_MASTER) { in nau8824_hw_params() 1228 unsigned int tslot_l = 0, ctrl_val = 0; in nau8824_set_tdm_slot() local 1236 ctrl_val |= (NAU8824_TDM_MODE | NAU8824_TDM_OFFSET_EN); in nau8824_set_tdm_slot() 1239 ctrl_val |= (tx_mask >> 4); in nau8824_set_tdm_slot() 1241 ctrl_val |= tx_mask; in nau8824_set_tdm_slot() 1244 ctrl_val |= ((rx_mask >> 4) << NAU8824_TDM_DACR_RX_SFT); in nau8824_set_tdm_slot() 1246 ctrl_val |= (rx_mask << NAU8824_TDM_DACR_RX_SFT); in nau8824_set_tdm_slot() 1251 NAU8824_TDM_TX_MASK, ctrl_val); in nau8824_set_tdm_slot()
|
D | nau8810.c | 668 unsigned int ctrl_val, bclk_fs, bclk_div; in nau8810_pcm_hw_params() local 671 regmap_read(nau8810->regmap, NAU8810_REG_CLOCK, &ctrl_val); in nau8810_pcm_hw_params() 672 if (ctrl_val & NAU8810_CLKIO_MASTER) { in nau8810_pcm_hw_params()
|
D | nau8822.c | 831 unsigned int ctrl_val, bclk_fs, bclk_div; in nau8822_hw_params() local 834 snd_soc_component_read(component, NAU8822_REG_CLOCKING, &ctrl_val); in nau8822_hw_params() 835 if (ctrl_val & NAU8822_CLK_MASTER) { in nau8822_hw_params()
|
D | nau8825.c | 1247 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()
|
/Linux-v5.4/drivers/media/usb/gspca/m5602/ |
D | m5602_s5k83a.c | 562 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()
|
/Linux-v5.4/drivers/cpufreq/ |
D | sfi-cpufreq.c | 56 ((u32) sfi_cpufreq_array[next_perf_state].ctrl_val & in sfi_cpufreq_target()
|
/Linux-v5.4/include/linux/ |
D | sfi.h | 134 u32 ctrl_val; /* value to write to PERF_CTL */ member
|
/Linux-v5.4/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-v5.4/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_minidump.c | 116 u32 ctrl_val; member 600 qlcnic_ind_wr(adapter, l1->ctrl_addr, LSW(l1->ctrl_val)); in qlcnic_dump_l1_cache() 623 poll_mask = LSB(MSW(l2->ctrl_val)); in qlcnic_dump_l2_cache() 624 poll_to = MSB(MSW(l2->ctrl_val)); in qlcnic_dump_l2_cache() 628 if (LSW(l2->ctrl_val)) in qlcnic_dump_l2_cache() 630 LSW(l2->ctrl_val)); in qlcnic_dump_l2_cache()
|
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_xgmac.c | 440 u32 pause_time, pause_ctrl, port_mode, ctrl_val; in hns_xgmac_get_info() local 442 ctrl_val = dsaf_read_dev(drv, XGMAC_MAC_CONTROL_REG); in hns_xgmac_get_info() 443 mac_info->pad_and_crc_en = dsaf_get_bit(ctrl_val, XGMAC_CTL_TX_PAD_B); in hns_xgmac_get_info()
|
/Linux-v5.4/drivers/iio/temperature/ |
D | mlx90632.c | 62 #define MLX90632_PWR_STATUS(ctrl_val) (ctrl_val << 1) argument
|
/Linux-v5.4/drivers/i2c/busses/ |
D | i2c-i801.c | 1577 u32 base_addr, tco_base, tco_ctl, ctrl_val; in i801_add_tco() local 1615 pci_bus_read_config_dword(pci_dev->bus, devfn, ACPICTRL, &ctrl_val); in i801_add_tco() 1616 ctrl_val |= ACPICTRL_EN; in i801_add_tco() 1617 pci_bus_write_config_dword(pci_dev->bus, devfn, ACPICTRL, ctrl_val); in i801_add_tco()
|
/Linux-v5.4/arch/x86/events/intel/ |
D | core.c | 2135 u64 ctrl_val, mask; in intel_pmu_disable_fixed() local 2139 rdmsrl(hwc->config_base, ctrl_val); in intel_pmu_disable_fixed() 2140 ctrl_val &= ~mask; in intel_pmu_disable_fixed() 2141 wrmsrl(hwc->config_base, ctrl_val); in intel_pmu_disable_fixed() 2197 u64 ctrl_val, mask, bits = 0; in intel_pmu_enable_fixed() local 2225 rdmsrl(hwc->config_base, ctrl_val); in intel_pmu_enable_fixed() 2226 ctrl_val &= ~mask; in intel_pmu_enable_fixed() 2227 ctrl_val |= bits; in intel_pmu_enable_fixed() 2228 wrmsrl(hwc->config_base, ctrl_val); in intel_pmu_enable_fixed()
|
/Linux-v5.4/drivers/media/platform/s5p-jpeg/ |
D | jpeg-core.c | 1880 static int s5p_jpeg_adjust_subs_ctrl(struct s5p_jpeg_ctx *ctx, int *ctrl_val) in s5p_jpeg_adjust_subs_ctrl() argument 1892 *ctrl_val = 0; in s5p_jpeg_adjust_subs_ctrl() 1901 *ctrl_val == V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY) in s5p_jpeg_adjust_subs_ctrl() 1911 if (ctx->out_q.fmt->subsampling > *ctrl_val) in s5p_jpeg_adjust_subs_ctrl() 1912 *ctrl_val = ctx->out_q.fmt->subsampling; in s5p_jpeg_adjust_subs_ctrl()
|
/Linux-v5.4/drivers/net/ethernet/sun/ |
D | niu.c | 758 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()
|