• Home
  • Raw
  • Download

Lines Matching refs:mr

1060 	struct ib_mr *mr;  in ib_get_dma_mr()  local
1067 mr = pd->device->get_dma_mr(pd, mr_access_flags); in ib_get_dma_mr()
1069 if (!IS_ERR(mr)) { in ib_get_dma_mr()
1070 mr->device = pd->device; in ib_get_dma_mr()
1071 mr->pd = pd; in ib_get_dma_mr()
1072 mr->uobject = NULL; in ib_get_dma_mr()
1074 atomic_set(&mr->usecnt, 0); in ib_get_dma_mr()
1077 return mr; in ib_get_dma_mr()
1087 struct ib_mr *mr; in ib_reg_phys_mr() local
1097 mr = pd->device->reg_phys_mr(pd, phys_buf_array, num_phys_buf, in ib_reg_phys_mr()
1100 if (!IS_ERR(mr)) { in ib_reg_phys_mr()
1101 mr->device = pd->device; in ib_reg_phys_mr()
1102 mr->pd = pd; in ib_reg_phys_mr()
1103 mr->uobject = NULL; in ib_reg_phys_mr()
1105 atomic_set(&mr->usecnt, 0); in ib_reg_phys_mr()
1108 return mr; in ib_reg_phys_mr()
1112 int ib_rereg_phys_mr(struct ib_mr *mr, in ib_rereg_phys_mr() argument
1127 if (!mr->device->rereg_phys_mr) in ib_rereg_phys_mr()
1130 if (atomic_read(&mr->usecnt)) in ib_rereg_phys_mr()
1133 old_pd = mr->pd; in ib_rereg_phys_mr()
1135 ret = mr->device->rereg_phys_mr(mr, mr_rereg_mask, pd, in ib_rereg_phys_mr()
1148 int ib_query_mr(struct ib_mr *mr, struct ib_mr_attr *mr_attr) in ib_query_mr() argument
1150 return mr->device->query_mr ? in ib_query_mr()
1151 mr->device->query_mr(mr, mr_attr) : -ENOSYS; in ib_query_mr()
1155 int ib_dereg_mr(struct ib_mr *mr) in ib_dereg_mr() argument
1160 if (atomic_read(&mr->usecnt)) in ib_dereg_mr()
1163 pd = mr->pd; in ib_dereg_mr()
1164 ret = mr->device->dereg_mr(mr); in ib_dereg_mr()
1175 struct ib_mr *mr; in ib_create_mr() local
1180 mr = pd->device->create_mr(pd, mr_init_attr); in ib_create_mr()
1182 if (!IS_ERR(mr)) { in ib_create_mr()
1183 mr->device = pd->device; in ib_create_mr()
1184 mr->pd = pd; in ib_create_mr()
1185 mr->uobject = NULL; in ib_create_mr()
1187 atomic_set(&mr->usecnt, 0); in ib_create_mr()
1190 return mr; in ib_create_mr()
1194 int ib_destroy_mr(struct ib_mr *mr) in ib_destroy_mr() argument
1199 if (atomic_read(&mr->usecnt)) in ib_destroy_mr()
1202 pd = mr->pd; in ib_destroy_mr()
1203 ret = mr->device->destroy_mr(mr); in ib_destroy_mr()
1213 struct ib_mr *mr; in ib_alloc_fast_reg_mr() local
1218 mr = pd->device->alloc_fast_reg_mr(pd, max_page_list_len); in ib_alloc_fast_reg_mr()
1220 if (!IS_ERR(mr)) { in ib_alloc_fast_reg_mr()
1221 mr->device = pd->device; in ib_alloc_fast_reg_mr()
1222 mr->pd = pd; in ib_alloc_fast_reg_mr()
1223 mr->uobject = NULL; in ib_alloc_fast_reg_mr()
1225 atomic_set(&mr->usecnt, 0); in ib_alloc_fast_reg_mr()
1228 return mr; in ib_alloc_fast_reg_mr()
1441 int ib_check_mr_status(struct ib_mr *mr, u32 check_mask, in ib_check_mr_status() argument
1444 return mr->device->check_mr_status ? in ib_check_mr_status()
1445 mr->device->check_mr_status(mr, check_mask, mr_status) : -ENOSYS; in ib_check_mr_status()