Lines Matching refs:self_shared
102 struct shared_mw *self_shared; member
549 link_sta = sndev->self_shared->link_sta; in switchtec_ntb_check_link()
602 sndev->self_shared->link_sta = 1; in switchtec_ntb_link_enable()
616 sndev->self_shared->link_sta = 0; in switchtec_ntb_link_disable()
742 return ARRAY_SIZE(sndev->self_shared->spad); in switchtec_ntb_spad_count()
749 if (idx < 0 || idx >= ARRAY_SIZE(sndev->self_shared->spad)) in switchtec_ntb_spad_read()
752 if (!sndev->self_shared) in switchtec_ntb_spad_read()
755 return sndev->self_shared->spad[idx]; in switchtec_ntb_spad_read()
762 if (idx < 0 || idx >= ARRAY_SIZE(sndev->self_shared->spad)) in switchtec_ntb_spad_write()
765 if (!sndev->self_shared) in switchtec_ntb_spad_write()
768 sndev->self_shared->spad[idx] = val; in switchtec_ntb_spad_write()
1314 memset(sndev->self_shared, 0, LUT_SIZE); in switchtec_ntb_init_shared()
1315 sndev->self_shared->magic = SWITCHTEC_NTB_MAGIC; in switchtec_ntb_init_shared()
1316 sndev->self_shared->partition_id = sndev->stdev->partition; in switchtec_ntb_init_shared()
1326 sndev->self_shared->mw_sizes[i] = sz; in switchtec_ntb_init_shared()
1332 sndev->self_shared->mw_sizes[idx] = LUT_SIZE; in switchtec_ntb_init_shared()
1342 sndev->self_shared = dma_zalloc_coherent(&sndev->stdev->pdev->dev, in switchtec_ntb_init_shared_mw()
1346 if (!sndev->self_shared) { in switchtec_ntb_init_shared_mw()
1371 sndev->self_shared, sndev->self_shared_dma); in switchtec_ntb_init_shared_mw()
1381 if (sndev->self_shared) in switchtec_ntb_deinit_shared_mw()
1383 sndev->self_shared, in switchtec_ntb_deinit_shared_mw()