Lines Matching full:hosts
69 struct memstick_host *hosts[]; member
803 if (!jm->hosts[cnt]) in jmb38x_ms_suspend()
805 memstick_suspend_host(jm->hosts[cnt]); in jmb38x_ms_suspend()
821 if (!jm->hosts[rc]) in jmb38x_ms_resume()
823 memstick_resume_host(jm->hosts[rc]); in jmb38x_ms_resume()
824 memstick_detect_change(jm->hosts[rc]); in jmb38x_ms_resume()
930 jm = kzalloc(struct_size(jm, hosts, cnt), GFP_KERNEL); in jmb38x_ms_probe()
941 jm->hosts[cnt] = jmb38x_ms_alloc_host(jm, cnt); in jmb38x_ms_probe()
942 if (!jm->hosts[cnt]) in jmb38x_ms_probe()
945 rc = memstick_add_host(jm->hosts[cnt]); in jmb38x_ms_probe()
948 jmb38x_ms_free_host(jm->hosts[cnt]); in jmb38x_ms_probe()
949 jm->hosts[cnt] = NULL; in jmb38x_ms_probe()
977 if (!jm->hosts[cnt]) in jmb38x_ms_remove()
980 host = memstick_priv(jm->hosts[cnt]); in jmb38x_ms_remove()
982 jm->hosts[cnt]->request = jmb38x_ms_dummy_submit; in jmb38x_ms_remove()
990 jmb38x_ms_complete_cmd(jm->hosts[cnt], 1); in jmb38x_ms_remove()
994 memstick_remove_host(jm->hosts[cnt]); in jmb38x_ms_remove()
997 jmb38x_ms_free_host(jm->hosts[cnt]); in jmb38x_ms_remove()