Home
last modified time | relevance | path

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

123456

/Linux-v4.19/drivers/media/platform/vivid/
Dvivid-rds-gen.c53 data[0].lsb = rds->picode & 0xff; in vivid_rds_generate()
56 data[1].lsb = rds->pty << 5; in vivid_rds_generate()
66 data[1].lsb |= (rds->ta << 4) | (rds->ms << 3); in vivid_rds_generate()
67 data[1].lsb |= vivid_get_di(rds, idx); in vivid_rds_generate()
69 data[2].lsb = rds->picode & 0xff; in vivid_rds_generate()
72 data[3].lsb = rds->psname[2 * idx + 1]; in vivid_rds_generate()
78 data[1].lsb |= idx; in vivid_rds_generate()
81 data[2].lsb = rds->radiotext[4 * idx + 1]; in vivid_rds_generate()
84 data[3].lsb = rds->radiotext[4 * idx + 3]; in vivid_rds_generate()
102 data[1].lsb &= ~3; in vivid_rds_generate()
[all …]
/Linux-v4.19/drivers/iio/proximity/
Disl29501.c135 u8 lsb; member
141 .lsb = ISL29501_DISTANCE_LSB_DATA,
145 .lsb = ISL29501_PHASE_LSB,
148 .lsb = ISL29501_DIE_TEMPERATURE,
151 .lsb = ISL29501_AMBIENT_LIGHT,
155 .lsb = ISL29501_GAIN_LSB,
159 .lsb = ISL29501_CROSSTALK_GAIN_LSB,
162 .lsb = ISL29501_PHASE_EXPONENT,
165 .lsb = ISL29501_TEMP_COEFF_A,
168 .lsb = ISL29501_TEMP_COEFF_B,
[all …]
/Linux-v4.19/drivers/watchdog/
Dpcwd_usb.c212 unsigned char cmd, unsigned char *msb, unsigned char *lsb) in usb_pcwd_send_command() argument
230 buf[2] = *lsb; /* Byte 2 = Data LSB */ in usb_pcwd_send_command()
245 cmd, *msb, *lsb); in usb_pcwd_send_command()
260 *lsb = usb_pcwd->cmd_data_lsb; in usb_pcwd_send_command()
271 unsigned char lsb = 0x00; in usb_pcwd_start() local
276 &msb, &lsb); in usb_pcwd_start()
278 if ((retval == 0) || (lsb == 0)) { in usb_pcwd_start()
289 unsigned char lsb = 0xC3; in usb_pcwd_stop() local
294 &msb, &lsb); in usb_pcwd_stop()
296 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()
/Linux-v4.19/include/video/
Dgbe.h83 #define MASK(msb, lsb) \ argument
84 ( (((u32)1<<((msb)-(lsb)+1))-1) << (lsb) )
85 #define GET(v, msb, lsb) \ argument
86 ( ((u32)(v) & MASK(msb,lsb)) >> (lsb) )
87 #define SET(v, f, msb, lsb) \ argument
88 ( (v) = ((v)&~MASK(msb,lsb)) | (( (u32)(f)<<(lsb) ) & MASK(msb,lsb)) )
/Linux-v4.19/arch/m68k/hp300/
Dtime.c53 unsigned char lsb, msb1, msb2; in hp300_gettimeoffset() local
57 lsb = in_8(CLOCKBASE + 7); in hp300_gettimeoffset()
61 lsb = in_8(CLOCKBASE + 7); in hp300_gettimeoffset()
62 ticks = INTVAL - ((msb2 << 8) | lsb); in hp300_gettimeoffset()
/Linux-v4.19/drivers/net/wireless/ath/ath10k/
Dhw.c222 .lsb = 0x00000010,
228 .lsb = 0x00000012,
234 .lsb = 0x00000000,
276 .lsb = 0x00000010,
282 .lsb = 0x00000000,
295 .lsb = 0x00000010,
301 .lsb = 0x00000000,
352 .lsb = 0x00000010,
358 .lsb = 0x00000011,
364 .lsb = 0x00000000,
[all …]
/Linux-v4.19/drivers/staging/comedi/drivers/
Ddas08.c177 int lsb, msb; in das08_ai_insn_read() local
216 lsb = inb(dev->iobase + DAS08_AI_LSB_REG); in das08_ai_insn_read()
218 data[n] = (lsb >> 4) | (msb << 4); in das08_ai_insn_read()
220 data[n] = (msb << 8) + lsb; in das08_ai_insn_read()
232 unsigned int magnitude = lsb | ((msb & 0x7f) << 8); in das08_ai_insn_read()
307 unsigned char lsb; in das08_ao_set_data() local
310 lsb = data & 0xff; in das08_ao_set_data()
313 outb(lsb, dev->iobase + DAS08JR_AO_LSB_REG(chan)); in das08_ao_set_data()
318 outb(lsb, dev->iobase + DAS08AOX_AO_LSB_REG(chan)); in das08_ao_set_data()
/Linux-v4.19/drivers/mfd/
Datmel-smc.c54 unsigned int msb, lsb; in atmel_smc_cs_encode_ncycles() local
58 lsb = ncycles % msbfactor; in atmel_smc_cs_encode_ncycles()
60 if (lsb > lsbmask) { in atmel_smc_cs_encode_ncycles()
61 lsb = 0; in atmel_smc_cs_encode_ncycles()
72 lsb = lsbmask; in atmel_smc_cs_encode_ncycles()
76 *encodedval = (msb << msbpos) | lsb; in atmel_smc_cs_encode_ncycles()
/Linux-v4.19/arch/sparc/lib/
Dudivdi3.S36 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
43 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
52 addcc %o1,%o1,%o1 ! shift n1n0 and a 0-bit in lsb
74 addxcc %o2,%o2,%o2 ! shift n1n0 and a q-bit in lsb
81 addxcc %o2,%o2,%o2 ! shift n1n0 and a q-bit in lsb
90 addcc %o2,%o2,%o2 ! shift n1n0 and a 0-bit in lsb
100 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
107 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
116 addcc %o1,%o1,%o1 ! shift n1n0 and a 0-bit in lsb
179 addxcc %o5,%o5,%o5 ! shift n1n0 and a q-bit in lsb
[all …]
Ddivdi3.S60 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
67 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
76 addcc %o1,%o1,%o1 ! shift n1n0 and a 0-bit in lsb
96 addxcc %o2,%o2,%o2 ! shift n1n0 and a q-bit in lsb
103 addxcc %o2,%o2,%o2 ! shift n1n0 and a q-bit in lsb
112 addcc %o2,%o2,%o2 ! shift n1n0 and a 0-bit in lsb
120 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
127 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
136 addcc %o1,%o1,%o1 ! shift n1n0 and a 0-bit in lsb
195 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
[all …]
/Linux-v4.19/drivers/hwmon/
Dmax1111.c49 int lsb; member
122 return sprintf(buf, "%d\n", ret * data->lsb); in show_adc()
203 data->lsb = 8; in max1111_probe()
207 data->lsb = 8; in max1111_probe()
211 data->lsb = 16; in max1111_probe()
215 data->lsb = 16; in max1111_probe()
/Linux-v4.19/crypto/
Dtgr192.c561 u32 t, msb, lsb; in tgr192_final() local
567 if ((lsb = t << 6) < t) { /* multiply by 64 to make a byte count */ in tgr192_final()
571 t = lsb; in tgr192_final()
572 if ((lsb = t + tctx->count) < t) { /* add the count */ in tgr192_final()
575 t = lsb; in tgr192_final()
576 if ((lsb = t << 3) < t) { /* multiply by 8 to make a bit count */ in tgr192_final()
596 le32p[0] = cpu_to_le32(lsb); in tgr192_final()
/Linux-v4.19/drivers/media/usb/as102/
Das102_fw.c35 char lsb = tolower(*(src + 1)) - '0'; in atohx() local
39 if (lsb > 9) in atohx()
40 lsb -= 7; in atohx()
42 *dst = value = ((msb & 0xF) << 4) | (lsb & 0xF); in atohx()
/Linux-v4.19/drivers/staging/pi433/
Drf69.c237 u8 lsb; in rf69_set_bit_rate() local
250 lsb = (bit_rate_reg & 0xff); in rf69_set_bit_rate()
256 retval = rf69_write_reg(spi, REG_BITRATE_LSB, lsb); in rf69_set_bit_rate()
269 u8 lsb; in rf69_set_deviation() local
287 lsb = (f_reg & 0xff); in rf69_set_deviation()
299 retval = rf69_write_reg(spi, REG_FDEV_LSB, lsb); in rf69_set_deviation()
314 u8 lsb; in rf69_set_frequency() local
334 lsb = (f_reg & 0xff); in rf69_set_frequency()
343 retval = rf69_write_reg(spi, REG_FRF_LSB, lsb); in rf69_set_frequency()
625 u8 msb, lsb; in rf69_set_preamble_length() local
[all …]
/Linux-v4.19/tools/spi/
Dspidev_fdx.c82 __u8 lsb, bits; in dumpstat() local
89 if (ioctl(fd, SPI_IOC_RD_LSB_FIRST, &lsb) < 0) { in dumpstat()
103 name, mode, bits, lsb ? "(lsb first) " : "", speed); in dumpstat()
/Linux-v4.19/drivers/pinctrl/berlin/
Dberlin.h22 u8 lsb; member
42 .lsb = _lsb, \
/Linux-v4.19/arch/arm64/kernel/
Dmodule.c126 int lsb, enum aarch64_insn_movw_imm_type imm_type) in reloc_insn_movw() argument
133 imm = sval >> lsb; in reloc_insn_movw()
167 int lsb, int len, enum aarch64_insn_imm_type imm_type) in reloc_insn_imm() argument
175 sval >>= lsb; in reloc_insn_imm()
178 imm_mask = (BIT(lsb + len) - 1) >> lsb; in reloc_insn_imm()
/Linux-v4.19/drivers/staging/media/bcm2048/
Dradio-bcm2048.c183 #define lsb(x) ((u8)((u16)(x) & 0x00FF)) macro
184 #define compose_u16(msb, lsb) (((u16)(msb) << 8) | (lsb)) argument
596 err = bcm2048_send_command(bdev, BCM2048_I2C_FM_FREQ0, lsb(frequency)); in bcm2048_set_fm_frequency()
610 u8 lsb = 0, msb = 0; in bcm2048_get_fm_frequency() local
614 err = bcm2048_recv_command(bdev, BCM2048_I2C_FM_FREQ0, &lsb); in bcm2048_get_fm_frequency()
622 err = compose_u16(msb, lsb); in bcm2048_get_fm_frequency()
642 lsb(frequency)); in bcm2048_set_fm_af_frequency()
655 u8 lsb = 0, msb = 0; in bcm2048_get_fm_af_frequency() local
659 err = bcm2048_recv_command(bdev, BCM2048_I2C_FM_AF_FREQ0, &lsb); in bcm2048_get_fm_af_frequency()
667 err = compose_u16(msb, lsb); in bcm2048_get_fm_af_frequency()
[all …]
/Linux-v4.19/drivers/mux/
Dmmio.c90 field.lsb = ffs(mask) - 1; in mux_mmio_probe()
92 if (mask != GENMASK(field.msb, field.lsb)) { in mux_mmio_probe()
106 bits = 1 + field.msb - field.lsb; in mux_mmio_probe()
/Linux-v4.19/arch/parisc/mm/
Dfault.c391 unsigned int lsb = 0; in do_page_fault() local
401 lsb = hstate_index_to_shift(VM_FAULT_GET_HINDEX(fault)); in do_page_fault()
403 lsb = PAGE_SHIFT; in do_page_fault()
406 lsb, current); in do_page_fault()
/Linux-v4.19/Documentation/media/uapi/v4l/
Dvidioc-g-sliced-vbi-cap.rst149 run-in and framing code, lsb first transmitted.
154 - Byte number 3 to 15 according to Figure 9 of ETS 300 231, lsb
160 - Two bytes in transmission order, including parity bit, lsb first
173 msb lsb msb lsb
/Linux-v4.19/Documentation/hwmon/
Dad731419 sensor with 1lsb = 0.25 degrees centigrade. The adt7301 and
20 adt7302 have 14 bit sensors with 1lsb = 0.03125 degrees centigrade.
/Linux-v4.19/drivers/power/supply/
Drt5033_battery.c44 u32 msb, lsb; in rt5033_battery_get_watt_prop() local
64 regmap_read(battery->regmap, regl, &lsb); in rt5033_battery_get_watt_prop()
66 ret = ((msb << 4) + (lsb >> 4)) * 1250 / 1000; in rt5033_battery_get_watt_prop()
/Linux-v4.19/drivers/hwtracing/coresight/
Dcoresight-priv.h29 #define BMVAL(val, lsb, msb) ((val & GENMASK(msb, lsb)) >> lsb) argument

123456