Home
last modified time | relevance | path

Searched refs:msb (Results 1 – 25 of 152) sorted by relevance

1234567

/linux-6.1.9/drivers/memstick/core/
Dms_block.c147 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 …]
Dmspro_block.c182 struct mspro_block_data *msb = disk->private_data; in mspro_block_bd_free_disk() local
189 kfree(msb); in mspro_block_bd_free_disk()
195 struct mspro_block_data *msb = bdev->bd_disk->private_data; in mspro_block_bd_getgeo() local
197 geo->heads = msb->heads; in mspro_block_bd_getgeo()
198 geo->sectors = msb->sectors_per_track; in mspro_block_bd_getgeo()
199 geo->cylinders = msb->cylinders; in mspro_block_bd_getgeo()
485 struct mspro_block_data *msb = memstick_get_drvdata(card); in h_mspro_block_req_init() local
488 card->next_request = msb->mrq_handler; in h_mspro_block_req_init()
507 struct mspro_block_data *msb = memstick_get_drvdata(card); in h_mspro_block_get_ro() local
512 msb->read_only = 1; in h_mspro_block_get_ro()
[all …]
/linux-6.1.9/tools/testing/selftests/x86/
Dsyscall_numbering.c115 static long long probe_syscall(int msb, int lsb) in probe_syscall() argument
123 long long nr = ((long long)msb << 32) | (unsigned int)lsb; in probe_syscall()
145 static const char *syscall_str(int msb, int start, int end) in syscall_str() argument
162 type, msb, lsb); in syscall_str()
165 type, msb, lsb, lsb + (end-start)); in syscall_str()
170 static unsigned int _check_for(int msb, int start, int end, long long expect, in _check_for() argument
180 long long ret = probe_syscall(msb, nr); in _check_for()
184 syscall_str(msb, nr, nr), in _check_for()
196 syscall_str(msb, start, end), in _check_for()
200 syscall_str(msb, start, end), expect_str); in _check_for()
[all …]
/linux-6.1.9/arch/arm64/tools/
Dgen-sysreg.awk40 function define_field(reg, field, msb, lsb) {
41 define(reg "_" field, "GENMASK(" msb ", " lsb ")")
42 define(reg "_" field "_MASK", "GENMASK(" msb ", " lsb ")")
44 define(reg "_" field "_WIDTH", msb - lsb + 1)
51 msb = bitdef
54 msb = _bits[1]
61 if (msb != next_bit)
62 fatal(reg "." field " starts at " msb " not " next_bit)
63 if (63 < msb || msb < 0)
67 if (msb < lsb)
[all …]
/linux-6.1.9/drivers/media/test-drivers/vivid/
Dvivid-rds-gen.c54 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 …]
/linux-6.1.9/drivers/dma/dw-edma/
Ddw-edma-v0-regs.h35 u32 msb; /* 0x0010 */ member
42 u32 msb; /* 0x0018 */ member
49 u32 msb; /* 0x0020 */ member
69 u32 msb; /* 0x010c */ member
77 u32 msb; /* 0x0124 */ member
119 u32 msb; /* 0x001c */ member
130 u32 msb; /* 0x003c */ member
144 u32 msb; /* 0x0064 */ member
151 u32 msb; /* 0x006c */ member
170 u32 msb; /* 0x00b8 */ member
[all …]
Ddw-edma-v0-debugfs.c117 REGISTER(sar.msb), in dw_edma_debugfs_regs_ch()
119 REGISTER(dar.msb), in dw_edma_debugfs_regs_ch()
121 REGISTER(llp.msb), in dw_edma_debugfs_regs_ch()
135 WR_REGISTER(ch_arb_weight.msb), in dw_edma_debugfs_regs_wr()
142 WR_REGISTER(done_imwr.msb), in dw_edma_debugfs_regs_wr()
144 WR_REGISTER(abort_imwr.msb), in dw_edma_debugfs_regs_wr()
155 WR_REGISTER_UNROLL(engine_hshake_cnt.msb), in dw_edma_debugfs_regs_wr()
203 RD_REGISTER(ch_arb_weight.msb), in dw_edma_debugfs_regs_rd()
209 RD_REGISTER(err_status.msb), in dw_edma_debugfs_regs_rd()
212 RD_REGISTER(done_imwr.msb), in dw_edma_debugfs_regs_rd()
[all …]
/linux-6.1.9/drivers/hwmon/
Dasc7621.c107 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 …]
Dsch56xx-common.c210 int lsb, msb; in sch56xx_read_virtual_reg16() local
217 msb = sch56xx_read_virtual_reg(addr, reg + 1); in sch56xx_read_virtual_reg16()
218 if (msb < 0) in sch56xx_read_virtual_reg16()
219 return msb; in sch56xx_read_virtual_reg16()
221 return lsb | (msb << 8); in sch56xx_read_virtual_reg16()
228 int msb, lsn; in sch56xx_read_virtual_reg12() local
231 msb = sch56xx_read_virtual_reg(addr, msb_reg); in sch56xx_read_virtual_reg12()
232 if (msb < 0) in sch56xx_read_virtual_reg12()
233 return msb; in sch56xx_read_virtual_reg12()
240 return (msb << 4) | (lsn >> 4); in sch56xx_read_virtual_reg12()
[all …]
/linux-6.1.9/arch/m68k/hp300/
Dtime.c78 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()
/linux-6.1.9/drivers/media/dvb-core/
Ddvb_math.c65 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-6.1.9/drivers/watchdog/
Dpcwd_usb.c208 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 …]
Dpcwd_pci.c154 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 …]
/linux-6.1.9/drivers/s390/block/
Dscm_blk.c127 struct msb *msb; in scm_request_done() local
132 msb = &scmrq->aob->msb[i]; in scm_request_done()
133 aidaw = msb->data_addr; in scm_request_done()
135 if ((msb->flags & MSB_FLAG_IDA) && aidaw && in scm_request_done()
183 struct msb *msb = &scmrq->aob->msb[pos]; in scm_request_prepare() local
193 msb->bs = MSB_BS_4K; in scm_request_prepare()
195 msb->scm_addr = scmdev->address + ((u64) blk_rq_pos(req) << 9); in scm_request_prepare()
196 msb->oc = (rq_data_dir(req) == READ) ? MSB_OC_READ : MSB_OC_WRITE; in scm_request_prepare()
197 msb->flags |= MSB_FLAG_IDA; in scm_request_prepare()
198 msb->data_addr = (u64) aidaw; in scm_request_prepare()
[all …]
/linux-6.1.9/drivers/power/supply/
Drt5033_battery.c18 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()
/linux-6.1.9/drivers/comedi/drivers/
Ddas08.c176 int lsb, msb; in das08_ai_insn_read() local
214 msb = inb(dev->iobase + DAS08_AI_MSB_REG); in das08_ai_insn_read()
217 data[n] = (lsb >> 4) | (msb << 4); in das08_ai_insn_read()
219 data[n] = (msb << 8) + lsb; in das08_ai_insn_read()
231 unsigned int magnitude = lsb | ((msb & 0x7f) << 8); in das08_ai_insn_read()
237 if (msb & 0x80) in das08_ai_insn_read()
307 unsigned char msb; in das08_ao_set_data() local
310 msb = (data >> 8) & 0xff; in das08_ao_set_data()
313 outb(msb, dev->iobase + DAS08JR_AO_MSB_REG(chan)); in das08_ao_set_data()
318 outb(msb, dev->iobase + DAS08AOX_AO_MSB_REG(chan)); in das08_ao_set_data()
/linux-6.1.9/include/video/
Dgbe.h81 #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)) )
/linux-6.1.9/drivers/net/wireless/ath/ath10k/
Dhw.c215 .msb = 0x00000010,
221 .msb = 0x00000012,
227 .msb = 0x00000000,
269 .msb = 0x00000000,
275 .msb = 0x0000000f,
294 .msb = 0x0000000f,
347 .msb = 0x00000010,
353 .msb = 0x00000011,
359 .msb = 0x0000000f,
378 .msb = 0x00000003,
[all …]
/linux-6.1.9/drivers/mfd/
Datmel-smc.c51 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()
/linux-6.1.9/drivers/iio/proximity/
Disl29501.c134 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-6.1.9/drivers/staging/pi433/
Drf69.c192 u8 msb; in rf69_set_bit_rate() local
212 msb = (bit_rate_reg & 0xff00) >> 8; in rf69_set_bit_rate()
216 retval = rf69_write_reg(spi, REG_BITRATE_MSB, msb); in rf69_set_bit_rate()
233 u8 msb; in rf69_set_deviation() local
261 msb = (f_reg & 0xff00) >> 8; in rf69_set_deviation()
265 if (msb & ~FDEVMASB_MASK) { in rf69_set_deviation()
271 retval = rf69_write_reg(spi, REG_FDEV_MSB, msb); in rf69_set_deviation()
287 u8 msb; in rf69_set_frequency() local
307 msb = (f_reg & 0xff0000) >> 16; in rf69_set_frequency()
312 retval = rf69_write_reg(spi, REG_FRF_MSB, msb); in rf69_set_frequency()
[all …]
/linux-6.1.9/arch/mips/sgi-ip22/
Dip22-time.c35 u8 msb; in dosample() local
50 msb = readb(&sgint->tcnt2); in dosample()
52 } while (msb); in dosample()
/linux-6.1.9/drivers/media/usb/as102/
Das102_fw.c25 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()
/linux-6.1.9/arch/s390/include/asm/
Deadm.h41 struct msb { struct
76 struct msb msb[AOB_NR_MSB]; member
/linux-6.1.9/arch/mips/sni/
Dtime.c81 volatile u8 msb; in dosample() local
95 msb = inb(0x40); in dosample()
97 } while (msb); in dosample()

1234567