Lines Matching refs:os_desc
89 struct os_desc { struct
750 static inline struct os_desc *to_os_desc(struct config_item *item) in to_os_desc()
752 return container_of(to_config_group(item), struct os_desc, group); in to_os_desc()
755 CONFIGFS_ATTR_STRUCT(os_desc);
756 CONFIGFS_ATTR_OPS(os_desc);
758 static ssize_t os_desc_use_show(struct os_desc *os_desc, char *page) in os_desc_use_show() argument
762 gi = to_gadget_info(os_desc->group.cg_item.ci_parent); in os_desc_use_show()
767 static ssize_t os_desc_use_store(struct os_desc *os_desc, const char *page, in os_desc_use_store() argument
774 gi = to_gadget_info(os_desc->group.cg_item.ci_parent); in os_desc_use_store()
792 static ssize_t os_desc_b_vendor_code_show(struct os_desc *os_desc, char *page) in os_desc_b_vendor_code_show() argument
796 gi = to_gadget_info(os_desc->group.cg_item.ci_parent); in os_desc_b_vendor_code_show()
801 static ssize_t os_desc_b_vendor_code_store(struct os_desc *os_desc, in os_desc_b_vendor_code_store() argument
808 gi = to_gadget_info(os_desc->group.cg_item.ci_parent); in os_desc_b_vendor_code_store()
826 static ssize_t os_desc_qw_sign_show(struct os_desc *os_desc, char *page) in os_desc_qw_sign_show() argument
830 gi = to_gadget_info(os_desc->group.cg_item.ci_parent); in os_desc_qw_sign_show()
837 static ssize_t os_desc_qw_sign_store(struct os_desc *os_desc, const char *page, in os_desc_qw_sign_store() argument
843 gi = to_gadget_info(os_desc->group.cg_item.ci_parent); in os_desc_qw_sign_store()
873 struct os_desc *os_desc = to_os_desc(item); in os_desc_attr_release() local
874 kfree(os_desc); in os_desc_attr_release()