Home
last modified time | relevance | path

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

123456

/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/bcachefs/
H A Ddisk_accounting.c74 struct bkey_i_accounting *acc = bkey_accounting_init(k); in accounting_key_init() local
76 acc->k.p = disk_accounting_pos_to_bpos(pos); in accounting_key_init()
77 set_bkey_val_u64s(&acc->k, sizeof(struct bch_accounting) / sizeof(u64) + nr); in accounting_key_init()
79 memcpy_u64s_small(acc->v.d, d, nr); in accounting_key_init()
117 struct disk_accounting_pos acc = { in bch2_mod_dev_cached_sectors() local
121 bch2_replicas_entry_cached(&acc.replicas, dev); in bch2_mod_dev_cached_sectors()
123 return bch2_disk_accounting_mod(trans, &acc, &sectors, 1, gc); in bch2_mod_dev_cached_sectors()
238 struct bkey_s_c_accounting acc = bkey_s_c_to_accounting(k); in bch2_accounting_to_text() local
245 prt_printf(out, " %lli", acc.v->d[i]); in bch2_accounting_to_text()
257 struct disk_accounting_pos *acc) in __accounting_to_replicas() argument
[all …]
H A Ddisk_accounting.h64 static inline void bpos_to_disk_accounting_pos(struct disk_accounting_pos *acc, struct bpos p) in bpos_to_disk_accounting_pos() argument
66 BUILD_BUG_ON(sizeof(*acc) != sizeof(p)); in bpos_to_disk_accounting_pos()
69 acc->_pad = p; in bpos_to_disk_accounting_pos()
71 memcpy_swab(acc, &p, sizeof(p)); in bpos_to_disk_accounting_pos()
75 static inline struct bpos disk_accounting_pos_to_bpos(struct disk_accounting_pos *acc) in disk_accounting_pos_to_bpos() argument
79 p = acc->_pad; in disk_accounting_pos_to_bpos()
81 memcpy_swab(&p, acc, sizeof(p)); in disk_accounting_pos_to_bpos()
121 static inline bool bch2_accounting_is_mem(struct disk_accounting_pos acc) in bch2_accounting_is_mem() argument
123 return acc.type < BCH_DISK_ACCOUNTING_TYPE_NR && in bch2_accounting_is_mem()
124 acc.type != BCH_DISK_ACCOUNTING_inum; in bch2_accounting_is_mem()
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_gt_pagefault.c51 struct acc { struct
520 static void print_acc(struct xe_device *xe, struct acc *acc) in print_acc() argument
530 acc->access_type ? "AC_NTFY_VAL" : "AC_TRIG_VAL", in print_acc()
531 acc->asid, acc->vfid, acc->engine_class, acc->engine_instance, in print_acc()
532 granularity_in_byte(acc->granularity) / SZ_1K, in print_acc()
533 sub_granularity_in_byte(acc->granularity) / SZ_1K, in print_acc()
534 acc->sub_granularity, acc->va_range_base); in print_acc()
537 static struct xe_vma *get_acc_vma(struct xe_vm *vm, struct acc *acc) in get_acc_vma() argument
539 u64 page_va = acc->va_range_base + (ffs(acc->sub_granularity) - 1) * in get_acc_vma()
540 sub_granularity_in_byte(acc->granularity); in get_acc_vma()
[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/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/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/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/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/
H A Dxxhash.c156 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_1 + PRIME64_4; in xxh64_merge_round()
169 return acc; in xxh64_merge_round()
/linux/drivers/clk/
H A Dclk-fixed-factor.c66 return fix->acc; in clk_factor_recalc_accuracy()
96 unsigned long acc, unsigned int fixflags, bool devm) in __clk_hw_register_fixed_factor() argument
119 fix->acc = acc; in __clk_hw_register_fixed_factor()
234 unsigned long acc) in clk_hw_register_fixed_factor_with_accuracy_fwname() argument
239 &pdata, flags, mult, div, acc, in clk_hw_register_fixed_factor_with_accuracy_fwname()
318 unsigned long acc) in devm_clk_hw_register_fixed_factor_with_accuracy_fwname() argument
323 &pdata, flags, mult, div, acc, in devm_clk_hw_register_fixed_factor_with_accuracy_fwname()
H A Dclk-eyeq.c164 unsigned long *div, unsigned long *acc) in eqc_pll_parse_registers() argument
171 *acc = 0; in eqc_pll_parse_registers()
193 *acc = 0; in eqc_pll_parse_registers()
208 *acc = spread * 500000; in eqc_pll_parse_registers()
231 unsigned long mult, div, acc; in eqc_probe_init_plls() local
246 ret = eqc_pll_parse_registers(r0, r1, &mult, &div, &acc); in eqc_probe_init_plls()
254 dev->of_node, pll->name, "ref", 0, mult, div, acc); in eqc_probe_init_plls()
768 unsigned long mult, div, acc; in eqc_early_init() local
777 ret = eqc_pll_parse_registers(r0, r1, &mult, &div, &acc); in eqc_early_init()
784 np, pll->name, "ref", 0, mult, div, acc); in eqc_early_init()
/linux/drivers/staging/fbtft/
H A Dfb_ssd1351.c123 int i, acc = 0; in set_gamma()
132 acc += curves[i]; in set_gamma()
133 tmp[i] = acc; in set_gamma()
134 if (acc > 180) { in set_gamma()
137 i, acc); in set_gamma()
122 int i, acc = 0; set_gamma() local
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/security/
H A Ddevice_cgroup.c250 static void set_access(char *acc, short access) in set_access() argument
253 memset(acc, 0, ACCLEN); in set_access()
255 acc[idx++] = 'r'; in set_access()
257 acc[idx++] = 'w'; in set_access()
259 acc[idx++] = 'm'; in set_access()
285 char maj[MAJMINLEN], min[MAJMINLEN], acc[ACCLEN]; in devcgroup_seq_show() local
295 set_access(acc, DEVCG_ACC_MASK); in devcgroup_seq_show()
299 maj, min, acc); in devcgroup_seq_show()
302 set_access(acc, ex->access); in devcgroup_seq_show()
306 maj, min, acc); in devcgroup_seq_show()
/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/arch/powerpc/crypto/
H A Dpoly1305-p10-glue.c52 unsigned int acc = 0; in crypto_poly1305_setdctxkey() local
62 acc += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdctxkey()
70 acc += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdctxkey()
74 return acc; in crypto_poly1305_setdctxkey()
/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/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()
1734 iod->lsrsp->rsplen = sizeof(*acc); in nvmet_fc_ls_create_association()
1736 nvme_fc_format_rsp_hdr(acc, FCNVME_LS_ACC, in nvmet_fc_ls_create_association()
1740 acc->associd.desc_tag = cpu_to_be32(FCNVME_LSDESC_ASSOC_ID); in nvmet_fc_ls_create_association()
1741 acc->associd.desc_len = in nvmet_fc_ls_create_association()
1744 acc->associd.association_id = in nvmet_fc_ls_create_association()
1746 acc->connectid.desc_tag = cpu_to_be32(FCNVME_LSDESC_CONN_ID); in nvmet_fc_ls_create_association()
[all …]
/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/arch/arm/boot/dts/qcom/
H A Dqcom-apq8084.dtsi34 enable-method = "qcom,kpss-acc-v2";
36 qcom,acc = <&acc0>;
45 enable-method = "qcom,kpss-acc-v2";
47 qcom,acc = <&acc1>;
56 enable-method = "qcom,kpss-acc-v2";
58 qcom,acc = <&acc2>;
67 enable-method = "qcom,kpss-acc-v2";
69 qcom,acc = <&acc3>;
658 compatible = "qcom,kpss-acc-v2";
664 compatible = "qcom,kpss-acc-v2";
[all …]
/linux/drivers/power/supply/
H A Dcpcap-battery.c258 s64 acc; in cpcap_battery_cc_raw_div() local
263 acc = accumulator; in cpcap_battery_cc_raw_div()
264 acc -= (s64)sample * offset; in cpcap_battery_cc_raw_div()
265 acc *= ddata->cc_lsb; in cpcap_battery_cc_raw_div()
266 acc *= -1; in cpcap_battery_cc_raw_div()
267 acc = div_s64(acc, divider); in cpcap_battery_cc_raw_div()
269 return acc; in cpcap_battery_cc_raw_div()
442 int value, acc, error; in cpcap_battery_cc_get_avg_current() local
452 acc = sign_extend32(value, 13); in cpcap_battery_cc_get_avg_current()
455 acc = (s16)value; in cpcap_battery_cc_get_avg_current()
[all …]

123456