Home
last modified time | relevance | path

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

12

/drivers/watchdog/
Dpcwd_usb.c235 unsigned char cmd, unsigned char *msb, unsigned char *lsb) in usb_pcwd_send_command() argument
249 buf[2] = *lsb; /* Byte 2 = Data LSB */ in usb_pcwd_send_command()
262 "cmd 0x%x 0x%x 0x%x\n", cmd, *msb, *lsb); in usb_pcwd_send_command()
277 *lsb = usb_pcwd->cmd_data_lsb; in usb_pcwd_send_command()
286 unsigned char lsb = 0x00; in usb_pcwd_start() local
291 &msb, &lsb); in usb_pcwd_start()
293 if ((retval == 0) || (lsb == 0)) { in usb_pcwd_start()
304 unsigned char lsb = 0xC3; in usb_pcwd_stop() local
309 &msb, &lsb); in usb_pcwd_stop()
311 if ((retval == 0) || (lsb != 0)) { in usb_pcwd_stop()
[all …]
Dpcwd_pci.c158 static int send_command(int cmd, int *msb, int *lsb) in send_command() argument
164 cmd, *msb, *lsb); in send_command()
173 outb_p(*lsb, pcipcwd_private.io_addr + 4); in send_command()
198 *lsb = inb_p(pcipcwd_private.io_addr + 4); in send_command()
206 cmd, *msb, *lsb); in send_command()
420 int lsb; in pcipcwd_get_timeleft() local
424 send_command(CMD_READ_WATCHDOG_TIMEOUT, &msb, &lsb); in pcipcwd_get_timeleft()
426 *time_left = (msb << 8) + lsb; in pcipcwd_get_timeleft()
/drivers/staging/comedi/drivers/
Ddas08.c527 int lsb, msb; in das08_ai_rinsn() local
569 lsb = inb(dev->iobase + DAS08_LSB); in das08_ai_rinsn()
571 data[n] = (lsb >> 4) | (msb << 4); in das08_ai_rinsn()
573 data[n] = (msb << 8) + lsb; in das08_ai_rinsn()
577 data[n] = (1 << 15) | lsb | ((msb & 0x7f) << 8); in das08_ai_rinsn()
579 data[n] = (1 << 15) - (lsb | (msb & 0x7f) << 8); in das08_ai_rinsn()
652 int lsb, msb; in das08jr_ao_winsn() local
655 lsb = data[0] & 0xff; in das08jr_ao_winsn()
662 outb(lsb, dev->iobase + devpriv->ao_offset_lsb[chan]); in das08jr_ao_winsn()
665 outb(lsb, dev->iobase + DAS08JR_AO_LSB(chan)); in das08jr_ao_winsn()
[all …]
Ddmm32at.c484 unsigned short msb, lsb; in dmm32at_ai_rinsn() local
531 lsb = dmm_inb(dev, DMM32AT_AILSB); in dmm32at_ai_rinsn()
540 d = ((msb ^ 0x0080) << 8) + lsb; in dmm32at_ai_rinsn()
817 unsigned short msb, lsb; in dmm32at_isr() local
834 lsb = dmm_inb(dev, DMM32AT_AILSB); in dmm32at_isr()
838 samp = ((msb ^ 0x0080) << 8) + lsb; in dmm32at_isr()
Dni_labpc.c538 short lsb, msb; in labpc_common_attach() local
661 lsb = devpriv->ao_value[i] & 0xff; in labpc_common_attach()
663 devpriv->write_byte(lsb, dev->iobase + DAC_LSB_REG(i)); in labpc_common_attach()
1509 unsigned int lsb, msb; in labpc_drain_fifo() local
1525 lsb = devpriv->read_byte(dev->iobase + ADC_FIFO_REG); in labpc_drain_fifo()
1527 data = (msb << 8) | lsb; in labpc_drain_fifo()
1623 int lsb, msb; in labpc_ai_rinsn() local
1698 lsb = devpriv->read_byte(dev->iobase + ADC_FIFO_REG); in labpc_ai_rinsn()
1700 data[n] = (msb << 8) | lsb; in labpc_ai_rinsn()
1712 int lsb, msb; in labpc_ao_winsn() local
[all …]
Ddas16.c1075 int msb, lsb; in das16_ai_rinsn() local
1106 lsb = inb(dev->iobase + DAS16_AI_LSB); in das16_ai_rinsn()
1108 data[n] = ((lsb >> 4) & 0xf) | (msb << 4); in das16_ai_rinsn()
1110 data[n] = lsb | (msb << 8); in das16_ai_rinsn()
1153 int lsb, msb; in das16_ao_winsn() local
1160 lsb = (data[i] << 4) & 0xff; in das16_ao_winsn()
1163 lsb = data[i] & 0xff; in das16_ao_winsn()
1166 outb(lsb, dev->iobase + DAS16_AO_LSB(chan)); in das16_ao_winsn()
Ddas800.c820 int lsb, msb; in das800_ai_rinsn() local
855 lsb = inb(dev->iobase + DAS800_LSB); in das800_ai_rinsn()
858 data[n] = (lsb >> 4) & 0xff; in das800_ai_rinsn()
861 data[n] = (msb << 8) | lsb; in das800_ai_rinsn()
/drivers/power/
Dmax17040_battery.c116 u8 lsb; in max17040_get_vcell() local
119 lsb = max17040_read_reg(client, MAX17040_VCELL_LSB); in max17040_get_vcell()
121 chip->vcell = (msb << 4) + (lsb >> 4); in max17040_get_vcell()
128 u8 lsb; in max17040_get_soc() local
131 lsb = max17040_read_reg(client, MAX17040_SOC_LSB); in max17040_get_soc()
139 u8 lsb; in max17040_get_version() local
142 lsb = max17040_read_reg(client, MAX17040_VER_LSB); in max17040_get_version()
144 dev_info(&client->dev, "MAX17040 Fuel-Gauge Ver %d%d\n", msb, lsb); in max17040_get_version()
/drivers/misc/
Dbh1780gli.c73 int lsb, msb; in bh1780_show_lux() local
75 lsb = bh1780_read(ddata, BH1780_REG_DLOW, "DLOW"); in bh1780_show_lux()
76 if (lsb < 0) in bh1780_show_lux()
77 return lsb; in bh1780_show_lux()
83 return sprintf(buf, "%d\n", (msb << 8) | lsb); in bh1780_show_lux()
Disl29003.c170 int lsb, msb, range, bitdepth; in isl29003_get_adc_value() local
173 lsb = i2c_smbus_read_byte_data(client, ISL29003_REG_LSB_SENSOR); in isl29003_get_adc_value()
175 if (lsb < 0) { in isl29003_get_adc_value()
177 return lsb; in isl29003_get_adc_value()
188 return (((msb << 8) | lsb) * gain_range[range]) >> bitdepth; in isl29003_get_adc_value()
/drivers/staging/media/as102/
Das102_fw.c39 char lsb = tolower(*(src + 1)) - '0'; in atohx() local
43 if (lsb > 9) in atohx()
44 lsb -= 7; in atohx()
46 *dst = value = ((msb & 0xF) << 4) | (lsb & 0xF); in atohx()
/drivers/hwmon/
Dasc7621.c121 u8 lsb[3]; member
253 regval = (data->reg[param->msb[0]] << 8) | data->reg[param->lsb[0]]; in show_fan16()
281 data->reg[param->lsb[0]] = reqval & 0xff; in store_fan16()
283 write_byte(client, param->lsb[0], data->reg[param->lsb[0]]); in store_fan16()
315 regval = (data->reg[param->msb[0]] << 8) | (data->reg[param->lsb[0]]); in show_in10()
401 u8 msb, lsb; in show_temp10() local
406 lsb = (data->reg[param->lsb[0]] >> 6) & 0x03; in show_temp10()
407 temp = (((s8) msb) * 1000) + (lsb * 250); in show_temp10()
815 .priority = pri, .msb[0] = rm, .lsb[0] = rl, .mask[0] = m, \
820 .priority = pri, .msb[0] = rm, .lsb[0] = rl, .mask[0] = m, \
[all …]
Dsch56xx-common.c235 int lsb, msb; in sch56xx_read_virtual_reg16() local
238 lsb = sch56xx_read_virtual_reg(addr, reg); in sch56xx_read_virtual_reg16()
239 if (lsb < 0) in sch56xx_read_virtual_reg16()
240 return lsb; in sch56xx_read_virtual_reg16()
246 return lsb | (msb << 8); in sch56xx_read_virtual_reg16()
Demc6w201.c77 int lsb, msb; in emc6w201_read16() local
79 lsb = i2c_smbus_read_byte_data(client, reg); in emc6w201_read16()
81 if (unlikely(lsb < 0 || msb < 0)) { in emc6w201_read16()
87 return (msb << 8) | lsb; in emc6w201_read16()
/drivers/staging/iio/light/
Disl29018.c140 int lsb; in isl29018_read_sensor_input() local
151 lsb = i2c_smbus_read_byte_data(client, ISL29018_REG_ADD_DATA_LSB); in isl29018_read_sensor_input()
152 if (lsb < 0) { in isl29018_read_sensor_input()
154 return lsb; in isl29018_read_sensor_input()
162 dev_vdbg(&client->dev, "MSB 0x%x and LSB 0x%x\n", msb, lsb); in isl29018_read_sensor_input()
164 return (msb << 8) | lsb; in isl29018_read_sensor_input()
/drivers/media/radio/
Dsi4713-i2c.c105 #define lsb(x) ((u8)((u16) x & 0x00FF)) macro
106 #define compose_u16(msb, lsb) (((u16)msb << 8) | lsb) argument
294 lsb(prop), in si4713_read_property()
333 lsb(prop), in si4713_write_property()
335 lsb(val), in si4713_write_property()
540 lsb(frequency), in si4713_tx_tune_freq()
634 lsb(frequency), in si4713_tx_tune_measure()
723 lsb(rdsb), in si4713_tx_rds_buff()
725 lsb(rdsc), in si4713_tx_rds_buff()
727 lsb(rdsd), in si4713_tx_rds_buff()
/drivers/staging/iio/addac/
Dadt7316.c1148 u8 msb, lsb; in adt7316_show_ad() local
1159 ADT7316_LSB_IN_TEMP_VDD, &lsb); in adt7316_show_ad()
1169 data |= lsb & ADT7316_LSB_IN_TEMP_MASK; in adt7316_show_ad()
1173 ADT7316_LSB_IN_TEMP_VDD, &lsb); in adt7316_show_ad()
1184 data |= (lsb & ADT7316_LSB_VDD_MASK) >> ADT7316_LSB_VDD_OFFSET; in adt7316_show_ad()
1188 ADT7316_LSB_EX_TEMP_AIN, &lsb); in adt7316_show_ad()
1198 data |= lsb & (ADT7316_LSB_EX_TEMP_MASK << in adt7316_show_ad()
1437 u8 msb, lsb, offset; in adt7316_show_DAC() local
1451 ADT7316_DA_DATA_BASE + channel * 2, &lsb); in adt7316_show_DAC()
1461 data = (msb << offset) + (lsb & ((1 << offset) - 1)); in adt7316_show_DAC()
[all …]
/drivers/media/dvb/frontends/
Dmt352.c140 buf[1] = lsb(value); in mt352_calc_nominal_rate()
166 buf[1] = lsb(value); in mt352_calc_input_freq()
285 buf[2] = lsb(tps); in mt352_set_parameters()
Dzl10353_priv.h30 #define lsb(x) ((x) & 0xff) macro
Dmt352_priv.h39 #define lsb(x) ((x) & 0xff) macro
Dzl10353.c229 zl10353_single_write(fe, TRL_NOMINAL_RATE_0, lsb(nominal_rate)); in zl10353_set_parameters()
234 zl10353_single_write(fe, INPUT_FREQ_0, lsb(input_freq)); in zl10353_set_parameters()
341 zl10353_single_write(fe, TPS_GIVEN_0, lsb(tps)); in zl10353_set_parameters()
/drivers/spi/
Dspi-nuc900.c277 static void nuc900_send_first(struct nuc900_spi *hw, unsigned int lsb) in nuc900_send_first() argument
286 if (lsb) in nuc900_send_first()
341 nuc900_send_first(hw, hw->pdata->lsb); in nuc900_init_spi()
/drivers/net/ethernet/brocade/bna/
Dbna_tx_rx.c1348 (bfi_q)->pg_tbl.a32.addr_lo = (bna_qpt)->hw_qpt_ptr.lsb; \
1350 (bfi_q)->first_entry.a32.addr_lo = cur_q_addr.lsb; \
1694 rxp->cq.ib.ib_seg_host_addr.lsb; in bna_bfi_rx_enet_start()
1919 rxq->qpt.hw_qpt_ptr.lsb = qpt_mem->dma.lsb; in bna_rxq_qpt_setup()
1929 ((struct bna_dma_addr *)rxq->qpt.kv_qpt_ptr)[i].lsb = in bna_rxq_qpt_setup()
1930 page_mem[i].dma.lsb; in bna_rxq_qpt_setup()
1946 rxp->cq.qpt.hw_qpt_ptr.lsb = qpt_mem->dma.lsb; in bna_rxp_cqpt_setup()
1957 ((struct bna_dma_addr *)rxp->cq.qpt.kv_qpt_ptr)[i].lsb = in bna_rxp_cqpt_setup()
1958 page_mem[i].dma.lsb; in bna_rxp_cqpt_setup()
2422 rxp->cq.ib.ib_seg_host_addr.lsb = in bna_rx_create()
[all …]
/drivers/infiniband/hw/qib/
Dqib_iba7220.c2345 int lsb, ret = 0; in qib_7220_get_ib_cfg() local
2366 lsb = IBA7220_IBC_RXPOL_SHIFT; in qib_7220_get_ib_cfg()
2371 lsb = IBA7220_IBC_LREV_SHIFT; in qib_7220_get_ib_cfg()
2410 lsb = IBA7220_IBC_HRTBT_SHIFT; in qib_7220_get_ib_cfg()
2426 ret = (int)((ppd->cpspec->ibcddrctrl >> lsb) & maskr); in qib_7220_get_ib_cfg()
2435 int lsb, ret = 0, setforce = 0; in qib_7220_set_ib_cfg() local
2446 lsb = IBA7220_IBC_DLIDLMC_SHIFT; in qib_7220_set_ib_cfg()
2470 lsb = IBA7220_IBC_WIDTH_SHIFT; in qib_7220_set_ib_cfg()
2511 lsb = SYM_LSB(IBCDDRCtrl, IB_ENHANCED_MODE); in qib_7220_set_ib_cfg()
2516 lsb = IBA7220_IBC_RXPOL_SHIFT; in qib_7220_set_ib_cfg()
[all …]
/drivers/net/plip/
Dplip.c190 unsigned char lsb; member
194 unsigned char lsb;
605 &rcv->nibble, &rcv->length.b.lsb)) { in plip_receive_packet()
617 &rcv->nibble, &rcv->length.b.lsb)) in plip_receive_packet()
811 &snd->nibble, snd->length.b.lsb)) in plip_send_packet()

12