Home
last modified time | relevance | path

Searched refs:val1 (Results 1 – 25 of 40) sorted by relevance

12

/drivers/misc/
Dfsa9480.c269 int val1, val2, ctrl; in fsa9480_detect_dev() local
273 val1 = fsa9480_read_reg(client, FSA9480_REG_DEV_T1); in fsa9480_detect_dev()
278 intr, val1, val2); in fsa9480_detect_dev()
285 if (val1 & DEV_T1_USB_MASK || val2 & DEV_T2_USB_MASK) { in fsa9480_detect_dev()
296 if (val1 & DEV_T1_UART_MASK || val2 & DEV_T2_UART_MASK) { in fsa9480_detect_dev()
307 if (val1 & DEV_T1_CHARGER_MASK) { in fsa9480_detect_dev()
345 usbsw->dev1 = val1; in fsa9480_detect_dev()
/drivers/platform/x86/
Damilo-rfkill.c60 u8 val1 = blocked ? M7440_RADIO_OFF1 : M7440_RADIO_ON1; in amilo_m7440_rfkill_set_block() local
63 outb(val1, M7440_PORT1); in amilo_m7440_rfkill_set_block()
67 if (inb(M7440_PORT1) != val1 || inb(M7440_PORT2) != val2) in amilo_m7440_rfkill_set_block()
Dhdaps.c204 int *val1, int *val2) in hdaps_read_pair() argument
209 ret = __hdaps_read_pair(port1, port2, val1, val2); in hdaps_read_pair()
/drivers/input/joystick/
Dwalkera0701.c69 int val1, val2, val3, val4, val5, val6, val7, val8; in walkera0701_parse_frame() local
88 val1 = ((w->buf[0] & 7) * 256 + w->buf[1] * 16 + w->buf[2]) >> 2; in walkera0701_parse_frame()
89 val1 *= ((w->buf[0] >> 2) & 2) - 1; /* sign */ in walkera0701_parse_frame()
112 val1, val2, val3, val4, val5, val6, val7, val8, magic, in walkera0701_parse_frame()
117 input_report_abs(w->input_dev, ABS_Y, val1); in walkera0701_parse_frame()
/drivers/media/dvb/dvb-usb/
Dmxl111sf-demod.c390 u8 val1, val2, val3; in mxl111sf_demod_read_ber() local
395 ret = mxl111sf_demod_read_reg(state, V6_RS_AVG_ERRORS_LSB_REG, &val1); in mxl111sf_demod_read_ber()
405 *ber = CALCULATE_BER((val1 | (val2 << 8)), val3); in mxl111sf_demod_read_ber()
413 u8 val1, val2; in mxl111sf_demod_calc_snr() local
418 ret = mxl111sf_demod_read_reg(state, V6_SNR_RB_LSB_REG, &val1); in mxl111sf_demod_calc_snr()
425 *snr = CALCULATE_SNR(val1 | ((val2 & 0x03) << 8)); in mxl111sf_demod_calc_snr()
Dmxl111sf-tuner.c370 u8 val1, val2; in mxl111sf_get_rf_strength() local
378 ret = mxl111sf_tuner_read_reg(state, V6_DIG_RF_PWR_LSB_REG, &val1); in mxl111sf_get_rf_strength()
385 *strength = val1 | ((val2 & 0x07) << 8); in mxl111sf_get_rf_strength()
/drivers/hwmon/
Dw83781d.c863 int i, val1 = 0, id; in w83781d_detect_subclients() local
889 val1 = w83781d_read_value(data, W83781D_REG_I2C_SUBADDR); in w83781d_detect_subclients()
890 sc_addr[0] = 0x48 + (val1 & 0x07); in w83781d_detect_subclients()
898 sc_addr[1] = 0x48 + ((val1 >> 4) & 0x07); in w83781d_detect_subclients()
1101 int val1, val2; in w83781d_detect() local
1125 val1 = i2c_smbus_read_byte_data(client, W83781D_REG_BANK); in w83781d_detect()
1128 if (!(val1 & 0x07) && in w83781d_detect()
1129 ((!(val1 & 0x80) && val2 != 0xa3 && val2 != 0xc3) || in w83781d_detect()
1130 ((val1 & 0x80) && val2 != 0x5c && val2 != 0x12))) { in w83781d_detect()
1139 if ((!(val1 & 0x80) && val2 == 0xa3) || in w83781d_detect()
[all …]
Dw83792d.c250 #define TEMP_ADD_FROM_REG(val1, val2) \ argument
251 ((((val1) & 0x80 ? (val1)-0x100 \
252 : (val1)) * 1000) + ((val2 & 0x80) ? 500 : 0))
1377 int val1, val2; in w83792d_detect() local
1386 val1 = w83792d_read_value(client, W83792D_REG_BANK); in w83792d_detect()
1389 if (!(val1 & 0x07)) { /* is Bank0 */ in w83792d_detect()
1390 if ((!(val1 & 0x80) && val2 != 0xa3) || in w83792d_detect()
1391 ((val1 & 0x80) && val2 != 0x5c)) in w83792d_detect()
1408 val1 = w83792d_read_value(client, W83792D_REG_WCHIPID); in w83792d_detect()
1410 if (val1 != 0x7a || val2 != 0x5c) in w83792d_detect()
[all …]
Dw83791d.c1332 int val1, val2; in w83791d_detect() local
1341 val1 = w83791d_read(client, W83791D_REG_BANK); in w83791d_detect()
1344 if (!(val1 & 0x07)) { in w83791d_detect()
1345 if ((!(val1 & 0x80) && val2 != 0xa3) || in w83791d_detect()
1346 ((val1 & 0x80) && val2 != 0x5c)) { in w83791d_detect()
1358 val1 = w83791d_read(client, W83791D_REG_BANK) & 0x78; in w83791d_detect()
1359 w83791d_write(client, W83791D_REG_BANK, val1 | 0x80); in w83791d_detect()
1362 val1 = w83791d_read(client, W83791D_REG_WCHIPID); in w83791d_detect()
1364 if (val1 != 0x71 || val2 != 0x5c) in w83791d_detect()
1381 int val1; in w83791d_probe() local
[all …]
Dasb100.c747 int val1, val2; in asb100_detect() local
754 val1 = i2c_smbus_read_byte_data(client, ASB100_REG_BANK); in asb100_detect()
758 if ((!(val1 & 0x07)) && in asb100_detect()
760 (((!(val1 & 0x80)) && (val2 != 0x94)) || in asb100_detect()
762 ((val1 & 0x80) && (val2 != 0x06)))) { in asb100_detect()
773 val1 = i2c_smbus_read_byte_data(client, ASB100_REG_WCHIPID); in asb100_detect()
776 if (val1 != 0x31 || val2 != 0x06) in asb100_detect()
/drivers/media/common/tuners/
Dqt1010.c260 u8 i, val1, val2; in qt1010_init_meas1() local
281 val1 = val2; in qt1010_init_meas1()
284 dprintk("compare reg:%02x %02x %02x", reg, val1, val2); in qt1010_init_meas1()
285 } while (val1 != val2); in qt1010_init_meas1()
286 *retval = val1; in qt1010_init_meas1()
/drivers/misc/sgi-gru/
Dgrufault.c867 gru_dbg(grudev, "op %d, gseg 0x%lx, value1 0x%lx\n", req.op, req.gseg, req.val1); in gru_set_context_option()
879 if (req.val1 < -1 || req.val1 >= GRU_MAX_BLADES || !gru_base[req.val1] || in gru_set_context_option()
883 gts->ts_user_blade_id = req.val1; in gru_set_context_option()
894 gts->ts_cch_req_slice = req.val1 & 3; in gru_set_context_option()
Dgrulib.h98 long val1; member
/drivers/media/video/gspca/
Dov534_9.c1214 u8 val1, val2, val3; in setsatur() local
1225 val1 = matrix[sd->ctrls[SATUR].val][0]; in setsatur()
1227 val3 = val1 + val2; in setsatur()
1231 sccb_write(gspca_dev, 0x52, val1); in setsatur()
1236 val1 = sccb_read(gspca_dev, 0x41); /* com16 */ in setsatur()
1238 sccb_write(gspca_dev, 0x41, val1); in setsatur()
/drivers/watchdog/
Di6300esb.c380 u8 val1; in esb_initdevice() local
398 pci_read_config_byte(esb_pci, ESB_LOCK_REG, &val1); in esb_initdevice()
399 if (val1 & ESB_WDT_LOCK) in esb_initdevice()
/drivers/net/ethernet/chelsio/cxgb/
Dpm3393.c437 t1_tpi_read((mac)->adapter, OFFSET((name)+1), &val1); \
440 ((u64)(val1 & 0xffff) << 16) | \
453 u32 val0, val1, val2, val3; in pm3393_update_statistics() local
461 pmread(mac, SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_1, &val1); in pm3393_update_statistics()
464 ro = ((u64)val0 & 0xffff) | (((u64)val1 & 0xffff) << 16) | in pm3393_update_statistics()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.c7377 u16 val1, val2; in bnx2x_8073_read_status() local
7382 MDIO_PMA_DEVAD, MDIO_PMA_LASI_STAT, &val1); in bnx2x_8073_read_status()
7384 DP(NETIF_MSG_LINK, "8703 LASI status 0x%x\n", val1); in bnx2x_8073_read_status()
7390 MDIO_PCS_DEVAD, MDIO_PCS_REG_STATUS, &val1); in bnx2x_8073_read_status()
7391 DP(NETIF_MSG_LINK, "807x PCS status 0x%x->0x%x\n", val2, val1); in bnx2x_8073_read_status()
7394 MDIO_PMA_DEVAD, MDIO_PMA_REG_M8051_MSGOUT_REG, &val1); in bnx2x_8073_read_status()
7410 MDIO_PMA_DEVAD, MDIO_PMA_REG_STATUS, &val1); in bnx2x_8073_read_status()
7411 link_up = ((val1 & 4) == 4); in bnx2x_8073_read_status()
7412 DP(NETIF_MSG_LINK, "PMA_REG_STATUS=0x%x\n", val1); in bnx2x_8073_read_status()
7428 MDIO_PMA_DEVAD, MDIO_PMA_REG_STATUS, &val1); in bnx2x_8073_read_status()
[all …]
/drivers/regulator/
Dtps6586x-regulator.c308 uint8_t val1, val2; in tps6586x_regulator_preinit() local
315 ret = tps6586x_read(parent, ri->enable_reg[0], &val1); in tps6586x_regulator_preinit()
330 if (!(val1 & (1 << ri->enable_bit[0]))) { in tps6586x_regulator_preinit()
/drivers/net/ethernet/broadcom/
Dbnx2.c492 u32 val1; in bnx2_read_phy() local
496 val1 = REG_RD(bp, BNX2_EMAC_MDIO_MODE); in bnx2_read_phy()
497 val1 &= ~BNX2_EMAC_MDIO_MODE_AUTO_POLL; in bnx2_read_phy()
499 REG_WR(bp, BNX2_EMAC_MDIO_MODE, val1); in bnx2_read_phy()
505 val1 = (bp->phy_addr << 21) | (reg << 16) | in bnx2_read_phy()
508 REG_WR(bp, BNX2_EMAC_MDIO_COMM, val1); in bnx2_read_phy()
513 val1 = REG_RD(bp, BNX2_EMAC_MDIO_COMM); in bnx2_read_phy()
514 if (!(val1 & BNX2_EMAC_MDIO_COMM_START_BUSY)) { in bnx2_read_phy()
517 val1 = REG_RD(bp, BNX2_EMAC_MDIO_COMM); in bnx2_read_phy()
518 val1 &= BNX2_EMAC_MDIO_COMM_DATA; in bnx2_read_phy()
[all …]
/drivers/media/video/davinci/
Ddm355_ccdc.c560 u32 val1, val2; in ccdc_config_csc() local
573 val1 = (csc->coeff[i].integer & in ccdc_config_csc()
580 val1 |= (((csc->coeff[i].decimal & in ccdc_config_csc()
593 val2 |= val1; in ccdc_config_csc()
/drivers/media/video/
Dmsp3400-kthreads.c509 int count, max1, max2, val1, val2, val, i; in msp3400c_thread() local
539 val1 = val2 = 0; in msp3400c_thread()
566 if (val1 < val) in msp3400c_thread()
567 val1 = val, max1 = i; in msp3400c_thread()
/drivers/staging/rts5139/
Drts51x_card.c844 u8 mask, val1, val2; in card_power_on() local
847 val1 = PARTIAL_POWER_ON; in card_power_on()
853 val1 | LDO_SUSPEND); in card_power_on()
866 RTS51X_WRITE_REG(chip, CARD_PWR_CTL, mask, val1); in card_power_on()
Dms.c2209 u8 val1, val2; local
2226 retval = rts51x_read_register(chip, reg_addr++, &val1);
2233 defect_block = ((u16) val1 << 8) | val2;
3053 u8 extra[MS_EXTRA_SIZE], val1, val2, data[6]; local
3088 BLOCK_READ, WAIT_INT, data, 6, &val1);
3157 val1 = chip->rsp_buf[1];
3158 RTS51X_DEBUGP("MS_TRANS_CFG: 0x%x\n", val1);
3160 val1 = 0;
3166 if ((val1 & INT_CMDNK) || (val2 & INT_REG_CMDNK)) {
3171 if ((val1 & INT_ERR) || (val2 & INT_REG_ERR)) {
[all …]
/drivers/gpu/drm/mga/
Dmga_drv.h319 #define DMA_BLOCK(reg0, val0, reg1, val1, reg2, val2, reg3, val3) \ argument
326 DMA_WRITE(2, val1); \
/drivers/staging/rts_pstor/
Drtsx_card.c965 u8 mask, val1, val2; in card_power_on() local
969 val1 = MS_PARTIAL_POWER_ON; in card_power_on()
973 val1 = SD_PARTIAL_POWER_ON; in card_power_on()
978 rtsx_add_cmd(chip, WRITE_REG_CMD, CARD_PWR_CTL, mask, val1); in card_power_on()

12