/linux-6.14.4/drivers/memstick/core/ |
D | ms_block.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ms_block.c - Sony MemoryStick (legacy) storage support 14 #include <linux/blk-mq.h> 42 if (offset >= sg_from->length) { in msb_sg_copy() 46 offset -= sg_from->length; in msb_sg_copy() 51 copied = min(len, sg_from->length - offset); in msb_sg_copy() 53 copied, sg_from->offset + offset); in msb_sg_copy() 55 len -= copied; in msb_sg_copy() 62 to_nents--; in msb_sg_copy() 66 while (len > sg_from->length && to_nents--) { in msb_sg_copy() [all …]
|
D | mspro_block.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/blk-mq.h> 27 #define MSPRO_BLOCK_MAX_PAGES ((2 << 16) - 1) 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() 257 for (cnt = 0; cnt < s_attr->size; cnt++) { in mspro_block_attr_show_default() [all …]
|
/linux-6.14.4/tools/testing/selftests/x86/ |
D | syscall_numbering.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * syscall_numbering.c - test calling the x86-64 kernel with various 33 /* x64-only system call numbers */ 37 /* x32-only system call numbers (without X32_BIT) */ 44 static int nullfd = -1; /* File descriptor for /dev/null */ 64 [PTP_INTNUM] = "sign-extending the syscall number", 80 unsigned int level = sh ? sh->indent : 0; in offset() 85 #define msg(lvl, fmt, ...) printf("%-*s" fmt, offset(), "[" #lvl "]", \ 95 sh->nerr++; \ 100 sh->indent = 0; \ [all …]
|
/linux-6.14.4/arch/arm64/tools/ |
D | gen-sysreg.awk | 1 #!/bin/awk -f 2 # SPDX-License-Identifier: GPL-2.0 3 # gen-sysreg.awk: arm64 sysreg header generator 5 # Usage: awk -f gen-sysreg.awk sysregs.txt 35 __current_block_depth--; 48 printf "%-56s%s\n", "#define " name, val 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) [all …]
|
/linux-6.14.4/drivers/hwmon/ |
D | asc7621.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * asc7621.c - Part of lm_sensors, Linux kernel modules for hardware monitoring 13 #include <linux/hwmon-sysfs.h> 107 u8 msb[3]; member 125 dev_err(&client->dev, in read_byte() 136 dev_err(&client->dev, in write_byte() 169 return sprintf(buf, "%u\n", data->reg[param->msb[0]]); in show_u8() 179 return -EINVAL; in store_u8() 183 mutex_lock(&data->update_lock); in store_u8() 184 data->reg[param->msb[0]] = reqval; in store_u8() [all …]
|
D | sch56xx-common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2010-2012 Hans de Goede <[email protected]> * 21 #include "sch56xx-common.h" 30 #define SIO_UNLOCK_KEY 0x55 /* Key to enable Super-I/O */ 31 #define SIO_LOCK_KEY 0xAA /* Key to disable Super-I/O */ 82 return -EBUSY; in superio_enter() 109 * responds within 15-32 reads, so we first busy poll, and if in sch56xx_send_cmd() 116 /* (Optional) Write-Clear the EC to Host Mailbox Register */ in sch56xx_send_cmd() 126 outb(0x01, addr + 5); /* # of Entries: 1 Byte (8-bit) */ in sch56xx_send_cmd() 138 outb(0x01, addr); /* Write 01h to the Host-to-EC register */ in sch56xx_send_cmd() [all …]
|
D | tmp401.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 * Copyright (c) 2013 Guenter Roeck <linux@roeck-us.net> 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() 146 struct i2c_client *client = data->client; in tmp401_reg_read() 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() [all …]
|
/linux-6.14.4/drivers/dma/dw-edma/ |
D | dw-edma-v0-regs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2018-2019 Synopsys, Inc. and/or its affiliates. 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 [all …]
|
D | dw-hdma-v0-regs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 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 | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2018-2019 Synopsys, Inc. and/or its affiliates. 12 #include "dw-edma-v0-debugfs.h" 13 #include "dw-edma-v0-regs.h" 14 #include "dw-edma-core.h" 18 struct dw_edma_v0_regs __iomem *__regs = (dw)->chip->reg_base; \ 20 (void __iomem *)&__regs->name; \ 27 if ((dw)->chip->mf == EDMA_MF_EDMA_LEGACY) \ 34 (void __iomem *)&__ch_regs->name; \ 74 struct dw_edma *dw = entry->dw; in dw_edma_debugfs_u32_get() [all …]
|
D | dw-hdma-v0-debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include "dw-hdma-v0-debugfs.h" 13 #include "dw-hdma-v0-regs.h" 14 #include "dw-edma-core.h" 18 struct dw_hdma_v0_regs __iomem *__regs = (dw)->chip->reg_base; \ 20 (void __iomem *)&__regs->name; \ 32 (void __iomem *)&__ch_regs->name; \ 51 void __iomem *reg = entry->reg; in dw_hdma_debugfs_u32_get() 66 entries = devm_kcalloc(dw->chip->dev, nr_entries, sizeof(*entries), in dw_hdma_debugfs_create_x32() 88 CTX_REGISTER(dw, llp.msb, dir, ch), in dw_hdma_debugfs_regs_ch() [all …]
|
/linux-6.14.4/drivers/media/test-drivers/vivid/ |
D | vivid-rds-gen.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * vivid-rds-gen.c - rds (radio data system) generator support functions. 13 #include "vivid-rds-gen.h" 19 return (rds->dyn_pty << 2) | (grp & 3); in vivid_get_di() 21 return (rds->compressed << 2) | (grp & 3); in vivid_get_di() 23 return (rds->art_head << 2) | (grp & 3); in vivid_get_di() 25 return (rds->mono_stereo << 2) | (grp & 3); in vivid_get_di() 32 * Groups 0-3, 22-25 and 44-47 (spaced 22 groups apart) are filled with a 35 * Groups 4-19 and 26-41 use group 2A for the radio text. 44 struct v4l2_rds_data *data = rds->data; in vivid_rds_generate() [all …]
|
/linux-6.14.4/drivers/s390/block/ |
D | scm_blk.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/blk-mq.h> 46 free_page((unsigned long) scmrq->aob); in __scm_free_rq() 47 kfree(scmrq->request); in __scm_free_rq() 59 list_del(&scmrq->list); in scm_free_rqs() 74 return -ENOMEM; in __scm_alloc_rq() 76 scmrq = (void *) aobrq->data; in __scm_alloc_rq() 77 scmrq->aob = (void *) get_zeroed_page(GFP_DMA); in __scm_alloc_rq() 78 if (!scmrq->aob) in __scm_alloc_rq() 81 scmrq->request = kcalloc(nr_requests_per_io, sizeof(scmrq->request[0]), in __scm_alloc_rq() [all …]
|
/linux-6.14.4/drivers/gpu/drm/i915/gvt/ |
D | fb_decoder.c | 2 * Copyright(c) 2011-2016 Intel Corporation. All rights reserved. 56 {DRM_FORMAT_C8, 8, "8-bit Indexed"}, 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)"}, 64 /* non-supported format has bpp default to 0 */ 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)"}, [all …]
|
/linux-6.14.4/include/linux/ |
D | count_zeros.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 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. 20 * If only the LSB of @x is set, then the result is BITS_PER_LONG-1. 26 return BITS_PER_LONG - fls(x); in count_leading_zeros() 28 return BITS_PER_LONG - fls64(x); in count_leading_zeros() 34 * count_trailing_zeros - Count the number of zeros from the LSB forwards 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. [all …]
|
/linux-6.14.4/drivers/comedi/drivers/ |
D | das08.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * COMEDI - Linux Control and Measurement Device Interface 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. 161 status = inb(dev->iobase + DAS08_STATUS_REG); in das08_ai_eoc() 164 return -EBUSY; in das08_ai_eoc() 171 const struct das08_board_struct *board = dev->board_ptr; in das08_ai_insn_read() 172 struct das08_private_struct *devpriv = dev->private; in das08_ai_insn_read() [all …]
|
/linux-6.14.4/arch/m68k/hp300/ |
D | time.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * This file contains the HP300-specific time handling code. 56 #define INTVAL (HP300_TIMER_CYCLES - 1) 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.14.4/drivers/watchdog/ |
D | pcwd_usb.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Berkshire USB-PC Watchdog Card Driver 5 * (c) Copyright 2004-2007 Wim Van Sebroeck <[email protected]>. 12 * Greg Kroah-Hartman <[email protected]> 16 * provided "AS-IS" and at no charge. 28 #include <linux/errno.h> /* For the -ENODEV/... values */ 47 #define DRIVER_DESC "Berkshire USB-PC Watchdog driver" 55 delay-time from dip-switches */ 59 "(0<heartbeat<65536 or 0=delay-time from dip-switches, default=" 67 /* The vendor and product id's for the USB-PC Watchdog card */ [all …]
|
/linux-6.14.4/Documentation/sound/soc/ |
D | dai.rst | 35 I2S has several different operating modes:- 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. 58 Common PCM operating modes:- 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.14.4/drivers/power/supply/ |
D | rt5033_battery.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/mfd/rt5033-private.h> 28 ret = power_supply_get_property_from_supplier(battery->psy, in rt5033_battery_get_status() 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() 52 regmap_read(battery->regmap, RT5033_FUEL_REG_CONFIG_L, &val); in rt5033_battery_get_present() 63 u32 msb, lsb; in rt5033_battery_get_watt_prop() local 79 return -EINVAL; in rt5033_battery_get_watt_prop() 82 regmap_read(battery->regmap, regh, &msb); in rt5033_battery_get_watt_prop() [all …]
|
/linux-6.14.4/arch/parisc/math-emu/ |
D | fcnvuf.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 5 * Floating-point emulation code 6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <[email protected]> 15 * Fixed point to Floating-point Converts 38 * Fixed point to Floating-point Converts * 42 * Convert Single Unsigned Fixed to Single Floating-point format 70 * between -1 and 30. in sgl_to_sgl_fcnvuf() 73 /* left justify source, with msb at bit position 0 */ in sgl_to_sgl_fcnvuf() 76 Sgl_set_exponent(result, 30+SGL_BIAS - dst_exponent); in sgl_to_sgl_fcnvuf() [all …]
|
/linux-6.14.4/drivers/scsi/qla2xxx/ |
D | qla_def.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright (c) 2003-2014 QLogic Corporation 15 #include <linux/dma-mapping.h> 141 #define MSB(x) ((uint8_t)((uint16_t)(x) >> 8)) macro 234 /* 83XX: Macros defining 8200 AEN Error-levels */ 248 /* 83XX: Macros for defining IDC-Control bits */ 257 /* 83XX: Macros for defining class in DEV-Partition Info register */ 263 /* 83XX: Macros for IDC Lock-Recovery stages */ 265 * lock-recovery 267 #define IDC_LOCK_RECOVERY_STAGE2 0x2 /* Stage2: Perform lock-recovery */ [all …]
|
/linux-6.14.4/lib/math/ |
D | int_log.c | 1 // SPDX-License-Identifier: LGPL-2.1-or-later 3 * Provides fixed-point logarithm operations. 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() 77 * 0x00231f56 -> 0x8C7D5800 in intlog2() 78 * the result is y * 2^31 -> "significand" in intlog2() 84 significand = value << (31 - msb); in intlog2() [all …]
|
/linux-6.14.4/arch/sparc/lib/ |
D | udivdi3.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 12 save %sp,-104,%sp 24 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb 25 sub %i0,%o3,%i0 ! this kills msb of n 31 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb 33 sub %i0,%o3,%i0 ! this kills msb of n 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 63 sub %o4,%o3,%o4 ! this kills msb of n 69 addxcc %o2,%o2,%o2 ! shift n1n0 and a q-bit in lsb [all …]
|
/linux-6.14.4/drivers/net/wireless/ath/ath10k/ |
D | hw.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2014-2017 Qualcomm Atheros, Inc. 13 #include "wmi-ops.h" 216 .msb = 0x00000010, 222 .msb = 0x00000012, 228 .msb = 0x00000000, 270 .msb = 0x00000000, 276 .msb = 0x0000000f, 295 .msb = 0x0000000f, 348 .msb = 0x00000010, [all …]
|