| /linux/lib/ |
| H A D | union_find.c | 41 if (root1->rank < root2->rank) { in uf_union() 43 } else if (root1->rank > root2->rank) { in uf_union() 47 root1->rank++; in uf_union()
|
| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | union_find.rst | 51 unsigned int rank; 54 其中parent为当前节点的父节点,rank为当前树的高度,在合并时将rank小的节点接到rank大 60 可以采用静态或初始化接口完成初始化操作。初始化时,parent 指针指向自身,rank 设置
|
| /linux/drivers/s390/cio/ |
| H A D | scm.c | 105 scm_attr(rank); 142 scmdev->attrs.rank = sale->rank; in scmdev_setup() 146 scmdev->attrs.rank = sale->rank; in scmdev_setup() 164 changed = scmdev->attrs.rank != sale->rank || in scmdev_update() 166 scmdev->attrs.rank = sale->rank; in scmdev_update()
|
| /linux/drivers/edac/ |
| H A D | i5100_edac.c | 317 unsigned rank[I5100_MAX_RANK_INTERLEAVE]; member 355 /* map a rank/chan to a slot number on the mainboard */ 357 int chan, int rank) in i5100_rank_to_slot() argument 367 if (priv->dimm_csmap[i][j] == rank) in i5100_rank_to_slot() 409 /* convert csrow index into a rank (per channel -- 0..5) */ 430 unsigned rank, in i5100_handle_ce() argument 445 chan, rank, -1, in i5100_handle_ce() 452 unsigned rank, in i5100_handle_ue() argument 467 chan, rank, -1, in i5100_handle_ue() 481 unsigned rank; in i5100_read_log() local 777 u8 rank; i5100_init_dimm_layout() local 843 const unsigned int rank = i5100_csrow_to_rank(mci, dimm->idx); i5100_init_csrows() local [all...] |
| H A D | al_mc_edac.c | 65 u8 rank, u32 row, u8 bg, u8 bank, u16 column, in prepare_msg() argument 71 rank, row, bg, bank, column, syn0, syn1, syn2); in prepare_msg() 81 u8 rank, bg, bank; in handle_ce() local 100 rank = FIELD_GET(AL_MC_ECC_CE_ADDR0_RANK, ecccaddr0); in handle_ce() 108 rank, row, bg, bank, column, in handle_ce() 126 u8 rank, bg, bank; in handle_ue() local 145 rank = FIELD_GET(AL_MC_ECC_UE_ADDR0_RANK, eccuaddr0); in handle_ue() 153 rank, row, bg, bank, column, in handle_ue()
|
| H A D | i3200_edac.c | 137 u64 rank = ((log & I3200_ECCERRLOG_RANK_BITS) >> in eccerrlog_row() local 139 return rank | (channel * I3200_RANKS_PER_CHANNEL); in eccerrlog_row() 317 int channel, int rank) in drb_to_nr_pages() argument 321 n = drbs[channel][rank]; in drb_to_nr_pages() 325 if (rank > 0) in drb_to_nr_pages() 326 n -= drbs[channel][rank - 1]; in drb_to_nr_pages() 328 drbs[channel][rank] == drbs[channel][I3200_RANKS_PER_CHANNEL - 1]) in drb_to_nr_pages() 386 * The dram rank boundary (DRB) reg values are boundary addresses in i3200_probe1() 387 * for each DRAM rank with a granularity of 64MB. DRB regs are in i3200_probe1()
|
| H A D | octeon_edac-lmc.c | 32 unsigned long rank; member 94 fadr.cn61xx.fbunk = pvt->rank; in octeon_lmc_edac_poll_o2() 160 TEMPLATE_SHOW(rank); 161 TEMPLATE_STORE(rank); 203 static DEVICE_ATTR(rank, S_IRUGO | S_IWUSR,
|
| H A D | x38_edac.c | 301 bool stacked, int channel, int rank) in drb_to_nr_pages() argument 305 n = drbs[channel][rank]; in drb_to_nr_pages() 306 if (rank > 0) in drb_to_nr_pages() 307 n -= drbs[channel][rank - 1]; in drb_to_nr_pages() 308 if (stacked && (channel == 1) && drbs[channel][rank] == in drb_to_nr_pages() 369 * The dram rank boundary (DRB) reg values are boundary addresses in x38_probe1() 370 * for each DRAM rank with a granularity of 64MB. DRB regs are in x38_probe1()
|
| H A D | versalnet_edac.c | 92 u32 rank:2; member 374 err_addr |= (pinf.rank & BIT(0)) << (reg & MASK_0); in convert_to_physical() 375 pinf.rank >>= MC5_EACHBIT; in convert_to_physical() 376 err_addr |= (pinf.rank & BIT(0)) << FIELD_GET(MC5_RANK_1_MASK, reg); in convert_to_physical() 377 pinf.rank >>= MC5_EACHBIT; in convert_to_physical() 777 u32 num_chans, rank, dwidth, config; in init_one_mc() local 787 rank = 1 << FIELD_GET(MC5_RANK_MASK, config); in init_one_mc() 809 layers[0].size = rank; in init_one_mc()
|
| H A D | mem_repair.c | 91 MR_ATTR_SHOW(rank, get_rank, u32, "%u\n") 127 MR_ATTR_STORE(rank, set_rank, unsigned long, kstrtoul) in MR_ATTR_STORE() 302 [MR_RANK] = __ATTR_RW(rank),
|
| H A D | dmc520_edac.c | 108 u32 rank; member 246 info->rank = FIELD_GET(REG_FIELD_ERR_INFO_LOW_RANK, reg_val_low); in dmc520_get_dram_ecc_error_info() 381 info.rank, info.bank, in dmc520_handle_dram_ecc_errors() 387 mci, cnt, 0, 0, 0, info.rank, -1, -1, in dmc520_handle_dram_ecc_errors()
|
| H A D | cpc925_edac.c | 438 u32 bcnt, rank, col, bank, row; in cpc925_mc_get_pfn() local 444 rank = (mear & MEAR_RANK_MASK) >> MEAR_RANK_SHIFT; in cpc925_mc_get_pfn() 449 *csrow = rank; in cpc925_mc_get_pfn() 452 if (mci->csrows[rank]->first_page == 0) { in cpc925_mc_get_pfn() 460 pa = mci->csrows[rank]->first_page << PAGE_SHIFT; in cpc925_mc_get_pfn()
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-devices-edac | 86 What: /sys/devices/system/edac/mc/mc*/(dimm|rank)*/size 90 Description: This attribute file will display the size of dimm or rank. 92 stick. For rank*/size, this is the size, in MB for one rank 93 of the DIMM memory stick. On single rank memories (1R), this 94 is also the total size of the dimm. On dual rank (2R) memories, 97 What: /sys/devices/system/edac/mc/mc*/(dimm|rank)*/dimm_dev_type 104 What: /sys/devices/system/edac/mc/mc*/(dimm|rank)*/dimm_edac_mode 112 What: /sys/devices/system/edac/mc/mc*/(dimm|rank)*/dimm_label 127 What: /sys/devices/system/edac/mc/mc*/(dimm|rank)*/dimm_location 132 branch/channel/slot or channel/slot) of the dimm or rank. [all …]
|
| /linux/include/linux/ |
| H A D | union_find.h | 16 unsigned int rank; member 20 #define UF_INIT_NODE(node) {.parent = &node, .rank = 0} 32 node->rank = 0; in uf_node_init()
|
| /linux/Documentation/edac/ |
| H A D | memory_repair.rst | 55 sparing has cacheline/row/bank/rank sparing granularities. For example, in 56 rank memory-sparing mode, one memory rank serves as a spare for other ranks on 59 The spare rank is held in reserve and not used as active memory until 64 the content of a failing rank of DIMMs is copied to the spare rank. The 65 failing rank is then taken offline and the spare rank placed online for use as 66 active memory in place of the failed rank. 75 rank is replaced. 132 for this operation, cacheline/row/bank/rank sparing, vary in terms of the
|
| /linux/Documentation/core-api/ |
| H A D | union_find.rst | 37 the find operation, and using union by rank can reduce the time complexity 59 unsigned int rank; 63 The rank field represents the height of the current tree. During a union 64 operation, the tree with the smaller rank is attached under the tree with the 65 larger rank to maintain balance. 71 interface. Initialize the parent pointer to point to itself and set the rank 102 and then link the smaller node to the larger node based on the rank of the root
|
| /linux/drivers/s390/block/ |
| H A D | scm_blk.h | 66 u8 rank; in SCM_LOG_STATE() member 70 .rank = scmdev->attrs.rank, in SCM_LOG_STATE()
|
| /linux/drivers/memory/tegra/ |
| H A D | tegra210-emc-core.c | 59 #define TRIM_REG(chan, rank, reg, byte) \ argument 60 (((EMC_PMACRO_OB_DDLL_LONG_DQ_RANK ## rank ## _ ## reg ## \ 61 _OB_DDLL_LONG_DQ_RANK ## rank ## _BYTE ## byte ## _MASK & \ 63 rank ## _ ## reg ## _INDEX]) >> \ 64 EMC_PMACRO_OB_DDLL_LONG_DQ_RANK ## rank ## _ ## reg ## \ 65 _OB_DDLL_LONG_DQ_RANK ## rank ## _BYTE ## byte ## _SHIFT) \ 67 (((EMC_DATA_BRLSHFT_ ## rank ## _RANK ## rank ## _BYTE ## \ 70 _EMC_DATA_BRLSHFT_ ## rank ## _INDEX]) >> \ 71 EMC_DATA_BRLSHFT_ ## rank ## _RAN 74 CALC_TEMP(rank,reg,byte1,byte2,n) global() argument [all...] |
| /linux/Documentation/admin-guide/perf/ |
| H A D | ampere_cspmu.rst | 15 The PMU driver supports setting filters for "rank", "bank", and "threshold". 28 …/ # perf stat -a -e ampere_mcu_pmu_0/act_sent,bank=5,rank=3,threshold=2/,ampere_mcu_pmu_1/rd_sent/…
|
| /linux/drivers/cxl/core/ |
| H A D | trace.h | 480 __field(u8, rank) 502 __entry->rank = rec->media_hdr.rank; 525 "transaction_type='%s' channel=%u rank=%u " \ 536 __entry->channel, __entry->rank, __entry->device, 624 __field(u8, rank) /* Out of order to pack trace record */ 651 __entry->rank = rec->media_hdr.rank; 679 "transaction_type='%s' channel=%u rank=%u nibble_mask=%x " \ 691 __entry->channel, __entry->rank, __entr [all...] |
| H A D | edac.c | 909 u8 rank; member 969 rec->media_hdr.rank == attrbs->rank && in cxl_find_rec_dram() 988 rec->media_hdr.rank == attrbs->rank && in cxl_find_rec_dram() 1003 rec->media_hdr.rank == attrbs->rank && in cxl_find_rec_dram() 1013 rec->media_hdr.rank == attrbs->rank && in cxl_find_rec_dram() 1184 u8 rank; member 1251 u8 rank; member 1301 attrbs.rank = ctx->rank; in cxl_mem_get_rec_dram() 1390 sparing_pi.rank = cxl_sparing_ctx->rank; in cxl_mem_perform_sparing() 1444 CXL_SPARING_GET_ATTR(rank, u32) in CXL_SPARING_GET_ATTR() [all …]
|
| /linux/Documentation/filesystems/ |
| H A D | directory-locking.rst | 124 it should be possible to rank the filesystems so that directory operation 138 them in order of non-decreasing rank. Namely, 140 * rank ->i_rwsem of non-directories on given filesystem in inode pointer 142 * put ->i_rwsem of all directories on a filesystem at the same rank, 144 * put ->s_vfs_rename_mutex at rank lower than that of any ->i_rwsem 147 rank of those filesystems. 152 2. ->i_rwsem of directories on that NFS filesystem, same rank for all 156 5. ->i_rwsem of directories on the local filesystem, same rank for all 160 It's easy to verify that operations never take a lock with rank 168 contended locks in the minimal deadlock will be of the same rank,
|
| /linux/lib/zlib_deflate/ |
| H A D | deftree.c | 713 int rank; /* index in bl_order */ in send_all_trees() local 722 for (rank = 0; rank < blcodes; rank++) { in send_all_trees() 723 Tracev((stderr, "\nbl code %2d ", bl_order[rank])); in send_all_trees() 724 send_bits(s, s->bl_tree[bl_order[rank]].Len, 3); in send_all_trees()
|
| /linux/tools/verification/models/ |
| H A D | wip.dot | 12 { rank = min ;
|
| H A D | wwnr.dot | 12 { rank = min ;
|