Searched refs:weight (Results 1 – 13 of 13) sorted by relevance
| /fs/bcachefs/ |
| A D | mean_and_variance.c | 113 s64 x, bool initted, u8 weight) in mean_and_variance_weighted_update() argument 116 u8 w = weight; in mean_and_variance_weighted_update() 141 u8 weight) in mean_and_variance_weighted_get_mean() argument 143 return fast_divpow2(s.mean, weight); in mean_and_variance_weighted_get_mean() 153 u8 weight) in mean_and_variance_weighted_get_variance() argument 156 return s.variance >> weight; in mean_and_variance_weighted_get_variance() 166 u8 weight) in mean_and_variance_weighted_get_stddev() argument 168 return int_sqrt64(mean_and_variance_weighted_get_variance(s, weight)); in mean_and_variance_weighted_get_stddev()
|
| A D | mean_and_variance_test.c | 93 unsigned weight, in do_mean_and_variance_test() argument 105 mean_and_variance_weighted_update(&vw, initial_value, false, weight); in do_mean_and_variance_test() 109 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(vw, weight), initial_value); in do_mean_and_variance_test() 110 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_stddev(vw, weight),0); in do_mean_and_variance_test() 115 mean_and_variance_weighted_update(&vw, data[i], true, weight); in do_mean_and_variance_test() 119 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(vw, weight), weighted_mean[i]); in do_mean_and_variance_test() 120 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_stddev(vw, weight),weighted_stddev[i]); in do_mean_and_variance_test()
|
| A D | mean_and_variance.h | 194 s64 v, bool initted, u8 weight); 197 u8 weight); 199 u8 weight); 201 u8 weight);
|
| A D | util.h | 235 #define ewma_add(ewma, val, weight) \ argument 238 typeof(weight) _weight = (weight); \
|
| /fs/afs/ |
| A D | vl_list.c | 204 bs.weight = afs_extract_le16(&b); in afs_extract_vlserver_list() 212 bs.name_len, bs.priority, bs.weight, in afs_extract_vlserver_list() 299 bs.weight > vllist->servers[j].weight) in afs_extract_vlserver_list() 312 vllist->servers[j].weight = bs.weight; in afs_extract_vlserver_list()
|
| A D | proc.c | 360 vlserver->name, entry->priority, entry->weight, in afs_proc_cell_vlservers_show()
|
| A D | internal.h | 459 u16 weight; /* Weight (as SRV) */ member
|
| /fs/dlm/ |
| A D | member.c | 335 memb->weight = node->weight; in dlm_add_member() 418 if (memb->weight) in make_member_array() 419 total += memb->weight; in make_member_array() 435 if (!all_zero && !memb->weight) in make_member_array() 441 w = memb->weight; in make_member_array()
|
| A D | config.c | 310 int weight; member 573 nd->weight = 1; /* default weight of 1 if none is set */ in make_node() 805 return sprintf(buf, "%d\n", config_item_to_node(item)->weight); in node_weight_show() 811 int rc = kstrtoint(buf, 0, &config_item_to_node(item)->weight); in node_weight_store() 819 CONFIGFS_ATTR(node_, weight); 912 node->weight = nd->weight; in dlm_config_nodes()
|
| A D | config.h | 19 int weight; member
|
| A D | dlm_internal.h | 110 int weight; member
|
| /fs/f2fs/ |
| A D | extent_cache.c | 861 unsigned int weight = sbi->last_age_weight; in __calculate_block_age() local 863 res = div_u64_rem(new, 100, &rem_new) * (100 - weight) in __calculate_block_age() 864 + div_u64_rem(old, 100, &rem_old) * weight; in __calculate_block_age() 867 res += rem_new * (100 - weight) / 100; in __calculate_block_age() 869 res += rem_old * weight / 100; in __calculate_block_age()
|
| /fs/xfs/ |
| A D | Kconfig | 201 lighter weight than XFS_DEBUG and does not modify algorithms and will
|
Completed in 37 milliseconds