Home
last modified time | relevance | path

Searched refs:env (Results 1 – 200 of 299) sorted by relevance

12

/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dcl_lock.c76 static int cl_lock_invariant_trusted(const struct lu_env *env, in cl_lock_invariant_trusted() argument
92 static int cl_lock_invariant(const struct lu_env *env, in cl_lock_invariant() argument
98 cl_lock_invariant_trusted(env, lock); in cl_lock_invariant()
99 if (!result && env != NULL) in cl_lock_invariant()
100 CL_LOCK_DEBUG(D_ERROR, env, lock, "invariant broken"); in cl_lock_invariant()
115 static struct cl_thread_counters *cl_lock_counters(const struct lu_env *env, in cl_lock_counters() argument
121 info = cl_env_info(env); in cl_lock_counters()
127 static void cl_lock_trace0(int level, const struct lu_env *env, in cl_lock_trace0() argument
137 env, h->coh_nesting, cl_lock_nr_mutexed(env), in cl_lock_trace0()
140 #define cl_lock_trace(level, env, prefix, lock) \ argument
[all …]
Dcl_page.c51 static void cl_page_delete0(const struct lu_env *env, struct cl_page *pg,
54 # define PASSERT(env, page, expr) \ argument
57 CL_PAGE_DEBUG(D_ERROR, (env), (page), #expr "\n"); \
62 # define PINVRNT(env, page, exp) \ argument
63 ((void)sizeof(env), (void)sizeof(page), (void)sizeof !!(exp))
154 int cl_page_gang_lookup(const struct lu_env *env, struct cl_object *obj, in cl_page_gang_lookup() argument
172 pvec = cl_env_info(env)->clt_pvec; in cl_page_gang_lookup()
196 PASSERT(env, page, slice != NULL); in cl_page_gang_lookup()
226 res = (*cb)(env, io, page, cbdata); in cl_page_gang_lookup()
229 cl_page_put(env, page); in cl_page_gang_lookup()
[all …]
Dcl_io.c74 int cl_io_is_going(const struct lu_env *env) in cl_io_is_going() argument
76 return cl_env_info(env)->clt_current_io != NULL; in cl_io_is_going()
102 void cl_io_fini(const struct lu_env *env, struct cl_io *io) in cl_io_fini() argument
115 slice->cis_iop->op[io->ci_type].cio_fini(env, slice); in cl_io_fini()
124 info = cl_env_info(env); in cl_io_fini()
149 static int cl_io_init0(const struct lu_env *env, struct cl_io *io, in cl_io_init0() argument
168 result = scan->co_ops->coo_io_init(env, scan, io); in cl_io_init0()
183 int cl_io_sub_init(const struct lu_env *env, struct cl_io *io, in cl_io_sub_init() argument
186 struct cl_thread_info *info = cl_env_info(env); in cl_io_sub_init()
191 return cl_io_init0(env, io, iot, obj); in cl_io_sub_init()
[all …]
Ddt_object.c80 int dt_txn_hook_start(const struct lu_env *env, in dt_txn_hook_start() argument
91 !(cb->dtc_tag & env->le_ctx.lc_tags)) in dt_txn_hook_start()
93 rc = cb->dtc_txn_start(env, th, cb->dtc_cookie); in dt_txn_hook_start()
101 int dt_txn_hook_stop(const struct lu_env *env, struct thandle *txn) in dt_txn_hook_stop() argument
112 !(cb->dtc_tag & env->le_ctx.lc_tags)) in dt_txn_hook_stop()
114 rc = cb->dtc_txn_stop(env, txn, cb->dtc_cookie); in dt_txn_hook_stop()
165 int dt_try_as_dir(const struct lu_env *env, struct dt_object *obj) in dt_try_as_dir() argument
168 obj->do_ops->do_index_try(env, obj, &dt_directory_features); in dt_try_as_dir()
205 int dt_lookup_dir(const struct lu_env *env, struct dt_object *dir, in dt_lookup_dir() argument
208 if (dt_try_as_dir(env, dir)) in dt_lookup_dir()
[all …]
Dcl_object.c118 struct cl_object *cl_object_find(const struct lu_env *env, in cl_object_find() argument
123 return lu2cl(lu_object_find_slice(env, cl2lu_dev(cd), fid, &c->coc_lu)); in cl_object_find()
135 void cl_object_put(const struct lu_env *env, struct cl_object *o) in cl_object_put() argument
137 lu_object_put(env, &o->co_lu); in cl_object_put()
219 int cl_object_attr_get(const struct lu_env *env, struct cl_object *obj, in cl_object_attr_get() argument
231 result = obj->co_ops->coo_attr_get(env, obj, attr); in cl_object_attr_get()
250 int cl_object_attr_set(const struct lu_env *env, struct cl_object *obj, in cl_object_attr_set() argument
263 result = obj->co_ops->coo_attr_set(env, obj, attr, v); in cl_object_attr_set()
283 int cl_object_glimpse(const struct lu_env *env, struct cl_object *obj, in cl_object_glimpse() argument
294 result = obj->co_ops->coo_glimpse(env, obj, lvb); in cl_object_glimpse()
[all …]
Dllog_cat.c61 static int llog_cat_new_log(const struct lu_env *env, in llog_cat_new_log() argument
85 rc = llog_create(env, loghandle, th); in llog_cat_new_log()
95 rc = llog_init_handle(env, loghandle, in llog_cat_new_log()
131 rc = llog_write_rec(env, cathandle, &rec.lid_hdr, in llog_cat_new_log()
139 llog_destroy(env, loghandle); in llog_cat_new_log()
152 int llog_cat_id2handle(const struct lu_env *env, struct llog_handle *cathandle, in llog_cat_id2handle() argument
183 rc = llog_open(env, cathandle->lgh_ctxt, &loghandle, logid, NULL, in llog_cat_id2handle()
192 rc = llog_init_handle(env, loghandle, LLOG_F_IS_PLAIN, NULL); in llog_cat_id2handle()
194 llog_close(env, loghandle); in llog_cat_id2handle()
213 int llog_cat_close(const struct lu_env *env, struct llog_handle *cathandle) in llog_cat_close() argument
[all …]
Dllog.c109 int llog_cancel_rec(const struct lu_env *env, struct llog_handle *loghandle, in llog_cancel_rec() argument
136 rc = llog_destroy(env, loghandle); in llog_cancel_rec()
149 rc = llog_write(env, loghandle, &llh->llh_hdr, NULL, 0, NULL, 0); in llog_cancel_rec()
168 static int llog_read_header(const struct lu_env *env, in llog_read_header() argument
182 rc = lop->lop_read_header(env, handle); in llog_read_header()
202 int llog_init_handle(const struct lu_env *env, struct llog_handle *handle, in llog_init_handle() argument
216 rc = llog_read_header(env, handle, uuid); in llog_init_handle()
411 struct lu_env env; in llog_process_thread_daemonize() local
417 rc = lu_env_init(&env, LCT_LOCAL | LCT_MG_THREAD); in llog_process_thread_daemonize()
420 lpi->lpi_env = &env; in llog_process_thread_daemonize()
[all …]
Dlu_object.c61 static void lu_object_free(const struct lu_env *env, struct lu_object *o);
68 void lu_object_put(const struct lu_env *env, struct lu_object *o) in lu_object_put() argument
95 o->lo_ops->loo_object_release(env, o); in lu_object_put()
97 lu_object_free(env, orig); in lu_object_put()
124 o->lo_ops->loo_object_release(env, o); in lu_object_put()
152 lu_object_free(env, orig); in lu_object_put()
160 void lu_object_put_nocache(const struct lu_env *env, struct lu_object *o) in lu_object_put_nocache() argument
163 return lu_object_put(env, o); in lu_object_put_nocache()
171 void lu_object_unhash(const struct lu_env *env, struct lu_object *o) in lu_object_unhash() argument
195 static struct lu_object *lu_object_alloc(const struct lu_env *env, in lu_object_alloc() argument
[all …]
Dllog_internal.h65 static inline struct llog_thread_info *llog_info(const struct lu_env *env) in llog_info() argument
69 lgi = lu_context_key_get(&env->le_ctx, &llog_thread_key); in llog_info()
87 int llog_cat_id2handle(const struct lu_env *env, struct llog_handle *cathandle,
89 int class_config_dump_handler(const struct lu_env *env,
93 int llog_process_or_fork(const struct lu_env *env,
96 int llog_cat_cleanup(const struct lu_env *env, struct llog_handle *cathandle,
Dllog_obd.c72 int __llog_ctxt_put(const struct lu_env *env, struct llog_ctxt *ctxt) in __llog_ctxt_put() argument
100 rc = CTXTP(ctxt, cleanup)(env, ctxt); in __llog_ctxt_put()
108 int llog_cleanup(const struct lu_env *env, struct llog_ctxt *ctxt) in llog_cleanup() argument
133 rc = __llog_ctxt_put(env, ctxt); in llog_cleanup()
145 int llog_setup(const struct lu_env *env, struct obd_device *obd, in llog_setup() argument
197 rc = op->lop_setup(env, obd, olg, index, disk_obd); in llog_setup()
229 int llog_cancel(const struct lu_env *env, struct llog_ctxt *ctxt, in llog_cancel() argument
240 rc = CTXTP(ctxt, cancel)(env, ctxt, cookies, flags); in llog_cancel()
Dcl_internal.h119 struct cl_thread_info *cl_env_info(const struct lu_env *env);
Dobd_config.c1386 int class_config_llog_handler(const struct lu_env *env, in class_config_llog_handler() argument
1577 int class_config_parse_llog(const struct lu_env *env, struct llog_ctxt *ctxt, in class_config_parse_llog() argument
1586 rc = llog_open(env, ctxt, &llh, NULL, name, LLOG_OPEN_EXISTS); in class_config_parse_llog()
1590 rc = llog_init_handle(env, llh, LLOG_F_IS_PLAIN, NULL); in class_config_parse_llog()
1605 rc = llog_process(env, llh, callback, cfg, &cd); in class_config_parse_llog()
1613 llog_close(env, llh); in class_config_parse_llog()
1667 int class_config_dump_handler(const struct lu_env *env, in class_config_dump_handler() argument
1690 int class_config_dump_llog(const struct lu_env *env, struct llog_ctxt *ctxt, in class_config_dump_llog() argument
1698 rc = llog_open(env, ctxt, &llh, NULL, name, LLOG_OPEN_EXISTS); in class_config_dump_llog()
1702 rc = llog_init_handle(env, llh, LLOG_F_IS_PLAIN, NULL); in class_config_dump_llog()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Ddt_object.h99 typedef void (*dt_cb_t)(struct lu_env *env, struct thandle *th,
122 int (*dt_statfs)(const struct lu_env *env,
127 struct thandle *(*dt_trans_create)(const struct lu_env *env,
132 int (*dt_trans_start)(const struct lu_env *env,
137 int (*dt_trans_stop)(const struct lu_env *env,
147 int (*dt_root_get)(const struct lu_env *env,
152 void (*dt_conf_get)(const struct lu_env *env,
158 int (*dt_sync)(const struct lu_env *env, struct dt_device *dev);
159 int (*dt_ro)(const struct lu_env *env, struct dt_device *dev);
168 int (*dt_commit_async)(const struct lu_env *env,
[all …]
Dcl_object.h143 int (*cdo_req_init)(const struct lu_env *env, struct cl_device *dev,
322 int (*coo_page_init)(const struct lu_env *env, struct cl_object *obj,
331 int (*coo_lock_init)(const struct lu_env *env,
343 int (*coo_io_init)(const struct lu_env *env,
356 int (*coo_attr_get)(const struct lu_env *env, struct cl_object *obj,
369 int (*coo_attr_set)(const struct lu_env *env, struct cl_object *obj,
377 int (*coo_conf_set)(const struct lu_env *env, struct cl_object *obj,
387 int (*coo_glimpse)(const struct lu_env *env,
844 struct page *(*cpo_vmpage)(const struct lu_env *env,
855 int (*cpo_own)(const struct lu_env *env,
[all …]
Dlclient.h49 int cl_glimpse_lock(const struct lu_env *env, struct cl_io *io,
115 int cl_is_normalio(const struct lu_env *env, const struct cl_io *io);
126 static inline struct ccc_thread_info *ccc_env_info(const struct lu_env *env) in ccc_env_info() argument
130 info = lu_context_key_get(&env->le_ctx, &ccc_key); in ccc_env_info()
135 static inline struct cl_attr *ccc_env_thread_attr(const struct lu_env *env) in ccc_env_thread_attr() argument
137 struct cl_attr *attr = &ccc_env_info(env)->cti_attr; in ccc_env_thread_attr()
143 static inline struct cl_io *ccc_env_thread_io(const struct lu_env *env) in ccc_env_thread_io() argument
145 struct cl_io *io = &ccc_env_info(env)->cti_io; in ccc_env_thread_io()
155 static inline struct ccc_session *ccc_env_session(const struct lu_env *env) in ccc_env_session() argument
159 ses = lu_context_key_get(env->le_ses, &ccc_session_key); in ccc_env_session()
[all …]
Dlustre_log.h118 int llog_init_handle(const struct lu_env *env, struct llog_handle *handle,
120 int llog_copy_handler(const struct lu_env *env, struct llog_handle *llh,
122 int llog_process(const struct lu_env *env, struct llog_handle *loghandle,
124 int llog_process_or_fork(const struct lu_env *env,
127 int llog_reverse_process(const struct lu_env *env,
130 int llog_cancel_rec(const struct lu_env *env, struct llog_handle *loghandle,
132 int llog_open(const struct lu_env *env, struct llog_ctxt *ctxt,
135 int llog_close(const struct lu_env *env, struct llog_handle *cathandle);
136 int llog_is_empty(const struct lu_env *env, struct llog_ctxt *ctxt,
138 int llog_backup(const struct lu_env *env, struct obd_device *obd,
[all …]
Dlu_object.h142 struct lu_object *(*ldo_object_alloc)(const struct lu_env *env,
148 int (*ldo_process_config)(const struct lu_env *env,
193 typedef int (*lu_printer_t)(const struct lu_env *env,
211 int (*loo_object_init)(const struct lu_env *env,
219 int (*loo_object_start)(const struct lu_env *env,
226 void (*loo_object_delete)(const struct lu_env *env,
232 void (*loo_object_free)(const struct lu_env *env,
238 void (*loo_object_release)(const struct lu_env *env,
243 int (*loo_object_print)(const struct lu_env *env, void *cookie,
352 struct lu_device *(*ldto_device_alloc)(const struct lu_env *env,
[all …]
Dobd_class.h136 int class_config_llog_handler(const struct lu_env *env,
168 int class_config_parse_llog(const struct lu_env *env, struct llog_ctxt *ctxt,
170 int class_config_dump_llog(const struct lu_env *env, struct llog_ctxt *ctxt,
507 static inline int obd_get_info(const struct lu_env *env, in obd_get_info() argument
517 rc = OBP(exp->exp_obd, get_info)(env, exp, keylen, key, vallen, val, in obd_get_info()
522 static inline int obd_set_info_async(const struct lu_env *env, in obd_set_info_async() argument
532 rc = OBP(exp->exp_obd, set_info_async)(env, exp, keylen, key, vallen, in obd_set_info_async()
567 struct lu_env env; in obd_setup() local
572 rc = lu_env_init(&env, ldt->ldt_ctx_tags); in obd_setup()
574 env.le_ses = &session_ctx; in obd_setup()
[all …]
Dlustre_fld.h141 __u32 flags, const struct lu_env *env);
145 const struct lu_env *env);
148 const struct lu_env *env);
Dlustre_fid.h441 const struct lu_env *env);
444 const struct lu_env *env);
448 const struct lu_env *env);
452 const struct lu_env *env);
456 const struct lu_env *env);
469 int seq_client_alloc_fid(const struct lu_env *env, struct lu_client_seq *seq,
471 int seq_client_get_seq(const struct lu_env *env, struct lu_client_seq *seq,
473 int seq_site_fini(const struct lu_env *env, struct seq_server_site *ss);
475 int fid_is_local(const struct lu_env *env,
Dobd.h1106 int (*o_get_info)(const struct lu_env *env, struct obd_export *,
1128 int (*o_connect)(const struct lu_env *env,
1132 int (*o_reconnect)(const struct lu_env *env,
1163 int (*o_create)(const struct lu_env *env, struct obd_export *exp,
1166 int (*o_destroy)(const struct lu_env *env, struct obd_export *exp,
1175 int (*o_getattr)(const struct lu_env *env, struct obd_export *exp,
1181 int (*o_preprw)(const struct lu_env *env, int cmd,
1186 int (*o_commitrw)(const struct lu_env *env, int cmd,
1204 int (*o_health_check)(const struct lu_env *env, struct obd_device *);
Dlustre_net.h485 typedef int (*ptlrpc_interpterer_t)(const struct lu_env *env,
1524 static inline int ptlrpc_req_interpret(const struct lu_env *env, in ptlrpc_req_interpret() argument
1528 req->rq_status = req->rq_interpret_reply(env, req, in ptlrpc_req_interpret()
2369 int ptlrpc_check_set(const struct lu_env *env, struct ptlrpc_request_set *set);
2862 int client_connect_import(const struct lu_env *env,
/linux-4.1.27/lib/
Dkobject_uevent.c129 static int init_uevent_argv(struct kobj_uevent_env *env, const char *subsystem) in init_uevent_argv() argument
133 len = strlcpy(&env->buf[env->buflen], subsystem, in init_uevent_argv()
134 sizeof(env->buf) - env->buflen); in init_uevent_argv()
135 if (len >= (sizeof(env->buf) - env->buflen)) { in init_uevent_argv()
140 env->argv[0] = uevent_helper; in init_uevent_argv()
141 env->argv[1] = &env->buf[env->buflen]; in init_uevent_argv()
142 env->argv[2] = NULL; in init_uevent_argv()
144 env->buflen += len + 1; in init_uevent_argv()
167 struct kobj_uevent_env *env; in kobject_uevent_env() local
227 env = kzalloc(sizeof(struct kobj_uevent_env), GFP_KERNEL); in kobject_uevent_env()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/lclient/
Dglimpse.c86 int cl_glimpse_lock(const struct lu_env *env, struct cl_io *io, in cl_glimpse_lock() argument
89 struct cl_lock_descr *descr = &ccc_env_info(env)->cti_descr; in cl_glimpse_lock()
92 struct ccc_io *cio = ccc_env_io(env); in cl_glimpse_lock()
128 lock = cl_lock_request(env, io, descr, "glimpse", in cl_glimpse_lock()
139 result = cl_wait(env, lock); in cl_glimpse_lock()
141 cl_merge_lvb(env, inode); in cl_glimpse_lock()
152 cl_unuse(env, lock); in cl_glimpse_lock()
154 cl_lock_release(env, lock, "glimpse", current); in cl_glimpse_lock()
157 cl_merge_lvb(env, inode); in cl_glimpse_lock()
167 struct lu_env *env; in cl_io_get() local
[all …]
Dlcommon_cl.c168 int ccc_device_init(const struct lu_env *env, struct lu_device *d, in ccc_device_init() argument
180 env, next, next->ld_type->ldt_name, NULL); in ccc_device_init()
188 struct lu_device *ccc_device_fini(const struct lu_env *env, in ccc_device_fini() argument
194 struct lu_device *ccc_device_alloc(const struct lu_env *env, in ccc_device_alloc() argument
227 ccc_device_free(env, lud); in ccc_device_alloc()
233 struct lu_device *ccc_device_free(const struct lu_env *env, in ccc_device_free() argument
249 int ccc_req_init(const struct lu_env *env, struct cl_device *dev, in ccc_req_init() argument
322 struct lu_object *ccc_object_alloc(const struct lu_env *env, in ccc_object_alloc() argument
348 int ccc_object_init0(const struct lu_env *env, in ccc_object_init0() argument
358 int ccc_object_init(const struct lu_env *env, struct lu_object *obj, in ccc_object_init() argument
[all …]
Dlcommon_misc.c130 struct lu_env *env; in cl_get_grouplock() local
138 env = cl_env_get(&refcheck); in cl_get_grouplock()
139 if (IS_ERR(env)) in cl_get_grouplock()
140 return PTR_ERR(env); in cl_get_grouplock()
142 io = ccc_env_thread_io(env); in cl_get_grouplock()
146 rc = cl_io_init(env, io, CIT_MISC, io->ci_obj); in cl_get_grouplock()
151 cl_env_put(env, &refcheck); in cl_get_grouplock()
155 descr = &ccc_env_info(env)->cti_descr; in cl_get_grouplock()
165 lock = cl_lock_request(env, io, descr, GROUPLOCK_SCOPE, current); in cl_get_grouplock()
167 cl_io_fini(env, io); in cl_get_grouplock()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
Dlovsub_lock.c55 static void lovsub_lock_fini(const struct lu_env *env, in lovsub_lock_fini() argument
65 static void lovsub_parent_lock(const struct lu_env *env, struct lov_lock *lov) in lovsub_parent_lock() argument
72 cl_lock_mutex_get(env, parent); in lovsub_parent_lock()
75 static void lovsub_parent_unlock(const struct lu_env *env, struct lov_lock *lov) in lovsub_parent_unlock() argument
80 cl_lock_mutex_put(env, lov->lls_cl.cls_lock); in lovsub_parent_unlock()
82 cl_lock_put(env, parent); in lovsub_parent_unlock()
90 static void lovsub_lock_state(const struct lu_env *env, in lovsub_lock_state() argument
104 lovsub_parent_lock(env, lov); in lovsub_lock_state()
105 cl_lock_signal(env, parent); in lovsub_lock_state()
106 lovsub_parent_unlock(env, lov); in lovsub_lock_state()
[all …]
Dlov_lock.c49 static struct cl_lock_closure *lov_closure_get(const struct lu_env *env,
52 static int lov_lock_unuse(const struct lu_env *env,
60 static struct lov_sublock_env *lov_sublock_env_get(const struct lu_env *env, in lov_sublock_env_get() argument
65 struct lov_io *lio = lov_env_io(env); in lov_sublock_env_get()
69 subenv = &lov_env_session(env)->ls_subenv; in lov_sublock_env_get()
81 subenv->lse_env = env; in lov_sublock_env_get()
85 sub = lov_sub_get(env, lio, lls->sub_stripe); in lov_sublock_env_get()
103 static void lov_sublock_adopt(const struct lu_env *env, struct lov_lock *lck, in lov_sublock_adopt() argument
118 LASSERT(lov_lock_link_find(env, lck, lsl) == NULL); in lov_sublock_adopt()
130 cl_lock_user_add(env, sublock); in lov_sublock_adopt()
[all …]
Dlov_object.c58 int (*llo_init)(const struct lu_env *env, struct lov_device *dev,
62 int (*llo_delete)(const struct lu_env *env, struct lov_object *lov,
64 void (*llo_fini)(const struct lu_env *env, struct lov_object *lov,
66 void (*llo_install)(const struct lu_env *env, struct lov_object *lov,
68 int (*llo_print)(const struct lu_env *env, void *cookie,
70 int (*llo_page_init)(const struct lu_env *env, struct cl_object *obj,
72 int (*llo_lock_init)(const struct lu_env *env,
75 int (*llo_io_init)(const struct lu_env *env,
77 int (*llo_getattr)(const struct lu_env *env, struct cl_object *obj,
81 static int lov_layout_wait(const struct lu_env *env, struct lov_object *lov);
[all …]
Dlov_page.c66 static void lov_page_fini(const struct lu_env *env, in lov_page_fini() argument
78 cl_page_put(env, sub); in lov_page_fini()
82 static int lov_page_own(const struct lu_env *env, in lov_page_own() argument
86 struct lov_io *lio = lov_env_io(env); in lov_page_own()
92 sub = lov_page_subio(env, lio, slice); in lov_page_own()
101 static void lov_page_assume(const struct lu_env *env, in lov_page_assume() argument
104 lov_page_own(env, slice, io, 0); in lov_page_assume()
107 static int lov_page_cache_add(const struct lu_env *env, in lov_page_cache_add() argument
111 struct lov_io *lio = lov_env_io(env); in lov_page_cache_add()
118 sub = lov_page_subio(env, lio, slice); in lov_page_cache_add()
[all …]
Dlov_io.c59 static void lov_io_sub_fini(const struct lu_env *env, struct lov_io *lio, in lov_io_sub_fini() argument
135 static int lov_io_sub_init(const struct lu_env *env, struct lov_io *lio, in lov_io_sub_init() argument
213 lov_io_sub_fini(env, lio, sub); in lov_io_sub_init()
217 struct lov_io_sub *lov_sub_get(const struct lu_env *env, in lov_sub_get() argument
227 rc = lov_io_sub_init(env, lio, sub); in lov_sub_get()
259 struct lov_io_sub *lov_page_subio(const struct lu_env *env, struct lov_io *lio, in lov_page_subio() argument
272 return lov_sub_get(env, lio, stripe); in lov_page_subio()
276 static int lov_io_subio_init(const struct lu_env *env, struct lov_io *lio, in lov_io_subio_init() argument
353 static void lov_io_fini(const struct lu_env *env, const struct cl_io_slice *ios) in lov_io_fini() argument
355 struct lov_io *lio = cl2lov_io(env, ios); in lov_io_fini()
[all …]
Dlov_cl_internal.h583 int lov_object_init(const struct lu_env *env, struct lu_object *obj,
585 int lovsub_object_init(const struct lu_env *env, struct lu_object *obj,
587 int lov_lock_init(const struct lu_env *env, struct cl_object *obj,
589 int lov_io_init(const struct lu_env *env, struct cl_object *obj,
591 int lovsub_lock_init(const struct lu_env *env, struct cl_object *obj,
594 int lov_lock_init_raid0(const struct lu_env *env, struct cl_object *obj,
596 int lov_lock_init_empty(const struct lu_env *env, struct cl_object *obj,
598 int lov_io_init_raid0(const struct lu_env *env, struct cl_object *obj,
600 int lov_io_init_empty(const struct lu_env *env, struct cl_object *obj,
602 int lov_io_init_released(const struct lu_env *env, struct cl_object *obj,
[all …]
Dlovsub_object.c55 int lovsub_object_init(const struct lu_env *env, struct lu_object *obj, in lovsub_object_init() argument
65 below = under->ld_ops->ldo_object_alloc(env, obj->lo_header, under); in lovsub_object_init()
76 static void lovsub_object_free(const struct lu_env *env, struct lu_object *obj) in lovsub_object_free() argument
97 static int lovsub_object_print(const struct lu_env *env, void *cookie, in lovsub_object_print() argument
102 return (*p)(env, cookie, "[%d]", los->lso_index); in lovsub_object_print()
105 static int lovsub_attr_set(const struct lu_env *env, struct cl_object *obj, in lovsub_attr_set() argument
114 static int lovsub_object_glimpse(const struct lu_env *env, in lovsub_object_glimpse() argument
120 return cl_object_glimpse(env, &los->lso_super->lo_cl, lvb); in lovsub_object_glimpse()
141 struct lu_object *lovsub_object_alloc(const struct lu_env *env, in lovsub_object_alloc() argument
Dlov_dev.c122 static void lov_req_completion(const struct lu_env *env, in lov_req_completion() argument
195 static struct lu_device *lov_device_fini(const struct lu_env *env, in lov_device_fini() argument
210 cl_stack_fini(env, lovsub2cl_dev(lsd)); in lov_device_fini()
217 static int lov_device_init(const struct lu_env *env, struct lu_device *d, in lov_device_init() argument
237 cl = cl_type_setup(env, d->ld_site, &lovsub_device_type, in lov_device_init()
250 lov_device_fini(env, d); in lov_device_init()
257 static int lov_req_init(const struct lu_env *env, struct cl_device *dev, in lov_req_init() argument
294 static struct lu_device *lov_device_free(const struct lu_env *env, in lov_device_free() argument
309 static void lov_cl_del_target(const struct lu_env *env, struct lu_device *dev, in lov_cl_del_target() argument
315 cl_stack_fini(env, lovsub2cl_dev(ld->ld_target[index])); in lov_cl_del_target()
[all …]
Dlovsub_dev.c53 static void lovsub_req_completion(const struct lu_env *env, in lovsub_req_completion() argument
67 static void lovsub_req_attr_set(const struct lu_env *env, in lovsub_req_attr_set() argument
93 static int lovsub_device_init(const struct lu_env *env, struct lu_device *d, in lovsub_device_init() argument
103 rc = ldt->ldt_ops->ldto_device_init(env, next, ldt->ldt_name, NULL); in lovsub_device_init()
115 static struct lu_device *lovsub_device_fini(const struct lu_env *env, in lovsub_device_fini() argument
128 static struct lu_device *lovsub_device_free(const struct lu_env *env, in lovsub_device_free() argument
136 lu_site_print(env, d->ld_site, &msgdata, lu_cdebug_printer); in lovsub_device_free()
143 static int lovsub_req_init(const struct lu_env *env, struct cl_device *dev, in lovsub_req_init() argument
168 static struct lu_device *lovsub_device_alloc(const struct lu_env *env, in lovsub_device_alloc() argument
Dlovsub_page.c53 static void lovsub_page_fini(const struct lu_env *env, in lovsub_page_fini() argument
62 int lovsub_page_init(const struct lu_env *env, struct cl_object *obj, in lovsub_page_init() argument
Dlov_obd.c215 static int lov_connect(const struct lu_env *env, in lov_connect() argument
1040 static int lov_create(const struct lu_env *env, struct obd_export *exp, in lov_create() argument
1080 static int lov_destroy(const struct lu_env *env, struct obd_export *exp, in lov_destroy() argument
1114 err = obd_destroy(env, lov->lov_tgts[req->rq_idx]->ltd_exp, in lov_destroy()
1382 static int lov_statfs(const struct lu_env *env, struct obd_export *exp, in lov_statfs() argument
1969 static int lov_get_info(const struct lu_env *env, struct obd_export *exp, in lov_get_info() argument
2035 rc = obd_get_info(env, tgt->ltd_exp, keylen, key, in lov_get_info()
2077 static int lov_set_info_async(const struct lu_env *env, struct obd_export *exp, in lov_set_info_async() argument
2146 err = obd_set_info_async(env, tgt->ltd_exp, in lov_set_info_async()
2150 err = obd_set_info_async(env, tgt->ltd_exp, in lov_set_info_async()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/osc/
Dosc_lock.c63 static void osc_lock_to_lockless(const struct lu_env *env,
146 static void osc_lock_detach(const struct lu_env *env, struct osc_lock *olck) in osc_lock_detach() argument
167 struct cl_attr *attr = &osc_env_info(env)->oti_attr; in osc_lock_detach()
177 cl_object_attr_set(env, obj, attr, CAT_KMS); in osc_lock_detach()
201 static int osc_lock_unuse(const struct lu_env *env, in osc_lock_unuse() argument
217 osc_lock_detach(env, ols); in osc_lock_unuse()
237 static void osc_lock_fini(const struct lu_env *env, in osc_lock_fini() argument
257 static void osc_lock_build_policy(const struct lu_env *env, in osc_lock_build_policy() argument
318 static void osc_ast_data_put(const struct lu_env *env, struct osc_lock *olck) in osc_ast_data_put() argument
324 cl_lock_put(env, lock); in osc_ast_data_put()
[all …]
Dosc_page.c47 static int osc_lru_reserve(const struct lu_env *env, struct osc_object *obj,
62 static int osc_page_is_dlocked(const struct lu_env *env,
77 info = osc_env_info(env);
89 osc_lock_build_res(env, obj, resname);
99 static int osc_page_protected(const struct lu_env *env,
121 result = osc_page_is_dlocked(env, opg, mode, 1, unref);
125 descr = &osc_env_info(env)->oti_descr;
152 static int osc_page_protected(const struct lu_env *env, in osc_page_protected() argument
165 static void osc_page_fini(const struct lu_env *env, in osc_page_fini() argument
183 static void osc_page_transfer_put(const struct lu_env *env, in osc_page_transfer_put() argument
[all …]
Dosc_io.c62 static struct osc_io *cl2osc_io(const struct lu_env *env, in cl2osc_io() argument
67 LINVRNT(oio == osc_env_io(env)); in cl2osc_io()
88 static void osc_io_fini(const struct lu_env *env, const struct cl_io_slice *io) in osc_io_fini() argument
99 static int osc_io_submit(const struct lu_env *env, in osc_io_submit() argument
128 brw_flags = osc_io_srvlock(cl2osc_io(env, ios)) ? OBD_BRW_SRVLOCK : 0; in osc_io_submit()
153 result = cl_page_prep(env, io, page, crt); in osc_io_submit()
171 osc_page_submit(env, opg, crt, brw_flags); in osc_io_submit()
175 result = osc_queue_sync_pages(env, osc, &list, cmd, in osc_io_submit()
183 result = osc_queue_sync_pages(env, osc, &list, cmd, brw_flags); in osc_io_submit()
189 static void osc_page_touch_at(const struct lu_env *env, in osc_page_touch_at() argument
[all …]
Dosc_cl_internal.h415 int osc_lock_init(const struct lu_env *env,
418 int osc_io_init (const struct lu_env *env,
420 int osc_req_init (const struct lu_env *env, struct cl_device *dev,
422 struct lu_object *osc_object_alloc(const struct lu_env *env,
425 int osc_page_init(const struct lu_env *env, struct cl_object *obj,
430 int osc_lvb_print (const struct lu_env *env, void *cookie,
433 void osc_page_submit(const struct lu_env *env, struct osc_page *opg,
435 int osc_cancel_async_page(const struct lu_env *env, struct osc_page *ops);
440 int osc_queue_async_io(const struct lu_env *env, struct cl_io *io,
442 int osc_teardown_async_page(const struct lu_env *env, struct osc_object *obj,
[all …]
Dosc_cache.c50 static int osc_extent_wait(const struct lu_env *env, struct osc_extent *ext,
52 static void osc_ap_completion(const struct lu_env *env, struct client_obd *cli,
54 static int osc_make_ready(const struct lu_env *env, struct osc_async_page *oap,
56 static int osc_refresh_count(const struct lu_env *env,
58 static int osc_io_unplug_async(const struct lu_env *env,
378 static void osc_extent_put(const struct lu_env *env, struct osc_extent *ext) in osc_extent_put() argument
388 cl_lock_put(env, ext->oe_osclock); in osc_extent_put()
525 static int osc_extent_merge(const struct lu_env *env, struct osc_extent *cur, in osc_extent_merge() argument
567 osc_extent_put(env, victim); in osc_extent_merge()
576 void osc_extent_release(const struct lu_env *env, struct osc_extent *ext) in osc_extent_release() argument
[all …]
Dosc_object.c72 static int osc_object_init(const struct lu_env *env, struct lu_object *obj, in osc_object_init() argument
103 static void osc_object_free(const struct lu_env *env, struct lu_object *obj) in osc_object_free() argument
128 int osc_lvb_print(const struct lu_env *env, void *cookie, in osc_lvb_print() argument
131 return (*p)(env, cookie, "size: %llu mtime: %llu atime: %llu ctime: %llu blocks: %llu", in osc_lvb_print()
136 static int osc_object_print(const struct lu_env *env, void *cookie, in osc_object_print() argument
143 …(*p)(env, cookie, "id: " DOSTID " idx: %d gen: %d kms_valid: %u kms %llu rc: %d force_sync: %d min… in osc_object_print()
147 osc_lvb_print(env, cookie, p, &oinfo->loi_lvb); in osc_object_print()
152 static int osc_attr_get(const struct lu_env *env, struct cl_object *obj, in osc_attr_get() argument
162 int osc_attr_set(const struct lu_env *env, struct cl_object *obj, in osc_attr_set() argument
186 static int osc_object_glimpse(const struct lu_env *env, in osc_object_glimpse() argument
[all …]
Dosc_dev.c173 static int osc_cl_process_config(const struct lu_env *env, in osc_cl_process_config() argument
189 static int osc_device_init(const struct lu_env *env, struct lu_device *d, in osc_device_init() argument
195 static struct lu_device *osc_device_fini(const struct lu_env *env, in osc_device_fini() argument
201 static struct lu_device *osc_device_free(const struct lu_env *env, in osc_device_free() argument
211 static struct lu_device *osc_device_alloc(const struct lu_env *env, in osc_device_alloc() argument
234 osc_device_free(env, d); in osc_device_alloc()
Dosc_request.c98 static int brw_interpret(const struct lu_env *env,
233 static int osc_getattr_interpret(const struct lu_env *env, in osc_getattr_interpret() argument
292 static int osc_getattr(const struct lu_env *env, struct obd_export *exp, in osc_getattr() argument
336 static int osc_setattr(const struct lu_env *env, struct obd_export *exp, in osc_setattr() argument
378 static int osc_setattr_interpret(const struct lu_env *env, in osc_setattr_interpret() argument
590 static int osc_sync_interpret(const struct lu_env *env, in osc_sync_interpret() argument
691 static int osc_destroy_interpret(const struct lu_env *env, in osc_destroy_interpret() argument
720 int osc_create(const struct lu_env *env, struct obd_export *exp, in osc_create() argument
754 static int osc_destroy(const struct lu_env *env, struct obd_export *exp, in osc_destroy() argument
891 static int osc_set_info_async(const struct lu_env *env, struct obd_export *exp,
[all …]
Dosc_internal.h88 int osc_create(const struct lu_env *env, struct obd_export *exp,
130 int osc_build_rpc(const struct lu_env *env, struct client_obd *cli,
/linux-4.1.27/kernel/bpf/
Dverifier.c241 static void print_verifier_state(struct verifier_env *env) in print_verifier_state() argument
247 t = env->cur_state.regs[i].type; in print_verifier_state()
252 verbose("%d", env->cur_state.regs[i].imm); in print_verifier_state()
256 env->cur_state.regs[i].map_ptr->key_size, in print_verifier_state()
257 env->cur_state.regs[i].map_ptr->value_size); in print_verifier_state()
260 if (env->cur_state.stack_slot_type[i] == STACK_SPILL) in print_verifier_state()
262 reg_type_str[env->cur_state.spilled_regs[i / BPF_REG_SIZE].type]); in print_verifier_state()
412 static int pop_stack(struct verifier_env *env, int *prev_insn_idx) in pop_stack() argument
417 if (env->head == NULL) in pop_stack()
420 memcpy(&env->cur_state, &env->head->st, sizeof(env->cur_state)); in pop_stack()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dvvp_io.c50 static struct vvp_io *cl2vvp_io(const struct lu_env *env,
56 int cl_is_normalio(const struct lu_env *env, const struct cl_io *io) in cl_is_normalio() argument
58 struct vvp_io *vio = vvp_env_io(env); in cl_is_normalio()
71 static bool can_populate_pages(const struct lu_env *env, struct cl_io *io, in can_populate_pages() argument
75 struct ccc_io *cio = ccc_env_io(env); in can_populate_pages()
104 static int vvp_io_fault_iter_init(const struct lu_env *env, in vvp_io_fault_iter_init() argument
107 struct vvp_io *vio = cl2vvp_io(env, ios); in vvp_io_fault_iter_init()
111 file_inode(cl2ccc_io(env, ios)->cui_fd->fd_file)); in vvp_io_fault_iter_init()
116 static void vvp_io_fini(const struct lu_env *env, const struct cl_io_slice *ios) in vvp_io_fini() argument
120 struct ccc_io *cio = cl2ccc_io(env, ios); in vvp_io_fini()
[all …]
Dvvp_dev.c140 static struct lu_device *vvp_device_alloc(const struct lu_env *env, in vvp_device_alloc() argument
144 return ccc_device_alloc(env, t, cfg, &vvp_lu_ops, &vvp_cl_ops); in vvp_device_alloc()
201 struct lu_env *env; in cl_sb_init() local
206 env = cl_env_get(&refcheck); in cl_sb_init()
207 if (!IS_ERR(env)) { in cl_sb_init()
208 cl = cl_type_setup(env, NULL, &vvp_device_type, in cl_sb_init()
215 cl_env_put(env, &refcheck); in cl_sb_init()
217 rc = PTR_ERR(env); in cl_sb_init()
224 struct lu_env *env; in cl_sb_fini() local
230 env = cl_env_get(&refcheck); in cl_sb_fini()
[all …]
Dvvp_page.c64 static void vvp_page_fini(const struct lu_env *env, in vvp_page_fini() argument
78 static int vvp_page_own(const struct lu_env *env, in vvp_page_own() argument
103 static void vvp_page_assume(const struct lu_env *env, in vvp_page_assume() argument
114 static void vvp_page_unassume(const struct lu_env *env, in vvp_page_unassume() argument
124 static void vvp_page_disown(const struct lu_env *env, in vvp_page_disown() argument
135 static void vvp_page_discard(const struct lu_env *env, in vvp_page_discard() argument
158 static int vvp_page_unmap(const struct lu_env *env, in vvp_page_unmap() argument
177 static void vvp_page_delete(const struct lu_env *env, in vvp_page_delete() argument
197 static void vvp_page_export(const struct lu_env *env, in vvp_page_export() argument
211 static int vvp_page_is_vmlocked(const struct lu_env *env, in vvp_page_is_vmlocked() argument
[all …]
Drw26.c76 struct lu_env *env; in ll_invalidatepage() local
91 env = cl_env_get(&refcheck); in ll_invalidatepage()
92 if (!IS_ERR(env)) { in ll_invalidatepage()
100 cl_page_delete(env, page); in ll_invalidatepage()
103 cl_page_put(env, page); in ll_invalidatepage()
107 cl_env_put(env, &refcheck); in ll_invalidatepage()
120 struct lu_env *env; in ll_releasepage() local
143 env = cl_env_nested_get(&nest); in ll_releasepage()
144 if (IS_ERR(env)) in ll_releasepage()
156 cl_page_delete(env, page); in ll_releasepage()
[all …]
Drw.c68 struct lu_env *env = lcc->lcc_env; in ll_cl_fini() local
73 LASSERT(env != NULL); in ll_cl_fini()
77 cl_page_put(env, page); in ll_cl_fini()
80 cl_env_put(env, &lcc->lcc_refcheck); in ll_cl_fini()
91 struct lu_env *env; in ll_cl_init() local
102 env = cl_env_get(&refcheck); in ll_cl_init()
103 if (IS_ERR(env)) in ll_cl_init()
104 return ERR_CAST(env); in ll_cl_init()
106 lcc = &vvp_env_info(env)->vti_io_ctx; in ll_cl_init()
108 lcc->lcc_env = env; in ll_cl_init()
[all …]
Dllite_mmap.c106 struct lu_env *env; in ll_fault_io_init() local
120 env = cl_env_nested_get(nest); in ll_fault_io_init()
121 if (IS_ERR(env)) in ll_fault_io_init()
124 *env_ret = env; in ll_fault_io_init()
126 io = ccc_env_thread_io(env); in ll_fault_io_init()
147 rc = cl_io_init(env, io, CIT_FAULT, io->ci_obj); in ll_fault_io_init()
149 struct ccc_io *cio = ccc_env_io(env); in ll_fault_io_init()
160 cl_io_fini(env, io); in ll_fault_io_init()
161 cl_env_nested_put(nest, env); in ll_fault_io_init()
172 struct lu_env *env; in ll_page_mkwrite0() local
[all …]
Dvvp_internal.h46 int vvp_io_init (const struct lu_env *env,
48 int vvp_lock_init (const struct lu_env *env,
51 int vvp_page_init (const struct lu_env *env,
54 struct lu_object *vvp_object_alloc(const struct lu_env *env,
Dvvp_object.c57 static int vvp_object_print(const struct lu_env *env, void *cookie, in vvp_object_print() argument
64 (*p)(env, cookie, "(%s %d %d) inode: %p ", in vvp_object_print()
70 (*p)(env, cookie, "%lu/%u %o %u %d %p "DFID, in vvp_object_print()
78 static int vvp_attr_get(const struct lu_env *env, struct cl_object *obj, in vvp_attr_get() argument
100 static int vvp_attr_set(const struct lu_env *env, struct cl_object *obj, in vvp_attr_set() argument
123 static int vvp_conf_set(const struct lu_env *env, struct cl_object *obj, in vvp_conf_set() argument
196 struct lu_object *vvp_object_alloc(const struct lu_env *env, in vvp_object_alloc() argument
200 return ccc_object_alloc(env, hdr, dev, &vvp_ops, &vvp_lu_obj_ops); in vvp_object_alloc()
Dvvp_lock.c61 static unsigned long vvp_lock_weigh(const struct lu_env *env, in vvp_lock_weigh() argument
81 int vvp_lock_init(const struct lu_env *env, struct cl_object *obj, in vvp_lock_init() argument
84 return ccc_lock_init(env, obj, lock, io, &vvp_lock_ops); in vvp_lock_init()
Dfile.c988 int ll_merge_lvb(const struct lu_env *env, struct inode *inode) in ll_merge_lvb() argument
992 struct cl_attr *attr = ccc_env_thread_attr(env); in ll_merge_lvb()
1010 rc = cl_object_attr_get(env, obj, attr); in ll_merge_lvb()
1104 ll_file_io_generic(const struct lu_env *env, struct vvp_io_args *args, in ll_file_io_generic() argument
1114 io = ccc_env_thread_io(env); in ll_file_io_generic()
1117 if (cl_io_rw_init(env, io, iot, *ppos, count) == 0) { in ll_file_io_generic()
1118 struct vvp_io *vio = vvp_env_io(env); in ll_file_io_generic()
1119 struct ccc_io *cio = ccc_env_io(env); in ll_file_io_generic()
1149 result = cl_io_loop(env, io); in ll_file_io_generic()
1165 cl_io_fini(env, io); in ll_file_io_generic()
[all …]
Dlloop.c187 const struct lu_env *env = lo->lo_env; in do_bio_lustrebacked() local
209 ret = cl_io_init(env, io, CIT_MISC, obj); in do_bio_lustrebacked()
261 bytes = ll_direct_rw_pages(env, io, rw, inode, pvec); in do_bio_lustrebacked()
263 cl_io_fini(env, io); in do_bio_lustrebacked()
402 struct lu_env *env; in loop_thread() local
410 env = cl_env_get(&refcheck); in loop_thread()
411 if (IS_ERR(env)) { in loop_thread()
412 ret = PTR_ERR(env); in loop_thread()
416 lo->lo_env = env; in loop_thread()
461 cl_env_put(env, &refcheck); in loop_thread()
Dllite_internal.h726 int ll_readahead(const struct lu_env *env, struct cl_io *io,
777 int ll_merge_lvb(const struct lu_env *env, struct inode *inode);
946 static inline struct vvp_thread_info *vvp_env_info(const struct lu_env *env) in vvp_env_info() argument
951 info = lu_context_key_get(&env->le_ctx, &vvp_key); in vvp_env_info()
956 static inline struct vvp_io_args *vvp_env_args(const struct lu_env *env, in vvp_env_args() argument
959 struct vvp_io_args *ret = &vvp_env_info(env)->vti_args; in vvp_env_args()
970 static inline struct vvp_session *vvp_env_session(const struct lu_env *env) in vvp_env_session() argument
975 ses = lu_context_key_get(env->le_ses, &vvp_session_key); in vvp_env_session()
980 static inline struct vvp_io *vvp_env_io(const struct lu_env *env) in vvp_env_io() argument
982 return &vvp_env_session(env)->vs_ios; in vvp_env_io()
[all …]
/linux-4.1.27/arch/x86/kernel/
Di387.c487 convert_from_fxsr(struct user_i387_ia32_struct *env, struct task_struct *tsk) in convert_from_fxsr() argument
490 struct _fpreg *to = (struct _fpreg *) &env->st_space[0]; in convert_from_fxsr()
494 env->cwd = fxsave->cwd | 0xffff0000u; in convert_from_fxsr()
495 env->swd = fxsave->swd | 0xffff0000u; in convert_from_fxsr()
496 env->twd = twd_fxsr_to_i387(fxsave); in convert_from_fxsr()
499 env->fip = fxsave->rip; in convert_from_fxsr()
500 env->foo = fxsave->rdp; in convert_from_fxsr()
505 env->fcs = task_pt_regs(tsk)->cs; in convert_from_fxsr()
507 savesegment(ds, env->fos); in convert_from_fxsr()
509 env->fos = tsk->thread.ds; in convert_from_fxsr()
[all …]
Dxsave.c143 struct user_i387_ia32_struct env; in save_fsave_header() local
146 convert_from_fxsr(&env, tsk); in save_fsave_header()
148 if (__copy_to_user(buf, &env, sizeof(env)) || in save_fsave_header()
383 struct user_i387_ia32_struct env; in __restore_xstate_sig() local
397 __copy_from_user(&env, buf, sizeof(env))) { in __restore_xstate_sig()
401 sanitize_restored_xstate(tsk, &env, xstate_bv, fx_only); in __restore_xstate_sig()
/linux-4.1.27/drivers/staging/lustre/lustre/obdecho/
Decho_client.c96 static int echo_client_setup(const struct lu_env *env,
146 static inline struct echo_thread_info *echo_env_info(const struct lu_env *env) in echo_env_info() argument
150 info = lu_context_key_get(&env->le_ctx, &echo_thread_key); in echo_env_info()
172 static struct echo_thread_info *echo_env_info(const struct lu_env *env);
227 static struct page *echo_page_vmpage(const struct lu_env *env, in echo_page_vmpage() argument
233 static int echo_page_own(const struct lu_env *env, in echo_page_own() argument
246 static void echo_page_disown(const struct lu_env *env, in echo_page_disown() argument
256 static void echo_page_discard(const struct lu_env *env, in echo_page_discard() argument
260 cl_page_delete(env, slice->cpl_page); in echo_page_discard()
263 static int echo_page_is_vmlocked(const struct lu_env *env, in echo_page_is_vmlocked() argument
[all …]
/linux-4.1.27/arch/mips/alchemy/common/
Dprom.c64 char **env = prom_envp; in prom_getenv() local
66 int yamon = (*env && strchr(*env, '=') == NULL); in prom_getenv()
68 while (*env) { in prom_getenv()
70 if (strcmp(envname, *env++) == 0) in prom_getenv()
71 return *env; in prom_getenv()
72 } else if (strncmp(envname, *env, i) == 0 && (*env)[i] == '=') in prom_getenv()
73 return *env + i + 1; in prom_getenv()
74 env++; in prom_getenv()
/linux-4.1.27/security/tomoyo/
Denviron.c23 return tomoyo_path_matches_pattern(r->param.environ.name, acl->env); in tomoyo_check_env_acl()
49 int tomoyo_env_perm(struct tomoyo_request_info *r, const char *env) in tomoyo_env_perm() argument
54 if (!env || !*env) in tomoyo_env_perm()
56 environ.name = env; in tomoyo_env_perm()
81 return p1->env == p2->env; in tomoyo_same_env_acl()
101 e.env = tomoyo_get_name(data); in tomoyo_write_env()
102 if (!e.env) in tomoyo_write_env()
106 tomoyo_put_name(e.env); in tomoyo_write_env()
/linux-4.1.27/tools/perf/arch/
Dcommon.c66 char *env = getenv("PATH"); in lookup_path() local
68 if (!env) in lookup_path()
71 env = strdup(env); in lookup_path()
72 if (!env) in lookup_path()
75 path = strtok_r(env, ":", &tmp); in lookup_path()
84 free(env); in lookup_path()
131 static int perf_session_env__lookup_binutils_path(struct perf_session_env *env, in perf_session_env__lookup_binutils_path() argument
141 arch = normalize_arch(env->arch); in perf_session_env__lookup_binutils_path()
209 int perf_session_env__lookup_objdump(struct perf_session_env *env) in perf_session_env__lookup_objdump() argument
215 if (env->arch == NULL) in perf_session_env__lookup_objdump()
[all …]
Dcommon.h8 int perf_session_env__lookup_objdump(struct perf_session_env *env);
/linux-4.1.27/kernel/sched/
Dfair.c1185 static void task_numa_assign(struct task_numa_env *env, in task_numa_assign() argument
1188 if (env->best_task) in task_numa_assign()
1189 put_task_struct(env->best_task); in task_numa_assign()
1193 env->best_task = p; in task_numa_assign()
1194 env->best_imp = imp; in task_numa_assign()
1195 env->best_cpu = env->dst_cpu; in task_numa_assign()
1199 struct task_numa_env *env) in load_too_imbalanced() argument
1214 src_capacity = env->src_stats.compute_capacity; in load_too_imbalanced()
1215 dst_capacity = env->dst_stats.compute_capacity; in load_too_imbalanced()
1225 load_b * dst_capacity * env->imbalance_pct; in load_too_imbalanced()
[all …]
/linux-4.1.27/arch/mips/loongson1/common/
Dprom.c24 char **env = prom_envp; in prom_getenv() local
29 while (*env) { in prom_getenv()
30 if (strncmp(envname, *env, i) == 0 && *(*env + i) == '=') in prom_getenv()
31 return *env + i + 1; in prom_getenv()
32 env++; in prom_getenv()
38 static inline unsigned long env_or_default(char *env, unsigned long dfl) in env_or_default() argument
40 char *str = prom_getenv(env); in env_or_default()
/linux-4.1.27/drivers/of/
Ddevice.c219 void of_device_uevent(struct device *dev, struct kobj_uevent_env *env) in of_device_uevent() argument
228 add_uevent_var(env, "OF_NAME=%s", dev->of_node->name); in of_device_uevent()
229 add_uevent_var(env, "OF_FULLNAME=%s", dev->of_node->full_name); in of_device_uevent()
231 add_uevent_var(env, "OF_TYPE=%s", dev->of_node->type); in of_device_uevent()
238 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
244 add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in of_device_uevent()
250 add_uevent_var(env, "OF_ALIAS_%d=%s", seen, in of_device_uevent()
258 int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env) in of_device_uevent_modalias() argument
266 if (add_uevent_var(env, "MODALIAS=")) in of_device_uevent_modalias()
269 sl = of_device_get_modalias(dev, &env->buf[env->buflen-1], in of_device_uevent_modalias()
[all …]
/linux-4.1.27/arch/mips/pnx833x/common/
Dprom.c48 char **env = prom_envp; in prom_getenv() local
53 while (*env) { in prom_getenv()
54 if (strncmp(envname, *env, i) == 0 && *(*env+i) == '=') in prom_getenv()
55 return *env + i + 1; in prom_getenv()
56 env++; in prom_getenv()
/linux-4.1.27/sound/aoa/soundbus/
Dcore.c59 static int soundbus_uevent(struct device *dev, struct kobj_uevent_env *env) in soundbus_uevent() argument
77 retval = add_uevent_var(env, "OF_NAME=%s", of->dev.of_node->name); in soundbus_uevent()
81 retval = add_uevent_var(env, "OF_TYPE=%s", of->dev.of_node->type); in soundbus_uevent()
91 int tmp = env->buflen; in soundbus_uevent()
92 retval = add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in soundbus_uevent()
95 compat += env->buflen - tmp; in soundbus_uevent()
96 cplen -= env->buflen - tmp; in soundbus_uevent()
100 retval = add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in soundbus_uevent()
103 retval = add_uevent_var(env, "MODALIAS=%s", soundbus_dev->modalias); in soundbus_uevent()
/linux-4.1.27/drivers/mtd/maps/
Dpmcmsp-flash.c56 char *env; in init_msp_flash() local
70 for (fcnt = 0; (env = prom_getenv(flash_name)); fcnt++) in init_msp_flash()
95 for (pcnt = 0; (env = prom_getenv(part_name)); pcnt++) in init_msp_flash()
111 env = prom_getenv(flash_name); in init_msp_flash()
113 if (sscanf(env, "%x:%x", &addr, &size) < 2) { in init_msp_flash()
155 env = prom_getenv(part_name); in init_msp_flash()
157 if (sscanf(env, "%x:%x:%n", &offset, &size, in init_msp_flash()
168 msp_parts[i][j].name = env + coff; in init_msp_flash()
/linux-4.1.27/drivers/firmware/
Ddmi-id.c148 static int dmi_dev_uevent(struct device *dev, struct kobj_uevent_env *env) in dmi_dev_uevent() argument
152 if (add_uevent_var(env, "MODALIAS=")) in dmi_dev_uevent()
154 len = get_modalias(&env->buf[env->buflen - 1], in dmi_dev_uevent()
155 sizeof(env->buf) - env->buflen); in dmi_dev_uevent()
156 if (len >= (sizeof(env->buf) - env->buflen)) in dmi_dev_uevent()
158 env->buflen += len; in dmi_dev_uevent()
/linux-4.1.27/arch/x86/um/
Dsignal.c85 unsigned long env[7]; in convert_fxsr_to_user() local
90 env[0] = (unsigned long)fxsave->cwd | 0xffff0000ul; in convert_fxsr_to_user()
91 env[1] = (unsigned long)fxsave->swd | 0xffff0000ul; in convert_fxsr_to_user()
92 env[2] = twd_fxsr_to_i387(fxsave); in convert_fxsr_to_user()
93 env[3] = fxsave->fip; in convert_fxsr_to_user()
94 env[4] = fxsave->fcs | ((unsigned long)fxsave->fop << 16); in convert_fxsr_to_user()
95 env[5] = fxsave->foo; in convert_fxsr_to_user()
96 env[6] = fxsave->fos; in convert_fxsr_to_user()
98 if (__copy_to_user(buf, env, 7 * sizeof(unsigned long))) in convert_fxsr_to_user()
118 unsigned long env[7]; in convert_fxsr_from_user() local
[all …]
/linux-4.1.27/drivers/hwmon/
Dultra45_env.c60 struct env { struct
67 static u8 env_read(struct env *p, u8 ireg) in env_read() argument
79 static void env_write(struct env *p, u8 ireg, u8 val) in env_write()
100 struct env *p = dev_get_drvdata(dev); in show_fan_speed()
119 struct env *p = dev_get_drvdata(dev); in set_fan_speed()
142 struct env *p = dev_get_drvdata(dev); in show_fan_fault()
165 struct env *p = dev_get_drvdata(dev); in show_temp()
186 struct env *p = dev_get_drvdata(dev); in show_stat_bit()
202 struct env *p = dev_get_drvdata(dev); in show_fwver()
255 struct env *p = devm_kzalloc(&op->dev, sizeof(*p), GFP_KERNEL); in env_probe()
[all …]
/linux-4.1.27/drivers/zorro/
Dzorro-driver.c143 static int zorro_uevent(struct device *dev, struct kobj_uevent_env *env) in zorro_uevent() argument
154 if (add_uevent_var(env, "ZORRO_ID=%08X", z->id) || in zorro_uevent()
155 add_uevent_var(env, "ZORRO_SLOT_NAME=%s", dev_name(dev)) || in zorro_uevent()
156 add_uevent_var(env, "ZORRO_SLOT_ADDR=%04X", z->slotaddr) || in zorro_uevent()
157 add_uevent_var(env, "MODALIAS=" ZORRO_DEVICE_MODALIAS_FMT, z->id)) in zorro_uevent()
/linux-4.1.27/tools/perf/util/
Dexec_cmd.c57 const char *env; in perf_exec_path() local
62 env = getenv(EXEC_PATH_ENVIRONMENT); in perf_exec_path()
63 if (env && *env) { in perf_exec_path()
64 return env; in perf_exec_path()
Dpager.c93 const char *env; in pager_in_use() local
98 env = getenv("PERF_PAGER_IN_USE"); in pager_in_use()
99 return env ? perf_config_bool("PERF_PAGER_IN_USE", env) : 0; in pager_in_use()
Drun-command.c105 if (cmd->env) { in start_command()
106 for (; *cmd->env; cmd->env++) { in start_command()
107 if (strchr(*cmd->env, '=')) in start_command()
108 putenv((char*)*cmd->env); in start_command()
110 unsetenv(*cmd->env); in start_command()
Dheader.c875 fprintf(fp, "# hostname : %s\n", ph->env.hostname); in print_hostname()
881 fprintf(fp, "# os release : %s\n", ph->env.os_release); in print_osrelease()
886 fprintf(fp, "# arch : %s\n", ph->env.arch); in print_arch()
892 fprintf(fp, "# cpudesc : %s\n", ph->env.cpu_desc); in print_cpudesc()
898 fprintf(fp, "# nrcpus online : %u\n", ph->env.nr_cpus_online); in print_nrcpus()
899 fprintf(fp, "# nrcpus avail : %u\n", ph->env.nr_cpus_avail); in print_nrcpus()
905 fprintf(fp, "# perf version : %s\n", ph->env.version); in print_version()
914 nr = ph->env.nr_cmdline; in print_cmdline()
915 str = ph->env.cmdline; in print_cmdline()
932 nr = ph->env.nr_sibling_cores; in print_cpu_topology()
[all …]
Drun-command.h40 const char *const *env; member
Dsession.c170 static void perf_session_env__delete(struct perf_session_env *env) in perf_session_env__delete() argument
172 zfree(&env->hostname); in perf_session_env__delete()
173 zfree(&env->os_release); in perf_session_env__delete()
174 zfree(&env->version); in perf_session_env__delete()
175 zfree(&env->arch); in perf_session_env__delete()
176 zfree(&env->cpu_desc); in perf_session_env__delete()
177 zfree(&env->cpuid); in perf_session_env__delete()
179 zfree(&env->cmdline); in perf_session_env__delete()
180 zfree(&env->sibling_cores); in perf_session_env__delete()
181 zfree(&env->sibling_threads); in perf_session_env__delete()
[all …]
Ddata-convert-bt.c619 ADD("host", header->env.hostname); in ctf_writer__setup_env()
621 ADD("release", header->env.os_release); in ctf_writer__setup_env()
622 ADD("version", header->env.version); in ctf_writer__setup_env()
623 ADD("machine", header->env.arch); in ctf_writer__setup_env()
Dhist.h315 struct perf_session_env *env);
323 struct perf_session_env *env __maybe_unused) in perf_evlist__tui_browse_hists()
Dheader.h99 struct perf_session_env env; member
Dsymbol.c1809 static int vmlinux_path__init(struct perf_session_env *env) in vmlinux_path__init() argument
1832 if (env) { in vmlinux_path__init()
1833 kernel_version = env->os_release; in vmlinux_path__init()
1920 int symbol__init(struct perf_session_env *env) in symbol__init() argument
1935 if (symbol_conf.try_vmlinux_path && vmlinux_path__init(env) < 0) in symbol__init()
/linux-4.1.27/include/linux/
Dof_device.h39 extern void of_device_uevent(struct device *dev, struct kobj_uevent_env *env);
40 extern int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env);
66 struct kobj_uevent_env *env) { } in of_device_uevent() argument
75 struct kobj_uevent_env *env) in of_device_uevent_modalias() argument
Dkobject.h135 struct kobj_uevent_env *env);
219 int add_uevent_var(struct kobj_uevent_env *env, const char *format, ...);
/linux-4.1.27/drivers/xen/xenbus/
Dxenbus_probe_backend.c97 struct kobj_uevent_env *env) in xenbus_uevent_backend() argument
111 if (add_uevent_var(env, "MODALIAS=xen-backend:%s", xdev->devicetype)) in xenbus_uevent_backend()
115 if (add_uevent_var(env, "XENBUS_TYPE=%s", xdev->devicetype)) in xenbus_uevent_backend()
118 if (add_uevent_var(env, "XENBUS_PATH=%s", xdev->nodename)) in xenbus_uevent_backend()
121 if (add_uevent_var(env, "XENBUS_BASE_PATH=%s", bus->root)) in xenbus_uevent_backend()
127 return drv->uevent(xdev, env); in xenbus_uevent_backend()
Dxenbus_probe_frontend.c79 struct kobj_uevent_env *env) in xenbus_uevent_frontend() argument
83 if (add_uevent_var(env, "MODALIAS=xen:%s", dev->devicetype)) in xenbus_uevent_frontend()
/linux-4.1.27/arch/mips/ar7/
Dprom.c183 static void __init ar7_init_env(struct env_var *env) in ar7_init_env() argument
192 for (i = 0; i < MAX_ENTRY; i++, env++) in ar7_init_env()
193 if (env->name) in ar7_init_env()
194 add_adam2_var(env->name, env->value); in ar7_init_env()
/linux-4.1.27/drivers/staging/lustre/lustre/fid/
Dfid_request.c145 const struct lu_env *env) in seq_client_alloc_super() argument
169 static int seq_client_alloc_meta(const struct lu_env *env, in seq_client_alloc_meta() argument
191 static int seq_client_alloc_seq(const struct lu_env *env, in seq_client_alloc_seq() argument
199 rc = seq_client_alloc_meta(env, seq); in seq_client_alloc_seq()
253 int seq_client_get_seq(const struct lu_env *env, in seq_client_get_seq() argument
269 rc = seq_client_alloc_seq(env, seq, seqnr); in seq_client_get_seq()
302 int seq_client_alloc_fid(const struct lu_env *env, in seq_client_alloc_fid() argument
332 rc = seq_client_alloc_seq(env, seq, &seqnr); in seq_client_alloc_fid()
Dfid_internal.h48 const struct lu_env *env);
/linux-4.1.27/tools/perf/ui/browsers/
Dheader.c94 int tui__header_window(struct perf_session_env *env) in tui__header_window() argument
103 session = container_of(env, struct perf_session, header.env); in tui__header_window()
Dhists.c1421 struct perf_session_env *env) in perf_evsel__hists_browse() argument
1560 if (env->arch) in perf_evsel__hists_browse()
1561 tui__header_window(env); in perf_evsel__hists_browse()
1712 if (!objdump_path && perf_session_env__lookup_objdump(env)) in perf_evsel__hists_browse()
1824 struct perf_session_env *env; member
1919 menu->env); in perf_evsel_menu__run()
1981 struct perf_session_env *env) in __perf_evlist__tui_browse_hists() argument
1995 .env = env, in __perf_evlist__tui_browse_hists()
2014 struct perf_session_env *env) in perf_evlist__tui_browse_hists() argument
2024 env); in perf_evlist__tui_browse_hists()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dllog_client.c79 static int llog_client_open(const struct lu_env *env, in llog_client_open() argument
145 static int llog_client_destroy(const struct lu_env *env, in llog_client_destroy() argument
180 static int llog_client_next_block(const struct lu_env *env, in llog_client_next_block() argument
239 static int llog_client_prev_block(const struct lu_env *env, in llog_client_prev_block() argument
292 static int llog_client_read_header(const struct lu_env *env, in llog_client_read_header() argument
349 static int llog_client_close(const struct lu_env *env, in llog_client_close() argument
Dptlrpcd.c263 static int ptlrpcd_check(struct lu_env *env, struct ptlrpcd_ctl *pc) in ptlrpcd_check() argument
290 rc2 = lu_env_refill(env); in ptlrpcd_check()
307 rc |= ptlrpc_check_set(env, set); in ptlrpcd_check()
376 struct lu_env env = { .le_ses = NULL }; in ptlrpcd() local
399 rc = lu_context_init(&env.le_ctx, in ptlrpcd()
420 lu_context_enter(&env.le_ctx); in ptlrpcd()
422 ptlrpcd_check(&env, pc), &lwi); in ptlrpcd()
423 lu_context_exit(&env.le_ctx); in ptlrpcd()
445 lu_context_fini(&env.le_ctx); in ptlrpcd()
Dservice.c2264 struct lu_env *env; in ptlrpc_main() local
2294 OBD_ALLOC_PTR(env); in ptlrpc_main()
2295 if (env == NULL) { in ptlrpc_main()
2300 rc = lu_context_init(&env->le_ctx, in ptlrpc_main()
2305 thread->t_env = env; in ptlrpc_main()
2306 env->le_ctx.lc_thread = thread; in ptlrpc_main()
2307 env->le_ctx.lc_cookie = 0x6; in ptlrpc_main()
2372 lu_context_enter(&env->le_ctx); in ptlrpc_main()
2373 env->le_ses = NULL; in ptlrpc_main()
2375 lu_context_exit(&env->le_ctx); in ptlrpc_main()
[all …]
/linux-4.1.27/scripts/kconfig/
Dconfdata.c114 char *env, *name; in conf_get_default_confname() local
117 env = getenv(SRCTREE); in conf_get_default_confname()
118 if (env) { in conf_get_default_confname()
119 sprintf(fullname, "%s/%s", env, name); in conf_get_default_confname()
749 char *env; in conf_write() local
774 env = getenv("KCONFIG_OVERWRITECONFIG"); in conf_write()
775 if (!env || !*env) { in conf_write()
1135 char *env = getenv("KCONFIG_PROBABILITY"); in conf_set_all_new_symbols() local
1137 while( env && *env ) { in conf_set_all_new_symbols()
1139 int tmp = strtol( env, &endp, 10 ); in conf_set_all_new_symbols()
[all …]
Dstreamline_config.pl168 my $env = $1;
170 $source =~ s/\$$env/$ENV{$env}/;
Dzconf.gperf46 env, T_OPT_ENV, TF_OPTION
Dsymbol.c1346 static void prop_add_env(const char *env) in prop_add_env() argument
1356 if (strcmp(sym2->name, env)) in prop_add_env()
1363 prop->expr = expr_alloc_symbol(sym_lookup(env, SYMBOL_CONST)); in prop_add_env()
1368 p = getenv(env); in prop_add_env()
1372 menu_warn(current_entry, "environment variable %s undefined", env); in prop_add_env()
Dzconf.lex.c2324 char *env, fullname[PATH_MAX+1]; in zconf_fopen() local
2329 env = getenv(SRCTREE); in zconf_fopen()
2330 if (env) { in zconf_fopen()
2331 sprintf(fullname, "%s/%s", env, name); in zconf_fopen()
Dzconf.hash.c_shipped113 char kconf_id_strings_str33[sizeof("env")];
149 "env",
/linux-4.1.27/arch/mips/pnx833x/stb22x/
Dboard.c52 static inline unsigned long env_or_default(char *env, unsigned long dfl) in env_or_default() argument
54 char *str = prom_getenv(env); in env_or_default()
/linux-4.1.27/arch/alpha/kernel/
Derr_marvel.c27 struct ev7_pal_environmental_subpacket *env; in marvel_print_680_frame() local
48 env = lf_subpackets->env[ev7_lf_env_index(ev_packets[i].type)]; in marvel_print_680_frame()
49 if (!env) in marvel_print_680_frame()
55 env->cabinet, in marvel_print_680_frame()
56 env->drawer); in marvel_print_680_frame()
60 env->module_type, in marvel_print_680_frame()
61 env->unit_id, in marvel_print_680_frame()
62 env->condition); in marvel_print_680_frame()
76 if (lf_subpackets->env[i]) in marvel_process_680_frame()
Derr_ev7.c103 lf_subpackets->env[ev7_lf_env_index(subpacket->type)] = in ev7_collect_logout_frame_subpackets()
/linux-4.1.27/drivers/base/
Dcore.c299 struct kobj_uevent_env *env) in dev_uevent() argument
312 add_uevent_var(env, "MAJOR=%u", MAJOR(dev->devt)); in dev_uevent()
313 add_uevent_var(env, "MINOR=%u", MINOR(dev->devt)); in dev_uevent()
316 add_uevent_var(env, "DEVNAME=%s", name); in dev_uevent()
318 add_uevent_var(env, "DEVMODE=%#o", mode & 0777); in dev_uevent()
320 add_uevent_var(env, "DEVUID=%u", from_kuid(&init_user_ns, uid)); in dev_uevent()
322 add_uevent_var(env, "DEVGID=%u", from_kgid(&init_user_ns, gid)); in dev_uevent()
328 add_uevent_var(env, "DEVTYPE=%s", dev->type->name); in dev_uevent()
331 add_uevent_var(env, "DRIVER=%s", dev->driver->name); in dev_uevent()
334 of_device_uevent(dev, env); in dev_uevent()
[all …]
Dfirmware_class.c547 static int do_firmware_uevent(struct firmware_priv *fw_priv, struct kobj_uevent_env *env) in do_firmware_uevent() argument
549 if (add_uevent_var(env, "FIRMWARE=%s", fw_priv->buf->fw_id)) in do_firmware_uevent()
551 if (add_uevent_var(env, "TIMEOUT=%i", loading_timeout)) in do_firmware_uevent()
553 if (add_uevent_var(env, "ASYNC=%d", fw_priv->nowait)) in do_firmware_uevent()
559 static int firmware_uevent(struct device *dev, struct kobj_uevent_env *env) in firmware_uevent() argument
566 err = do_firmware_uevent(fw_priv, env); in firmware_uevent()
Dcpu.c310 static int cpu_uevent(struct device *dev, struct kobj_uevent_env *env) in cpu_uevent() argument
315 add_uevent_var(env, "MODALIAS=%s", buf); in cpu_uevent()
Dplatform.c774 static int platform_uevent(struct device *dev, struct kobj_uevent_env *env) in platform_uevent() argument
780 rc = of_device_uevent_modalias(dev, env); in platform_uevent()
784 rc = acpi_device_uevent_modalias(dev, env); in platform_uevent()
788 add_uevent_var(env, "MODALIAS=%s%s", PLATFORM_MODULE_PREFIX, in platform_uevent()
/linux-4.1.27/drivers/mmc/core/
Dsdio_bus.c109 sdio_bus_uevent(struct device *dev, struct kobj_uevent_env *env) in sdio_bus_uevent() argument
113 if (add_uevent_var(env, in sdio_bus_uevent()
117 if (add_uevent_var(env, in sdio_bus_uevent()
121 if (add_uevent_var(env, in sdio_bus_uevent()
Dbus.c68 mmc_bus_uevent(struct device *dev, struct kobj_uevent_env *env) in mmc_bus_uevent() argument
92 retval = add_uevent_var(env, "MMC_TYPE=%s", type); in mmc_bus_uevent()
97 retval = add_uevent_var(env, "MMC_NAME=%s", mmc_card_name(card)); in mmc_bus_uevent()
105 retval = add_uevent_var(env, "MODALIAS=mmc:block"); in mmc_bus_uevent()
/linux-4.1.27/drivers/input/
Dinput.c1525 static int input_add_uevent_bm_var(struct kobj_uevent_env *env, in input_add_uevent_bm_var() argument
1530 if (add_uevent_var(env, "%s", name)) in input_add_uevent_bm_var()
1533 len = input_print_bitmap(&env->buf[env->buflen - 1], in input_add_uevent_bm_var()
1534 sizeof(env->buf) - env->buflen, in input_add_uevent_bm_var()
1536 if (len >= (sizeof(env->buf) - env->buflen)) in input_add_uevent_bm_var()
1539 env->buflen += len; in input_add_uevent_bm_var()
1543 static int input_add_uevent_modalias_var(struct kobj_uevent_env *env, in input_add_uevent_modalias_var() argument
1548 if (add_uevent_var(env, "MODALIAS=")) in input_add_uevent_modalias_var()
1551 len = input_print_modalias(&env->buf[env->buflen - 1], in input_add_uevent_modalias_var()
1552 sizeof(env->buf) - env->buflen, in input_add_uevent_modalias_var()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/mgc/
Dmgc_request.c644 static int mgc_llog_init(const struct lu_env *env, struct obd_device *obd) in mgc_llog_init() argument
651 rc = llog_setup(env, obd, &obd->obd_olg, LLOG_CONFIG_REPL_CTXT, obd, in mgc_llog_init()
665 static int mgc_llog_fini(const struct lu_env *env, struct obd_device *obd) in mgc_llog_fini() argument
671 llog_cleanup(env, ctxt); in mgc_llog_fini()
970 static int mgc_set_info_async(const struct lu_env *env, struct obd_export *exp, in mgc_set_info_async() argument
1047 static int mgc_get_info(const struct lu_env *env, struct obd_export *exp, in mgc_get_info() argument
1482 struct lu_env *env; in mgc_process_cfg_log() local
1497 OBD_ALLOC_PTR(env); in mgc_process_cfg_log()
1498 if (env == NULL) in mgc_process_cfg_log()
1501 rc = lu_env_init(env, LCT_MG_THREAD); in mgc_process_cfg_log()
[all …]
/linux-4.1.27/drivers/ide/
Dide.c115 static int ide_uevent(struct device *dev, struct kobj_uevent_env *env) in ide_uevent() argument
119 add_uevent_var(env, "MEDIA=%s", ide_media_string(drive)); in ide_uevent()
120 add_uevent_var(env, "DRIVENAME=%s", drive->name); in ide_uevent()
121 add_uevent_var(env, "MODALIAS=ide:m-%s", ide_media_string(drive)); in ide_uevent()
/linux-4.1.27/drivers/bus/
Dmips_cdmm.c68 static int mips_cdmm_uevent(struct device *dev, struct kobj_uevent_env *env) in mips_cdmm_uevent() argument
73 retval = add_uevent_var(env, "CDMM_CPU=%u", cdev->cpu); in mips_cdmm_uevent()
77 retval = add_uevent_var(env, "CDMM_TYPE=0x%02x", cdev->type); in mips_cdmm_uevent()
81 retval = add_uevent_var(env, "CDMM_REV=%u", cdev->rev); in mips_cdmm_uevent()
85 retval = add_uevent_var(env, "MODALIAS=mipscdmm:t%02X", cdev->type); in mips_cdmm_uevent()
/linux-4.1.27/arch/arm/boot/dts/
Dpicoxcell-pc7302-pc3x2.dts64 boot-env@300000 {
69 redundant-boot-env@320000 {
Dpicoxcell-pc7302-pc3x3.dts70 boot-env@300000 {
75 redundant-boot-env@320000 {
Dkirkwood-t5325.dts108 label = "u-boot env";
113 label = "permanent u-boot env";
118 label = "permanent u-boot env";
Dimx28-apf28.dts36 label = "env";
Ddra72-evm.dts354 label = "NAND.u-boot-env";
358 label = "NAND.u-boot-env.backup1";
553 label = "QSPI.u-boot-env";
557 label = "QSPI.u-boot-env.backup1";
Dkirkwood-dreamplug.dts57 label = "u-boot env";
Ddra7-evm.dts526 label = "QSPI.u-boot-env";
530 label = "QSPI.u-boot-env.backup1";
630 label = "NAND.u-boot-env";
634 label = "NAND.u-boot-env.backup1";
Dimx27-apf27.dts96 label = "env";
Dsama5d3xcm.dtsi98 label = "bootloader env";
Dkirkwood-openblocks_a6.dts138 label = "env";
Dkirkwood-iconnect.dts163 label = "env";
Dkirkwood-mplcec4.dts173 label = "env";
Dat91sam9rlek.dts91 label = "bootloader env";
Dkirkwood-topkick.dts182 label = "u-boot env";
Dkirkwood-openblocks_a7.dts156 label = "env";
Dat91sam9261ek.dts96 label = "bootloader env";
Dkirkwood-iomega_ix2_200.dts188 label = "env";
Dmeson8-minix-neo-x8.dts112 label = "env";
Dkirkwood-b3.dts89 label = "u-boot env";
/linux-4.1.27/drivers/platform/x86/
Dwmi.c685 static int wmi_dev_uevent(struct device *dev, struct kobj_uevent_env *env) in wmi_dev_uevent() argument
691 if (add_uevent_var(env, "MODALIAS=")) in wmi_dev_uevent()
700 strcpy(&env->buf[env->buflen - 1], "wmi:"); in wmi_dev_uevent()
701 memcpy(&env->buf[env->buflen - 1 + 4], guid_string, 36); in wmi_dev_uevent()
702 env->buflen += 40; in wmi_dev_uevent()
/linux-4.1.27/arch/sparc/kernel/
Dldc.c61 u8 env; member
442 p->env = lp->cfg.mode; in send_rts()
447 p->env, p->seqid); in send_rts()
462 p->env = lp->cfg.mode; in send_rtr()
466 p->env, p->seqid); in send_rtr()
481 p->env = 0; in send_rdx()
486 p->env, p->seqid, p->u.r.ackid); in send_rdx()
679 p->stype, p->seqid, p->env); in process_rts()
683 p->env != lp->cfg.mode) in process_rts()
699 p->stype, p->seqid, p->env); in process_rtr()
[all …]
/linux-4.1.27/arch/powerpc/include/asm/
Dtypes.h25 unsigned long env; member
/linux-4.1.27/drivers/md/bcache/
Dsysfs.c196 struct kobj_uevent_env *env; in STORE() local
254 env = kzalloc(sizeof(struct kobj_uevent_env), GFP_KERNEL); in STORE()
255 if (!env) in STORE()
257 add_uevent_var(env, "DRIVER=bcache"); in STORE()
258 add_uevent_var(env, "CACHED_UUID=%pU", dc->sb.uuid), in STORE()
259 add_uevent_var(env, "CACHED_LABEL=%s", buf); in STORE()
261 &disk_to_dev(dc->disk.disk)->kobj, KOBJ_CHANGE, env->envp); in STORE()
262 kfree(env); in STORE()
Dsuper.c872 char *env[] = { in bch_cached_dev_run() local
881 env[2] = kasprintf(GFP_KERNEL, "CACHED_LABEL=%s", buf); in bch_cached_dev_run()
884 kfree(env[1]); in bch_cached_dev_run()
885 kfree(env[2]); in bch_cached_dev_run()
903 kobject_uevent_env(&disk_to_dev(d->disk)->kobj, KOBJ_CHANGE, env); in bch_cached_dev_run()
904 kfree(env[1]); in bch_cached_dev_run()
905 kfree(env[2]); in bch_cached_dev_run()
/linux-4.1.27/drivers/rapidio/
Drio-driver.c201 static int rio_uevent(struct device *dev, struct kobj_uevent_env *env) in rio_uevent() argument
212 if (add_uevent_var(env, "MODALIAS=rapidio:v%04Xd%04Xav%04Xad%04X", in rio_uevent()
/linux-4.1.27/drivers/power/
Dpower_supply_sysfs.c273 int power_supply_uevent(struct device *dev, struct kobj_uevent_env *env) in power_supply_uevent() argument
289 ret = add_uevent_var(env, "POWER_SUPPLY_NAME=%s", psy->desc->name); in power_supply_uevent()
326 ret = add_uevent_var(env, "POWER_SUPPLY_%s=%s", attrname, prop_buf); in power_supply_uevent()
Dpower_supply.h20 extern int power_supply_uevent(struct device *dev, struct kobj_uevent_env *env);
/linux-4.1.27/drivers/acpi/
Dscan.c277 struct kobj_uevent_env *env) in __acpi_device_uevent_modalias() argument
287 if (add_uevent_var(env, "MODALIAS=")) in __acpi_device_uevent_modalias()
290 len = create_pnp_modalias(adev, &env->buf[env->buflen - 1], in __acpi_device_uevent_modalias()
291 sizeof(env->buf) - env->buflen); in __acpi_device_uevent_modalias()
295 env->buflen += len; in __acpi_device_uevent_modalias()
299 if (len > 0 && add_uevent_var(env, "MODALIAS=")) in __acpi_device_uevent_modalias()
302 len = create_of_modalias(adev, &env->buf[env->buflen - 1], in __acpi_device_uevent_modalias()
303 sizeof(env->buf) - env->buflen); in __acpi_device_uevent_modalias()
307 env->buflen += len; in __acpi_device_uevent_modalias()
318 int acpi_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env) in acpi_device_uevent_modalias() argument
[all …]
/linux-4.1.27/arch/mips/fw/arc/
DMakefile5 lib-y += cmdline.o env.o file.o identify.o init.o \
/linux-4.1.27/
DKconfig9 option env="SRCARCH"
/linux-4.1.27/arch/alpha/include/asm/
Derr_ev7.h181 struct ev7_pal_environmental_subpacket env; /* Type 10-16 */ member
195 struct ev7_pal_environmental_subpacket *env[7]; /* Type 10-16 */ member
/linux-4.1.27/arch/cris/include/asm/
Deshlibld.h78 char **env, int envc,
/linux-4.1.27/arch/mips/loongson/common/
DMakefile5 obj-y += setup.o init.o cmdline.o env.o time.o reset.o irq.o \
/linux-4.1.27/drivers/s390/net/
Dqeth_l2_main.c1408 char *env[8]; in qeth_bridge_emit_host_event() local
1416 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1420 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1425 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1429 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1431 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1434 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1436 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1440 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1444 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
[all …]
/linux-4.1.27/drivers/misc/mic/bus/
Dmic_bus.c90 static int mbus_uevent(struct device *dv, struct kobj_uevent_env *env) in mbus_uevent() argument
94 return add_uevent_var(env, "MODALIAS=mbus:d%08Xv%08X", in mbus_uevent()
/linux-4.1.27/net/atm/
Datm_sysfs.c116 static int atm_uevent(struct device *cdev, struct kobj_uevent_env *env) in atm_uevent() argument
127 if (add_uevent_var(env, "NAME=%s%d", adev->type, adev->number)) in atm_uevent()
/linux-4.1.27/arch/mips/boot/dts/ralink/
Drt2880_eval.dts33 label = "uboot-env";
Drt3052_eval.dts33 label = "uboot-env";
/linux-4.1.27/fs/gfs2/
Dsys.c680 struct kobj_uevent_env *env) in gfs2_uevent() argument
686 add_uevent_var(env, "LOCKTABLE=%s", sdp->sd_table_name); in gfs2_uevent()
687 add_uevent_var(env, "LOCKPROTO=%s", sdp->sd_proto_name); in gfs2_uevent()
689 add_uevent_var(env, "JOURNALID=%d", sdp->sd_lockstruct.ls_jid); in gfs2_uevent()
691 add_uevent_var(env, "UUID=%pUB", uuid); in gfs2_uevent()
/linux-4.1.27/drivers/media/dvb-core/
Ddvbdev.c577 static int dvb_uevent(struct device *dev, struct kobj_uevent_env *env) in dvb_uevent() argument
581 add_uevent_var(env, "DVB_ADAPTER_NUM=%d", dvbdev->adapter->num); in dvb_uevent()
582 add_uevent_var(env, "DVB_DEVICE_TYPE=%s", dnames[dvbdev->type]); in dvb_uevent()
583 add_uevent_var(env, "DVB_DEVICE_NUM=%d", dvbdev->id); in dvb_uevent()
/linux-4.1.27/drivers/memstick/core/
Dmemstick.c63 static int memstick_uevent(struct device *dev, struct kobj_uevent_env *env) in memstick_uevent() argument
68 if (add_uevent_var(env, "MEMSTICK_TYPE=%02X", card->id.type)) in memstick_uevent()
71 if (add_uevent_var(env, "MEMSTICK_CATEGORY=%02X", card->id.category)) in memstick_uevent()
74 if (add_uevent_var(env, "MEMSTICK_CLASS=%02X", card->id.class)) in memstick_uevent()
/linux-4.1.27/arch/um/
DKconfig.common61 option env="SUBARCH"
/linux-4.1.27/drivers/fmc/
Dfmc-core.c31 static int fmc_uevent(struct device *dev, struct kobj_uevent_env *env) in fmc_uevent() argument
36 add_uevent_var(env, "MODALIAS=%s", "fmc"); in fmc_uevent()
/linux-4.1.27/arch/mips/boot/dts/netlogic/
Dxlp_gvp.dts66 label = "env";
Dxlp_rvp.dts66 label = "env";
Dxlp_svp.dts108 label = "env";
Dxlp_fvp.dts108 label = "env";
Dxlp_evp.dts108 label = "env";
/linux-4.1.27/drivers/s390/cio/
Dscm.c38 static int scmdev_uevent(struct device *dev, struct kobj_uevent_env *env) in scmdev_uevent() argument
40 return add_uevent_var(env, "MODALIAS=scm:scmdev"); in scmdev_uevent()
Ddevice.c101 static int ccw_uevent(struct device *dev, struct kobj_uevent_env *env) in ccw_uevent() argument
109 ret = add_uevent_var(env, "CU_TYPE=%04X", id->cu_type); in ccw_uevent()
114 ret = add_uevent_var(env, "CU_MODEL=%02X", id->cu_model); in ccw_uevent()
120 ret = add_uevent_var(env, "DEV_TYPE=%04X", id->dev_type); in ccw_uevent()
125 ret = add_uevent_var(env, "DEV_MODEL=%02X", id->dev_model); in ccw_uevent()
131 ret = add_uevent_var(env, "MODALIAS=%s", modalias_buf); in ccw_uevent()
/linux-4.1.27/arch/m68k/68360/
Dhead-rom.S252 pea env
268 env: label
Dhead-ram.S242 pea env
258 env: label
/linux-4.1.27/drivers/mcb/
Dmcb-core.c47 static int mcb_uevent(struct device *dev, struct kobj_uevent_env *env) in mcb_uevent() argument
52 ret = add_uevent_var(env, "MODALIAS=mcb:16z%03d", mdev->id); in mcb_uevent()
/linux-4.1.27/drivers/pci/
Dpci-driver.c1365 static int pci_uevent(struct device *dev, struct kobj_uevent_env *env) in pci_uevent() argument
1374 if (add_uevent_var(env, "PCI_CLASS=%04X", pdev->class)) in pci_uevent()
1377 if (add_uevent_var(env, "PCI_ID=%04X:%04X", pdev->vendor, pdev->device)) in pci_uevent()
1380 if (add_uevent_var(env, "PCI_SUBSYS_ID=%04X:%04X", pdev->subsystem_vendor, in pci_uevent()
1384 if (add_uevent_var(env, "PCI_SLOT_NAME=%s", pci_name(pdev))) in pci_uevent()
1387 if (add_uevent_var(env, "MODALIAS=pci:v%08Xd%08Xsv%08Xsd%08Xbc%02Xsc%02Xi%02X", in pci_uevent()
/linux-4.1.27/drivers/staging/lustre/lustre/fld/
Dfld_internal.h181 int fld_write_range(const struct lu_env *env, struct dt_object *dt,
/linux-4.1.27/tools/perf/
Dbuiltin-annotate.c206 ret = perf_session_env__lookup_objdump(&session->header.env); in __cmd_annotate()
352 ret = symbol__init(&annotate.session->header.env); in cmd_annotate()
Dbuiltin-timechart.c1515 tchart->numcpus = ph->env.nr_cpus_avail; in process_header()
1522 if (svg_build_topology_map(ph->env.sibling_cores, in process_header()
1523 ph->env.nr_sibling_cores, in process_header()
1524 ph->env.sibling_threads, in process_header()
1525 ph->env.nr_sibling_threads)) in process_header()
1612 symbol__init(&session->header.env); in __cmd_timechart()
/linux-4.1.27/drivers/usb/gadget/udc/
Dudc-core.c611 static int usb_udc_uevent(struct device *dev, struct kobj_uevent_env *env) in usb_udc_uevent() argument
616 ret = add_uevent_var(env, "USB_UDC_NAME=%s", udc->gadget->name); in usb_udc_uevent()
623 ret = add_uevent_var(env, "USB_UDC_DRIVER=%s", in usb_udc_uevent()
/linux-4.1.27/tools/perf/ui/
Dbrowser.h62 int tui__header_window(struct perf_session_env *env);
/linux-4.1.27/arch/mips/sgi-ip22/
Dip22-gio.c198 static int gio_device_uevent(struct device *dev, struct kobj_uevent_env *env) in gio_device_uevent() argument
202 add_uevent_var(env, "MODALIAS=gio:%x", gio_dev->id.id); in gio_device_uevent()
/linux-4.1.27/drivers/misc/
Dtifm_core.c62 static int tifm_uevent(struct device *dev, struct kobj_uevent_env *env) in tifm_uevent() argument
66 if (add_uevent_var(env, "TIFM_CARD_TYPE=%s", tifm_media_type_name(sock->type, 1))) in tifm_uevent()
/linux-4.1.27/drivers/amba/
Dbus.c54 static int amba_uevent(struct device *dev, struct kobj_uevent_env *env) in amba_uevent() argument
59 retval = add_uevent_var(env, "AMBA_ID=%08x", pcdev->periphid); in amba_uevent()
63 retval = add_uevent_var(env, "MODALIAS=amba:d%08X", pcdev->periphid); in amba_uevent()
/linux-4.1.27/drivers/virtio/
Dvirtio.c95 static int virtio_uevent(struct device *_dv, struct kobj_uevent_env *env) in virtio_uevent() argument
99 return add_uevent_var(env, "MODALIAS=virtio:d%08Xv%08X", in virtio_uevent()
/linux-4.1.27/drivers/isdn/mISDN/
Dcore.c151 static int mISDN_uevent(struct device *dev, struct kobj_uevent_env *env) in mISDN_uevent() argument
158 if (add_uevent_var(env, "nchans=%d", mdev->nrbchan)) in mISDN_uevent()
/linux-4.1.27/drivers/usb/core/
Dusb.c293 static int usb_dev_uevent(struct device *dev, struct kobj_uevent_env *env) in usb_dev_uevent() argument
299 if (add_uevent_var(env, "BUSNUM=%03d", usb_dev->bus->busnum)) in usb_dev_uevent()
302 if (add_uevent_var(env, "DEVNUM=%03d", usb_dev->devnum)) in usb_dev_uevent()
/linux-4.1.27/drivers/bcma/
Dmain.c28 static int bcma_device_uevent(struct device *dev, struct kobj_uevent_env *env);
630 static int bcma_device_uevent(struct device *dev, struct kobj_uevent_env *env) in bcma_device_uevent() argument
634 return add_uevent_var(env, in bcma_device_uevent()
/linux-4.1.27/arch/powerpc/boot/dts/
Do2d.dtsi101 label = "env";
Da3m071.dts114 label = "env";
Dppa8548.dts77 label = "env";
Dlite5200b.dts151 label = "u-boot-env";
Dpcm032.dts135 label = "env";
/linux-4.1.27/net/wireless/
Dsysfs.c83 static int wiphy_uevent(struct device *dev, struct kobj_uevent_env *env) in wiphy_uevent() argument
/linux-4.1.27/arch/x86/include/asm/
Dfpu-internal.h47 extern void convert_from_fxsr(struct user_i387_ia32_struct *env,
50 const struct user_i387_ia32_struct *env);
/linux-4.1.27/arch/parisc/kernel/
Ddrivers.c551 static int parisc_uevent(struct device *dev, struct kobj_uevent_env *env) in parisc_uevent() argument
563 if (add_uevent_var(env, "PARISC_NAME=%s", padev->name)) in parisc_uevent()
567 if (add_uevent_var(env, "MODALIAS=%s", modalias)) in parisc_uevent()
/linux-4.1.27/drivers/eisa/
Deisa-bus.c131 static int eisa_bus_uevent(struct device *dev, struct kobj_uevent_env *env) in eisa_bus_uevent() argument
135 add_uevent_var(env, "MODALIAS=" EISA_DEVICE_MODALIAS_FMT, edev->id.sig); in eisa_bus_uevent()
/linux-4.1.27/net/rfkill/
Dcore.c752 static int rfkill_dev_uevent(struct device *dev, struct kobj_uevent_env *env) in rfkill_dev_uevent() argument
759 error = add_uevent_var(env, "RFKILL_NAME=%s", rfkill->name); in rfkill_dev_uevent()
762 error = add_uevent_var(env, "RFKILL_TYPE=%s", in rfkill_dev_uevent()
769 error = add_uevent_var(env, "RFKILL_STATE=%d", in rfkill_dev_uevent()
/linux-4.1.27/drivers/ipack/
Dipack.c88 static int ipack_uevent(struct device *dev, struct kobj_uevent_env *env) in ipack_uevent() argument
97 if (add_uevent_var(env, in ipack_uevent()
/linux-4.1.27/drivers/misc/mei/
Dbus.c117 static int mei_cl_uevent(struct device *dev, struct kobj_uevent_env *env) in mei_cl_uevent() argument
119 if (add_uevent_var(env, "MODALIAS=mei:%s", dev_name(dev))) in mei_cl_uevent()
/linux-4.1.27/drivers/w1/
Dw1.c184 static int w1_uevent(struct device *dev, struct kobj_uevent_env *env);
581 static int w1_uevent(struct device *dev, struct kobj_uevent_env *env) in w1_uevent() argument
607 err = add_uevent_var(env, "W1_FID=%02X", sl->reg_num.family); in w1_uevent()
611 err = add_uevent_var(env, "W1_SLAVE_ID=%024LX", in w1_uevent()
/linux-4.1.27/drivers/net/xen-netback/
Dxenbus.c392 struct kobj_uevent_env *env) in netback_uevent() argument
399 if (add_uevent_var(env, "script=%s", be->hotplug_script)) in netback_uevent()
405 return add_uevent_var(env, "vif=%s", be->vif->dev->name); in netback_uevent()
/linux-4.1.27/drivers/pcmcia/
Dds.c926 static int pcmcia_bus_uevent(struct device *dev, struct kobj_uevent_env *env) in pcmcia_bus_uevent() argument
944 if (add_uevent_var(env, "SOCKET_NO=%u", p_dev->socket->sock)) in pcmcia_bus_uevent()
947 if (add_uevent_var(env, "DEVICE_NO=%02X", p_dev->device_no)) in pcmcia_bus_uevent()
950 if (add_uevent_var(env, "MODALIAS=pcmcia:m%04Xc%04Xf%02Xfn%02Xpfn%02X" in pcmcia_bus_uevent()
/linux-4.1.27/drivers/hsi/
Dhsi.c46 static int hsi_bus_uevent(struct device *dev, struct kobj_uevent_env *env) in hsi_bus_uevent() argument
48 add_uevent_var(env, "MODALIAS=hsi:%s", dev_name(dev)); in hsi_bus_uevent()
/linux-4.1.27/drivers/staging/unisys/virtpci/
Dvirtpci.c105 static int virtpci_uevent(struct device *dev, struct kobj_uevent_env *env);
648 static int virtpci_uevent(struct device *dev, struct kobj_uevent_env *env) in virtpci_uevent() argument
653 if (add_uevent_var(env, "VIRTPCI_VERSION=%s", VIRTPCI_VERSION)) in virtpci_uevent()

12