/linux/fs/bcachefs/ |
H A D | buckets.h | 15 static inline u64 sector_to_bucket(const struct bch_dev *ca, sector_t s) in sector_to_bucket() 20 static inline sector_t bucket_to_sector(const struct bch_dev *ca, size_t b) in bucket_to_sector() 25 static inline sector_t bucket_remainder(const struct bch_dev *ca, sector_t s) in bucket_remainder() 33 static inline u64 sector_to_bucket_and_offset(const struct bch_dev *ca, sector_t s, u32 *offset) in sector_to_bucket_and_offset() 57 static inline struct bucket *gc_bucket(struct bch_dev *ca, size_t b) in gc_bucket() 64 static inline struct bucket_gens *bucket_gens(struct bch_dev *ca) in bucket_gens() 70 static inline u8 *bucket_gen(struct bch_dev *ca, size_t b) in bucket_gen() 79 static inline int bucket_gen_get_rcu(struct bch_dev *ca, size_t b) in bucket_gen_get_rcu() 85 static inline int bucket_gen_get(struct bch_dev *ca, size_t b) in bucket_gen_get() 91 static inline size_t PTR_BUCKET_NR(const struct bch_dev *ca, in PTR_BUCKET_NR() [all …]
|
H A D | sb-members.h | 22 static inline bool bch2_dev_is_online(struct bch_dev *ca) in bch2_dev_is_online() 32 struct bch_dev *ca = bch2_dev_rcu(c, dev); in bch2_dev_idx_is_online() local 36 static inline bool bch2_dev_is_healthy(struct bch_dev *ca) in bch2_dev_is_healthy() 83 struct bch_dev *ca = NULL; in __bch2_next_dev_idx() local 95 static inline struct bch_dev *__bch2_next_dev(struct bch_fs *c, struct bch_dev *ca, in __bch2_next_dev() 111 static inline void bch2_dev_get(struct bch_dev *ca) in bch2_dev_get() 120 static inline void __bch2_dev_put(struct bch_dev *ca) in __bch2_dev_put() 134 static inline void bch2_dev_put(struct bch_dev *ca) in bch2_dev_put() 140 static inline struct bch_dev *bch2_get_next_dev(struct bch_fs *c, struct bch_dev *ca) in bch2_get_next_dev() 160 struct bch_dev *ca, in bch2_get_next_online_dev() [all …]
|
H A D | super.c | 681 struct bch_dev *ca = rcu_dereference_protected(c->devs[i], true); in __bch2_fs_stop() local 722 struct bch_dev *ca = rcu_dereference_protected(c->devs[i], true); in bch2_fs_free() local 1124 struct bch_dev *ca; in bch2_fs_may_start() local 1351 static void bch2_dev_io_ref_stop(struct bch_dev *ca, int rw) in bch2_dev_io_ref_stop() 1365 struct bch_dev *ca = container_of(kobj, struct bch_dev, kobj); in bch2_dev_release() local 1370 static void bch2_dev_free(struct bch_dev *ca) in bch2_dev_free() 1404 static void __bch2_dev_offline(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_offline() 1425 struct bch_dev *ca = container_of(ref, struct bch_dev, ref); in bch2_dev_ref_complete() local 1431 static void bch2_dev_unlink(struct bch_dev *ca) in bch2_dev_unlink() 1451 static int bch2_dev_sysfs_online(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_sysfs_online() [all …]
|
H A D | backpointers.h | 39 static inline struct bpos bp_pos_to_bucket(const struct bch_dev *ca, struct bpos bp_pos) in bp_pos_to_bucket() 46 static inline struct bpos bp_pos_to_bucket_and_offset(const struct bch_dev *ca, struct bpos bp_pos, in bp_pos_to_bucket_and_offset() 57 struct bch_dev *ca = bch2_dev_rcu_noerror(c, bp_pos.inode); in bp_pos_to_bucket_nodev_noerror() local 63 static inline struct bpos bucket_pos_to_bp_noerror(const struct bch_dev *ca, in bucket_pos_to_bp_noerror() 75 static inline struct bpos bucket_pos_to_bp(const struct bch_dev *ca, in bucket_pos_to_bp() 84 static inline struct bpos bucket_pos_to_bp_start(const struct bch_dev *ca, struct bpos bucket) in bucket_pos_to_bp_start() 89 static inline struct bpos bucket_pos_to_bp_end(const struct bch_dev *ca, struct bpos bucket) in bucket_pos_to_bp_end()
|
H A D | buckets.c | 31 void bch2_dev_usage_read_fast(struct bch_dev *ca, struct bch_dev_usage *usage) in bch2_dev_usage_read_fast() 37 void bch2_dev_usage_full_read_fast(struct bch_dev *ca, struct bch_dev_usage_full *usage) in bch2_dev_usage_full_read_fast() 84 struct bch_dev *ca, in bch2_dev_usage_to_text() 119 struct bch_dev *ca = bch2_dev_tryget(c, p.ptr.dev); in bch2_check_fix_ptr() local 314 struct bch_dev *ca = bch2_dev_rcu(c, ptr->dev); in bch2_check_fix_ptrs() local 325 struct bch_dev *ca = bch2_dev_rcu(c, p.ptr.dev); in bch2_check_fix_ptrs() local 454 int bch2_bucket_ref_update(struct btree_trans *trans, struct bch_dev *ca, in bch2_bucket_ref_update() 595 static int __mark_pointer(struct btree_trans *trans, struct bch_dev *ca, in __mark_pointer() 632 struct bch_dev *ca = bch2_dev_tryget(c, p.ptr.dev); in bch2_trigger_pointer() local 985 struct bch_dev *ca, u64 b, in __bch2_trans_mark_metadata_bucket() [all …]
|
H A D | alloc_background.c | 342 struct bch_dev *ca = c ? bch2_dev_tryget_noerror(c, dev) : NULL; in __bch2_alloc_v4_to_text() local 623 struct bch_dev *ca = NULL; in bch2_alloc_read() local 726 struct bch_dev *ca, in bch2_bucket_do_index() 804 static inline int bch2_dev_data_type_accounting_mod(struct btree_trans *trans, struct bch_dev *ca, in bch2_dev_data_type_accounting_mod() 818 int bch2_alloc_key_to_dev_counters(struct btree_trans *trans, struct bch_dev *ca, in bch2_alloc_key_to_dev_counters() 866 struct bch_dev *ca = bch2_dev_bucket_tryget(c, new.k->p); in bch2_trigger_alloc() local 1098 static bool next_bucket(struct bch_fs *c, struct bch_dev **ca, struct bpos *bucket) in next_bucket() 1125 struct bch_dev **ca, struct bkey *hole) in bch2_get_key_or_real_bucket_hole() 1170 struct bch_dev *ca = bch2_dev_bucket_tryget_noerror(c, alloc_k.k->p); in bch2_check_alloc_key() local 1254 struct bch_dev *ca, in bch2_check_alloc_hole_freespace() [all …]
|
H A D | chardev.c | 31 struct bch_dev *ca; in bch2_device_lookup() local 210 struct bch_dev *ca; in bch2_ioctl_disk_remove() local 252 struct bch_dev *ca; in bch2_ioctl_disk_offline() local 277 struct bch_dev *ca; in bch2_ioctl_disk_set_state() local 352 struct bch_dev *ca = bch2_dev_tryget(c, ctx->arg.scrub.dev); in bch2_data_job_read() local 492 struct bch_dev *ca; in bch2_ioctl_dev_usage() local 533 struct bch_dev *ca; in bch2_ioctl_dev_usage_v2() local 582 struct bch_dev *ca = NULL; in bch2_ioctl_read_super() local 642 struct bch_dev *ca; in bch2_ioctl_disk_resize() local 665 struct bch_dev *ca; in bch2_ioctl_disk_resize_journal() local
|
H A D | alloc_foreground.c | 102 struct bch_dev *ca = ob_dev(c, ob); in __bch2_open_bucket_put() local 154 static inline bool is_superblock_bucket(struct bch_fs *c, struct bch_dev *ca, u64 b) in is_superblock_bucket() 212 struct bch_dev *ca = req->ca; in __try_alloc_bucket() local 290 struct bch_dev *ca = req->ca; in bch2_bucket_alloc_early() local 380 struct bch_dev *ca = req->ca; in bch2_bucket_alloc_freelist() local 502 struct bch_dev *ca = req->ca; in bch2_bucket_alloc_trans() local 579 struct open_bucket *bch2_bucket_alloc(struct bch_fs *c, struct bch_dev *ca, in bch2_bucket_alloc() 649 static inline void bch2_dev_stripe_increment_inlined(struct bch_dev *ca, in bch2_dev_stripe_increment_inlined() 676 void bch2_dev_stripe_increment(struct bch_dev *ca, in bch2_dev_stripe_increment() 809 struct bch_dev *ca = ob_dev(c, ob); in want_bucket() local [all …]
|
/linux/drivers/md/bcache/ |
H A D | alloc.c | 76 uint8_t bch_inc_gen(struct cache *ca, struct bucket *b) in bch_inc_gen() 88 struct cache *ca; in bch_rescale_priorities() local 130 bool bch_can_invalidate_bucket(struct cache *ca, struct bucket *b) in bch_can_invalidate_bucket() 137 void __bch_invalidate_one_bucket(struct cache *ca, struct bucket *b) in __bch_invalidate_one_bucket() 151 static void bch_invalidate_one_bucket(struct cache *ca, struct bucket *b) in bch_invalidate_one_bucket() 177 static void invalidate_buckets_lru(struct cache *ca) in invalidate_buckets_lru() 214 static void invalidate_buckets_fifo(struct cache *ca) in invalidate_buckets_fifo() 237 static void invalidate_buckets_random(struct cache *ca) in invalidate_buckets_random() 263 static void invalidate_buckets(struct cache *ca) in invalidate_buckets() 280 #define allocator_wait(ca, cond) \ argument [all …]
|
H A D | journal.c | 35 static int journal_read_bucket(struct cache *ca, struct list_head *list, in journal_read_bucket() 181 struct cache *ca = c->cache; in bch_journal_read() local 341 struct cache *ca = s->cache; in is_discard_enabled() local 575 struct cache *ca = container_of(ja, struct cache, journal); in journal_discard_endio() local 591 static void do_journal_discard(struct cache *ca) in do_journal_discard() 633 struct cache *ca = c->cache; in free_journal_buckets() local 652 struct cache *ca = c->cache; in journal_reclaim() local 752 struct cache *ca = c->cache; variable 857 struct cache *ca = c->cache; in journal_wait_for_write() local
|
/linux/drivers/media/pci/mantis/ |
H A D | mantis_ca.c | 30 struct mantis_ca *ca = en50221->data; in mantis_ca_read_attr_mem() local 43 struct mantis_ca *ca = en50221->data; in mantis_ca_write_attr_mem() local 56 struct mantis_ca *ca = en50221->data; in mantis_ca_read_cam_ctl() local 69 struct mantis_ca *ca = en50221->data; in mantis_ca_write_cam_ctl() local 82 struct mantis_ca *ca = en50221->data; in mantis_ca_slot_reset() local 98 struct mantis_ca *ca = en50221->data; in mantis_ca_slot_shutdown() local 108 struct mantis_ca *ca = en50221->data; in mantis_ts_control() local 118 struct mantis_ca *ca = en50221->data; in mantis_slot_status() local 136 struct mantis_ca *ca; in mantis_ca_init() local 185 struct mantis_ca *ca = mantis->mantis_ca; in mantis_ca_exit() local
|
H A D | mantis_hif.c | 30 static int mantis_hif_sbuf_opdone_wait(struct mantis_ca *ca) in mantis_hif_sbuf_opdone_wait() 47 static int mantis_hif_write_wait(struct mantis_ca *ca) in mantis_hif_write_wait() 77 int mantis_hif_read_mem(struct mantis_ca *ca, u32 addr) in mantis_hif_read_mem() 105 int mantis_hif_write_mem(struct mantis_ca *ca, u32 addr, u8 data) in mantis_hif_write_mem() 134 int mantis_hif_read_iom(struct mantis_ca *ca, u32 addr) in mantis_hif_read_iom() 164 int mantis_hif_write_iom(struct mantis_ca *ca, u32 addr, u8 data) in mantis_hif_write_iom() 192 int mantis_hif_init(struct mantis_ca *ca) in mantis_hif_init() 216 void mantis_hif_exit(struct mantis_ca *ca) in mantis_hif_exit()
|
H A D | mantis_pcmcia.c | 30 void mantis_event_cam_plugin(struct mantis_ca *ca) in mantis_event_cam_plugin() 54 void mantis_event_cam_unplug(struct mantis_ca *ca) in mantis_event_cam_unplug() 74 int mantis_pcmcia_init(struct mantis_ca *ca) in mantis_pcmcia_init() 103 void mantis_pcmcia_exit(struct mantis_ca *ca) in mantis_pcmcia_exit()
|
/linux/drivers/media/pci/ddbridge/ |
H A D | ddbridge-ci.c | 36 static int read_attribute_mem(struct dvb_ca_en50221 *ca, in read_attribute_mem() 51 static int write_attribute_mem(struct dvb_ca_en50221 *ca, int slot, in write_attribute_mem() 62 static int read_cam_control(struct dvb_ca_en50221 *ca, in read_cam_control() 83 static int write_cam_control(struct dvb_ca_en50221 *ca, int slot, in write_cam_control() 94 static int slot_reset(struct dvb_ca_en50221 *ca, int slot) in slot_reset() 111 static int slot_shutdown(struct dvb_ca_en50221 *ca, int slot) in slot_shutdown() 120 static int slot_ts_enable(struct dvb_ca_en50221 *ca, int slot) in slot_ts_enable() 130 static int poll_slot_status(struct dvb_ca_en50221 *ca, int slot, int open) in poll_slot_status() 180 static int read_attribute_mem_xo2(struct dvb_ca_en50221 *ca, in read_attribute_mem_xo2() 193 static int write_attribute_mem_xo2(struct dvb_ca_en50221 *ca, int slot, in write_attribute_mem_xo2() [all …]
|
/linux/net/ipv4/ |
H A D | tcp_htcp.c | 49 static inline u32 htcp_cong_time(const struct htcp *ca) in htcp_cong_time() 54 static inline u32 htcp_ccount(const struct htcp *ca) in htcp_ccount() 59 static inline void htcp_reset(struct htcp *ca) in htcp_reset() 70 struct htcp *ca = inet_csk_ca(sk); in htcp_cwnd_undo() local 85 struct htcp *ca = inet_csk_ca(sk); in measure_rtt() local 106 struct htcp *ca = inet_csk_ca(sk); in measure_achieved_throughput() local 147 static inline void htcp_beta_update(struct htcp *ca, u32 minRTT, u32 maxRTT) in htcp_beta_update() 173 static inline void htcp_alpha_update(struct htcp *ca) in htcp_alpha_update() 210 struct htcp *ca = inet_csk_ca(sk); in htcp_param_update() local 225 const struct htcp *ca = inet_csk_ca(sk); in htcp_recalc_ssthresh() local [all …]
|
H A D | tcp_illinois.c | 60 struct illinois *ca = inet_csk_ca(sk); in rtt_reset() local 71 struct illinois *ca = inet_csk_ca(sk); in tcp_illinois_init() local 88 struct illinois *ca = inet_csk_ca(sk); in tcp_illinois_acked() local 114 static inline u32 max_delay(const struct illinois *ca) in max_delay() 120 static inline u32 avg_delay(const struct illinois *ca) in avg_delay() 140 static u32 alpha(struct illinois *ca, u32 da, u32 dm) in alpha() 225 struct illinois *ca = inet_csk_ca(sk); in update_params() local 246 struct illinois *ca = inet_csk_ca(sk); in tcp_illinois_state() local 263 struct illinois *ca = inet_csk_ca(sk); in tcp_illinois_cong_avoid() local 298 struct illinois *ca = inet_csk_ca(sk); in tcp_illinois_ssthresh() local [all …]
|
H A D | tcp_dctcp.c | 81 static void dctcp_reset(const struct tcp_sock *tp, struct dctcp *ca) in dctcp_reset() 96 struct dctcp *ca = inet_csk_ca(sk); in dctcp_init() local 120 struct dctcp *ca = inet_csk_ca(sk); in dctcp_ssthresh() local 130 struct dctcp *ca = inet_csk_ca(sk); in dctcp_update_alpha() local 176 struct dctcp *ca = inet_csk_ca(sk); in dctcp_react_to_loss() local 195 struct dctcp *ca = inet_csk_ca(sk); in dctcp_cwnd_event() local 218 const struct dctcp *ca = inet_csk_ca(sk); in dctcp_get_info() local 245 const struct dctcp *ca = inet_csk_ca(sk); in dctcp_cwnd_undo() local
|
H A D | tcp_bic.c | 60 static inline void bictcp_reset(struct bictcp *ca) in bictcp_reset() 72 struct bictcp *ca = inet_csk_ca(sk); in bictcp_init() local 83 static inline void bictcp_update(struct bictcp *ca, u32 cwnd) in bictcp_update() 143 struct bictcp *ca = inet_csk_ca(sk); in bictcp_cong_avoid() local 164 struct bictcp *ca = inet_csk_ca(sk); in bictcp_recalc_ssthresh() local 195 struct bictcp *ca = inet_csk_ca(sk); in bictcp_acked() local
|
H A D | tcp_cdg.c | 142 struct cdg *ca = inet_csk_ca(sk); in tcp_cdg_hystart_update() local 190 static s32 tcp_cdg_grad(struct cdg *ca) in tcp_cdg_grad() 243 struct cdg *ca = inet_csk_ca(sk); in tcp_cdg_backoff() local 264 struct cdg *ca = inet_csk_ca(sk); in tcp_cdg_cong_avoid() local 301 struct cdg *ca = inet_csk_ca(sk); in tcp_cdg_acked() local 330 struct cdg *ca = inet_csk_ca(sk); in tcp_cdg_ssthresh() local 347 struct cdg *ca = inet_csk_ca(sk); in tcp_cdg_cwnd_event() local 375 struct cdg *ca = inet_csk_ca(sk); in tcp_cdg_init() local 389 struct cdg *ca = inet_csk_ca(sk); in tcp_cdg_release() local
|
H A D | tcp_nv.c | 123 static inline void tcpnv_reset(struct tcpnv *ca, struct sock *sk) in tcpnv_reset() 139 struct tcpnv *ca = inet_csk_ca(sk); in tcpnv_init() local 170 inline u32 nv_get_bounded_rtt(struct tcpnv *ca, u32 val) in nv_get_bounded_rtt() 183 struct tcpnv *ca = inet_csk_ca(sk); in tcpnv_cong_avoid() local 217 struct tcpnv *ca = inet_csk_ca(sk); in tcpnv_state() local 243 struct tcpnv *ca = inet_csk_ca(sk); in tcpnv_acked() local 456 const struct tcpnv *ca = inet_csk_ca(sk); in tcpnv_get_info() local
|
/linux/drivers/media/dvb-core/ |
H A D | dvb_ca_en50221.c | 162 static void dvb_ca_private_free(struct dvb_ca_private *ca) in dvb_ca_private_free() 176 struct dvb_ca_private *ca; in dvb_ca_private_release() local 182 static void dvb_ca_private_get(struct dvb_ca_private *ca) in dvb_ca_private_get() 187 static void dvb_ca_private_put(struct dvb_ca_private *ca) in dvb_ca_private_put() 228 static int dvb_ca_en50221_check_camstatus(struct dvb_ca_private *ca, int slot) in dvb_ca_en50221_check_camstatus() 278 static int dvb_ca_en50221_wait_if_status(struct dvb_ca_private *ca, int slot, in dvb_ca_en50221_wait_if_status() 326 static int dvb_ca_en50221_link_init(struct dvb_ca_private *ca, int slot) in dvb_ca_en50221_link_init() 402 static int dvb_ca_en50221_read_tuple(struct dvb_ca_private *ca, int slot, in dvb_ca_en50221_read_tuple() 456 static int dvb_ca_en50221_parse_attributes(struct dvb_ca_private *ca, int slot) in dvb_ca_en50221_parse_attributes() 601 static int dvb_ca_en50221_set_configoption(struct dvb_ca_private *ca, int slot) in dvb_ca_en50221_set_configoption() [all …]
|
/linux/kernel/sched/ |
H A D | cpuacct.c | 42 static inline struct cpuacct *parent_ca(struct cpuacct *ca) in parent_ca() 57 struct cpuacct *ca; in cpuacct_css_alloc() local 87 struct cpuacct *ca = css_ca(css); in cpuacct_css_free() local 94 static u64 cpuacct_cpuusage_read(struct cpuacct *ca, int cpu, in cpuacct_cpuusage_read() 135 static void cpuacct_cpuusage_write(struct cpuacct *ca, int cpu) in cpuacct_cpuusage_write() 164 struct cpuacct *ca = css_ca(css); in __cpuusage_read() local 194 struct cpuacct *ca = css_ca(css); in cpuusage_write() local 212 struct cpuacct *ca = css_ca(seq_css(m)); in __cpuacct_percpu_seq_show() local 241 struct cpuacct *ca = css_ca(seq_css(m)); in cpuacct_all_seq_show() local 262 struct cpuacct *ca = css_ca(seq_css(sf)); in cpuacct_stats_show() local [all …]
|
/linux/drivers/ras/ |
H A D | cec.c | 142 static void do_spring_cleaning(struct ce_array *ca) in do_spring_cleaning() 186 static int __find_elem(struct ce_array *ca, u64 pfn, unsigned int *to) in __find_elem() 223 static int find_elem(struct ce_array *ca, u64 pfn, unsigned int *to) in find_elem() 234 static void del_elem(struct ce_array *ca, int idx) in del_elem() 245 static u64 del_lru_elem_unlocked(struct ce_array *ca) in del_lru_elem_unlocked() 270 struct ce_array *ca = &ce_arr; in del_lru_elem() local 283 static bool sanity_check(struct ce_array *ca) in sanity_check() 323 struct ce_array *ca = &ce_arr; in cec_add_elem() local 449 struct ce_array *ca = &ce_arr; in array_show() local
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_dctcp.c | 59 static void dctcp_reset(const struct tcp_sock *tp, struct bpf_dctcp *ca) in dctcp_reset() 71 struct bpf_dctcp *ca = inet_csk_ca(sk); in BPF_PROG() local 117 struct bpf_dctcp *ca = inet_csk_ca(sk); in BPF_PROG() local 128 struct bpf_dctcp *ca = inet_csk_ca(sk); in BPF_PROG() local 156 struct bpf_dctcp *ca = inet_csk_ca(sk); in dctcp_react_to_loss() local 213 struct bpf_dctcp *ca = inet_csk_ca(sk); in BPF_PROG() local 232 const struct bpf_dctcp *ca = inet_csk_ca(sk); in BPF_PROG() local
|
/linux/drivers/media/dvb-frontends/ |
H A D | cxd2099.c | 376 static int read_attribute_mem(struct dvb_ca_en50221 *ca, in read_attribute_mem() 389 static int write_attribute_mem(struct dvb_ca_en50221 *ca, int slot, in write_attribute_mem() 401 static int read_cam_control(struct dvb_ca_en50221 *ca, in read_cam_control() 414 static int write_cam_control(struct dvb_ca_en50221 *ca, int slot, in write_cam_control() 426 static int slot_reset(struct dvb_ca_en50221 *ca, int slot) in slot_reset() 455 static int slot_shutdown(struct dvb_ca_en50221 *ca, int slot) in slot_shutdown() 477 static int slot_ts_enable(struct dvb_ca_en50221 *ca, int slot) in slot_ts_enable() 531 static int poll_slot_status(struct dvb_ca_en50221 *ca, int slot, int open) in poll_slot_status() 544 static int read_data(struct dvb_ca_en50221 *ca, int slot, u8 *ebuf, int ecount) in read_data() 573 static int write_data(struct dvb_ca_en50221 *ca, int slot, u8 *ebuf, int ecount) in write_data()
|