Lines Matching refs:self_shared

65 	struct shared_mw *self_shared;  member
496 link_sta = sndev->self_shared->link_sta; in switchtec_ntb_link_status_update()
581 sndev->self_shared->link_sta = 1; in switchtec_ntb_link_enable()
595 sndev->self_shared->link_sta = 0; in switchtec_ntb_link_disable()
728 return ARRAY_SIZE(sndev->self_shared->spad); in switchtec_ntb_spad_count()
735 if (idx < 0 || idx >= ARRAY_SIZE(sndev->self_shared->spad)) in switchtec_ntb_spad_read()
738 if (!sndev->self_shared) in switchtec_ntb_spad_read()
741 return sndev->self_shared->spad[idx]; in switchtec_ntb_spad_read()
748 if (idx < 0 || idx >= ARRAY_SIZE(sndev->self_shared->spad)) in switchtec_ntb_spad_write()
751 if (!sndev->self_shared) in switchtec_ntb_spad_write()
754 sndev->self_shared->spad[idx] = val; in switchtec_ntb_spad_write()
1299 memset(sndev->self_shared, 0, LUT_SIZE); in switchtec_ntb_init_shared()
1300 sndev->self_shared->magic = SWITCHTEC_NTB_MAGIC; in switchtec_ntb_init_shared()
1301 sndev->self_shared->partition_id = sndev->stdev->partition; in switchtec_ntb_init_shared()
1311 sndev->self_shared->mw_sizes[i] = sz; in switchtec_ntb_init_shared()
1317 sndev->self_shared->mw_sizes[idx] = LUT_SIZE; in switchtec_ntb_init_shared()
1327 sndev->self_shared = dma_alloc_coherent(&sndev->stdev->pdev->dev, in switchtec_ntb_init_shared_mw()
1331 if (!sndev->self_shared) { in switchtec_ntb_init_shared_mw()
1356 sndev->self_shared, sndev->self_shared_dma); in switchtec_ntb_init_shared_mw()
1366 if (sndev->self_shared) in switchtec_ntb_deinit_shared_mw()
1368 sndev->self_shared, in switchtec_ntb_deinit_shared_mw()