Lines Matching refs:new_handler
743 handler *new_handler; in iucv_register_program() local
759 new_handler = (handler *)kmalloc(sizeof(handler), GFP_KERNEL); in iucv_register_program()
760 if (new_handler == NULL) { in iucv_register_program()
768 kfree(new_handler); in iucv_register_program()
778 kfree(new_handler); in iucv_register_program()
783 memset(new_handler, 0, sizeof (handler)); in iucv_register_program()
784 memcpy(new_handler->id.user_data, pgmname, in iucv_register_program()
785 sizeof (new_handler->id.user_data)); in iucv_register_program()
787 memcpy (new_handler->id.userid, userid, in iucv_register_program()
788 sizeof (new_handler->id.userid)); in iucv_register_program()
789 ASCEBC (new_handler->id.userid, in iucv_register_program()
790 sizeof (new_handler->id.userid)); in iucv_register_program()
791 EBC_TOUPPER (new_handler->id.userid, in iucv_register_program()
792 sizeof (new_handler->id.userid)); in iucv_register_program()
795 memcpy (new_handler->id.mask, pgmmask, in iucv_register_program()
796 sizeof (new_handler->id.mask)); in iucv_register_program()
798 memset (new_handler->id.mask, 0xFF, in iucv_register_program()
799 sizeof (new_handler->id.mask)); in iucv_register_program()
803 memcpy (new_handler->id.mask, pgmmask, in iucv_register_program()
804 sizeof (new_handler->id.mask)); in iucv_register_program()
806 memset (new_handler->id.mask, 0xFF, in iucv_register_program()
807 sizeof (new_handler->id.mask)); in iucv_register_program()
809 memset (new_handler->id.mask, 0x00, in iucv_register_program()
810 sizeof (new_handler->id.userid)); in iucv_register_program()
813 new_handler->pgm_data = pgm_data; in iucv_register_program()
814 new_handler->interrupt_table = ops; in iucv_register_program()
823 rc = iucv_add_handler(new_handler); in iucv_register_program()
827 kfree (new_handler); in iucv_register_program()
835 iucv_remove_handler(new_handler); in iucv_register_program()
836 kfree(new_handler); in iucv_register_program()
868 iucv_remove_handler(new_handler); in iucv_register_program()
869 kfree (new_handler); in iucv_register_program()
880 return new_handler; in iucv_register_program()