Home
last modified time | relevance | path

Searched refs:acc (Results 1 – 25 of 91) sorted by relevance

1234

/linux/drivers/md/bcache/
H A Dstats.c94 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->total.cache_bypass_hits = 0; in bch_cache_accounting_clear()
113 acc->total.cache_bypass_misses = 0; in bch_cache_accounting_clear()
[all …]
H A Dstats.h44 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);
/linux/fs/cachefiles/
H A Dkey.c41 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 >>= 6; in cachefiles_cook_key()
[all …]
/linux/drivers/fsi/
H A Dfsi-scom.c387 static void raw_convert_status(struct scom_access *acc, uint32_t status) in raw_convert_status() argument
389 acc->pib_status = (status & SCOM_STATUS_PIB_RESP_MASK) >> in raw_convert_status()
391 acc->intf_errors = 0; in raw_convert_status()
394 acc->intf_errors |= SCOM_INTF_ERR_PROTECTION; in raw_convert_status()
396 acc->intf_errors |= SCOM_INTF_ERR_PARITY; in raw_convert_status()
398 acc->intf_errors |= SCOM_INTF_ERR_ABORT; in raw_convert_status()
400 acc->intf_errors |= SCOM_INTF_ERR_UNKNOWN; in raw_convert_status()
405 struct scom_access acc; in scom_raw_read() local
409 if (copy_from_user(&acc, argp, sizeof(struct scom_access))) in scom_raw_read()
412 rc = raw_get_scom(scom, &acc.data, acc.addr, &status); in scom_raw_read()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dmem_rdonly_untrusted.c411 u64 acc; in combine() local
413 acc = 0; in combine()
415 acc |= (*(u64 *)p >> 56) << 24; in combine()
416 acc |= (*(u32 *)p >> 24) << 16; in combine()
417 acc |= (*(u16 *)p >> 8) << 8; in combine()
418 acc |= *(u8 *)p; in combine()
420 acc |= (*(u64 *)p & 0xff) << 24; in combine()
421 acc |= (*(u32 *)p & 0xff) << 16; in combine()
422 acc |= (*(u16 *)p & 0xff) << 8; in combine()
423 acc |= *(u8 *)p; in combine()
[all …]
/linux/tools/testing/selftests/kvm/arm64/
H A Dvpmu_counter_access.c168 #define PMC_ACC_TO_IDX(acc) (acc - &pmc_accessors[0]) argument
233 static void test_access_pmc_regs(struct pmc_accessor *acc, int pmc_idx) in test_access_pmc_regs() argument
264 acc->write_typer(pmc_idx, write_data); in test_access_pmc_regs()
265 read_data = acc->read_typer(pmc_idx); in test_access_pmc_regs()
268 pmc_idx, PMC_ACC_TO_IDX(acc), read_data, write_data); in test_access_pmc_regs()
274 read_data = acc->read_cntr(pmc_idx); in test_access_pmc_regs()
279 pmc_idx, PMC_ACC_TO_IDX(acc), read_data); in test_access_pmc_regs()
282 acc->write_cntr(pmc_idx, write_data); in test_access_pmc_regs()
283 read_data = acc->read_cntr(pmc_idx); in test_access_pmc_regs()
286 pmc_idx, PMC_ACC_TO_IDX(acc), read_data, write_data); in test_access_pmc_regs()
[all …]
/linux/rust/macros/
H A Dfmt.rs59 let mut acc = TokenStream::new(); in fmt()
63 names.remove(acc.to_string().as_str()); in fmt()
65 acc.extend([tt]); in fmt()
66 return (Some(acc), current.collect::<TokenStream>()); in fmt()
68 acc.extend([tt]); in fmt()
70 (None, acc) in fmt()
57 let mut acc = TokenStream::new(); fmt() localVariable
/linux/lib/
H A Dxxhash.c141 static uint64_t xxh64_round(uint64_t acc, const uint64_t input) in xxh64_round() argument
143 acc += input * PRIME64_2; in xxh64_round()
144 acc = xxh_rotl64(acc, 31); in xxh64_round()
145 acc *= PRIME64_1; in xxh64_round()
146 return acc; in xxh64_round()
149 static uint64_t xxh64_merge_round(uint64_t acc, uint64_t val) in xxh64_merge_round() argument
152 acc ^= val; in xxh64_merge_round()
153 acc = acc * PRIME64_1 + PRIME64_4; in xxh64_merge_round()
154 return acc; in xxh64_merge_round()
/linux/arch/powerpc/kernel/ptrace/
H A Dptrace-spe.c32 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()
/linux/drivers/nvme/host/
H A Dfc.h38 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()
/linux/drivers/clk/
H A Dclk-fixed-factor.c72 return fix->acc; in clk_factor_recalc_accuracy()
102 unsigned long acc, unsigned int fixflags, bool devm) in __clk_hw_register_fixed_factor() argument
125 fix->acc = acc; in __clk_hw_register_fixed_factor()
195 unsigned long acc) in clk_hw_register_fixed_factor_with_accuracy_fwname() argument
200 &pdata, flags, mult, div, acc, in clk_hw_register_fixed_factor_with_accuracy_fwname()
268 unsigned long acc) in devm_clk_hw_register_fixed_factor_with_accuracy_fwname() argument
273 &pdata, flags, mult, div, acc, in devm_clk_hw_register_fixed_factor_with_accuracy_fwname()
/linux/arch/arm64/kvm/vgic/
H A Dvgic-mmio.h67 #define REGISTER_DESC_WITH_BITS_PER_IRQ(off, rd, wr, ur, uw, bpi, acc) \ argument
72 .access_flags = acc, \
79 #define REGISTER_DESC_WITH_LENGTH(off, rd, wr, length, acc) \ argument
84 .access_flags = acc, \
89 #define REGISTER_DESC_WITH_LENGTH_UACCESS(off, rd, wr, urd, uwr, length, acc) \ argument
94 .access_flags = acc, \
/linux/lib/crc/x86/
H A Dcrc-pclmul-template.S138 .macro _fold_vec acc, data, consts, tmp
139 _pclmulqdq \consts, HI64_TERMS, \acc, HI64_TERMS, \tmp
140 _pclmulqdq \consts, LO64_TERMS, \acc, LO64_TERMS, \acc
143 _cond_vex pxor, \tmp, \acc, \acc
145 vpternlogq $0x96, \data, \tmp, \acc
154 .macro _fold_vec_mem vl, acc, data, consts, bswap_mask, tmp1, tmp2
157 _fold_vec \acc, \tmp1, \consts, \tmp2
159 _fold_vec \acc, \data, \consts, \tmp1
/linux/lib/zstd/compress/
H A Dzstd_preSplit.c125 static void mergeEvents(Fingerprint* acc, const Fingerprint* newfp) in mergeEvents() argument
129 acc->events[n] += newfp->events[n]; in mergeEvents()
131 acc->nbEvents += newfp->nbEvents; in mergeEvents()
144 static void removeEvents(Fingerprint* acc, const Fingerprint* slice) in removeEvents() argument
148 assert(acc->events[n] >= slice->events[n]); in removeEvents()
149 acc->events[n] -= slice->events[n]; in removeEvents()
151 acc->nbEvents -= slice->nbEvents; in removeEvents()
/linux/rust/pin-init/src/
H A Dmacros.rs
/linux/kernel/bpf/
H A Dtnum.c139 struct tnum acc = TNUM(0, 0); in tnum_mul() local
144 acc = tnum_add(acc, b); in tnum_mul()
154 acc = tnum_union(acc, tnum_add(acc, b)); in tnum_mul()
160 return acc; in tnum_mul()
/linux/tools/lib/bpf/
H A Drelo_core.c71 const struct bpf_core_accessor *acc, in is_flex_arr() argument
77 if (!acc->name || arr->nelems > 0) in is_flex_arr()
81 t = btf_type_by_id(btf, acc->type_id); in is_flex_arr()
82 return acc->idx == btf_vlen(t) - 1; in is_flex_arr()
267 struct bpf_core_accessor *acc; in bpf_core_parse_spec() local
311 acc = &spec->spec[0]; in bpf_core_parse_spec()
312 acc->type_id = id; in bpf_core_parse_spec()
313 acc->idx = access_idx; in bpf_core_parse_spec()
323 acc->name = btf__name_by_offset(btf, name_off); in bpf_core_parse_spec()
341 acc = &spec->spec[spec->len]; in bpf_core_parse_spec()
[all …]
/linux/arch/arm/boot/dts/alphascale/
H A Dalphascale-asm9260.dtsi26 clocks = <&acc CLKID_SYS_CPU>;
43 acc: clock-controller@80040000 { label
60 clocks = <&acc CLKID_AHB_TIMER0>;
/linux/drivers/vfio/pci/hisilicon/
H A DMakefile2 obj-$(CONFIG_HISI_ACC_VFIO_PCI) += hisi-acc-vfio-pci.o
3 hisi-acc-vfio-pci-y := hisi_acc_vfio_pci.o
/linux/tools/perf/pmu-events/
H A Damd_metrics.py484 acc = Event("l3_lookup_state.all_coherent_accesses_to_l3",
488 acc = max(acc, miss)
489 hits = acc - miss
493 d_ratio(acc, interval_sec), "accesses/sec"),
495 d_ratio(hits, acc), "100%"),
496 Metric("lpm_l3_miss", "L3 victim cache miss rate", d_ratio(miss, acc),
/linux/arch/arm/boot/dts/marvell/
H A Dorion5x-rd88f5182-nas.dts50 devbus,acc-first-ps = <186000>;
51 devbus,acc-next-ps = <186000>;
72 devbus,acc-first-ps = <186000>;
73 devbus,acc-next-ps = <186000>;
/linux/drivers/staging/fbtft/
H A Dfb_ssd1331.c134 int i, acc = 0; in set_gamma() local
143 acc += curves[i]; in set_gamma()
144 tmp[i] = acc; in set_gamma()
145 if (acc > 180) { in set_gamma()
/linux/drivers/nvme/target/
H A Dfc.c1667 struct fcnvme_ls_cr_assoc_acc *acc = &iod->rspbuf->rsp_cr_assoc; in nvmet_fc_ls_create_association() local
1671 memset(acc, 0, sizeof(*acc)); in nvmet_fc_ls_create_association()
1717 iod->lsrsp->rsplen = nvme_fc_format_rjt(acc, in nvmet_fc_ls_create_association()
1718 sizeof(*acc), rqst->w0.ls_cmd, in nvmet_fc_ls_create_association()
1733 iod->lsrsp->rsplen = sizeof(*acc); in nvmet_fc_ls_create_association()
1735 nvme_fc_format_rsp_hdr(acc, FCNVME_LS_ACC, in nvmet_fc_ls_create_association()
1739 acc->associd.desc_tag = cpu_to_be32(FCNVME_LSDESC_ASSOC_ID); in nvmet_fc_ls_create_association()
1740 acc->associd.desc_len = in nvmet_fc_ls_create_association()
1743 acc->associd.association_id = in nvmet_fc_ls_create_association()
1745 acc->connectid.desc_tag = cpu_to_be32(FCNVME_LSDESC_CONN_ID); in nvmet_fc_ls_create_association()
[all …]
/linux/scripts/crypto/
H A Dgen-hash-testvecs.py97 self.acc = 0
102 # acc += block
103 self.acc ^= Ghash.bytes_to_poly(data[i:i+16])
104 # acc = (acc * h) mod GHASH_POLY
108 product ^= self.acc << j
111 self.acc = product
115 return Ghash.poly_to_bytes(self.acc)
126 self.acc = 0
131 # acc
[all...]
/linux/security/keys/
H A Dkeyring.c170 u64 acc; in hash_key_type_and_desc() local
174 acc = mult_64x32_and_fold(type, desc_len + 13); in hash_key_type_and_desc()
175 acc = mult_64x32_and_fold(acc, 9207); in hash_key_type_and_desc()
177 acc = mult_64x32_and_fold(acc, piece); in hash_key_type_and_desc()
178 acc = mult_64x32_and_fold(acc, 9207); in hash_key_type_and_desc()
190 acc = mult_64x32_and_fold(acc, piece); in hash_key_type_and_desc()
191 acc = mult_64x32_and_fold(acc, 9207); in hash_key_type_and_desc()
195 hash = acc; in hash_key_type_and_desc()
197 hash ^= acc >> 32; in hash_key_type_and_desc()

1234