Lines Matching refs:usb9pfs_opts

744 	struct f_usb9pfs_opts *usb9pfs_opts;  in usb9pfs_alloc()  local
756 usb9pfs_opts = container_of(fi, struct f_usb9pfs_opts, func_inst); in usb9pfs_alloc()
758 mutex_lock(&usb9pfs_opts->lock); in usb9pfs_alloc()
759 usb9pfs_opts->refcnt++; in usb9pfs_alloc()
760 mutex_unlock(&usb9pfs_opts->lock); in usb9pfs_alloc()
762 usb9pfs->buflen = usb9pfs_opts->buflen; in usb9pfs_alloc()
789 struct f_usb9pfs_opts *usb9pfs_opts = to_f_usb9pfs_opts(item); in usb9pfs_attr_release() local
791 usb_put_function_instance(&usb9pfs_opts->func_inst); in usb9pfs_attr_release()
884 struct f_usb9pfs_opts *usb9pfs_opts = in usb9pfs_free_instance() local
886 struct f_usb9pfs_dev *dev = usb9pfs_opts->dev; in usb9pfs_free_instance()
892 kfree(usb9pfs_opts); in usb9pfs_free_instance()
897 struct f_usb9pfs_opts *usb9pfs_opts; in usb9pfs_alloc_instance() local
900 usb9pfs_opts = kzalloc(sizeof(*usb9pfs_opts), GFP_KERNEL); in usb9pfs_alloc_instance()
901 if (!usb9pfs_opts) in usb9pfs_alloc_instance()
904 mutex_init(&usb9pfs_opts->lock); in usb9pfs_alloc_instance()
906 usb9pfs_opts->func_inst.set_inst_name = usb9pfs_set_inst_tag; in usb9pfs_alloc_instance()
907 usb9pfs_opts->func_inst.free_func_inst = usb9pfs_free_instance; in usb9pfs_alloc_instance()
909 usb9pfs_opts->buflen = DEFAULT_BUFLEN; in usb9pfs_alloc_instance()
913 kfree(usb9pfs_opts); in usb9pfs_alloc_instance()
917 usb9pfs_opts->dev = dev; in usb9pfs_alloc_instance()
918 dev->opts = usb9pfs_opts; in usb9pfs_alloc_instance()
920 config_group_init_type_name(&usb9pfs_opts->func_inst.group, "", in usb9pfs_alloc_instance()
927 return &usb9pfs_opts->func_inst; in usb9pfs_alloc_instance()