/drivers/soc/ti/ |
D | knav_qmss_acc.c | 41 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 …]
|
D | knav_qmss.h | 258 struct knav_acc_channel *acc; member 337 struct knav_acc_channel *acc; member
|
/drivers/md/bcache/ |
D | stats.c | 95 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 …]
|
D | stats.h | 45 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/ |
D | iwch_provider.h | 292 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()
|
D | iwch_provider.c | 475 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/ |
D | ati_remote.c | 459 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/ |
D | mr.c | 38 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/ |
D | ipath_keys.c | 122 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()
|
D | ipath_mr.c | 63 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()
|
D | ipath_verbs.h | 786 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/ |
D | ocrdma_verbs.h | 87 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 *);
|
D | ocrdma_verbs.c | 606 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/ |
D | c2_provider.c | 324 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/ |
D | mlx5_ib.h | 501 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/ |
D | acceptor.c | 427 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/ |
D | fc_exch.c | 1777 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/ |
D | qib_keys.c | 156 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()
|
D | qib_sd7220.c | 553 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()
|
D | qib_mr.c | 96 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/ |
D | mem.c | 495 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 …]
|
D | iw_cxgb4.h | 632 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/ |
D | pps_gen_parport.c | 161 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/ |
D | mthca_provider.c | 861 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/ |
D | zfcp_fc.c | 615 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()
|