Home
last modified time | relevance | path

Searched refs:exp (Results 1 – 25 of 93) sorted by relevance

1234

/drivers/staging/lustre/lustre/include/
Dobd_class.h192 #define __class_export_add_lock_ref(exp, lock) do {} while (0) argument
193 #define __class_export_del_lock_ref(exp, lock) do {} while (0) argument
198 struct obd_export *class_export_get(struct obd_export *exp);
199 void class_export_put(struct obd_export *exp);
202 void class_unlink_export(struct obd_export *exp);
207 void class_destroy_import(struct obd_import *exp);
212 int class_disconnect(struct obd_export *exp);
213 void class_fail_export(struct obd_export *exp);
216 static inline void class_export_rpc_inc(struct obd_export *exp) in class_export_rpc_inc() argument
218 atomic_inc(&(exp)->exp_rpc_count); in class_export_rpc_inc()
[all …]
Dlustre_export.h146 static inline __u64 *exp_connect_flags_ptr(struct obd_export *exp) in exp_connect_flags_ptr() argument
148 return &exp->exp_connect_data.ocd_connect_flags; in exp_connect_flags_ptr()
151 static inline __u64 exp_connect_flags(struct obd_export *exp) in exp_connect_flags() argument
153 return *exp_connect_flags_ptr(exp); in exp_connect_flags()
156 static inline int exp_max_brw_size(struct obd_export *exp) in exp_max_brw_size() argument
158 if (exp_connect_flags(exp) & OBD_CONNECT_BRW_SIZE) in exp_max_brw_size()
159 return exp->exp_connect_data.ocd_brw_size; in exp_max_brw_size()
164 static inline int exp_connect_multibulk(struct obd_export *exp) in exp_connect_multibulk() argument
166 return exp_max_brw_size(exp) > ONE_MB_BRW_SIZE; in exp_connect_multibulk()
169 static inline int exp_connect_cancelset(struct obd_export *exp) in exp_connect_cancelset() argument
[all …]
Dobd.h451 struct obd_export *exp; member
839 int (*iocontrol)(unsigned int cmd, struct obd_export *exp, int len,
863 struct obd_export **exp, struct obd_device *src,
867 struct obd_export *exp, struct obd_device *src,
871 int (*disconnect)(struct obd_export *exp);
875 struct obd_export *exp, enum lu_cli_type type);
879 int (*fid_alloc)(const struct lu_env *env, struct obd_export *exp,
886 int (*statfs)(const struct lu_env *, struct obd_export *exp,
888 int (*statfs_async)(struct obd_export *exp, struct obd_info *oinfo,
890 int (*packmd)(struct obd_export *exp, struct lov_mds_md **disk_tgt,
[all …]
/drivers/media/usb/gspca/stv06xx/
Dstv06xx_hdcs.c90 } 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/iio/common/hid-sensors/
Dhid-sensor-attributes.c77 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/staging/lustre/lustre/obdclass/
Dgenops.c54 static void obd_zombie_export_add(struct obd_export *exp);
622 struct obd_device *class_exp2obd(struct obd_export *exp) in class_exp2obd() argument
624 if (exp) in class_exp2obd()
625 return exp->exp_obd; in class_exp2obd()
630 struct obd_import *class_exp2cliimp(struct obd_export *exp) in class_exp2cliimp() argument
632 struct obd_device *obd = exp->exp_obd; in class_exp2cliimp()
641 static void class_export_destroy(struct obd_export *exp) in class_export_destroy() argument
643 struct obd_device *obd = exp->exp_obd; in class_export_destroy()
645 LASSERT_ATOMIC_ZERO(&exp->exp_refcount); in class_export_destroy()
648 CDEBUG(D_IOCTL, "destroying export %p/%s for %s\n", exp, in class_export_destroy()
[all …]
Dobd_config.c278 struct obd_export *exp; in class_setup() local
328 exp = class_new_export(obd, &obd->obd_uuid); in class_setup()
329 if (IS_ERR(exp)) { in class_setup()
330 err = PTR_ERR(exp); in class_setup()
334 obd->obd_self_export = exp; in class_setup()
335 class_export_put(exp); in class_setup()
1419 struct obd_export *exp; in uuid_key() local
1421 exp = hlist_entry(hnode, struct obd_export, exp_uuid_hash); in uuid_key()
1423 return &exp->exp_client_uuid; in uuid_key()
1433 struct obd_export *exp; in uuid_keycmp() local
[all …]
/drivers/staging/lustre/lustre/mdc/
Dmdc_reint.c66 int mdc_resource_get_unused(struct obd_export *exp, const struct lu_fid *fid, in mdc_resource_get_unused() argument
70 struct ldlm_namespace *ns = exp->exp_obd->obd_namespace; in mdc_resource_get_unused()
83 if (exp_connect_cancelset(exp) && !ns_connect_cancelset(ns)) in mdc_resource_get_unused()
87 res = ldlm_resource_get(exp->exp_obd->obd_namespace, in mdc_resource_get_unused()
101 int mdc_setattr(struct obd_export *exp, struct md_op_data *op_data, in mdc_setattr() argument
108 struct obd_device *obd = exp->exp_obd; in mdc_setattr()
117 count = mdc_resource_get_unused(exp, &op_data->op_fid1, in mdc_setattr()
119 req = ptlrpc_request_alloc(class_exp2cliimp(exp), in mdc_setattr()
132 rc = mdc_prep_elc_req(exp, req, MDS_REINT, &cancels, count); in mdc_setattr()
198 int mdc_create(struct obd_export *exp, struct md_op_data *op_data, in mdc_create() argument
[all …]
Dmdc_internal.h64 int mdc_set_lock_data(struct obd_export *exp,
68 int mdc_null_inode(struct obd_export *exp, const struct lu_fid *fid);
70 int mdc_intent_lock(struct obd_export *exp,
77 int mdc_enqueue(struct obd_export *exp, struct ldlm_enqueue_info *einfo,
82 int mdc_resource_get_unused(struct obd_export *exp, const struct lu_fid *fid,
86 int mdc_fid_alloc(const struct lu_env *env, struct obd_export *exp,
90 int mdc_set_open_replay_data(struct obd_export *exp,
97 int mdc_create(struct obd_export *exp, struct md_op_data *op_data,
101 int mdc_link(struct obd_export *exp, struct md_op_data *op_data,
103 int mdc_rename(struct obd_export *exp, struct md_op_data *op_data,
[all …]
Dmdc_locks.c96 int mdc_set_lock_data(struct obd_export *exp, const struct lustre_handle *lockh, in mdc_set_lock_data() argument
132 enum ldlm_mode mdc_lock_match(struct obd_export *exp, __u64 flags, in mdc_lock_match() argument
142 policy->l_inodebits.bits &= exp_connect_ibits(exp); in mdc_lock_match()
143 rc = ldlm_lock_match(class_exp2obd(exp)->obd_namespace, flags, in mdc_lock_match()
148 int mdc_cancel_unused(struct obd_export *exp, in mdc_cancel_unused() argument
156 struct obd_device *obd = class_exp2obd(exp); in mdc_cancel_unused()
165 int mdc_null_inode(struct obd_export *exp, in mdc_null_inode() argument
170 struct ldlm_namespace *ns = class_exp2obd(exp)->obd_namespace; in mdc_null_inode()
231 mdc_intent_open_pack(struct obd_export *exp, struct lookup_intent *it, in mdc_intent_open_pack() argument
235 struct obd_device *obddev = class_exp2obd(exp); in mdc_intent_open_pack()
[all …]
Dmdc_request.c76 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
143 mdc_update_max_ea_from_body(exp, body); in mdc_getattr_common()
154 static int mdc_getattr(struct obd_export *exp, struct md_op_data *op_data, in mdc_getattr() argument
166 req = ptlrpc_request_alloc(class_exp2cliimp(exp), &RQF_MDS_GETATTR); in mdc_getattr()
183 rc = mdc_getattr_common(exp, req); in mdc_getattr()
191 static int mdc_getattr_name(struct obd_export *exp, struct md_op_data *op_data, in mdc_getattr_name() argument
198 req = ptlrpc_request_alloc(class_exp2cliimp(exp), in mdc_getattr_name()
227 rc = mdc_getattr_common(exp, req); in mdc_getattr_name()
[all …]
/drivers/staging/lustre/lustre/ptlrpc/
Dsec.c1671 static int flavor_allowed(struct sptlrpc_flavor *exp, in flavor_allowed() argument
1676 if (exp->sf_rpc == SPTLRPC_FLVR_ANY || exp->sf_rpc == flvr->sf_rpc) in flavor_allowed()
1680 SPTLRPC_FLVR_POLICY(exp->sf_rpc) == in flavor_allowed()
1682 SPTLRPC_FLVR_MECH(exp->sf_rpc) == SPTLRPC_FLVR_MECH(flvr->sf_rpc)) in flavor_allowed()
1695 int sptlrpc_target_export_check(struct obd_export *exp, in sptlrpc_target_export_check() argument
1700 if (!exp) in sptlrpc_target_export_check()
1706 if (!exp->exp_imp_reverse) in sptlrpc_target_export_check()
1713 spin_lock(&exp->exp_lock); in sptlrpc_target_export_check()
1721 if (unlikely(exp->exp_flvr_changed) && in sptlrpc_target_export_check()
1722 flavor_allowed(&exp->exp_flvr_old[1], req)) { in sptlrpc_target_export_check()
[all …]
/drivers/staging/lustre/lustre/ldlm/
Dldlm_lib.c456 struct obd_export **exp, in client_connect_import() argument
466 *exp = NULL; in client_connect_import()
478 *exp = class_conn2export(&conn); in client_connect_import()
498 LASSERT(*exp && (*exp)->exp_connection); in client_connect_import()
512 class_disconnect(*exp); in client_connect_import()
513 *exp = NULL; in client_connect_import()
522 int client_disconnect_export(struct obd_export *exp) in client_disconnect_export() argument
524 struct obd_device *obd = class_exp2obd(exp); in client_disconnect_export()
531 exp, exp ? exp->exp_handle.h_cookie : -1); in client_disconnect_export()
590 err = class_disconnect(exp); in client_disconnect_export()
[all …]
Dldlm_request.c345 int ldlm_cli_enqueue_fini(struct obd_export *exp, struct ptlrpc_request *req, in ldlm_cli_enqueue_fini() argument
351 struct ldlm_namespace *ns = exp->exp_obd->obd_namespace; in ldlm_cli_enqueue_fini()
415 if (exp->exp_lock_hash) { in ldlm_cli_enqueue_fini()
420 cfs_hash_rehash_key(exp->exp_lock_hash, in ldlm_cli_enqueue_fini()
467 !(exp_connect_flags(exp) & OBD_CONNECT_IBITS))) in ldlm_cli_enqueue_fini()
469 ldlm_convert_policy_to_local(exp, in ldlm_cli_enqueue_fini()
586 int ldlm_prep_elc_req(struct obd_export *exp, struct ptlrpc_request *req, in ldlm_prep_elc_req() argument
590 struct ldlm_namespace *ns = exp->exp_obd->obd_namespace; in ldlm_prep_elc_req()
652 int ldlm_prep_enqueue_req(struct obd_export *exp, struct ptlrpc_request *req, in ldlm_prep_enqueue_req() argument
655 return ldlm_prep_elc_req(exp, req, LUSTRE_DLM_VERSION, LDLM_ENQUEUE, in ldlm_prep_enqueue_req()
[all …]
/drivers/staging/lustre/lustre/lmv/
Dlmv_obd.c129 static struct obd_uuid *lmv_get_uuid(struct obd_export *exp) in lmv_get_uuid() argument
131 struct lmv_obd *lmv = &exp->exp_obd->u.lmv; in lmv_get_uuid()
197 struct obd_export **exp, struct obd_device *obd, in lmv_connect() argument
211 *exp = NULL; in lmv_connect()
221 *exp = class_conn2export(&conn); in lmv_connect()
222 class_export_get(*exp); in lmv_connect()
224 lmv->exp = *exp; in lmv_connect()
248 static int lmv_init_ea_size(struct obd_export *exp, u32 easize, u32 def_easize, in lmv_init_ea_size() argument
251 struct obd_device *obd = exp->exp_obd; in lmv_init_ea_size()
538 class_export_put(lmv->exp); in lmv_check_connect()
[all …]
Dlmv_intent.c51 static int lmv_intent_remote(struct obd_export *exp, struct lookup_intent *it, in lmv_intent_remote() argument
57 struct obd_device *obd = exp->exp_obd; in lmv_intent_remote()
151 int lmv_revalidate_slaves(struct obd_export *exp, in lmv_revalidate_slaves() argument
156 struct obd_device *obd = exp->exp_obd; in lmv_revalidate_slaves()
268 static int lmv_intent_open(struct obd_export *exp, struct md_op_data *op_data, in lmv_intent_open() argument
274 struct obd_device *obd = exp->exp_obd; in lmv_intent_open()
314 rc = lmv_fid_alloc(NULL, exp, &op_data->op_fid2, op_data); in lmv_intent_open()
342 rc = lmv_intent_remote(exp, it, &op_data->op_fid1, reqp, in lmv_intent_open()
358 static int lmv_intent_lookup(struct obd_export *exp, in lmv_intent_lookup() argument
366 struct obd_device *obd = exp->exp_obd; in lmv_intent_lookup()
[all …]
Dlmv_internal.h47 int lmv_intent_lock(struct obd_export *exp, struct md_op_data *op_data,
54 int lmv_fid_alloc(const struct lu_env *env, struct obd_export *exp,
57 int lmv_unpack_md(struct obd_export *exp, struct lmv_stripe_md **lsmp,
60 int lmv_revalidate_slaves(struct obd_export *exp,
/drivers/media/rc/img-ir/
Dimg-ir-sharp.c18 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/osc/
Dosc_internal.h109 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,
193 int osc_quotactl(struct obd_device *unused, struct obd_export *exp,
195 int osc_quotacheck(struct obd_device *unused, struct obd_export *exp,
197 int osc_quota_poll_check(struct obd_export *exp, struct if_quotacheck *qchk);
Dosc_request.c107 static int osc_unpackmd(struct obd_export *exp, struct lov_stripe_md **lsmp, in osc_unpackmd() argument
111 struct obd_import *imp = class_exp2cliimp(exp); in osc_unpackmd()
116 exp->exp_obd->obd_name, lmm_bytes, in osc_unpackmd()
124 exp->exp_obd->obd_name, -EINVAL); in osc_unpackmd()
208 static int osc_getattr_async(struct obd_export *exp, struct obd_info *oinfo, in osc_getattr_async() argument
215 req = ptlrpc_request_alloc(class_exp2cliimp(exp), &RQF_OST_GETATTR); in osc_getattr_async()
238 static int osc_getattr(const struct lu_env *env, struct obd_export *exp, in osc_getattr() argument
245 req = ptlrpc_request_alloc(class_exp2cliimp(exp), &RQF_OST_GETATTR); in osc_getattr()
273 oinfo->oi_oa->o_blksize = cli_brw_size(exp->exp_obd); in osc_getattr()
281 static int osc_setattr(const struct lu_env *env, struct obd_export *exp, in osc_setattr() argument
[all …]
Dosc_quota.c244 int osc_quotactl(struct obd_device *unused, struct obd_export *exp, in osc_quotactl() argument
251 req = ptlrpc_request_alloc_pack(class_exp2cliimp(exp), in osc_quotactl()
285 int osc_quotacheck(struct obd_device *unused, struct obd_export *exp, in osc_quotacheck() argument
288 struct client_obd *cli = &exp->exp_obd->u.cli; in osc_quotacheck()
293 req = ptlrpc_request_alloc_pack(class_exp2cliimp(exp), in osc_quotacheck()
314 int osc_quota_poll_check(struct obd_export *exp, struct if_quotacheck *qchk) in osc_quota_poll_check() argument
316 struct client_obd *cli = &exp->exp_obd->u.cli; in osc_quota_poll_check()
/drivers/staging/lustre/lustre/fid/
Dfid_request.c58 struct obd_export *exp = seq->lcs_exp; in seq_client_rpc() local
65 LASSERT(exp && !IS_ERR(exp)); in seq_client_rpc()
66 req = ptlrpc_request_alloc_pack(class_exp2cliimp(exp), &RQF_SEQ_QUERY, in seq_client_rpc()
116 mdc_get_rpc_lock(exp->exp_obd->u.cli.cl_rpc_lock, NULL); in seq_client_rpc()
119 mdc_put_rpc_lock(exp->exp_obd->u.cli.cl_rpc_lock, NULL); in seq_client_rpc()
376 struct obd_export *exp, in seq_client_init() argument
397 seq->lcs_exp = class_export_get(exp); in seq_client_init()
409 struct obd_export *exp, enum lu_cli_type type) in client_fid_init() argument
428 rc = seq_client_init(cli->cl_seq, exp, type, prefix); in client_fid_init()
/drivers/media/usb/gspca/
Dsn9c20x.c1438 u8 exp[8] = {sd->i2c_intf, sd->i2c_addr, in set_exposure() local
1443 exp[7] = 0x1e; in set_exposure()
1454 exp[0] |= (2 << 4); in set_exposure()
1455 exp[2] = 0x10; /* AECH */ in set_exposure()
1456 exp[3] = expo2 >> 2; in set_exposure()
1457 exp[7] = 0x10; in set_exposure()
1458 i2c_w(gspca_dev, exp); in set_exposure()
1459 exp[2] = 0x04; /* COM1 */ in set_exposure()
1460 exp[3] = expo2 & 0x0003; in set_exposure()
1461 exp[7] = 0x10; in set_exposure()
[all …]
/drivers/misc/echo/
Decho.c125 int exp; in lms_adapt_bg() local
145 exp = *phist++ * factor; in lms_adapt_bg()
146 ec->fir_taps16[1][i] += (int16_t) ((exp + (1 << 14)) >> 15); in lms_adapt_bg()
197 int exp; in lms_adapt_bg() local
210 exp = (ec->fir_state_bg.history[i - offset1] * factor); in lms_adapt_bg()
211 ec->fir_taps16[1][i] += (int16_t) ((exp + (1 << 14)) >> 15); in lms_adapt_bg()
214 exp = (ec->fir_state_bg.history[i + offset2] * factor); in lms_adapt_bg()
215 ec->fir_taps16[1][i] += (int16_t) ((exp + (1 << 14)) >> 15); in lms_adapt_bg()
/drivers/staging/lustre/lustre/lov/
Dlov_obd.c198 struct obd_export **exp, struct obd_device *obd, in lov_connect() argument
213 *exp = class_conn2export(&conn); in lov_connect()
298 static int lov_disconnect(struct obd_export *exp) in lov_disconnect() argument
300 struct obd_device *obd = class_exp2obd(exp); in lov_disconnect()
330 rc = class_disconnect(exp); /* bz 9811 */ in lov_disconnect()
996 static int lov_getattr_async(struct obd_export *exp, struct obd_info *oinfo, in lov_getattr_async() argument
1007 if (!exp || !exp->exp_obd) in lov_getattr_async()
1010 lov = &exp->exp_obd->u.lov; in lov_getattr_async()
1012 rc = lov_prep_getattr_set(exp, oinfo, &lovset); in lov_getattr_async()
1029 exp->exp_obd->obd_name, in lov_getattr_async()
[all …]

1234