/drivers/staging/lustre/lustre/include/ |
D | obd_class.h | 187 #define __class_export_add_lock_ref(exp, lock) do {} while (0) argument 188 #define __class_export_del_lock_ref(exp, lock) do {} while (0) argument 193 struct obd_export *class_export_get(struct obd_export *exp); 194 void class_export_put(struct obd_export *exp); 197 void class_unlink_export(struct obd_export *exp); 202 void class_destroy_import(struct obd_import *exp); 207 int class_disconnect(struct obd_export *exp); 208 void class_fail_export(struct obd_export *exp); 211 static inline void class_export_rpc_inc(struct obd_export *exp) in class_export_rpc_inc() argument 213 atomic_inc(&(exp)->exp_rpc_count); in class_export_rpc_inc() [all …]
|
D | lustre_export.h | 219 static inline __u64 *exp_connect_flags_ptr(struct obd_export *exp) in exp_connect_flags_ptr() argument 221 return &exp->exp_connect_data.ocd_connect_flags; in exp_connect_flags_ptr() 224 static inline __u64 exp_connect_flags(struct obd_export *exp) in exp_connect_flags() argument 226 return *exp_connect_flags_ptr(exp); in exp_connect_flags() 229 static inline int exp_max_brw_size(struct obd_export *exp) in exp_max_brw_size() argument 231 LASSERT(exp != NULL); in exp_max_brw_size() 232 if (exp_connect_flags(exp) & OBD_CONNECT_BRW_SIZE) in exp_max_brw_size() 233 return exp->exp_connect_data.ocd_brw_size; in exp_max_brw_size() 238 static inline int exp_connect_multibulk(struct obd_export *exp) in exp_connect_multibulk() argument 240 return exp_max_brw_size(exp) > ONE_MB_BRW_SIZE; in exp_connect_multibulk() [all …]
|
D | obd.h | 507 struct obd_export *exp; member 967 int (*o_iocontrol)(unsigned int cmd, struct obd_export *exp, int len, 992 struct obd_export **exp, struct obd_device *src, 996 struct obd_export *exp, struct obd_device *src, 1000 int (*o_disconnect)(struct obd_export *exp); 1004 struct obd_export *exp, enum lu_cli_type type); 1008 int (*o_fid_alloc)(struct obd_export *exp, struct lu_fid *fid, 1015 int (*o_statfs)(const struct lu_env *, struct obd_export *exp, 1017 int (*o_statfs_async)(struct obd_export *exp, struct obd_info *oinfo, 1019 int (*o_packmd)(struct obd_export *exp, struct lov_mds_md **disk_tgt, [all …]
|
/drivers/iio/common/hid-sensors/ |
D | hid-sensor-attributes.c | 77 int exp = 0; in simple_div() local 89 exp++; in simple_div() 91 *micro_frac = (rem / divisor) * pow_10(6-exp); in simple_div() 95 static void split_micro_fraction(unsigned int no, int exp, int *val1, int *val2) in split_micro_fraction() argument 97 *val1 = no/pow_10(exp); in split_micro_fraction() 98 *val2 = no%pow_10(exp) * pow_10(6-exp); in split_micro_fraction() 109 static void convert_from_vtf_format(u32 value, int size, int exp, in convert_from_vtf_format() argument 118 exp = hid_sensor_convert_exponent(exp); in convert_from_vtf_format() 119 if (exp >= 0) { in convert_from_vtf_format() 120 *val1 = sign * value * pow_10(exp); in convert_from_vtf_format() [all …]
|
/drivers/media/usb/gspca/stv06xx/ |
D | stv06xx_hdcs.c | 90 } exp; member 190 u8 exp[14]; in hdcs_set_exposure() local 194 ct = hdcs->exp.cto + hdcs->psmp + (HDCS_ADC_START_SIG_DUR + 2); in hdcs_set_exposure() 195 cp = hdcs->exp.cto + (hdcs->w * ct / 2); in hdcs_set_exposure() 198 rp = hdcs->exp.rs + cp; in hdcs_set_exposure() 208 srowexp = hdcs->w - (cycles + hdcs->exp.er + 13) / ct; in hdcs_set_exposure() 210 mnct = (hdcs->exp.er + 12 + ct - 1) / ct; in hdcs_set_exposure() 214 srowexp = cp - hdcs->exp.er - 6 - cycles; in hdcs_set_exposure() 216 mnct = (hdcs->exp.er + 5 + ct - 1) / ct; in hdcs_set_exposure() 226 exp[0] = HDCS20_CONTROL; in hdcs_set_exposure() [all …]
|
/drivers/staging/lustre/lustre/obdclass/ |
D | genops.c | 57 static void obd_zombie_export_add(struct obd_export *exp); 637 struct obd_device *class_exp2obd(struct obd_export *exp) in class_exp2obd() argument 639 if (exp) in class_exp2obd() 640 return exp->exp_obd; in class_exp2obd() 645 struct obd_import *class_exp2cliimp(struct obd_export *exp) in class_exp2cliimp() argument 647 struct obd_device *obd = exp->exp_obd; in class_exp2cliimp() 656 static void class_export_destroy(struct obd_export *exp) in class_export_destroy() argument 658 struct obd_device *obd = exp->exp_obd; in class_export_destroy() 660 LASSERT_ATOMIC_ZERO(&exp->exp_refcount); in class_export_destroy() 663 CDEBUG(D_IOCTL, "destroying export %p/%s for %s\n", exp, in class_export_destroy() [all …]
|
D | obd_config.c | 287 struct obd_export *exp; in class_setup() local 336 exp = class_new_export(obd, &obd->obd_uuid); in class_setup() 337 if (IS_ERR(exp)) { in class_setup() 338 err = PTR_ERR(exp); in class_setup() 342 obd->obd_self_export = exp; in class_setup() 343 class_export_put(exp); in class_setup() 1429 struct obd_export *exp; in uuid_key() local 1431 exp = hlist_entry(hnode, struct obd_export, exp_uuid_hash); in uuid_key() 1433 return &exp->exp_client_uuid; in uuid_key() 1443 struct obd_export *exp; in uuid_keycmp() local [all …]
|
/drivers/staging/lustre/lustre/mdc/ |
D | mdc_internal.h | 74 int mdc_set_lock_data(struct obd_export *exp, 77 int mdc_null_inode(struct obd_export *exp, const struct lu_fid *fid); 79 int mdc_find_cbdata(struct obd_export *exp, const struct lu_fid *fid, 82 int mdc_intent_lock(struct obd_export *exp, 89 int mdc_enqueue(struct obd_export *exp, struct ldlm_enqueue_info *einfo, 94 int mdc_resource_get_unused(struct obd_export *exp, const struct lu_fid *fid, 98 int mdc_fid_alloc(struct obd_export *exp, struct lu_fid *fid, 101 int mdc_open(struct obd_export *exp, u64 ino, int type, int flags, 111 int mdc_free_lustre_md(struct obd_export *exp, struct lustre_md *md); 113 int mdc_set_open_replay_data(struct obd_export *exp, [all …]
|
D | mdc_reint.c | 69 int mdc_resource_get_unused(struct obd_export *exp, const struct lu_fid *fid, in mdc_resource_get_unused() argument 73 struct ldlm_namespace *ns = exp->exp_obd->obd_namespace; in mdc_resource_get_unused() 85 if (exp_connect_cancelset(exp) && !ns_connect_cancelset(ns)) in mdc_resource_get_unused() 89 res = ldlm_resource_get(exp->exp_obd->obd_namespace, in mdc_resource_get_unused() 103 int mdc_setattr(struct obd_export *exp, struct md_op_data *op_data, in mdc_setattr() argument 110 struct obd_device *obd = exp->exp_obd; in mdc_setattr() 122 count = mdc_resource_get_unused(exp, &op_data->op_fid1, in mdc_setattr() 124 req = ptlrpc_request_alloc(class_exp2cliimp(exp), in mdc_setattr() 137 rc = mdc_prep_elc_req(exp, req, MDS_REINT, &cancels, count); in mdc_setattr() 205 int mdc_create(struct obd_export *exp, struct md_op_data *op_data, in mdc_create() argument [all …]
|
D | mdc_locks.c | 118 int mdc_set_lock_data(struct obd_export *exp, __u64 *lockh, void *data, in mdc_set_lock_data() argument 154 ldlm_mode_t mdc_lock_match(struct obd_export *exp, __u64 flags, in mdc_lock_match() argument 164 policy->l_inodebits.bits &= exp_connect_ibits(exp); in mdc_lock_match() 165 rc = ldlm_lock_match(class_exp2obd(exp)->obd_namespace, flags, in mdc_lock_match() 170 int mdc_cancel_unused(struct obd_export *exp, in mdc_cancel_unused() argument 178 struct obd_device *obd = class_exp2obd(exp); in mdc_cancel_unused() 187 int mdc_null_inode(struct obd_export *exp, in mdc_null_inode() argument 192 struct ldlm_namespace *ns = class_exp2obd(exp)->obd_namespace; in mdc_null_inode() 214 int mdc_find_cbdata(struct obd_export *exp, in mdc_find_cbdata() argument 222 rc = ldlm_resource_iterate(class_exp2obd(exp)->obd_namespace, &res_id, in mdc_find_cbdata() [all …]
|
D | mdc_request.c | 76 static int mdc_getstatus(struct obd_export *exp, struct lu_fid *rootfid) in mdc_getstatus() argument 82 req = ptlrpc_request_alloc_pack(class_exp2cliimp(exp), in mdc_getstatus() 123 static int mdc_getattr_common(struct obd_export *exp, in mdc_getattr_common() argument 144 mdc_update_max_ea_from_body(exp, body); in mdc_getattr_common() 155 LASSERT(client_is_remote(exp)); in mdc_getattr_common() 165 static int mdc_getattr(struct obd_export *exp, struct md_op_data *op_data, in mdc_getattr() argument 177 req = ptlrpc_request_alloc(class_exp2cliimp(exp), &RQF_MDS_GETATTR); in mdc_getattr() 193 LASSERT(client_is_remote(exp)); in mdc_getattr() 199 rc = mdc_getattr_common(exp, req); in mdc_getattr() 207 static int mdc_getattr_name(struct obd_export *exp, struct md_op_data *op_data, in mdc_getattr_name() argument [all …]
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec.c | 1658 static int flavor_allowed(struct sptlrpc_flavor *exp, in flavor_allowed() argument 1663 if (exp->sf_rpc == SPTLRPC_FLVR_ANY || exp->sf_rpc == flvr->sf_rpc) in flavor_allowed() 1667 SPTLRPC_FLVR_POLICY(exp->sf_rpc) == in flavor_allowed() 1669 SPTLRPC_FLVR_MECH(exp->sf_rpc) == SPTLRPC_FLVR_MECH(flvr->sf_rpc)) in flavor_allowed() 1682 int sptlrpc_target_export_check(struct obd_export *exp, in sptlrpc_target_export_check() argument 1687 if (exp == NULL) in sptlrpc_target_export_check() 1692 if (exp->exp_imp_reverse == NULL) in sptlrpc_target_export_check() 1699 spin_lock(&exp->exp_lock); in sptlrpc_target_export_check() 1706 if (unlikely(exp->exp_flvr_changed) && in sptlrpc_target_export_check() 1707 flavor_allowed(&exp->exp_flvr_old[1], req)) { in sptlrpc_target_export_check() [all …]
|
/drivers/staging/lustre/lustre/lmv/ |
D | lmv_obd.c | 131 static struct obd_uuid *lmv_get_uuid(struct obd_export *exp) in lmv_get_uuid() argument 133 struct lmv_obd *lmv = &exp->exp_obd->u.lmv; in lmv_get_uuid() 198 struct obd_export **exp, struct obd_device *obd, in lmv_connect() argument 212 *exp = NULL; in lmv_connect() 222 *exp = class_conn2export(&conn); in lmv_connect() 223 class_export_get(*exp); in lmv_connect() 225 lmv->exp = *exp; in lmv_connect() 272 static int lmv_init_ea_size(struct obd_export *exp, int easize, in lmv_init_ea_size() argument 275 struct obd_device *obd = exp->exp_obd; in lmv_init_ea_size() 553 class_export_put(lmv->exp); in lmv_check_connect() [all …]
|
D | lmv_intent.c | 54 static int lmv_intent_remote(struct obd_export *exp, void *lmm, in lmv_intent_remote() argument 61 struct obd_device *obd = exp->exp_obd; in lmv_intent_remote() 159 int lmv_intent_open(struct obd_export *exp, struct md_op_data *op_data, in lmv_intent_open() argument 165 struct obd_device *obd = exp->exp_obd; in lmv_intent_open() 184 rc = lmv_fid_alloc(exp, &op_data->op_fid2, op_data); in lmv_intent_open() 219 rc = lmv_intent_remote(exp, lmm, lmmsize, it, &op_data->op_fid1, flags, in lmv_intent_open() 242 int lmv_intent_lookup(struct obd_export *exp, struct md_op_data *op_data, in lmv_intent_lookup() argument 248 struct obd_device *obd = exp->exp_obd; in lmv_intent_lookup() 286 rc = lmv_intent_remote(exp, lmm, lmmsize, it, NULL, flags, reqp, in lmv_intent_lookup() 292 int lmv_intent_lock(struct obd_export *exp, struct md_op_data *op_data, in lmv_intent_lock() argument [all …]
|
D | lmv_internal.h | 53 int lmv_intent_lock(struct obd_export *exp, struct md_op_data *op_data, 59 int lmv_intent_lookup(struct obd_export *exp, struct md_op_data *op_data, 65 int lmv_intent_open(struct obd_export *exp, struct md_op_data *op_data, 75 int lmv_fid_alloc(struct obd_export *exp, struct lu_fid *fid,
|
/drivers/staging/lustre/lustre/ldlm/ |
D | ldlm_lib.c | 489 struct obd_export **exp, in client_connect_import() argument 499 *exp = NULL; in client_connect_import() 511 *exp = class_conn2export(&conn); in client_connect_import() 531 LASSERT(*exp != NULL && (*exp)->exp_connection); in client_connect_import() 545 class_disconnect(*exp); in client_connect_import() 546 *exp = NULL; in client_connect_import() 555 int client_disconnect_export(struct obd_export *exp) in client_disconnect_export() argument 557 struct obd_device *obd = class_exp2obd(exp); in client_disconnect_export() 564 exp, exp ? exp->exp_handle.h_cookie : -1); in client_disconnect_export() 619 err = class_disconnect(exp); in client_disconnect_export() [all …]
|
D | ldlm_request.c | 333 int ldlm_cli_enqueue_fini(struct obd_export *exp, struct ptlrpc_request *req, in ldlm_cli_enqueue_fini() argument 338 struct ldlm_namespace *ns = exp->exp_obd->obd_namespace; in ldlm_cli_enqueue_fini() 402 if (exp->exp_lock_hash) { in ldlm_cli_enqueue_fini() 406 cfs_hash_rehash_key(exp->exp_lock_hash, in ldlm_cli_enqueue_fini() 456 !(exp_connect_flags(exp) & OBD_CONNECT_IBITS))) in ldlm_cli_enqueue_fini() 458 ldlm_convert_policy_to_local(exp, in ldlm_cli_enqueue_fini() 571 int ldlm_prep_elc_req(struct obd_export *exp, struct ptlrpc_request *req, in ldlm_prep_elc_req() argument 575 struct ldlm_namespace *ns = exp->exp_obd->obd_namespace; in ldlm_prep_elc_req() 635 int ldlm_prep_enqueue_req(struct obd_export *exp, struct ptlrpc_request *req, in ldlm_prep_enqueue_req() argument 638 return ldlm_prep_elc_req(exp, req, LUSTRE_DLM_VERSION, LDLM_ENQUEUE, in ldlm_prep_enqueue_req() [all …]
|
/drivers/staging/lustre/lustre/osc/ |
D | osc_internal.h | 92 int osc_create(const struct lu_env *env, struct obd_export *exp, 95 int osc_real_create(struct obd_export *exp, struct obdo *oa, 108 int osc_enqueue_base(struct obd_export *exp, struct ldlm_res_id *res_id, 117 int osc_match_base(struct obd_export *exp, struct ldlm_res_id *res_id, 122 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, 194 int osc_quotactl(struct obd_device *unused, struct obd_export *exp, 196 int osc_quotacheck(struct obd_device *unused, struct obd_export *exp, 198 int osc_quota_poll_check(struct obd_export *exp, struct if_quotacheck *qchk);
|
D | osc_request.c | 110 static int osc_packmd(struct obd_export *exp, struct lov_mds_md **lmmp, in osc_packmd() argument 140 static int osc_unpackmd(struct obd_export *exp, struct lov_stripe_md **lsmp, in osc_unpackmd() argument 144 struct obd_import *imp = class_exp2cliimp(exp); in osc_unpackmd() 149 exp->exp_obd->obd_name, lmm_bytes, in osc_unpackmd() 157 exp->exp_obd->obd_name, -EINVAL); in osc_unpackmd() 241 static int osc_getattr_async(struct obd_export *exp, struct obd_info *oinfo, in osc_getattr_async() argument 248 req = ptlrpc_request_alloc(class_exp2cliimp(exp), &RQF_OST_GETATTR); in osc_getattr_async() 271 static int osc_getattr(const struct lu_env *env, struct obd_export *exp, in osc_getattr() argument 278 req = ptlrpc_request_alloc(class_exp2cliimp(exp), &RQF_OST_GETATTR); in osc_getattr() 306 oinfo->oi_oa->o_blksize = cli_brw_size(exp->exp_obd); in osc_getattr() [all …]
|
D | osc_quota.c | 245 int osc_quotactl(struct obd_device *unused, struct obd_export *exp, in osc_quotactl() argument 252 req = ptlrpc_request_alloc_pack(class_exp2cliimp(exp), in osc_quotactl() 286 int osc_quotacheck(struct obd_device *unused, struct obd_export *exp, in osc_quotacheck() argument 289 struct client_obd *cli = &exp->exp_obd->u.cli; in osc_quotacheck() 294 req = ptlrpc_request_alloc_pack(class_exp2cliimp(exp), in osc_quotacheck() 315 int osc_quota_poll_check(struct obd_export *exp, struct if_quotacheck *qchk) in osc_quota_poll_check() argument 317 struct client_obd *cli = &exp->exp_obd->u.cli; in osc_quota_poll_check()
|
/drivers/media/rc/img-ir/ |
D | img-ir-sharp.c | 18 unsigned int addr, cmd, exp, chk; in img_ir_sharp_scancode() local 25 exp = (raw >> 13) & 0x1; in img_ir_sharp_scancode() 29 if (!exp) in img_ir_sharp_scancode() 44 unsigned int addr, cmd, exp = 0, chk = 0; in img_ir_sharp_filter() local 53 exp = 1; in img_ir_sharp_filter() 61 exp << 13 | in img_ir_sharp_filter()
|
/drivers/staging/lustre/lustre/lov/ |
D | lov_obd.c | 200 struct obd_export **exp, struct obd_device *obd, in lov_connect() argument 215 *exp = class_conn2export(&conn); in lov_connect() 300 static int lov_disconnect(struct obd_export *exp) in lov_disconnect() argument 302 struct obd_device *obd = class_exp2obd(exp); in lov_disconnect() 331 rc = class_disconnect(exp); /* bz 9811 */ in lov_disconnect() 967 static int lov_recreate(struct obd_export *exp, struct obdo *src_oa, in lov_recreate() argument 971 struct lov_obd *lov = &exp->exp_obd->u.lov; in lov_recreate() 1021 static int lov_create(const struct lu_env *env, struct obd_export *exp, in lov_create() argument 1029 if (exp == NULL) in lov_create() 1038 lov = &exp->exp_obd->u.lov; in lov_create() [all …]
|
D | lov_internal.h | 134 int lov_adjust_kms(struct obd_export *exp, struct lov_stripe_md *lsm, 157 int qos_prep_create(struct obd_export *exp, struct lov_request_set *set); 171 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, 210 int lov_packmd(struct obd_export *exp, struct lov_mds_md **lmm, 212 int lov_unpackmd(struct obd_export *exp, struct lov_stripe_md **lsmp, 214 int lov_getstripe(struct obd_export *exp,
|
/drivers/staging/lustre/lustre/fid/ |
D | fid_request.c | 62 struct obd_export *exp = seq->lcs_exp; in seq_client_rpc() local 69 req = ptlrpc_request_alloc_pack(class_exp2cliimp(exp), &RQF_SEQ_QUERY, in seq_client_rpc() 113 mdc_get_rpc_lock(exp->exp_obd->u.cli.cl_rpc_lock, NULL); in seq_client_rpc() 116 mdc_put_rpc_lock(exp->exp_obd->u.cli.cl_rpc_lock, NULL); in seq_client_rpc() 393 struct obd_export *exp, in seq_client_init() argument 414 seq->lcs_exp = class_export_get(exp); in seq_client_init() 426 struct obd_export *exp, enum lu_cli_type type) in client_fid_init() argument 445 rc = seq_client_init(cli->cl_seq, exp, type, prefix); in client_fid_init()
|
/drivers/media/usb/gspca/ |
D | sn9c20x.c | 1451 u8 exp[8] = {sd->i2c_intf, sd->i2c_addr, in set_exposure() local 1456 exp[7] = 0x1e; in set_exposure() 1467 exp[0] |= (2 << 4); in set_exposure() 1468 exp[2] = 0x10; /* AECH */ in set_exposure() 1469 exp[3] = expo2 >> 2; in set_exposure() 1470 exp[7] = 0x10; in set_exposure() 1471 i2c_w(gspca_dev, exp); in set_exposure() 1472 exp[2] = 0x04; /* COM1 */ in set_exposure() 1473 exp[3] = expo2 & 0x0003; in set_exposure() 1474 exp[7] = 0x10; in set_exposure() [all …]
|