Lines Matching refs:switchtec_ntb

82 struct switchtec_ntb {  struct
129 static struct switchtec_ntb *ntb_sndev(struct ntb_dev *ntb) in ntb_sndev() argument
131 return container_of(ntb, struct switchtec_ntb, ntb); in ntb_sndev()
134 static int switchtec_ntb_part_op(struct switchtec_ntb *sndev, in switchtec_ntb_part_op()
191 static int switchtec_ntb_send_msg(struct switchtec_ntb *sndev, int idx, in switchtec_ntb_send_msg()
204 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_mw_count()
217 static int lut_index(struct switchtec_ntb *sndev, int mw_idx) in lut_index()
222 static int peer_lut_index(struct switchtec_ntb *sndev, int mw_idx) in peer_lut_index()
232 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_mw_get_align()
257 static void switchtec_ntb_mw_clr_direct(struct switchtec_ntb *sndev, int idx) in switchtec_ntb_mw_clr_direct()
270 static void switchtec_ntb_mw_clr_lut(struct switchtec_ntb *sndev, int idx) in switchtec_ntb_mw_clr_lut()
277 static void switchtec_ntb_mw_set_direct(struct switchtec_ntb *sndev, int idx, in switchtec_ntb_mw_set_direct()
294 static void switchtec_ntb_mw_set_lut(struct switchtec_ntb *sndev, int idx, in switchtec_ntb_mw_set_lut()
306 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_mw_set_trans()
376 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_peer_mw_count()
382 static int switchtec_ntb_direct_get_addr(struct switchtec_ntb *sndev, in switchtec_ntb_direct_get_addr()
417 static int switchtec_ntb_lut_get_addr(struct switchtec_ntb *sndev, in switchtec_ntb_lut_get_addr()
439 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_peer_mw_get_addr()
449 static void switchtec_ntb_part_link_speed(struct switchtec_ntb *sndev, in switchtec_ntb_part_link_speed()
466 static void switchtec_ntb_set_link_speed(struct switchtec_ntb *sndev) in switchtec_ntb_set_link_speed()
486 static int crosslink_is_enabled(struct switchtec_ntb *sndev) in crosslink_is_enabled()
493 static void crosslink_init_dbmsgs(struct switchtec_ntb *sndev) in crosslink_init_dbmsgs()
520 static int switchtec_ntb_reinit_peer(struct switchtec_ntb *sndev);
524 struct switchtec_ntb *sndev; in link_reinit_work()
526 sndev = container_of(work, struct switchtec_ntb, link_reinit_work); in link_reinit_work()
531 static void switchtec_ntb_check_link(struct switchtec_ntb *sndev, in switchtec_ntb_check_link()
575 struct switchtec_ntb *sndev = stdev->sndev; in switchtec_ntb_link_notification()
584 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_link_is_up()
598 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_link_enable()
612 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_link_disable()
626 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_db_valid_mask()
638 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_db_vector_mask()
649 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_db_read()
658 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_db_clear()
668 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_db_set_mask()
686 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_db_clear_mask()
703 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_db_read_mask()
712 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_peer_db_addr()
730 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_peer_db_set()
740 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_spad_count()
747 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_spad_read()
760 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_spad_write()
776 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_peer_spad_read()
793 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_peer_spad_write()
812 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_peer_spad_addr()
854 static int switchtec_ntb_init_sndev(struct switchtec_ntb *sndev) in switchtec_ntb_init_sndev()
925 static int config_rsvd_lut_win(struct switchtec_ntb *sndev, in config_rsvd_lut_win()
964 static int config_req_id_table(struct switchtec_ntb *sndev, in config_req_id_table()
1013 static int crosslink_setup_mws(struct switchtec_ntb *sndev, int ntb_lut_idx, in crosslink_setup_mws()
1077 static int crosslink_setup_req_ids(struct switchtec_ntb *sndev, in crosslink_setup_req_ids()
1101 static int crosslink_enum_partition(struct switchtec_ntb *sndev, in crosslink_enum_partition()
1134 static int switchtec_ntb_init_crosslink(struct switchtec_ntb *sndev) in switchtec_ntb_init_crosslink()
1193 static void switchtec_ntb_deinit_crosslink(struct switchtec_ntb *sndev) in switchtec_ntb_deinit_crosslink()
1214 static void switchtec_ntb_init_mw(struct switchtec_ntb *sndev) in switchtec_ntb_init_mw()
1247 static void switchtec_ntb_init_db(struct switchtec_ntb *sndev) in switchtec_ntb_init_db()
1273 static void switchtec_ntb_init_msgs(struct switchtec_ntb *sndev) in switchtec_ntb_init_msgs()
1292 switchtec_ntb_init_req_id_table(struct switchtec_ntb *sndev) in switchtec_ntb_init_req_id_table()
1310 static void switchtec_ntb_init_shared(struct switchtec_ntb *sndev) in switchtec_ntb_init_shared()
1336 static int switchtec_ntb_init_shared_mw(struct switchtec_ntb *sndev) in switchtec_ntb_init_shared_mw()
1376 static void switchtec_ntb_deinit_shared_mw(struct switchtec_ntb *sndev) in switchtec_ntb_deinit_shared_mw()
1390 struct switchtec_ntb *sndev = dev; in switchtec_ntb_doorbell_isr()
1402 struct switchtec_ntb *sndev = dev; in switchtec_ntb_message_isr()
1420 static int switchtec_ntb_init_db_msg_irq(struct switchtec_ntb *sndev) in switchtec_ntb_init_db_msg_irq()
1468 static void switchtec_ntb_deinit_db_msg_irq(struct switchtec_ntb *sndev) in switchtec_ntb_deinit_db_msg_irq()
1474 static int switchtec_ntb_reinit_peer(struct switchtec_ntb *sndev) in switchtec_ntb_reinit_peer()
1486 struct switchtec_ntb *sndev; in switchtec_ntb_add()
1557 struct switchtec_ntb *sndev = stdev->sndev; in switchtec_ntb_remove()