Lines Matching refs:_msd_device
34 static struct msd_device _msd_device; variable
1630 rt_memset(&_msd_device, 0, sizeof(_msd_device)); in msd_init()
1631 _msd_device.spi_device = spi_device; in msd_init()
1634 _msd_device.parent.type = RT_Device_Class_Block; in msd_init()
1636 _msd_device.geometry.bytes_per_sector = 0; in msd_init()
1637 _msd_device.geometry.sector_count = 0; in msd_init()
1638 _msd_device.geometry.block_size = 0; in msd_init()
1641 _msd_device.parent.ops = &msd_ops; in msd_init()
1643 _msd_device.parent.init = rt_msd_init; in msd_init()
1644 _msd_device.parent.open = rt_msd_open; in msd_init()
1645 _msd_device.parent.close = rt_msd_close; in msd_init()
1646 _msd_device.parent.read = RT_NULL; in msd_init()
1647 _msd_device.parent.write = RT_NULL; in msd_init()
1648 _msd_device.parent.control = rt_msd_control; in msd_init()
1652 _msd_device.parent.user_data = RT_NULL; in msd_init()
1653 _msd_device.parent.rx_indicate = RT_NULL; in msd_init()
1654 _msd_device.parent.tx_complete = RT_NULL; in msd_init()
1656 result = rt_device_register(&_msd_device.parent, sd_device_name, in msd_init()