Home
last modified time | relevance | path

Searched refs:max_avail (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/net/netfilter/ipvs/
H A Dip_vs_conn.c1484 int max_avail; in ip_vs_conn_init() local
1493 max_avail = order_base_2(totalram_pages()) + PAGE_SHIFT; in ip_vs_conn_init()
1494 max_avail -= 2; /* ~4 in hash row */ in ip_vs_conn_init()
1495 max_avail -= 1; /* IPVS up to 1/2 of mem */ in ip_vs_conn_init()
1496 max_avail -= order_base_2(sizeof(struct ip_vs_conn)); in ip_vs_conn_init()
1497 max = clamp(max_avail, min, max); in ip_vs_conn_init()
/openbmc/linux/fs/btrfs/
H A Dsuper.c1893 if (dev_info1->max_avail > dev_info2->max_avail) in btrfs_cmp_device_free_bytes()
1895 else if (dev_info1->max_avail < dev_info2->max_avail) in btrfs_cmp_device_free_bytes()
1989 devices_info[i].max_avail = avail_space; in btrfs_calc_avail_data_space()
2004 if (devices_info[i].max_avail >= min_stripe_size) { in btrfs_calc_avail_data_space()
2008 avail_space += devices_info[i].max_avail * num_stripes; in btrfs_calc_avail_data_space()
2009 alloc_size = devices_info[i].max_avail; in btrfs_calc_avail_data_space()
2011 devices_info[j].max_avail -= alloc_size; in btrfs_calc_avail_data_space()
H A Dvolumes.c5095 if (di_a->max_avail > di_b->max_avail) in btrfs_cmp_device_info()
5097 if (di_a->max_avail < di_b->max_avail) in btrfs_cmp_device_info()
5245 u64 max_avail; in gather_device_info() local
5274 &max_avail); in gather_device_info()
5279 max_avail = dev_extent_want; in gather_device_info()
5281 if (max_avail < ctl->dev_extent_min) { in gather_device_info()
5285 __func__, device->devid, max_avail, in gather_device_info()
5296 devices_info[ndevs].max_avail = max_avail; in gather_device_info()
5325 ctl->stripe_size = div_u64(devices_info[ctl->ndevs - 1].max_avail, in decide_stripe_size_regular()
5370 ASSERT(devices_info[ctl->ndevs - 1].max_avail == ctl->dev_extent_min); in decide_stripe_size_zoned()
H A Dvolumes.h500 u64 max_avail; member
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/
H A Dsge.c228 unsigned int max_avail; /* max bits to be sent to any port */ member
315 s->max_avail = max(4096U, p->mtu + 16 + 14 + 4); in t1_sched_update_parms()
318 s->max_avail = 16384; in t1_sched_update_parms()
324 p->speed, s->max_avail, max_avail_segs, in t1_sched_update_parms()
341 s->max_avail = val;
409 p->avail = min(p->avail + delta_avail, s->max_avail); in sched_update_avail()