Home
last modified time | relevance | path

Searched full:ca (Results 1 – 25 of 1217) sorted by relevance

12345678910>>...49

/kernel/linux/linux-5.10/net/ipv4/
Dtcp_htcp.c49 static inline u32 htcp_cong_time(const struct htcp *ca) in htcp_cong_time() argument
51 return jiffies - ca->last_cong; in htcp_cong_time()
54 static inline u32 htcp_ccount(const struct htcp *ca) in htcp_ccount() argument
56 return htcp_cong_time(ca) / ca->minRTT; in htcp_ccount()
59 static inline void htcp_reset(struct htcp *ca) in htcp_reset() argument
61 ca->undo_last_cong = ca->last_cong; in htcp_reset()
62 ca->undo_maxRTT = ca->maxRTT; in htcp_reset()
63 ca->undo_old_maxB = ca->old_maxB; in htcp_reset()
65 ca->last_cong = jiffies; in htcp_reset()
70 struct htcp *ca = inet_csk_ca(sk); in htcp_cwnd_undo() local
[all …]
Dtcp_cdg.c142 struct cdg *ca = inet_csk_ca(sk); in tcp_cdg_hystart_update() local
145 ca->delay_min = min_not_zero(ca->delay_min, ca->rtt.min); in tcp_cdg_hystart_update()
146 if (ca->delay_min == 0) in tcp_cdg_hystart_update()
152 if (ca->last_ack == 0 || !tcp_is_cwnd_limited(sk)) { in tcp_cdg_hystart_update()
153 ca->last_ack = now_us; in tcp_cdg_hystart_update()
154 ca->round_start = now_us; in tcp_cdg_hystart_update()
155 } else if (before(now_us, ca->last_ack + 3000)) { in tcp_cdg_hystart_update()
156 u32 base_owd = max(ca->delay_min / 2U, 125U); in tcp_cdg_hystart_update()
158 ca->last_ack = now_us; in tcp_cdg_hystart_update()
159 if (after(now_us, ca->round_start + base_owd)) { in tcp_cdg_hystart_update()
[all …]
Dtcp_nv.c95 u8 nv_min_cwnd; /* nv won't make a ca decision if cwnd is
101 u8 nv_rtt_cnt; /* RTTs without making ca decision */;
124 static inline void tcpnv_reset(struct tcpnv *ca, struct sock *sk) in tcpnv_reset() argument
128 ca->nv_reset = 0; in tcpnv_reset()
129 ca->nv_no_cong_cnt = 0; in tcpnv_reset()
130 ca->nv_rtt_cnt = 0; in tcpnv_reset()
131 ca->nv_last_rtt = 0; in tcpnv_reset()
132 ca->nv_rtt_max_rate = 0; in tcpnv_reset()
133 ca->nv_rtt_start_seq = tp->snd_una; in tcpnv_reset()
134 ca->nv_eval_call_cnt = 0; in tcpnv_reset()
[all …]
Dtcp_cong.c40 struct tcp_congestion_ops *ca = tcp_ca_find(name); in tcp_ca_find_autoload() local
43 if (!ca && capable(CAP_NET_ADMIN)) { in tcp_ca_find_autoload()
47 ca = tcp_ca_find(name); in tcp_ca_find_autoload()
50 return ca; in tcp_ca_find_autoload()
70 int tcp_register_congestion_control(struct tcp_congestion_ops *ca) in tcp_register_congestion_control() argument
75 if (!ca->ssthresh || !ca->undo_cwnd || in tcp_register_congestion_control()
76 !(ca->cong_avoid || ca->cong_control)) { in tcp_register_congestion_control()
77 pr_err("%s does not implement required ops\n", ca->name); in tcp_register_congestion_control()
81 ca->key = jhash(ca->name, sizeof(ca->name), strlen(ca->name)); in tcp_register_congestion_control()
84 if (ca->key == TCP_CA_UNSPEC || tcp_ca_find_key(ca->key)) { in tcp_register_congestion_control()
[all …]
Dtcp_cubic.c105 static inline void bictcp_reset(struct bictcp *ca) in bictcp_reset() argument
107 ca->cnt = 0; in bictcp_reset()
108 ca->last_max_cwnd = 0; in bictcp_reset()
109 ca->last_cwnd = 0; in bictcp_reset()
110 ca->last_time = 0; in bictcp_reset()
111 ca->bic_origin_point = 0; in bictcp_reset()
112 ca->bic_K = 0; in bictcp_reset()
113 ca->delay_min = 0; in bictcp_reset()
114 ca->epoch_start = 0; in bictcp_reset()
115 ca->ack_cnt = 0; in bictcp_reset()
[all …]
Dtcp_bic.c60 static inline void bictcp_reset(struct bictcp *ca) in bictcp_reset() argument
62 ca->cnt = 0; in bictcp_reset()
63 ca->last_max_cwnd = 0; in bictcp_reset()
64 ca->last_cwnd = 0; in bictcp_reset()
65 ca->last_time = 0; in bictcp_reset()
66 ca->epoch_start = 0; in bictcp_reset()
67 ca->delayed_ack = 2 << ACK_RATIO_SHIFT; in bictcp_reset()
72 struct bictcp *ca = inet_csk_ca(sk); in bictcp_init() local
74 bictcp_reset(ca); in bictcp_init()
83 static inline void bictcp_update(struct bictcp *ca, u32 cwnd) in bictcp_update() argument
[all …]
Dtcp_illinois.c60 struct illinois *ca = inet_csk_ca(sk); in rtt_reset() local
62 ca->end_seq = tp->snd_nxt; in rtt_reset()
63 ca->cnt_rtt = 0; in rtt_reset()
64 ca->sum_rtt = 0; in rtt_reset()
71 struct illinois *ca = inet_csk_ca(sk); in tcp_illinois_init() local
73 ca->alpha = ALPHA_MAX; in tcp_illinois_init()
74 ca->beta = BETA_BASE; in tcp_illinois_init()
75 ca->base_rtt = 0x7fffffff; in tcp_illinois_init()
76 ca->max_rtt = 0; in tcp_illinois_init()
78 ca->acked = 0; in tcp_illinois_init()
[all …]
/kernel/linux/linux-6.6/net/ipv4/
Dtcp_htcp.c49 static inline u32 htcp_cong_time(const struct htcp *ca) in htcp_cong_time() argument
51 return jiffies - ca->last_cong; in htcp_cong_time()
54 static inline u32 htcp_ccount(const struct htcp *ca) in htcp_ccount() argument
56 return htcp_cong_time(ca) / ca->minRTT; in htcp_ccount()
59 static inline void htcp_reset(struct htcp *ca) in htcp_reset() argument
61 ca->undo_last_cong = ca->last_cong; in htcp_reset()
62 ca->undo_maxRTT = ca->maxRTT; in htcp_reset()
63 ca->undo_old_maxB = ca->old_maxB; in htcp_reset()
65 ca->last_cong = jiffies; in htcp_reset()
70 struct htcp *ca = inet_csk_ca(sk); in htcp_cwnd_undo() local
[all …]
Dtcp_cdg.c142 struct cdg *ca = inet_csk_ca(sk); in tcp_cdg_hystart_update() local
145 ca->delay_min = min_not_zero(ca->delay_min, ca->rtt.min); in tcp_cdg_hystart_update()
146 if (ca->delay_min == 0) in tcp_cdg_hystart_update()
152 if (ca->last_ack == 0 || !tcp_is_cwnd_limited(sk)) { in tcp_cdg_hystart_update()
153 ca->last_ack = now_us; in tcp_cdg_hystart_update()
154 ca->round_start = now_us; in tcp_cdg_hystart_update()
155 } else if (before(now_us, ca->last_ack + 3000)) { in tcp_cdg_hystart_update()
156 u32 base_owd = max(ca->delay_min / 2U, 125U); in tcp_cdg_hystart_update()
158 ca->last_ack = now_us; in tcp_cdg_hystart_update()
159 if (after(now_us, ca->round_start + base_owd)) { in tcp_cdg_hystart_update()
[all …]
Dtcp_nv.c94 u8 nv_min_cwnd; /* nv won't make a ca decision if cwnd is
100 u8 nv_rtt_cnt; /* RTTs without making ca decision */;
123 static inline void tcpnv_reset(struct tcpnv *ca, struct sock *sk) in tcpnv_reset() argument
127 ca->nv_reset = 0; in tcpnv_reset()
128 ca->nv_no_cong_cnt = 0; in tcpnv_reset()
129 ca->nv_rtt_cnt = 0; in tcpnv_reset()
130 ca->nv_last_rtt = 0; in tcpnv_reset()
131 ca->nv_rtt_max_rate = 0; in tcpnv_reset()
132 ca->nv_rtt_start_seq = tp->snd_una; in tcpnv_reset()
133 ca->nv_eval_call_cnt = 0; in tcpnv_reset()
[all …]
Dtcp_cong.c51 struct tcp_congestion_ops *ca = tcp_ca_find(name); in tcp_ca_find_autoload() local
54 if (!ca && capable(CAP_NET_ADMIN)) { in tcp_ca_find_autoload()
58 ca = tcp_ca_find(name); in tcp_ca_find_autoload()
61 return ca; in tcp_ca_find_autoload()
77 int tcp_validate_congestion_control(struct tcp_congestion_ops *ca) in tcp_validate_congestion_control() argument
80 if (!ca->ssthresh || !ca->undo_cwnd || in tcp_validate_congestion_control()
81 !(ca->cong_avoid || ca->cong_control)) { in tcp_validate_congestion_control()
82 pr_err("%s does not implement required ops\n", ca->name); in tcp_validate_congestion_control()
92 int tcp_register_congestion_control(struct tcp_congestion_ops *ca) in tcp_register_congestion_control() argument
96 ret = tcp_validate_congestion_control(ca); in tcp_register_congestion_control()
[all …]
Dtcp_bic.c60 static inline void bictcp_reset(struct bictcp *ca) in bictcp_reset() argument
62 ca->cnt = 0; in bictcp_reset()
63 ca->last_max_cwnd = 0; in bictcp_reset()
64 ca->last_cwnd = 0; in bictcp_reset()
65 ca->last_time = 0; in bictcp_reset()
66 ca->epoch_start = 0; in bictcp_reset()
67 ca->delayed_ack = 2 << ACK_RATIO_SHIFT; in bictcp_reset()
72 struct bictcp *ca = inet_csk_ca(sk); in bictcp_init() local
74 bictcp_reset(ca); in bictcp_init()
83 static inline void bictcp_update(struct bictcp *ca, u32 cwnd) in bictcp_update() argument
[all …]
Dtcp_illinois.c60 struct illinois *ca = inet_csk_ca(sk); in rtt_reset() local
62 ca->end_seq = tp->snd_nxt; in rtt_reset()
63 ca->cnt_rtt = 0; in rtt_reset()
64 ca->sum_rtt = 0; in rtt_reset()
71 struct illinois *ca = inet_csk_ca(sk); in tcp_illinois_init() local
73 ca->alpha = ALPHA_MAX; in tcp_illinois_init()
74 ca->beta = BETA_BASE; in tcp_illinois_init()
75 ca->base_rtt = 0x7fffffff; in tcp_illinois_init()
76 ca->max_rtt = 0; in tcp_illinois_init()
78 ca->acked = 0; in tcp_illinois_init()
[all …]
Dtcp_cubic.c107 static inline void bictcp_reset(struct bictcp *ca) in bictcp_reset() argument
109 memset(ca, 0, offsetof(struct bictcp, unused)); in bictcp_reset()
110 ca->found = 0; in bictcp_reset()
121 struct bictcp *ca = inet_csk_ca(sk); in bictcp_hystart_reset() local
123 ca->round_start = ca->last_ack = bictcp_clock_us(sk); in bictcp_hystart_reset()
124 ca->end_seq = tp->snd_nxt; in bictcp_hystart_reset()
125 ca->curr_rtt = ~0U; in bictcp_hystart_reset()
126 ca->sample_cnt = 0; in bictcp_hystart_reset()
131 struct bictcp *ca = inet_csk_ca(sk); in cubictcp_init() local
133 bictcp_reset(ca); in cubictcp_init()
[all …]
/kernel/linux/linux-6.6/drivers/media/dvb-core/
Ddvb_ca_en50221.c79 /* Information on a CA slot */
112 /* Private CA-interface information */
125 /* number of slots supported by this CA interface */
137 /* Flag indicating if the CA device is open */
162 static void dvb_ca_private_free(struct dvb_ca_private *ca) in dvb_ca_private_free() argument
166 dvb_device_put(ca->dvbdev); in dvb_ca_private_free()
167 for (i = 0; i < ca->slot_count; i++) in dvb_ca_private_free()
168 vfree(ca->slot_info[i].rx_buffer.data); in dvb_ca_private_free()
170 kfree(ca->slot_info); in dvb_ca_private_free()
171 kfree(ca); in dvb_ca_private_free()
[all …]
/kernel/linux/linux-5.10/drivers/media/dvb-core/
Ddvb_ca_en50221.c79 /* Information on a CA slot */
112 /* Private CA-interface information */
125 /* number of slots supported by this CA interface */
137 /* Flag indicating if the CA device is open */
162 static void dvb_ca_private_free(struct dvb_ca_private *ca) in dvb_ca_private_free() argument
166 dvb_device_put(ca->dvbdev); in dvb_ca_private_free()
167 for (i = 0; i < ca->slot_count; i++) in dvb_ca_private_free()
168 vfree(ca->slot_info[i].rx_buffer.data); in dvb_ca_private_free()
170 kfree(ca->slot_info); in dvb_ca_private_free()
171 kfree(ca); in dvb_ca_private_free()
[all …]
/kernel/linux/linux-6.6/drivers/media/pci/mantis/
Dmantis_ca.c30 struct mantis_ca *ca = en50221->data; in mantis_ca_read_attr_mem() local
31 struct mantis_pci *mantis = ca->ca_priv; in mantis_ca_read_attr_mem()
38 return mantis_hif_read_mem(ca, addr); in mantis_ca_read_attr_mem()
43 struct mantis_ca *ca = en50221->data; in mantis_ca_write_attr_mem() local
44 struct mantis_pci *mantis = ca->ca_priv; in mantis_ca_write_attr_mem()
51 return mantis_hif_write_mem(ca, addr, data); in mantis_ca_write_attr_mem()
56 struct mantis_ca *ca = en50221->data; in mantis_ca_read_cam_ctl() local
57 struct mantis_pci *mantis = ca->ca_priv; in mantis_ca_read_cam_ctl()
64 return mantis_hif_read_iom(ca, addr); in mantis_ca_read_cam_ctl()
69 struct mantis_ca *ca = en50221->data; in mantis_ca_write_cam_ctl() local
[all …]
Dmantis_hif.c30 static int mantis_hif_sbuf_opdone_wait(struct mantis_ca *ca) in mantis_hif_sbuf_opdone_wait() argument
32 struct mantis_pci *mantis = ca->ca_priv; in mantis_hif_sbuf_opdone_wait()
35 if (wait_event_timeout(ca->hif_opdone_wq, in mantis_hif_sbuf_opdone_wait()
36 ca->hif_event & MANTIS_SBUF_OPDONE, in mantis_hif_sbuf_opdone_wait()
43 ca->hif_event &= ~MANTIS_SBUF_OPDONE; in mantis_hif_sbuf_opdone_wait()
47 static int mantis_hif_write_wait(struct mantis_ca *ca) in mantis_hif_write_wait() argument
49 struct mantis_pci *mantis = ca->ca_priv; in mantis_hif_write_wait()
53 if (wait_event_timeout(ca->hif_write_wq, in mantis_hif_write_wait()
77 int mantis_hif_read_mem(struct mantis_ca *ca, u32 addr) in mantis_hif_read_mem() argument
79 struct mantis_pci *mantis = ca->ca_priv; in mantis_hif_read_mem()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/mantis/
Dmantis_ca.c30 struct mantis_ca *ca = en50221->data; in mantis_ca_read_attr_mem() local
31 struct mantis_pci *mantis = ca->ca_priv; in mantis_ca_read_attr_mem()
38 return mantis_hif_read_mem(ca, addr); in mantis_ca_read_attr_mem()
43 struct mantis_ca *ca = en50221->data; in mantis_ca_write_attr_mem() local
44 struct mantis_pci *mantis = ca->ca_priv; in mantis_ca_write_attr_mem()
51 return mantis_hif_write_mem(ca, addr, data); in mantis_ca_write_attr_mem()
56 struct mantis_ca *ca = en50221->data; in mantis_ca_read_cam_ctl() local
57 struct mantis_pci *mantis = ca->ca_priv; in mantis_ca_read_cam_ctl()
64 return mantis_hif_read_iom(ca, addr); in mantis_ca_read_cam_ctl()
69 struct mantis_ca *ca = en50221->data; in mantis_ca_write_cam_ctl() local
[all …]
Dmantis_hif.c30 static int mantis_hif_sbuf_opdone_wait(struct mantis_ca *ca) in mantis_hif_sbuf_opdone_wait() argument
32 struct mantis_pci *mantis = ca->ca_priv; in mantis_hif_sbuf_opdone_wait()
35 if (wait_event_timeout(ca->hif_opdone_wq, in mantis_hif_sbuf_opdone_wait()
36 ca->hif_event & MANTIS_SBUF_OPDONE, in mantis_hif_sbuf_opdone_wait()
43 ca->hif_event &= ~MANTIS_SBUF_OPDONE; in mantis_hif_sbuf_opdone_wait()
47 static int mantis_hif_write_wait(struct mantis_ca *ca) in mantis_hif_write_wait() argument
49 struct mantis_pci *mantis = ca->ca_priv; in mantis_hif_write_wait()
53 if (wait_event_timeout(ca->hif_write_wq, in mantis_hif_write_wait()
77 int mantis_hif_read_mem(struct mantis_ca *ca, u32 addr) in mantis_hif_read_mem() argument
79 struct mantis_pci *mantis = ca->ca_priv; in mantis_hif_read_mem()
[all …]
/kernel/linux/linux-5.10/drivers/md/bcache/
Dalloc.c76 uint8_t bch_inc_gen(struct cache *ca, struct bucket *b) in bch_inc_gen() argument
80 ca->set->need_gc = max(ca->set->need_gc, bucket_gc_gen(b)); in bch_inc_gen()
81 WARN_ON_ONCE(ca->set->need_gc > BUCKET_GC_GEN_MAX); in bch_inc_gen()
88 struct cache *ca; in bch_rescale_priorities() local
106 ca = c->cache; in bch_rescale_priorities()
107 for_each_bucket(b, ca) in bch_rescale_priorities()
130 bool bch_can_invalidate_bucket(struct cache *ca, struct bucket *b) in bch_can_invalidate_bucket() argument
132 BUG_ON(!ca->set->gc_mark_valid); in bch_can_invalidate_bucket()
140 void __bch_invalidate_one_bucket(struct cache *ca, struct bucket *b) in __bch_invalidate_one_bucket() argument
142 lockdep_assert_held(&ca->set->bucket_lock); in __bch_invalidate_one_bucket()
[all …]
/kernel/linux/linux-6.6/drivers/md/bcache/
Dalloc.c76 uint8_t bch_inc_gen(struct cache *ca, struct bucket *b) in bch_inc_gen() argument
80 ca->set->need_gc = max(ca->set->need_gc, bucket_gc_gen(b)); in bch_inc_gen()
81 WARN_ON_ONCE(ca->set->need_gc > BUCKET_GC_GEN_MAX); in bch_inc_gen()
88 struct cache *ca; in bch_rescale_priorities() local
106 ca = c->cache; in bch_rescale_priorities()
107 for_each_bucket(b, ca) in bch_rescale_priorities()
130 bool bch_can_invalidate_bucket(struct cache *ca, struct bucket *b) in bch_can_invalidate_bucket() argument
132 BUG_ON(!ca->set->gc_mark_valid); in bch_can_invalidate_bucket()
140 void __bch_invalidate_one_bucket(struct cache *ca, struct bucket *b) in __bch_invalidate_one_bucket() argument
142 lockdep_assert_held(&ca->set->bucket_lock); in __bch_invalidate_one_bucket()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
Dbpf_cubic.c13 * "while (ca->ack_cnt > delta)" loop is changed to the equivalent
14 * "ca->ack_cnt / delta" operation.
94 static inline void bictcp_reset(struct bictcp *ca) in bictcp_reset() argument
96 ca->cnt = 0; in bictcp_reset()
97 ca->last_max_cwnd = 0; in bictcp_reset()
98 ca->last_cwnd = 0; in bictcp_reset()
99 ca->last_time = 0; in bictcp_reset()
100 ca->bic_origin_point = 0; in bictcp_reset()
101 ca->bic_K = 0; in bictcp_reset()
102 ca->delay_min = 0; in bictcp_reset()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dbpf_cubic.c13 * "while (ca->ack_cnt > delta)" loop is changed to the equivalent
14 * "ca->ack_cnt / delta" operation.
94 static inline void bictcp_reset(struct bictcp *ca) in bictcp_reset() argument
96 ca->cnt = 0; in bictcp_reset()
97 ca->last_max_cwnd = 0; in bictcp_reset()
98 ca->last_cwnd = 0; in bictcp_reset()
99 ca->last_time = 0; in bictcp_reset()
100 ca->bic_origin_point = 0; in bictcp_reset()
101 ca->bic_K = 0; in bictcp_reset()
102 ca->delay_min = 0; in bictcp_reset()
[all …]
/kernel/linux/linux-6.6/kernel/sched/
Dcpuacct.c42 static inline struct cpuacct *parent_ca(struct cpuacct *ca) in parent_ca() argument
44 return css_ca(ca->css.parent); in parent_ca()
57 struct cpuacct *ca; in cpuacct_css_alloc() local
62 ca = kzalloc(sizeof(*ca), GFP_KERNEL); in cpuacct_css_alloc()
63 if (!ca) in cpuacct_css_alloc()
66 ca->cpuusage = alloc_percpu(u64); in cpuacct_css_alloc()
67 if (!ca->cpuusage) in cpuacct_css_alloc()
70 ca->cpustat = alloc_percpu(struct kernel_cpustat); in cpuacct_css_alloc()
71 if (!ca->cpustat) in cpuacct_css_alloc()
74 return &ca->css; in cpuacct_css_alloc()
[all …]

12345678910>>...49