Lines Matching refs:container

327 ast_vhub_str_of_container(struct usb_gadget_string_container *container)  in ast_vhub_str_of_container()  argument
329 return (struct usb_gadget_strings *)container->stash; in ast_vhub_str_of_container()
337 struct usb_gadget_string_container *container; in ast_vhub_collect_languages() local
343 list_for_each_entry(container, &vhub->vhub_str_desc, list) { in ast_vhub_collect_languages()
347 lang_str = ast_vhub_str_of_container(container); in ast_vhub_collect_languages()
362 struct usb_gadget_string_container *container; in ast_vhub_lookup_string() local
364 list_for_each_entry(container, &vhub->vhub_str_desc, list) { in ast_vhub_lookup_string()
365 lang_str = ast_vhub_str_of_container(container); in ast_vhub_lookup_string()
936 struct usb_gadget_string_container *container; in ast_vhub_str_container_alloc() local
938 size = sizeof(*container); in ast_vhub_str_container_alloc()
941 container = devm_kzalloc(&vhub->pdev->dev, size, GFP_KERNEL); in ast_vhub_str_container_alloc()
942 if (!container) in ast_vhub_str_container_alloc()
945 lang_str = ast_vhub_str_of_container(container); in ast_vhub_str_container_alloc()
948 return container; in ast_vhub_str_container_alloc()
971 struct usb_gadget_string_container *container; in ast_vhub_str_alloc_add() local
973 container = ast_vhub_str_container_alloc(vhub); in ast_vhub_str_alloc_add()
974 if (IS_ERR(container)) in ast_vhub_str_alloc_add()
975 return PTR_ERR(container); in ast_vhub_str_alloc_add()
977 dest_str = ast_vhub_str_of_container(container); in ast_vhub_str_alloc_add()
979 list_add_tail(&container->list, &vhub->vhub_str_desc); in ast_vhub_str_alloc_add()