Home
last modified time | relevance | path

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

12345

/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/drivers/soc/ti/
H A Dknav_qmss_acc.c24 struct knav_acc_channel *acc) in __knav_acc_notify() argument
44 queue = acc->channel - range->acc_info.start_channel; 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 = range->acc; in knav_acc_int_handler()
102 acc += queue; in knav_acc_int_handler()
105 channel = acc->channel; in knav_acc_int_handler()
[all …]
/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/tools/testing/selftests/bpf/progs/
H A Dmem_rdonly_untrusted.c177 u64 acc; in combine() local
179 acc = 0; in combine()
181 acc |= (*(u64 *)p >> 56) << 24; in combine()
182 acc |= (*(u32 *)p >> 24) << 16; in combine()
183 acc |= (*(u16 *)p >> 8) << 8; in combine()
184 acc |= *(u8 *)p; in combine()
186 acc |= (*(u64 *)p & 0xff) << 24; in combine()
187 acc |= (*(u32 *)p & 0xff) << 16; in combine()
188 acc |= (*(u16 *)p & 0xff) << 8; in combine()
189 acc | in combine()
[all...]
/linux/include/crypto/
H A Dpolyval.h72 struct polyval_elem acc; member
125 const struct polyval_elem *acc) in polyval_import_blkaligned() argument
127 *ctx = (struct polyval_ctx){ .key = key, .acc = *acc }; in polyval_import_blkaligned()
139 struct polyval_elem *acc) in polyval_export_blkaligned() argument
141 *acc = ctx->acc; in polyval_export_blkaligned()
/linux/drivers/fsi/
H A Dfsi-scom.c388 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.data, acc.addr, &status); in scom_raw_read()
[all …]
/linux/lib/crypto/x86/
H A Dpolyval.h16 asmlinkage void polyval_blocks_pclmul_avx(struct polyval_elem *acc,
43 static void polyval_mul_arch(struct polyval_elem *acc, in polyval_mul_arch() argument
48 polyval_mul_pclmul_avx(acc, &key->h_powers[NUM_H_POWERS - 1]); in polyval_mul_arch()
51 polyval_mul_generic(acc, &key->h_powers[NUM_H_POWERS - 1]); in polyval_mul_arch()
55 static void polyval_blocks_arch(struct polyval_elem *acc, in polyval_blocks_arch() argument
66 polyval_blocks_pclmul_avx(acc, key, data, n); in polyval_blocks_arch()
72 polyval_blocks_generic(acc, &key->h_powers[NUM_H_POWERS - 1], in polyval_blocks_arch()
/linux/lib/crypto/arm64/
H A Dpolyval.h16 asmlinkage void polyval_blocks_pmull(struct polyval_elem *acc,
43 static void polyval_mul_arch(struct polyval_elem *acc, in polyval_mul_arch() argument
48 polyval_mul_pmull(acc, &key->h_powers[NUM_H_POWERS - 1]); in polyval_mul_arch()
50 polyval_mul_generic(acc, &key->h_powers[NUM_H_POWERS - 1]); in polyval_mul_arch()
54 static void polyval_blocks_arch(struct polyval_elem *acc, in polyval_blocks_arch() argument
65 polyval_blocks_pmull(acc, key, data, n); in polyval_blocks_arch()
70 polyval_blocks_generic(acc, &key->h_powers[NUM_H_POWERS - 1], in polyval_blocks_arch()
/linux/drivers/iio/common/inv_sensors/
H A Dinv_sensors_timestamp.c22 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->val = div_u64(sum, i); in inv_update_acc()
/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/lib/crypto/
H A Dpolyval.c209 polyval_blocks_generic(struct polyval_elem *acc, const struct polyval_elem *key, in polyval_blocks_generic() argument
213 acc->lo ^= get_unaligned((__le64 *)data); in polyval_blocks_generic()
214 acc->hi ^= get_unaligned((__le64 *)(data + 8)); in polyval_blocks_generic()
215 polyval_mul_generic(acc, key); in polyval_blocks_generic()
242 polyval_mul_arch(&ctx->acc, ctx->key); in polyval_mul()
244 polyval_mul_generic(&ctx->acc, &ctx->key->h); in polyval_mul()
252 polyval_blocks_arch(&ctx->acc, ctx->key, data, nblocks); in polyval_blocks()
254 polyval_blocks_generic(&ctx->acc, &ctx->key->h, data, nblocks); in polyval_blocks()
265 ctx->acc.bytes[ctx->partial++] ^= *data++; in polyval_update()
278 ctx->acc.bytes[i] ^= data[i]; in polyval_update()
[all …]
/linux/drivers/power/supply/
H A Dintel_dc_ti_battery.c111 #define CC_ACC_TO_UA(acc, smpl_ctr) \ argument
112 ((acc) * (3662 * MSEC_PER_SEC / 10) / ((smpl_ctr) * SMPL_INTVL_MS))
133 s32 acc, smpl_ctr; in dc_ti_battery_get_voltage_and_current_now() local
169 acc = reg_val; in dc_ti_battery_get_voltage_and_current_now()
175 acc |= reg_val << 8; in dc_ti_battery_get_voltage_and_current_now()
181 acc |= reg_val << 16; in dc_ti_battery_get_voltage_and_current_now()
187 acc |= reg_val << 24; in dc_ti_battery_get_voltage_and_current_now()
215 acc -= chip->cc_offset * smpl_ctr * SMPL_INTVL_MS / in dc_ti_battery_get_voltage_and_current_now()
217 acc = acc * (CC_GAIN_DIV - chip->cc_gain * CC_GAIN_STEP) / CC_GAIN_DIV; in dc_ti_battery_get_voltage_and_current_now()
218 *curr = CC_ACC_TO_UA(acc, smpl_ctr); in dc_ti_battery_get_voltage_and_current_now()
/linux/rust/macros/
H A Dfmt.rs57 let mut acc = TokenStream::new(); in fmt() localVariable
61 names.remove(acc.to_string().as_str()); in fmt()
63 acc.extend([tt]); in fmt()
64 return (Some(acc), current.collect::<TokenStream>()); in fmt()
66 acc.extend([tt]); in fmt()
68 (None, acc) in fmt()
/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/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/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/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/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/drivers/clk/
H A Dclk-fixed-factor.c68 return fix->acc; in clk_factor_recalc_accuracy()
98 unsigned long acc, unsigned int fixflags, bool devm) in __clk_hw_register_fixed_factor() argument
121 fix->acc = acc; in __clk_hw_register_fixed_factor()
236 unsigned long acc) in clk_hw_register_fixed_factor_with_accuracy_fwname() argument
241 &pdata, flags, mult, div, acc, in clk_hw_register_fixed_factor_with_accuracy_fwname()
320 unsigned long acc) in devm_clk_hw_register_fixed_factor_with_accuracy_fwname() argument
325 &pdata, flags, mult, div, acc, in devm_clk_hw_register_fixed_factor_with_accuracy_fwname()
/linux/rust/pin-init/src/
H A Dmacros.rs1262 @acc(),
1463 @acc($($acc:tt)*),
1470 @acc($($acc)*),
1477 @acc($($acc:tt)*),
1498 $($acc)*
1508 @acc($($acc:tt)*),
1522 $($acc)*
1531 @acc($($acc:tt)*),
1537 @acc($($acc)* $field: ::core::panic!(),),
1544 @acc($($acc:tt)*),
[all …]
/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/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/scripts/crypto/
H A Dgen-hash-testvecs.py62 self.acc = 0
68 self.acc ^= int.from_bytes(data[i:i+16], byteorder='little')
73 product ^= self.acc << j
76 self.acc = product >> 128
80 return self.acc.to_bytes(16, byteorder='little')
/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

12345