Lines Matching refs:new_desc

850 	struct mts_desc * new_desc;  in mts_usb_probe()  local
943 new_desc = (struct mts_desc *)kmalloc(sizeof(struct mts_desc), GFP_KERNEL); in mts_usb_probe()
944 if (new_desc == NULL) in mts_usb_probe()
951 memset( new_desc, 0, sizeof(*new_desc) ); in mts_usb_probe()
952 spin_lock_init(&new_desc->urb.lock); in mts_usb_probe()
956 new_desc->usb_dev = dev; in mts_usb_probe()
957 new_desc->interface = interface; in mts_usb_probe()
959 init_MUTEX(&new_desc->lock); in mts_usb_probe()
962 new_desc->host_number = mts_list->host_number+1; in mts_usb_probe()
964 new_desc->host_number = 0; in mts_usb_probe()
969 new_desc->ep_out = ep_out; in mts_usb_probe()
970 new_desc->ep_response = ep_in_set[0]; in mts_usb_probe()
971 new_desc->ep_image = ep_in_set[1]; in mts_usb_probe()
974 if ( new_desc->ep_out != MTS_EP_OUT ) in mts_usb_probe()
976 (int)new_desc->ep_out ); in mts_usb_probe()
978 if ( new_desc->ep_response != MTS_EP_RESPONSE ) in mts_usb_probe()
980 (int)new_desc->ep_response ); in mts_usb_probe()
982 if ( new_desc->ep_image != MTS_EP_IMAGE ) in mts_usb_probe()
984 (int)new_desc->ep_image ); in mts_usb_probe()
988 memcpy(&(new_desc->ctempl), &mts_scsi_host_template, sizeof(mts_scsi_host_template)); in mts_usb_probe()
990 new_desc->ctempl.proc_dir = (void *)new_desc; /* FIXME */ in mts_usb_probe()
994 new_desc->ctempl.module = THIS_MODULE; in mts_usb_probe()
995 result = scsi_register_module(MODULE_SCSI_HA, &(new_desc->ctempl)); in mts_usb_probe()
1003 kfree( new_desc ); in mts_usb_probe()
1012 mts_add_nolock( new_desc ); in mts_usb_probe()
1019 return (void *)new_desc; in mts_usb_probe()