Home
last modified time | relevance | path

Searched refs:lsb (Results 1 – 25 of 184) sorted by relevance

12345678

/linux-6.12.1/drivers/media/test-drivers/vivid/
Dvivid-rds-gen.c53 data[0].lsb = rds->picode & 0xff; in vivid_rds_generate()
56 data[1].lsb = rds->pty << 5; in vivid_rds_generate()
66 data[1].lsb |= (rds->ta << 4) | (rds->ms << 3); in vivid_rds_generate()
67 data[1].lsb |= vivid_get_di(rds, idx); in vivid_rds_generate()
69 data[2].lsb = rds->picode & 0xff; in vivid_rds_generate()
72 data[3].lsb = rds->psname[2 * idx + 1]; in vivid_rds_generate()
78 data[1].lsb |= idx; in vivid_rds_generate()
81 data[2].lsb = rds->radiotext[4 * idx + 1]; in vivid_rds_generate()
84 data[3].lsb = rds->radiotext[4 * idx + 3]; in vivid_rds_generate()
102 data[1].lsb &= ~3; in vivid_rds_generate()
[all …]
/linux-6.12.1/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 ")")
55 define(reg "_" field "_SHIFT", lsb)
56 define(reg "_" field "_WIDTH", msb - lsb + 1)
69 lsb = bitdef
72 lsb = _bits[2]
82 if (63 < lsb || lsb < 0)
84 if (msb < lsb)
89 next_bit = lsb - 1
[all …]
/linux-6.12.1/drivers/dma/dw-edma/
Ddw-edma-v0-regs.h34 u32 lsb; /* 0x000c */ member
41 u32 lsb; /* 0x0014 */ member
48 u32 lsb; /* 0x001c */ member
68 u32 lsb; /* 0x0108 */ member
76 u32 lsb; /* 0x0120 */ member
118 u32 lsb; /* 0x0018 */ member
129 u32 lsb; /* 0x0038 */ member
143 u32 lsb; /* 0x0060 */ member
150 u32 lsb; /* 0x0068 */ member
169 u32 lsb; /* 0x00b4 */ member
[all …]
Ddw-hdma-v0-regs.h35 u32 lsb; /* 0x0010 */ member
44 u32 lsb; /* 0x0020 */ member
51 u32 lsb; /* 0x0028 */ member
67 u32 lsb; /* 0x0090 */ member
74 u32 lsb; /* 0x0098 */ member
81 u32 lsb; /* 0x00a0 */ member
104 u32 lsb; member
111 u32 lsb; member
123 u32 lsb; member
Ddw-edma-v0-debugfs.c126 CTX_REGISTER(dw, sar.lsb, dir, ch), in dw_edma_debugfs_regs_ch()
128 CTX_REGISTER(dw, dar.lsb, dir, ch), in dw_edma_debugfs_regs_ch()
130 CTX_REGISTER(dw, llp.lsb, dir, ch), in dw_edma_debugfs_regs_ch()
146 WR_REGISTER(dw, ch_arb_weight.lsb), in dw_edma_debugfs_regs_wr()
153 WR_REGISTER(dw, done_imwr.lsb), in dw_edma_debugfs_regs_wr()
155 WR_REGISTER(dw, abort_imwr.lsb), in dw_edma_debugfs_regs_wr()
166 WR_REGISTER_UNROLL(dw, engine_hshake_cnt.lsb), in dw_edma_debugfs_regs_wr()
208 RD_REGISTER(dw, ch_arb_weight.lsb), in dw_edma_debugfs_regs_rd()
214 RD_REGISTER(dw, err_status.lsb), in dw_edma_debugfs_regs_rd()
217 RD_REGISTER(dw, done_imwr.lsb), in dw_edma_debugfs_regs_rd()
[all …]
Ddw-hdma-v0-debugfs.c87 CTX_REGISTER(dw, llp.lsb, dir, ch), in dw_hdma_debugfs_regs_ch()
91 CTX_REGISTER(dw, sar.lsb, dir, ch), in dw_hdma_debugfs_regs_ch()
93 CTX_REGISTER(dw, dar.lsb, dir, ch), in dw_hdma_debugfs_regs_ch()
103 CTX_REGISTER(dw, msi_stop.lsb, dir, ch), in dw_hdma_debugfs_regs_ch()
105 CTX_REGISTER(dw, msi_watermark.lsb, dir, ch), in dw_hdma_debugfs_regs_ch()
107 CTX_REGISTER(dw, msi_abort.lsb, dir, ch), in dw_hdma_debugfs_regs_ch()
/linux-6.12.1/tools/testing/selftests/drivers/net/netdevsim/
Dfib.sh107 local lsb
117 for lsb in $(seq 1 20); do
118 ip -n testns1 route add 192.0.2.${lsb}/32 dev dummy1 \
129 local lsb
139 for lsb in $(seq 1 20); do
140 ip -n testns1 route add 192.0.2.${lsb}/32 dev dummy1
246 local lsb
256 for lsb in $(seq 1 20); do
257 ip -n testns1 route add 2001:db8:1::${lsb}/128 dev dummy1 \
268 local lsb
[all …]
/linux-6.12.1/drivers/watchdog/
Dpcwd_usb.c208 unsigned char cmd, unsigned char *msb, unsigned char *lsb) in usb_pcwd_send_command() argument
226 buf[2] = *lsb; /* Byte 2 = Data LSB */ in usb_pcwd_send_command()
241 cmd, *msb, *lsb); in usb_pcwd_send_command()
256 *lsb = usb_pcwd->cmd_data_lsb; in usb_pcwd_send_command()
267 unsigned char lsb = 0x00; in usb_pcwd_start() local
272 &msb, &lsb); in usb_pcwd_start()
274 if ((retval == 0) || (lsb == 0)) { in usb_pcwd_start()
285 unsigned char lsb = 0xC3; in usb_pcwd_stop() local
290 &msb, &lsb); in usb_pcwd_stop()
292 if ((retval == 0) || (lsb != 0)) { in usb_pcwd_stop()
[all …]
/linux-6.12.1/drivers/iio/proximity/
Disl29501.c135 u8 lsb; member
141 .lsb = ISL29501_DISTANCE_LSB_DATA,
145 .lsb = ISL29501_PHASE_LSB,
148 .lsb = ISL29501_DIE_TEMPERATURE,
151 .lsb = ISL29501_AMBIENT_LIGHT,
155 .lsb = ISL29501_GAIN_LSB,
159 .lsb = ISL29501_CROSSTALK_GAIN_LSB,
162 .lsb = ISL29501_PHASE_EXPONENT,
165 .lsb = ISL29501_TEMP_COEFF_A,
168 .lsb = ISL29501_TEMP_COEFF_B,
[all …]
/linux-6.12.1/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.12.1/drivers/gpu/drm/nouveau/nvkm/subdev/acr/
Dga102.c31 struct lsb_header_v2 *lsb; in ga102_acr_wpr_patch() local
35 lsb = kvmalloc(sizeof(*lsb), GFP_KERNEL); in ga102_acr_wpr_patch()
36 if (!lsb) in ga102_acr_wpr_patch()
47 nvkm_robj(acr->wpr, hdr.wpr.lsb_offset, lsb, sizeof(*lsb)); in ga102_acr_wpr_patch()
48 lsb_header_v2_dump(&acr->subdev, lsb); in ga102_acr_wpr_patch()
50 lsfw->func->bld_patch(acr, lsb->bl_data_off, adjust); in ga102_acr_wpr_patch()
57 kvfree(lsb); in ga102_acr_wpr_patch()
127 nvkm_wobj(acr->wpr, lsfw->offset.lsb, hdr, sizeof(*hdr)); in ga102_acr_wpr_build_lsb()
155 hdr.wpr.lsb_offset = lsfw->offset.lsb; in ga102_acr_wpr_build()
201 lsfw->offset.lsb = wpr; in ga102_acr_wpr_layout()
Dgp102.c36 struct lsb_header_v1 lsb; in gp102_acr_wpr_patch() local
48 nvkm_robj(acr->wpr, hdr.lsb_offset, &lsb, sizeof(lsb)); in gp102_acr_wpr_patch()
49 lsb_header_v1_dump(&acr->subdev, &lsb); in gp102_acr_wpr_patch()
51 lsfw->func->bld_patch(acr, lsb.tail.bl_data_off, adjust); in gp102_acr_wpr_patch()
72 nvkm_wobj(acr->wpr, lsfw->offset.lsb, &hdr, sizeof(hdr)); in gp102_acr_wpr_build_lsb()
88 .lsb_offset = lsfw->offset.lsb, in gp102_acr_wpr_build()
146 lsfw->offset.lsb = wpr; in gp102_acr_wpr_layout()
Dgm200.c69 struct lsb_header lsb; in gm200_acr_wpr_patch() local
81 nvkm_robj(acr->wpr, hdr.lsb_offset, &lsb, sizeof(lsb)); in gm200_acr_wpr_patch()
82 lsb_header_dump(subdev, &lsb); in gm200_acr_wpr_patch()
84 lsfw->func->bld_patch(acr, lsb.tail.bl_data_off, adjust); in gm200_acr_wpr_patch()
124 nvkm_wobj(acr->wpr, lsfw->offset.lsb, &hdr, sizeof(hdr)); in gm200_acr_wpr_build_lsb()
139 .lsb_offset = lsfw->offset.lsb, in gm200_acr_wpr_build()
192 lsfw->offset.lsb = wpr; in gm200_acr_wpr_layout()
/linux-6.12.1/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()
149 int lsb = start; in syscall_str() local
155 if (lsb < 0) in syscall_str()
156 lsb |= X32_BIT; in syscall_str()
158 lsb &= ~X32_BIT; in syscall_str()
162 type, msb, lsb); in syscall_str()
165 type, msb, lsb, lsb + (end-start)); in syscall_str()
/linux-6.12.1/drivers/comedi/drivers/
Ddas08.c176 int lsb, msb; in das08_ai_insn_read() local
214 lsb = inb(dev->iobase + DAS08_AI_LSB_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()
305 unsigned char lsb; in das08_ao_set_data() local
308 lsb = data & 0xff; in das08_ao_set_data()
311 outb(lsb, dev->iobase + DAS08JR_AO_LSB_REG(chan)); in das08_ao_set_data()
316 outb(lsb, dev->iobase + DAS08AOX_AO_LSB_REG(chan)); in das08_ao_set_data()
/linux-6.12.1/drivers/net/wireless/ath/ath10k/
Dhw.c217 .lsb = 0x00000010,
223 .lsb = 0x00000012,
229 .lsb = 0x00000000,
271 .lsb = 0x00000010,
277 .lsb = 0x00000000,
290 .lsb = 0x00000010,
296 .lsb = 0x00000000,
349 .lsb = 0x00000010,
355 .lsb = 0x00000011,
361 .lsb = 0x00000000,
[all …]
/linux-6.12.1/arch/sparc/lib/
Dudivdi3.S24 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
31 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
40 addcc %o1,%o1,%o1 ! shift n1n0 and a 0-bit in lsb
62 addxcc %o2,%o2,%o2 ! shift n1n0 and a q-bit in lsb
69 addxcc %o2,%o2,%o2 ! shift n1n0 and a q-bit in lsb
78 addcc %o2,%o2,%o2 ! shift n1n0 and a 0-bit in lsb
88 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
95 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
104 addcc %o1,%o1,%o1 ! shift n1n0 and a 0-bit in lsb
167 addxcc %o5,%o5,%o5 ! shift n1n0 and a q-bit in lsb
[all …]
Ddivdi3.S48 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
55 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
64 addcc %o1,%o1,%o1 ! shift n1n0 and a 0-bit in lsb
84 addxcc %o2,%o2,%o2 ! shift n1n0 and a q-bit in lsb
91 addxcc %o2,%o2,%o2 ! shift n1n0 and a q-bit in lsb
100 addcc %o2,%o2,%o2 ! shift n1n0 and a 0-bit in lsb
108 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
115 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
124 addcc %o1,%o1,%o1 ! shift n1n0 and a 0-bit in lsb
183 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
[all …]
/linux-6.12.1/drivers/mfd/
Datmel-smc.c51 unsigned int msb, lsb; in atmel_smc_cs_encode_ncycles() local
55 lsb = ncycles % msbfactor; in atmel_smc_cs_encode_ncycles()
57 if (lsb > lsbmask) { in atmel_smc_cs_encode_ncycles()
58 lsb = 0; in atmel_smc_cs_encode_ncycles()
69 lsb = lsbmask; in atmel_smc_cs_encode_ncycles()
73 *encodedval = (msb << msbpos) | lsb; in atmel_smc_cs_encode_ncycles()
/linux-6.12.1/drivers/platform/arm64/
Dlenovo-yoga-c630.c76 u8 lsb; in yoga_c630_ec_read16() local
85 ret = yoga_c630_ec_request(ec, req, sizeof(req), &lsb, 1); in yoga_c630_ec_read16()
94 return msb << 8 | lsb; in yoga_c630_ec_read16()
103 u8 lsb; in yoga_c630_ec_ucsi_get_version() local
108 ret = yoga_c630_ec_request(ec, req, sizeof(req), &lsb, 1); in yoga_c630_ec_ucsi_get_version()
117 return msb << 8 | lsb; in yoga_c630_ec_ucsi_get_version()
/linux-6.12.1/drivers/hwmon/
Dlenovo-ec-sensors.c186 u8 lsb; in lenovo_ec_do_read_temp() local
191 lsb = get_ec_reg(2, 0x81 + channel); in lenovo_ec_do_read_temp()
193 if (lsb <= 0x40) in lenovo_ec_do_read_temp()
195 *val = (lsb - 0x40) * 1000; in lenovo_ec_do_read_temp()
205 u8 lsb, msb; in lenovo_ec_do_read_fan() local
211 lsb = get_ec_reg(4, 0x20 + channel); in lenovo_ec_do_read_fan()
214 *val = (msb << 8) + lsb; in lenovo_ec_do_read_fan()
218 lsb = get_ec_reg(4, 0x40 + channel); in lenovo_ec_do_read_fan()
221 *val = (msb << 8) + lsb; in lenovo_ec_do_read_fan()
Dmax1111.c46 int lsb; member
120 return sprintf(buf, "%d\n", ret * data->lsb); in show_adc()
201 data->lsb = 8; in max1111_probe()
205 data->lsb = 8; in max1111_probe()
209 data->lsb = 16; in max1111_probe()
213 data->lsb = 16; in max1111_probe()
/linux-6.12.1/arch/x86/kernel/cpu/mce/
Dinternal.h277 u8 lsb; in smca_extract_err_addr() local
283 lsb = (m->status >> 24) & 0x3f; in smca_extract_err_addr()
285 m->addr &= GENMASK_ULL(56, lsb); in smca_extract_err_addr()
290 lsb = (m->addr >> 56) & 0x3f; in smca_extract_err_addr()
292 m->addr &= GENMASK_ULL(55, lsb); in smca_extract_err_addr()
/linux-6.12.1/drivers/media/usb/as102/
Das102_fw.c26 char lsb = tolower(*(src + 1)) - '0'; in atohx() local
30 if (lsb > 9) in atohx()
31 lsb -= 7; in atohx()
33 *dst = value = ((msb & 0xF) << 4) | (lsb & 0xF); in atohx()
/linux-6.12.1/drivers/iio/adc/
Dqcom-spmi-rradc.c231 u8 lsb; member
555 ret = rradc_read(chip, chan->lsb, buf, chan->size); in rradc_do_conversion()
785 .lsb = RR_ADC_BATT_ID_5_LSB,
792 .lsb = RR_ADC_BATT_THERM_LSB,
798 .lsb = RR_ADC_SKIN_TEMP_LSB,
804 .lsb = RR_ADC_USB_IN_I_LSB,
810 .lsb = RR_ADC_USB_IN_V_LSB,
817 .lsb = RR_ADC_DC_IN_I_LSB,
823 .lsb = RR_ADC_DC_IN_V_LSB,
829 .lsb = RR_ADC_PMI_DIE_TEMP_LSB,
[all …]

12345678