Home
last modified time | relevance | path

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

12345678910>>...33

/linux/tools/testing/selftests/x86/
H A 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/arch/arm64/tools/
H A 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/drivers/hwmon/
H A 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 …]
H A Dsch56xx-common.c211 int lsb, msb; in sch56xx_read_virtual_reg16() local
213 /* Read LSB first, this will cause the matching MSB to be latched */ in sch56xx_read_virtual_reg16()
218 msb = sch56xx_read_virtual_reg(addr, reg + 1); in sch56xx_read_virtual_reg16()
219 if (msb < 0) in sch56xx_read_virtual_reg16()
220 return msb; in sch56xx_read_virtual_reg16()
222 return lsb | (msb << 8); in sch56xx_read_virtual_reg16()
229 int msb, lsn; in sch56xx_read_virtual_reg12() local
231 /* Read MSB first, this will cause the matching LSN to be latched */ in sch56xx_read_virtual_reg12()
232 msb = sch56xx_read_virtual_reg(addr, msb_reg); in sch56xx_read_virtual_reg12()
233 if (msb < 0) in sch56xx_read_virtual_reg12()
[all …]
H A 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/drivers/dma/dw-edma/
H A 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 …]
H A 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
H A 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 …]
H A 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/drivers/media/test-drivers/vivid/
H A 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/drivers/gpu/drm/i915/gvt/
H A Dfb_decoder.c57 {DRM_FORMAT_RGB565, 16, "16-bit BGRX (5:6:5 MSB-R:G:B)"},
58 {DRM_FORMAT_XRGB8888, 32, "32-bit BGRX (8:8:8:8 MSB-X:R:G:B)"},
59 {DRM_FORMAT_XBGR2101010, 32, "32-bit RGBX (2:10:10:10 MSB-X:B:G:R)"},
61 {DRM_FORMAT_XRGB2101010, 32, "32-bit BGRX (2:10:10:10 MSB-X:R:G:B)"},
62 {DRM_FORMAT_XBGR8888, 32, "32-bit RGBX (8:8:8:8 MSB-X:B:G:R)"},
69 {DRM_FORMAT_YUYV, 16, "16-bit packed YUYV (8:8:8:8 MSB-V:Y2:U:Y1)"},
70 {DRM_FORMAT_UYVY, 16, "16-bit packed UYVY (8:8:8:8 MSB-Y2:V:Y1:U)"},
71 {DRM_FORMAT_YVYU, 16, "16-bit packed YVYU (8:8:8:8 MSB-U:Y2:V:Y1)"},
72 {DRM_FORMAT_VYUY, 16, "16-bit packed VYUY (8:8:8:8 MSB-Y2:U:Y1:V)"},
75 {DRM_FORMAT_RGB565, 16, "16-bit BGRX (5:6:5 MSB-R:G:B)"},
[all …]
/linux/drivers/comedi/drivers/
H A 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
213 msb = inb(dev->iobase + DAS08_AI_MSB_REG); in das08_ai_insn_read()
216 data[n] = (lsb >> 4) | (msb << 4); in das08_ai_insn_read()
218 data[n] = (msb << 8) + lsb; in das08_ai_insn_read()
230 unsigned int magnitude = lsb | ((msb & 0x7f) << 8); in das08_ai_insn_read()
233 * MSB bit 7 is 0 for negative, 1 for positive voltage. in das08_ai_insn_read()
[all …]
/linux/drivers/s390/block/
H A Dscm_blk.c128 struct msb *msb; in scm_request_done() local
133 msb = &scmrq->aob->msb[i]; in scm_request_done()
134 aidaw = (u64)dma64_to_virt(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 = virt_to_dma64(aidaw); in scm_request_prepare()
[all …]
/linux/include/linux/
H A 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/arch/m68k/hp300/
H A Dtime.c80 unsigned char lsb, msb, msb_new; in hp300_read_clk() local
85 msb = in_8(CLOCKBASE + CLKMSB1); in hp300_read_clk()
87 if ((in_8(CLOCKBASE + CLKSR) & CLKSR_INT1) && msb > 0) in hp300_read_clk()
91 if (msb_new != msb) { in hp300_read_clk()
92 msb = msb_new; in hp300_read_clk()
96 ticks = INTVAL - ((msb << 8) | lsb); in hp300_read_clk()
/linux/drivers/watchdog/
H A 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 …]
H A Dpcwd_pci.c154 static int send_command(int cmd, int *msb, int *lsb) in send_command() argument
159 pr_debug("sending following data cmd=0x%02x msb=0x%02x lsb=0x%02x\n", in send_command()
160 cmd, *msb, *lsb); in send_command()
166 * and MSB to port 5. 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()
201 pr_debug("received following data for cmd=0x%02x: msb=0x%02x lsb=0x%02x\n", 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()
[all …]
/linux/Documentation/sound/soc/
H A 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/drivers/power/supply/
H A 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/arch/parisc/math-emu/
H A 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()
H A Dfcnvxf.c81 /* left justify source, with msb at bit position 1 */ in sgl_to_sgl_fcnvxf()
152 /* left justify source, with msb at bit position 1 */ in sgl_to_dbl_fcnvxf()
204 /* left justify source, with msb at bit position 1 */ in dbl_to_sgl_fcnvxf()
214 * since msb set is in second word, need to in dbl_to_sgl_fcnvxf()
227 /* left justify source, with msb at bit position 1 */ in dbl_to_sgl_fcnvxf()
309 /* left justify source, with msb at bit position 1 */ in dbl_to_dbl_fcnvxf()
319 * since msb set is in second word, need to in dbl_to_dbl_fcnvxf()
331 /* left justify source, with msb at bit position 1 */ in dbl_to_dbl_fcnvxf()
/linux/drivers/scsi/qla2xxx/
H A 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 …]
/linux/lib/math/
H A 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/arch/sparc/lib/
H A Dudivdi3.S25 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
/linux/drivers/net/wireless/ath/ath10k/
H A Dhw.c216 .msb = 0x00000010,
222 .msb = 0x00000012,
228 .msb = 0x00000000,
270 .msb = 0x00000000,
276 .msb = 0x0000000f,
295 .msb = 0x0000000f,
348 .msb = 0x00000010,
354 .msb = 0x00000011,
360 .msb = 0x0000000f,
379 .msb = 0x00000003,
[all …]

12345678910>>...33