Lines Matching refs:to_mdev_link
90 static struct mdev_link *to_mdev_link(struct config_item *item) in to_mdev_link() function
116 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_create_link_store()
138 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_destroy_link_store()
162 return snprintf(page, PAGE_SIZE, "%s\n", to_mdev_link(item)->direction); in mdev_link_direction_show()
168 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_direction_store()
180 return snprintf(page, PAGE_SIZE, "%s\n", to_mdev_link(item)->datatype); in mdev_link_datatype_show()
186 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_datatype_store()
199 return snprintf(page, PAGE_SIZE, "%s\n", to_mdev_link(item)->device); in mdev_link_device_show()
205 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_device_store()
214 return snprintf(page, PAGE_SIZE, "%s\n", to_mdev_link(item)->channel); in mdev_link_channel_show()
220 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_channel_store()
229 return snprintf(page, PAGE_SIZE, "%s\n", to_mdev_link(item)->comp); in mdev_link_comp_show()
235 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_comp_store()
245 to_mdev_link(item)->comp_params); in mdev_link_comp_params_show()
251 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_comp_params_store()
261 to_mdev_link(item)->num_buffers); in mdev_link_num_buffers_show()
267 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_num_buffers_store()
279 to_mdev_link(item)->buffer_size); in mdev_link_buffer_size_show()
285 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_buffer_size_store()
298 to_mdev_link(item)->subbuffer_size); in mdev_link_subbuffer_size_show()
304 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_subbuffer_size_store()
317 to_mdev_link(item)->packets_per_xact); in mdev_link_packets_per_xact_show()
323 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_packets_per_xact_store()
334 return snprintf(page, PAGE_SIZE, "%d\n", to_mdev_link(item)->dbr_size); in mdev_link_dbr_size_show()
340 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_dbr_size_store()
382 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_release()
399 kfree(to_mdev_link(item)); in mdev_link_release()