Lines Matching refs:switchtec_ntb
45 struct switchtec_ntb { struct
93 static struct switchtec_ntb *ntb_sndev(struct ntb_dev *ntb) in ntb_sndev() argument
95 return container_of(ntb, struct switchtec_ntb, ntb); in ntb_sndev()
98 static int switchtec_ntb_part_op(struct switchtec_ntb *sndev, in switchtec_ntb_part_op()
155 static int switchtec_ntb_send_msg(struct switchtec_ntb *sndev, int idx, in switchtec_ntb_send_msg()
168 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_mw_count()
181 static int lut_index(struct switchtec_ntb *sndev, int mw_idx) in lut_index()
186 static int peer_lut_index(struct switchtec_ntb *sndev, int mw_idx) in peer_lut_index()
196 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_mw_get_align()
221 static void switchtec_ntb_mw_clr_direct(struct switchtec_ntb *sndev, int idx) in switchtec_ntb_mw_clr_direct()
235 static void switchtec_ntb_mw_clr_lut(struct switchtec_ntb *sndev, int idx) in switchtec_ntb_mw_clr_lut()
242 static void switchtec_ntb_mw_set_direct(struct switchtec_ntb *sndev, int idx, in switchtec_ntb_mw_set_direct()
261 static void switchtec_ntb_mw_set_lut(struct switchtec_ntb *sndev, int idx, in switchtec_ntb_mw_set_lut()
273 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_mw_set_trans()
343 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_peer_mw_count()
349 static int switchtec_ntb_direct_get_addr(struct switchtec_ntb *sndev, in switchtec_ntb_direct_get_addr()
384 static int switchtec_ntb_lut_get_addr(struct switchtec_ntb *sndev, in switchtec_ntb_lut_get_addr()
406 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_peer_mw_get_addr()
416 static void switchtec_ntb_part_link_speed(struct switchtec_ntb *sndev, in switchtec_ntb_part_link_speed()
435 static void switchtec_ntb_set_link_speed(struct switchtec_ntb *sndev) in switchtec_ntb_set_link_speed()
455 static int crosslink_is_enabled(struct switchtec_ntb *sndev) in crosslink_is_enabled()
462 static void crosslink_init_dbmsgs(struct switchtec_ntb *sndev) in crosslink_init_dbmsgs()
489 static int switchtec_ntb_reinit_peer(struct switchtec_ntb *sndev);
491 static void switchtec_ntb_link_status_update(struct switchtec_ntb *sndev) in switchtec_ntb_link_status_update()
522 struct switchtec_ntb *sndev; in check_link_status_work()
524 sndev = container_of(work, struct switchtec_ntb, in check_link_status_work()
543 static void switchtec_ntb_check_link(struct switchtec_ntb *sndev, in switchtec_ntb_check_link()
554 struct switchtec_ntb *sndev = stdev->sndev; in switchtec_ntb_link_notification()
563 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_link_is_up()
577 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_link_enable()
591 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_link_disable()
605 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_db_valid_mask()
617 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_db_vector_mask()
628 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_db_read()
637 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_db_clear()
647 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_db_set_mask()
665 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_db_clear_mask()
682 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_db_read_mask()
693 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_peer_db_addr()
716 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_peer_db_set()
726 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_spad_count()
733 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_spad_read()
746 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_spad_write()
762 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_peer_spad_read()
779 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_peer_spad_write()
798 struct switchtec_ntb *sndev = ntb_sndev(ntb); in switchtec_ntb_peer_spad_addr()
840 static int switchtec_ntb_init_sndev(struct switchtec_ntb *sndev) in switchtec_ntb_init_sndev()
911 static int config_rsvd_lut_win(struct switchtec_ntb *sndev, in config_rsvd_lut_win()
950 static int config_req_id_table(struct switchtec_ntb *sndev, in config_req_id_table()
996 static int crosslink_setup_mws(struct switchtec_ntb *sndev, int ntb_lut_idx, in crosslink_setup_mws()
1062 static int crosslink_setup_req_ids(struct switchtec_ntb *sndev, in crosslink_setup_req_ids()
1086 static int crosslink_enum_partition(struct switchtec_ntb *sndev, in crosslink_enum_partition()
1119 static int switchtec_ntb_init_crosslink(struct switchtec_ntb *sndev) in switchtec_ntb_init_crosslink()
1178 static void switchtec_ntb_deinit_crosslink(struct switchtec_ntb *sndev) in switchtec_ntb_deinit_crosslink()
1199 static void switchtec_ntb_init_mw(struct switchtec_ntb *sndev) in switchtec_ntb_init_mw()
1232 static void switchtec_ntb_init_db(struct switchtec_ntb *sndev) in switchtec_ntb_init_db()
1258 static void switchtec_ntb_init_msgs(struct switchtec_ntb *sndev) in switchtec_ntb_init_msgs()
1277 switchtec_ntb_init_req_id_table(struct switchtec_ntb *sndev) in switchtec_ntb_init_req_id_table()
1295 static void switchtec_ntb_init_shared(struct switchtec_ntb *sndev) in switchtec_ntb_init_shared()
1321 static int switchtec_ntb_init_shared_mw(struct switchtec_ntb *sndev) in switchtec_ntb_init_shared_mw()
1361 static void switchtec_ntb_deinit_shared_mw(struct switchtec_ntb *sndev) in switchtec_ntb_deinit_shared_mw()
1375 struct switchtec_ntb *sndev = dev; in switchtec_ntb_doorbell_isr()
1387 struct switchtec_ntb *sndev = dev; in switchtec_ntb_message_isr()
1405 static int switchtec_ntb_init_db_msg_irq(struct switchtec_ntb *sndev) in switchtec_ntb_init_db_msg_irq()
1453 static void switchtec_ntb_deinit_db_msg_irq(struct switchtec_ntb *sndev) in switchtec_ntb_deinit_db_msg_irq()
1459 static int switchtec_ntb_reinit_peer(struct switchtec_ntb *sndev) in switchtec_ntb_reinit_peer()
1476 struct switchtec_ntb *sndev; in switchtec_ntb_add()
1546 struct switchtec_ntb *sndev = stdev->sndev; in switchtec_ntb_remove()