/linux-6.12.1/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 | 182 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-6.12.1/tools/testing/selftests/x86/ |
D | syscall_numbering.c | 115 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.12.1/arch/arm64/tools/ |
D | gen-sysreg.awk | 52 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-6.12.1/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 | 211 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 …]
|
D | tmp401.c | 129 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-6.12.1/drivers/dma/dw-edma/ |
D | dw-edma-v0-regs.h | 35 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 …]
|
D | dw-hdma-v0-regs.h | 36 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
|
D | dw-edma-v0-debugfs.c | 127 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 …]
|
D | dw-hdma-v0-debugfs.c | 88 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-6.12.1/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 …]
|
/linux-6.12.1/drivers/gpu/drm/i915/gvt/ |
D | fb_decoder.c | 57 {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-6.12.1/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.
|
/linux-6.12.1/arch/m68k/hp300/ |
D | time.c | 80 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-6.12.1/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 = (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-6.12.1/drivers/comedi/drivers/ |
D | das08.c | 23 * 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-6.12.1/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 …]
|
/linux-6.12.1/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.
|
/linux-6.12.1/drivers/power/supply/ |
D | rt5033_battery.c | 40 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-6.12.1/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()
|
/linux-6.12.1/lib/math/ |
D | int_log.c | 57 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-6.12.1/drivers/scsi/qla2xxx/ |
D | qla_def.h | 141 #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-6.12.1/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
|
/linux-6.12.1/drivers/net/wireless/ath/ath10k/ |
D | hw.c | 216 .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 …]
|