Lines Matching refs:stdev

84 	struct switchtec_dev *stdev;  member
180 dev_err(&sndev->stdev->dev, in switchtec_ntb_part_op()
315 dev_dbg(&sndev->stdev->dev, "MW %d: part %d addr %pad size %pap\n", in switchtec_ntb_mw_set_trans()
332 dev_err(&sndev->stdev->dev, in switchtec_ntb_mw_set_trans()
358 dev_err(&sndev->stdev->dev, in switchtec_ntb_mw_set_trans()
454 struct switchtec_dev *stdev = sndev->stdev; in switchtec_ntb_part_link_speed() local
456 u32 pff = ioread32(&stdev->mmio_part_cfg[partition].vep_pff_inst_id); in switchtec_ntb_part_link_speed()
457 u32 linksta = ioread32(&stdev->mmio_pff_csr[pff].pci_cap_region[13]); in switchtec_ntb_part_link_speed()
543 dev_info(&sndev->stdev->dev, "ntb link forced down\n"); in switchtec_ntb_check_link()
565 dev_info(&sndev->stdev->dev, "ntb link %s\n", in switchtec_ntb_check_link()
573 static void switchtec_ntb_link_notification(struct switchtec_dev *stdev) in switchtec_ntb_link_notification() argument
575 struct switchtec_ntb *sndev = stdev->sndev; in switchtec_ntb_link_notification()
600 dev_dbg(&sndev->stdev->dev, "enabling link\n"); in switchtec_ntb_link_enable()
614 dev_dbg(&sndev->stdev->dev, "disabling link\n"); in switchtec_ntb_link_disable()
716 (unsigned long)sndev->stdev->mmio; in switchtec_ntb_peer_db_addr()
819 (unsigned long)sndev->stdev->mmio; in switchtec_ntb_peer_spad_addr()
861 sndev->ntb.pdev = sndev->stdev->pdev; in switchtec_ntb_init_sndev()
867 sndev->self_partition = sndev->stdev->partition; in switchtec_ntb_init_sndev()
869 sndev->mmio_ntb = sndev->stdev->mmio_ntb; in switchtec_ntb_init_sndev()
880 if (sndev->stdev->partition_count != 2) { 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()
896 dev_err(&sndev->stdev->dev, in switchtec_ntb_init_sndev()
903 dev_err(&sndev->stdev->dev, in switchtec_ntb_init_sndev()
909 dev_dbg(&sndev->stdev->dev, "Partition ID %d of %d\n", in switchtec_ntb_init_sndev()
910 sndev->self_partition, sndev->stdev->partition_count); in switchtec_ntb_init_sndev()
955 dev_err(&sndev->stdev->dev, in config_rsvd_lut_win()
973 dev_err(&sndev->stdev->dev, in config_req_id_table()
992 dev_dbg(&sndev->stdev->dev, in config_req_id_table()
1005 dev_err(&sndev->stdev->dev, in config_req_id_table()
1068 dev_err(&sndev->stdev->dev, in crosslink_setup_mws()
1105 &sndev->stdev->mmio_part_cfg_all[sndev->peer_partition]; in crosslink_enum_partition()
1108 &sndev->stdev->mmio_pff_csr[pff]; in crosslink_enum_partition()
1121 dev_dbg(&sndev->stdev->dev, in crosslink_enum_partition()
1147 dev_info(&sndev->stdev->dev, "Using crosslink configuration\n"); in switchtec_ntb_init_crosslink()
1152 dev_err(&sndev->stdev->dev, in switchtec_ntb_init_crosslink()
1178 sndev->mmio_xlink_win = pci_iomap_range(sndev->stdev->pdev, bar, in switchtec_ntb_init_crosslink()
1196 pci_iounmap(sndev->stdev->pdev, sndev->mmio_xlink_win); in switchtec_ntb_deinit_crosslink()
1222 dev_dbg(&sndev->stdev->dev, "MWs: %d direct, %d lut\n", in switchtec_ntb_init_mw()
1232 dev_dbg(&sndev->stdev->dev, "Peer MWs: %d direct, %d lut\n", in switchtec_ntb_init_mw()
1269 dev_dbg(&sndev->stdev->dev, "dbs: shift %d/%d, mask %016llx\n", in switchtec_ntb_init_db()
1316 sndev->self_shared->partition_id = sndev->stdev->partition; in switchtec_ntb_init_shared()
1320 resource_size_t sz = pci_resource_len(sndev->stdev->pdev, bar); in switchtec_ntb_init_shared()
1342 sndev->self_shared = dma_zalloc_coherent(&sndev->stdev->pdev->dev, in switchtec_ntb_init_shared_mw()
1347 dev_err(&sndev->stdev->dev, in switchtec_ntb_init_shared_mw()
1360 sndev->peer_shared = pci_iomap(sndev->stdev->pdev, self_bar, LUT_SIZE); in switchtec_ntb_init_shared_mw()
1366 dev_dbg(&sndev->stdev->dev, "Shared MW Ready\n"); in switchtec_ntb_init_shared_mw()
1370 dma_free_coherent(&sndev->stdev->pdev->dev, LUT_SIZE, in switchtec_ntb_init_shared_mw()
1379 pci_iounmap(sndev->stdev->pdev, sndev->peer_shared); in switchtec_ntb_deinit_shared_mw()
1382 dma_free_coherent(&sndev->stdev->pdev->dev, LUT_SIZE, in switchtec_ntb_deinit_shared_mw()
1392 dev_dbg(&sndev->stdev->dev, "doorbell\n"); in switchtec_ntb_doorbell_isr()
1408 dev_dbg(&sndev->stdev->dev, "message: %d %08x\n", in switchtec_ntb_message_isr()
1429 event_irq = ioread32(&sndev->stdev->mmio_part_cfg->vep_vector_number); in switchtec_ntb_init_db_msg_irq()
1437 dev_dbg(&sndev->stdev->dev, "irqs - event: %d, db: %d, msgs: %d\n", in switchtec_ntb_init_db_msg_irq()
1448 sndev->doorbell_irq = pci_irq_vector(sndev->stdev->pdev, doorbell_irq); in switchtec_ntb_init_db_msg_irq()
1449 sndev->message_irq = pci_irq_vector(sndev->stdev->pdev, message_irq); in switchtec_ntb_init_db_msg_irq()
1476 dev_info(&sndev->stdev->dev, "peer reinitialized\n"); in switchtec_ntb_reinit_peer()
1485 struct switchtec_dev *stdev = to_stdev(dev); in switchtec_ntb_add() local
1489 stdev->sndev = NULL; in switchtec_ntb_add()
1491 if (stdev->pdev->class != (PCI_CLASS_BRIDGE_OTHER << 8)) in switchtec_ntb_add()
1498 sndev->stdev = stdev; in switchtec_ntb_add()
1535 stdev->sndev = sndev; in switchtec_ntb_add()
1536 stdev->link_notifier = switchtec_ntb_link_notification; in switchtec_ntb_add()
1556 struct switchtec_dev *stdev = to_stdev(dev); in switchtec_ntb_remove() local
1557 struct switchtec_ntb *sndev = stdev->sndev; in switchtec_ntb_remove()
1562 stdev->link_notifier = NULL; in switchtec_ntb_remove()
1563 stdev->sndev = NULL; in switchtec_ntb_remove()