Lines Matching refs:busid
46 static int get_busid_idx(const char *busid) in get_busid_idx() argument
54 if (!strncmp(busid_table[i].name, busid, BUSID_SIZE)) { in get_busid_idx()
65 struct bus_id_priv *get_busid_priv(const char *busid) in get_busid_priv() argument
71 idx = get_busid_idx(busid); in get_busid_priv()
88 static int add_match_busid(char *busid) in add_match_busid() argument
95 if (get_busid_idx(busid) >= 0) { in add_match_busid()
103 strscpy(busid_table[i].name, busid, BUSID_SIZE); in add_match_busid()
120 int del_match_busid(char *busid) in del_match_busid() argument
126 idx = get_busid_idx(busid); in del_match_busid()
170 char busid[BUSID_SIZE]; in match_busid_store() local
176 if (strscpy(busid, buf + 4, BUSID_SIZE) < 0) in match_busid_store()
180 if (add_match_busid(busid) < 0) in match_busid_store()
183 pr_debug("add busid %s\n", busid); in match_busid_store()
188 if (del_match_busid(busid) < 0) in match_busid_store()
191 pr_debug("del busid %s\n", busid); in match_busid_store()
199 static int do_rebind(char *busid, struct bus_id_priv *busid_priv) in do_rebind() argument