Lines Matching refs:container
304 ast_vhub_str_of_container(struct usb_gadget_string_container *container) in ast_vhub_str_of_container() argument
306 return (struct usb_gadget_strings *)container->stash; in ast_vhub_str_of_container()
314 struct usb_gadget_string_container *container; in ast_vhub_collect_languages() local
320 list_for_each_entry(container, &vhub->vhub_str_desc, list) { in ast_vhub_collect_languages()
324 lang_str = ast_vhub_str_of_container(container); in ast_vhub_collect_languages()
339 struct usb_gadget_string_container *container; in ast_vhub_lookup_string() local
341 list_for_each_entry(container, &vhub->vhub_str_desc, list) { in ast_vhub_lookup_string()
342 lang_str = ast_vhub_str_of_container(container); in ast_vhub_lookup_string()
911 struct usb_gadget_string_container *container; in ast_vhub_str_container_alloc() local
913 size = sizeof(*container); in ast_vhub_str_container_alloc()
916 container = devm_kzalloc(&vhub->pdev->dev, size, GFP_KERNEL); in ast_vhub_str_container_alloc()
917 if (!container) in ast_vhub_str_container_alloc()
920 lang_str = ast_vhub_str_of_container(container); in ast_vhub_str_container_alloc()
923 return container; in ast_vhub_str_container_alloc()
946 struct usb_gadget_string_container *container; in ast_vhub_str_alloc_add() local
948 container = ast_vhub_str_container_alloc(vhub); in ast_vhub_str_alloc_add()
949 if (IS_ERR(container)) in ast_vhub_str_alloc_add()
950 return PTR_ERR(container); in ast_vhub_str_alloc_add()
952 dest_str = ast_vhub_str_of_container(container); in ast_vhub_str_alloc_add()
954 list_add_tail(&container->list, &vhub->vhub_str_desc); in ast_vhub_str_alloc_add()