Home
last modified time | relevance | path

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

12

/drivers/soc/ti/
Dknav_qmss_acc.c41 struct knav_acc_channel *acc) in __knav_acc_notify() argument
61 queue = acc->channel - range->acc_info.start_channel; in __knav_acc_notify()
85 atomic_inc(&kq->acc->retrigger_count); in knav_acc_set_notify()
86 mask = BIT(kq->acc->channel % 32); in knav_acc_set_notify()
87 offset = ACC_INTD_OFFSET_STATUS(kq->acc->channel); in knav_acc_set_notify()
89 kq->acc->name); in knav_acc_set_notify()
96 struct knav_acc_channel *acc; in knav_acc_int_handler() local
111 acc = range->acc; in knav_acc_int_handler()
119 acc += queue; in knav_acc_int_handler()
122 channel = acc->channel; in knav_acc_int_handler()
[all …]
Dknav_qmss.h258 struct knav_acc_channel *acc; member
337 struct knav_acc_channel *acc; member
/drivers/md/bcache/
Dstats.c95 int bch_cache_accounting_add_kobjs(struct cache_accounting *acc, in bch_cache_accounting_add_kobjs() argument
98 int ret = kobject_add(&acc->total.kobj, parent, in bch_cache_accounting_add_kobjs()
100 ret = ret ?: kobject_add(&acc->five_minute.kobj, parent, in bch_cache_accounting_add_kobjs()
102 ret = ret ?: kobject_add(&acc->hour.kobj, parent, in bch_cache_accounting_add_kobjs()
104 ret = ret ?: kobject_add(&acc->day.kobj, parent, in bch_cache_accounting_add_kobjs()
109 void bch_cache_accounting_clear(struct cache_accounting *acc) in bch_cache_accounting_clear() argument
111 memset(&acc->total.cache_hits, in bch_cache_accounting_clear()
116 void bch_cache_accounting_destroy(struct cache_accounting *acc) in bch_cache_accounting_destroy() argument
118 kobject_put(&acc->total.kobj); in bch_cache_accounting_destroy()
119 kobject_put(&acc->five_minute.kobj); in bch_cache_accounting_destroy()
[all …]
Dstats.h45 void bch_cache_accounting_init(struct cache_accounting *acc,
48 int bch_cache_accounting_add_kobjs(struct cache_accounting *acc,
51 void bch_cache_accounting_clear(struct cache_accounting *acc);
53 void bch_cache_accounting_destroy(struct cache_accounting *acc);
/drivers/infiniband/hw/cxgb3/
Diwch_provider.h292 static inline u32 iwch_ib_to_tpt_access(int acc) in iwch_ib_to_tpt_access() argument
294 return (acc & IB_ACCESS_REMOTE_WRITE ? TPT_REMOTE_WRITE : 0) | in iwch_ib_to_tpt_access()
295 (acc & IB_ACCESS_REMOTE_READ ? TPT_REMOTE_READ : 0) | in iwch_ib_to_tpt_access()
296 (acc & IB_ACCESS_LOCAL_WRITE ? TPT_LOCAL_WRITE : 0) | in iwch_ib_to_tpt_access()
297 (acc & IB_ACCESS_MW_BIND ? TPT_MW_BIND : 0) | in iwch_ib_to_tpt_access()
301 static inline u32 iwch_ib_to_tpt_bind_access(int acc) in iwch_ib_to_tpt_bind_access() argument
303 return (acc & IB_ACCESS_REMOTE_WRITE ? TPT_REMOTE_WRITE : 0) | in iwch_ib_to_tpt_bind_access()
304 (acc & IB_ACCESS_REMOTE_READ ? TPT_REMOTE_READ : 0); in iwch_ib_to_tpt_bind_access()
Diwch_provider.c475 int acc, in iwch_register_phys_mem() argument
528 mhp->attr.perms = iwch_ib_to_tpt_access(acc); in iwch_register_phys_mem()
554 int acc, u64 * iova_start) in iwch_reregister_phys_mem() argument
585 mh.attr.perms = iwch_ib_to_tpt_access(acc); in iwch_reregister_phys_mem()
603 mhp->attr.perms = iwch_ib_to_tpt_access(acc); in iwch_reregister_phys_mem()
617 u64 virt, int acc, struct ib_udata *udata) in iwch_reg_user_mr() argument
638 mhp->umem = ib_umem_get(pd->uobject->context, start, length, acc, 0); in iwch_reg_user_mr()
686 mhp->attr.perms = iwch_ib_to_tpt_access(acc); in iwch_reg_user_mr()
719 static struct ib_mr *iwch_get_dma_mr(struct ib_pd *pd, int acc) in iwch_get_dma_mr() argument
733 ibmr = iwch_register_phys_mem(pd, &bl, 1, acc, &kva); in iwch_get_dma_mr()
/drivers/media/rc/
Dati_remote.c459 int acc; in ati_remote_compute_accel() local
462 acc = 1; in ati_remote_compute_accel()
466 acc = accel[0]; in ati_remote_compute_accel()
468 acc = accel[1]; in ati_remote_compute_accel()
470 acc = accel[2]; in ati_remote_compute_accel()
472 acc = accel[3]; in ati_remote_compute_accel()
474 acc = accel[4]; in ati_remote_compute_accel()
476 acc = accel[5]; in ati_remote_compute_accel()
478 acc = accel[6]; in ati_remote_compute_accel()
480 return acc; in ati_remote_compute_accel()
[all …]
/drivers/infiniband/hw/mlx4/
Dmr.c38 static u32 convert_access(int acc) in convert_access() argument
40 return (acc & IB_ACCESS_REMOTE_ATOMIC ? MLX4_PERM_ATOMIC : 0) | in convert_access()
41 (acc & IB_ACCESS_REMOTE_WRITE ? MLX4_PERM_REMOTE_WRITE : 0) | in convert_access()
42 (acc & IB_ACCESS_REMOTE_READ ? MLX4_PERM_REMOTE_READ : 0) | in convert_access()
43 (acc & IB_ACCESS_LOCAL_WRITE ? MLX4_PERM_LOCAL_WRITE : 0) | in convert_access()
44 (acc & IB_ACCESS_MW_BIND ? MLX4_PERM_BIND_MW : 0) | in convert_access()
57 struct ib_mr *mlx4_ib_get_dma_mr(struct ib_pd *pd, int acc) in mlx4_ib_get_dma_mr() argument
67 ~0ull, convert_access(acc), 0, 0, &mr->mmr); in mlx4_ib_get_dma_mr()
433 struct ib_fmr *mlx4_ib_fmr_alloc(struct ib_pd *pd, int acc, in mlx4_ib_fmr_alloc() argument
444 err = mlx4_fmr_alloc(dev->dev, to_mpd(pd)->pdn, convert_access(acc), in mlx4_ib_fmr_alloc()
/drivers/infiniband/hw/ipath/
Dipath_keys.c122 struct ib_sge *sge, int acc) in ipath_lkey_ok() argument
159 (mr->access_flags & acc) != acc)) { in ipath_lkey_ok()
200 u32 len, u64 vaddr, u32 rkey, int acc) in ipath_rkey_ok() argument
241 (mr->access_flags & acc) == 0)) { in ipath_rkey_ok()
Dipath_mr.c63 struct ib_mr *ipath_get_dma_mr(struct ib_pd *pd, int acc) in ipath_get_dma_mr() argument
74 mr->mr.access_flags = acc; in ipath_get_dma_mr()
134 int num_phys_buf, int acc, u64 *iova_start) in ipath_reg_phys_mr() argument
151 mr->mr.access_flags = acc; in ipath_reg_phys_mr()
Dipath_verbs.h786 struct ib_sge *sge, int acc);
789 u32 len, u64 vaddr, u32 rkey, int acc);
820 struct ib_mr *ipath_get_dma_mr(struct ib_pd *pd, int acc);
824 int num_phys_buf, int acc, u64 *iova_start);
/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.h87 struct ib_mr *ocrdma_get_dma_mr(struct ib_pd *, int acc);
90 int num_phys_buf, int acc, u64 *iova_start);
92 u64 virt, int acc, struct ib_udata *);
Docrdma_verbs.c606 u32 pdid, int acc, u32 num_pbls, u32 addr_check) in ocrdma_alloc_lkey() argument
612 mr->hwmr.remote_rd = (acc & IB_ACCESS_REMOTE_READ) ? 1 : 0; in ocrdma_alloc_lkey()
613 mr->hwmr.remote_wr = (acc & IB_ACCESS_REMOTE_WRITE) ? 1 : 0; in ocrdma_alloc_lkey()
614 mr->hwmr.local_wr = (acc & IB_ACCESS_LOCAL_WRITE) ? 1 : 0; in ocrdma_alloc_lkey()
615 mr->hwmr.mw_bind = (acc & IB_ACCESS_MW_BIND) ? 1 : 0; in ocrdma_alloc_lkey()
616 mr->hwmr.remote_atomic = (acc & IB_ACCESS_REMOTE_ATOMIC) ? 1 : 0; in ocrdma_alloc_lkey()
629 struct ib_mr *ocrdma_get_dma_mr(struct ib_pd *ibpd, int acc) in ocrdma_get_dma_mr() argument
636 if (acc & IB_ACCESS_REMOTE_WRITE && !(acc & IB_ACCESS_LOCAL_WRITE)) { in ocrdma_get_dma_mr()
645 status = ocrdma_alloc_lkey(dev, mr, pd->id, acc, 0, in ocrdma_get_dma_mr()
781 u64 usr_addr, int acc, struct ib_udata *udata) in ocrdma_reg_user_mr() argument
[all …]
/drivers/infiniband/hw/amso1100/
Dc2_provider.c324 static inline u32 c2_convert_access(int acc) in c2_convert_access() argument
326 return (acc & IB_ACCESS_REMOTE_WRITE ? C2_ACF_REMOTE_WRITE : 0) | in c2_convert_access()
327 (acc & IB_ACCESS_REMOTE_READ ? C2_ACF_REMOTE_READ : 0) | in c2_convert_access()
328 (acc & IB_ACCESS_LOCAL_WRITE ? C2_ACF_LOCAL_WRITE : 0) | in c2_convert_access()
334 int num_phys_buf, int acc, u64 * iova_start) in c2_reg_phys_mr() argument
405 c2_convert_access(acc), mr); in c2_reg_phys_mr()
415 static struct ib_mr *c2_get_dma_mr(struct ib_pd *pd, int acc) in c2_get_dma_mr() argument
425 return c2_reg_phys_mr(pd, &bl, 1, acc, &kva); in c2_get_dma_mr()
429 u64 virt, int acc, struct ib_udata *udata) in c2_reg_user_mr() argument
447 c2mr->umem = ib_umem_get(pd->uobject->context, start, length, acc, 0); in c2_reg_user_mr()
[all …]
/drivers/infiniband/hw/mlx5/
Dmlx5_ib.h501 struct ib_mr *mlx5_ib_get_dma_mr(struct ib_pd *pd, int acc);
514 struct ib_fmr *mlx5_ib_fmr_alloc(struct ib_pd *pd, int acc,
555 static inline u8 convert_access(int acc) in convert_access() argument
557 return (acc & IB_ACCESS_REMOTE_ATOMIC ? MLX5_PERM_ATOMIC : 0) | in convert_access()
558 (acc & IB_ACCESS_REMOTE_WRITE ? MLX5_PERM_REMOTE_WRITE : 0) | in convert_access()
559 (acc & IB_ACCESS_REMOTE_READ ? MLX5_PERM_REMOTE_READ : 0) | in convert_access()
560 (acc & IB_ACCESS_LOCAL_WRITE ? MLX5_PERM_LOCAL_WRITE : 0) | in convert_access()
/drivers/staging/lustre/lnet/lnet/
Dacceptor.c427 accept2secure(const char *acc, long *sec) in accept2secure() argument
429 if (!strcmp(acc, "secure")) { in accept2secure()
432 } else if (!strcmp(acc, "all")) { in accept2secure()
435 } else if (!strcmp(acc, "none")) { in accept2secure()
440 acc); in accept2secure()
/drivers/scsi/libfc/
Dfc_exch.c1777 struct fc_els_ls_acc *acc; in fc_seq_ls_acc() local
1781 fp = fc_frame_alloc(lport, sizeof(*acc)); in fc_seq_ls_acc()
1784 acc = fc_frame_payload_get(fp, sizeof(*acc)); in fc_seq_ls_acc()
1785 memset(acc, 0, sizeof(*acc)); in fc_seq_ls_acc()
1786 acc->la_cmd = ELS_LS_ACC; in fc_seq_ls_acc()
1952 struct fc_els_rec_acc *acc; in fc_exch_els_rec() local
1977 fp = fc_frame_alloc(lport, sizeof(*acc)); in fc_exch_els_rec()
1981 acc = fc_frame_payload_get(fp, sizeof(*acc)); in fc_exch_els_rec()
1982 memset(acc, 0, sizeof(*acc)); in fc_exch_els_rec()
1983 acc->reca_cmd = ELS_LS_ACC; in fc_exch_els_rec()
[all …]
/drivers/infiniband/hw/qib/
Dqib_keys.c156 struct qib_sge *isge, struct ib_sge *sge, int acc) in qib_lkey_ok() argument
195 (mr->access_flags & acc) != acc)) in qib_lkey_ok()
253 u32 len, u64 vaddr, u32 rkey, int acc) in qib_rkey_ok() argument
294 (mr->access_flags & acc) == 0)) in qib_rkey_ok()
Dqib_sd7220.c553 u16 acc; in epb_access() local
564 acc = kr_ibsd_epb_access_ctrl; in epb_access()
570 acc = kr_pciesd_epb_access_ctrl; in epb_access()
582 accval = qib_read_kreg32(dd, acc); in epb_access()
593 qib_write_kreg(dd, acc, newval); in epb_access()
595 pollval = qib_read_kreg32(dd, acc); in epb_access()
597 pollval = qib_read_kreg32(dd, acc); in epb_access()
604 qib_write_kreg(dd, acc, newval); in epb_access()
606 pollval = qib_read_kreg32(dd, acc); in epb_access()
608 pollval = qib_read_kreg32(dd, acc); in epb_access()
Dqib_mr.c96 struct ib_mr *qib_get_dma_mr(struct ib_pd *pd, int acc) in qib_get_dma_mr() argument
126 mr->mr.access_flags = acc; in qib_get_dma_mr()
184 int num_phys_buf, int acc, u64 *iova_start) in qib_reg_phys_mr() argument
198 mr->mr.access_flags = acc; in qib_reg_phys_mr()
/drivers/infiniband/hw/cxgb4/
Dmem.c495 int num_phys_buf, int acc, u64 *iova_start) in c4iw_reregister_phys_mem() argument
526 mh.attr.perms = c4iw_ib_to_tpt_access(acc); in c4iw_reregister_phys_mem()
527 mh.attr.mw_bind_enable = (acc & IB_ACCESS_MW_BIND) == in c4iw_reregister_phys_mem()
546 mhp->attr.perms = c4iw_ib_to_tpt_access(acc); in c4iw_reregister_phys_mem()
560 int num_phys_buf, int acc, u64 *iova_start) in c4iw_register_phys_mem() argument
614 mhp->attr.perms = c4iw_ib_to_tpt_access(acc); in c4iw_register_phys_mem()
636 struct ib_mr *c4iw_get_dma_mr(struct ib_pd *pd, int acc) in c4iw_get_dma_mr() argument
654 mhp->attr.perms = c4iw_ib_to_tpt_access(acc); in c4iw_get_dma_mr()
655 mhp->attr.mw_bind_enable = (acc&IB_ACCESS_MW_BIND) == IB_ACCESS_MW_BIND; in c4iw_get_dma_mr()
681 u64 virt, int acc, struct ib_udata *udata) in c4iw_reg_user_mr() argument
[all …]
Diw_cxgb4.h632 static inline u32 c4iw_ib_to_tpt_bind_access(int acc) in c4iw_ib_to_tpt_bind_access() argument
634 return (acc & IB_ACCESS_REMOTE_WRITE ? FW_RI_MEM_ACCESS_REM_WRITE : 0) | in c4iw_ib_to_tpt_bind_access()
635 (acc & IB_ACCESS_REMOTE_READ ? FW_RI_MEM_ACCESS_REM_READ : 0); in c4iw_ib_to_tpt_bind_access()
973 u64 length, u64 virt, int acc,
975 struct ib_mr *c4iw_get_dma_mr(struct ib_pd *pd, int acc);
979 int acc,
986 int acc, u64 *iova_start);
/drivers/pps/generators/
Dpps_gen_parport.c161 long acc = 0; in calibrate_port() local
174 acc += timespec_to_ns(&b); in calibrate_port()
177 dev->port_write_time = acc >> PORT_NTESTS_SHIFT; in calibrate_port()
/drivers/infiniband/hw/mthca/
Dmthca_provider.c861 static inline u32 convert_access(int acc) in convert_access() argument
863 return (acc & IB_ACCESS_REMOTE_ATOMIC ? MTHCA_MPT_FLAG_ATOMIC : 0) | in convert_access()
864 (acc & IB_ACCESS_REMOTE_WRITE ? MTHCA_MPT_FLAG_REMOTE_WRITE : 0) | in convert_access()
865 (acc & IB_ACCESS_REMOTE_READ ? MTHCA_MPT_FLAG_REMOTE_READ : 0) | in convert_access()
866 (acc & IB_ACCESS_LOCAL_WRITE ? MTHCA_MPT_FLAG_LOCAL_WRITE : 0) | in convert_access()
870 static struct ib_mr *mthca_get_dma_mr(struct ib_pd *pd, int acc) in mthca_get_dma_mr() argument
881 convert_access(acc), mr); in mthca_get_dma_mr()
896 int acc, in mthca_reg_phys_mr() argument
962 convert_access(acc), mr); in mthca_reg_phys_mr()
977 u64 virt, int acc, struct ib_udata *udata) in mthca_reg_user_mr() argument
[all …]
/drivers/s390/scsi/
Dzfcp_fc.c615 struct fc_gpn_ft_resp *acc = sg_virt(sg); in zfcp_fc_eval_gpn_ft() local
641 acc++; in zfcp_fc_eval_gpn_ft()
643 acc = sg_virt(++sg); in zfcp_fc_eval_gpn_ft()
645 last = acc->fp_flags & FC_NS_FID_LAST; in zfcp_fc_eval_gpn_ft()
646 d_id = ntoh24(acc->fp_fid); in zfcp_fc_eval_gpn_ft()
652 if (acc->fp_wwpn == fc_host_port_name(adapter->scsi_host)) in zfcp_fc_eval_gpn_ft()
655 port = zfcp_port_enqueue(adapter, acc->fp_wwpn, in zfcp_fc_eval_gpn_ft()

12