/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
D | cl_lock.c | 76 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 …]
|
D | cl_page.c | 51 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 …]
|
D | cl_io.c | 74 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 …]
|
D | dt_object.c | 80 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 …]
|
D | cl_object.c | 118 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 …]
|
D | llog_cat.c | 61 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 …]
|
D | llog.c | 109 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 …]
|
D | lu_object.c | 61 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 …]
|
D | llog_internal.h | 65 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,
|
D | llog_obd.c | 72 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()
|
D | cl_internal.h | 119 struct cl_thread_info *cl_env_info(const struct lu_env *env);
|
D | obd_config.c | 1386 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/ |
D | dt_object.h | 99 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 …]
|
D | cl_object.h | 143 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 …]
|
D | lclient.h | 49 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 …]
|
D | lustre_log.h | 118 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 …]
|
D | lu_object.h | 142 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 …]
|
D | obd_class.h | 136 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 …]
|
D | lustre_fld.h | 141 __u32 flags, const struct lu_env *env); 145 const struct lu_env *env); 148 const struct lu_env *env);
|
D | lustre_fid.h | 441 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,
|
D | obd.h | 1106 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 *);
|
D | lustre_net.h | 485 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/ |
D | kobject_uevent.c | 129 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/ |
D | glimpse.c | 86 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 …]
|
D | lcommon_cl.c | 168 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 …]
|
D | lcommon_misc.c | 130 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/ |
D | lovsub_lock.c | 55 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 …]
|
D | lov_lock.c | 49 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 …]
|
D | lov_object.c | 58 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 …]
|
D | lov_page.c | 66 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 …]
|
D | lov_io.c | 59 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 …]
|
D | lov_cl_internal.h | 583 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 …]
|
D | lovsub_object.c | 55 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
|
D | lov_dev.c | 122 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 …]
|
D | lovsub_dev.c | 53 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
|
D | lovsub_page.c | 53 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
|
D | lov_obd.c | 215 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/ |
D | osc_lock.c | 63 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 …]
|
D | osc_page.c | 47 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 …]
|
D | osc_io.c | 62 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 …]
|
D | osc_cl_internal.h | 415 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 …]
|
D | osc_cache.c | 50 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 …]
|
D | osc_object.c | 72 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 …]
|
D | osc_dev.c | 173 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()
|
D | osc_request.c | 98 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 …]
|
D | osc_internal.h | 88 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/ |
D | verifier.c | 241 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/ |
D | vvp_io.c | 50 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 …]
|
D | vvp_dev.c | 140 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 …]
|
D | vvp_page.c | 64 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 …]
|
D | rw26.c | 76 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 …]
|
D | rw.c | 68 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 …]
|
D | llite_mmap.c | 106 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 …]
|
D | vvp_internal.h | 46 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,
|
D | vvp_object.c | 57 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()
|
D | vvp_lock.c | 61 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()
|
D | file.c | 988 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 …]
|
D | lloop.c | 187 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()
|
D | llite_internal.h | 726 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/ |
D | i387.c | 487 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 …]
|
D | xsave.c | 143 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/ |
D | echo_client.c | 96 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/ |
D | prom.c | 64 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/ |
D | environ.c | 23 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/ |
D | common.c | 66 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 …]
|
D | common.h | 8 int perf_session_env__lookup_objdump(struct perf_session_env *env);
|
/linux-4.1.27/kernel/sched/ |
D | fair.c | 1185 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/ |
D | prom.c | 24 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/ |
D | device.c | 219 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/ |
D | prom.c | 48 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/ |
D | core.c | 59 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/ |
D | pmcmsp-flash.c | 56 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/ |
D | dmi-id.c | 148 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/ |
D | signal.c | 85 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/ |
D | ultra45_env.c | 60 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/ |
D | zorro-driver.c | 143 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/ |
D | exec_cmd.c | 57 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()
|
D | pager.c | 93 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()
|
D | run-command.c | 105 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()
|
D | header.c | 875 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 …]
|
D | run-command.h | 40 const char *const *env; member
|
D | session.c | 170 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 …]
|
D | data-convert-bt.c | 619 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()
|
D | hist.h | 315 struct perf_session_env *env); 323 struct perf_session_env *env __maybe_unused) in perf_evlist__tui_browse_hists()
|
D | header.h | 99 struct perf_session_env env; member
|
D | symbol.c | 1809 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/ |
D | of_device.h | 39 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
|
D | kobject.h | 135 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/ |
D | xenbus_probe_backend.c | 97 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()
|
D | xenbus_probe_frontend.c | 79 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/ |
D | prom.c | 183 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/ |
D | fid_request.c | 145 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()
|
D | fid_internal.h | 48 const struct lu_env *env);
|
/linux-4.1.27/tools/perf/ui/browsers/ |
D | header.c | 94 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()
|
D | hists.c | 1421 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/ |
D | llog_client.c | 79 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
|
D | ptlrpcd.c | 263 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()
|
D | service.c | 2264 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/ |
D | confdata.c | 114 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 …]
|
D | streamline_config.pl | 168 my $env = $1; 170 $source =~ s/\$$env/$ENV{$env}/;
|
D | zconf.gperf | 46 env, T_OPT_ENV, TF_OPTION
|
D | symbol.c | 1346 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()
|
D | zconf.lex.c | 2324 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()
|
D | zconf.hash.c_shipped | 113 char kconf_id_strings_str33[sizeof("env")]; 149 "env",
|
/linux-4.1.27/arch/mips/pnx833x/stb22x/ |
D | board.c | 52 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/ |
D | err_marvel.c | 27 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()
|
D | err_ev7.c | 103 lf_subpackets->env[ev7_lf_env_index(subpacket->type)] = in ev7_collect_logout_frame_subpackets()
|
/linux-4.1.27/drivers/base/ |
D | core.c | 299 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 …]
|
D | firmware_class.c | 547 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()
|
D | cpu.c | 310 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()
|
D | platform.c | 774 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/ |
D | sdio_bus.c | 109 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()
|
D | bus.c | 68 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/ |
D | input.c | 1525 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/ |
D | mgc_request.c | 644 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/ |
D | ide.c | 115 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/ |
D | mips_cdmm.c | 68 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/ |
D | picoxcell-pc7302-pc3x2.dts | 64 boot-env@300000 { 69 redundant-boot-env@320000 {
|
D | picoxcell-pc7302-pc3x3.dts | 70 boot-env@300000 { 75 redundant-boot-env@320000 {
|
D | kirkwood-t5325.dts | 108 label = "u-boot env"; 113 label = "permanent u-boot env"; 118 label = "permanent u-boot env";
|
D | imx28-apf28.dts | 36 label = "env";
|
D | dra72-evm.dts | 354 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";
|
D | kirkwood-dreamplug.dts | 57 label = "u-boot env";
|
D | dra7-evm.dts | 526 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";
|
D | imx27-apf27.dts | 96 label = "env";
|
D | sama5d3xcm.dtsi | 98 label = "bootloader env";
|
D | kirkwood-openblocks_a6.dts | 138 label = "env";
|
D | kirkwood-iconnect.dts | 163 label = "env";
|
D | kirkwood-mplcec4.dts | 173 label = "env";
|
D | at91sam9rlek.dts | 91 label = "bootloader env";
|
D | kirkwood-topkick.dts | 182 label = "u-boot env";
|
D | kirkwood-openblocks_a7.dts | 156 label = "env";
|
D | at91sam9261ek.dts | 96 label = "bootloader env";
|
D | kirkwood-iomega_ix2_200.dts | 188 label = "env";
|
D | meson8-minix-neo-x8.dts | 112 label = "env";
|
D | kirkwood-b3.dts | 89 label = "u-boot env";
|
/linux-4.1.27/drivers/platform/x86/ |
D | wmi.c | 685 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/ |
D | ldc.c | 61 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/ |
D | types.h | 25 unsigned long env; member
|
/linux-4.1.27/drivers/md/bcache/ |
D | sysfs.c | 196 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()
|
D | super.c | 872 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/ |
D | rio-driver.c | 201 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/ |
D | power_supply_sysfs.c | 273 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()
|
D | power_supply.h | 20 extern int power_supply_uevent(struct device *dev, struct kobj_uevent_env *env);
|
/linux-4.1.27/drivers/acpi/ |
D | scan.c | 277 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/ |
D | Makefile | 5 lib-y += cmdline.o env.o file.o identify.o init.o \
|
/linux-4.1.27/ |
D | Kconfig | 9 option env="SRCARCH"
|
/linux-4.1.27/arch/alpha/include/asm/ |
D | err_ev7.h | 181 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/ |
D | eshlibld.h | 78 char **env, int envc,
|
/linux-4.1.27/arch/mips/loongson/common/ |
D | Makefile | 5 obj-y += setup.o init.o cmdline.o env.o time.o reset.o irq.o \
|
/linux-4.1.27/drivers/s390/net/ |
D | qeth_l2_main.c | 1408 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/ |
D | mic_bus.c | 90 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/ |
D | atm_sysfs.c | 116 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/ |
D | rt2880_eval.dts | 33 label = "uboot-env";
|
D | rt3052_eval.dts | 33 label = "uboot-env";
|
/linux-4.1.27/fs/gfs2/ |
D | sys.c | 680 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/ |
D | dvbdev.c | 577 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/ |
D | memstick.c | 63 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/ |
D | Kconfig.common | 61 option env="SUBARCH"
|
/linux-4.1.27/drivers/fmc/ |
D | fmc-core.c | 31 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/ |
D | xlp_gvp.dts | 66 label = "env";
|
D | xlp_rvp.dts | 66 label = "env";
|
D | xlp_svp.dts | 108 label = "env";
|
D | xlp_fvp.dts | 108 label = "env";
|
D | xlp_evp.dts | 108 label = "env";
|
/linux-4.1.27/drivers/s390/cio/ |
D | scm.c | 38 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()
|
D | device.c | 101 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/ |
D | head-rom.S | 252 pea env 268 env: label
|
D | head-ram.S | 242 pea env 258 env: label
|
/linux-4.1.27/drivers/mcb/ |
D | mcb-core.c | 47 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/ |
D | pci-driver.c | 1365 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/ |
D | fld_internal.h | 181 int fld_write_range(const struct lu_env *env, struct dt_object *dt,
|
/linux-4.1.27/tools/perf/ |
D | builtin-annotate.c | 206 ret = perf_session_env__lookup_objdump(&session->header.env); in __cmd_annotate() 352 ret = symbol__init(&annotate.session->header.env); in cmd_annotate()
|
D | builtin-timechart.c | 1515 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/ |
D | udc-core.c | 611 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/ |
D | browser.h | 62 int tui__header_window(struct perf_session_env *env);
|
/linux-4.1.27/arch/mips/sgi-ip22/ |
D | ip22-gio.c | 198 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/ |
D | tifm_core.c | 62 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/ |
D | bus.c | 54 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/ |
D | virtio.c | 95 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/ |
D | core.c | 151 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/ |
D | usb.c | 293 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/ |
D | main.c | 28 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/ |
D | o2d.dtsi | 101 label = "env";
|
D | a3m071.dts | 114 label = "env";
|
D | ppa8548.dts | 77 label = "env";
|
D | lite5200b.dts | 151 label = "u-boot-env";
|
D | pcm032.dts | 135 label = "env";
|
/linux-4.1.27/net/wireless/ |
D | sysfs.c | 83 static int wiphy_uevent(struct device *dev, struct kobj_uevent_env *env) in wiphy_uevent() argument
|
/linux-4.1.27/arch/x86/include/asm/ |
D | fpu-internal.h | 47 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/ |
D | drivers.c | 551 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/ |
D | eisa-bus.c | 131 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/ |
D | core.c | 752 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/ |
D | ipack.c | 88 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/ |
D | bus.c | 117 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/ |
D | w1.c | 184 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/ |
D | xenbus.c | 392 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/ |
D | ds.c | 926 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/ |
D | hsi.c | 46 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/ |
D | virtpci.c | 105 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()
|