/linux/drivers/md/bcache/ |
H A D | stats.c | 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() 113 acc->total.cache_bypass_misses = 0; in bch_cache_accounting_clear() [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);
|
/linux/drivers/staging/media/ipu3/ |
H A D | ipu3-css-params.c | 1728 struct imgu_abi_acc_param *acc) in imgu_css_cfg_acc_stripe() argument 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->stripe.input_frame.bayer_order = in imgu_css_cfg_acc_stripe() 1766 acc->stripe.bds_out_stripes[i].height = in imgu_css_cfg_acc_stripe() 1768 acc->stripe.bds_out_stripes[0].offset = 0; in imgu_css_cfg_acc_stripe() [all …]
|
/linux/drivers/soc/ti/ |
H A D | knav_qmss_acc.c | 24 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 D | disk_accounting.c | 74 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() 108 struct disk_accounting_pos acc = { in bch2_mod_dev_cached_sectors() local 112 bch2_replicas_entry_cached(&acc.replicas, dev); in bch2_mod_dev_cached_sectors() 114 return bch2_disk_accounting_mod(trans, &acc, §ors, 1, gc); in bch2_mod_dev_cached_sectors() 227 struct bkey_s_c_accounting acc = bkey_s_c_to_accounting(k); in bch2_accounting_to_text() local 234 prt_printf(out, " %lli", acc.v->d[i]); in bch2_accounting_to_text() 289 struct bch_accounting_mem *acc = &c->accounting; in __bch2_accounting_mem_insert() local [all …]
|
H A D | disk_accounting.h | 63 static inline void bpos_to_disk_accounting_pos(struct disk_accounting_pos *acc, struct bpos p) in bpos_to_disk_accounting_pos() argument 65 acc->_pad = p; in bpos_to_disk_accounting_pos() 67 bch2_bpos_swab(&acc->_pad); in bpos_to_disk_accounting_pos() 124 struct bch_accounting_mem *acc = &c->accounting; in bch2_accounting_mem_mod_locked() local 129 EBUG_ON(gc && !acc->gc_running); in bch2_accounting_mem_mod_locked() 157 while ((idx = eytzinger0_find(acc->k.data, acc->k.nr, sizeof(acc->k.data[0]), in bch2_accounting_mem_mod_locked() 158 accounting_pos_cmp, &a.k->p)) >= acc->k.nr) { in bch2_accounting_mem_mod_locked() 164 struct accounting_mem_entry *e = &acc->k.data[idx]; in bch2_accounting_mem_mod_locked() 181 static inline void bch2_accounting_mem_read_counters(struct bch_accounting_mem *acc, in bch2_accounting_mem_read_counters() argument 186 if (unlikely(idx >= acc->k.nr)) in bch2_accounting_mem_read_counters() [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_gt_pagefault.c | 52 struct acc { struct 513 static void print_acc(struct xe_device *xe, struct acc *acc) in print_acc() argument 523 acc->access_type ? "AC_NTFY_VAL" : "AC_TRIG_VAL", in print_acc() 524 acc->asid, acc->vfid, acc->engine_class, acc->engine_instance, in print_acc() 525 granularity_in_byte(acc->granularity) / SZ_1K, in print_acc() 526 sub_granularity_in_byte(acc->granularity) / SZ_1K, in print_acc() 527 acc->sub_granularity, acc->va_range_base); in print_acc() 530 static struct xe_vma *get_acc_vma(struct xe_vm *vm, struct acc *acc) in get_acc_vma() argument 532 u64 page_va = acc->va_range_base + (ffs(acc->sub_granularity) - 1) * in get_acc_vma() 533 sub_granularity_in_byte(acc->granularity); in get_acc_vma() [all …]
|
/linux/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 >>= 6; in cachefiles_cook_key() [all …]
|
/linux/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.data, acc.addr, &status); in scom_raw_read() [all …]
|
/linux/tools/testing/selftests/kvm/aarch64/ |
H A D | vpmu_counter_access.c | 174 #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/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()
|
/linux/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-spe.c | 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/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) \ 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 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_1 + PRIME64_4; in xxh64_merge_round() 169 return acc; in xxh64_merge_round()
|
/linux/tools/lib/bpf/ |
H A D | relo_core.c | 72 const struct bpf_core_accessor *acc, in is_flex_arr() argument 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 = &spec->spec[spec->len]; in bpf_core_parse_spec() [all …]
|
/linux/rust/kernel/init/ |
H A D | macros.rs | 1169 @acc(), 1291 @acc($($acc:tt)*), 1312 $($acc)* 1322 @acc($($acc:tt)*), 1334 $($acc)* 1343 @acc($($acc:tt)*), 1349 @acc($($acc)* $field: ::core::panic!(),), 1356 @acc($($acc:tt)*), 1362 @acc($($acc)* $field: ::core::panic!(),),
|
/linux/security/ |
H A D | device_cgroup.c | 250 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 D | alphascale-asm9260.dtsi | 26 clocks = <&acc CLKID_SYS_CPU>; 43 acc: clock-controller@80040000 { label 60 clocks = <&acc CLKID_AHB_TIMER0>;
|
/linux/arch/powerpc/crypto/ |
H A D | poly1305-p10-glue.c | 52 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 D | Makefile | 2 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 D | fc.c | 1667 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 D | orion5x-rd88f5182-nas.dts | 50 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/power/supply/ |
H A D | cpcap-battery.c | 258 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 …]
|
/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-ipq4019.dtsi | 49 enable-method = "qcom,kpss-acc-v2"; 51 qcom,acc = <&acc0>; 63 enable-method = "qcom,kpss-acc-v2"; 65 qcom,acc = <&acc1>; 77 enable-method = "qcom,kpss-acc-v2"; 79 qcom,acc = <&acc2>; 91 enable-method = "qcom,kpss-acc-v2"; 93 qcom,acc = <&acc3>; 333 compatible = "qcom,kpss-acc-v2"; 338 compatible = "qcom,kpss-acc-v2"; [all …]
|
/linux/drivers/infiniband/hw/mlx4/ |
H A D | mr.c | 39 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()
|