Home
last modified time | relevance | path

Searched refs:pvt (Results 1 – 24 of 24) sorted by relevance

/linux-4.4.14/drivers/edac/
Damd64_edac.c91 static void f15h_select_dct(struct amd64_pvt *pvt, u8 dct) in f15h_select_dct() argument
95 amd64_read_pci_cfg(pvt->F1, DCT_CFG_SEL, &reg); in f15h_select_dct()
96 reg &= (pvt->model == 0x30) ? ~3 : ~1; in f15h_select_dct()
98 amd64_write_pci_cfg(pvt->F1, DCT_CFG_SEL, reg); in f15h_select_dct()
115 static inline int amd64_read_dct_pci_cfg(struct amd64_pvt *pvt, u8 dct, in amd64_read_dct_pci_cfg() argument
118 switch (pvt->fam) { in amd64_read_dct_pci_cfg()
131 if (dct_ganging_enabled(pvt)) in amd64_read_dct_pci_cfg()
143 dct = (dct && pvt->model == 0x30) ? 3 : dct; in amd64_read_dct_pci_cfg()
144 f15h_select_dct(pvt, dct); in amd64_read_dct_pci_cfg()
155 return amd64_read_pci_cfg(pvt->F2, offset, val); in amd64_read_dct_pci_cfg()
[all …]
Di7300_edac.c356 struct i7300_pvt *pvt; in i7300_process_error_global() local
362 pvt = mci->pvt_info; in i7300_process_error_global()
365 pci_read_config_dword(pvt->pci_dev_16_2_fsb_err_regs, in i7300_process_error_global()
375 pci_write_config_dword(pvt->pci_dev_16_2_fsb_err_regs, in i7300_process_error_global()
381 pci_read_config_dword(pvt->pci_dev_16_2_fsb_err_regs, in i7300_process_error_global()
391 pci_write_config_dword(pvt->pci_dev_16_2_fsb_err_regs, in i7300_process_error_global()
411 struct i7300_pvt *pvt; in i7300_process_fbd_error() local
421 pvt = mci->pvt_info; in i7300_process_fbd_error()
424 pci_read_config_dword(pvt->pci_dev_16_1_fsb_addr_map, in i7300_process_fbd_error()
433 pci_read_config_word(pvt->pci_dev_16_1_fsb_addr_map, in i7300_process_fbd_error()
[all …]
Di7core_edac.c408 #define CH_ACTIVE(pvt, ch) ((pvt)->info.mc_control & (1 << (8 + ch))) argument
409 #define ECCx8(pvt) ((pvt)->info.mc_control & (1 << 1)) argument
412 #define ECC_ENABLED(pvt) ((pvt)->info.mc_status & (1 << 4)) argument
413 #define CH_DISABLED(pvt, ch) ((pvt)->info.mc_status & (1 << ch)) argument
501 struct i7core_pvt *pvt = mci->pvt_info; in get_dimm_config() local
509 pdev = pvt->pci_mcr[0]; in get_dimm_config()
514 pci_read_config_dword(pdev, MC_CONTROL, &pvt->info.mc_control); in get_dimm_config()
515 pci_read_config_dword(pdev, MC_STATUS, &pvt->info.mc_status); in get_dimm_config()
516 pci_read_config_dword(pdev, MC_MAX_DOD, &pvt->info.max_dod); in get_dimm_config()
517 pci_read_config_dword(pdev, MC_CHANNEL_MAPPER, &pvt->info.ch_map); in get_dimm_config()
[all …]
Damd64_edac.h139 #define dram_rw(pvt, i) ((u8)(pvt->ranges[i].base.lo & 0x3)) argument
140 #define dram_intlv_sel(pvt, i) ((u8)((pvt->ranges[i].lim.lo >> 8) & 0x7)) argument
141 #define dram_dst_node(pvt, i) ((u8)(pvt->ranges[i].lim.lo & 0x7)) argument
144 #define dhar_mem_hoist_valid(pvt) ((pvt)->dhar & BIT(1)) argument
145 #define dhar_base(pvt) ((pvt)->dhar & 0xff000000) argument
146 #define k8_dhar_offset(pvt) (((pvt)->dhar & 0x0000ff00) << 16) argument
149 #define f10_dhar_offset(pvt) (((pvt)->dhar & 0x0000ff80) << 16) argument
170 #define csrow_enabled(i, dct, pvt) ((pvt)->csels[(dct)].csbases[(i)] & DCSB_CS_ENABLE) argument
192 #define dct_high_range_enabled(pvt) ((pvt)->dct_sel_lo & BIT(0)) argument
193 #define dct_interleave_enabled(pvt) ((pvt)->dct_sel_lo & BIT(2)) argument
[all …]
Dsb_edac.c273 u64 (*get_tolm)(struct sbridge_pvt *pvt);
274 u64 (*get_tohm)(struct sbridge_pvt *pvt);
281 u8 (*get_node_id)(struct sbridge_pvt *pvt);
282 enum mem_type (*get_memory_type)(struct sbridge_pvt *pvt);
283 enum dev_type (*get_width)(struct sbridge_pvt *pvt, u32 mtr);
681 static u64 sbridge_get_tolm(struct sbridge_pvt *pvt) in sbridge_get_tolm() argument
686 pci_read_config_dword(pvt->pci_sad1, TOLM, &reg); in sbridge_get_tolm()
690 static u64 sbridge_get_tohm(struct sbridge_pvt *pvt) in sbridge_get_tohm() argument
694 pci_read_config_dword(pvt->pci_sad1, TOHM, &reg); in sbridge_get_tohm()
698 static u64 ibridge_get_tolm(struct sbridge_pvt *pvt) in ibridge_get_tolm() argument
[all …]
Di5400_edac.c438 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_word(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 …]
Di5000_edac.c388 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_word(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 …]
Damd64_edac_inj.c8 struct amd64_pvt *pvt = mci->pvt_info; in amd64_inject_section_show() local
9 return sprintf(buf, "0x%x\n", pvt->injection.section); in amd64_inject_section_show()
23 struct amd64_pvt *pvt = mci->pvt_info; in amd64_inject_section_store() local
36 pvt->injection.section = (u32) value; in amd64_inject_section_store()
45 struct amd64_pvt *pvt = mci->pvt_info; in amd64_inject_word_show() local
46 return sprintf(buf, "0x%x\n", pvt->injection.word); in amd64_inject_word_show()
60 struct amd64_pvt *pvt = mci->pvt_info; in amd64_inject_word_store() local
73 pvt->injection.word = (u32) value; in amd64_inject_word_store()
82 struct amd64_pvt *pvt = mci->pvt_info; in amd64_inject_ecc_vector_show() local
83 return sprintf(buf, "0x%x\n", pvt->injection.bit_map); in amd64_inject_ecc_vector_show()
[all …]
De752x_edac.c309 struct e752x_pvt *pvt = (struct e752x_pvt *)mci->pvt_info; in ctl_page_to_phys() local
313 if (page < pvt->tolm) in ctl_page_to_phys()
316 if ((page >= 0x100000) && (page < pvt->remapbase)) in ctl_page_to_phys()
319 remap = (page - pvt->tolm) + pvt->remapbase; in ctl_page_to_phys()
321 if (remap < pvt->remaplimit) in ctl_page_to_phys()
325 return pvt->tolm - 1; in ctl_page_to_phys()
335 struct e752x_pvt *pvt = (struct e752x_pvt *)mci->pvt_info; in do_process_ce() local
343 if (pvt->mc_symmetric) { in do_process_ce()
348 pvt->map[0], pvt->map[1], pvt->map[2], pvt->map[3], in do_process_ce()
349 pvt->map[4], pvt->map[5], pvt->map[6], in do_process_ce()
[all …]
De7xxx_edac.c187 struct e7xxx_pvt *pvt = (struct e7xxx_pvt *)mci->pvt_info; in ctl_page_to_phys() local
191 if ((page < pvt->tolm) || in ctl_page_to_phys()
192 ((page >= 0x100000) && (page < pvt->remapbase))) in ctl_page_to_phys()
195 remap = (page - pvt->tolm) + pvt->remapbase; in ctl_page_to_phys()
197 if (remap < pvt->remaplimit) in ctl_page_to_phys()
201 return pvt->tolm - 1; in ctl_page_to_phys()
260 struct e7xxx_pvt *pvt; in e7xxx_get_error_info() local
262 pvt = (struct e7xxx_pvt *)mci->pvt_info; in e7xxx_get_error_info()
263 pci_read_config_byte(pvt->bridge_ck, E7XXX_DRAM_FERR, &info->dram_ferr); in e7xxx_get_error_info()
264 pci_read_config_byte(pvt->bridge_ck, E7XXX_DRAM_NERR, &info->dram_nerr); in e7xxx_get_error_info()
[all …]
Docteon_edac-lmc.c74 struct octeon_lmc_pvt *pvt = mci->pvt_info; in octeon_lmc_edac_poll_o2() local
79 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 …]
Dghes_edac.c174 struct ghes_edac_pvt *pvt = NULL; in ghes_edac_report_mem_error() local
178 list_for_each_entry(pvt, &ghes_reglist, list) { in ghes_edac_report_mem_error()
179 if (ghes == pvt->ghes) in ghes_edac_report_mem_error()
182 if (!pvt) { in ghes_edac_report_mem_error()
186 mci = pvt->mci; in ghes_edac_report_mem_error()
193 e->msg = pvt->msg; in ghes_edac_report_mem_error()
194 e->other_detail = pvt->other_detail; in ghes_edac_report_mem_error()
198 *pvt->other_detail = '\0'; in ghes_edac_report_mem_error()
199 *pvt->msg = '\0'; in ghes_edac_report_mem_error()
221 p = pvt->msg; in ghes_edac_report_mem_error()
[all …]
Di82875p_edac.c394 struct i82875p_pvt *pvt; in i82875p_probe1() local
414 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, sizeof(*pvt)); in i82875p_probe1()
432 pvt = (struct i82875p_pvt *)mci->pvt_info; in i82875p_probe1()
433 pvt->ovrfl_pdev = ovrfl_pdev; in i82875p_probe1()
434 pvt->ovrfl_window = ovrfl_window; in i82875p_probe1()
496 struct i82875p_pvt *pvt = NULL; in i82875p_remove_one() local
506 pvt = (struct i82875p_pvt *)mci->pvt_info; in i82875p_remove_one()
508 if (pvt->ovrfl_window) in i82875p_remove_one()
509 iounmap(pvt->ovrfl_window); in i82875p_remove_one()
511 if (pvt->ovrfl_pdev) { in i82875p_remove_one()
[all …]
Dedac_pci.c45 void *p = NULL, *pvt; in edac_pci_alloc_ctl_info() local
51 pvt = edac_align_ptr(&p, 1, sz_pvt); in edac_pci_alloc_ctl_info()
52 size = ((unsigned long)pvt) + sz_pvt; in edac_pci_alloc_ctl_info()
60 pvt = sz_pvt ? ((char *)pci) + ((unsigned long)pvt) : NULL; in edac_pci_alloc_ctl_info()
62 pci->pvt_info = pvt; in edac_pci_alloc_ctl_info()
Di82975x_edac.c477 struct i82975x_pvt *pvt; in i82975x_probe1() local
551 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, sizeof(*pvt)); in i82975x_probe1()
569 pvt = (struct i82975x_pvt *) mci->pvt_info; in i82975x_probe1()
570 pvt->mch_window = mch_window; in i82975x_probe1()
616 struct i82975x_pvt *pvt; in i82975x_remove_one() local
624 pvt = mci->pvt_info; in i82975x_remove_one()
625 if (pvt->mch_window) in i82975x_remove_one()
626 iounmap( pvt->mch_window ); in i82975x_remove_one()
Dedac_device.c83 void *pvt, *p; in edac_device_alloc_ctl_info() local
118 pvt = edac_align_ptr(&p, sz_private, 1); in edac_device_alloc_ctl_info()
124 total_size = ((unsigned long)pvt) + sz_private; in edac_device_alloc_ctl_info()
144 pvt = sz_private ? (((char *)dev_ctl) + ((unsigned long)pvt)) : NULL; in edac_device_alloc_ctl_info()
150 dev_ctl->pvt_info = pvt; in edac_device_alloc_ctl_info()
160 dev_ctl, pvt + sz_private); in edac_device_alloc_ctl_info()
Damd64_edac_dbg.c9 struct amd64_pvt *pvt = mci->pvt_info; \
10 return sprintf(data, "0x%016llx\n", (u64)pvt->reg); \
Dedac_mc.c280 void *pvt, *p, *ptr = NULL; in edac_mc_alloc() local
316 pvt = edac_align_ptr(&ptr, sz_pvt, 1); in edac_mc_alloc()
317 size = ((unsigned long)pvt) + sz_pvt; in edac_mc_alloc()
337 pvt = sz_pvt ? (((char *)mci) + ((unsigned long)pvt)) : NULL; in edac_mc_alloc()
342 mci->pvt_info = pvt; in edac_mc_alloc()
/linux-4.4.14/drivers/gpu/drm/omapdrm/
Dtcm-sita.c83 struct sita_pvt *pvt; in sita_init() local
91 pvt = kmalloc(sizeof(*pvt), GFP_KERNEL); in sita_init()
92 if (!tcm || !pvt) in sita_init()
96 memset(pvt, 0, sizeof(*pvt)); in sita_init()
105 tcm->pvt = (void *)pvt; in sita_init()
107 spin_lock_init(&(pvt->lock)); in sita_init()
110 pvt->map = kmalloc(sizeof(*pvt->map) * tcm->width, GFP_KERNEL); in sita_init()
111 if (!pvt->map) in sita_init()
115 pvt->map[i] = in sita_init()
116 kmalloc(sizeof(**pvt->map) * tcm->height, in sita_init()
[all …]
Dtcm.h68 void *pvt; member
/linux-4.4.14/sound/pci/asihpi/
Dhpidspcd.c83 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()
Dhpidspcd.h65 struct dsp_code_private *pvt; member
/linux-4.4.14/drivers/s390/crypto/
Dzcrypt_cca_key.h286 struct cca_pvt_ext_CRT_sec pvt; in zcrypt_type6_crt_key() member
314 key->pvt.section_identifier = CCA_PVT_EXT_CRT_SEC_ID_PVT; in zcrypt_type6_crt_key()
315 key->pvt.section_length = sizeof(key->pvt) + key_len; in zcrypt_type6_crt_key()
316 key->pvt.key_format = CCA_PVT_EXT_CRT_SEC_FMT_CL; in zcrypt_type6_crt_key()
317 key->pvt.key_use_flags[0] = CCA_PVT_USAGE_ALL; in zcrypt_type6_crt_key()
318 key->pvt.p_len = key->pvt.dp_len = key->pvt.u_len = long_len; in zcrypt_type6_crt_key()
319 key->pvt.q_len = key->pvt.dq_len = short_len; in zcrypt_type6_crt_key()
320 key->pvt.mod_len = crt->inputdatalength; in zcrypt_type6_crt_key()
321 key->pvt.pad_len = pad_len; in zcrypt_type6_crt_key()
/linux-4.4.14/arch/s390/kernel/
Dcache.c162 unsigned int level, idx, pvt; in populate_cache_leaves() local
173 pvt = (ct.ci[level].scope == CACHE_SCOPE_PRIVATE) ? 1 : 0; in populate_cache_leaves()
176 ci_leaf_init(this_leaf++, pvt, CACHE_TYPE_DATA, level, cpu); in populate_cache_leaves()
177 ci_leaf_init(this_leaf++, pvt, CACHE_TYPE_INST, level, cpu); in populate_cache_leaves()
179 ci_leaf_init(this_leaf++, pvt, ctype, level, cpu); in populate_cache_leaves()