Lines Matching defs:lw
41 struct lmh_wrapper *lw;
45 list_for_each_entry(lw, &lmh_list, lw_list) {
46 if (!strcmp(lw->lw_ops->lm_proto_name, proto->lm_proto_name)) {
54 lw = kzalloc(sizeof(struct lmh_wrapper), GFP_KERNEL);
55 if (!lw) {
60 lw->lw_ops = proto;
61 list_add(&lw->lw_list, &lmh_list);
76 struct lmh_wrapper *lw;
80 list_for_each_entry(lw, &lmh_list, lw_list) {
81 if (!strcmp(lw->lw_ops->lm_proto_name, proto->lm_proto_name)) {
82 list_del(&lw->lw_list);
84 kfree(lw);
115 struct lmh_wrapper *lw = NULL;
123 list_for_each_entry(lw, &lmh_list, lw_list) {
124 if (!strcmp(lw->lw_ops->lm_proto_name, proto_name)) {
142 if (!try_module_get(lw->lw_ops->lm_owner)) {
149 error = lw->lw_ops->lm_mount(table_name, host_data, cb, cb_data,
152 module_put(lw->lw_ops->lm_owner);