Home
last modified time | relevance | path

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

/drivers/hwmon/
Dgpio-fan.c129 static void __set_fan_ctrl(struct gpio_fan_data *fan_data, int ctrl_val) in __set_fan_ctrl() argument
134 gpio_set_value(fan_data->ctrl[i], (ctrl_val >> i) & 1); in __set_fan_ctrl()
140 int ctrl_val = 0; in __get_fan_ctrl() local
146 ctrl_val |= (value << i); in __get_fan_ctrl()
148 return ctrl_val; in __get_fan_ctrl()
157 __set_fan_ctrl(fan_data, fan_data->speed[speed_index].ctrl_val); in set_fan_speed()
163 int ctrl_val = __get_fan_ctrl(fan_data); in get_fan_speed_index() local
167 if (fan_data->speed[i].ctrl_val == ctrl_val) in get_fan_speed_index()
171 "missing speed array entry for GPIO value 0x%x\n", ctrl_val); in get_fan_speed_index()
458 speed[i].ctrl_val = u; in gpio_fan_get_of_pdata()
/drivers/input/keyboard/
Dpmic8xxx-keypad.c356 unsigned int ctrl_val, events; in pmic8xxx_kp_irq() local
359 rc = regmap_read(kp->regmap, KEYP_CTRL, &ctrl_val); in pmic8xxx_kp_irq()
365 events = ctrl_val & KEYP_CTRL_EVNTS_MASK; in pmic8xxx_kp_irq()
382 u8 scan_val = 0, ctrl_val = 0; in pmic8xxx_kpd_init() local
392 ctrl_val = (bits & KEYP_CTRL_SCAN_COLS_BITS) << in pmic8xxx_kpd_init()
401 ctrl_val |= (bits << KEYP_CTRL_SCAN_ROWS_SHIFT); in pmic8xxx_kpd_init()
403 rc = regmap_write(kp->regmap, KEYP_CTRL, ctrl_val); in pmic8xxx_kpd_init()
515 unsigned int ctrl_val; in pmic8xxx_kp_probe() local
615 rc = regmap_read(kp->regmap, KEYP_CTRL, &ctrl_val); in pmic8xxx_kp_probe()
621 kp->ctrl_reg = ctrl_val; in pmic8xxx_kp_probe()
/drivers/tty/serial/
Dst-asc.c483 u32 ctrl_val; in asc_set_termios() local
499 ctrl_val = asc_in(port, ASC_CTL); in asc_set_termios()
502 asc_out(port, ASC_CTL, (ctrl_val & ~ASC_CTL_RUN)); in asc_set_termios()
503 ctrl_val = ASC_CTL_RXENABLE | ASC_CTL_FIFOENABLE; in asc_set_termios()
511 ctrl_val |= ASC_CTL_MODE_7BIT_PAR; in asc_set_termios()
513 ctrl_val |= (cflag & PARENB) ? ASC_CTL_MODE_8BIT_PAR : in asc_set_termios()
518 ctrl_val |= (cflag & CSTOPB) ? ASC_CTL_STOP_2BIT : ASC_CTL_STOP_1BIT; in asc_set_termios()
522 ctrl_val |= ASC_CTL_PARITYODD; in asc_set_termios()
526 ctrl_val |= ASC_CTL_CTSENABLE; in asc_set_termios()
544 ctrl_val |= ASC_CTL_BAUDMODE; in asc_set_termios()
[all …]
/drivers/reset/sti/
Dreset-syscfg.c57 u32 ctrl_val = rst->active_low ? !assert : !!assert; in syscfg_reset_program_hw() local
65 err = regmap_field_write(ch->reset, ctrl_val); in syscfg_reset_program_hw()
78 if (ack_val == ctrl_val) in syscfg_reset_program_hw()
/drivers/media/usb/gspca/m5602/
Dm5602_s5k83a.c437 u8 old_val, ctrl_val, test_val = 0xff; in s5k83a_dump_registers() local
441 m5602_read_sensor(sd, address, &ctrl_val, 1); in s5k83a_dump_registers()
443 if (ctrl_val == test_val) in s5k83a_dump_registers()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_minidump.c116 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()
/drivers/media/platform/s5p-jpeg/
Djpeg-core.c1606 static int s5p_jpeg_adjust_subs_ctrl(struct s5p_jpeg_ctx *ctx, int *ctrl_val) in s5p_jpeg_adjust_subs_ctrl() argument
1617 *ctrl_val = 0; in s5p_jpeg_adjust_subs_ctrl()
1626 *ctrl_val == V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY) in s5p_jpeg_adjust_subs_ctrl()
1636 if (ctx->out_q.fmt->subsampling > *ctrl_val) in s5p_jpeg_adjust_subs_ctrl()
1637 *ctrl_val = ctx->out_q.fmt->subsampling; in s5p_jpeg_adjust_subs_ctrl()
/drivers/net/ethernet/sun/
Dniu.c757 u64 ctrl_val, test_cfg_val, sig, mask, val; in serdes_init_10g() local
773 ctrl_val = (ENET_SERDES_CTRL_SDET_0 | in serdes_init_10g()
798 nw64(ctrl_reg, ctrl_val); in serdes_init_10g()
910 u64 ctrl_val, test_cfg_val, sig, mask, val; in serdes_init_1g_serdes() local
934 ctrl_val = (ENET_SERDES_CTRL_SDET_0 | in serdes_init_1g_serdes()
964 nw64(ctrl_reg, ctrl_val); in serdes_init_1g_serdes()
2371 u64 ctrl_val, test_cfg_val, sig, mask, val; in serdes_init_10g_serdes() local
2388 ctrl_val = (ENET_SERDES_CTRL_SDET_0 | in serdes_init_10g_serdes()
2415 nw64(ctrl_reg, ctrl_val); in serdes_init_10g_serdes()