/kernel/linux/linux-5.10/drivers/md/bcache/ |
H A D | stats.c | 28 * get a cache hit, we increment a single atomic_t in acc->collector, and when 96 int bch_cache_accounting_add_kobjs(struct cache_accounting *acc, in bch_cache_accounting_add_kobjs() argument 99 int ret = kobject_add(&acc->total.kobj, parent, in bch_cache_accounting_add_kobjs() 101 ret = ret ?: kobject_add(&acc->five_minute.kobj, parent, in bch_cache_accounting_add_kobjs() 103 ret = ret ?: kobject_add(&acc->hour.kobj, parent, in bch_cache_accounting_add_kobjs() 105 ret = ret ?: kobject_add(&acc->day.kobj, parent, in bch_cache_accounting_add_kobjs() 110 void bch_cache_accounting_clear(struct cache_accounting *acc) in bch_cache_accounting_clear() argument 112 acc->total.cache_hits = 0; in bch_cache_accounting_clear() 113 acc->total.cache_misses = 0; in bch_cache_accounting_clear() 114 acc in bch_cache_accounting_clear() 121 bch_cache_accounting_destroy(struct cache_accounting *acc) bch_cache_accounting_destroy() argument 156 struct cache_accounting *acc = from_timer(acc, t, timer); scale_accounting() local 235 bch_cache_accounting_init(struct cache_accounting *acc, struct closure *parent) bch_cache_accounting_init() argument [all...] |
H A D | stats.h | 46 void bch_cache_accounting_init(struct cache_accounting *acc, 49 int bch_cache_accounting_add_kobjs(struct cache_accounting *acc, 52 void bch_cache_accounting_clear(struct cache_accounting *acc); 54 void bch_cache_accounting_destroy(struct cache_accounting *acc);
|
/kernel/linux/linux-6.6/drivers/md/bcache/ |
H A D | stats.c | 28 * get a cache hit, we increment a single atomic_t in acc->collector, and when 94 int bch_cache_accounting_add_kobjs(struct cache_accounting *acc, in bch_cache_accounting_add_kobjs() argument 97 int ret = kobject_add(&acc->total.kobj, parent, in bch_cache_accounting_add_kobjs() 99 ret = ret ?: kobject_add(&acc->five_minute.kobj, parent, in bch_cache_accounting_add_kobjs() 101 ret = ret ?: kobject_add(&acc->hour.kobj, parent, in bch_cache_accounting_add_kobjs() 103 ret = ret ?: kobject_add(&acc->day.kobj, parent, in bch_cache_accounting_add_kobjs() 108 void bch_cache_accounting_clear(struct cache_accounting *acc) in bch_cache_accounting_clear() argument 110 acc->total.cache_hits = 0; in bch_cache_accounting_clear() 111 acc->total.cache_misses = 0; in bch_cache_accounting_clear() 112 acc in bch_cache_accounting_clear() 118 bch_cache_accounting_destroy(struct cache_accounting *acc) bch_cache_accounting_destroy() argument 152 struct cache_accounting *acc = from_timer(acc, t, timer); scale_accounting() local 222 bch_cache_accounting_init(struct cache_accounting *acc, struct closure *parent) bch_cache_accounting_init() argument [all...] |
H A D | stats.h | 44 void bch_cache_accounting_init(struct cache_accounting *acc, 47 int bch_cache_accounting_add_kobjs(struct cache_accounting *acc, 50 void bch_cache_accounting_clear(struct cache_accounting *acc); 52 void bch_cache_accounting_destroy(struct cache_accounting *acc);
|
/kernel/linux/linux-6.6/drivers/staging/media/ipu3/ |
H A D | ipu3-css-params.c | 1216 * DDR address + accelerator's config set index(acc's address). 1728 struct imgu_abi_acc_param *acc) in imgu_css_cfg_acc_stripe() 1738 memset(acc, 0, sizeof(*acc)); in imgu_css_cfg_acc_stripe() 1742 if (imgu_css_osys_calc(css, pipe, stripes, &acc->osys, &scaler_luma, in imgu_css_cfg_acc_stripe() 1743 &scaler_chroma, acc->stripe.block_stripes)) in imgu_css_cfg_acc_stripe() 1757 acc->stripe.num_of_stripes = stripes; in imgu_css_cfg_acc_stripe() 1758 acc->stripe.input_frame.width = in imgu_css_cfg_acc_stripe() 1760 acc->stripe.input_frame.height = in imgu_css_cfg_acc_stripe() 1762 acc in imgu_css_cfg_acc_stripe() 1727 imgu_css_cfg_acc_stripe(struct imgu_css *css, unsigned int pipe, struct imgu_abi_acc_param *acc) imgu_css_cfg_acc_stripe() argument 1899 imgu_css_cfg_acc_dvs(struct imgu_css *css, struct imgu_abi_acc_param *acc, unsigned int pipe) imgu_css_cfg_acc_dvs() argument 1918 acc_bds_per_stripe_data(struct imgu_css *css, struct imgu_abi_acc_param *acc, const int i, unsigned int pipe) acc_bds_per_stripe_data() argument 1943 imgu_css_cfg_acc(struct imgu_css *css, unsigned int pipe, struct ipu3_uapi_flags *use, struct imgu_abi_acc_param *acc, struct imgu_abi_acc_param *acc_old, struct ipu3_uapi_acc_param *acc_user) imgu_css_cfg_acc() argument [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/ipu3/ |
H A D | ipu3-css-params.c | 1219 * DDR address + accelerator's config set index(acc's address). 1731 struct imgu_abi_acc_param *acc) in imgu_css_cfg_acc_stripe() 1741 memset(acc, 0, sizeof(*acc)); in imgu_css_cfg_acc_stripe() 1745 if (imgu_css_osys_calc(css, pipe, stripes, &acc->osys, &scaler_luma, in imgu_css_cfg_acc_stripe() 1746 &scaler_chroma, acc->stripe.block_stripes)) in imgu_css_cfg_acc_stripe() 1760 acc->stripe.num_of_stripes = stripes; in imgu_css_cfg_acc_stripe() 1761 acc->stripe.input_frame.width = in imgu_css_cfg_acc_stripe() 1763 acc->stripe.input_frame.height = in imgu_css_cfg_acc_stripe() 1765 acc in imgu_css_cfg_acc_stripe() 1730 imgu_css_cfg_acc_stripe(struct imgu_css *css, unsigned int pipe, struct imgu_abi_acc_param *acc) imgu_css_cfg_acc_stripe() argument 1902 imgu_css_cfg_acc_dvs(struct imgu_css *css, struct imgu_abi_acc_param *acc, unsigned int pipe) imgu_css_cfg_acc_dvs() argument 1921 acc_bds_per_stripe_data(struct imgu_css *css, struct imgu_abi_acc_param *acc, const int i, unsigned int pipe) acc_bds_per_stripe_data() argument 1946 imgu_css_cfg_acc(struct imgu_css *css, unsigned int pipe, struct ipu3_uapi_flags *use, struct imgu_abi_acc_param *acc, struct imgu_abi_acc_param *acc_old, struct ipu3_uapi_acc_param *acc_user) imgu_css_cfg_acc() argument [all...] |
/kernel/linux/linux-5.10/drivers/soc/ti/ |
H A D | knav_qmss_acc.c | 24 struct knav_acc_channel *acc) in __knav_acc_notify() 38 dev_dbg(kdev->dev, "acc-irq: notifying %d\n", in __knav_acc_notify() 44 queue = acc->channel - range->acc_info.start_channel; in __knav_acc_notify() 46 dev_dbg(kdev->dev, "acc-irq: notifying %d\n", in __knav_acc_notify() 68 atomic_inc(&kq->acc->retrigger_count); in knav_acc_set_notify() 69 mask = BIT(kq->acc->channel % 32); in knav_acc_set_notify() 70 offset = ACC_INTD_OFFSET_STATUS(kq->acc->channel); in knav_acc_set_notify() 72 kq->acc->name); in knav_acc_set_notify() 79 struct knav_acc_channel *acc; in knav_acc_int_handler() local 94 acc in knav_acc_int_handler() 23 __knav_acc_notify(struct knav_range_info *range, struct knav_acc_channel *acc) __knav_acc_notify() argument 199 struct knav_acc_channel *acc; knav_range_setup_acc_irq() local 306 struct knav_acc_channel *acc; knav_acc_setup_cmd() local 339 struct knav_acc_channel *acc; knav_acc_stop() local 357 struct knav_acc_channel *acc; knav_acc_start() local 375 struct knav_acc_channel *acc; knav_acc_init_range() local 430 struct knav_acc_channel *acc; knav_acc_free_range() local 475 struct knav_acc_channel *acc; knav_init_acc_range() local [all...] |
/kernel/linux/linux-6.6/drivers/soc/ti/ |
H A D | knav_qmss_acc.c | 24 struct knav_acc_channel *acc) in __knav_acc_notify() 38 dev_dbg(kdev->dev, "acc-irq: notifying %d\n", in __knav_acc_notify() 44 queue = acc->channel - range->acc_info.start_channel; in __knav_acc_notify() 46 dev_dbg(kdev->dev, "acc-irq: notifying %d\n", in __knav_acc_notify() 68 atomic_inc(&kq->acc->retrigger_count); in knav_acc_set_notify() 69 mask = BIT(kq->acc->channel % 32); in knav_acc_set_notify() 70 offset = ACC_INTD_OFFSET_STATUS(kq->acc->channel); in knav_acc_set_notify() 72 kq->acc->name); in knav_acc_set_notify() 79 struct knav_acc_channel *acc; in knav_acc_int_handler() local 94 acc in knav_acc_int_handler() 23 __knav_acc_notify(struct knav_range_info *range, struct knav_acc_channel *acc) __knav_acc_notify() argument 199 struct knav_acc_channel *acc; knav_range_setup_acc_irq() local 306 struct knav_acc_channel *acc; knav_acc_setup_cmd() local 339 struct knav_acc_channel *acc; knav_acc_stop() local 357 struct knav_acc_channel *acc; knav_acc_start() local 375 struct knav_acc_channel *acc; knav_acc_init_range() local 430 struct knav_acc_channel *acc; knav_acc_free_range() local 475 struct knav_acc_channel *acc; knav_init_acc_range() local [all...] |
/kernel/linux/linux-5.10/fs/cachefiles/ |
H A D | key.c | 36 unsigned int acc; in cachefiles_cook_key() local 89 acc = *(uint16_t *) raw; in cachefiles_cook_key() 92 key[len + 1] = cachefiles_charmap[acc & 63]; in cachefiles_cook_key() 93 acc >>= 6; in cachefiles_cook_key() 94 key[len] = cachefiles_charmap[acc & 63]; in cachefiles_cook_key() 125 acc = *raw++; in cachefiles_cook_key() 126 acc |= *raw++ << 8; in cachefiles_cook_key() 127 acc |= *raw++ << 16; in cachefiles_cook_key() 129 _debug("acc: %06x", acc); in cachefiles_cook_key() [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_acc.c | 79 list_for_each_entry(acc_fw, &asd->acc.fw, list) in acc_get_fw() 91 list_for_each_entry(atomisp_map, &asd->acc.memory_maps, list) { in acc_get_map() 114 ida_destroy(&isp->asd[i].acc.ida); in atomisp_acc_cleanup() 123 if (asd->acc.pipeline) in atomisp_acc_release() 127 list_for_each_entry_safe(acc_fw, ta, &asd->acc.fw, list) { in atomisp_acc_release() 129 ida_free(&asd->acc.ida, acc_fw->handle); in atomisp_acc_release() 134 list_for_each_entry_safe(atomisp_map, tm, &asd->acc.memory_maps, list) { in atomisp_acc_release() 167 if (asd->acc.pipeline || asd->acc.extension_mode) in atomisp_acc_load_to_pipe() 179 handle = ida_alloc(&asd->acc in atomisp_acc_load_to_pipe() [all...] |
/kernel/linux/linux-6.6/fs/cachefiles/ |
H A D | key.c | 41 unsigned int acc, i, n, nle, nbe, keylen = object->cookie->key_len; in cachefiles_cook_key() local 116 acc = *key++; in cachefiles_cook_key() 118 acc |= *key++ << 8; in cachefiles_cook_key() 120 acc |= *key++ << 16; in cachefiles_cook_key() 123 name[len++] = cachefiles_charmap[acc & 63]; in cachefiles_cook_key() 124 acc >>= 6; in cachefiles_cook_key() 125 name[len++] = cachefiles_charmap[acc & 63]; in cachefiles_cook_key() 126 acc >>= 6; in cachefiles_cook_key() 127 name[len++] = cachefiles_charmap[acc & 63]; in cachefiles_cook_key() 128 acc >> in cachefiles_cook_key() [all...] |
/kernel/linux/linux-5.10/drivers/iio/imu/inv_icm42600/ |
H A D | inv_icm42600_timestamp.c | 24 static void inv_update_acc(struct inv_icm42600_timestamp_acc *acc, uint32_t val) in inv_update_acc() argument 29 acc->values[acc->idx++] = val; in inv_update_acc() 30 if (acc->idx >= ARRAY_SIZE(acc->values)) in inv_update_acc() 31 acc->idx = 0; in inv_update_acc() 34 for (i = 0; i < ARRAY_SIZE(acc->values); ++i) { in inv_update_acc() 35 if (acc->values[i] == 0) in inv_update_acc() 37 sum += acc->values[i]; in inv_update_acc() 40 acc in inv_update_acc() [all...] |
/kernel/linux/linux-6.6/drivers/iio/common/inv_sensors/ |
H A D | inv_sensors_timestamp.c | 22 static void inv_update_acc(struct inv_sensors_timestamp_acc *acc, uint32_t val) in inv_update_acc() argument 27 acc->values[acc->idx++] = val; in inv_update_acc() 28 if (acc->idx >= ARRAY_SIZE(acc->values)) in inv_update_acc() 29 acc->idx = 0; in inv_update_acc() 32 for (i = 0; i < ARRAY_SIZE(acc->values); ++i) { in inv_update_acc() 33 if (acc->values[i] == 0) in inv_update_acc() 35 sum += acc->values[i]; in inv_update_acc() 38 acc in inv_update_acc() [all...] |
/kernel/linux/linux-5.10/drivers/fsi/ |
H A D | fsi-scom.c | 429 static void raw_convert_status(struct scom_access *acc, uint32_t status) in raw_convert_status() argument 431 acc->pib_status = (status & SCOM_STATUS_PIB_RESP_MASK) >> in raw_convert_status() 433 acc->intf_errors = 0; in raw_convert_status() 436 acc->intf_errors |= SCOM_INTF_ERR_PROTECTION; in raw_convert_status() 438 acc->intf_errors |= SCOM_INTF_ERR_PARITY; in raw_convert_status() 440 acc->intf_errors |= SCOM_INTF_ERR_ABORT; in raw_convert_status() 442 acc->intf_errors |= SCOM_INTF_ERR_UNKNOWN; in raw_convert_status() 447 struct scom_access acc; in scom_raw_read() local 451 if (copy_from_user(&acc, argp, sizeof(struct scom_access))) in scom_raw_read() 454 rc = raw_get_scom(scom, &acc in scom_raw_read() 466 struct scom_access acc; scom_raw_write() local [all...] |
/kernel/linux/linux-6.6/drivers/fsi/ |
H A D | fsi-scom.c | 388 static void raw_convert_status(struct scom_access *acc, uint32_t status) in raw_convert_status() argument 390 acc->pib_status = (status & SCOM_STATUS_PIB_RESP_MASK) >> in raw_convert_status() 392 acc->intf_errors = 0; in raw_convert_status() 395 acc->intf_errors |= SCOM_INTF_ERR_PROTECTION; in raw_convert_status() 397 acc->intf_errors |= SCOM_INTF_ERR_PARITY; in raw_convert_status() 399 acc->intf_errors |= SCOM_INTF_ERR_ABORT; in raw_convert_status() 401 acc->intf_errors |= SCOM_INTF_ERR_UNKNOWN; in raw_convert_status() 406 struct scom_access acc; in scom_raw_read() local 410 if (copy_from_user(&acc, argp, sizeof(struct scom_access))) in scom_raw_read() 413 rc = raw_get_scom(scom, &acc in scom_raw_read() 425 struct scom_access acc; scom_raw_write() local [all...] |
/kernel/linux/linux-5.10/drivers/nvme/host/ |
H A D | fc.h | 38 struct fcnvme_ls_acc_hdr *acc = buf; in nvme_fc_format_rsp_hdr() local 40 acc->w0.ls_cmd = ls_cmd; in nvme_fc_format_rsp_hdr() 41 acc->desc_list_len = desc_len; in nvme_fc_format_rsp_hdr() 42 acc->rqst.desc_tag = cpu_to_be32(FCNVME_LSDESC_RQST); in nvme_fc_format_rsp_hdr() 43 acc->rqst.desc_len = in nvme_fc_format_rsp_hdr() 45 acc->rqst.w0.ls_cmd = rqst_ls_cmd; in nvme_fc_format_rsp_hdr()
|
/kernel/linux/linux-6.6/drivers/nvme/host/ |
H A D | fc.h | 38 struct fcnvme_ls_acc_hdr *acc = buf; in nvme_fc_format_rsp_hdr() local 40 acc->w0.ls_cmd = ls_cmd; in nvme_fc_format_rsp_hdr() 41 acc->desc_list_len = desc_len; in nvme_fc_format_rsp_hdr() 42 acc->rqst.desc_tag = cpu_to_be32(FCNVME_LSDESC_RQST); in nvme_fc_format_rsp_hdr() 43 acc->rqst.desc_len = in nvme_fc_format_rsp_hdr() 45 acc->rqst.w0.ls_cmd = rqst_ls_cmd; in nvme_fc_format_rsp_hdr()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-spe.c | 14 * u64 acc; 32 BUILD_BUG_ON(offsetof(struct thread_struct, acc) + sizeof(u64) != in evr_get() 35 return membuf_write(&to, &target->thread.acc, in evr_get() 51 BUILD_BUG_ON(offsetof(struct thread_struct, acc) + sizeof(u64) != in evr_set() 56 &target->thread.acc, in evr_set()
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-spe.c | 14 * u64 acc; 32 BUILD_BUG_ON(offsetof(struct thread_struct, acc) + sizeof(u64) != in evr_get() 35 return membuf_write(&to, &target->thread.acc, in evr_get() 51 BUILD_BUG_ON(offsetof(struct thread_struct, acc) + sizeof(u64) != in evr_set() 56 &target->thread.acc, in evr_set()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | tnum.c | 114 /* half-multiply add: acc += (unknown * mask * value). 117 static struct tnum hma(struct tnum acc, u64 value, u64 mask) in hma() argument 121 acc = tnum_add(acc, TNUM(0, value)); in hma() 125 return acc; in hma() 130 struct tnum acc; in tnum_mul() local 134 acc = hma(TNUM(pi, 0), a.mask, b.mask | b.value); in tnum_mul() 135 return hma(acc, b.mask, a.value); in tnum_mul()
|
/kernel/linux/linux-5.10/lib/ |
H A D | xxhash.c | 156 static uint64_t xxh64_round(uint64_t acc, const uint64_t input) in xxh64_round() argument 158 acc += input * PRIME64_2; in xxh64_round() 159 acc = xxh_rotl64(acc, 31); in xxh64_round() 160 acc *= PRIME64_1; in xxh64_round() 161 return acc; in xxh64_round() 164 static uint64_t xxh64_merge_round(uint64_t acc, uint64_t val) in xxh64_merge_round() argument 167 acc ^= val; in xxh64_merge_round() 168 acc = acc * PRIME64_ in xxh64_merge_round() [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | xxhash.c | 156 static uint64_t xxh64_round(uint64_t acc, const uint64_t input) in xxh64_round() argument 158 acc += input * PRIME64_2; in xxh64_round() 159 acc = xxh_rotl64(acc, 31); in xxh64_round() 160 acc *= PRIME64_1; in xxh64_round() 161 return acc; in xxh64_round() 164 static uint64_t xxh64_merge_round(uint64_t acc, uint64_t val) in xxh64_merge_round() argument 167 acc ^= val; in xxh64_merge_round() 168 acc = acc * PRIME64_ in xxh64_merge_round() [all...] |
/kernel/linux/linux-5.10/arch/arm64/kvm/vgic/ |
H A D | vgic-mmio.h | 67 #define REGISTER_DESC_WITH_BITS_PER_IRQ(off, rd, wr, ur, uw, bpi, acc) \ 72 .access_flags = acc, \ 79 #define REGISTER_DESC_WITH_LENGTH(off, rd, wr, length, acc) \ 84 .access_flags = acc, \ 89 #define REGISTER_DESC_WITH_LENGTH_UACCESS(off, rd, wr, urd, uwr, length, acc) \ 94 .access_flags = acc, \
|
/kernel/linux/linux-6.6/arch/arm64/kvm/vgic/ |
H A D | vgic-mmio.h | 67 #define REGISTER_DESC_WITH_BITS_PER_IRQ(off, rd, wr, ur, uw, bpi, acc) \ 72 .access_flags = acc, \ 79 #define REGISTER_DESC_WITH_LENGTH(off, rd, wr, length, acc) \ 84 .access_flags = acc, \ 89 #define REGISTER_DESC_WITH_LENGTH_UACCESS(off, rd, wr, urd, uwr, length, acc) \ 94 .access_flags = acc, \
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | relo_core.c | 72 const struct bpf_core_accessor *acc, in is_flex_arr() 78 if (!acc->name || arr->nelems > 0) in is_flex_arr() 82 t = btf_type_by_id(btf, acc->type_id); in is_flex_arr() 83 return acc->idx == btf_vlen(t) - 1; in is_flex_arr() 268 struct bpf_core_accessor *acc; in bpf_core_parse_spec() local 310 acc = &spec->spec[0]; in bpf_core_parse_spec() 311 acc->type_id = id; in bpf_core_parse_spec() 312 acc->idx = access_idx; in bpf_core_parse_spec() 322 acc->name = btf__name_by_offset(btf, name_off); in bpf_core_parse_spec() 340 acc in bpf_core_parse_spec() 71 is_flex_arr(const struct btf *btf, const struct bpf_core_accessor *acc, const struct btf_array *arr) is_flex_arr() argument 684 const struct bpf_core_accessor *acc; bpf_core_calc_field_relo() local [all...] |