Lines Matching refs:new_kcs

870 	struct kcs_info *new_kcs;  in init_one_kcs()  local
884 new_kcs = kmalloc(sizeof(*new_kcs), GFP_KERNEL); in init_one_kcs()
885 if (!new_kcs) { in init_one_kcs()
891 new_kcs->kcs_sm = NULL; in init_one_kcs()
893 new_kcs->addr = NULL; in init_one_kcs()
894 new_kcs->physaddr = kcs_physaddr; in init_one_kcs()
895 new_kcs->port = kcs_port; in init_one_kcs()
899 kfree(new_kcs); in init_one_kcs()
907 kfree(new_kcs); in init_one_kcs()
913 if ((new_kcs->addr = ioremap(kcs_physaddr, 2)) == NULL) { in init_one_kcs()
914 kfree(new_kcs); in init_one_kcs()
922 new_kcs->kcs_sm = kmalloc(kcs_size(), GFP_KERNEL); in init_one_kcs()
923 if (!new_kcs->kcs_sm) { in init_one_kcs()
928 init_kcs_data(new_kcs->kcs_sm, kcs_port, new_kcs->addr); in init_one_kcs()
929 spin_lock_init(&(new_kcs->kcs_lock)); in init_one_kcs()
930 spin_lock_init(&(new_kcs->msg_lock)); in init_one_kcs()
932 rv = ipmi_kcs_detect_hardware(kcs_port, new_kcs->addr, new_kcs->kcs_sm); in init_one_kcs()
950 new_kcs); in init_one_kcs()
959 new_kcs->irq = irq; in init_one_kcs()
961 INIT_LIST_HEAD(&(new_kcs->xmit_msgs)); in init_one_kcs()
962 INIT_LIST_HEAD(&(new_kcs->hp_xmit_msgs)); in init_one_kcs()
963 new_kcs->curr_msg = NULL; in init_one_kcs()
964 atomic_set(&new_kcs->req_events, 0); in init_one_kcs()
965 new_kcs->run_to_completion = 0; in init_one_kcs()
967 start_clear_flags(new_kcs); in init_one_kcs()
970 new_kcs->kcs_state = KCS_CLEARING_FLAGS_THEN_SET_IRQ; in init_one_kcs()
988 new_kcs, in init_one_kcs()
991 &(new_kcs->intf)); in init_one_kcs()
993 free_irq(irq, new_kcs); in init_one_kcs()
1000 new_kcs->interrupt_disabled = 0; in init_one_kcs()
1001 new_kcs->timer_stopped = 0; in init_one_kcs()
1002 new_kcs->stop_operation = 0; in init_one_kcs()
1004 init_timer(&(new_kcs->kcs_timer)); in init_one_kcs()
1005 new_kcs->kcs_timer.data = (long) new_kcs; in init_one_kcs()
1006 new_kcs->kcs_timer.function = kcs_timeout; in init_one_kcs()
1007 new_kcs->last_timeout_jiffies = jiffies; in init_one_kcs()
1008 new_kcs->kcs_timer.expires = jiffies + KCS_TIMEOUT_JIFFIES; in init_one_kcs()
1009 add_timer(&(new_kcs->kcs_timer)); in init_one_kcs()
1011 *kcs = new_kcs; in init_one_kcs()
1018 if (new_kcs->addr) in init_one_kcs()
1019 iounmap(new_kcs->addr); in init_one_kcs()
1022 if (new_kcs->kcs_sm) in init_one_kcs()
1023 kfree(new_kcs->kcs_sm); in init_one_kcs()
1024 kfree(new_kcs); in init_one_kcs()