Lines Matching refs:smdev
703 struct sm501_device *smdev; in sm501_create_subdev() local
705 smdev = kzalloc(sizeof(struct sm501_device) + in sm501_create_subdev()
708 if (!smdev) in sm501_create_subdev()
711 smdev->pdev.dev.release = sm501_device_release; in sm501_create_subdev()
713 smdev->pdev.name = name; in sm501_create_subdev()
714 smdev->pdev.id = sm->pdev_id; in sm501_create_subdev()
715 smdev->pdev.dev.parent = sm->dev; in sm501_create_subdev()
716 smdev->pdev.dev.coherent_dma_mask = 0xffffffff; in sm501_create_subdev()
719 smdev->pdev.resource = (struct resource *)(smdev+1); in sm501_create_subdev()
720 smdev->pdev.num_resources = res_count; in sm501_create_subdev()
723 smdev->pdev.dev.platform_data = (void *)(smdev+1); in sm501_create_subdev()
725 return &smdev->pdev; in sm501_create_subdev()
736 struct sm501_device *smdev = to_sm_device(pdev); in sm501_register_device() local
749 list_add_tail(&smdev->list, &sm->devices); in sm501_register_device()
1646 struct sm501_device *smdev) in sm501_remove_sub() argument
1648 list_del(&smdev->list); in sm501_remove_sub()
1649 platform_device_unregister(&smdev->pdev); in sm501_remove_sub()
1654 struct sm501_device *smdev, *tmp; in sm501_dev_remove() local
1656 list_for_each_entry_safe(smdev, tmp, &sm->devices, list) in sm501_dev_remove()
1657 sm501_remove_sub(sm, smdev); in sm501_dev_remove()