Home
last modified time | relevance | path

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

12

/linux-4.4.14/tools/perf/util/
Denv.c7 void perf_env__exit(struct perf_env *env) in perf_env__exit() argument
9 zfree(&env->hostname); in perf_env__exit()
10 zfree(&env->os_release); in perf_env__exit()
11 zfree(&env->version); in perf_env__exit()
12 zfree(&env->arch); in perf_env__exit()
13 zfree(&env->cpu_desc); in perf_env__exit()
14 zfree(&env->cpuid); in perf_env__exit()
15 zfree(&env->cmdline); in perf_env__exit()
16 zfree(&env->cmdline_argv); in perf_env__exit()
17 zfree(&env->sibling_cores); in perf_env__exit()
[all …]
Dheader.c874 fprintf(fp, "# hostname : %s\n", ph->env.hostname); in print_hostname()
880 fprintf(fp, "# os release : %s\n", ph->env.os_release); in print_osrelease()
885 fprintf(fp, "# arch : %s\n", ph->env.arch); in print_arch()
891 fprintf(fp, "# cpudesc : %s\n", ph->env.cpu_desc); in print_cpudesc()
897 fprintf(fp, "# nrcpus online : %u\n", ph->env.nr_cpus_online); in print_nrcpus()
898 fprintf(fp, "# nrcpus avail : %u\n", ph->env.nr_cpus_avail); in print_nrcpus()
904 fprintf(fp, "# perf version : %s\n", ph->env.version); in print_version()
912 nr = ph->env.nr_cmdline; in print_cmdline()
917 fprintf(fp, "%s ", ph->env.cmdline_argv[i]); in print_cmdline()
926 int cpu_nr = ph->env.nr_cpus_online; in print_cpu_topology()
[all …]
Dpager.c88 const char *env; in pager_in_use() local
93 env = getenv("PERF_PAGER_IN_USE"); in pager_in_use()
94 return env ? perf_config_bool("PERF_PAGER_IN_USE", env) : 0; in pager_in_use()
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()
Dllvm-utils.c55 char *env, *path, *tmp = NULL; in search_program() local
70 env = getenv("PATH"); in search_program()
71 if (!env) in search_program()
73 env = strdup(env); in search_program()
74 if (!env) in search_program()
78 path = strtok_r(env, ":", &tmp); in search_program()
89 free(env); in search_program()
Denv.h38 void perf_env__exit(struct perf_env *env);
40 int perf_env__set_cmdline(struct perf_env *env, int argc, const char *argv[]);
42 int perf_env__read_cpu_topology_map(struct perf_env *env);
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()
Drun-command.h40 const char *const *env; member
Ddata-convert-bt.c870 ncpus = ph->env.nr_cpus_avail ?: MAX_CPUS; in setup_streams()
905 ADD("host", header->env.hostname); in ctf_writer__setup_env()
907 ADD("release", header->env.os_release); in ctf_writer__setup_env()
908 ADD("version", header->env.version); in ctf_writer__setup_env()
909 ADD("machine", header->env.arch); in ctf_writer__setup_env()
Dheader.h76 struct perf_env env; member
Dhist.h322 struct perf_env *env);
330 struct perf_env *env __maybe_unused) in perf_evlist__tui_browse_hists()
Devent.c1027 struct perf_env *env = machine->env; in perf_event__preprocess_sample() local
1029 if (env && env->cpu) in perf_event__preprocess_sample()
1030 al->socket = env->cpu[al->cpu].socket_id; in perf_event__preprocess_sample()
/linux-4.4.14/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
138 env, h->coh_nesting, cl_lock_nr_mutexed(env), in cl_lock_trace0()
142 #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))
148 int cl_page_gang_lookup(const struct lu_env *env, struct cl_object *obj, in cl_page_gang_lookup() argument
166 pvec = cl_env_info(env)->clt_pvec; in cl_page_gang_lookup()
191 PASSERT(env, page, slice != NULL); in cl_page_gang_lookup()
221 res = (*cb)(env, io, page, cbdata); in cl_page_gang_lookup()
224 cl_page_put(env, page); in cl_page_gang_lookup()
[all …]
Dcl_object.c108 struct cl_object *cl_object_find(const struct lu_env *env, in cl_object_find() argument
113 return lu2cl(lu_object_find_slice(env, cl2lu_dev(cd), fid, &c->coc_lu)); in cl_object_find()
125 void cl_object_put(const struct lu_env *env, struct cl_object *o) in cl_object_put() argument
127 lu_object_put(env, &o->co_lu); in cl_object_put()
209 int cl_object_attr_get(const struct lu_env *env, struct cl_object *obj, in cl_object_attr_get() argument
221 result = obj->co_ops->coo_attr_get(env, obj, attr); in cl_object_attr_get()
240 int cl_object_attr_set(const struct lu_env *env, struct cl_object *obj, in cl_object_attr_set() argument
253 result = obj->co_ops->coo_attr_set(env, obj, attr, v); in cl_object_attr_set()
273 int cl_object_glimpse(const struct lu_env *env, struct cl_object *obj, in cl_object_glimpse() argument
284 result = obj->co_ops->coo_glimpse(env, obj, lvb); in cl_object_glimpse()
[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 …]
Dllog_cat.c64 static int llog_cat_id2handle(const struct lu_env *env, in llog_cat_id2handle() argument
97 rc = llog_open(env, cathandle->lgh_ctxt, &loghandle, logid, NULL, in llog_cat_id2handle()
106 rc = llog_init_handle(env, loghandle, LLOG_F_IS_PLAIN, NULL); in llog_cat_id2handle()
108 llog_close(env, loghandle); in llog_cat_id2handle()
127 int llog_cat_close(const struct lu_env *env, struct llog_handle *cathandle) in llog_cat_close() argument
136 llog_close(env, loghandle); in llog_cat_close()
141 rc = llog_close(env, cathandle); in llog_cat_close()
146 static int llog_cat_process_cb(const struct lu_env *env, in llog_cat_process_cb() argument
163 rc = llog_cat_id2handle(env, cat_llh, &llh, &lir->lid_id); in llog_cat_process_cb()
179 rc = llog_process_or_fork(env, llh, d->lpd_cb, d->lpd_data, in llog_cat_process_cb()
[all …]
Dlu_object.c61 static void lu_object_free(const struct lu_env *env, struct lu_object *o);
69 void lu_object_put(const struct lu_env *env, struct lu_object *o) in lu_object_put() argument
96 o->lo_ops->loo_object_release(env, o); in lu_object_put()
98 lu_object_free(env, orig); in lu_object_put()
123 o->lo_ops->loo_object_release(env, o); in lu_object_put()
155 lu_object_free(env, orig); in lu_object_put()
163 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
212 top = dev->ld_ops->ldo_object_alloc(env, NULL, dev); in lu_object_alloc()
236 result = scan->lo_ops->loo_object_init(env, scan, conf); in lu_object_alloc()
[all …]
Dllog.c107 static int llog_read_header(const struct lu_env *env, in llog_read_header() argument
121 rc = lop->lop_read_header(env, handle); in llog_read_header()
141 int llog_init_handle(const struct lu_env *env, struct llog_handle *handle, in llog_init_handle() argument
155 rc = llog_read_header(env, handle, uuid); in llog_init_handle()
342 struct lu_env env; in llog_process_thread_daemonize() local
348 rc = lu_env_init(&env, LCT_LOCAL | LCT_MG_THREAD); in llog_process_thread_daemonize()
351 lpi->lpi_env = &env; in llog_process_thread_daemonize()
355 lu_env_fini(&env); in llog_process_thread_daemonize()
361 int llog_process_or_fork(const struct lu_env *env, in llog_process_or_fork() argument
393 lpi->lpi_env = env; in llog_process_or_fork()
[all …]
Dllog_obd.c71 int __llog_ctxt_put(const struct lu_env *env, struct llog_ctxt *ctxt) in __llog_ctxt_put() argument
99 rc = CTXTP(ctxt, cleanup)(env, ctxt); in __llog_ctxt_put()
107 int llog_cleanup(const struct lu_env *env, struct llog_ctxt *ctxt) in llog_cleanup() argument
132 rc = __llog_ctxt_put(env, ctxt); in llog_cleanup()
144 int llog_setup(const struct lu_env *env, struct obd_device *obd, in llog_setup() argument
196 rc = op->lop_setup(env, obd, olg, index, disk_obd); in llog_setup()
Dllog_internal.h69 int class_config_dump_handler(const struct lu_env *env,
72 int llog_process_or_fork(const struct lu_env *env,
75 int llog_cat_cleanup(const struct lu_env *env, struct llog_handle *cathandle,
Dcl_internal.h119 struct cl_thread_info *cl_env_info(const struct lu_env *env);
Dobd_config.c1064 int class_config_llog_handler(const struct lu_env *env, in class_config_llog_handler() argument
1252 int class_config_parse_llog(const struct lu_env *env, struct llog_ctxt *ctxt, in class_config_parse_llog() argument
1261 rc = llog_open(env, ctxt, &llh, NULL, name, LLOG_OPEN_EXISTS); in class_config_parse_llog()
1265 rc = llog_init_handle(env, llh, LLOG_F_IS_PLAIN, NULL); in class_config_parse_llog()
1280 rc = llog_process(env, llh, callback, cfg, &cd); in class_config_parse_llog()
1288 llog_close(env, llh); in class_config_parse_llog()
1346 int class_config_dump_handler(const struct lu_env *env, in class_config_dump_handler() argument
/linux-4.4.14/drivers/staging/lustre/lustre/include/
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,
114 int cl_is_normalio(const struct lu_env *env, const struct cl_io *io);
125 static inline struct ccc_thread_info *ccc_env_info(const struct lu_env *env) in ccc_env_info() argument
129 info = lu_context_key_get(&env->le_ctx, &ccc_key); in ccc_env_info()
134 static inline struct cl_attr *ccc_env_thread_attr(const struct lu_env *env) in ccc_env_thread_attr() argument
136 struct cl_attr *attr = &ccc_env_info(env)->cti_attr; in ccc_env_thread_attr()
142 static inline struct cl_io *ccc_env_thread_io(const struct lu_env *env) in ccc_env_thread_io() argument
144 struct cl_io *io = &ccc_env_info(env)->cti_io; in ccc_env_thread_io()
154 static inline struct ccc_session *ccc_env_session(const struct lu_env *env) in ccc_env_session() argument
158 ses = lu_context_key_get(env->le_ses, &ccc_session_key); in ccc_env_session()
[all …]
Dlustre_log.h86 int llog_init_handle(const struct lu_env *env, struct llog_handle *handle,
88 int llog_process(const struct lu_env *env, struct llog_handle *loghandle,
90 int llog_process_or_fork(const struct lu_env *env,
93 int llog_open(const struct lu_env *env, struct llog_ctxt *ctxt,
96 int llog_close(const struct lu_env *env, struct llog_handle *cathandle);
97 int llog_backup(const struct lu_env *env, struct obd_device *obd,
136 int llog_cat_close(const struct lu_env *env, struct llog_handle *cathandle);
137 int llog_cat_process(const struct lu_env *env, struct llog_handle *cat_llh,
141 int llog_setup(const struct lu_env *env, struct obd_device *obd,
144 int __llog_ctxt_put(const struct lu_env *env, struct llog_ctxt *ctxt);
[all …]
Dlu_object.h141 struct lu_object *(*ldo_object_alloc)(const struct lu_env *env,
147 int (*ldo_process_config)(const struct lu_env *env,
192 typedef int (*lu_printer_t)(const struct lu_env *env,
210 int (*loo_object_init)(const struct lu_env *env,
218 int (*loo_object_start)(const struct lu_env *env,
225 void (*loo_object_delete)(const struct lu_env *env,
231 void (*loo_object_free)(const struct lu_env *env,
237 void (*loo_object_release)(const struct lu_env *env,
242 int (*loo_object_print)(const struct lu_env *env, void *cookie,
350 struct lu_device *(*ldto_device_alloc)(const struct lu_env *env,
[all …]
Dobd_class.h112 int class_config_llog_handler(const struct lu_env *env,
137 int class_config_parse_llog(const struct lu_env *env, struct llog_ctxt *ctxt,
412 static inline int obd_get_info(const struct lu_env *env, in obd_get_info() argument
422 rc = OBP(exp->exp_obd, get_info)(env, exp, keylen, key, vallen, val, in obd_get_info()
427 static inline int obd_set_info_async(const struct lu_env *env, in obd_set_info_async() argument
437 rc = OBP(exp->exp_obd, set_info_async)(env, exp, keylen, key, vallen, in obd_set_info_async()
472 struct lu_env env; in obd_setup() local
478 rc = lu_env_init(&env, ldt->ldt_ctx_tags); in obd_setup()
480 env.le_ses = &session_ctx; in obd_setup()
481 d = ldt->ldt_ops->ldto_device_alloc(&env, ldt, cfg); in obd_setup()
[all …]
Dlustre_fld.h132 __u32 flags, const struct lu_env *env);
136 const struct lu_env *env);
139 const struct lu_env *env);
Dobd.h969 int (*o_get_info)(const struct lu_env *env, struct obd_export *,
991 int (*o_connect)(const struct lu_env *env,
995 int (*o_reconnect)(const struct lu_env *env,
1025 int (*o_create)(const struct lu_env *env, struct obd_export *exp,
1028 int (*o_destroy)(const struct lu_env *env, struct obd_export *exp,
1036 int (*o_getattr)(const struct lu_env *env, struct obd_export *exp,
1042 int (*o_preprw)(const struct lu_env *env, int cmd,
1047 int (*o_commitrw)(const struct lu_env *env, int cmd,
1065 int (*o_health_check)(const struct lu_env *env, struct obd_device *);
Dlustre_fid.h375 int seq_client_alloc_fid(const struct lu_env *env, struct lu_client_seq *seq,
378 int fid_is_local(const struct lu_env *env,
Dlustre_net.h483 typedef int (*ptlrpc_interpterer_t)(const struct lu_env *env,
1518 static inline int ptlrpc_req_interpret(const struct lu_env *env, in ptlrpc_req_interpret() argument
1522 req->rq_status = req->rq_interpret_reply(env, req, in ptlrpc_req_interpret()
2356 int ptlrpc_check_set(const struct lu_env *env, struct ptlrpc_request_set *set);
2821 int client_connect_import(const struct lu_env *env,
/linux-4.4.14/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.4.14/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.c167 int ccc_device_init(const struct lu_env *env, struct lu_device *d, in ccc_device_init() argument
179 env, next, next->ld_type->ldt_name, NULL); in ccc_device_init()
187 struct lu_device *ccc_device_fini(const struct lu_env *env, in ccc_device_fini() argument
193 struct lu_device *ccc_device_alloc(const struct lu_env *env, in ccc_device_alloc() argument
226 ccc_device_free(env, lud); in ccc_device_alloc()
232 struct lu_device *ccc_device_free(const struct lu_env *env, in ccc_device_free() argument
248 int ccc_req_init(const struct lu_env *env, struct cl_device *dev, in ccc_req_init() argument
321 struct lu_object *ccc_object_alloc(const struct lu_env *env, in ccc_object_alloc() argument
347 int ccc_object_init0(const struct lu_env *env, in ccc_object_init0() argument
357 int ccc_object_init(const struct lu_env *env, struct lu_object *obj, in ccc_object_init() argument
[all …]
Dlcommon_misc.c129 struct lu_env *env; in cl_get_grouplock() local
137 env = cl_env_get(&refcheck); in cl_get_grouplock()
138 if (IS_ERR(env)) in cl_get_grouplock()
139 return PTR_ERR(env); in cl_get_grouplock()
141 io = ccc_env_thread_io(env); in cl_get_grouplock()
145 rc = cl_io_init(env, io, CIT_MISC, io->ci_obj); in cl_get_grouplock()
150 cl_env_put(env, &refcheck); in cl_get_grouplock()
154 descr = &ccc_env_info(env)->cti_descr; in cl_get_grouplock()
164 lock = cl_lock_request(env, io, descr, GROUPLOCK_SCOPE, current); in cl_get_grouplock()
166 cl_io_fini(env, io); in cl_get_grouplock()
[all …]
/linux-4.4.14/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.c57 int (*llo_init)(const struct lu_env *env, struct lov_device *dev,
61 int (*llo_delete)(const struct lu_env *env, struct lov_object *lov,
63 void (*llo_fini)(const struct lu_env *env, struct lov_object *lov,
65 void (*llo_install)(const struct lu_env *env, struct lov_object *lov,
67 int (*llo_print)(const struct lu_env *env, void *cookie,
69 int (*llo_page_init)(const struct lu_env *env, struct cl_object *obj,
71 int (*llo_lock_init)(const struct lu_env *env,
74 int (*llo_io_init)(const struct lu_env *env,
76 int (*llo_getattr)(const struct lu_env *env, struct cl_object *obj,
80 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.c60 static void lov_io_sub_fini(const struct lu_env *env, struct lov_io *lio, in lov_io_sub_fini() argument
134 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()
275 static int lov_io_subio_init(const struct lu_env *env, struct lov_io *lio, in lov_io_subio_init() argument
355 static void lov_io_fini(const struct lu_env *env, const struct cl_io_slice *ios) in lov_io_fini() argument
357 struct lov_io *lio = cl2lov_io(env, ios); in lov_io_fini()
[all …]
Dlov_cl_internal.h582 int lov_object_init(const struct lu_env *env, struct lu_object *obj,
584 int lovsub_object_init(const struct lu_env *env, struct lu_object *obj,
586 int lov_lock_init(const struct lu_env *env, struct cl_object *obj,
588 int lov_io_init(const struct lu_env *env, struct cl_object *obj,
590 int lovsub_lock_init(const struct lu_env *env, struct cl_object *obj,
593 int lov_lock_init_raid0(const struct lu_env *env, struct cl_object *obj,
595 int lov_lock_init_empty(const struct lu_env *env, struct cl_object *obj,
597 int lov_io_init_raid0(const struct lu_env *env, struct cl_object *obj,
599 int lov_io_init_empty(const struct lu_env *env, struct cl_object *obj,
601 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()
139 struct lu_object *lovsub_object_alloc(const struct lu_env *env, in lovsub_object_alloc() argument
Dlov_dev.c121 static void lov_req_completion(const struct lu_env *env, in lov_req_completion() argument
196 static struct lu_device *lov_device_fini(const struct lu_env *env, in lov_device_fini() argument
211 cl_stack_fini(env, lovsub2cl_dev(lsd)); in lov_device_fini()
218 static int lov_device_init(const struct lu_env *env, struct lu_device *d, in lov_device_init() argument
238 cl = cl_type_setup(env, d->ld_site, &lovsub_device_type, in lov_device_init()
251 lov_device_fini(env, d); in lov_device_init()
258 static int lov_req_init(const struct lu_env *env, struct cl_device *dev, in lov_req_init() argument
295 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.c199 static int lov_connect(const struct lu_env *env, in lov_connect() argument
1021 static int lov_create(const struct lu_env *env, struct obd_export *exp, in lov_create() argument
1061 static int lov_destroy(const struct lu_env *env, struct obd_export *exp, in lov_destroy() argument
1094 err = obd_destroy(env, lov->lov_tgts[req->rq_idx]->ltd_exp, in lov_destroy()
1364 static int lov_statfs(const struct lu_env *env, struct obd_export *exp, in lov_statfs() argument
1951 static int lov_get_info(const struct lu_env *env, struct obd_export *exp, in lov_get_info() argument
2017 rc = obd_get_info(env, tgt->ltd_exp, keylen, key, in lov_get_info()
2059 static int lov_set_info_async(const struct lu_env *env, struct obd_export *exp, in lov_set_info_async() argument
2125 err = obd_set_info_async(env, tgt->ltd_exp, in lov_set_info_async()
2129 err = obd_set_info_async(env, tgt->ltd_exp, in lov_set_info_async()
[all …]
/linux-4.4.14/kernel/bpf/
Dverifier.c242 static void print_verifier_state(struct verifier_env *env) in print_verifier_state() argument
248 t = env->cur_state.regs[i].type; in print_verifier_state()
253 verbose("%d", env->cur_state.regs[i].imm); in print_verifier_state()
257 env->cur_state.regs[i].map_ptr->key_size, in print_verifier_state()
258 env->cur_state.regs[i].map_ptr->value_size); in print_verifier_state()
261 if (env->cur_state.stack_slot_type[i] == STACK_SPILL) in print_verifier_state()
263 reg_type_str[env->cur_state.spilled_regs[i / BPF_REG_SIZE].type]); in print_verifier_state()
413 static int pop_stack(struct verifier_env *env, int *prev_insn_idx) in pop_stack() argument
418 if (env->head == NULL) in pop_stack()
421 memcpy(&env->cur_state, &env->head->st, sizeof(env->cur_state)); in pop_stack()
[all …]
/linux-4.4.14/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
184 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()
87 static void osc_io_fini(const struct lu_env *env, const struct cl_io_slice *io) in osc_io_fini() argument
98 static int osc_io_submit(const struct lu_env *env, in osc_io_submit() argument
127 brw_flags = osc_io_srvlock(cl2osc_io(env, ios)) ? OBD_BRW_SRVLOCK : 0; in osc_io_submit()
152 result = cl_page_prep(env, io, page, crt); in osc_io_submit()
170 osc_page_submit(env, opg, crt, brw_flags); in osc_io_submit()
174 result = osc_queue_sync_pages(env, osc, &list, cmd, in osc_io_submit()
182 result = osc_queue_sync_pages(env, osc, &list, cmd, brw_flags); in osc_io_submit()
188 static void osc_page_touch_at(const struct lu_env *env, in osc_page_touch_at() argument
[all …]
Dosc_cl_internal.h414 int osc_lock_init(const struct lu_env *env,
417 int osc_io_init (const struct lu_env *env,
419 int osc_req_init (const struct lu_env *env, struct cl_device *dev,
421 struct lu_object *osc_object_alloc(const struct lu_env *env,
424 int osc_page_init(const struct lu_env *env, struct cl_object *obj,
429 int osc_lvb_print (const struct lu_env *env, void *cookie,
432 void osc_page_submit(const struct lu_env *env, struct osc_page *opg,
434 int osc_cancel_async_page(const struct lu_env *env, struct osc_page *ops);
439 int osc_queue_async_io(const struct lu_env *env, struct cl_io *io,
441 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()
526 static int osc_extent_merge(const struct lu_env *env, struct osc_extent *cur, in osc_extent_merge() argument
568 osc_extent_put(env, victim); in osc_extent_merge()
577 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()
151 static int osc_attr_get(const struct lu_env *env, struct cl_object *obj, in osc_attr_get() argument
161 int osc_attr_set(const struct lu_env *env, struct cl_object *obj, in osc_attr_set() argument
185 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.c105 static int brw_interpret(const struct lu_env *env,
213 static int osc_getattr_interpret(const struct lu_env *env, in osc_getattr_interpret() argument
271 static int osc_getattr(const struct lu_env *env, struct obd_export *exp, in osc_getattr() argument
314 static int osc_setattr(const struct lu_env *env, struct obd_export *exp, in osc_setattr() argument
355 static int osc_setattr_interpret(const struct lu_env *env, in osc_setattr_interpret() argument
564 static int osc_sync_interpret(const struct lu_env *env, in osc_sync_interpret() argument
663 static int osc_destroy_interpret(const struct lu_env *env, in osc_destroy_interpret() argument
692 int osc_create(const struct lu_env *env, struct obd_export *exp, in osc_create() argument
726 static int osc_destroy(const struct lu_env *env, struct obd_export *exp, in osc_destroy() argument
860 static int osc_set_info_async(const struct lu_env *env, struct obd_export *exp,
[all …]
Dosc_internal.h92 int osc_create(const struct lu_env *env, struct obd_export *exp,
134 int osc_build_rpc(const struct lu_env *env, struct client_obd *cli,
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dvvp_io.c49 static struct vvp_io *cl2vvp_io(const struct lu_env *env,
55 int cl_is_normalio(const struct lu_env *env, const struct cl_io *io) in cl_is_normalio() argument
57 struct vvp_io *vio = vvp_env_io(env); in cl_is_normalio()
70 static bool can_populate_pages(const struct lu_env *env, struct cl_io *io, in can_populate_pages() argument
74 struct ccc_io *cio = ccc_env_io(env); in can_populate_pages()
103 static int vvp_io_fault_iter_init(const struct lu_env *env, in vvp_io_fault_iter_init() argument
106 struct vvp_io *vio = cl2vvp_io(env, ios); in vvp_io_fault_iter_init()
110 file_inode(cl2ccc_io(env, ios)->cui_fd->fd_file)); in vvp_io_fault_iter_init()
115 static void vvp_io_fini(const struct lu_env *env, const struct cl_io_slice *ios) in vvp_io_fini() argument
119 struct ccc_io *cio = cl2ccc_io(env, ios); in vvp_io_fini()
[all …]
Dvvp_dev.c138 static struct lu_device *vvp_device_alloc(const struct lu_env *env, in vvp_device_alloc() argument
142 return ccc_device_alloc(env, t, cfg, &vvp_lu_ops, &vvp_cl_ops); in vvp_device_alloc()
198 struct lu_env *env; in cl_sb_init() local
203 env = cl_env_get(&refcheck); in cl_sb_init()
204 if (!IS_ERR(env)) { in cl_sb_init()
205 cl = cl_type_setup(env, NULL, &vvp_device_type, in cl_sb_init()
212 cl_env_put(env, &refcheck); in cl_sb_init()
214 rc = PTR_ERR(env); in cl_sb_init()
221 struct lu_env *env; in cl_sb_fini() local
227 env = cl_env_get(&refcheck); in cl_sb_fini()
[all …]
Dvvp_page.c63 static void vvp_page_fini(const struct lu_env *env, in vvp_page_fini() argument
77 static int vvp_page_own(const struct lu_env *env, in vvp_page_own() argument
102 static void vvp_page_assume(const struct lu_env *env, in vvp_page_assume() argument
113 static void vvp_page_unassume(const struct lu_env *env, in vvp_page_unassume() argument
123 static void vvp_page_disown(const struct lu_env *env, in vvp_page_disown() argument
134 static void vvp_page_discard(const struct lu_env *env, in vvp_page_discard() argument
157 static int vvp_page_unmap(const struct lu_env *env, in vvp_page_unmap() argument
176 static void vvp_page_delete(const struct lu_env *env, in vvp_page_delete() argument
196 static void vvp_page_export(const struct lu_env *env, in vvp_page_export() argument
210 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.h45 int vvp_io_init (const struct lu_env *env,
47 int vvp_lock_init (const struct lu_env *env,
50 int vvp_page_init (const struct lu_env *env,
53 struct lu_object *vvp_object_alloc(const struct lu_env *env,
Dvvp_object.c56 static int vvp_object_print(const struct lu_env *env, void *cookie, in vvp_object_print() argument
63 (*p)(env, cookie, "(%s %d %d) inode: %p ", in vvp_object_print()
69 (*p)(env, cookie, "%lu/%u %o %u %d %p "DFID, in vvp_object_print()
77 static int vvp_attr_get(const struct lu_env *env, struct cl_object *obj, in vvp_attr_get() argument
99 static int vvp_attr_set(const struct lu_env *env, struct cl_object *obj, in vvp_attr_set() argument
122 static int vvp_conf_set(const struct lu_env *env, struct cl_object *obj, in vvp_conf_set() argument
195 struct lu_object *vvp_object_alloc(const struct lu_env *env, in vvp_object_alloc() argument
199 return ccc_object_alloc(env, hdr, dev, &vvp_ops, &vvp_lu_obj_ops); in vvp_object_alloc()
Dvvp_lock.c60 static unsigned long vvp_lock_weigh(const struct lu_env *env, in vvp_lock_weigh() argument
80 int vvp_lock_init(const struct lu_env *env, struct cl_object *obj, in vvp_lock_init() argument
83 return ccc_lock_init(env, obj, lock, io, &vvp_lock_ops); in vvp_lock_init()
Dfile.c979 int ll_merge_lvb(const struct lu_env *env, struct inode *inode) in ll_merge_lvb() argument
983 struct cl_attr *attr = ccc_env_thread_attr(env); in ll_merge_lvb()
1001 rc = cl_object_attr_get(env, obj, attr); in ll_merge_lvb()
1095 ll_file_io_generic(const struct lu_env *env, struct vvp_io_args *args, in ll_file_io_generic() argument
1105 io = ccc_env_thread_io(env); in ll_file_io_generic()
1108 if (cl_io_rw_init(env, io, iot, *ppos, count) == 0) { in ll_file_io_generic()
1109 struct vvp_io *vio = vvp_env_io(env); in ll_file_io_generic()
1110 struct ccc_io *cio = ccc_env_io(env); in ll_file_io_generic()
1140 result = cl_io_loop(env, io); in ll_file_io_generic()
1156 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()
406 struct lu_env *env; in loop_thread() local
414 env = cl_env_get(&refcheck); in loop_thread()
415 if (IS_ERR(env)) { in loop_thread()
416 ret = PTR_ERR(env); in loop_thread()
420 lo->lo_env = env; in loop_thread()
466 cl_env_put(env, &refcheck); in loop_thread()
Dllite_internal.h698 int ll_readahead(const struct lu_env *env, struct cl_io *io,
745 int ll_merge_lvb(const struct lu_env *env, struct inode *inode);
912 static inline struct vvp_thread_info *vvp_env_info(const struct lu_env *env) in vvp_env_info() argument
917 info = lu_context_key_get(&env->le_ctx, &vvp_key); in vvp_env_info()
922 static inline struct vvp_io_args *vvp_env_args(const struct lu_env *env, in vvp_env_args() argument
925 struct vvp_io_args *ret = &vvp_env_info(env)->vti_args; in vvp_env_args()
936 static inline struct vvp_session *vvp_env_session(const struct lu_env *env) in vvp_env_session() argument
941 ses = lu_context_key_get(env->le_ses, &vvp_session_key); in vvp_env_session()
946 static inline struct vvp_io *vvp_env_io(const struct lu_env *env) in vvp_env_io() argument
948 return &vvp_env_session(env)->vs_ios; in vvp_env_io()
[all …]
/linux-4.4.14/arch/x86/kernel/fpu/
Dregset.c205 convert_from_fxsr(struct user_i387_ia32_struct *env, struct task_struct *tsk) in convert_from_fxsr() argument
208 struct _fpreg *to = (struct _fpreg *) &env->st_space[0]; in convert_from_fxsr()
212 env->cwd = fxsave->cwd | 0xffff0000u; in convert_from_fxsr()
213 env->swd = fxsave->swd | 0xffff0000u; in convert_from_fxsr()
214 env->twd = twd_fxsr_to_i387(fxsave); in convert_from_fxsr()
217 env->fip = fxsave->rip; in convert_from_fxsr()
218 env->foo = fxsave->rdp; in convert_from_fxsr()
223 env->fcs = task_pt_regs(tsk)->cs; in convert_from_fxsr()
225 savesegment(ds, env->fos); in convert_from_fxsr()
227 env->fos = tsk->thread.ds; in convert_from_fxsr()
[all …]
Dsignal.c58 struct user_i387_ia32_struct env; in save_fsave_header() local
61 convert_from_fxsr(&env, tsk); in save_fsave_header()
63 if (__copy_to_user(buf, &env, sizeof(env)) || in save_fsave_header()
298 struct user_i387_ia32_struct env; in __fpu__restore_sig() local
312 __copy_from_user(&env, buf, sizeof(env))) { in __fpu__restore_sig()
316 sanitize_restored_xstate(tsk, &env, xfeatures, fx_only); in __fpu__restore_sig()
/linux-4.4.14/drivers/staging/lustre/lustre/obdecho/
Decho_client.c96 static int echo_client_setup(const struct lu_env *env,
145 static inline struct echo_thread_info *echo_env_info(const struct lu_env *env) in echo_env_info() argument
149 info = lu_context_key_get(&env->le_ctx, &echo_thread_key); in echo_env_info()
171 static struct echo_thread_info *echo_env_info(const struct lu_env *env);
226 static struct page *echo_page_vmpage(const struct lu_env *env, in echo_page_vmpage() argument
232 static int echo_page_own(const struct lu_env *env, in echo_page_own() argument
245 static void echo_page_disown(const struct lu_env *env, in echo_page_disown() argument
255 static void echo_page_discard(const struct lu_env *env, in echo_page_discard() argument
259 cl_page_delete(env, slice->cpl_page); in echo_page_discard()
262 static int echo_page_is_vmlocked(const struct lu_env *env, in echo_page_is_vmlocked() argument
[all …]
/linux-4.4.14/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.4.14/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.4.14/kernel/sched/
Dfair.c1191 static void task_numa_assign(struct task_numa_env *env, in task_numa_assign() argument
1194 if (env->best_task) in task_numa_assign()
1195 put_task_struct(env->best_task); in task_numa_assign()
1199 env->best_task = p; in task_numa_assign()
1200 env->best_imp = imp; in task_numa_assign()
1201 env->best_cpu = env->dst_cpu; in task_numa_assign()
1205 struct task_numa_env *env) in load_too_imbalanced() argument
1218 src_capacity = env->src_stats.compute_capacity; in load_too_imbalanced()
1219 dst_capacity = env->dst_stats.compute_capacity; in load_too_imbalanced()
1227 src_load * dst_capacity * env->imbalance_pct; in load_too_imbalanced()
[all …]
/linux-4.4.14/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_env__lookup_binutils_path(struct perf_env *env, in perf_env__lookup_binutils_path() argument
140 arch = normalize_arch(env->arch); in perf_env__lookup_binutils_path()
208 int perf_env__lookup_objdump(struct perf_env *env) in perf_env__lookup_objdump() argument
214 if (env->arch == NULL) in perf_env__lookup_objdump()
[all …]
Dcommon.h8 int perf_env__lookup_objdump(struct perf_env *env);
/linux-4.4.14/arch/mips/loongson32/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.4.14/drivers/of/
Ddevice.c232 void of_device_uevent(struct device *dev, struct kobj_uevent_env *env) in of_device_uevent() argument
241 add_uevent_var(env, "OF_NAME=%s", dev->of_node->name); in of_device_uevent()
242 add_uevent_var(env, "OF_FULLNAME=%s", dev->of_node->full_name); in of_device_uevent()
244 add_uevent_var(env, "OF_TYPE=%s", dev->of_node->type); in of_device_uevent()
251 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
257 add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in of_device_uevent()
263 add_uevent_var(env, "OF_ALIAS_%d=%s", seen, in of_device_uevent()
271 int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env) in of_device_uevent_modalias() argument
279 if (add_uevent_var(env, "MODALIAS=")) in of_device_uevent_modalias()
282 sl = of_device_get_modalias(dev, &env->buf[env->buflen-1], in of_device_uevent_modalias()
[all …]
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/tools/perf/tests/
Dtopology.c68 for (i = 0; i < session->header.env.nr_cpus_online; i++) { in check_cpu_topology()
70 session->header.env.cpu[i].core_id, in check_cpu_topology()
71 session->header.env.cpu[i].socket_id); in check_cpu_topology()
76 (session->header.env.cpu[map->map[i]].core_id == (cpu_map__get_core(map, i, NULL) & 0xffff))); in check_cpu_topology()
79 (session->header.env.cpu[map->map[i]].socket_id == cpu_map__get_socket(map, i, NULL))); in check_cpu_topology()
/linux-4.4.14/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.4.14/drivers/acpi/
Ddevice_sysfs.c241 struct kobj_uevent_env *env) in __acpi_device_uevent_modalias() argument
251 if (add_uevent_var(env, "MODALIAS=")) in __acpi_device_uevent_modalias()
254 len = create_pnp_modalias(adev, &env->buf[env->buflen - 1], in __acpi_device_uevent_modalias()
255 sizeof(env->buf) - env->buflen); in __acpi_device_uevent_modalias()
259 env->buflen += len; in __acpi_device_uevent_modalias()
263 if (len > 0 && add_uevent_var(env, "MODALIAS=")) in __acpi_device_uevent_modalias()
266 len = create_of_modalias(adev, &env->buf[env->buflen - 1], in __acpi_device_uevent_modalias()
267 sizeof(env->buf) - env->buflen); in __acpi_device_uevent_modalias()
271 env->buflen += len; in __acpi_device_uevent_modalias()
284 int acpi_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env) in acpi_device_uevent_modalias() argument
[all …]
Dinternal.h107 struct kobj_uevent_env *env);
/linux-4.4.14/include/linux/
Dof_device.h41 extern void of_device_uevent(struct device *dev, struct kobj_uevent_env *env);
42 extern int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env);
68 struct kobj_uevent_env *env) { } in of_device_uevent() argument
82 struct kobj_uevent_env *env) in of_device_uevent_modalias() argument
Dkobject.h136 struct kobj_uevent_env *env);
220 int add_uevent_var(struct kobj_uevent_env *env, const char *format, ...);
/linux-4.4.14/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.4.14/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.4.14/tools/perf/ui/browsers/
Dheader.c94 int tui__header_window(struct perf_env *env) in tui__header_window() argument
103 session = container_of(env, struct perf_session, header.env); in tui__header_window()
Dhists.c29 struct perf_env *env; member
1228 struct perf_env *env) in hist_browser__new() argument
1240 browser->env = env; in hist_browser__new()
1455 if (!objdump_path && perf_env__lookup_objdump(browser->env)) in do_annotate()
1748 struct perf_env *env) in perf_evsel__hists_browse() argument
1751 struct hist_browser *browser = hist_browser__new(hists, hbt, env); in perf_evsel__hists_browse()
1921 if (env->arch) in perf_evsel__hists_browse()
1922 tui__header_window(env); in perf_evsel__hists_browse()
2104 struct perf_env *env; member
2199 menu->env); in perf_evsel_menu__run()
[all …]
/linux-4.4.14/arch/x86/include/asm/fpu/
Dsignal.h22 extern void convert_from_fxsr(struct user_i387_ia32_struct *env,
25 const struct user_i387_ia32_struct *env);
/linux-4.4.14/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()
747 char *env; in conf_write() local
772 env = getenv("KCONFIG_OVERWRITECONFIG"); in conf_write()
773 if (!env || !*env) { in conf_write()
1134 char *env = getenv("KCONFIG_PROBABILITY"); in conf_set_all_new_symbols() local
1136 while( env && *env ) { in conf_set_all_new_symbols()
1138 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.gperf47 env, T_OPT_ENV, TF_OPTION
Dsymbol.c1351 static void prop_add_env(const char *env) in prop_add_env() argument
1361 if (strcmp(sym2->name, env)) in prop_add_env()
1368 prop->expr = expr_alloc_symbol(sym_lookup(env, SYMBOL_CONST)); in prop_add_env()
1373 p = getenv(env); in prop_add_env()
1377 menu_warn(current_entry, "environment variable %s undefined", env); in prop_add_env()
Dzconf.lex.c2377 char *env, fullname[PATH_MAX+1]; in zconf_fopen() local
2382 env = getenv(SRCTREE); in zconf_fopen()
2383 if (env) { in zconf_fopen()
2384 sprintf(fullname, "%s/%s", env, name); in zconf_fopen()
Dzconf.hash.c_shipped114 char kconf_id_strings_str33[sizeof("env")];
151 "env",
/linux-4.4.14/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.4.14/drivers/staging/lustre/lustre/ptlrpc/
Dptlrpcd.c277 static int ptlrpcd_check(struct lu_env *env, struct ptlrpcd_ctl *pc) in ptlrpcd_check() argument
304 rc2 = lu_env_refill(env); in ptlrpcd_check()
321 rc |= ptlrpc_check_set(env, set); in ptlrpcd_check()
390 struct lu_env env = { .le_ses = NULL }; in ptlrpcd() local
417 rc = lu_context_init(&env.le_ctx, in ptlrpcd()
438 lu_context_enter(&env.le_ctx); in ptlrpcd()
440 ptlrpcd_check(&env, pc), &lwi); in ptlrpcd()
441 lu_context_exit(&env.le_ctx); in ptlrpcd()
463 lu_context_fini(&env.le_ctx); in ptlrpcd()
Dllog_client.c79 static int llog_client_open(const struct lu_env *env, in llog_client_open() argument
146 static int llog_client_next_block(const struct lu_env *env, in llog_client_next_block() argument
205 static int llog_client_prev_block(const struct lu_env *env, in llog_client_prev_block() argument
258 static int llog_client_read_header(const struct lu_env *env, in llog_client_read_header() argument
315 static int llog_client_close(const struct lu_env *env, in llog_client_close() argument
Dservice.c1987 struct lu_env *env; in ptlrpc_main() local
2017 env = kzalloc(sizeof(*env), GFP_NOFS); in ptlrpc_main()
2018 if (!env) { in ptlrpc_main()
2023 rc = lu_context_init(&env->le_ctx, in ptlrpc_main()
2028 thread->t_env = env; in ptlrpc_main()
2029 env->le_ctx.lc_thread = thread; in ptlrpc_main()
2030 env->le_ctx.lc_cookie = 0x6; in ptlrpc_main()
2095 lu_context_enter(&env->le_ctx); in ptlrpc_main()
2096 env->le_ses = NULL; in ptlrpc_main()
2098 lu_context_exit(&env->le_ctx); in ptlrpc_main()
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/fid/
Dfid_request.c147 const struct lu_env *env) in seq_client_alloc_super() argument
167 static int seq_client_alloc_meta(const struct lu_env *env, in seq_client_alloc_meta() argument
185 static int seq_client_alloc_seq(const struct lu_env *env, in seq_client_alloc_seq() argument
193 rc = seq_client_alloc_meta(env, seq); in seq_client_alloc_seq()
244 int seq_client_alloc_fid(const struct lu_env *env, in seq_client_alloc_fid() argument
274 rc = seq_client_alloc_seq(env, seq, &seqnr); in seq_client_alloc_fid()
Dfid_internal.h48 const struct lu_env *env);
/linux-4.4.14/sound/hda/
Dhda_bus_type.c67 static int hda_uevent(struct device *dev, struct kobj_uevent_env *env) in hda_uevent() argument
73 if (add_uevent_var(env, "MODALIAS=%s", modalias)) in hda_uevent()
/linux-4.4.14/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.4.14/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.c566 static int do_firmware_uevent(struct firmware_priv *fw_priv, struct kobj_uevent_env *env) in do_firmware_uevent() argument
568 if (add_uevent_var(env, "FIRMWARE=%s", fw_priv->buf->fw_id)) in do_firmware_uevent()
570 if (add_uevent_var(env, "TIMEOUT=%i", loading_timeout)) in do_firmware_uevent()
572 if (add_uevent_var(env, "ASYNC=%d", fw_priv->nowait)) in do_firmware_uevent()
578 static int firmware_uevent(struct device *dev, struct kobj_uevent_env *env) in firmware_uevent() argument
585 err = do_firmware_uevent(fw_priv, env); in firmware_uevent()
Dcpu.c335 static int cpu_uevent(struct device *dev, struct kobj_uevent_env *env) in cpu_uevent() argument
340 add_uevent_var(env, "MODALIAS=%s", buf); in cpu_uevent()
Dplatform.c852 static int platform_uevent(struct device *dev, struct kobj_uevent_env *env) in platform_uevent() argument
858 rc = of_device_uevent_modalias(dev, env); in platform_uevent()
862 rc = acpi_device_uevent_modalias(dev, env); in platform_uevent()
866 add_uevent_var(env, "MODALIAS=%s%s", PLATFORM_MODULE_PREFIX, in platform_uevent()
/linux-4.4.14/drivers/input/
Dinput.c1528 static int input_add_uevent_bm_var(struct kobj_uevent_env *env, in input_add_uevent_bm_var() argument
1533 if (add_uevent_var(env, "%s", name)) in input_add_uevent_bm_var()
1536 len = input_print_bitmap(&env->buf[env->buflen - 1], in input_add_uevent_bm_var()
1537 sizeof(env->buf) - env->buflen, in input_add_uevent_bm_var()
1539 if (len >= (sizeof(env->buf) - env->buflen)) in input_add_uevent_bm_var()
1542 env->buflen += len; in input_add_uevent_bm_var()
1546 static int input_add_uevent_modalias_var(struct kobj_uevent_env *env, in input_add_uevent_modalias_var() argument
1551 if (add_uevent_var(env, "MODALIAS=")) in input_add_uevent_modalias_var()
1554 len = input_print_modalias(&env->buf[env->buflen - 1], in input_add_uevent_modalias_var()
1555 sizeof(env->buf) - env->buflen, in input_add_uevent_modalias_var()
[all …]
/linux-4.4.14/drivers/mmc/core/
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()
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()
/linux-4.4.14/drivers/staging/lustre/lustre/mgc/
Dmgc_request.c632 static int mgc_llog_init(const struct lu_env *env, struct obd_device *obd) in mgc_llog_init() argument
639 rc = llog_setup(env, obd, &obd->obd_olg, LLOG_CONFIG_REPL_CTXT, obd, in mgc_llog_init()
653 static int mgc_llog_fini(const struct lu_env *env, struct obd_device *obd) in mgc_llog_fini() argument
659 llog_cleanup(env, ctxt); in mgc_llog_fini()
952 static int mgc_set_info_async(const struct lu_env *env, struct obd_export *exp, in mgc_set_info_async() argument
1030 static int mgc_get_info(const struct lu_env *env, struct obd_export *exp, in mgc_get_info() argument
1454 struct lu_env *env; in mgc_process_cfg_log() local
1469 env = kzalloc(sizeof(*env), GFP_KERNEL); in mgc_process_cfg_log()
1470 if (!env) in mgc_process_cfg_log()
1473 rc = lu_env_init(env, LCT_MG_THREAD); in mgc_process_cfg_log()
[all …]
/linux-4.4.14/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.4.14/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.4.14/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";
Dlogicpd-torpedo-som.dtsi63 …/* u-boot uses mtdparts=omap2-nand.0:512k(x-loader),1920k(u-boot),128k(u-boot-env),4m(kernel),-(fs…
76 label = "u-boot-env";
Dimx28-apf28.dts36 label = "env";
Dkirkwood-dreamplug.dts57 label = "u-boot env";
Dsama5d3xcm.dtsi93 label = "bootloader env";
Dimx27-apf27.dts96 label = "env";
Dkirkwood-openblocks_a6.dts138 label = "env";
Ddra72-evm.dts553 label = "NAND.u-boot-env";
557 label = "NAND.u-boot-env.backup1";
755 label = "QSPI.u-boot-env";
759 label = "QSPI.u-boot-env.backup1";
Dkirkwood-iconnect.dts163 label = "env";
Dkirkwood-mplcec4.dts173 label = "env";
Ddra7-evm.dts697 label = "QSPI.u-boot-env";
701 label = "QSPI.u-boot-env.backup1";
801 label = "NAND.u-boot-env";
805 label = "NAND.u-boot-env.backup1";
Dkirkwood-topkick.dts182 label = "u-boot env";
Dat91sam9rlek.dts83 label = "bootloader env";
Dkirkwood-openblocks_a7.dts156 label = "env";
Dat91sam9261ek.dts88 label = "bootloader env";
/linux-4.4.14/drivers/platform/x86/
Dwmi.c650 static int wmi_dev_uevent(struct device *dev, struct kobj_uevent_env *env) in wmi_dev_uevent() argument
656 if (add_uevent_var(env, "MODALIAS=")) in wmi_dev_uevent()
665 strcpy(&env->buf[env->buflen - 1], "wmi:"); in wmi_dev_uevent()
666 memcpy(&env->buf[env->buflen - 1 + 4], guid_string, 36); in wmi_dev_uevent()
667 env->buflen += 40; in wmi_dev_uevent()
/linux-4.4.14/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.4.14/arch/powerpc/include/asm/
Dtypes.h25 unsigned long env; member
/linux-4.4.14/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.c841 char *env[] = { in bch_cached_dev_run() local
850 env[2] = kasprintf(GFP_KERNEL, "CACHED_LABEL=%s", buf); in bch_cached_dev_run()
853 kfree(env[1]); in bch_cached_dev_run()
854 kfree(env[2]); in bch_cached_dev_run()
872 kobject_uevent_env(&disk_to_dev(d->disk)->kobj, KOBJ_CHANGE, env); in bch_cached_dev_run()
873 kfree(env[1]); in bch_cached_dev_run()
874 kfree(env[2]); in bch_cached_dev_run()
/linux-4.4.14/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.4.14/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.4.14/arch/mips/fw/arc/
DMakefile5 lib-y += cmdline.o env.o file.o identify.o init.o \
/linux-4.4.14/
DKconfig9 option env="SRCARCH"
/linux-4.4.14/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.4.14/arch/cris/include/asm/
Deshlibld.h77 char **env, int envc,
/linux-4.4.14/arch/mips/loongson64/common/
DMakefile5 obj-y += setup.o init.o cmdline.o env.o time.o reset.o irq.o \
/linux-4.4.14/drivers/usb/common/
Dulpi.c50 static int ulpi_uevent(struct device *dev, struct kobj_uevent_env *env) in ulpi_uevent() argument
54 if (add_uevent_var(env, "MODALIAS=ulpi:v%04xp%04x", in ulpi_uevent()
/linux-4.4.14/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.4.14/drivers/misc/mic/bus/
Dmic_bus.c87 static int mbus_uevent(struct device *dv, struct kobj_uevent_env *env) in mbus_uevent() argument
91 return add_uevent_var(env, "MODALIAS=mbus:d%08Xv%08X", in mbus_uevent()
Dscif_bus.c86 static int scif_uevent(struct device *dv, struct kobj_uevent_env *env) in scif_uevent() argument
90 return add_uevent_var(env, "MODALIAS=scif:d%08Xv%08X", in scif_uevent()
/linux-4.4.14/arch/mips/boot/dts/ralink/
Drt2880_eval.dts33 label = "uboot-env";
Drt3052_eval.dts33 label = "uboot-env";
/linux-4.4.14/drivers/misc/mei/
Dbus.c701 static int mei_cl_device_uevent(struct device *dev, struct kobj_uevent_env *env) in mei_cl_device_uevent() argument
707 if (add_uevent_var(env, "MEI_CL_VERSION=%d", version)) in mei_cl_device_uevent()
710 if (add_uevent_var(env, "MEI_CL_UUID=%pUl", uuid)) in mei_cl_device_uevent()
713 if (add_uevent_var(env, "MEI_CL_NAME=%s", cldev->name)) in mei_cl_device_uevent()
716 if (add_uevent_var(env, "MODALIAS=mei:%s:%pUl:%02X:", in mei_cl_device_uevent()
/linux-4.4.14/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.4.14/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.4.14/arch/um/
DKconfig.common61 option env="SUBARCH"
/linux-4.4.14/drivers/s390/net/
Dqeth_l2_main.c1572 char *env[8]; in qeth_bridge_emit_host_event() local
1580 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1584 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1589 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1593 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1595 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1598 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1600 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1604 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
1608 env[i] = str[i]; i++; in qeth_bridge_emit_host_event()
[all …]
/linux-4.4.14/fs/gfs2/
Dsys.c710 struct kobj_uevent_env *env) in gfs2_uevent() argument
716 add_uevent_var(env, "LOCKTABLE=%s", sdp->sd_table_name); in gfs2_uevent()
717 add_uevent_var(env, "LOCKPROTO=%s", sdp->sd_proto_name); in gfs2_uevent()
719 add_uevent_var(env, "JOURNALID=%d", sdp->sd_lockstruct.ls_jid); in gfs2_uevent()
721 add_uevent_var(env, "UUID=%pUB", uuid); in gfs2_uevent()
/linux-4.4.14/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.4.14/arch/m68k/68360/
Dhead-rom.S252 pea env
268 env: label
Dhead-ram.S242 pea env
258 env: label
/linux-4.4.14/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.4.14/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.4.14/drivers/pci/
Dpci-driver.c1397 static int pci_uevent(struct device *dev, struct kobj_uevent_env *env) in pci_uevent() argument
1406 if (add_uevent_var(env, "PCI_CLASS=%04X", pdev->class)) in pci_uevent()
1409 if (add_uevent_var(env, "PCI_ID=%04X:%04X", pdev->vendor, pdev->device)) in pci_uevent()
1412 if (add_uevent_var(env, "PCI_SUBSYS_ID=%04X:%04X", pdev->subsystem_vendor, in pci_uevent()
1416 if (add_uevent_var(env, "PCI_SLOT_NAME=%s", pci_name(pdev))) in pci_uevent()
1419 if (add_uevent_var(env, "MODALIAS=pci:v%08Xd%08Xsv%08Xsd%08Xbc%02Xsc%02Xi%02X", in pci_uevent()
/linux-4.4.14/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.4.14/tools/perf/
Dbuiltin-annotate.c214 ret = perf_env__lookup_objdump(&session->header.env); in __cmd_annotate()
365 ret = symbol__init(&annotate.session->header.env); in cmd_annotate()
Dbuiltin-timechart.c1516 tchart->numcpus = ph->env.nr_cpus_avail; in process_header()
1523 if (svg_build_topology_map(ph->env.sibling_cores, in process_header()
1524 ph->env.nr_sibling_cores, in process_header()
1525 ph->env.sibling_threads, in process_header()
1526 ph->env.nr_sibling_threads)) in process_header()
1613 symbol__init(&session->header.env); in __cmd_timechart()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/tools/perf/ui/
Dbrowser.h65 int tui__header_window(struct perf_env *env);
/linux-4.4.14/drivers/usb/gadget/udc/
Dudc-core.c703 static int usb_udc_uevent(struct device *dev, struct kobj_uevent_env *env) in usb_udc_uevent() argument
708 ret = add_uevent_var(env, "USB_UDC_NAME=%s", udc->gadget->name); in usb_udc_uevent()
715 ret = add_uevent_var(env, "USB_UDC_DRIVER=%s", in usb_udc_uevent()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/bcma/
Dmain.c31 static int bcma_device_uevent(struct device *dev, struct kobj_uevent_env *env);
661 static int bcma_device_uevent(struct device *dev, struct kobj_uevent_env *env) in bcma_device_uevent() argument
665 return add_uevent_var(env, in bcma_device_uevent()
/linux-4.4.14/arch/powerpc/boot/dts/
Do2d.dtsi101 label = "env";
Da3m071.dts114 label = "env";
Dlite5200b.dts151 label = "u-boot-env";
Dpcm032.dts135 label = "env";
/linux-4.4.14/net/wireless/
Dsysfs.c83 static int wiphy_uevent(struct device *dev, struct kobj_uevent_env *env) in wiphy_uevent() argument
/linux-4.4.14/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.4.14/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.4.14/net/rfkill/
Dcore.c760 static int rfkill_dev_uevent(struct device *dev, struct kobj_uevent_env *env) in rfkill_dev_uevent() argument
767 error = add_uevent_var(env, "RFKILL_NAME=%s", rfkill->name); in rfkill_dev_uevent()
770 error = add_uevent_var(env, "RFKILL_TYPE=%s", in rfkill_dev_uevent()
777 error = add_uevent_var(env, "RFKILL_STATE=%d", in rfkill_dev_uevent()
/linux-4.4.14/arch/powerpc/boot/dts/fsl/
Dppa8548.dts77 label = "env";
/linux-4.4.14/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.4.14/drivers/w1/
Dw1.c188 static int w1_uevent(struct device *dev, struct kobj_uevent_env *env);
595 static int w1_uevent(struct device *dev, struct kobj_uevent_env *env) in w1_uevent() argument
621 err = add_uevent_var(env, "W1_FID=%02X", sl->reg_num.family); in w1_uevent()
625 err = add_uevent_var(env, "W1_SLAVE_ID=%024LX", in w1_uevent()
/linux-4.4.14/drivers/net/xen-netback/
Dxenbus.c400 struct kobj_uevent_env *env) in netback_uevent() argument
407 if (add_uevent_var(env, "script=%s", be->hotplug_script)) in netback_uevent()
413 return add_uevent_var(env, "vif=%s", be->vif->dev->name); in netback_uevent()
/linux-4.4.14/drivers/pcmcia/
Dds.c938 static int pcmcia_bus_uevent(struct device *dev, struct kobj_uevent_env *env) in pcmcia_bus_uevent() argument
956 if (add_uevent_var(env, "SOCKET_NO=%u", p_dev->socket->sock)) in pcmcia_bus_uevent()
959 if (add_uevent_var(env, "DEVICE_NO=%02X", p_dev->device_no)) in pcmcia_bus_uevent()
962 if (add_uevent_var(env, "MODALIAS=pcmcia:m%04Xc%04Xf%02Xfn%02Xpfn%02X" in pcmcia_bus_uevent()

12