Lines Matching refs:stdev
47 struct switchtec_dev *stdev; member
144 dev_err(&sndev->stdev->dev, in switchtec_ntb_part_op()
282 dev_dbg(&sndev->stdev->dev, "MW %d: part %d addr %pad size %pap\n", in switchtec_ntb_mw_set_trans()
299 dev_err(&sndev->stdev->dev, in switchtec_ntb_mw_set_trans()
325 dev_err(&sndev->stdev->dev, in switchtec_ntb_mw_set_trans()
421 struct switchtec_dev *stdev = sndev->stdev; in switchtec_ntb_part_link_speed() local
423 u32 pff = ioread32(&stdev->mmio_part_cfg[partition].vep_pff_inst_id); in switchtec_ntb_part_link_speed()
424 u32 linksta = ioread32(&stdev->mmio_pff_csr[pff].pci_cap_region[13]); in switchtec_ntb_part_link_speed()
510 dev_info(&sndev->stdev->dev, "ntb link %s\n", in switchtec_ntb_link_status_update()
532 dev_info(&sndev->stdev->dev, "ntb link forced down\n"); in check_link_status_work()
550 static void switchtec_ntb_link_notification(struct switchtec_dev *stdev) in switchtec_ntb_link_notification() argument
552 struct switchtec_ntb *sndev = stdev->sndev; in switchtec_ntb_link_notification()
577 dev_dbg(&sndev->stdev->dev, "enabling link\n"); in switchtec_ntb_link_enable()
591 dev_dbg(&sndev->stdev->dev, "disabling link\n"); in switchtec_ntb_link_disable()
698 (unsigned long)sndev->stdev->mmio; in switchtec_ntb_peer_db_addr()
803 (unsigned long)sndev->stdev->mmio; in switchtec_ntb_peer_spad_addr()
845 sndev->ntb.pdev = sndev->stdev->pdev; in switchtec_ntb_init_sndev()
852 sndev->self_partition = sndev->stdev->partition; in switchtec_ntb_init_sndev()
854 sndev->mmio_ntb = sndev->stdev->mmio_ntb; in switchtec_ntb_init_sndev()
865 if (sndev->stdev->partition_count != 2) { in switchtec_ntb_init_sndev()
866 dev_err(&sndev->stdev->dev, in switchtec_ntb_init_sndev()
873 dev_err(&sndev->stdev->dev, in switchtec_ntb_init_sndev()
881 dev_err(&sndev->stdev->dev, in switchtec_ntb_init_sndev()
888 dev_err(&sndev->stdev->dev, in switchtec_ntb_init_sndev()
894 dev_dbg(&sndev->stdev->dev, "Partition ID %d of %d\n", in switchtec_ntb_init_sndev()
895 sndev->self_partition, sndev->stdev->partition_count); in switchtec_ntb_init_sndev()
940 dev_err(&sndev->stdev->dev, in config_rsvd_lut_win()
958 dev_err(&sndev->stdev->dev, in config_req_id_table()
977 dev_dbg(&sndev->stdev->dev, in config_req_id_table()
990 dev_err(&sndev->stdev->dev, in config_req_id_table()
1055 dev_err(&sndev->stdev->dev, in crosslink_setup_mws()
1092 &sndev->stdev->mmio_part_cfg_all[sndev->peer_partition]; in crosslink_enum_partition()
1095 &sndev->stdev->mmio_pff_csr[pff]; in crosslink_enum_partition()
1108 dev_dbg(&sndev->stdev->dev, in crosslink_enum_partition()
1134 dev_info(&sndev->stdev->dev, "Using crosslink configuration\n"); in switchtec_ntb_init_crosslink()
1139 dev_err(&sndev->stdev->dev, in switchtec_ntb_init_crosslink()
1165 sndev->mmio_xlink_win = pci_iomap_range(sndev->stdev->pdev, bar, in switchtec_ntb_init_crosslink()
1183 pci_iounmap(sndev->stdev->pdev, sndev->mmio_xlink_win); in switchtec_ntb_deinit_crosslink()
1209 dev_dbg(&sndev->stdev->dev, "MWs: %d direct, %d lut\n", in switchtec_ntb_init_mw()
1219 dev_dbg(&sndev->stdev->dev, "Peer MWs: %d direct, %d lut\n", in switchtec_ntb_init_mw()
1256 dev_dbg(&sndev->stdev->dev, "dbs: shift %d/%d, mask %016llx\n", in switchtec_ntb_init_db()
1303 sndev->self_shared->partition_id = sndev->stdev->partition; in switchtec_ntb_init_shared()
1307 resource_size_t sz = pci_resource_len(sndev->stdev->pdev, bar); in switchtec_ntb_init_shared()
1329 sndev->self_shared = dma_alloc_coherent(&sndev->stdev->pdev->dev, in switchtec_ntb_init_shared_mw()
1334 dev_err(&sndev->stdev->dev, in switchtec_ntb_init_shared_mw()
1347 sndev->peer_shared = pci_iomap(sndev->stdev->pdev, self_bar, LUT_SIZE); in switchtec_ntb_init_shared_mw()
1353 dev_dbg(&sndev->stdev->dev, "Shared MW Ready\n"); in switchtec_ntb_init_shared_mw()
1357 dma_free_coherent(&sndev->stdev->pdev->dev, LUT_SIZE, in switchtec_ntb_init_shared_mw()
1366 pci_iounmap(sndev->stdev->pdev, sndev->peer_shared); in switchtec_ntb_deinit_shared_mw()
1369 dma_free_coherent(&sndev->stdev->pdev->dev, LUT_SIZE, in switchtec_ntb_deinit_shared_mw()
1379 dev_dbg(&sndev->stdev->dev, "doorbell\n"); in switchtec_ntb_doorbell_isr()
1395 dev_dbg(&sndev->stdev->dev, "message: %d %08x\n", in switchtec_ntb_message_isr()
1416 event_irq = ioread32(&sndev->stdev->mmio_part_cfg->vep_vector_number); in switchtec_ntb_init_db_msg_irq()
1424 dev_dbg(&sndev->stdev->dev, "irqs - event: %d, db: %d, msgs: %d\n", in switchtec_ntb_init_db_msg_irq()
1435 sndev->doorbell_irq = pci_irq_vector(sndev->stdev->pdev, doorbell_irq); in switchtec_ntb_init_db_msg_irq()
1436 sndev->message_irq = pci_irq_vector(sndev->stdev->pdev, message_irq); in switchtec_ntb_init_db_msg_irq()
1468 dev_info(&sndev->stdev->dev, "reinitialize shared memory window\n"); in switchtec_ntb_reinit_peer()
1478 struct switchtec_dev *stdev = to_stdev(dev); in switchtec_ntb_add() local
1482 stdev->sndev = NULL; in switchtec_ntb_add()
1484 if (stdev->pdev->class != (PCI_CLASS_BRIDGE_OTHER << 8)) in switchtec_ntb_add()
1491 sndev->stdev = stdev; in switchtec_ntb_add()
1528 stdev->sndev = sndev; in switchtec_ntb_add()
1529 stdev->link_notifier = switchtec_ntb_link_notification; in switchtec_ntb_add()
1549 struct switchtec_dev *stdev = to_stdev(dev); in switchtec_ntb_remove() local
1550 struct switchtec_ntb *sndev = stdev->sndev; in switchtec_ntb_remove()
1555 stdev->link_notifier = NULL; in switchtec_ntb_remove()
1556 stdev->sndev = NULL; in switchtec_ntb_remove()