Home
last modified time | relevance | path

Searched full:acc (Results 1 – 25 of 265) sorted by relevance

1234567891011

/linux/drivers/soc/ti/
H A Dknav_qmss_acc.c24 struct knav_acc_channel *acc) in __knav_acc_notify() argument
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 = range->acc; in knav_acc_int_handler()
[all …]
/linux/drivers/md/bcache/
H A Dstats.c28 * 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->total.cache_bypass_hits = 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/bcachefs/
H A Ddisk_accounting.c74 struct bkey_i_accounting *acc = bkey_accounting_init(k); in __accounting_key_init() local
76 acc->k.p = 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()
153 struct disk_accounting_pos acc; in bch2_mod_dev_cached_sectors() local
154 memset(&acc, 0, sizeof(acc)); in bch2_mod_dev_cached_sectors()
155 acc.type = BCH_DISK_ACCOUNTING_replicas; in bch2_mod_dev_cached_sectors()
156 bch2_replicas_entry_cached(&acc.replicas, dev); in bch2_mod_dev_cached_sectors()
158 return bch2_disk_accounting_mod(trans, &acc, &sectors, 1, gc); in bch2_mod_dev_cached_sectors()
284 struct bkey_s_c_accounting acc = bkey_s_c_to_accounting(k); in bch2_accounting_to_text() local
[all …]
H A Ddisk_accounting.h66 static inline void bpos_to_disk_accounting_pos(struct disk_accounting_pos *acc, struct bpos p) in bpos_to_disk_accounting_pos() argument
68 BUILD_BUG_ON(sizeof(*acc) != sizeof(p)); in bpos_to_disk_accounting_pos()
71 acc->_pad = p; in bpos_to_disk_accounting_pos()
73 memcpy_swab(acc, &p, sizeof(p)); in bpos_to_disk_accounting_pos()
77 static inline struct bpos disk_accounting_pos_to_bpos(struct disk_accounting_pos *acc) in disk_accounting_pos_to_bpos() argument
81 p = acc->_pad; in disk_accounting_pos_to_bpos()
83 memcpy_swab(&p, acc, sizeof(p)); in disk_accounting_pos_to_bpos()
142 static inline bool bch2_accounting_is_mem(struct disk_accounting_pos *acc) in bch2_accounting_is_mem() argument
144 return acc->type < BCH_DISK_ACCOUNTING_TYPE_NR && in bch2_accounting_is_mem()
145 acc->type != BCH_DISK_ACCOUNTING_inum; in bch2_accounting_is_mem()
[all …]
H A Dprogress.c19 struct disk_accounting_pos acc; in bch2_progress_init() local
20 disk_accounting_key_init(acc, btree, .id = i); in bch2_progress_init()
23 bch2_accounting_mem_read(c, disk_accounting_pos_to_bpos(&acc), &v, 1); in bch2_progress_init()
/linux/drivers/gpu/drm/xe/
H A Dxe_gt_pagefault.c54 struct acc { struct
516 static void print_acc(struct xe_gt *gt, struct acc *acc) in print_acc() argument
526 acc->access_type ? "AC_NTFY_VAL" : "AC_TRIG_VAL", in print_acc()
527 acc->asid, acc->vfid, acc->engine_class, acc->engine_instance, in print_acc()
528 granularity_in_byte(acc->granularity) / SZ_1K, in print_acc()
529 sub_granularity_in_byte(acc->granularity) / SZ_1K, in print_acc()
530 acc->sub_granularity, acc->va_range_base); in print_acc()
533 static struct xe_vma *get_acc_vma(struct xe_vm *vm, struct acc *acc) in get_acc_vma() argument
535 u64 page_va = acc->va_range_base + (ffs(acc->sub_granularity) - 1) * in get_acc_vma()
536 sub_granularity_in_byte(acc->granularity); in get_acc_vma()
[all …]
/linux/Documentation/devicetree/bindings/power/
H A Dqcom,kpss-acc-v2.yaml4 $id: http://devicetree.org/schemas/power/qcom,kpss-acc-v2.yaml#
7 title: Krait Processor Sub-system (KPSS) Application Clock Controller (ACC) v2
13 The KPSS ACC provides clock, power manager, and reset control to a Krait CPU.
14 There is one ACC register region per CPU within the KPSS remapped region as
15 well as an alias register region that remaps accesses to the ACC associated
16 with the CPU accessing the region. ACC v2 is currently used as a
22 - qcom,kpss-acc-v2
23 - qcom,msm8916-acc
40 compatible = "qcom,kpss-acc-v2";
/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 |= *(u8 *)p; in combine()
[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/arch/arm/mm/
H A Dproc-macros.S125 * 0xxx 0 0 0 no acc no acc
126 * 100x 1 0 1 r/o no acc
127 * 10x0 1 0 1 r/o no acc
128 * 1011 0 0 1 r/w no acc
198 * 0xxx 0x00 no acc no acc
199 * 100x 0x00 r/o no acc
200 * 10x0 0x00 r/o no acc
201 * 1011 0x55 r/w no acc
241 * 0xxx 00 no acc no acc
242 * 100x 00 r/o no acc
[all …]
/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()
142 "Bad CR_ASSOC ACC Length",
144 "Bad CR_CONN ACC Length",
146 "Bad Disconnect ACC Length",
154 "ACC (2)",
/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/arch/powerpc/kernel/ptrace/
H A Dptrace-spe.c14 * 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()
/linux/tools/testing/selftests/kvm/arm64/
H A Dvpmu_counter_access.c174 #define PMC_ACC_TO_IDX(acc) (acc - &pmc_accessors[0]) argument
239 static void test_access_pmc_regs(struct pmc_accessor *acc, int pmc_idx) in test_access_pmc_regs() argument
270 acc->write_typer(pmc_idx, write_data); in test_access_pmc_regs()
271 read_data = acc->read_typer(pmc_idx); in test_access_pmc_regs()
274 pmc_idx, PMC_ACC_TO_IDX(acc), read_data, write_data); in test_access_pmc_regs()
280 read_data = acc->read_cntr(pmc_idx); in test_access_pmc_regs()
285 pmc_idx, PMC_ACC_TO_IDX(acc), read_data); in test_access_pmc_regs()
288 acc->write_cntr(pmc_idx, write_data); in test_access_pmc_regs()
289 read_data = acc->read_cntr(pmc_idx); in test_access_pmc_regs()
292 pmc_idx, PMC_ACC_TO_IDX(acc), read_data, write_data); in test_access_pmc_regs()
[all …]
/linux/Documentation/devicetree/bindings/memory-controllers/
H A Dmvebu-devbus.txt52 - devbus,acc-first-ps: Defines the time delay from the negation of
57 - devbus,acc-next-ps: Defines the time delay between the cycle that
65 This parameter has no affect on <acc-first-ps> parameter
67 to a value smaller than <acc-first-ps>.
143 devbus,acc-first-ps = <124000>;
144 devbus,acc-next-ps = <248000>;
/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/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/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/qcom/
H A Dqcom-ipq4019.dtsi49 enable-method = "qcom,kpss-acc-v2";
51 qcom,acc = <&acc0>;
62 enable-method = "qcom,kpss-acc-v2";
64 qcom,acc = <&acc1>;
75 enable-method = "qcom,kpss-acc-v2";
77 qcom,acc = <&acc2>;
88 enable-method = "qcom,kpss-acc-v2";
90 qcom,acc = <&acc3>;
329 compatible = "qcom,kpss-acc-v2";
334 compatible = "qcom,kpss-acc-v2";
[all …]
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/infiniband/hw/mlx4/
H A Dmr.c39 static u32 convert_access(int acc) in convert_access() argument
41 return (acc & IB_ACCESS_REMOTE_ATOMIC ? MLX4_PERM_ATOMIC : 0) | in convert_access()
42 (acc & IB_ACCESS_REMOTE_WRITE ? MLX4_PERM_REMOTE_WRITE : 0) | in convert_access()
43 (acc & IB_ACCESS_REMOTE_READ ? MLX4_PERM_REMOTE_READ : 0) | in convert_access()
44 (acc & IB_ACCESS_LOCAL_WRITE ? MLX4_PERM_LOCAL_WRITE : 0) | in convert_access()
45 (acc & IB_ACCESS_MW_BIND ? MLX4_PERM_BIND_MW : 0) | in convert_access()
58 struct ib_mr *mlx4_ib_get_dma_mr(struct ib_pd *pd, int acc) in mlx4_ib_get_dma_mr() argument
68 ~0ull, convert_access(acc), 0, 0, &mr->mmr); in mlx4_ib_get_dma_mr()
/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/clk/
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()
203 * acc = spread * 1e6 / 2 in eqc_pll_parse_registers()
204 * with acc in parts per billion and, 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()
564 { .index = EQ6LC_PLL_CPU, .name = "pll-cpu", .reg64 = 0x034 }, /* also acc */
[all …]

1234567891011