Lines Matching refs:newst
365 struct mISDNstack *newst; in create_stack() local
369 newst = kzalloc(sizeof(struct mISDNstack), GFP_KERNEL); in create_stack()
370 if (!newst) { in create_stack()
374 newst->dev = dev; in create_stack()
375 INIT_LIST_HEAD(&newst->layer2); in create_stack()
376 INIT_HLIST_HEAD(&newst->l1sock.head); in create_stack()
377 rwlock_init(&newst->l1sock.lock); in create_stack()
378 init_waitqueue_head(&newst->workq); in create_stack()
379 skb_queue_head_init(&newst->msgq); in create_stack()
380 mutex_init(&newst->lmutex); in create_stack()
381 dev->D.st = newst; in create_stack()
385 kfree(newst); in create_stack()
388 dev->teimgr->peer = &newst->own; in create_stack()
390 dev->teimgr->st = newst; in create_stack()
391 newst->layer1 = &dev->D; in create_stack()
393 dev->D.peer = &newst->own; in create_stack()
394 newst->own.st = newst; in create_stack()
395 newst->own.ctrl = st_own_ctrl; in create_stack()
396 newst->own.send = mISDN_queue_message; in create_stack()
397 newst->own.recv = mISDN_queue_message; in create_stack()
400 dev_name(&newst->dev->dev)); in create_stack()
401 newst->notify = &done; in create_stack()
402 newst->thread = kthread_run(mISDNStackd, (void *)newst, "mISDN_%s", in create_stack()
403 dev_name(&newst->dev->dev)); in create_stack()
404 if (IS_ERR(newst->thread)) { in create_stack()
405 err = PTR_ERR(newst->thread); in create_stack()
408 dev_name(&newst->dev->dev), err); in create_stack()
410 kfree(newst); in create_stack()