/kernel/linux/linux-5.10/drivers/edac/ |
D | amd8131_edac.c | 27 static void edac_pci_read_dword(struct pci_dev *dev, int reg, u32 *val32) in edac_pci_read_dword() argument 31 ret = pci_read_config_dword(dev, reg, val32); in edac_pci_read_dword() 37 static void edac_pci_write_dword(struct pci_dev *dev, int reg, u32 val32) in edac_pci_write_dword() argument 41 ret = pci_write_config_dword(dev, reg, val32); in edac_pci_write_dword() 74 u32 val32; in amd8131_pcix_init() local 78 edac_pci_read_dword(dev, REG_MEM_LIM, &val32); in amd8131_pcix_init() 79 if (val32 & MEM_LIMIT_MASK) in amd8131_pcix_init() 80 edac_pci_write_dword(dev, REG_MEM_LIM, val32); in amd8131_pcix_init() 83 edac_pci_read_dword(dev, REG_INT_CTLR, &val32); in amd8131_pcix_init() 84 if (val32 & INT_CTLR_DTS) in amd8131_pcix_init() [all …]
|
D | amd8111_edac.c | 37 static int edac_pci_read_dword(struct pci_dev *dev, int reg, u32 *val32) in edac_pci_read_dword() argument 41 ret = pci_read_config_dword(dev, reg, val32); in edac_pci_read_dword() 59 static void edac_pci_write_dword(struct pci_dev *dev, int reg, u32 val32) in edac_pci_write_dword() argument 63 ret = pci_write_config_dword(dev, reg, val32); in edac_pci_write_dword() 87 u32 val32; in amd8111_pci_bridge_init() local 93 edac_pci_read_dword(dev, REG_PCI_STSCMD, &val32); in amd8111_pci_bridge_init() 94 if (val32 & PCI_STSCMD_CLEAR_MASK) in amd8111_pci_bridge_init() 95 edac_pci_write_dword(dev, REG_PCI_STSCMD, val32); in amd8111_pci_bridge_init() 98 edac_pci_read_dword(dev, REG_HT_LINK, &val32); in amd8111_pci_bridge_init() 99 if (val32 & HT_LINK_CLEAR_MASK) in amd8111_pci_bridge_init() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtl8xxxu/ |
D | rtl8xxxu_8723b.c | 360 u32 val32, ofdm, mcs; in rtl8723b_set_tx_power() local 368 val32 = rtl8xxxu_read32(priv, REG_TX_AGC_A_CCK1_MCS32); in rtl8723b_set_tx_power() 369 val32 &= 0xffff00ff; in rtl8723b_set_tx_power() 370 val32 |= (cck << 8); in rtl8723b_set_tx_power() 371 rtl8xxxu_write32(priv, REG_TX_AGC_A_CCK1_MCS32, val32); in rtl8723b_set_tx_power() 373 val32 = rtl8xxxu_read32(priv, REG_TX_AGC_B_CCK11_A_CCK2_11); in rtl8723b_set_tx_power() 374 val32 &= 0xff; in rtl8723b_set_tx_power() 375 val32 |= ((cck << 8) | (cck << 16) | (cck << 24)); in rtl8723b_set_tx_power() 376 rtl8xxxu_write32(priv, REG_TX_AGC_B_CCK11_A_CCK2_11, val32); in rtl8723b_set_tx_power() 523 u32 val32; in rtl8723bu_phy_init_antenna_selection() local [all …]
|
D | rtl8xxxu_core.c | 698 addr, 0, &priv->usb_buf.val32, sizeof(u32), in rtl8xxxu_read32() 700 data = le32_to_cpu(priv->usb_buf.val32); in rtl8xxxu_read32() 754 priv->usb_buf.val32 = cpu_to_le32(val); in rtl8xxxu_write32() 757 addr, 0, &priv->usb_buf.val32, sizeof(u32), in rtl8xxxu_write32() 810 u32 hssia, val32, retval; in rtl8xxxu_read_rfreg() local 814 val32 = rtl8xxxu_read32(priv, rtl8xxxu_rfregs[path].hssiparm2); in rtl8xxxu_read_rfreg() 816 val32 = hssia; in rtl8xxxu_read_rfreg() 818 val32 &= ~FPGA0_HSSI_PARM2_ADDR_MASK; in rtl8xxxu_read_rfreg() 819 val32 |= (reg << FPGA0_HSSI_PARM2_ADDR_SHIFT); in rtl8xxxu_read_rfreg() 820 val32 |= FPGA0_HSSI_PARM2_EDGE_READ; in rtl8xxxu_read_rfreg() [all …]
|
D | rtl8xxxu_8192e.c | 484 u32 val32, ofdm, mcs; in rtl8192e_set_tx_power() local 493 val32 = rtl8xxxu_read32(priv, REG_TX_AGC_A_CCK1_MCS32); in rtl8192e_set_tx_power() 494 val32 &= 0xffff00ff; in rtl8192e_set_tx_power() 495 val32 |= (cck << 8); in rtl8192e_set_tx_power() 496 rtl8xxxu_write32(priv, REG_TX_AGC_A_CCK1_MCS32, val32); in rtl8192e_set_tx_power() 498 val32 = rtl8xxxu_read32(priv, REG_TX_AGC_B_CCK11_A_CCK2_11); in rtl8192e_set_tx_power() 499 val32 &= 0xff; in rtl8192e_set_tx_power() 500 val32 |= ((cck << 8) | (cck << 16) | (cck << 24)); in rtl8192e_set_tx_power() 501 rtl8xxxu_write32(priv, REG_TX_AGC_B_CCK11_A_CCK2_11, val32); in rtl8192e_set_tx_power() 525 val32 = rtl8xxxu_read32(priv, REG_TX_AGC_B_CCK1_55_MCS32); in rtl8192e_set_tx_power() [all …]
|
D | rtl8xxxu_8723a.c | 225 u32 val32; in rtl8723a_emu_to_active() local 252 val32 = rtl8xxxu_read32(priv, REG_APS_FSMCO); in rtl8723a_emu_to_active() 253 if (val32 & BIT(17)) in rtl8723a_emu_to_active() 282 val32 = rtl8xxxu_read32(priv, REG_APS_FSMCO); in rtl8723a_emu_to_active() 283 val32 |= APS_FSMCO_MAC_ENABLE; in rtl8723a_emu_to_active() 284 rtl8xxxu_write32(priv, REG_APS_FSMCO, val32); in rtl8723a_emu_to_active() 287 val32 = rtl8xxxu_read32(priv, REG_APS_FSMCO); in rtl8723a_emu_to_active() 288 if ((val32 & APS_FSMCO_MAC_ENABLE) == 0) { in rtl8723a_emu_to_active() 318 u32 val32; in rtl8723au_power_on() local 352 val32 = rtl8xxxu_read32(priv, REG_EFUSE_CTRL); in rtl8723au_power_on() [all …]
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
D | iTCO_vendor_support.c | 79 unsigned long val32; in supermicro_old_pre_start() local 82 val32 = inl(smires->start); in supermicro_old_pre_start() 83 val32 &= 0xffffdfff; /* Turn off SMI clearing watchdog */ in supermicro_old_pre_start() 84 outl(val32, smires->start); /* Needed to activate watchdog */ in supermicro_old_pre_start() 89 unsigned long val32; in supermicro_old_pre_stop() local 92 val32 = inl(smires->start); in supermicro_old_pre_stop() 93 val32 |= 0x00002000; /* Turn on SMI clearing watchdog */ in supermicro_old_pre_stop() 94 outl(val32, smires->start); /* Needed to deactivate watchdog */ in supermicro_old_pre_stop() 130 unsigned long val32; in broken_bios_start() local 132 val32 = inl(smires->start); in broken_bios_start() [all …]
|
D | iTCO_wdt.c | 183 u32 val32 = 0, newval32 = 0; in update_no_reboot_bit_pci() local 185 pci_read_config_dword(p->pci_dev, 0xd4, &val32); in update_no_reboot_bit_pci() 187 val32 |= no_reboot_bit(p); in update_no_reboot_bit_pci() 189 val32 &= ~no_reboot_bit(p); in update_no_reboot_bit_pci() 190 pci_write_config_dword(p->pci_dev, 0xd4, val32); in update_no_reboot_bit_pci() 194 if (val32 != newval32) in update_no_reboot_bit_pci() 203 u32 val32 = 0, newval32 = 0; in update_no_reboot_bit_mem() local 205 val32 = readl(p->gcs_pmc); in update_no_reboot_bit_mem() 207 val32 |= no_reboot_bit(p); in update_no_reboot_bit_mem() 209 val32 &= ~no_reboot_bit(p); in update_no_reboot_bit_mem() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/ |
D | fwio.c | 55 u32 val32; in cw1200_load_firmware_cw1200() local 136 REG_READ(ST90TDS_CONFIG_REG_ID, val32); in cw1200_load_firmware_cw1200() 137 val32 &= ~ST90TDS_CONFIG_CPU_RESET_BIT; in cw1200_load_firmware_cw1200() 138 REG_WRITE(ST90TDS_CONFIG_REG_ID, val32); in cw1200_load_firmware_cw1200() 141 val32 &= ~ST90TDS_CONFIG_CPU_CLK_DIS_BIT; in cw1200_load_firmware_cw1200() 142 REG_WRITE(ST90TDS_CONFIG_REG_ID, val32); in cw1200_load_firmware_cw1200() 160 APB_READ(DOWNLOAD_IMAGE_SIZE_REG, val32); in cw1200_load_firmware_cw1200() 161 if (val32 == DOWNLOAD_I_AM_HERE) in cw1200_load_firmware_cw1200() 166 if (val32 != DOWNLOAD_I_AM_HERE) { in cw1200_load_firmware_cw1200() 176 val32 = firmware->size; /* Explicit cast from size_t to u32 */ in cw1200_load_firmware_cw1200() [all …]
|
D | hwio.c | 174 u32 val32 = 0; in cw1200_indirect_read() local 191 ret = __cw1200_reg_read_32(priv, ST90TDS_CONFIG_REG_ID, &val32); in cw1200_indirect_read() 199 val32 | prefetch); in cw1200_indirect_read() 207 ret = __cw1200_reg_read_32(priv, ST90TDS_CONFIG_REG_ID, &val32); in cw1200_indirect_read() 212 if (!(val32 & prefetch)) in cw1200_indirect_read() 218 if (val32 & prefetch) { in cw1200_indirect_read() 269 u32 val32; in __cw1200_irq_enable() local 274 ret = __cw1200_reg_read_32(priv, ST90TDS_CONFIG_REG_ID, &val32); in __cw1200_irq_enable() 281 val32 |= ST90TDS_CONF_IRQ_RDY_ENABLE; in __cw1200_irq_enable() 283 val32 &= ~ST90TDS_CONF_IRQ_RDY_ENABLE; in __cw1200_irq_enable() [all …]
|
/kernel/linux/linux-5.10/drivers/ide/ |
D | palm_bk3710.c | 68 u32 val32; in palm_bk3710_setudmamode() local 79 val32 = readl(base + BK3710_UDMASTB) & (0xFF << (dev ? 0 : 8)); in palm_bk3710_setudmamode() 80 val32 |= (t0 << (dev ? 8 : 0)); in palm_bk3710_setudmamode() 81 writel(val32, base + BK3710_UDMASTB); in palm_bk3710_setudmamode() 84 val32 = readl(base + BK3710_UDMATRP) & (0xFF << (dev ? 0 : 8)); in palm_bk3710_setudmamode() 85 val32 |= (trp << (dev ? 8 : 0)); in palm_bk3710_setudmamode() 86 writel(val32, base + BK3710_UDMATRP); in palm_bk3710_setudmamode() 89 val32 = readl(base + BK3710_UDMAENV) & (0xFF << (dev ? 0 : 8)); in palm_bk3710_setudmamode() 90 val32 |= (tenv << (dev ? 8 : 0)); in palm_bk3710_setudmamode() 91 writel(val32, base + BK3710_UDMAENV); in palm_bk3710_setudmamode() [all …]
|
/kernel/linux/linux-5.10/drivers/ata/ |
D | pata_bk3710.c | 70 u32 val32; in pata_bk3710_setudmamode() local 82 val32 = ioread32(base + BK3710_UDMASTB) & (0xFF << (dev ? 0 : 8)); in pata_bk3710_setudmamode() 83 val32 |= t0 << (dev ? 8 : 0); in pata_bk3710_setudmamode() 84 iowrite32(val32, base + BK3710_UDMASTB); in pata_bk3710_setudmamode() 87 val32 = ioread32(base + BK3710_UDMATRP) & (0xFF << (dev ? 0 : 8)); in pata_bk3710_setudmamode() 88 val32 |= trp << (dev ? 8 : 0); in pata_bk3710_setudmamode() 89 iowrite32(val32, base + BK3710_UDMATRP); in pata_bk3710_setudmamode() 92 val32 = ioread32(base + BK3710_UDMAENV) & (0xFF << (dev ? 0 : 8)); in pata_bk3710_setudmamode() 93 val32 |= tenv << (dev ? 8 : 0); in pata_bk3710_setudmamode() 94 iowrite32(val32, base + BK3710_UDMAENV); in pata_bk3710_setudmamode() [all …]
|
/kernel/linux/linux-5.10/drivers/misc/cardreader/ |
D | alcor_pci.c | 103 u32 val32; in alcor_pci_find_cap_offset() local 112 pci_read_config_dword(pci, where, &val32); in alcor_pci_find_cap_offset() 113 if (val32 == 0xffffffff) { in alcor_pci_find_cap_offset() 115 val32); in alcor_pci_find_cap_offset() 119 if ((val32 & 0xff) == 0x10) { in alcor_pci_find_cap_offset() 124 if ((val32 & 0xff00) == 0x00) { in alcor_pci_find_cap_offset() 126 val32); in alcor_pci_find_cap_offset() 129 where = (int)((val32 >> 8) & 0xff); in alcor_pci_find_cap_offset() 139 u32 val32; in alcor_pci_init_check_aspm() local 160 pci_read_config_dword(pci, where, &val32); in alcor_pci_init_check_aspm() [all …]
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
D | cs35l35.c | 1247 unsigned int val32 = 0; in cs35l35_handle_of_data() local 1259 ret = of_property_read_u32(np, "cirrus,boost-ctl-millivolt", &val32); in cs35l35_handle_of_data() 1261 if (val32 < 2600 || val32 > 9000) { in cs35l35_handle_of_data() 1263 "Invalid Boost Voltage %d mV\n", val32); in cs35l35_handle_of_data() 1266 pdata->bst_vctl = ((val32 - 2600) / 100) + 1; in cs35l35_handle_of_data() 1269 ret = of_property_read_u32(np, "cirrus,boost-peak-milliamp", &val32); in cs35l35_handle_of_data() 1271 if (val32 < 1680 || val32 > 4480) { in cs35l35_handle_of_data() 1273 "Invalid Boost Peak Current %u mA\n", val32); in cs35l35_handle_of_data() 1277 pdata->bst_ipk = ((val32 - 1680) / 110) | CS35L35_VALID_PDATA; in cs35l35_handle_of_data() 1280 ret = of_property_read_u32(np, "cirrus,boost-ind-nanohenry", &val32); in cs35l35_handle_of_data() [all …]
|
D | cs35l33.c | 926 u32 val32; in cs35l33_get_hg_data() local 932 if (of_property_read_u32(hg, "cirrus,mem-depth", &val32) >= 0) in cs35l33_get_hg_data() 933 hg_config->mem_depth = val32; in cs35l33_get_hg_data() 935 &val32) >= 0) in cs35l33_get_hg_data() 936 hg_config->release_rate = val32; in cs35l33_get_hg_data() 937 if (of_property_read_u32(hg, "cirrus,ldo-thld", &val32) >= 0) in cs35l33_get_hg_data() 938 hg_config->ldo_thld = val32; in cs35l33_get_hg_data() 940 &val32) >= 0) in cs35l33_get_hg_data() 941 hg_config->ldo_path_disable = val32; in cs35l33_get_hg_data() 943 &val32) >= 0) in cs35l33_get_hg_data() [all …]
|
/kernel/linux/linux-5.10/drivers/misc/ocxl/ |
D | config.c | 376 u32 val32; in read_template_version() local 380 rc = read_afu_info(dev, fn, OCXL_DVSEC_TEMPL_VERSION, &val32); in read_template_version() 384 *len = EXTRACT_BITS(val32, 16, 31); in read_template_version() 385 major = EXTRACT_BITS(val32, 8, 15); in read_template_version() 386 minor = EXTRACT_BITS(val32, 0, 7); in read_template_version() 580 u32 val32; in read_afu_lpc_memory_info() local 601 rc = read_afu_info(dev, fn, OCXL_DVSEC_TEMPL_ALL_MEM_SZ, &val32); in read_afu_lpc_memory_info() 605 val32 = EXTRACT_BITS(val32, 0, 7); in read_afu_lpc_memory_info() 606 if (!val32) in read_afu_lpc_memory_info() 619 total_mem_size = 1ull << val32; in read_afu_lpc_memory_info() [all …]
|
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
D | tsc2007_core.c | 235 u32 val32; in tsc2007_probe_dt() local 243 if (!of_property_read_u32(np, "ti,max-rt", &val32)) in tsc2007_probe_dt() 244 ts->max_rt = val32; in tsc2007_probe_dt() 248 if (!of_property_read_u32(np, "ti,fuzzx", &val32)) in tsc2007_probe_dt() 249 ts->fuzzx = val32; in tsc2007_probe_dt() 251 if (!of_property_read_u32(np, "ti,fuzzy", &val32)) in tsc2007_probe_dt() 252 ts->fuzzy = val32; in tsc2007_probe_dt() 254 if (!of_property_read_u32(np, "ti,fuzzz", &val32)) in tsc2007_probe_dt() 255 ts->fuzzz = val32; in tsc2007_probe_dt() 262 if (!of_property_read_u32(np, "ti,x-plate-ohms", &val32)) { in tsc2007_probe_dt() [all …]
|
/kernel/linux/linux-5.10/net/ethtool/ |
D | bitset.c | 706 u32 *val32; in ethnl_bitset_size() local 712 val32 = kmalloc_array(2 * nwords, sizeof(u32), GFP_KERNEL); in ethnl_bitset_size() 713 if (!val32) in ethnl_bitset_size() 715 mask32 = val32 + nwords; in ethnl_bitset_size() 717 val32 = small_val32; in ethnl_bitset_size() 721 bitmap_to_arr32(val32, val, nbits); in ethnl_bitset_size() 726 ret = ethnl_bitset32_size(val32, mask32, nbits, names, compact); in ethnl_bitset_size() 729 kfree(val32); in ethnl_bitset_size() 742 u32 *val32; in ethnl_put_bitset() local 748 val32 = kmalloc_array(2 * nwords, sizeof(u32), GFP_KERNEL); in ethnl_put_bitset() [all …]
|
/kernel/linux/linux-5.10/drivers/pci/controller/ |
D | pci-xgene.c | 290 u32 val32 = 0; in xgene_pcie_set_ib_mask() local 293 val32 = xgene_pcie_readl(port, addr); in xgene_pcie_set_ib_mask() 294 val = (val32 & 0x0000ffff) | (lower_32_bits(mask) << 16); in xgene_pcie_set_ib_mask() 297 val32 = xgene_pcie_readl(port, addr + 0x04); in xgene_pcie_set_ib_mask() 298 val = (val32 & 0xffff0000) | (lower_32_bits(mask) >> 16); in xgene_pcie_set_ib_mask() 301 val32 = xgene_pcie_readl(port, addr + 0x04); in xgene_pcie_set_ib_mask() 302 val = (val32 & 0x0000ffff) | (upper_32_bits(mask) << 16); in xgene_pcie_set_ib_mask() 305 val32 = xgene_pcie_readl(port, addr + 0x08); in xgene_pcie_set_ib_mask() 306 val = (val32 & 0xffff0000) | (upper_32_bits(mask) >> 16); in xgene_pcie_set_ib_mask() 315 u32 val32; in xgene_pcie_linkup() local [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/ |
D | pm3393.c | 203 u32 val32; in pm3393_interrupt_clear() local 208 pmread(cmac, SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_STATUS, &val32); in pm3393_interrupt_clear() 209 pmread(cmac, SUNI1x10GEXP_REG_XRF_INTERRUPT_STATUS, &val32); in pm3393_interrupt_clear() 210 pmread(cmac, SUNI1x10GEXP_REG_XRF_DIAG_INTERRUPT_STATUS, &val32); in pm3393_interrupt_clear() 211 pmread(cmac, SUNI1x10GEXP_REG_RXOAM_INTERRUPT_STATUS, &val32); in pm3393_interrupt_clear() 212 pmread(cmac, SUNI1x10GEXP_REG_PL4ODP_INTERRUPT, &val32); in pm3393_interrupt_clear() 213 pmread(cmac, SUNI1x10GEXP_REG_XTEF_INTERRUPT_STATUS, &val32); in pm3393_interrupt_clear() 214 pmread(cmac, SUNI1x10GEXP_REG_IFLX_FIFO_OVERFLOW_INTERRUPT, &val32); in pm3393_interrupt_clear() 215 pmread(cmac, SUNI1x10GEXP_REG_TXOAM_INTERRUPT_STATUS, &val32); in pm3393_interrupt_clear() 216 pmread(cmac, SUNI1x10GEXP_REG_RXXG_INTERRUPT, &val32); in pm3393_interrupt_clear() [all …]
|
/kernel/linux/linux-5.10/tools/lib/perf/Documentation/examples/ |
D | sampling.c | 20 __u32 val32[2]; member 95 pid = u.val32[0]; in main() 96 tid = u.val32[1]; in main() 100 cpu = u.val32[0]; in main()
|
/kernel/linux/linux-5.10/drivers/gpio/ |
D | gpio-xgene-sb.c | 223 u32 val32; in xgene_gpio_sb_probe() local 257 XGENE_IRQ_START_PROPERTY, &val32)) in xgene_gpio_sb_probe() 258 priv->irq_start = val32; in xgene_gpio_sb_probe() 262 if (!device_property_read_u32(&pdev->dev, XGENE_NIRQ_PROPERTY, &val32)) in xgene_gpio_sb_probe() 263 priv->nirq = val32; in xgene_gpio_sb_probe() 267 if (!device_property_read_u32(&pdev->dev, XGENE_NGPIO_PROPERTY, &val32)) in xgene_gpio_sb_probe() 268 priv->gc.ngpio = val32; in xgene_gpio_sb_probe()
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | xt_l2tp.c | 46 __be32 val32; member 117 data.tid = ntohl(lh->val32); in l2tp_udp_mt() 119 data.sid = ntohl(lh->val32); in l2tp_udp_mt() 150 if (lh->val32 == 0) { in l2tp_ip_mt() 159 data.tid = ntohl(lh->val32); in l2tp_ip_mt() 161 data.sid = ntohl(lh->val32); in l2tp_ip_mt()
|
/kernel/linux/linux-5.10/lib/zstd/ |
D | mem.h | 89 ZSTD_STATIC void ZSTD_writeLE32(void *memPtr, U32 val32) { put_unaligned_le32(val32, memPtr); } in ZSTD_writeLE32() argument 115 ZSTD_STATIC void ZSTD_writeBE32(void *memPtr, U32 val32) { put_unaligned_be32(val32, memPtr); } in ZSTD_writeBE32() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_devlink.c | 316 __le32 val32; member 323 u32 val32 = 0; in bnxt_copy_to_nvm_data() local 330 val32 = src->vu32; in bnxt_copy_to_nvm_data() 332 val32 = (u32)src->vu16; in bnxt_copy_to_nvm_data() 334 val32 = (u32)src->vu8; in bnxt_copy_to_nvm_data() 335 dst->val32 = cpu_to_le32(val32); in bnxt_copy_to_nvm_data() 342 u32 val32; in bnxt_copy_from_nvm_data() local 348 val32 = le32_to_cpu(src->val32); in bnxt_copy_from_nvm_data() 350 dst->vu32 = val32; in bnxt_copy_from_nvm_data() 352 dst->vu16 = (u16)val32; in bnxt_copy_from_nvm_data() [all …]
|