/linux-4.19.296/drivers/memstick/core/ |
D | ms_block.c | 151 static int msb_validate_used_block_bitmap(struct msb_data *msb) in msb_validate_used_block_bitmap() argument 159 for (i = 0; i < msb->zone_count; i++) in msb_validate_used_block_bitmap() 160 total_free_blocks += msb->free_block_count[i]; in msb_validate_used_block_bitmap() 162 if (msb->block_count - bitmap_weight(msb->used_blocks_bitmap, in msb_validate_used_block_bitmap() 163 msb->block_count) == total_free_blocks) in msb_validate_used_block_bitmap() 167 msb->read_only = true; in msb_validate_used_block_bitmap() 172 static void msb_mark_block_used(struct msb_data *msb, int pba) in msb_mark_block_used() argument 176 if (test_bit(pba, msb->used_blocks_bitmap)) { in msb_mark_block_used() 179 msb->read_only = true; in msb_mark_block_used() 183 if (msb_validate_used_block_bitmap(msb)) in msb_mark_block_used() [all …]
|
D | mspro_block.c | 188 struct mspro_block_data *msb = disk->private_data; in mspro_block_bd_open() local 193 if (msb && msb->card) { in mspro_block_bd_open() 194 msb->usage_count++; in mspro_block_bd_open() 195 if ((mode & FMODE_WRITE) && msb->read_only) in mspro_block_bd_open() 209 struct mspro_block_data *msb = disk->private_data; in mspro_block_disk_release() local 214 if (msb) { in mspro_block_disk_release() 215 if (msb->usage_count) in mspro_block_disk_release() 216 msb->usage_count--; in mspro_block_disk_release() 218 if (!msb->usage_count) { in mspro_block_disk_release() 219 kfree(msb); in mspro_block_disk_release() [all …]
|
/linux-4.19.296/drivers/media/dvb-core/ |
D | dvb_math.c | 65 unsigned int msb; in intlog2() local 76 msb = fls(value) - 1; in intlog2() 92 significand = value << (31 - msb); in intlog2() 115 return ((msb << 24) + (logtable[logentry] << 8) + interpolation); in intlog2()
|
/linux-4.19.296/drivers/s390/block/ |
D | scm_blk.c | 128 struct msb *msb; in scm_request_done() local 133 msb = &scmrq->aob->msb[i]; in scm_request_done() 134 aidaw = msb->data_addr; in scm_request_done() 136 if ((msb->flags & MSB_FLAG_IDA) && aidaw && in scm_request_done() 184 struct msb *msb = &scmrq->aob->msb[pos]; in scm_request_prepare() local 194 msb->bs = MSB_BS_4K; in scm_request_prepare() 196 msb->scm_addr = scmdev->address + ((u64) blk_rq_pos(req) << 9); in scm_request_prepare() 197 msb->oc = (rq_data_dir(req) == READ) ? MSB_OC_READ : MSB_OC_WRITE; in scm_request_prepare() 198 msb->flags |= MSB_FLAG_IDA; in scm_request_prepare() 199 msb->data_addr = (u64) aidaw; in scm_request_prepare() [all …]
|
/linux-4.19.296/drivers/iio/proximity/ |
D | isl29501.c | 134 u8 msb; member 140 .msb = ISL29501_DISTANCE_MSB_DATA, 144 .msb = ISL29501_PHASE_MSB, 154 .msb = ISL29501_GAIN_MSB, 158 .msb = ISL29501_CROSSTALK_GAIN_MSB, 177 .msb = ISL29501_PHASE_OFFSET_MSB, 202 u8 msb = 0, lsb = 0; in isl29501_register_read() local 206 if (reg->msb) { in isl29501_register_read() 207 ret = i2c_smbus_read_byte_data(isl29501->client, reg->msb); in isl29501_register_read() 210 msb = ret; in isl29501_register_read() [all …]
|
/linux-4.19.296/include/video/ |
D | gbe.h | 83 #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-4.19.296/crypto/ |
D | tgr192.c | 561 u32 t, msb, lsb; in tgr192_final() local 565 msb = 0; in tgr192_final() 568 msb++; in tgr192_final() 570 msb += t >> 26; in tgr192_final() 573 msb++; in tgr192_final() 577 msb++; in tgr192_final() 579 msb += t >> 29; in tgr192_final() 597 le32p[1] = cpu_to_le32(msb); in tgr192_final()
|
/linux-4.19.296/drivers/mux/ |
D | mmio.c | 89 field.msb = fls(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-4.19.296/drivers/iio/light/ |
D | veml6070.c | 46 u8 msb, lsb; in veml6070_read() local 61 msb = ret; in veml6070_read() 73 ret = (msb << 8) | lsb; in veml6070_read()
|
D | isl29018.c | 169 unsigned int msb; in isl29018_read_sensor_input() local 188 status = regmap_read(chip->regmap, ISL29018_REG_ADD_DATA_MSB, &msb); in isl29018_read_sensor_input() 194 dev_vdbg(dev, "MSB 0x%x and LSB 0x%x\n", msb, lsb); in isl29018_read_sensor_input() 196 return (msb << 8) | lsb; in isl29018_read_sensor_input()
|
D | isl29028.c | 250 unsigned int msb; in isl29028_read_als_ir() local 261 ret = regmap_read(chip->regmap, ISL29028_REG_ALSIR_U, &msb); in isl29028_read_als_ir() 269 *als_ir = ((msb & 0xF) << 8) | (lsb & 0xFF); in isl29028_read_als_ir()
|
/linux-4.19.296/drivers/misc/ |
D | isl29003.c | 171 int lsb, msb, range, bitdepth; in isl29003_get_adc_value() local 181 msb = i2c_smbus_read_byte_data(client, ISL29003_REG_MSB_SENSOR); in isl29003_get_adc_value() 184 if (msb < 0) in isl29003_get_adc_value() 185 return msb; in isl29003_get_adc_value() 189 return (((msb << 8) | lsb) * gain_range[range]) >> bitdepth; in isl29003_get_adc_value()
|
/linux-4.19.296/drivers/iio/adc/ |
D | lp8788_adc.c | 54 unsigned int msb; in lp8788_get_adc_result() local 86 msb = (rawdata[0] << 4) & 0x00000ff0; in lp8788_get_adc_result() 88 result = msb | lsb; in lp8788_get_adc_result()
|
D | spear_adc.c | 59 u32 msb; member 119 return __raw_readl(&st->adc_base_spear6xx->average.msb) & in spear_adc_get_average()
|
/linux-4.19.296/drivers/media/dvb-frontends/ |
D | rtl2832.c | 161 u8 msb, lsb, reading[4], len; in rtl2832_rd_demod_reg() local 165 msb = registers[reg].msb; in rtl2832_rd_demod_reg() 167 len = (msb >> 3) + 1; in rtl2832_rd_demod_reg() 168 mask = REG_MASK(msb - lsb); in rtl2832_rd_demod_reg() 191 u8 msb, lsb, reading[4], writing[4], len; in rtl2832_wr_demod_reg() local 195 msb = registers[reg].msb; in rtl2832_wr_demod_reg() 197 len = (msb >> 3) + 1; in rtl2832_wr_demod_reg() 198 mask = REG_MASK(msb - lsb); in rtl2832_wr_demod_reg()
|
D | zl10353_priv.h | 25 #define msb(x) (((x) >> 8) & 0xff) macro
|
D | mt352_priv.h | 34 #define msb(x) (((x) >> 8) & 0xff) macro
|
D | mt352.c | 135 buf[0] = msb(value); in mt352_calc_nominal_rate() 161 buf[0] = msb(value); in mt352_calc_input_freq() 281 buf[1] = msb(tps); /* TPS_GIVEN_(1|0) */ in mt352_set_parameters()
|
D | zl10353.c | 222 zl10353_single_write(fe, TRL_NOMINAL_RATE_1, msb(nominal_rate)); in zl10353_set_parameters() 227 zl10353_single_write(fe, INPUT_FREQ_1, msb(input_freq)); in zl10353_set_parameters() 335 zl10353_single_write(fe, TPS_GIVEN_1, msb(tps)); in zl10353_set_parameters()
|
D | cxd2099.c | 555 u8 msb, lsb; in read_data() local 566 read_reg(ci, 0x0f, &msb); in read_data() 568 len = ((u16)msb << 8) | lsb; in read_data()
|
/linux-4.19.296/drivers/media/radio/si4713/ |
D | si4713.c | 92 #define msb(x) ((u8)((u16) x >> 8)) macro 94 #define compose_u16(msb, lsb) (((u16)msb << 8) | lsb) argument 278 msb(prop), in si4713_read_property() 317 msb(prop), in si4713_write_property() 319 msb(val), in si4713_write_property() 558 msb(frequency), in si4713_tx_tune_freq() 652 msb(frequency), in si4713_tx_tune_measure() 741 msb(rdsb), in si4713_tx_rds_buff() 743 msb(rdsc), in si4713_tx_rds_buff() 745 msb(rdsd), in si4713_tx_rds_buff()
|
/linux-4.19.296/drivers/iio/common/ms_sensors/ |
D | ms_sensors_i2c.c | 150 u32 msb = 0x800000; in ms_sensors_crc_valid() local 155 while (msb != 0x80) { in ms_sensors_crc_valid() 156 if (result & msb) in ms_sensors_crc_valid() 159 msb >>= 1; in ms_sensors_crc_valid()
|
/linux-4.19.296/drivers/rtc/ |
D | rtc-snvs.c | 54 u32 msb, lsb; in rtc_read_lpsrt() local 56 regmap_read(data->regmap, data->offset + SNVS_LPSRTCMR, &msb); in rtc_read_lpsrt() 58 return (u64)msb << 32 | lsb; in rtc_read_lpsrt()
|
D | rtc-st-lpc.c | 58 unsigned long msb, unsigned long lsb) in st_rtc_set_hw_alarm() argument 66 writel_relaxed(msb, rtc->ioaddr + LPC_LPA_MSB_OFF); in st_rtc_set_hw_alarm()
|
/linux-4.19.296/include/linux/ |
D | leds-lp3952.h | 113 u8 msb; member
|