/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 …]
|
/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()
|
/drivers/tty/serial/ |
D | st-asc.c | 509 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 …]
|
/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() 75 if (ack_val == ctrl_val) in syscfg_reset_program_hw()
|
/drivers/media/i2c/ |
D | ov8856.c | 1675 static int ov8856_set_ctrl_hflip(struct ov8856 *ov8856, u32 ctrl_val) in ov8856_set_ctrl_hflip() argument 1687 ctrl_val ? val & ~OV8856_REG_MIRROR_OP_2 : in ov8856_set_ctrl_hflip() 1700 ctrl_val ? val & ~OV8856_REG_FORMAT2_OP_1 & in ov8856_set_ctrl_hflip() 1708 static int ov8856_set_ctrl_vflip(struct ov8856 *ov8856, u8 ctrl_val) in ov8856_set_ctrl_vflip() argument 1720 ctrl_val ? val | OV8856_REG_FLIP_OP_1 | in ov8856_set_ctrl_vflip() 1732 ctrl_val ? val | OV8856_REG_FLIP_OP_2 : in ov8856_set_ctrl_vflip() 1742 ctrl_val ? val & ~OV8856_REG_FLIP_OP_0 & in ov8856_set_ctrl_vflip() 1754 ctrl_val ? val | OV8856_REG_FORMAT1_OP_1 | in ov8856_set_ctrl_vflip()
|
D | ov5675.c | 615 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 | BIT(3)); 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 & ~BIT(4) & ~BIT(5)); in ov5675_set_ctrl_vflip() 655 ctrl_val ? val | BIT(1) : val & ~BIT(1)); in ov5675_set_ctrl_vflip()
|
/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()
|
/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()
|
/drivers/iio/temperature/ |
D | mlx90632.c | 66 #define MLX90632_PWR_STATUS(ctrl_val) (ctrl_val << 1) argument 77 #define MLX90632_MTYP_STATUS(ctrl_val) (ctrl_val << 4) argument
|
/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()
|
/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()
|
/drivers/media/platform/s5p-jpeg/ |
D | jpeg-core.c | 1867 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()
|
/drivers/net/wireless/mediatek/mt76/mt7921/ |
D | mcu.c | 979 u8 ctrl_val; in mt7921_mcu_fw_log_2_host() member 982 .ctrl_val = ctrl in mt7921_mcu_fw_log_2_host()
|
/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()
|
/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | mcu.c | 1692 u8 ctrl_val; in mt7615_mcu_fw_log_2_host() member 1695 .ctrl_val = ctrl in mt7615_mcu_fw_log_2_host()
|
/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | mcu.c | 2957 u8 ctrl_val; in mt7915_mcu_fw_log_2_host() member 2960 .ctrl_val = ctrl in mt7915_mcu_fw_log_2_host()
|