/kernel/linux/linux-5.10/drivers/memstick/core/ |
D | ms_block.c | 147 static int msb_validate_used_block_bitmap(struct msb_data *msb) in msb_validate_used_block_bitmap() argument 155 for (i = 0; i < msb->zone_count; i++) in msb_validate_used_block_bitmap() 156 total_free_blocks += msb->free_block_count[i]; in msb_validate_used_block_bitmap() 158 if (msb->block_count - bitmap_weight(msb->used_blocks_bitmap, in msb_validate_used_block_bitmap() 159 msb->block_count) == total_free_blocks) in msb_validate_used_block_bitmap() 163 msb->read_only = true; in msb_validate_used_block_bitmap() 168 static void msb_mark_block_used(struct msb_data *msb, int pba) in msb_mark_block_used() argument 172 if (test_bit(pba, msb->used_blocks_bitmap)) { in msb_mark_block_used() 175 msb->read_only = true; in msb_mark_block_used() 179 if (msb_validate_used_block_bitmap(msb)) in msb_mark_block_used() [all …]
|
D | mspro_block.c | 184 struct mspro_block_data *msb = disk->private_data; in mspro_block_bd_open() local 189 if (msb && msb->card) { in mspro_block_bd_open() 190 msb->usage_count++; in mspro_block_bd_open() 191 if ((mode & FMODE_WRITE) && msb->read_only) in mspro_block_bd_open() 205 struct mspro_block_data *msb = disk->private_data; in mspro_block_disk_release() local 210 if (msb) { in mspro_block_disk_release() 211 if (msb->usage_count) in mspro_block_disk_release() 212 msb->usage_count--; in mspro_block_disk_release() 214 if (!msb->usage_count) { in mspro_block_disk_release() 215 kfree(msb); in mspro_block_disk_release() [all …]
|
/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/ |
D | vivid-rds-gen.c | 54 data[0].msb = rds->picode >> 8; in vivid_rds_generate() 57 data[1].msb = (rds->pty >> 3) | (rds->tp << 2); in vivid_rds_generate() 68 data[1].msb |= 1 << 3; in vivid_rds_generate() 70 data[2].msb = rds->picode >> 8; in vivid_rds_generate() 73 data[3].msb = rds->psname[2 * idx]; in vivid_rds_generate() 79 data[1].msb |= 4 << 3; in vivid_rds_generate() 80 data[2].msb = rds->radiotext[4 * idx]; in vivid_rds_generate() 83 data[3].msb = rds->radiotext[4 * idx + 2]; in vivid_rds_generate() 104 data[1].msb |= 8 << 3; in vivid_rds_generate() 107 data[2].msb = (date >> 7) & 0xff; in vivid_rds_generate() [all …]
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
D | asc7621.c | 107 u8 msb[3]; member 169 return sprintf(buf, "%u\n", data->reg[param->msb[0]]); in show_u8() 184 data->reg[param->msb[0]] = reqval; in store_u8() 185 write_byte(client, param->msb[0], reqval); in store_u8() 199 (data->reg[param->msb[0]] >> param-> in show_bitmask() 219 currval = read_byte(client, param->msb[0]); in store_bitmask() 221 data->reg[param->msb[0]] = reqval; in store_bitmask() 222 write_byte(client, param->msb[0], reqval); in store_bitmask() 240 regval = (data->reg[param->msb[0]] << 8) | data->reg[param->lsb[0]]; in show_fan16() 267 data->reg[param->msb[0]] = (reqval >> 8) & 0xff; in store_fan16() [all …]
|
D | sch56xx-common.c | 205 int lsb, msb; in sch56xx_read_virtual_reg16() local 212 msb = sch56xx_read_virtual_reg(addr, reg + 1); in sch56xx_read_virtual_reg16() 213 if (msb < 0) in sch56xx_read_virtual_reg16() 214 return msb; in sch56xx_read_virtual_reg16() 216 return lsb | (msb << 8); in sch56xx_read_virtual_reg16() 223 int msb, lsn; in sch56xx_read_virtual_reg12() local 226 msb = sch56xx_read_virtual_reg(addr, msb_reg); in sch56xx_read_virtual_reg12() 227 if (msb < 0) in sch56xx_read_virtual_reg12() 228 return msb; in sch56xx_read_virtual_reg12() 235 return (msb << 4) | (lsn >> 4); in sch56xx_read_virtual_reg12() [all …]
|
/kernel/linux/linux-5.10/arch/m68k/hp300/ |
D | time.c | 78 unsigned char lsb, msb, msb_new; in hp300_read_clk() local 83 msb = in_8(CLOCKBASE + CLKMSB1); in hp300_read_clk() 85 if ((in_8(CLOCKBASE + CLKSR) & CLKSR_INT1) && msb > 0) in hp300_read_clk() 89 if (msb_new != msb) { in hp300_read_clk() 90 msb = msb_new; in hp300_read_clk() 94 ticks = INTVAL - ((msb << 8) | lsb); in hp300_read_clk()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
D | pcwd_usb.c | 208 unsigned char cmd, unsigned char *msb, unsigned char *lsb) in usb_pcwd_send_command() argument 225 buf[1] = *msb; /* Byte 1 = Data MSB */ in usb_pcwd_send_command() 241 cmd, *msb, *lsb); in usb_pcwd_send_command() 255 *msb = usb_pcwd->cmd_data_msb; in usb_pcwd_send_command() 266 unsigned char msb = 0x00; in usb_pcwd_start() local 272 &msb, &lsb); in usb_pcwd_start() 284 unsigned char msb = 0xA5; in usb_pcwd_stop() local 290 &msb, &lsb); in usb_pcwd_stop() 312 unsigned char msb = t / 256; in usb_pcwd_set_heartbeat() local 319 usb_pcwd_send_command(usb_pcwd, CMD_WRITE_WATCHDOG_TIMEOUT, &msb, &lsb); in usb_pcwd_set_heartbeat() [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() 170 outb_p(*msb, pcipcwd_private.io_addr + 5); in send_command() 195 *msb = inb_p(pcipcwd_private.io_addr + 5); in send_command() 202 cmd, *msb, *lsb); in send_command() 360 int msb; in pcipcwd_clear_status() local 379 msb = 0; in pcipcwd_clear_status() 381 send_command(CMD_GET_CLEAR_RESET_COUNT, &msb, &reset_counter); in pcipcwd_clear_status() 415 int msb; in pcipcwd_get_timeleft() local 420 send_command(CMD_READ_WATCHDOG_TIMEOUT, &msb, &lsb); in pcipcwd_get_timeleft() [all …]
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
D | rt5033_battery.c | 18 u32 msb; in rt5033_battery_get_capacity() local 20 regmap_read(battery->regmap, RT5033_FUEL_REG_SOC_H, &msb); in rt5033_battery_get_capacity() 22 return msb; in rt5033_battery_get_capacity() 41 u32 msb, lsb; in rt5033_battery_get_watt_prop() local 60 regmap_read(battery->regmap, regh, &msb); in rt5033_battery_get_watt_prop() 63 ret = ((msb << 4) + (lsb >> 4)) * 1250; in rt5033_battery_get_watt_prop()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
D | das08.c | 177 int lsb, msb; in das08_ai_insn_read() local 215 msb = inb(dev->iobase + DAS08_AI_MSB_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() 238 if (msb & 0x80) in das08_ai_insn_read() 308 unsigned char msb; in das08_ao_set_data() local 311 msb = (data >> 8) & 0xff; in das08_ao_set_data() 314 outb(msb, dev->iobase + DAS08JR_AO_MSB_REG(chan)); in das08_ao_set_data() 319 outb(msb, dev->iobase + DAS08AOX_AO_MSB_REG(chan)); in das08_ao_set_data()
|
/kernel/linux/linux-5.10/include/video/ |
D | gbe.h | 81 #define MASK(msb, lsb) \ argument 82 ( (((u32)1<<((msb)-(lsb)+1))-1) << (lsb) ) 83 #define GET(v, msb, lsb) \ argument 84 ( ((u32)(v) & MASK(msb,lsb)) >> (lsb) ) 85 #define SET(v, f, msb, lsb) \ argument 86 ( (v) = ((v)&~MASK(msb,lsb)) | (( (u32)(f)<<(lsb) ) & MASK(msb,lsb)) )
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/ |
D | hw.c | 214 .msb = 0x00000010, 220 .msb = 0x00000012, 226 .msb = 0x00000000, 268 .msb = 0x00000000, 274 .msb = 0x0000000f, 293 .msb = 0x0000000f, 346 .msb = 0x00000010, 352 .msb = 0x00000011, 358 .msb = 0x0000000f, 377 .msb = 0x00000003, [all …]
|
/kernel/linux/linux-5.10/drivers/mfd/ |
D | atmel-smc.c | 51 unsigned int msb, lsb; in atmel_smc_cs_encode_ncycles() local 54 msb = ncycles / msbfactor; in atmel_smc_cs_encode_ncycles() 59 msb++; in atmel_smc_cs_encode_ncycles() 67 if (msb > msbmask) { in atmel_smc_cs_encode_ncycles() 68 msb = msbmask; in atmel_smc_cs_encode_ncycles() 73 *encodedval = (msb << msbpos) | lsb; in atmel_smc_cs_encode_ncycles()
|
/kernel/linux/linux-5.10/crypto/ |
D | tgr192.c | 556 u32 t, msb, lsb; in tgr192_final() local 560 msb = 0; in tgr192_final() 563 msb++; in tgr192_final() 565 msb += t >> 26; in tgr192_final() 568 msb++; in tgr192_final() 572 msb++; in tgr192_final() 574 msb += t >> 29; in tgr192_final() 592 le32p[1] = cpu_to_le32(msb); in tgr192_final()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/arch/mips/sgi-ip22/ |
D | ip22-time.c | 35 u8 msb; in dosample() local 50 msb = readb(&sgint->tcnt2); in dosample() 52 } while (msb); in dosample()
|
/kernel/linux/linux-5.10/drivers/staging/pi433/ |
D | rf69.c | 226 u8 msb; in rf69_set_bit_rate() local 239 msb = (bit_rate_reg & 0xff00) >> 8; in rf69_set_bit_rate() 243 retval = rf69_write_reg(spi, REG_BITRATE_MSB, msb); in rf69_set_bit_rate() 258 u8 msb; in rf69_set_deviation() local 276 msb = (f_reg & 0xff00) >> 8; in rf69_set_deviation() 280 if (msb & ~FDEVMASB_MASK) { in rf69_set_deviation() 286 retval = rf69_write_reg(spi, REG_FDEV_MSB, msb); in rf69_set_deviation() 302 u8 msb; in rf69_set_frequency() local 322 msb = (f_reg & 0xff0000) >> 16; in rf69_set_frequency() 327 retval = rf69_write_reg(spi, REG_FRF_MSB, msb); in rf69_set_frequency() [all …]
|
/kernel/linux/linux-5.10/drivers/media/usb/as102/ |
D | as102_fw.c | 25 char msb = tolower(*src) - '0'; in atohx() local 28 if (msb > 9) in atohx() 29 msb -= 7; in atohx() 33 *dst = value = ((msb & 0xF) << 4) | (lsb & 0xF); in atohx()
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
D | eadm.h | 41 struct msb { struct 76 struct msb msb[AOB_NR_MSB]; member
|
/kernel/linux/linux-5.10/arch/mips/sni/ |
D | time.c | 81 volatile u8 msb; in dosample() local 95 msb = inb(0x40); in dosample() 97 } while (msb); in dosample()
|
/kernel/linux/linux-5.10/arch/sparc/lib/ |
D | udivdi3.S | 25 sub %i0,%o3,%i0 ! this kills msb of n 33 sub %i0,%o3,%i0 ! this kills msb of n 63 sub %o4,%o3,%o4 ! this kills msb of n 71 sub %o4,%o3,%o4 ! this kills msb of n 89 sub %i0,%o3,%i0 ! this kills msb of n 97 sub %i0,%o3,%i0 ! this kills msb of n 168 sub %o4,%i2,%o4 ! this kills msb of n 176 sub %o4,%i2,%o4 ! this kills msb of n
|
/kernel/linux/linux-5.10/drivers/mux/ |
D | mmio.c | 93 field.msb = fls(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()
|
/kernel/linux/linux-5.10/arch/m68k/bvme6000/ |
D | config.c | 238 unsigned char msr, msb; in bvme6000_read_clk() local 252 msb = rtc->t1msb; /* Read timer1 */ in bvme6000_read_clk() 253 v = (msb << 8) | rtc->t1lsb; /* Read timer1 */ in bvme6000_read_clk() 262 if (msb > 0 && t1int) in bvme6000_read_clk()
|