Home
last modified time | relevance | path

Searched full:msb (Results 1 – 25 of 913) sorted by relevance

12345678910>>...37

/Linux-v6.6/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()
452 struct mspro_block_data *msb = memstick_get_drvdata(card); in h_mspro_block_req_init() local
455 card->next_request = msb->mrq_handler; in h_mspro_block_req_init()
474 struct mspro_block_data *msb = memstick_get_drvdata(card); in h_mspro_block_get_ro() local
479 msb->read_only = 1; in h_mspro_block_get_ro()
[all …]
/Linux-v6.6/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-v6.6/arch/arm64/tools/
Dgen-sysreg.awk52 function define_field(reg, field, msb, lsb) {
53 define(reg "_" field, "GENMASK(" msb ", " lsb ")")
54 define(reg "_" field "_MASK", "GENMASK(" msb ", " lsb ")")
56 define(reg "_" field "_WIDTH", msb - lsb + 1)
64 # Parse a "<msb>[:<lsb>]" string into the global variables @msb and @lsb
68 msb = bitdef
71 msb = _bits[1]
78 if (msb != next_bit)
79 fatal(reg "." field " starts at " msb " not " next_bit)
80 if (63 < msb || msb < 0)
[all …]
/Linux-v6.6/arch/ia64/include/asm/
Delf.h53 #define R_IA64_DIR32MSB 0x24 /* symbol + addend, data4 MSB */
55 #define R_IA64_DIR64MSB 0x26 /* symbol + addend, data8 MSB */
59 #define R_IA64_GPREL32MSB 0x2c /* @gprel(sym+add), data4 MSB */
61 #define R_IA64_GPREL64MSB 0x2e /* @gprel(sym+add), data8 MSB */
67 #define R_IA64_PLTOFF64MSB 0x3e /* @pltoff(sym+add), data8 MSB */
70 #define R_IA64_FPTR32MSB 0x44 /* @fptr(sym+add), data4 MSB */
72 #define R_IA64_FPTR64MSB 0x46 /* @fptr(sym+add), data8 MSB */
78 #define R_IA64_PCREL32MSB 0x4c /* @pcrel(sym+add), data4 MSB */
80 #define R_IA64_PCREL64MSB 0x4e /* @pcrel(sym+add), data8 MSB */
84 #define R_IA64_LTOFF_FPTR32MSB 0x54 /* @ltoff(@fptr(s+a)), 4 MSB */
[all …]
/Linux-v6.6/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 …]
Dtmp401.c129 case 0: /* local temp msb */ in tmp401_regmap_is_volatile()
130 case 1: /* remote temp msb */ in tmp401_regmap_is_volatile()
135 case 0x23 ... 0x24: /* remote temp 2 msb / lsb */ in tmp401_regmap_is_volatile()
150 case 0: /* local temp msb */ in tmp401_reg_read()
151 case 1: /* remote temp msb */ in tmp401_reg_read()
152 case 5: /* local temp high limit msb */ in tmp401_reg_read()
153 case 6: /* local temp low limit msb */ in tmp401_reg_read()
154 case 7: /* remote temp ligh limit msb */ in tmp401_reg_read()
155 case 8: /* remote temp low limit msb */ in tmp401_reg_read()
156 case 0x15: /* remote temp 2 high limit msb */ in tmp401_reg_read()
[all …]
/Linux-v6.6/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-hdma-v0-regs.h36 u32 msb; /* 0x0014 */ member
45 u32 msb; /* 0x0024 */ member
52 u32 msb; /* 0x002c */ member
68 u32 msb; /* 0x0094 */ member
75 u32 msb; /* 0x009c */ member
82 u32 msb; /* 0x00a4 */ member
105 u32 msb; member
112 u32 msb; member
124 u32 msb; member
Ddw-edma-v0-debugfs.c127 CTX_REGISTER(dw, sar.msb, dir, ch), in dw_edma_debugfs_regs_ch()
129 CTX_REGISTER(dw, dar.msb, dir, ch), in dw_edma_debugfs_regs_ch()
131 CTX_REGISTER(dw, llp.msb, dir, ch), in dw_edma_debugfs_regs_ch()
147 WR_REGISTER(dw, ch_arb_weight.msb), in dw_edma_debugfs_regs_wr()
154 WR_REGISTER(dw, done_imwr.msb), in dw_edma_debugfs_regs_wr()
156 WR_REGISTER(dw, abort_imwr.msb), in dw_edma_debugfs_regs_wr()
167 WR_REGISTER_UNROLL(dw, engine_hshake_cnt.msb), in dw_edma_debugfs_regs_wr()
209 RD_REGISTER(dw, ch_arb_weight.msb), in dw_edma_debugfs_regs_rd()
215 RD_REGISTER(dw, err_status.msb), in dw_edma_debugfs_regs_rd()
218 RD_REGISTER(dw, done_imwr.msb), in dw_edma_debugfs_regs_rd()
[all …]
Ddw-hdma-v0-debugfs.c88 CTX_REGISTER(dw, llp.msb, dir, ch), in dw_hdma_debugfs_regs_ch()
92 CTX_REGISTER(dw, sar.msb, dir, ch), in dw_hdma_debugfs_regs_ch()
94 CTX_REGISTER(dw, dar.msb, dir, ch), in dw_hdma_debugfs_regs_ch()
104 CTX_REGISTER(dw, msi_stop.msb, dir, ch), in dw_hdma_debugfs_regs_ch()
106 CTX_REGISTER(dw, msi_watermark.msb, dir, ch), in dw_hdma_debugfs_regs_ch()
108 CTX_REGISTER(dw, msi_abort.msb, dir, ch), in dw_hdma_debugfs_regs_ch()
/Linux-v6.6/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-v6.6/drivers/gpu/drm/i915/gvt/
Dfb_decoder.c51 {DRM_FORMAT_RGB565, 16, "16-bit BGRX (5:6:5 MSB-R:G:B)"},
52 {DRM_FORMAT_XRGB8888, 32, "32-bit BGRX (8:8:8:8 MSB-X:R:G:B)"},
53 {DRM_FORMAT_XBGR2101010, 32, "32-bit RGBX (2:10:10:10 MSB-X:B:G:R)"},
55 {DRM_FORMAT_XRGB2101010, 32, "32-bit BGRX (2:10:10:10 MSB-X:R:G:B)"},
56 {DRM_FORMAT_XBGR8888, 32, "32-bit RGBX (8:8:8:8 MSB-X:B:G:R)"},
63 {DRM_FORMAT_YUYV, 16, "16-bit packed YUYV (8:8:8:8 MSB-V:Y2:U:Y1)"},
64 {DRM_FORMAT_UYVY, 16, "16-bit packed UYVY (8:8:8:8 MSB-Y2:V:Y1:U)"},
65 {DRM_FORMAT_YVYU, 16, "16-bit packed YVYU (8:8:8:8 MSB-U:Y2:V:Y1)"},
66 {DRM_FORMAT_VYUY, 16, "16-bit packed VYUY (8:8:8:8 MSB-Y2:U:Y1:V)"},
69 {DRM_FORMAT_RGB565, 16, "16-bit BGRX (5:6:5 MSB-R:G:B)"},
[all …]
/Linux-v6.6/include/linux/
Dcount_zeros.h14 * count_leading_zeros - Count the number of zeros from the MSB back
17 * Count the number of leading zeros from the MSB going towards the LSB in @x.
19 * If the MSB of @x is set, the result is 0.
37 * Count the number of trailing zeros from the LSB going towards the MSB in @x.
40 * If only the MSB of @x is set, then the result is BITS_PER_LONG-1.
/Linux-v6.6/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-v6.6/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-v6.6/drivers/comedi/drivers/
Ddas08.c23 * das08_encode12 : DATA[11..4] = MSB[7..0], DATA[3..0] = LSB[7..4].
24 * das08_pcm_encode12 : DATA[11..8] = MSB[3..0], DATA[7..9] = LSB[7..0].
25 * das08_encode16 : SIGN = MSB[7], MAGNITUDE[14..8] = MSB[6..0],
29 * complete, MSB[7] is an "over-range" bit.
176 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()
234 * MSB bit 7 is 0 for negative, 1 for positive voltage. in das08_ai_insn_read()
[all …]
/Linux-v6.6/drivers/watchdog/
Dpcwd_usb.c134 /* The data MSB that is reported back */
190 dev_dbg(dev, "received following data cmd=0x%02x msb=0x%02x lsb=0x%02x", in usb_pcwd_intr_done()
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()
230 "sending following data cmd=0x%02x msb=0x%02x lsb=0x%02x", 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
[all …]
/Linux-v6.6/Documentation/sound/soc/
Ddai.rst38 MSB is transmitted on the falling edge of the first BCLK after LRC
42 MSB is transmitted on transition of LRC.
45 MSB is transmitted sample size BCLKs before LRC transition.
61 MSB is transmitted on falling edge of first BCLK after FRAME/SYNC.
64 MSB is transmitted on rising edge of FRAME/SYNC.
/Linux-v6.6/arch/sh/boards/mach-microdev/
Dfdc37c93xapm.c58 #define MSB(x) ( (x) >> 8 ) macro
95 SMSC_WRITE_INDEXED(MSB(SERIAL1_PRIMARY_BASE), SMSC_PRIMARY_BASE_INDEX+0); in smsc_superio_setup()
106 SMSC_WRITE_INDEXED(MSB(SERIAL2_PRIMARY_BASE), SMSC_PRIMARY_BASE_INDEX+0); in smsc_superio_setup()
117 SMSC_WRITE_INDEXED(MSB(IDE1_PRIMARY_BASE), SMSC_PRIMARY_BASE_INDEX+0); in smsc_superio_setup()
119 SMSC_WRITE_INDEXED(MSB(IDE1_SECONDARY_BASE), SMSC_SECONDARY_BASE_INDEX+0); in smsc_superio_setup()
131 SMSC_WRITE_INDEXED(MSB(IDE2_PRIMARY_BASE), SMSC_PRIMARY_BASE_INDEX+0); in smsc_superio_setup()
133 SMSC_WRITE_INDEXED(MSB(IDE2_SECONDARY_BASE), SMSC_SECONDARY_BASE_INDEX+0); in smsc_superio_setup()
/Linux-v6.6/drivers/power/supply/
Drt5033_battery.c40 u32 msb; in rt5033_battery_get_capacity() local
42 regmap_read(battery->regmap, RT5033_FUEL_REG_SOC_H, &msb); in rt5033_battery_get_capacity()
44 return msb; in rt5033_battery_get_capacity()
63 u32 msb, lsb; in rt5033_battery_get_watt_prop() local
82 regmap_read(battery->regmap, regh, &msb); in rt5033_battery_get_watt_prop()
85 ret = ((msb << 4) + (lsb >> 4)) * 1250; in rt5033_battery_get_watt_prop()
/Linux-v6.6/arch/parisc/math-emu/
Dfcnvuf.c73 /* left justify source, with msb at bit position 0 */ in sgl_to_sgl_fcnvuf()
132 /* left justify source, with msb at bit position 0 */ in sgl_to_dbl_fcnvuf()
174 /* left justify source, with msb at bit position 0 */ in dbl_to_sgl_fcnvuf()
178 * since msb set is in second word, need to in dbl_to_sgl_fcnvuf()
191 /* left justify source, with msb at bit position 0 */ in dbl_to_sgl_fcnvuf()
256 /* left justify source, with msb at bit position 0 */ in dbl_to_dbl_fcnvuf()
260 * since msb set is in second word, need to in dbl_to_dbl_fcnvuf()
272 /* left justify source, with msb at bit position 0 */ in dbl_to_dbl_fcnvuf()
/Linux-v6.6/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()
264 // check msb in rf69_set_deviation()
265 if (msb & ~FDEVMASB_MASK) { in rf69_set_deviation()
266 dev_dbg(&spi->dev, "set_deviation: err in calc of msb\n"); 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
[all …]
/Linux-v6.6/lib/math/
Dint_log.c57 unsigned int msb; in intlog2() local
67 /* first detect the msb (count begins at 0) */ in intlog2()
68 msb = fls(value) - 1; in intlog2()
74 * where x = msb and therefore 1 <= y < 2 in intlog2()
76 * so that msb is bit 31 in intlog2()
84 significand = value << (31 - msb); in intlog2()
107 return ((msb << 24) + (logtable[logentry] << 8) + interpolation); in intlog2()
/Linux-v6.6/drivers/scsi/qla2xxx/
Dqla_def.h141 #define MSB(x) ((uint8_t)((uint16_t)(x) >> 8)) macro
1553 * MSB BIT 0 = Enable PDBC Notify
1554 * MSB BIT 1 = Non Participating LIP
1555 * MSB BIT 2 = Descending Loop ID Search
1556 * MSB BIT 3 = Acquire Loop ID in LIPA
1557 * MSB BIT 4 = Stop PortQ on Full Status
1558 * MSB BIT 5 = Full Login after LIP
1559 * MSB BIT 6 = Node Name Option
1560 * MSB BIT 7 = Ext IFWCB enable bit
1598 * MSB BIT 0 = Enable class 2
[all …]

12345678910>>...37