Lines Matching refs:item

3126 static inline struct fsg_lun_opts *to_fsg_lun_opts(struct config_item *item)  in to_fsg_lun_opts()  argument
3128 return container_of(to_config_group(item), struct fsg_lun_opts, group); in to_fsg_lun_opts()
3131 static inline struct fsg_opts *to_fsg_opts(struct config_item *item) in to_fsg_opts() argument
3133 return container_of(to_config_group(item), struct fsg_opts, in to_fsg_opts()
3137 static void fsg_lun_attr_release(struct config_item *item) in fsg_lun_attr_release() argument
3141 lun_opts = to_fsg_lun_opts(item); in fsg_lun_attr_release()
3149 static ssize_t fsg_lun_opts_file_show(struct config_item *item, char *page) in fsg_lun_opts_file_show() argument
3151 struct fsg_lun_opts *opts = to_fsg_lun_opts(item); in fsg_lun_opts_file_show()
3157 static ssize_t fsg_lun_opts_file_store(struct config_item *item, in fsg_lun_opts_file_store() argument
3160 struct fsg_lun_opts *opts = to_fsg_lun_opts(item); in fsg_lun_opts_file_store()
3168 static ssize_t fsg_lun_opts_ro_show(struct config_item *item, char *page) in fsg_lun_opts_ro_show() argument
3170 return fsg_show_ro(to_fsg_lun_opts(item)->lun, page); in fsg_lun_opts_ro_show()
3173 static ssize_t fsg_lun_opts_ro_store(struct config_item *item, in fsg_lun_opts_ro_store() argument
3176 struct fsg_lun_opts *opts = to_fsg_lun_opts(item); in fsg_lun_opts_ro_store()
3184 static ssize_t fsg_lun_opts_removable_show(struct config_item *item, in fsg_lun_opts_removable_show() argument
3187 return fsg_show_removable(to_fsg_lun_opts(item)->lun, page); in fsg_lun_opts_removable_show()
3190 static ssize_t fsg_lun_opts_removable_store(struct config_item *item, in fsg_lun_opts_removable_store() argument
3193 return fsg_store_removable(to_fsg_lun_opts(item)->lun, page, len); in fsg_lun_opts_removable_store()
3198 static ssize_t fsg_lun_opts_cdrom_show(struct config_item *item, char *page) in fsg_lun_opts_cdrom_show() argument
3200 return fsg_show_cdrom(to_fsg_lun_opts(item)->lun, page); in fsg_lun_opts_cdrom_show()
3203 static ssize_t fsg_lun_opts_cdrom_store(struct config_item *item, in fsg_lun_opts_cdrom_store() argument
3206 struct fsg_lun_opts *opts = to_fsg_lun_opts(item); in fsg_lun_opts_cdrom_store()
3215 static ssize_t fsg_lun_opts_nofua_show(struct config_item *item, char *page) in fsg_lun_opts_nofua_show() argument
3217 return fsg_show_nofua(to_fsg_lun_opts(item)->lun, page); in fsg_lun_opts_nofua_show()
3220 static ssize_t fsg_lun_opts_nofua_store(struct config_item *item, in fsg_lun_opts_nofua_store() argument
3223 return fsg_store_nofua(to_fsg_lun_opts(item)->lun, page, len); in fsg_lun_opts_nofua_store()
3301 static void fsg_lun_drop(struct config_group *group, struct config_item *item) in fsg_lun_drop() argument
3306 lun_opts = to_fsg_lun_opts(item); in fsg_lun_drop()
3322 config_item_put(item); in fsg_lun_drop()
3325 static void fsg_attr_release(struct config_item *item) in fsg_attr_release() argument
3327 struct fsg_opts *opts = to_fsg_opts(item); in fsg_attr_release()
3336 static ssize_t fsg_opts_stall_show(struct config_item *item, char *page) in fsg_opts_stall_show() argument
3338 struct fsg_opts *opts = to_fsg_opts(item); in fsg_opts_stall_show()
3348 static ssize_t fsg_opts_stall_store(struct config_item *item, const char *page, in fsg_opts_stall_store() argument
3351 struct fsg_opts *opts = to_fsg_opts(item); in fsg_opts_stall_store()
3376 static ssize_t fsg_opts_num_buffers_show(struct config_item *item, char *page) in fsg_opts_num_buffers_show() argument
3378 struct fsg_opts *opts = to_fsg_opts(item); in fsg_opts_num_buffers_show()
3388 static ssize_t fsg_opts_num_buffers_store(struct config_item *item, in fsg_opts_num_buffers_store() argument
3391 struct fsg_opts *opts = to_fsg_opts(item); in fsg_opts_num_buffers_store()