/Linux-v4.19/drivers/edac/ |
D | amd64_edac.c | 86 static void f15h_select_dct(struct amd64_pvt *pvt, u8 dct) in f15h_select_dct() argument 90 amd64_read_pci_cfg(pvt->F1, DCT_CFG_SEL, ®); in f15h_select_dct() 91 reg &= (pvt->model == 0x30) ? ~3 : ~1; in f15h_select_dct() 93 amd64_write_pci_cfg(pvt->F1, DCT_CFG_SEL, reg); in f15h_select_dct() 110 static inline int amd64_read_dct_pci_cfg(struct amd64_pvt *pvt, u8 dct, in amd64_read_dct_pci_cfg() argument 113 switch (pvt->fam) { in amd64_read_dct_pci_cfg() 126 if (dct_ganging_enabled(pvt)) in amd64_read_dct_pci_cfg() 138 dct = (dct && pvt->model == 0x30) ? 3 : dct; in amd64_read_dct_pci_cfg() 139 f15h_select_dct(pvt, dct); in amd64_read_dct_pci_cfg() 150 return amd64_read_pci_cfg(pvt->F2, offset, val); in amd64_read_dct_pci_cfg() [all …]
|
D | i7300_edac.c | 355 struct i7300_pvt *pvt; in i7300_process_error_global() local 361 pvt = mci->pvt_info; in i7300_process_error_global() 364 pci_read_config_dword(pvt->pci_dev_16_2_fsb_err_regs, in i7300_process_error_global() 374 pci_write_config_dword(pvt->pci_dev_16_2_fsb_err_regs, in i7300_process_error_global() 380 pci_read_config_dword(pvt->pci_dev_16_2_fsb_err_regs, in i7300_process_error_global() 390 pci_write_config_dword(pvt->pci_dev_16_2_fsb_err_regs, in i7300_process_error_global() 410 struct i7300_pvt *pvt; in i7300_process_fbd_error() local 420 pvt = mci->pvt_info; in i7300_process_fbd_error() 423 pci_read_config_dword(pvt->pci_dev_16_1_fsb_addr_map, in i7300_process_fbd_error() 432 pci_read_config_word(pvt->pci_dev_16_1_fsb_addr_map, in i7300_process_fbd_error() [all …]
|
D | i7core_edac.c | 398 #define CH_ACTIVE(pvt, ch) ((pvt)->info.mc_control & (1 << (8 + ch))) argument 399 #define ECCx8(pvt) ((pvt)->info.mc_control & (1 << 1)) argument 402 #define ECC_ENABLED(pvt) ((pvt)->info.mc_status & (1 << 4)) argument 403 #define CH_DISABLED(pvt, ch) ((pvt)->info.mc_status & (1 << ch)) argument 491 struct i7core_pvt *pvt = mci->pvt_info; in get_dimm_config() local 499 pdev = pvt->pci_mcr[0]; in get_dimm_config() 504 pci_read_config_dword(pdev, MC_CONTROL, &pvt->info.mc_control); in get_dimm_config() 505 pci_read_config_dword(pdev, MC_STATUS, &pvt->info.mc_status); in get_dimm_config() 506 pci_read_config_dword(pdev, MC_MAX_DOD, &pvt->info.max_dod); in get_dimm_config() 507 pci_read_config_dword(pdev, MC_CHANNEL_MAPPER, &pvt->info.ch_map); in get_dimm_config() [all …]
|
D | sb_edac.c | 318 u64 (*get_tolm)(struct sbridge_pvt *pvt); 319 u64 (*get_tohm)(struct sbridge_pvt *pvt); 328 u8 (*get_node_id)(struct sbridge_pvt *pvt); 329 enum mem_type (*get_memory_type)(struct sbridge_pvt *pvt); 330 enum dev_type (*get_width)(struct sbridge_pvt *pvt, u32 mtr); 793 static u64 sbridge_get_tolm(struct sbridge_pvt *pvt) in sbridge_get_tolm() argument 798 pci_read_config_dword(pvt->pci_sad1, TOLM, ®); in sbridge_get_tolm() 802 static u64 sbridge_get_tohm(struct sbridge_pvt *pvt) in sbridge_get_tohm() argument 806 pci_read_config_dword(pvt->pci_sad1, TOHM, ®); in sbridge_get_tohm() 810 static u64 ibridge_get_tolm(struct sbridge_pvt *pvt) in ibridge_get_tolm() argument [all …]
|
D | amd64_edac.h | 136 #define dram_rw(pvt, i) ((u8)(pvt->ranges[i].base.lo & 0x3)) argument 137 #define dram_intlv_sel(pvt, i) ((u8)((pvt->ranges[i].lim.lo >> 8) & 0x7)) argument 138 #define dram_dst_node(pvt, i) ((u8)(pvt->ranges[i].lim.lo & 0x7)) argument 141 #define dhar_mem_hoist_valid(pvt) ((pvt)->dhar & BIT(1)) argument 142 #define dhar_base(pvt) ((pvt)->dhar & 0xff000000) argument 143 #define k8_dhar_offset(pvt) (((pvt)->dhar & 0x0000ff00) << 16) argument 146 #define f10_dhar_offset(pvt) (((pvt)->dhar & 0x0000ff80) << 16) argument 167 #define csrow_enabled(i, dct, pvt) ((pvt)->csels[(dct)].csbases[(i)] & DCSB_CS_ENABLE) argument 189 #define dct_high_range_enabled(pvt) ((pvt)->dct_sel_lo & BIT(0)) argument 190 #define dct_interleave_enabled(pvt) ((pvt)->dct_sel_lo & BIT(2)) argument [all …]
|
D | i5400_edac.c | 438 struct i5400_pvt *pvt; in i5400_get_error_info() local 441 pvt = mci->pvt_info; in i5400_get_error_info() 444 pci_read_config_dword(pvt->branchmap_werrors, FERR_FAT_FBD, &value); in i5400_get_error_info() 457 pci_read_config_dword(pvt->branchmap_werrors, in i5400_get_error_info() 459 pci_read_config_word(pvt->branchmap_werrors, in i5400_get_error_info() 461 pci_read_config_dword(pvt->branchmap_werrors, in i5400_get_error_info() 465 pci_write_config_dword(pvt->branchmap_werrors, in i5400_get_error_info() 475 pci_read_config_dword(pvt->branchmap_werrors, FERR_NF_FBD, &value); in i5400_get_error_info() 483 pci_read_config_dword(pvt->branchmap_werrors, in i5400_get_error_info() 485 pci_read_config_word(pvt->branchmap_werrors, in i5400_get_error_info() [all …]
|
D | i5000_edac.c | 388 struct i5000_pvt *pvt; in i5000_get_error_info() local 391 pvt = mci->pvt_info; in i5000_get_error_info() 394 pci_read_config_dword(pvt->branchmap_werrors, FERR_FAT_FBD, &value); in i5000_get_error_info() 406 pci_read_config_dword(pvt->branchmap_werrors, in i5000_get_error_info() 408 pci_read_config_word(pvt->branchmap_werrors, in i5000_get_error_info() 410 pci_read_config_dword(pvt->branchmap_werrors, in i5000_get_error_info() 414 pci_write_config_dword(pvt->branchmap_werrors, in i5000_get_error_info() 424 pci_read_config_dword(pvt->branchmap_werrors, FERR_NF_FBD, &value); in i5000_get_error_info() 432 pci_read_config_dword(pvt->branchmap_werrors, in i5000_get_error_info() 434 pci_read_config_word(pvt->branchmap_werrors, in i5000_get_error_info() [all …]
|
D | amd64_edac_inj.c | 9 struct amd64_pvt *pvt = mci->pvt_info; in amd64_inject_section_show() local 10 return sprintf(buf, "0x%x\n", pvt->injection.section); in amd64_inject_section_show() 24 struct amd64_pvt *pvt = mci->pvt_info; in amd64_inject_section_store() local 37 pvt->injection.section = (u32) value; in amd64_inject_section_store() 46 struct amd64_pvt *pvt = mci->pvt_info; in amd64_inject_word_show() local 47 return sprintf(buf, "0x%x\n", pvt->injection.word); in amd64_inject_word_show() 61 struct amd64_pvt *pvt = mci->pvt_info; in amd64_inject_word_store() local 74 pvt->injection.word = (u32) value; in amd64_inject_word_store() 83 struct amd64_pvt *pvt = mci->pvt_info; in amd64_inject_ecc_vector_show() local 84 return sprintf(buf, "0x%x\n", pvt->injection.bit_map); in amd64_inject_ecc_vector_show() [all …]
|
D | e752x_edac.c | 308 struct e752x_pvt *pvt = (struct e752x_pvt *)mci->pvt_info; in ctl_page_to_phys() local 312 if (page < pvt->tolm) in ctl_page_to_phys() 315 if ((page >= 0x100000) && (page < pvt->remapbase)) in ctl_page_to_phys() 318 remap = (page - pvt->tolm) + pvt->remapbase; in ctl_page_to_phys() 320 if (remap < pvt->remaplimit) in ctl_page_to_phys() 324 return pvt->tolm - 1; in ctl_page_to_phys() 334 struct e752x_pvt *pvt = (struct e752x_pvt *)mci->pvt_info; in do_process_ce() local 342 if (pvt->mc_symmetric) { in do_process_ce() 347 pvt->map[0], pvt->map[1], pvt->map[2], pvt->map[3], in do_process_ce() 348 pvt->map[4], pvt->map[5], pvt->map[6], in do_process_ce() [all …]
|
D | e7xxx_edac.c | 186 struct e7xxx_pvt *pvt = (struct e7xxx_pvt *)mci->pvt_info; in ctl_page_to_phys() local 190 if ((page < pvt->tolm) || in ctl_page_to_phys() 191 ((page >= 0x100000) && (page < pvt->remapbase))) in ctl_page_to_phys() 194 remap = (page - pvt->tolm) + pvt->remapbase; in ctl_page_to_phys() 196 if (remap < pvt->remaplimit) in ctl_page_to_phys() 200 return pvt->tolm - 1; in ctl_page_to_phys() 259 struct e7xxx_pvt *pvt; in e7xxx_get_error_info() local 261 pvt = (struct e7xxx_pvt *)mci->pvt_info; in e7xxx_get_error_info() 262 pci_read_config_byte(pvt->bridge_ck, E7XXX_DRAM_FERR, &info->dram_ferr); in e7xxx_get_error_info() 263 pci_read_config_byte(pvt->bridge_ck, E7XXX_DRAM_NERR, &info->dram_nerr); in e7xxx_get_error_info() [all …]
|
D | octeon_edac-lmc.c | 73 struct octeon_lmc_pvt *pvt = mci->pvt_info; in octeon_lmc_edac_poll_o2() local 78 if (!pvt->inject) in octeon_lmc_edac_poll_o2() 82 if (pvt->error_type == 1) in octeon_lmc_edac_poll_o2() 84 if (pvt->error_type == 2) in octeon_lmc_edac_poll_o2() 90 if (likely(!pvt->inject)) in octeon_lmc_edac_poll_o2() 93 fadr.cn61xx.fdimm = pvt->dimm; in octeon_lmc_edac_poll_o2() 94 fadr.cn61xx.fbunk = pvt->rank; in octeon_lmc_edac_poll_o2() 95 fadr.cn61xx.fbank = pvt->bank; in octeon_lmc_edac_poll_o2() 96 fadr.cn61xx.frow = pvt->row; in octeon_lmc_edac_poll_o2() 97 fadr.cn61xx.fcol = pvt->col; in octeon_lmc_edac_poll_o2() [all …]
|
D | i82875p_edac.c | 393 struct i82875p_pvt *pvt; in i82875p_probe1() local 413 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, sizeof(*pvt)); in i82875p_probe1() 430 pvt = (struct i82875p_pvt *)mci->pvt_info; in i82875p_probe1() 431 pvt->ovrfl_pdev = ovrfl_pdev; in i82875p_probe1() 432 pvt->ovrfl_window = ovrfl_window; in i82875p_probe1() 494 struct i82875p_pvt *pvt = NULL; in i82875p_remove_one() local 504 pvt = (struct i82875p_pvt *)mci->pvt_info; in i82875p_remove_one() 506 if (pvt->ovrfl_window) in i82875p_remove_one() 507 iounmap(pvt->ovrfl_window); in i82875p_remove_one() 509 if (pvt->ovrfl_pdev) { in i82875p_remove_one() [all …]
|
D | ghes_edac.c | 189 struct ghes_edac_pvt *pvt = ghes_pvt; in ghes_edac_report_mem_error() local 194 if (!pvt) in ghes_edac_report_mem_error() 207 mci = pvt->mci; in ghes_edac_report_mem_error() 214 e->msg = pvt->msg; in ghes_edac_report_mem_error() 215 e->other_detail = pvt->other_detail; in ghes_edac_report_mem_error() 219 *pvt->other_detail = '\0'; in ghes_edac_report_mem_error() 220 *pvt->msg = '\0'; in ghes_edac_report_mem_error() 242 p = pvt->msg; in ghes_edac_report_mem_error() 297 strcpy(pvt->msg, "unknown error"); in ghes_edac_report_mem_error() 341 p = pvt->other_detail; in ghes_edac_report_mem_error() [all …]
|
D | edac_pci.c | 35 void *p = NULL, *pvt; in edac_pci_alloc_ctl_info() local 41 pvt = edac_align_ptr(&p, 1, sz_pvt); in edac_pci_alloc_ctl_info() 42 size = ((unsigned long)pvt) + sz_pvt; in edac_pci_alloc_ctl_info() 50 pvt = sz_pvt ? ((char *)pci) + ((unsigned long)pvt) : NULL; in edac_pci_alloc_ctl_info() 52 pci->pvt_info = pvt; in edac_pci_alloc_ctl_info()
|
D | i82975x_edac.c | 476 struct i82975x_pvt *pvt; in i82975x_probe1() local 554 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, sizeof(*pvt)); in i82975x_probe1() 571 pvt = (struct i82975x_pvt *) mci->pvt_info; in i82975x_probe1() 572 pvt->mch_window = mch_window; in i82975x_probe1() 618 struct i82975x_pvt *pvt; in i82975x_remove_one() local 626 pvt = mci->pvt_info; in i82975x_remove_one() 627 if (pvt->mch_window) in i82975x_remove_one() 628 iounmap( pvt->mch_window ); in i82975x_remove_one()
|
D | edac_device.c | 65 void *pvt, *p; in edac_device_alloc_ctl_info() local 100 pvt = edac_align_ptr(&p, sz_private, 1); in edac_device_alloc_ctl_info() 106 total_size = ((unsigned long)pvt) + sz_private; in edac_device_alloc_ctl_info() 126 pvt = sz_private ? (((char *)dev_ctl) + ((unsigned long)pvt)) : NULL; in edac_device_alloc_ctl_info() 132 dev_ctl->pvt_info = pvt; in edac_device_alloc_ctl_info() 142 dev_ctl, pvt + sz_private); in edac_device_alloc_ctl_info()
|
D | amd64_edac_dbg.c | 10 struct amd64_pvt *pvt = mci->pvt_info; \ 11 return sprintf(data, "0x%016llx\n", (u64)pvt->reg); \
|
D | edac_mc.c | 322 void *pvt, *p, *ptr = NULL; in edac_mc_alloc() local 358 pvt = edac_align_ptr(&ptr, sz_pvt, 1); in edac_mc_alloc() 359 size = ((unsigned long)pvt) + sz_pvt; in edac_mc_alloc() 379 pvt = sz_pvt ? (((char *)mci) + ((unsigned long)pvt)) : NULL; in edac_mc_alloc() 384 mci->pvt_info = pvt; in edac_mc_alloc()
|
D | pnd2_edac.c | 933 struct pnd2_pvt *pvt = mci->pvt_info; in apl_pmi2mem() local 934 int g = pvt->dimm_geom[pmiidx]; in apl_pmi2mem() 1227 struct pnd2_pvt *pvt = mci->pvt_info; in apl_get_dimm_config() local 1255 pvt->dimm_geom[i] = g; in apl_get_dimm_config() 1339 struct pnd2_pvt *pvt; in pnd2_register_mci() local 1353 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, sizeof(*pvt)); in pnd2_register_mci() 1357 pvt = mci->pvt_info; in pnd2_register_mci() 1358 memset(pvt, 0, sizeof(*pvt)); in pnd2_register_mci()
|
D | skx_edac.c | 450 struct skx_pvt *pvt = mci->pvt_info; in skx_get_dimm_config() local 451 struct skx_imc *imc = pvt->imc; in skx_get_dimm_config() 502 struct skx_pvt *pvt; in skx_register_mci() local 522 pvt = mci->pvt_info; in skx_register_mci() 523 pvt->imc = imc; in skx_register_mci()
|
/Linux-v4.19/drivers/s390/crypto/ |
D | zcrypt_cca_key.h | 184 struct cca_pvt_ext_CRT_sec pvt; in zcrypt_type6_crt_key() member 216 key->pvt.section_identifier = CCA_PVT_EXT_CRT_SEC_ID_PVT; in zcrypt_type6_crt_key() 217 key->pvt.section_length = sizeof(key->pvt) + key_len; in zcrypt_type6_crt_key() 218 key->pvt.key_format = CCA_PVT_EXT_CRT_SEC_FMT_CL; in zcrypt_type6_crt_key() 219 key->pvt.key_use_flags[0] = CCA_PVT_USAGE_ALL; in zcrypt_type6_crt_key() 220 key->pvt.p_len = key->pvt.dp_len = key->pvt.u_len = long_len; in zcrypt_type6_crt_key() 221 key->pvt.q_len = key->pvt.dq_len = short_len; in zcrypt_type6_crt_key() 222 key->pvt.mod_len = crt->inputdatalength; in zcrypt_type6_crt_key() 223 key->pvt.pad_len = pad_len; in zcrypt_type6_crt_key()
|
/Linux-v4.19/sound/pci/asihpi/ |
D | hpidspcd.c | 83 dsp_code->pvt = kmalloc(sizeof(*dsp_code->pvt), GFP_KERNEL); in hpi_dsp_code_open() 84 if (!dsp_code->pvt) { in hpi_dsp_code_open() 89 dsp_code->pvt->dev = dev; in hpi_dsp_code_open() 90 dsp_code->pvt->firmware = firmware; in hpi_dsp_code_open() 107 release_firmware(dsp_code->pvt->firmware); in hpi_dsp_code_close() 108 kfree(dsp_code->pvt); in hpi_dsp_code_close() 124 *pword = ((u32 *)(dsp_code->pvt->firmware->data))[dsp_code-> in hpi_dsp_code_read_word() 138 ((u32 *)(dsp_code->pvt->firmware->data)) + in hpi_dsp_code_read_block()
|
D | hpidspcd.h | 65 struct dsp_code_private *pvt; member
|
/Linux-v4.19/arch/s390/kernel/ |
D | cache.c | 156 unsigned int level, idx, pvt; in populate_cache_leaves() local 167 pvt = (ct.ci[level].scope == CACHE_SCOPE_PRIVATE) ? 1 : 0; in populate_cache_leaves() 170 ci_leaf_init(this_leaf++, pvt, CACHE_TYPE_DATA, level, cpu); in populate_cache_leaves() 171 ci_leaf_init(this_leaf++, pvt, CACHE_TYPE_INST, level, cpu); in populate_cache_leaves() 173 ci_leaf_init(this_leaf++, pvt, ctype, level, cpu); in populate_cache_leaves()
|
/Linux-v4.19/drivers/net/dsa/mv88e6xxx/ |
D | chip.c | 3787 .pvt = true, 3829 .pvt = true, 3851 .pvt = true, 3894 .pvt = true, 3916 .pvt = true, 3939 .pvt = true, 3962 .pvt = true, 3985 .pvt = true, 4007 .pvt = true, 4030 .pvt = true, [all …]
|