Searched refs:acc (Results 1 - 25 of 30) sorted by relevance

12

/drivers/infiniband/hw/cxgb3/
H A Diwch_provider.h292 static inline u32 iwch_ib_to_tpt_access(int acc) argument
294 return (acc & IB_ACCESS_REMOTE_WRITE ? TPT_REMOTE_WRITE : 0) |
295 (acc & IB_ACCESS_REMOTE_READ ? TPT_REMOTE_READ : 0) |
296 (acc & IB_ACCESS_LOCAL_WRITE ? TPT_LOCAL_WRITE : 0) |
297 (acc & IB_ACCESS_MW_BIND ? TPT_MW_BIND : 0) |
301 static inline u32 iwch_ib_to_tpt_bind_access(int acc) argument
303 return (acc & IB_ACCESS_REMOTE_WRITE ? TPT_REMOTE_WRITE : 0) |
304 (acc & IB_ACCESS_REMOTE_READ ? TPT_REMOTE_READ : 0);
H A Diwch_provider.c474 int acc,
527 mhp->attr.perms = iwch_ib_to_tpt_access(acc);
553 int acc, u64 * iova_start)
584 mh.attr.perms = iwch_ib_to_tpt_access(acc);
602 mhp->attr.perms = iwch_ib_to_tpt_access(acc);
616 u64 virt, int acc, struct ib_udata *udata)
638 mhp->umem = ib_umem_get(pd->uobject->context, start, length, acc, 0);
690 mhp->attr.perms = iwch_ib_to_tpt_access(acc);
723 static struct ib_mr *iwch_get_dma_mr(struct ib_pd *pd, int acc) argument
737 ibmr = iwch_register_phys_mem(pd, &bl, 1, acc,
471 iwch_register_phys_mem(struct ib_pd *pd, struct ib_phys_buf *buffer_list, int num_phys_buf, int acc, u64 *iova_start) argument
548 iwch_reregister_phys_mem(struct ib_mr *mr, int mr_rereg_mask, struct ib_pd *pd, struct ib_phys_buf *buffer_list, int num_phys_buf, int acc, u64 * iova_start) argument
615 iwch_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, u64 virt, int acc, struct ib_udata *udata) argument
[all...]
/drivers/infiniband/hw/mlx4/
H A Dmr.c38 static u32 convert_access(int acc) argument
40 return (acc & IB_ACCESS_REMOTE_ATOMIC ? MLX4_PERM_ATOMIC : 0) |
41 (acc & IB_ACCESS_REMOTE_WRITE ? MLX4_PERM_REMOTE_WRITE : 0) |
42 (acc & IB_ACCESS_REMOTE_READ ? MLX4_PERM_REMOTE_READ : 0) |
43 (acc & IB_ACCESS_LOCAL_WRITE ? MLX4_PERM_LOCAL_WRITE : 0) |
47 struct ib_mr *mlx4_ib_get_dma_mr(struct ib_pd *pd, int acc) argument
57 ~0ull, convert_access(acc), 0, 0, &mr->mmr);
268 struct ib_fmr *mlx4_ib_fmr_alloc(struct ib_pd *pd, int acc, argument
279 err = mlx4_fmr_alloc(dev->dev, to_mpd(pd)->pdn, convert_access(acc),
H A Dmlx4_ib.h280 struct ib_mr *mlx4_ib_get_dma_mr(struct ib_pd *pd, int acc);
H A Dqp.c1533 static __be32 convert_access(int acc) argument
1535 return (acc & IB_ACCESS_REMOTE_ATOMIC ? cpu_to_be32(MLX4_WQE_FMR_PERM_ATOMIC) : 0) |
1536 (acc & IB_ACCESS_REMOTE_WRITE ? cpu_to_be32(MLX4_WQE_FMR_PERM_REMOTE_WRITE) : 0) |
1537 (acc & IB_ACCESS_REMOTE_READ ? cpu_to_be32(MLX4_WQE_FMR_PERM_REMOTE_READ) : 0) |
1538 (acc & IB_ACCESS_LOCAL_WRITE ? cpu_to_be32(MLX4_WQE_FMR_PERM_LOCAL_WRITE) : 0) |
/drivers/media/rc/
H A Dati_remote.c412 int acc; local
415 acc = 1;
419 acc = accel[0];
421 acc = accel[1];
423 acc = accel[2];
425 acc = accel[3];
427 acc = accel[4];
429 acc = accel[5];
431 acc = accel[6];
433 return acc;
445 int acc; local
[all...]
/drivers/infiniband/hw/ipath/
H A Dipath_keys.c114 * @acc: access flags
122 struct ib_sge *sge, int acc)
159 (mr->access_flags & acc) != acc)) {
195 * @acc: access flags
200 u32 len, u64 vaddr, u32 rkey, int acc)
241 (mr->access_flags & acc) == 0)) {
121 ipath_lkey_ok(struct ipath_qp *qp, struct ipath_sge *isge, struct ib_sge *sge, int acc) argument
199 ipath_rkey_ok(struct ipath_qp *qp, struct ipath_sge_state *ss, u32 len, u64 vaddr, u32 rkey, int acc) argument
H A Dipath_mr.c57 * @acc: access flags
63 struct ib_mr *ipath_get_dma_mr(struct ib_pd *pd, int acc) argument
74 mr->mr.access_flags = acc;
134 int num_phys_buf, int acc, u64 *iova_start)
151 mr->mr.access_flags = acc;
132 ipath_reg_phys_mr(struct ib_pd *pd, struct ib_phys_buf *buffer_list, int num_phys_buf, int acc, u64 *iova_start) argument
H A 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/qib/
H A Dqib_keys.c126 * @acc: access flags
134 struct qib_sge *isge, struct ib_sge *sge, int acc)
172 (mr->access_flags & acc) != acc))
222 * @acc: access flags
227 u32 len, u64 vaddr, u32 rkey, int acc)
266 (mr->access_flags & acc) == 0))
133 qib_lkey_ok(struct qib_lkey_table *rkt, struct qib_pd *pd, struct qib_sge *isge, struct ib_sge *sge, int acc) argument
226 qib_rkey_ok(struct qib_qp *qp, struct qib_sge *sge, u32 len, u64 vaddr, u32 rkey, int acc) argument
H A Dqib_sd7220.c551 u16 acc; local
562 acc = kr_ibsd_epb_access_ctrl;
568 acc = kr_pciesd_epb_access_ctrl;
580 accval = qib_read_kreg32(dd, acc);
591 qib_write_kreg(dd, acc, newval);
593 pollval = qib_read_kreg32(dd, acc);
595 pollval = qib_read_kreg32(dd, acc);
602 qib_write_kreg(dd, acc, newval);
604 pollval = qib_read_kreg32(dd, acc);
606 pollval = qib_read_kreg32(dd, acc);
[all...]
H A Dqib_mr.c53 * @acc: access flags
59 struct ib_mr *qib_get_dma_mr(struct ib_pd *pd, int acc) argument
77 mr->mr.access_flags = acc;
145 int num_phys_buf, int acc, u64 *iova_start)
162 mr->mr.access_flags = acc;
143 qib_reg_phys_mr(struct ib_pd *pd, struct ib_phys_buf *buffer_list, int num_phys_buf, int acc, u64 *iova_start) argument
H A Dqib_verbs.h933 struct qib_sge *isge, struct ib_sge *sge, int acc);
936 u32 len, u64 vaddr, u32 rkey, int acc);
967 struct ib_mr *qib_get_dma_mr(struct ib_pd *pd, int acc);
971 int num_phys_buf, int acc, u64 *iova_start);
/drivers/infiniband/hw/cxgb4/
H A Dmem.c357 int num_phys_buf, int acc, u64 *iova_start)
388 mh.attr.perms = c4iw_ib_to_tpt_access(acc);
389 mh.attr.mw_bind_enable = (acc & IB_ACCESS_MW_BIND) ==
408 mhp->attr.perms = c4iw_ib_to_tpt_access(acc);
422 int num_phys_buf, int acc, u64 *iova_start)
476 mhp->attr.perms = c4iw_ib_to_tpt_access(acc);
498 struct ib_mr *c4iw_get_dma_mr(struct ib_pd *pd, int acc) argument
516 mhp->attr.perms = c4iw_ib_to_tpt_access(acc);
517 mhp->attr.mw_bind_enable = (acc&IB_ACCESS_MW_BIND) == IB_ACCESS_MW_BIND;
543 u64 virt, int acc, struc
355 c4iw_reregister_phys_mem(struct ib_mr *mr, int mr_rereg_mask, struct ib_pd *pd, struct ib_phys_buf *buffer_list, int num_phys_buf, int acc, u64 *iova_start) argument
420 c4iw_register_phys_mem(struct ib_pd *pd, struct ib_phys_buf *buffer_list, int num_phys_buf, int acc, u64 *iova_start) argument
542 c4iw_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, u64 virt, int acc, struct ib_udata *udata) argument
[all...]
H A Diw_cxgb4.h491 static inline u32 c4iw_ib_to_tpt_bind_access(int acc) argument
493 return (acc & IB_ACCESS_REMOTE_WRITE ? FW_RI_MEM_ACCESS_REM_WRITE : 0) |
494 (acc & IB_ACCESS_REMOTE_READ ? FW_RI_MEM_ACCESS_REM_READ : 0);
744 u64 length, u64 virt, int acc,
746 struct ib_mr *c4iw_get_dma_mr(struct ib_pd *pd, int acc);
750 int acc,
757 int acc, u64 *iova_start);
/drivers/pps/generators/
H A Dpps_gen_parport.c161 long acc = 0; local
174 acc += timespec_to_ns(&b);
177 dev->port_write_time = acc >> PORT_NTESTS_SHIFT;
/drivers/scsi/libfc/
H A Dfc_exch.c1683 struct fc_els_ls_acc *acc; local
1687 fp = fc_frame_alloc(lport, sizeof(*acc));
1690 acc = fc_frame_payload_get(fp, sizeof(*acc));
1691 memset(acc, 0, sizeof(*acc));
1692 acc->la_cmd = ELS_LS_ACC;
1858 struct fc_els_rec_acc *acc; local
1883 fp = fc_frame_alloc(lport, sizeof(*acc));
1887 acc
[all...]
/drivers/infiniband/hw/amso1100/
H A Dc2_provider.c324 static inline u32 c2_convert_access(int acc) argument
326 return (acc & IB_ACCESS_REMOTE_WRITE ? C2_ACF_REMOTE_WRITE : 0) |
327 (acc & IB_ACCESS_REMOTE_READ ? C2_ACF_REMOTE_READ : 0) |
328 (acc & IB_ACCESS_LOCAL_WRITE ? C2_ACF_LOCAL_WRITE : 0) |
334 int num_phys_buf, int acc, u64 * iova_start)
405 c2_convert_access(acc), mr);
415 static struct ib_mr *c2_get_dma_mr(struct ib_pd *pd, int acc) argument
425 return c2_reg_phys_mr(pd, &bl, 1, acc, &kva);
429 u64 virt, int acc, struct ib_udata *udata)
447 c2mr->umem = ib_umem_get(pd->uobject->context, start, length, acc,
332 c2_reg_phys_mr(struct ib_pd *ib_pd, struct ib_phys_buf *buffer_list, int num_phys_buf, int acc, u64 * iova_start) argument
428 c2_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, u64 virt, int acc, struct ib_udata *udata) argument
[all...]
/drivers/s390/scsi/
H A Dzfcp_fc.c474 /* acc. to FC-FS, hard_nport_id in ADISC should not be set for ports
594 struct fc_gpn_ft_resp *acc = sg_virt(sg); local
620 acc++;
622 acc = sg_virt(++sg);
624 last = acc->fp_flags & FC_NS_FID_LAST;
625 d_id = ntoh24(acc->fp_fid);
631 if (acc->fp_wwpn == fc_host_port_name(adapter->scsi_host))
634 port = zfcp_port_enqueue(adapter, acc->fp_wwpn,
/drivers/infiniband/hw/mthca/
H A Dmthca_provider.c860 static inline u32 convert_access(int acc) argument
862 return (acc & IB_ACCESS_REMOTE_ATOMIC ? MTHCA_MPT_FLAG_ATOMIC : 0) |
863 (acc & IB_ACCESS_REMOTE_WRITE ? MTHCA_MPT_FLAG_REMOTE_WRITE : 0) |
864 (acc & IB_ACCESS_REMOTE_READ ? MTHCA_MPT_FLAG_REMOTE_READ : 0) |
865 (acc & IB_ACCESS_LOCAL_WRITE ? MTHCA_MPT_FLAG_LOCAL_WRITE : 0) |
869 static struct ib_mr *mthca_get_dma_mr(struct ib_pd *pd, int acc) argument
880 convert_access(acc), mr);
895 int acc,
961 convert_access(acc), mr);
976 u64 virt, int acc, struc
892 mthca_reg_phys_mr(struct ib_pd *pd, struct ib_phys_buf *buffer_list, int num_phys_buf, int acc, u64 *iova_start) argument
975 mthca_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, u64 virt, int acc, struct ib_udata *udata) argument
[all...]
/drivers/scsi/bnx2fc/
H A Dbnx2fc_els.c373 struct fc_els_rec_acc *acc; local
442 acc = resp_buf = mp_req->resp_buf;
498 offset = ntohl(acc->reca_fc4value);
499 e_stat = ntohl(acc->reca_e_stat);
/drivers/video/
H A Dtmiofb.c534 u32 acc[16]; local
538 if (len > ARRAY_SIZE(acc))
540 if (copy_from_user(acc, argp + 1, sizeof(u32) * len))
543 return tmiofb_acc_write(fbi, acc, len);
/drivers/hwmon/
H A Dacpi_power_meter.c460 unsigned int acc = resource->caps.accuracy; local
462 return sprintf(buf, "%u.%u%%\n", acc / 1000, acc % 1000);
/drivers/media/video/
H A Dsaa7115.c702 u8 acc = 0; /* reg 0x3a, audio clock control */ local
728 acc = 0x80;
730 acc |= 0x40;
733 acc |= 0x08;
737 saa711x_write(sd, R_3A_AUD_CLK_GEN_BASIC_SETUP, acc);
/drivers/infiniband/hw/nes/
H A Dnes_verbs.c1921 u16 residual_page_count_4k, int acc, u64 *iova_start,
2015 if (acc & IB_ACCESS_LOCAL_WRITE)
2017 if (acc & IB_ACCESS_REMOTE_WRITE)
2019 if (acc & IB_ACCESS_REMOTE_READ)
2021 if (acc & IB_ACCESS_MW_BIND)
2086 struct ib_phys_buf *buffer_list, int num_phys_buf, int acc,
2240 buffer_list[0].addr, pbl_count, (u16)cur_pbl_index, acc, iova_start,
2275 static struct ib_mr *nes_get_dma_mr(struct ib_pd *pd, int acc) argument
2284 return nes_reg_phys_mr(pd, &bl, 1, acc, &kva);
2292 u64 virt, int acc, struc
1918 nes_reg_mr(struct nes_device *nesdev, struct nes_pd *nespd, u32 stag, u64 region_length, struct nes_root_vpbl *root_vpbl, dma_addr_t single_buffer, u16 pbl_count_4k, u16 residual_page_count_4k, int acc, u64 *iova_start, u16 *actual_pbl_cnt, u8 *used_4k_pbls) argument
2085 nes_reg_phys_mr(struct ib_pd *ib_pd, struct ib_phys_buf *buffer_list, int num_phys_buf, int acc, u64 * iova_start) argument
2291 nes_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, u64 virt, int acc, struct ib_udata *udata) argument
[all...]

Completed in 492 milliseconds

12