/drivers/md/bcache/ |
D | stats.c | 96 int bch_cache_accounting_add_kobjs(struct cache_accounting *acc, in bch_cache_accounting_add_kobjs() argument 99 int ret = kobject_add(&acc->total.kobj, parent, in bch_cache_accounting_add_kobjs() 101 ret = ret ?: kobject_add(&acc->five_minute.kobj, parent, in bch_cache_accounting_add_kobjs() 103 ret = ret ?: kobject_add(&acc->hour.kobj, parent, in bch_cache_accounting_add_kobjs() 105 ret = ret ?: kobject_add(&acc->day.kobj, parent, in bch_cache_accounting_add_kobjs() 110 void bch_cache_accounting_clear(struct cache_accounting *acc) in bch_cache_accounting_clear() argument 112 memset(&acc->total.cache_hits, in bch_cache_accounting_clear() 117 void bch_cache_accounting_destroy(struct cache_accounting *acc) in bch_cache_accounting_destroy() argument 119 kobject_put(&acc->total.kobj); in bch_cache_accounting_destroy() 120 kobject_put(&acc->five_minute.kobj); in bch_cache_accounting_destroy() [all …]
|
D | stats.h | 43 void bch_cache_accounting_init(struct cache_accounting *acc, 46 int bch_cache_accounting_add_kobjs(struct cache_accounting *acc, 49 void bch_cache_accounting_clear(struct cache_accounting *acc); 51 void bch_cache_accounting_destroy(struct cache_accounting *acc);
|
/drivers/media/rc/ |
D | ati_remote.c | 463 int acc; in ati_remote_compute_accel() local 466 acc = 1; in ati_remote_compute_accel() 470 acc = accel[0]; in ati_remote_compute_accel() 472 acc = accel[1]; in ati_remote_compute_accel() 474 acc = accel[2]; in ati_remote_compute_accel() 476 acc = accel[3]; in ati_remote_compute_accel() 478 acc = accel[4]; in ati_remote_compute_accel() 480 acc = accel[5]; in ati_remote_compute_accel() 482 acc = accel[6]; in ati_remote_compute_accel() 484 return acc; in ati_remote_compute_accel() [all …]
|
/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 | 474 int acc, in iwch_register_phys_mem() argument 527 mhp->attr.perms = iwch_ib_to_tpt_access(acc); in iwch_register_phys_mem() 553 int acc, u64 * iova_start) in iwch_reregister_phys_mem() argument 584 mh.attr.perms = iwch_ib_to_tpt_access(acc); in iwch_reregister_phys_mem() 602 mhp->attr.perms = iwch_ib_to_tpt_access(acc); in iwch_reregister_phys_mem() 616 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() 690 mhp->attr.perms = iwch_ib_to_tpt_access(acc); in iwch_reg_user_mr() 723 static struct ib_mr *iwch_get_dma_mr(struct ib_pd *pd, int acc) in iwch_get_dma_mr() argument 737 ibmr = iwch_register_phys_mem(pd, &bl, 1, acc, &kva); in iwch_get_dma_mr()
|
/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() 345 struct ib_fmr *mlx4_ib_fmr_alloc(struct ib_pd *pd, int acc, in mlx4_ib_fmr_alloc() argument 356 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 | 86 struct ib_mr *ocrdma_get_dma_mr(struct ib_pd *, int acc); 89 int num_phys_buf, int acc, u64 *iova_start); 91 u64 virt, int acc, struct ib_udata *);
|
D | ocrdma_verbs.c | 444 int acc, u32 num_pbls, in ocrdma_alloc_lkey() argument 452 if (acc & IB_ACCESS_REMOTE_WRITE && !(acc & IB_ACCESS_LOCAL_WRITE)) { in ocrdma_alloc_lkey() 464 mr->hwmr.remote_rd = (acc & IB_ACCESS_REMOTE_READ) ? 1 : 0; in ocrdma_alloc_lkey() 465 mr->hwmr.remote_wr = (acc & IB_ACCESS_REMOTE_WRITE) ? 1 : 0; in ocrdma_alloc_lkey() 466 mr->hwmr.local_wr = (acc & IB_ACCESS_LOCAL_WRITE) ? 1 : 0; in ocrdma_alloc_lkey() 467 mr->hwmr.mw_bind = (acc & IB_ACCESS_MW_BIND) ? 1 : 0; in ocrdma_alloc_lkey() 468 mr->hwmr.remote_atomic = (acc & IB_ACCESS_REMOTE_ATOMIC) ? 1 : 0; in ocrdma_alloc_lkey() 484 struct ib_mr *ocrdma_get_dma_mr(struct ib_pd *ibpd, int acc) in ocrdma_get_dma_mr() argument 488 mr = ocrdma_alloc_lkey(ibpd, acc, 0, OCRDMA_ADDR_CHECK_DISABLE); in ocrdma_get_dma_mr() 622 u64 usr_addr, int acc, struct ib_udata *udata) in ocrdma_reg_user_mr() argument [all …]
|
D | ocrdma_hw.h | 101 u32 pd_id, int acc);
|
/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/scsi/libfc/ |
D | fc_exch.c | 1702 struct fc_els_ls_acc *acc; in fc_seq_ls_acc() local 1706 fp = fc_frame_alloc(lport, sizeof(*acc)); in fc_seq_ls_acc() 1709 acc = fc_frame_payload_get(fp, sizeof(*acc)); in fc_seq_ls_acc() 1710 memset(acc, 0, sizeof(*acc)); in fc_seq_ls_acc() 1711 acc->la_cmd = ELS_LS_ACC; in fc_seq_ls_acc() 1876 struct fc_els_rec_acc *acc; in fc_exch_els_rec() local 1901 fp = fc_frame_alloc(lport, sizeof(*acc)); in fc_exch_els_rec() 1905 acc = fc_frame_payload_get(fp, sizeof(*acc)); in fc_exch_els_rec() 1906 memset(acc, 0, sizeof(*acc)); in fc_exch_els_rec() 1907 acc->reca_cmd = ELS_LS_ACC; in fc_exch_els_rec() [all …]
|
/drivers/infiniband/hw/qib/ |
D | qib_keys.c | 152 struct qib_sge *isge, struct ib_sge *sge, int acc) in qib_lkey_ok() argument 191 (mr->access_flags & acc) != acc)) in qib_lkey_ok() 249 u32 len, u64 vaddr, u32 rkey, int acc) in qib_rkey_ok() argument 290 (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()
|
D | qib_verbs.h | 955 struct qib_sge *isge, struct ib_sge *sge, int acc); 958 u32 len, u64 vaddr, u32 rkey, int acc); 989 struct ib_mr *qib_get_dma_mr(struct ib_pd *pd, int acc); 993 int num_phys_buf, int acc, u64 *iova_start);
|
/drivers/infiniband/hw/cxgb4/ |
D | mem.c | 491 int num_phys_buf, int acc, u64 *iova_start) in c4iw_reregister_phys_mem() argument 522 mh.attr.perms = c4iw_ib_to_tpt_access(acc); in c4iw_reregister_phys_mem() 523 mh.attr.mw_bind_enable = (acc & IB_ACCESS_MW_BIND) == in c4iw_reregister_phys_mem() 542 mhp->attr.perms = c4iw_ib_to_tpt_access(acc); in c4iw_reregister_phys_mem() 556 int num_phys_buf, int acc, u64 *iova_start) in c4iw_register_phys_mem() argument 610 mhp->attr.perms = c4iw_ib_to_tpt_access(acc); in c4iw_register_phys_mem() 632 struct ib_mr *c4iw_get_dma_mr(struct ib_pd *pd, int acc) in c4iw_get_dma_mr() argument 650 mhp->attr.perms = c4iw_ib_to_tpt_access(acc); in c4iw_get_dma_mr() 651 mhp->attr.mw_bind_enable = (acc&IB_ACCESS_MW_BIND) == IB_ACCESS_MW_BIND; in c4iw_get_dma_mr() 677 u64 virt, int acc, struct ib_udata *udata) in c4iw_reg_user_mr() argument [all …]
|
D | iw_cxgb4.h | 585 static inline u32 c4iw_ib_to_tpt_bind_access(int acc) in c4iw_ib_to_tpt_bind_access() argument 587 return (acc & IB_ACCESS_REMOTE_WRITE ? FW_RI_MEM_ACCESS_REM_WRITE : 0) | in c4iw_ib_to_tpt_bind_access() 588 (acc & IB_ACCESS_REMOTE_READ ? FW_RI_MEM_ACCESS_REM_READ : 0); in c4iw_ib_to_tpt_bind_access() 882 u64 length, u64 virt, int acc, 884 struct ib_mr *c4iw_get_dma_mr(struct ib_pd *pd, int acc); 888 int acc, 895 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 | 860 static inline u32 convert_access(int acc) in convert_access() argument 862 return (acc & IB_ACCESS_REMOTE_ATOMIC ? MTHCA_MPT_FLAG_ATOMIC : 0) | in convert_access() 863 (acc & IB_ACCESS_REMOTE_WRITE ? MTHCA_MPT_FLAG_REMOTE_WRITE : 0) | in convert_access() 864 (acc & IB_ACCESS_REMOTE_READ ? MTHCA_MPT_FLAG_REMOTE_READ : 0) | in convert_access() 865 (acc & IB_ACCESS_LOCAL_WRITE ? MTHCA_MPT_FLAG_LOCAL_WRITE : 0) | in convert_access() 869 static struct ib_mr *mthca_get_dma_mr(struct ib_pd *pd, int acc) in mthca_get_dma_mr() argument 880 convert_access(acc), mr); in mthca_get_dma_mr() 895 int acc, in mthca_reg_phys_mr() argument 961 convert_access(acc), mr); in mthca_reg_phys_mr() 976 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()
|
/drivers/gpu/drm/nouveau/core/include/core/ |
D | gpuobj.h | 54 int nouveau_gpuobj_map(struct nouveau_gpuobj *, u32 acc, struct nouveau_vma *);
|
/drivers/media/i2c/ |
D | saa7115.c | 703 u8 acc = 0; /* reg 0x3a, audio clock control */ in saa711x_s_clock_freq() local 729 acc = 0x80; in saa711x_s_clock_freq() 731 acc |= 0x40; in saa711x_s_clock_freq() 734 acc |= 0x08; in saa711x_s_clock_freq() 742 saa711x_write(sd, R_3A_AUD_CLK_GEN_BASIC_SETUP, acc); in saa711x_s_clock_freq()
|