/drivers/media/test-drivers/vivid/ |
D | vivid-rds-gen.c | 53 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 …]
|
/drivers/dma/dw-edma/ |
D | dw-edma-v0-regs.h | 34 u32 lsb; /* 0x000c */ member 41 u32 lsb; /* 0x0014 */ member 48 u32 lsb; /* 0x001c */ member 68 u32 lsb; /* 0x0108 */ member 76 u32 lsb; /* 0x0120 */ member 118 u32 lsb; /* 0x0018 */ member 129 u32 lsb; /* 0x0038 */ member 143 u32 lsb; /* 0x0060 */ member 150 u32 lsb; /* 0x0068 */ member 169 u32 lsb; /* 0x00b4 */ member [all …]
|
D | dw-edma-v0-debugfs.c | 116 REGISTER(sar.lsb), in dw_edma_debugfs_regs_ch() 118 REGISTER(dar.lsb), in dw_edma_debugfs_regs_ch() 120 REGISTER(llp.lsb), in dw_edma_debugfs_regs_ch() 134 WR_REGISTER(ch_arb_weight.lsb), in dw_edma_debugfs_regs_wr() 141 WR_REGISTER(done_imwr.lsb), in dw_edma_debugfs_regs_wr() 143 WR_REGISTER(abort_imwr.lsb), in dw_edma_debugfs_regs_wr() 154 WR_REGISTER_UNROLL(engine_hshake_cnt.lsb), in dw_edma_debugfs_regs_wr() 202 RD_REGISTER(ch_arb_weight.lsb), in dw_edma_debugfs_regs_rd() 208 RD_REGISTER(err_status.lsb), in dw_edma_debugfs_regs_rd() 211 RD_REGISTER(done_imwr.lsb), in dw_edma_debugfs_regs_rd() [all …]
|
/drivers/watchdog/ |
D | pcwd_usb.c | 208 unsigned char cmd, unsigned char *msb, unsigned char *lsb) in usb_pcwd_send_command() argument 226 buf[2] = *lsb; /* Byte 2 = Data LSB */ in usb_pcwd_send_command() 241 cmd, *msb, *lsb); in usb_pcwd_send_command() 256 *lsb = usb_pcwd->cmd_data_lsb; in usb_pcwd_send_command() 267 unsigned char lsb = 0x00; in usb_pcwd_start() local 272 &msb, &lsb); in usb_pcwd_start() 274 if ((retval == 0) || (lsb == 0)) { in usb_pcwd_start() 285 unsigned char lsb = 0xC3; in usb_pcwd_stop() local 290 &msb, &lsb); in usb_pcwd_stop() 292 if ((retval == 0) || (lsb != 0)) { in usb_pcwd_stop() [all …]
|
D | pcwd_pci.c | 154 static int send_command(int cmd, int *msb, int *lsb) in send_command() argument 160 cmd, *msb, *lsb); in send_command() 169 outb_p(*lsb, pcipcwd_private.io_addr + 4); in send_command() 194 *lsb = inb_p(pcipcwd_private.io_addr + 4); in send_command() 202 cmd, *msb, *lsb); in send_command() 416 int lsb; in pcipcwd_get_timeleft() local 420 send_command(CMD_READ_WATCHDOG_TIMEOUT, &msb, &lsb); in pcipcwd_get_timeleft() 422 *time_left = (msb << 8) + lsb; in pcipcwd_get_timeleft()
|
/drivers/iio/proximity/ |
D | isl29501.c | 135 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 …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/acr/ |
D | gp102.c | 36 struct lsb_header_v1 lsb; in gp102_acr_wpr_patch() local 48 nvkm_robj(acr->wpr, hdr.lsb_offset, &lsb, sizeof(lsb)); in gp102_acr_wpr_patch() 49 lsb_header_v1_dump(&acr->subdev, &lsb); in gp102_acr_wpr_patch() 51 lsfw->func->bld_patch(acr, lsb.tail.bl_data_off, adjust); in gp102_acr_wpr_patch() 70 nvkm_wobj(acr->wpr, lsfw->offset.lsb, &hdr, sizeof(hdr)); in gp102_acr_wpr_build_lsb() 86 .lsb_offset = lsfw->offset.lsb, in gp102_acr_wpr_build() 144 lsfw->offset.lsb = wpr; in gp102_acr_wpr_layout()
|
D | gm200.c | 69 struct lsb_header lsb; in gm200_acr_wpr_patch() local 81 nvkm_robj(acr->wpr, hdr.lsb_offset, &lsb, sizeof(lsb)); in gm200_acr_wpr_patch() 82 lsb_header_dump(subdev, &lsb); in gm200_acr_wpr_patch() 84 lsfw->func->bld_patch(acr, lsb.tail.bl_data_off, adjust); in gm200_acr_wpr_patch() 122 nvkm_wobj(acr->wpr, lsfw->offset.lsb, &hdr, sizeof(hdr)); in gm200_acr_wpr_build_lsb() 137 .lsb_offset = lsfw->offset.lsb, in gm200_acr_wpr_build() 190 lsfw->offset.lsb = wpr; in gm200_acr_wpr_layout()
|
/drivers/comedi/drivers/ |
D | das08.c | 177 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()
|
/drivers/net/wireless/ath/ath10k/ |
D | hw.c | 215 .lsb = 0x00000010, 221 .lsb = 0x00000012, 227 .lsb = 0x00000000, 269 .lsb = 0x00000010, 275 .lsb = 0x00000000, 288 .lsb = 0x00000010, 294 .lsb = 0x00000000, 347 .lsb = 0x00000010, 353 .lsb = 0x00000011, 359 .lsb = 0x00000000, [all …]
|
/drivers/mfd/ |
D | atmel-smc.c | 51 unsigned int msb, lsb; in atmel_smc_cs_encode_ncycles() local 55 lsb = ncycles % msbfactor; in atmel_smc_cs_encode_ncycles() 57 if (lsb > lsbmask) { in atmel_smc_cs_encode_ncycles() 58 lsb = 0; in atmel_smc_cs_encode_ncycles() 69 lsb = lsbmask; in atmel_smc_cs_encode_ncycles() 73 *encodedval = (msb << msbpos) | lsb; in atmel_smc_cs_encode_ncycles()
|
/drivers/hwmon/ |
D | max1111.c | 46 int lsb; member 119 return sprintf(buf, "%d\n", ret * data->lsb); in show_adc() 200 data->lsb = 8; in max1111_probe() 204 data->lsb = 8; in max1111_probe() 208 data->lsb = 16; in max1111_probe() 212 data->lsb = 16; in max1111_probe()
|
D | ltc2947-core.c | 408 u32 lsb = 200000; /* in uW */ in ltc2947_read_power() local 415 lsb = 50000; in ltc2947_read_power() 446 *val = __val * lsb; in ltc2947_read_power() 455 u8 lsb = 12; /* in mA */ in ltc2947_read_curr() local 462 lsb = 3; in ltc2947_read_curr() 493 *val = __val * lsb; in ltc2947_read_curr() 503 u8 lsb = 2; /* in mV */ in ltc2947_read_in() local 516 lsb = 145; in ltc2947_read_in() 526 lsb = 145; in ltc2947_read_in() 536 lsb = 145; in ltc2947_read_in() [all …]
|
D | asc7621.c | 108 u8 lsb[3]; member 240 regval = (data->reg[param->msb[0]] << 8) | data->reg[param->lsb[0]]; in show_fan16() 268 data->reg[param->lsb[0]] = reqval & 0xff; in store_fan16() 270 write_byte(client, param->lsb[0], data->reg[param->lsb[0]]); in store_fan16() 302 regval = (data->reg[param->msb[0]] << 8) | (data->reg[param->lsb[0]]); in show_in10() 388 u8 msb, lsb; in show_temp10() local 393 lsb = (data->reg[param->lsb[0]] >> 6) & 0x03; in show_temp10() 394 temp = (((s8) msb) * 1000) + (lsb * 250); in show_temp10() 801 .priority = pri, .msb[0] = rm, .lsb[0] = rl, .mask[0] = m, \ 806 .priority = pri, .msb[0] = rm, .lsb[0] = rl, .mask[0] = m, \ [all …]
|
D | sch56xx-common.c | 205 int lsb, msb; in sch56xx_read_virtual_reg16() local 208 lsb = sch56xx_read_virtual_reg(addr, reg); in sch56xx_read_virtual_reg16() 209 if (lsb < 0) in sch56xx_read_virtual_reg16() 210 return lsb; in sch56xx_read_virtual_reg16() 216 return lsb | (msb << 8); in sch56xx_read_virtual_reg16()
|
/drivers/staging/pi433/ |
D | rf69.c | 227 u8 lsb; in rf69_set_bit_rate() local 240 lsb = (bit_rate_reg & 0xff); in rf69_set_bit_rate() 246 retval = rf69_write_reg(spi, REG_BITRATE_LSB, lsb); in rf69_set_bit_rate() 259 u8 lsb; in rf69_set_deviation() local 277 lsb = (f_reg & 0xff); in rf69_set_deviation() 289 retval = rf69_write_reg(spi, REG_FDEV_LSB, lsb); in rf69_set_deviation() 304 u8 lsb; in rf69_set_frequency() local 324 lsb = (f_reg & 0xff); in rf69_set_frequency() 333 retval = rf69_write_reg(spi, REG_FRF_LSB, lsb); in rf69_set_frequency() 648 u8 msb, lsb; in rf69_set_preamble_length() local [all …]
|
/drivers/media/usb/as102/ |
D | as102_fw.c | 26 char lsb = tolower(*(src + 1)) - '0'; in atohx() local 30 if (lsb > 9) in atohx() 31 lsb -= 7; in atohx() 33 *dst = value = ((msb & 0xF) << 4) | (lsb & 0xF); in atohx()
|
/drivers/phy/socionext/ |
D | phy-uniphier-usb3ss.c | 32 #define PHY_F(regno, msb, lsb) { (regno), (msb), (lsb) } argument 49 int lsb; member 82 u8 field_mask = GENMASK(p->field.msb, p->field.lsb); in uniphier_u3ssphy_set_param() 93 data = field_mask & (p->value << p->field.lsb); in uniphier_u3ssphy_set_param()
|
/drivers/mux/ |
D | mmio.c | 94 field.lsb = ffs(mask) - 1; in mux_mmio_probe() 96 if (mask != GENMASK(field.msb, field.lsb)) { in mux_mmio_probe() 110 bits = 1 + field.msb - field.lsb; in mux_mmio_probe()
|
/drivers/power/supply/ |
D | rt5033_battery.c | 41 u32 msb, lsb; in rt5033_battery_get_watt_prop() local 61 regmap_read(battery->regmap, regl, &lsb); in rt5033_battery_get_watt_prop() 63 ret = ((msb << 4) + (lsb >> 4)) * 1250; in rt5033_battery_get_watt_prop()
|
/drivers/pinctrl/berlin/ |
D | berlin.h | 22 u8 lsb; member 42 .lsb = _lsb, \
|
/drivers/thermal/qcom/ |
D | tsens-v1.c | 144 u32 mode = 0, lsb = 0, msb = 0; in calibrate_v1() local 161 lsb = (qfprom_cdata[0] & S2_P2_MASK_1_0) >> S2_P2_SHIFT_1_0; in calibrate_v1() 163 p2[2] = msb << 2 | lsb; in calibrate_v1() 169 lsb = (qfprom_cdata[2] & S7_P2_MASK_1_0) >> S7_P2_SHIFT_1_0; in calibrate_v1() 171 p2[7] = msb << 2 | lsb; in calibrate_v1()
|
/drivers/misc/ |
D | isl29003.c | 158 int lsb, msb, range, bitdepth; in isl29003_get_adc_value() local 161 lsb = i2c_smbus_read_byte_data(client, ISL29003_REG_LSB_SENSOR); in isl29003_get_adc_value() 163 if (lsb < 0) { in isl29003_get_adc_value() 165 return lsb; in isl29003_get_adc_value() 176 return (((msb << 8) | lsb) * gain_range[range]) >> bitdepth; in isl29003_get_adc_value()
|
/drivers/media/dvb-frontends/ |
D | rtl2832.c | 148 u8 msb, lsb, reading[4], len; in rtl2832_rd_demod_reg() local 153 lsb = registers[reg].lsb; in rtl2832_rd_demod_reg() 155 mask = REG_MASK(msb - lsb); in rtl2832_rd_demod_reg() 165 *val = (reading_tmp >> lsb) & mask; in rtl2832_rd_demod_reg() 178 u8 msb, lsb, reading[4], writing[4], len; in rtl2832_wr_demod_reg() local 183 lsb = registers[reg].lsb; in rtl2832_wr_demod_reg() 185 mask = REG_MASK(msb - lsb); in rtl2832_wr_demod_reg() 195 writing_tmp = reading_tmp & ~(mask << lsb); in rtl2832_wr_demod_reg() 196 writing_tmp |= ((val & mask) << lsb); in rtl2832_wr_demod_reg()
|
/drivers/iio/light/ |
D | veml6070.c | 43 u8 msb, lsb; in veml6070_read() local 63 lsb = ret; in veml6070_read() 70 ret = (msb << 8) | lsb; in veml6070_read()
|