• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/bfa/

Lines Matching defs:im_port

180 	struct bfad_im_port_s *im_port =
182 struct bfad_s *bfad = im_port->bfad;
203 struct bfad_im_port_s *im_port =
205 struct bfad_s *bfad = im_port->bfad;
225 im_port->shost->host_no, cmnd, hal_io->iotag);
241 im_port->shost->host_no, cmnd, hal_io->iotag);
287 struct bfad_im_port_s *im_port =
290 struct bfad_s *bfad = im_port->bfad;
350 struct bfad_im_port_s *im_port =
352 struct bfad_s *bfad = im_port->bfad;
361 itnim = bfad_os_get_itnim(im_port, i);
452 itnim_drv->im_port = port->im_port;
458 port->im_port->shost->host_no,
476 itnim_drv->im_port = port->im_port;
497 itnim_drv->im_port = port->im_port;
516 bfad_im_scsi_host_alloc(struct bfad_s *bfad, struct bfad_im_port_s *im_port,
528 error = idr_get_new(&bfad_im_port_index, im_port,
529 &im_port->idr_id);
538 im_port->shost = bfad_os_scsi_host_alloc(im_port, bfad);
539 if (!im_port->shost) {
544 im_port->shost->hostdata[0] = (unsigned long)im_port;
545 im_port->shost->unique_id = im_port->idr_id;
546 im_port->shost->this_id = -1;
547 im_port->shost->max_id = MAX_FCP_TARGET;
548 im_port->shost->max_lun = MAX_FCP_LUN;
549 im_port->shost->max_cmd_len = 16;
550 im_port->shost->can_queue = bfad->cfg_data.ioc_queue_depth;
551 if (im_port->port->pvb_type == BFAD_PORT_PHYS_BASE)
552 im_port->shost->transportt = bfad_im_scsi_transport_template;
554 im_port->shost->transportt =
557 error = scsi_add_host_with_dma(im_port->shost, dev, &bfad->pcidev->dev);
564 bfad_os_fc_host_init(im_port);
569 scsi_host_put(im_port->shost);
570 im_port->shost = NULL;
573 idr_remove(&bfad_im_port_index, im_port->idr_id);
580 bfad_im_scsi_host_free(struct bfad_s *bfad, struct bfad_im_port_s *im_port)
584 im_port->shost->host_no);
586 fc_remove_host(im_port->shost);
588 scsi_remove_host(im_port->shost);
589 scsi_host_put(im_port->shost);
592 idr_remove(&bfad_im_port_index, im_port->idr_id);
599 struct bfad_im_port_s *im_port =
601 struct bfad_s *bfad = im_port->bfad;
603 if (im_port->port->pvb_type != BFAD_PORT_PHYS_BASE) {
604 im_port->flags |= BFAD_PORT_DELETE;
605 fc_vport_terminate(im_port->fc_vport);
615 struct bfad_im_port_s *im_port;
617 im_port = kzalloc(sizeof(struct bfad_im_port_s), GFP_ATOMIC);
618 if (im_port == NULL) {
622 port->im_port = im_port;
623 im_port->port = port;
624 im_port->bfad = bfad;
626 INIT_WORK(&im_port->port_delete_work, bfad_im_port_delete_handler);
627 INIT_LIST_HEAD(&im_port->itnim_mapped_list);
628 INIT_LIST_HEAD(&im_port->binding_list);
637 struct bfad_im_port_s *im_port = port->im_port;
639 if (im_port->port->pvb_type != BFAD_PORT_PHYS_BASE) {
642 &im_port->port_delete_work);
647 bfad_im_port_clean(struct bfad_im_port_s *im_port)
651 struct bfad_s *bfad = im_port->bfad;
654 list_for_each_entry_safe(bp, bp_new, &im_port->binding_list,
661 bfa_assert(list_empty(&im_port->itnim_mapped_list));
726 bfad_os_scsi_host_alloc(struct bfad_im_port_s *im_port, struct bfad_s *bfad)
730 if (im_port->port->pvb_type == BFAD_PORT_PHYS_BASE)
741 bfad_os_scsi_host_free(struct bfad_s *bfad, struct bfad_im_port_s *im_port)
743 if (!(im_port->flags & BFAD_PORT_DELETE))
745 bfad_im_scsi_host_free(im_port->bfad, im_port);
746 bfad_im_port_clean(im_port);
747 kfree(im_port);
923 bfad_os_get_itnim(struct bfad_im_port_s *im_port, int id)
928 list_for_each_entry(itnim, &im_port->itnim_mapped_list, list_entry) {
953 bfad_os_fc_host_init(struct bfad_im_port_s *im_port)
955 struct Scsi_Host *host = im_port->shost;
956 struct bfad_s *bfad = im_port->bfad;
957 struct bfad_port_s *port = im_port->port;
996 bfad_im_fc_rport_add(struct bfad_im_port_s *im_port, struct bfad_itnim_s *itnim)
1011 fc_remote_port_add(im_port->shost, 0, &rport_ids);
1046 struct bfad_im_port_s *im_port;
1054 im_port = itnim->im_port;
1060 bfad_im_fc_rport_add(im_port, itnim);
1067 &im_port->itnim_mapped_list);
1069 im_port->shost->host_no,
1087 if (!(im_port->port->flags & BFAD_PORT_DELETE)) {
1100 im_port->shost->host_no,
1111 if (!(im_port->port->flags & BFAD_PORT_DELETE)) {
1137 struct bfad_im_port_s *im_port =
1139 struct bfad_s *bfad = im_port->bfad;