Home
last modified time | relevance | path

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

12345678910>>...19

/linux/net/ipv4/
H A 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 …]
H A 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 in tcpnv_reset()
139 struct tcpnv *ca = inet_csk_ca(sk); tcpnv_init() local
170 nv_get_bounded_rtt(struct tcpnv * ca,u32 val) nv_get_bounded_rtt() argument
183 struct tcpnv *ca = inet_csk_ca(sk); tcpnv_cong_avoid() local
217 struct tcpnv *ca = inet_csk_ca(sk); tcpnv_state() local
243 struct tcpnv *ca = inet_csk_ca(sk); tcpnv_acked() local
456 const struct tcpnv *ca = inet_csk_ca(sk); tcpnv_get_info() local
[all...]
H A 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 in tcp_cdg_hystart_update()
190 tcp_cdg_grad(struct cdg * ca) tcp_cdg_grad() argument
243 struct cdg *ca = inet_csk_ca(sk); tcp_cdg_backoff() local
264 struct cdg *ca = inet_csk_ca(sk); tcp_cdg_cong_avoid() local
301 struct cdg *ca = inet_csk_ca(sk); tcp_cdg_acked() local
330 struct cdg *ca = inet_csk_ca(sk); tcp_cdg_ssthresh() local
347 struct cdg *ca = inet_csk_ca(sk); tcp_cdg_cwnd_event() local
375 struct cdg *ca = inet_csk_ca(sk); tcp_cdg_init() local
389 struct cdg *ca = inet_csk_ca(sk); tcp_cdg_release() local
[all...]
H A 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, u3 argument
143 struct bictcp *ca = inet_csk_ca(sk); bictcp_cong_avoid() local
164 struct bictcp *ca = inet_csk_ca(sk); bictcp_recalc_ssthresh() local
195 struct bictcp *ca = inet_csk_ca(sk); bictcp_acked() local
[all...]
H A 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 …]
H A Dtcp_hybla.c36 struct hybla *ca = inet_csk_ca(sk); in hybla_recalc_param() local
38 ca->rho_3ls = max_t(u32, in hybla_recalc_param()
41 ca->rho = ca->rho_3ls >> 3; in hybla_recalc_param()
42 ca->rho2_7ls = (ca->rho_3ls * ca->rho_3ls) << 1; in hybla_recalc_param()
43 ca->rho2 = ca->rho2_7ls >> 7; in hybla_recalc_param()
49 struct hybla *ca = inet_csk_ca(sk); in hybla_init() local
51 ca->rho = 0; in hybla_init()
52 ca->rho2 = 0; in hybla_init()
53 ca->rho_3ls = 0; in hybla_init()
54 ca->rho2_7ls = 0; in hybla_init()
[all …]
H A Dtcp_highspeed.c103 struct hstcp *ca = inet_csk_ca(sk); in hstcp_init() local
105 ca->ai = 0; in hstcp_init()
115 struct hstcp *ca = inet_csk_ca(sk); in hstcp_cong_avoid() local
126 * hstcp_aimd_vals[ca->ai-1].cwnd < in hstcp_cong_avoid()
128 * hstcp_aimd_vals[ca->ai].cwnd in hstcp_cong_avoid()
130 if (tcp_snd_cwnd(tp) > hstcp_aimd_vals[ca->ai].cwnd) { in hstcp_cong_avoid()
131 while (tcp_snd_cwnd(tp) > hstcp_aimd_vals[ca->ai].cwnd && in hstcp_cong_avoid()
132 ca->ai < HSTCP_AIMD_MAX - 1) in hstcp_cong_avoid()
133 ca->ai++; in hstcp_cong_avoid()
134 } else if (ca->ai && tcp_snd_cwnd(tp) <= hstcp_aimd_vals[ca->ai-1].cwnd) { in hstcp_cong_avoid()
[all …]
/linux/drivers/media/dvb-core/
H A 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 …]
/linux/drivers/media/pci/mantis/
H A 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 …]
H A 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 …]
H A Dmantis_evm.c29 struct mantis_ca *ca = container_of(work, struct mantis_ca, hif_evm_work); in mantis_hifevm_work() local
30 struct mantis_pci *mantis = ca->ca_priv; in mantis_hifevm_work()
40 mantis_event_cam_plugin(ca); in mantis_hifevm_work()
41 dvb_ca_en50221_camchange_irq(&ca->en50221, in mantis_hifevm_work()
49 mantis_event_cam_unplug(ca); in mantis_hifevm_work()
50 dvb_ca_en50221_camchange_irq(&ca->en50221, in mantis_hifevm_work()
79 ca->sbuf_status = MANTIS_SBUF_DATA_AVAIL; in mantis_hifevm_work()
80 ca->hif_event = MANTIS_SBUF_OPDONE; in mantis_hifevm_work()
81 wake_up(&ca->hif_opdone_wq); in mantis_hifevm_work()
85 int mantis_evmgr_init(struct mantis_ca *ca) in mantis_evmgr_init() argument
[all …]
H A Dmantis_pcmcia.c30 void mantis_event_cam_plugin(struct mantis_ca *ca) in mantis_event_cam_plugin() argument
32 struct mantis_pci *mantis = ca->ca_priv; in mantis_event_cam_plugin()
36 if (ca->slot_state == MODULE_XTRACTED) { in mantis_event_cam_plugin()
45 ca->slot_state = MODULE_INSERTED; in mantis_event_cam_plugin()
54 void mantis_event_cam_unplug(struct mantis_ca *ca) in mantis_event_cam_unplug() argument
56 struct mantis_pci *mantis = ca->ca_priv; in mantis_event_cam_unplug()
60 if (ca->slot_state == MODULE_INSERTED) { in mantis_event_cam_unplug()
69 ca->slot_state = MODULE_XTRACTED; in mantis_event_cam_unplug()
74 int mantis_pcmcia_init(struct mantis_ca *ca) in mantis_pcmcia_init() argument
76 struct mantis_pci *mantis = ca->ca_priv; in mantis_pcmcia_init()
[all …]
H A Dmantis_link.h55 /* CA */
56 extern void mantis_event_cam_plugin(struct mantis_ca *ca);
57 extern void mantis_event_cam_unplug(struct mantis_ca *ca);
58 extern int mantis_pcmcia_init(struct mantis_ca *ca);
59 extern void mantis_pcmcia_exit(struct mantis_ca *ca);
60 extern int mantis_evmgr_init(struct mantis_ca *ca);
61 extern void mantis_evmgr_exit(struct mantis_ca *ca);
64 extern int mantis_hif_init(struct mantis_ca *ca);
65 extern void mantis_hif_exit(struct mantis_ca *ca);
66 extern int mantis_hif_read_mem(struct mantis_ca *ca, u32 addr);
[all …]
/linux/drivers/md/bcache/
H A Dalloc.c73 uint8_t bch_inc_gen(struct cache *ca, struct bucket *b) in bch_inc_gen() argument
77 ca->set->need_gc = max(ca->set->need_gc, bucket_gc_gen(b)); in bch_inc_gen()
78 WARN_ON_ONCE(ca->set->need_gc > BUCKET_GC_GEN_MAX); in bch_inc_gen()
85 struct cache *ca; in bch_rescale_priorities() local
103 ca = c->cache; in bch_rescale_priorities()
104 for_each_bucket(b, ca) in bch_rescale_priorities()
126 bool bch_can_invalidate_bucket(struct cache *ca, struct bucket *b) in bch_can_invalidate_bucket() argument
128 return (ca->set->gc_mark_valid || b->reclaimable_in_gc) && in bch_can_invalidate_bucket()
133 void __bch_invalidate_one_bucket(struct cache *ca, struct bucket *b) in __bch_invalidate_one_bucket() argument
135 lockdep_assert_held(&ca->set->bucket_lock); in __bch_invalidate_one_bucket()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_cubic.c13 * "while (ca->ack_cnt > delta)" loop is changed to the equivalent
14 * "ca->ack_cnt / delta" operation.
96 static void bictcp_reset(struct bpf_bictcp *ca) in bictcp_reset() argument
98 ca->cnt = 0; in bictcp_reset()
99 ca->last_max_cwnd = 0; in bictcp_reset()
100 ca->last_cwnd = 0; in bictcp_reset()
101 ca->last_time = 0; in bictcp_reset()
102 ca->bic_origin_point = 0; in bictcp_reset()
103 ca->bic_K = 0; in bictcp_reset()
104 ca->delay_min = 0; in bictcp_reset()
[all …]
H A Dbpf_dctcp.c53 static void dctcp_reset(const struct tcp_sock *tp, struct bpf_dctcp *ca)
55 ca->next_seq = tp->snd_nxt;
57 ca->old_delivered = tp->delivered;
58 ca->old_delivered_ce = tp->delivered_ce;
65 struct bpf_dctcp *ca = inet_csk_ca(sk); in dctcp_reset()
95 ca->prior_rcv_nxt = tp->rcv_nxt; in BPF_PROG()
96 ca->dctcp_alpha = min(dctcp_alpha_on_init, DCTCP_MAX_ALPHA); in BPF_PROG()
97 ca->loss_cwnd = 0; in BPF_PROG()
98 ca->ce_state = 0; in BPF_PROG()
105 dctcp_reset(tp, ca); in BPF_PROG()
59 dctcp_reset(const struct tcp_sock * tp,struct bpf_dctcp * ca) dctcp_reset() argument
71 struct bpf_dctcp *ca = inet_csk_ca(sk); BPF_PROG() local
117 struct bpf_dctcp *ca = inet_csk_ca(sk); BPF_PROG() local
128 struct bpf_dctcp *ca = inet_csk_ca(sk); BPF_PROG() local
156 struct bpf_dctcp *ca = inet_csk_ca(sk); dctcp_react_to_loss() local
213 struct bpf_dctcp *ca = inet_csk_ca(sk); BPF_PROG() local
232 const struct bpf_dctcp *ca = inet_csk_ca(sk); BPF_PROG() local
[all...]
/linux/kernel/sched/
H A Dcpuacct.c44 static inline struct cpuacct *parent_ca(struct cpuacct *ca) in parent_ca() argument
46 return css_ca(ca->css.parent); in parent_ca()
59 struct cpuacct *ca; in cpuacct_css_alloc() local
64 ca = kzalloc_obj(*ca); in cpuacct_css_alloc()
65 if (!ca) in cpuacct_css_alloc()
68 ca->cpuusage = alloc_percpu(u64); in cpuacct_css_alloc()
69 if (!ca->cpuusage) in cpuacct_css_alloc()
72 ca->cpustat = alloc_percpu(struct kernel_cpustat); in cpuacct_css_alloc()
73 if (!ca->cpustat) in cpuacct_css_alloc()
76 return &ca->css; in cpuacct_css_alloc()
[all …]
/linux/include/media/
H A Ddvb_ca_en50221.h2 * dvb_ca.h: generic DVB functions for EN50221 CA interfaces
21 #include <linux/dvb/ca.h>
37 * struct dvb_ca_en50221- Structure describing a CA interface
61 int (*read_attribute_mem)(struct dvb_ca_en50221 *ca,
63 int (*write_attribute_mem)(struct dvb_ca_en50221 *ca,
66 int (*read_cam_control)(struct dvb_ca_en50221 *ca,
68 int (*write_cam_control)(struct dvb_ca_en50221 *ca,
71 int (*read_data)(struct dvb_ca_en50221 *ca,
73 int (*write_data)(struct dvb_ca_en50221 *ca,
76 int (*slot_reset)(struct dvb_ca_en50221 *ca, int slot);
[all …]
/linux/drivers/media/platform/chips-media/coda/
H A Dcoda-gdi.c61 * RA[15:0], CA[15:8] are hardwired to contain the 24-bit macroblock
63 * Bits CA[4:0] are set using XY2CA above. BA[3:0] seems to be unused.
79 RBC(CA, 0, CA, 0),
80 RBC(CA, 1, CA, 1),
81 RBC(CA, 2, CA, 2),
82 RBC(CA, 3, CA, 3),
83 RBC(CA, 4, CA, 8),
84 RBC(CA, 8, CA, 9),
85 RBC(CA, 9, CA, 10),
86 RBC(CA, 10, CA, 11),
[all …]
/linux/net/bluetooth/hidp/
H A Dsock.c52 struct hidp_connadd_req ca; in do_hidp_sock_ioctl() local
67 if (copy_from_user(&ca, argp, sizeof(ca))) in do_hidp_sock_ioctl()
70 csock = sockfd_lookup(ca.ctrl_sock, &err); in do_hidp_sock_ioctl()
74 isock = sockfd_lookup(ca.intr_sock, &err); in do_hidp_sock_ioctl()
79 ca.name[sizeof(ca.name)-1] = 0; in do_hidp_sock_ioctl()
81 err = hidp_connection_add(&ca, csock, isock); in do_hidp_sock_ioctl()
82 if (!err && copy_to_user(argp, &ca, sizeof(ca))) in do_hidp_sock_ioctl()
174 struct hidp_connadd_req ca; in hidp_sock_compat_ioctl() local
184 ca.ctrl_sock = ca32.ctrl_sock; in hidp_sock_compat_ioctl()
185 ca.intr_sock = ca32.intr_sock; in hidp_sock_compat_ioctl()
[all …]
/linux/drivers/media/pci/ddbridge/
H A Dddbridge-ci.c36 static int read_attribute_mem(struct dvb_ca_en50221 *ca, in read_attribute_mem() argument
39 struct ddb_ci *ci = ca->data; in read_attribute_mem()
51 static int write_attribute_mem(struct dvb_ca_en50221 *ca, int slot, in write_attribute_mem() argument
54 struct ddb_ci *ci = ca->data; in write_attribute_mem()
62 static int read_cam_control(struct dvb_ca_en50221 *ca, in read_cam_control() argument
66 struct ddb_ci *ci = ca->data; in read_cam_control()
83 static int write_cam_control(struct dvb_ca_en50221 *ca, int slot, in write_cam_control() argument
86 struct ddb_ci *ci = ca->data; in write_cam_control()
94 static int slot_reset(struct dvb_ca_en50221 *ca, int slot) in slot_reset() argument
96 struct ddb_ci *ci = ca->data; in slot_reset()
[all …]
/linux/Documentation/userspace-api/media/dvb/
H A Dca_function_calls.rst6 CA Function Calls
12 ca-fopen
13 ca-fclose
14 ca-reset
15 ca-get-cap
16 ca-get-slot-info
17 ca-get-descr-info
18 ca-get-msg
19 ca-send-msg
20 ca-set-descr
/linux/Documentation/admin-guide/media/
H A Ddvb-usb-af9035-cardlist.rst16 - 07ca:a835, 07ca:b835
18 - 07ca:1867, 07ca:a867, 07ca:0337
20 - 07ca:1871
22 - 07ca:0825
28 - 07ca:1835
30 - 07ca:2835
32 - 07ca:3835
34 - 07ca:4835
36 - 07ca:a110
38 - 07ca:0335
/linux/sound/hda/core/
H A Dhdmi_chmap.c236 static int get_channel_allocation_order(int ca) in get_channel_allocation_order() argument
241 if (channel_allocations[i].ca_index == ca) in get_channel_allocation_order()
264 * spk_mask => (channel_allocations[]) => ai->CA
266 * TODO: it could select the wrong CA from multiple candidates.
272 int ca = 0; in hdmi_channel_allocation_spk_alloc_blk() local
277 * CA defaults to 0 for basic stereo audio in hdmi_channel_allocation_spk_alloc_blk()
293 /* search for the first working match in the CA table */ in hdmi_channel_allocation_spk_alloc_blk()
298 ca = channel_allocations[i].ca_index; in hdmi_channel_allocation_spk_alloc_blk()
303 if (!ca) { in hdmi_channel_allocation_spk_alloc_blk()
310 ca in hdmi_channel_allocation_spk_alloc_blk()
342 hdmi_std_setup_channel_mapping(struct hdac_chmap * chmap,hda_nid_t pin_nid,bool non_pcm,int ca) hdmi_std_setup_channel_mapping() argument
508 hdmi_manual_setup_channel_mapping(struct hdac_chmap * chmap,hda_nid_t pin_nid,int chs,unsigned char * map,int ca) hdmi_manual_setup_channel_mapping() argument
536 hdmi_setup_fake_chmap(unsigned char * map,int ca) hdmi_setup_fake_chmap() argument
551 snd_hdac_setup_channel_mapping(struct hdac_chmap * chmap,hda_nid_t pin_nid,bool non_pcm,int ca,int channels,unsigned char * map,bool chmap_set) snd_hdac_setup_channel_mapping() argument
567 snd_hdac_get_active_channels(int ca) snd_hdac_get_active_channels() argument
581 snd_hdac_get_ch_alloc_from_ca(int ca) snd_hdac_get_ch_alloc_from_ca() argument
590 int ca; snd_hdac_channel_allocation() local
779 int i, err, ca, prepared = 0; hdmi_chmap_ctl_put() local
[all...]
/linux/include/uapi/linux/dvb/
H A Dca.h3 * ca.h
14 * struct ca_slot_info - CA slot interface types and info.
20 * This struct stores the CA slot information.
74 * struct ca_caps - CA slot interface capabilities.
76 * @slot_num: total number of CA card and module slots.
98 * This struct carries a message to be send/received from a CI CA module.
108 * struct ca_descr - CA descrambler control words info
110 * @index: CA Descrambler slot
112 * @cw: CA Descrambler control words

12345678910>>...19