Home
last modified time | relevance | path

Searched refs:oinfo (Results 1 – 18 of 18) sorted by relevance

/drivers/staging/lustre/lustre/osc/
Dosc_object.c140 struct lov_oinfo *oinfo = osc->oo_oinfo; in osc_object_print() local
141 struct osc_async_rc *ar = &oinfo->loi_ar; in osc_object_print()
144 POSTID(&oinfo->loi_oi), oinfo->loi_ost_idx, in osc_object_print()
145 oinfo->loi_ost_gen, oinfo->loi_kms_valid, oinfo->loi_kms, in osc_object_print()
147 osc_lvb_print(env, cookie, p, &oinfo->loi_lvb); in osc_object_print()
154 struct lov_oinfo *oinfo = cl2osc(obj)->oo_oinfo; in osc_attr_get() local
156 cl_lvb2attr(attr, &oinfo->loi_lvb); in osc_attr_get()
157 attr->cat_kms = oinfo->loi_kms_valid ? oinfo->loi_kms : 0; in osc_attr_get()
164 struct lov_oinfo *oinfo = cl2osc(obj)->oo_oinfo; in osc_attr_set() local
165 struct ost_lvb *lvb = &oinfo->loi_lvb; in osc_attr_set()
[all …]
Dosc_io.c404 struct obd_info oinfo = { }; in osc_io_setattr_start() local
458 oinfo.oi_oa = oa; in osc_io_setattr_start()
463 &oinfo, osc_async_upcall, in osc_io_setattr_start()
467 &oinfo, NULL, in osc_io_setattr_start()
547 struct obd_info *oinfo = &oio->oi_info; in osc_fsync_ost() local
563 memset(oinfo, 0, sizeof(*oinfo)); in osc_fsync_ost()
564 oinfo->oi_oa = oa; in osc_fsync_ost()
567 rc = osc_sync_base(osc_export(obj), oinfo, osc_async_upcall, cbargs, in osc_fsync_ost()
716 struct lov_oinfo *oinfo; in osc_req_attr_set() local
725 oinfo = cl2osc(obj)->oo_oinfo; in osc_req_attr_set()
[all …]
Dosc_request.c202 struct obd_info *oinfo) in osc_pack_req_body() argument
210 oinfo->oi_oa); in osc_pack_req_body()
241 static int osc_getattr_async(struct obd_export *exp, struct obd_info *oinfo, in osc_getattr_async() argument
258 osc_pack_req_body(req, oinfo); in osc_getattr_async()
265 aa->aa_oi = oinfo; in osc_getattr_async()
272 struct obd_info *oinfo) in osc_getattr() argument
288 osc_pack_req_body(req, oinfo); in osc_getattr()
303 lustre_get_wire_obdo(&req->rq_import->imp_connect_data, oinfo->oi_oa, in osc_getattr()
306 oinfo->oi_oa->o_blksize = cli_brw_size(exp->exp_obd); in osc_getattr()
307 oinfo->oi_oa->o_valid |= OBD_MD_FLBLKSZ; in osc_getattr()
[all …]
Dosc_internal.h122 int osc_setattr_async_base(struct obd_export *exp, struct obd_info *oinfo,
126 int osc_punch_base(struct obd_export *exp, struct obd_info *oinfo,
129 int osc_sync_base(struct obd_export *exp, struct obd_info *oinfo,
Dosc_lock.c342 struct lov_oinfo *oinfo; in osc_lock_lvb_update() local
351 oinfo = cl2osc(obj)->oo_oinfo; in osc_lock_lvb_update()
371 if (size >= oinfo->loi_kms) { in osc_lock_lvb_update()
378 lvb->lvb_size, oinfo->loi_kms, in osc_lock_lvb_update()
384 lvb->lvb_size, oinfo->loi_kms); in osc_lock_lvb_update()
/drivers/staging/lustre/lustre/lov/
Dlov_request.c263 struct obd_info *oinfo = cookie; in cb_getattr_update() local
266 lovreq = container_of(oinfo, struct lov_request, rq_oi); in cb_getattr_update()
270 int lov_prep_getattr_set(struct obd_export *exp, struct obd_info *oinfo, in lov_prep_getattr_set() argument
283 set->set_oi = oinfo; in lov_prep_getattr_set()
285 for (i = 0; i < oinfo->oi_md->lsm_stripe_count; i++) { in lov_prep_getattr_set()
289 loi = oinfo->oi_md->lsm_oinfo[i]; in lov_prep_getattr_set()
295 if (oinfo->oi_oa->o_valid & OBD_MD_FLEPOCH) { in lov_prep_getattr_set()
319 memcpy(req->rq_oi.oi_oa, oinfo->oi_oa, in lov_prep_getattr_set()
351 int lov_prep_destroy_set(struct obd_export *exp, struct obd_info *oinfo, in lov_prep_destroy_set() argument
366 set->set_oi = oinfo; in lov_prep_destroy_set()
[all …]
Dlov_obd.c1066 struct obd_info oinfo; in lov_destroy() local
1084 rc = lov_prep_destroy_set(exp, &oinfo, oa, lsm, oti, &set); in lov_destroy()
1131 static int lov_getattr_async(struct obd_export *exp, struct obd_info *oinfo, in lov_getattr_async() argument
1140 LASSERT(oinfo); in lov_getattr_async()
1141 ASSERT_LSM_MAGIC(oinfo->oi_md); in lov_getattr_async()
1148 rc = lov_prep_getattr_set(exp, oinfo, &lovset); in lov_getattr_async()
1153 POSTID(&oinfo->oi_md->lsm_oi), oinfo->oi_md->lsm_stripe_count, in lov_getattr_async()
1154 oinfo->oi_md->lsm_stripe_size); in lov_getattr_async()
1160 POSTID(&oinfo->oi_oa->o_oi), req->rq_stripe, in lov_getattr_async()
1168 POSTID(&oinfo->oi_oa->o_oi), in lov_getattr_async()
[all …]
Dlov_object.c130 struct lov_oinfo *oinfo; in lov_init_sub() local
147 oinfo = lov->lo_lsm->lsm_oinfo[idx]; in lov_init_sub()
151 PFID(&hdr->coh_lu.loh_fid), hdr, POSTID(&oinfo->loi_oi), in lov_init_sub()
152 oinfo->loi_ost_idx, oinfo->loi_ost_gen); in lov_init_sub()
231 struct lov_oinfo *oinfo = lsm->lsm_oinfo[i]; in lov_init_raid0() local
232 int ost_idx = oinfo->loi_ost_idx; in lov_init_raid0()
234 if (lov_oinfo_is_dummy(oinfo)) in lov_init_raid0()
237 result = ostid_to_fid(ofid, &oinfo->loi_oi, in lov_init_raid0()
238 oinfo->loi_ost_idx); in lov_init_raid0()
243 subconf->u.coc_oinfo = oinfo; in lov_init_raid0()
Dlov_internal.h171 int lov_prep_getattr_set(struct obd_export *exp, struct obd_info *oinfo,
174 int lov_prep_destroy_set(struct obd_export *exp, struct obd_info *oinfo,
179 int lov_prep_setattr_set(struct obd_export *exp, struct obd_info *oinfo,
185 int lov_prep_statfs_set(struct obd_device *obd, struct obd_info *oinfo,
/drivers/staging/lustre/lustre/include/
Dobd_class.h721 struct obd_info *oinfo) in obd_getattr() argument
728 rc = OBP(exp->exp_obd, getattr)(env, exp, oinfo); in obd_getattr()
733 struct obd_info *oinfo, in obd_getattr_async() argument
741 rc = OBP(exp->exp_obd, getattr_async)(exp, oinfo, set); in obd_getattr_async()
746 struct obd_info *oinfo, in obd_setattr() argument
754 rc = OBP(exp->exp_obd, setattr)(env, exp, oinfo, oti); in obd_setattr()
760 struct obd_info *oinfo, in obd_setattr_rqset() argument
773 rc = OBP(exp->exp_obd, setattr_async)(exp, oinfo, oti, set); in obd_setattr_rqset()
783 struct obd_info *oinfo, in obd_setattr_async() argument
792 rc = OBP(exp->exp_obd, setattr_async)(exp, oinfo, oti, set); in obd_setattr_async()
[all …]
Dobd.h77 static inline void loi_kms_set(struct lov_oinfo *oinfo, __u64 kms) in loi_kms_set() argument
79 oinfo->loi_kms = kms; in loi_kms_set()
80 oinfo->loi_kms_valid = 1; in loi_kms_set()
1017 int (*o_statfs_async)(struct obd_export *exp, struct obd_info *oinfo,
1032 struct obd_info *oinfo, struct obd_trans_info *oti);
1033 int (*o_setattr_async)(struct obd_export *exp, struct obd_info *oinfo,
1037 struct obd_info *oinfo);
1038 int (*o_getattr_async)(struct obd_export *exp, struct obd_info *oinfo,
/drivers/staging/lustre/lustre/obdecho/
Decho_client.c967 struct lov_oinfo *oinfo = lsm->lsm_oinfo[0]; in cl_echo_object_find() local
969 LASSERT(oinfo != NULL); in cl_echo_object_find()
970 oinfo->loi_oi = lsm->lsm_oi; in cl_echo_object_find()
971 conf->eoc_cl.u.coc_oinfo = oinfo; in cl_echo_object_find()
1923 struct obd_info oinfo = { }; in echo_client_iocontrol() local
1925 oinfo.oi_md = eco->eo_lsm; in echo_client_iocontrol()
1926 oinfo.oi_oa = oa; in echo_client_iocontrol()
1927 rc = obd_getattr(env, ec->ec_exp, &oinfo); in echo_client_iocontrol()
1940 struct obd_info oinfo = { }; in echo_client_iocontrol() local
1942 oinfo.oi_oa = oa; in echo_client_iocontrol()
[all …]
/drivers/mtd/
Dmtdchar.c941 struct otp_info oinfo; in mtdchar_ioctl() local
945 if (copy_from_user(&oinfo, argp, sizeof(oinfo))) in mtdchar_ioctl()
947 ret = mtd_lock_user_prot_reg(mtd, oinfo.start, oinfo.length); in mtdchar_ioctl()
Dmtdswap.c1420 struct nand_ecclayout *oinfo; in mtdswap_add_mtd() local
1450 oinfo = mtd->ecclayout; in mtdswap_add_mtd()
1451 if (!oinfo) { in mtdswap_add_mtd()
1457 if (!mtd->oobsize || oinfo->oobavail < MTDSWAP_OOBSIZE) { in mtdswap_add_mtd()
1460 MTDSWAP_PREFIX, oinfo->oobavail, MTDSWAP_OOBSIZE); in mtdswap_add_mtd()
/drivers/staging/lustre/lustre/llite/
Dllite_lib.c1751 struct obd_info oinfo = { }; in ll_iocontrol() local
1779 oinfo.oi_oa = kmem_cache_alloc(obdo_cachep, in ll_iocontrol()
1781 if (!oinfo.oi_oa) { in ll_iocontrol()
1785 oinfo.oi_md = lsm; in ll_iocontrol()
1786 oinfo.oi_oa->o_oi = lsm->lsm_oi; in ll_iocontrol()
1787 oinfo.oi_oa->o_flags = flags; in ll_iocontrol()
1788 oinfo.oi_oa->o_valid = OBD_MD_FLID | OBD_MD_FLFLAGS | in ll_iocontrol()
1790 obdo_set_parent_fid(oinfo.oi_oa, &ll_i2info(inode)->lli_fid); in ll_iocontrol()
1791 rc = obd_setattr_rqset(sbi->ll_dt_exp, &oinfo, NULL); in ll_iocontrol()
1792 kmem_cache_free(obdo_cachep, oinfo.oi_oa); in ll_iocontrol()
Dfile.c914 struct obd_info oinfo = { }; in ll_lsm_getattr() local
919 oinfo.oi_md = lsm; in ll_lsm_getattr()
920 oinfo.oi_oa = obdo; in ll_lsm_getattr()
921 oinfo.oi_oa->o_oi = lsm->lsm_oi; in ll_lsm_getattr()
922 oinfo.oi_oa->o_mode = S_IFREG; in ll_lsm_getattr()
923 oinfo.oi_oa->o_ioepoch = ioepoch; in ll_lsm_getattr()
924 oinfo.oi_oa->o_valid = OBD_MD_FLID | OBD_MD_FLTYPE | in ll_lsm_getattr()
931 oinfo.oi_oa->o_valid |= OBD_MD_FLFLAGS; in ll_lsm_getattr()
932 oinfo.oi_oa->o_flags |= OBD_FL_SRVLOCK; in ll_lsm_getattr()
940 rc = obd_getattr_async(exp, &oinfo, set); in ll_lsm_getattr()
[all …]
/drivers/regulator/
Dti-abb-regulator.c317 struct ti_abb_info *info, *oinfo; in ti_abb_set_voltage_sel() local
356 oinfo = &abb->info[abb->current_info_idx]; in ti_abb_set_voltage_sel()
357 if (!memcmp(info, oinfo, sizeof(*info))) { in ti_abb_set_voltage_sel()
/drivers/staging/lustre/lustre/include/lustre/
Dlustre_idl.h2860 void lustre_swab_mgs_target_info(struct mgs_target_info *oinfo);
2876 void lustre_swab_mgs_nidtbl_entry(struct mgs_nidtbl_entry *oinfo);