/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/i2c/ |
D | vs6624_regs.h | 15 #define VS6624_DEV_ID_MSB 0x0001 /* device id MSB */ 32 #define VS6624_MAN_HSIZE0_MSB 0x0383 /* input required manual H size MSB */ 34 #define VS6624_MAN_VSIZE0_MSB 0x0387 /* input required manual V size MSB */ 36 #define VS6624_ZOOM_HSTEP0_MSB 0x038B /* set the zoom H step MSB */ 38 #define VS6624_ZOOM_VSTEP0_MSB 0x038F /* set the zoom V step MSB */ 41 #define VS6624_PAN_HSTEP0_MSB 0x0395 /* set the pan H step MSB */ 43 #define VS6624_PAN_VSTEP0_MSB 0x0399 /* set the pan V step MSB */ 47 #define VS6624_CROP_HSTART0_MSB 0x03A1 /* set the cropping H start address MSB */ 49 #define VS6624_CROP_HSIZE0_MSB 0x03A5 /* set the cropping H size MSB */ 51 #define VS6624_CROP_VSTART0_MSB 0x03A9 /* set the cropping V start address MSB */ [all …]
|
/kernel/linux/linux-5.10/arch/ia64/include/asm/ |
D | elf.h | 53 #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 …]
|
/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 207 /* Read LSB first, this will cause the matching MSB to be latched */ in sch56xx_read_virtual_reg16() 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 225 /* Read MSB first, this will cause the matching LSN to be latched */ in sch56xx_read_virtual_reg12() 226 msb = sch56xx_read_virtual_reg(addr, msb_reg); in sch56xx_read_virtual_reg12() 227 if (msb < 0) in sch56xx_read_virtual_reg12() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | count_zeros.h | 14 * 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.
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/ |
D | fb_decoder.c | 50 {DRM_FORMAT_RGB565, 16, "16-bit BGRX (5:6:5 MSB-R:G:B)"}, 51 {DRM_FORMAT_XRGB8888, 32, "32-bit BGRX (8:8:8:8 MSB-X:R:G:B)"}, 52 {DRM_FORMAT_XBGR2101010, 32, "32-bit RGBX (2:10:10:10 MSB-X:B:G:R)"}, 54 {DRM_FORMAT_XRGB2101010, 32, "32-bit BGRX (2:10:10:10 MSB-X:R:G:B)"}, 55 {DRM_FORMAT_XBGR8888, 32, "32-bit RGBX (8:8:8:8 MSB-X:B:G:R)"}, 62 {DRM_FORMAT_YUYV, 16, "16-bit packed YUYV (8:8:8:8 MSB-V:Y2:U:Y1)"}, 63 {DRM_FORMAT_UYVY, 16, "16-bit packed UYVY (8:8:8:8 MSB-Y2:V:Y1:U)"}, 64 {DRM_FORMAT_YVYU, 16, "16-bit packed YVYU (8:8:8:8 MSB-U:Y2:V:Y1)"}, 65 {DRM_FORMAT_VYUY, 16, "16-bit packed VYUY (8:8:8:8 MSB-Y2:U:Y1:V)"}, 68 {DRM_FORMAT_RGB565, 16, "16-bit BGRX (5:6:5 MSB-R:G:B)"}, [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/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 | 24 * das08_encode12 : DATA[11..4] = MSB[7..0], DATA[3..0] = LSB[7..4]. 25 * das08_pcm_encode12 : DATA[11..8] = MSB[3..0], DATA[7..9] = LSB[7..0]. 26 * das08_encode16 : SIGN = MSB[7], MAGNITUDE[14..8] = MSB[6..0], 30 * complete, MSB[7] is an "over-range" bit. 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() 235 * MSB bit 7 is 0 for negative, 1 for positive voltage. in das08_ai_insn_read() [all …]
|
/kernel/linux/linux-5.10/Documentation/sound/soc/ |
D | dai.rst | 38 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.
|
/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()
|
D | ds2780_battery.c | 162 * The voltage value is located in 10 bits across the voltage MSB in ds2780_get_voltage() 164 * Sign bit of the voltage value is in bit 7 of the voltage MSB register in ds2780_get_voltage() 166 * voltage MSB register in ds2780_get_voltage() 191 * MSB and LSB registers in two's complement form in ds2780_get_temperature() 193 * MSB register in ds2780_get_temperature() 195 * temperature MSB register in ds2780_get_temperature() 243 * The current value is located in 16 bits across the current MSB in ds2780_get_current() 245 * Sign bit of the current value is in bit 7 of the current MSB register in ds2780_get_current() 247 * MSB register in ds2780_get_current() 281 * The ACR value is located in 16 bits across the ACR MSB and in ds2780_get_accumulated_current() [all …]
|
D | ds2781_battery.c | 170 * The voltage value is located in 10 bits across the voltage MSB in ds2781_get_voltage() 172 * Sign bit of the voltage value is in bit 7 of the voltage MSB register in ds2781_get_voltage() 174 * voltage MSB register in ds2781_get_voltage() 200 * MSB and LSB registers in two's complement form in ds2781_get_temperature() 202 * MSB register in ds2781_get_temperature() 204 * temperature MSB register in ds2781_get_temperature() 244 * The current value is located in 16 bits across the current MSB in ds2781_get_current() 246 * Sign bit of the current value is in bit 7 of the current MSB register in ds2781_get_current() 248 * MSB register in ds2781_get_current() 282 * The ACR value is located in 16 bits across the ACR MSB and in ds2781_get_accumulated_current() [all …]
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
D | pcwd_usb.c | 134 /* 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 …]
|
/kernel/linux/linux-5.10/arch/sh/boards/mach-microdev/ |
D | fdc37c93xapm.c | 58 #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()
|
/kernel/linux/linux-5.10/arch/parisc/math-emu/ |
D | fcnvuf.c | 73 /* 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()
|
D | fcnvxf.c | 81 /* 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()
|
/kernel/linux/linux-5.10/drivers/media/dvb-core/ |
D | dvb_math.c | 65 unsigned int msb; in intlog2() local 75 /* first detect the msb (count begins at 0) */ in intlog2() 76 msb = fls(value) - 1; in intlog2() 82 * where x = msb and therefore 1 <= y < 2 in intlog2() 84 * so that msb is bit 31 in intlog2() 92 significand = value << (31 - msb); in intlog2() 115 return ((msb << 24) + (logtable[logentry] << 8) + interpolation); in intlog2()
|
/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/scsi/qla2xxx/ |
D | qla_def.h | 115 #define MSB(x) ((uint8_t)((uint16_t)(x) >> 8)) macro 1437 * MSB BIT 0 = Enable PDBC Notify 1438 * MSB BIT 1 = Non Participating LIP 1439 * MSB BIT 2 = Descending Loop ID Search 1440 * MSB BIT 3 = Acquire Loop ID in LIPA 1441 * MSB BIT 4 = Stop PortQ on Full Status 1442 * MSB BIT 5 = Full Login after LIP 1443 * MSB BIT 6 = Node Name Option 1444 * MSB BIT 7 = Ext IFWCB enable bit 1482 * MSB BIT 0 = Enable class 2 [all …]
|
/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 | 30 * @msbpos: position of the MSB part of the timing field 31 * @msbwidth: width of the MSB part of the timing field 32 * @msbfactor: factor applied to the MSB 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()
|