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()
852 int stm_register_device(struct device *parent, struct stm_data *stm_data, in stm_register_device() argument
862 if (!stm_data->packet || !stm_data->sw_nchannels) in stm_register_device()
865 nmasters = stm_data->sw_end - stm_data->sw_start + 1; in stm_register_device()
870 stm->major = register_chrdev(0, stm_data->name, &stm_fops); in stm_register_device()
892 stm->data = stm_data; in stm_register_device()
893 stm_data->stm = stm; in stm_register_device()
895 err = kobject_set_name(&stm->dev.kobj, "%s", stm_data->name); in stm_register_device()
917 unregister_chrdev(stm->major, stm_data->name); in stm_register_device()
929 void stm_unregister_device(struct stm_data *stm_data) in stm_unregister_device() argument
931 struct stm_device *stm = stm_data->stm; in stm_unregister_device()
954 unregister_chrdev(stm->major, stm_data->name); in stm_unregister_device()
965 stm_data->stm = NULL; in stm_unregister_device()