Lines Matching refs:stm_data
576 ssize_t notrace stm_data_write(struct stm_data *data, unsigned int m, in stm_data_write()
801 struct stm_data *stm_data = stmf->stm->data; in stm_char_ioctl() local
820 if (stm_data->set_options) in stm_char_ioctl()
821 err = stm_data->set_options(stm_data, in stm_char_ioctl()
862 int stm_register_device(struct device *parent, struct stm_data *stm_data, in stm_register_device() argument
872 if (!stm_data->packet || !stm_data->sw_nchannels) in stm_register_device()
875 nmasters = stm_data->sw_end - stm_data->sw_start + 1; in stm_register_device()
880 stm->major = register_chrdev(0, stm_data->name, &stm_fops); in stm_register_device()
899 stm->data = stm_data; in stm_register_device()
900 stm_data->stm = stm; in stm_register_device()
902 err = kobject_set_name(&stm->dev.kobj, "%s", stm_data->name); in stm_register_device()
924 unregister_chrdev(stm->major, stm_data->name); in stm_register_device()
938 void stm_unregister_device(struct stm_data *stm_data) in stm_unregister_device() argument
940 struct stm_device *stm = stm_data->stm; in stm_unregister_device()
963 unregister_chrdev(stm->major, stm_data->name); in stm_unregister_device()
974 stm_data->stm = NULL; in stm_unregister_device()