lmc 2230 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t lmc:1; lmc 2264 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t lmc:1; lmc 2298 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t lmc:1; lmc 2334 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t lmc:1; lmc 2369 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t lmc:1; lmc 2405 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t lmc:1; lmc 2436 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t lmc:1; lmc 2472 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t lmc:1; lmc 284 drivers/edac/i10nm_base.c d->imc[i].lmc = i; lmc 647 drivers/edac/skx_base.c d->imc[i].lmc = i; lmc 318 drivers/edac/skx_common.c imc->src_id, imc->lmc, chan, dimmno); lmc 331 drivers/edac/skx_common.c dev_handle = ACPI_NFIT_BUILD_DEVICE_HANDLE(dimmno, chan, imc->lmc, lmc 366 drivers/edac/skx_common.c imc->src_id, imc->lmc, chan, dimmno); lmc 401 drivers/edac/skx_common.c imc->node_id, imc->lmc); lmc 455 drivers/edac/skx_common.c static struct mem_ctl_info *get_mci(int src_id, int lmc) lmc 459 drivers/edac/skx_common.c if (lmc > NUM_IMC - 1) { lmc 460 drivers/edac/skx_common.c skx_printk(KERN_ERR, "Bad lmc %d\n", lmc); lmc 466 drivers/edac/skx_common.c return d->imc[lmc].mci; lmc 469 drivers/edac/skx_common.c skx_printk(KERN_ERR, "No mci for src_id %d lmc %d\n", src_id, lmc); lmc 63 drivers/edac/skx_common.h u8 lmc; /* socket relative mc# */ lmc 292 drivers/edac/thunderx_edac.c #define LMC_DEBUGFS_ENT(_field) DEBUGFS_FIELD_ATTR(lmc, _field) lmc 307 drivers/edac/thunderx_edac.c struct thunderx_lmc *lmc = file->private_data; lmc 315 drivers/edac/thunderx_edac.c writeq(val, lmc->regs + LMC_INT_W1S); lmc 326 drivers/edac/thunderx_edac.c struct thunderx_lmc *lmc = file->private_data; lmc 328 drivers/edac/thunderx_edac.c u64 lmc_int = readq(lmc->regs + LMC_INT); lmc 338 drivers/edac/thunderx_edac.c struct thunderx_lmc *lmc = arg; lmc 344 drivers/edac/thunderx_edac.c addr = (uintptr_t)page_address(lmc->mem); lmc 345 drivers/edac/thunderx_edac.c phys = (uintptr_t)page_to_phys(lmc->mem); lmc 348 drivers/edac/thunderx_edac.c lmc->parity_test &= ~(7ULL << 8); lmc 349 drivers/edac/thunderx_edac.c lmc->parity_test |= (cl_idx << 8); lmc 351 drivers/edac/thunderx_edac.c writeq(lmc->mask0, lmc->regs + LMC_CHAR_MASK0); lmc 352 drivers/edac/thunderx_edac.c writeq(lmc->mask2, lmc->regs + LMC_CHAR_MASK2); lmc 353 drivers/edac/thunderx_edac.c writeq(lmc->parity_test, lmc->regs + LMC_ECC_PARITY_TEST); lmc 355 drivers/edac/thunderx_edac.c readq(lmc->regs + LMC_CHAR_MASK0); lmc 356 drivers/edac/thunderx_edac.c readq(lmc->regs + LMC_CHAR_MASK2); lmc 357 drivers/edac/thunderx_edac.c readq(lmc->regs + LMC_ECC_PARITY_TEST); lmc 410 drivers/edac/thunderx_edac.c struct thunderx_lmc *lmc = file->private_data; lmc 416 drivers/edac/thunderx_edac.c atomic_set(&lmc->ecc_int, 0); lmc 418 drivers/edac/thunderx_edac.c lmc->mem = alloc_pages_node(lmc->node, GFP_KERNEL, 0); lmc 419 drivers/edac/thunderx_edac.c if (!lmc->mem) lmc 424 drivers/edac/thunderx_edac.c __free_pages(lmc->mem, 0); lmc 428 drivers/edac/thunderx_edac.c addr = page_address(lmc->mem); lmc 430 drivers/edac/thunderx_edac.c while (!atomic_read(&lmc->ecc_int) && timeout--) { lmc 431 drivers/edac/thunderx_edac.c stop_machine(inject_ecc_fn, lmc, NULL); lmc 444 drivers/edac/thunderx_edac.c __free_pages(lmc->mem, 0); lmc 491 drivers/edac/thunderx_edac.c static phys_addr_t thunderx_faddr_to_phys(u64 faddr, struct thunderx_lmc *lmc) lmc 496 drivers/edac/thunderx_edac.c addr |= lmc->node << 40; lmc 497 drivers/edac/thunderx_edac.c addr |= LMC_FADR_FDIMM(faddr) << lmc->dimm_lsb; lmc 498 drivers/edac/thunderx_edac.c addr |= LMC_FADR_FBUNK(faddr) << lmc->rank_lsb; lmc 499 drivers/edac/thunderx_edac.c addr |= LMC_FADR_FROW(faddr) << lmc->row_lsb; lmc 500 drivers/edac/thunderx_edac.c addr |= (LMC_FADR_FCOL(faddr) >> 4) << lmc->col_hi_lsb; lmc 502 drivers/edac/thunderx_edac.c bank = LMC_FADR_FBANK(faddr) << lmc->bank_lsb; lmc 504 drivers/edac/thunderx_edac.c if (lmc->xor_bank) lmc 505 drivers/edac/thunderx_edac.c bank ^= get_bits(addr, 12 + lmc->xbits, lmc->bank_width); lmc 507 drivers/edac/thunderx_edac.c addr |= bank << lmc->bank_lsb; lmc 509 drivers/edac/thunderx_edac.c xbits = PCI_FUNC(lmc->pdev->devfn); lmc 511 drivers/edac/thunderx_edac.c if (lmc->l2c_alias) lmc 512 drivers/edac/thunderx_edac.c xbits ^= get_bits(addr, 20, lmc->xbits) ^ lmc 513 drivers/edac/thunderx_edac.c get_bits(addr, 12, lmc->xbits); lmc 548 drivers/edac/thunderx_edac.c struct thunderx_lmc *lmc = mci->pvt_info; lmc 550 drivers/edac/thunderx_edac.c unsigned long head = ring_pos(lmc->ring_head, ARRAY_SIZE(lmc->err_ctx)); lmc 551 drivers/edac/thunderx_edac.c struct lmc_err_ctx *ctx = &lmc->err_ctx[head]; lmc 553 drivers/edac/thunderx_edac.c writeq(0, lmc->regs + LMC_CHAR_MASK0); lmc 554 drivers/edac/thunderx_edac.c writeq(0, lmc->regs + LMC_CHAR_MASK2); lmc 555 drivers/edac/thunderx_edac.c writeq(0x2, lmc->regs + LMC_ECC_PARITY_TEST); lmc 557 drivers/edac/thunderx_edac.c ctx->reg_int = readq(lmc->regs + LMC_INT); lmc 558 drivers/edac/thunderx_edac.c ctx->reg_fadr = readq(lmc->regs + LMC_FADR); lmc 559 drivers/edac/thunderx_edac.c ctx->reg_nxm_fadr = readq(lmc->regs + LMC_NXM_FADR); lmc 560 drivers/edac/thunderx_edac.c ctx->reg_scram_fadr = readq(lmc->regs + LMC_SCRAM_FADR); lmc 561 drivers/edac/thunderx_edac.c ctx->reg_ecc_synd = readq(lmc->regs + LMC_ECC_SYND); lmc 563 drivers/edac/thunderx_edac.c lmc->ring_head++; lmc 565 drivers/edac/thunderx_edac.c atomic_set(&lmc->ecc_int, 1); lmc 568 drivers/edac/thunderx_edac.c writeq(ctx->reg_int, lmc->regs + LMC_INT); lmc 576 drivers/edac/thunderx_edac.c struct thunderx_lmc *lmc = mci->pvt_info; lmc 593 drivers/edac/thunderx_edac.c while (CIRC_CNT(lmc->ring_head, lmc->ring_tail, lmc 594 drivers/edac/thunderx_edac.c ARRAY_SIZE(lmc->err_ctx))) { lmc 595 drivers/edac/thunderx_edac.c tail = ring_pos(lmc->ring_tail, ARRAY_SIZE(lmc->err_ctx)); lmc 597 drivers/edac/thunderx_edac.c ctx = &lmc->err_ctx[tail]; lmc 599 drivers/edac/thunderx_edac.c dev_dbg(&lmc->pdev->dev, "LMC_INT: %016llx\n", lmc 601 drivers/edac/thunderx_edac.c dev_dbg(&lmc->pdev->dev, "LMC_FADR: %016llx\n", lmc 603 drivers/edac/thunderx_edac.c dev_dbg(&lmc->pdev->dev, "LMC_NXM_FADR: %016llx\n", lmc 605 drivers/edac/thunderx_edac.c dev_dbg(&lmc->pdev->dev, "LMC_SCRAM_FADR: %016llx\n", lmc 607 drivers/edac/thunderx_edac.c dev_dbg(&lmc->pdev->dev, "LMC_ECC_SYND: %016llx\n", lmc 621 drivers/edac/thunderx_edac.c phys_addr = thunderx_faddr_to_phys(ctx->reg_fadr, lmc); lmc 634 drivers/edac/thunderx_edac.c lmc->ring_tail++; lmc 664 drivers/edac/thunderx_edac.c struct thunderx_lmc *lmc; lmc 694 drivers/edac/thunderx_edac.c lmc = mci->pvt_info; lmc 698 drivers/edac/thunderx_edac.c lmc->regs = pcim_iomap_table(pdev)[0]; lmc 700 drivers/edac/thunderx_edac.c lmc_control = readq(lmc->regs + LMC_CONTROL); lmc 701 drivers/edac/thunderx_edac.c lmc_ddr_pll_ctl = readq(lmc->regs + LMC_DDR_PLL_CTL); lmc 702 drivers/edac/thunderx_edac.c lmc_config = readq(lmc->regs + LMC_CONFIG); lmc 722 drivers/edac/thunderx_edac.c lmc->pdev = pdev; lmc 723 drivers/edac/thunderx_edac.c lmc->msix_ent.entry = 0; lmc 725 drivers/edac/thunderx_edac.c lmc->ring_head = 0; lmc 726 drivers/edac/thunderx_edac.c lmc->ring_tail = 0; lmc 728 drivers/edac/thunderx_edac.c ret = pci_enable_msix_exact(pdev, &lmc->msix_ent, 1); lmc 734 drivers/edac/thunderx_edac.c ret = devm_request_threaded_irq(&pdev->dev, lmc->msix_ent.vector, lmc 743 drivers/edac/thunderx_edac.c lmc->node = FIELD_GET(THUNDERX_NODE, pci_resource_start(pdev, 0)); lmc 745 drivers/edac/thunderx_edac.c lmc->xbits = thunderx_get_num_lmcs(lmc->node) >> 1; lmc 746 drivers/edac/thunderx_edac.c lmc->bank_width = (FIELD_GET(LMC_DDR_PLL_CTL_DDR4, lmc_ddr_pll_ctl) && lmc 749 drivers/edac/thunderx_edac.c lmc->pbank_lsb = (lmc_config >> 5) & 0xf; lmc 750 drivers/edac/thunderx_edac.c lmc->dimm_lsb = 28 + lmc->pbank_lsb + lmc->xbits; lmc 751 drivers/edac/thunderx_edac.c lmc->rank_lsb = lmc->dimm_lsb; lmc 752 drivers/edac/thunderx_edac.c lmc->rank_lsb -= FIELD_GET(LMC_CONFIG_RANK_ENA, lmc_config) ? 1 : 0; lmc 753 drivers/edac/thunderx_edac.c lmc->bank_lsb = 7 + lmc->xbits; lmc 754 drivers/edac/thunderx_edac.c lmc->row_lsb = 14 + LMC_CONFIG_ROW_LSB(lmc_config) + lmc->xbits; lmc 756 drivers/edac/thunderx_edac.c lmc->col_hi_lsb = lmc->bank_lsb + lmc->bank_width; lmc 758 drivers/edac/thunderx_edac.c lmc->xor_bank = lmc_control & LMC_CONTROL_XOR_BANK; lmc 760 drivers/edac/thunderx_edac.c l2c_ioaddr = ioremap(L2C_CTL | FIELD_PREP(THUNDERX_NODE, lmc->node), PAGE_SIZE); lmc 767 drivers/edac/thunderx_edac.c lmc->l2c_alias = !(readq(l2c_ioaddr) & L2C_CTL_DISIDXALIAS); lmc 777 drivers/edac/thunderx_edac.c lmc_int = readq(lmc->regs + LMC_INT); lmc 778 drivers/edac/thunderx_edac.c writeq(lmc_int, lmc->regs + LMC_INT); lmc 780 drivers/edac/thunderx_edac.c writeq(LMC_INT_ENA_ALL, lmc->regs + LMC_INT_ENA_W1S); lmc 785 drivers/edac/thunderx_edac.c lmc, lmc 806 drivers/edac/thunderx_edac.c struct thunderx_lmc *lmc = mci->pvt_info; lmc 808 drivers/edac/thunderx_edac.c writeq(LMC_INT_ENA_ALL, lmc->regs + LMC_INT_ENA_W1C); lmc 1149 drivers/infiniband/core/cache.c u8 *lmc) lmc 1158 drivers/infiniband/core/cache.c *lmc = device->port_data[port_num].cache.lmc; lmc 1442 drivers/infiniband/core/cache.c device->port_data[port].cache.lmc = tprops->lmc; lmc 1917 drivers/infiniband/core/mad.c u8 lmc; lmc 1939 drivers/infiniband/core/mad.c if (ib_get_cached_lmc(device, port_num, &lmc)) lmc 1941 drivers/infiniband/core/mad.c return (!lmc || !((rdma_ah_get_path_bits(&attr) ^ lmc 1943 drivers/infiniband/core/mad.c ((1 << lmc) - 1))); lmc 313 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_LMC, attr.lmc)) lmc 2235 drivers/infiniband/core/sa_query.c new_ah->src_path_mask = (1 << port_attr.lmc) - 1; lmc 197 drivers/infiniband/core/sysfs.c return sprintf(buf, "%d\n", attr.lmc); lmc 157 drivers/infiniband/core/uverbs_std_types_device.c resp->lmc = attr->lmc; lmc 242 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->lmc = 0; lmc 333 drivers/infiniband/hw/efa/efa_verbs.c props->lmc = 1; lmc 10135 drivers/infiniband/hw/hfi1/chip.c u32 mask = ~((1U << ppd->lmc) - 1); lmc 1256 drivers/infiniband/hw/hfi1/driver.c int hfi1_set_lid(struct hfi1_pportdata *ppd, u32 lid, u8 lmc) lmc 1261 drivers/infiniband/hw/hfi1/driver.c ppd->lmc = lmc; lmc 1430 drivers/infiniband/hw/hfi1/driver.c if ((packet->dlid & ~((1 << ppd->lmc) - 1)) != ppd->lid) lmc 853 drivers/infiniband/hw/hfi1/hfi.h u8 lmc; lmc 1807 drivers/infiniband/hw/hfi1/hfi.h int hfi1_set_lid(struct hfi1_pportdata *ppd, u32 lid, u8 lmc); lmc 886 drivers/infiniband/hw/hfi1/mad.c pi->mkeyprotect_lmc = (ibp->rvp.mkeyprot << 6) | ppd->lmc; lmc 1422 drivers/infiniband/hw/hfi1/mad.c ppd->lmc != (pi->mkeyprotect_lmc & OPA_PI_MASK_LMC)) { lmc 1425 drivers/infiniband/hw/hfi1/mad.c if (ppd->lmc != (pi->mkeyprotect_lmc & OPA_PI_MASK_LMC)) lmc 1356 drivers/infiniband/hw/hfi1/rc.c ((1 << ppd->lmc) - 1)), lmc 336 drivers/infiniband/hw/hfi1/ruc.c ((1 << ppd->lmc) - 1)); lmc 551 drivers/infiniband/hw/hfi1/ruc.c ~((1 << ps.ppd->lmc) - 1)) == lmc 561 drivers/infiniband/hw/hfi1/ruc.c ~((1 << ps.ppd->lmc) - 1)) == lmc 3278 drivers/infiniband/hw/hfi1/tid_rdma.c if ((rdma_ah_get_dlid(&qp->remote_ah_attr) & ~((1 << ppd->lmc) - 1)) == lmc 118 drivers/infiniband/hw/hfi1/ud.c ((1 << ppd->lmc) - 1)); lmc 250 drivers/infiniband/hw/hfi1/ud.c ((1 << ppd->lmc) - 1))) & U16_MAX; lmc 255 drivers/infiniband/hw/hfi1/ud.c wc.dlid_path_bits = rdma_ah_get_dlid(ah_attr) & ((1 << ppd->lmc) - 1); lmc 359 drivers/infiniband/hw/hfi1/ud.c ((1 << ppd->lmc) - 1); lmc 449 drivers/infiniband/hw/hfi1/ud.c ((1 << ppd->lmc) - 1)); lmc 522 drivers/infiniband/hw/hfi1/ud.c lid = rdma_ah_get_dlid(ah_attr) & ~((1 << ppd->lmc) - 1); lmc 1061 drivers/infiniband/hw/hfi1/ud.c dlid & ((1 << ppd_from_ibp(ibp)->lmc) - 1); lmc 1420 drivers/infiniband/hw/hfi1/verbs.c props->lmc = ppd->lmc; lmc 685 drivers/infiniband/hw/mlx4/main.c props->lmc = out_mad->data[34] & 0x7; lmc 562 drivers/infiniband/hw/mlx5/mad.c props->lmc = out_mad->data[34] & 0x7; lmc 1320 drivers/infiniband/hw/mlx5/main.c props->lmc = rep->lmc; lmc 163 drivers/infiniband/hw/mthca/mthca_provider.c props->lmc = out_mad->data[34] & 0x7; lmc 174 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c props->lmc = 0; lmc 233 drivers/infiniband/hw/qedr/verbs.c attr->lmc = 0; lmc 620 drivers/infiniband/hw/qib/qib.h u8 lmc; lmc 320 drivers/infiniband/hw/qib/qib_driver.c lid &= ~((1 << ppd->lmc) - 1); lmc 637 drivers/infiniband/hw/qib/qib_driver.c int qib_set_lid(struct qib_pportdata *ppd, u32 lid, u8 lmc) lmc 642 drivers/infiniband/hw/qib/qib_driver.c ppd->lmc = lmc; lmc 645 drivers/infiniband/hw/qib/qib_driver.c lid | (~((1U << lmc) - 1)) << 16); lmc 513 drivers/infiniband/hw/qib/qib_mad.c pip->mkeyprot_resv_lmc = (ibp->rvp.mkeyprot << 6) | ppd->lmc; lmc 698 drivers/infiniband/hw/qib/qib_mad.c else if (ppd->lid != lid || ppd->lmc != (pip->mkeyprot_resv_lmc & 7)) { lmc 701 drivers/infiniband/hw/qib/qib_mad.c if (ppd->lmc != (pip->mkeyprot_resv_lmc & 7)) lmc 274 drivers/infiniband/hw/qib/qib_ruc.c ~((1 << ppd->lmc) - 1)) == ppd->lid) { lmc 96 drivers/infiniband/hw/qib/qib_ud.c ((1 << ppd->lmc) - 1)); lmc 209 drivers/infiniband/hw/qib/qib_ud.c ((1 << ppd->lmc) - 1)); lmc 211 drivers/infiniband/hw/qib/qib_ud.c wc.dlid_path_bits = rdma_ah_get_dlid(ah_attr) & ((1 << ppd->lmc) - 1); lmc 283 drivers/infiniband/hw/qib/qib_ud.c lid = rdma_ah_get_dlid(ah_attr) & ~((1 << ppd->lmc) - 1); lmc 357 drivers/infiniband/hw/qib/qib_ud.c ((1 << ppd->lmc) - 1); lmc 574 drivers/infiniband/hw/qib/qib_ud.c dlid & ((1 << ppd_from_ibp(ibp)->lmc) - 1); lmc 293 drivers/infiniband/hw/qib/qib_verbs.c lid &= ~((1 << ppd->lmc) - 1); lmc 1203 drivers/infiniband/hw/qib/qib_verbs.c props->lmc = ppd->lmc; lmc 353 drivers/infiniband/hw/usnic/usnic_ib_verbs.c props->lmc = 1; lmc 165 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c props->lmc = resp->attrs.lmc; lmc 173 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h u8 lmc; lmc 137 drivers/infiniband/sw/rxe/rxe.c port->attr.lmc = RXE_PORT_LMC; lmc 720 drivers/net/ethernet/mellanox/mlx5/core/vport.c rep->lmc = MLX5_GET_PR(hca_vport_context, ctx, lmc); lmc 1081 drivers/net/ethernet/mellanox/mlx5/core/vport.c MLX5_SET(hca_vport_context, ctx, lmc, req->lmc); lmc 1019 drivers/staging/octeon/octeon-stubs.h uint64_t lmc:1; lmc 1053 drivers/staging/octeon/octeon-stubs.h uint64_t lmc:1; lmc 1088 drivers/staging/octeon/octeon-stubs.h uint64_t lmc:1; lmc 1119 drivers/staging/octeon/octeon-stubs.h uint64_t lmc:1; lmc 801 include/linux/mlx5/driver.h u8 lmc; lmc 3329 include/linux/mlx5/mlx5_ifc.h u8 lmc[0x3]; lmc 119 include/rdma/ib_cache.h u8 *lmc); lmc 657 include/rdma/ib_verbs.h u8 lmc; lmc 2143 include/rdma/ib_verbs.h u8 lmc; lmc 296 include/uapi/rdma/ib_user_verbs.h __u8 lmc; lmc 367 sound/isa/gus/interwave.c static unsigned int lmc[13] = lmc 401 sound/isa/gus/interwave.c for (i = 0; i < ARRAY_SIZE(lmc); i++) lmc 402 sound/isa/gus/interwave.c if (lmct == lmc[i]) { lmc 410 sound/isa/gus/interwave.c if (i >= ARRAY_SIZE(lmc) && !gus->gf1.enh_mode)