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()
171 char busid[BUSID_SIZE]; in match_busid_store() local
177 len = strlcpy(busid, buf + 4, BUSID_SIZE); in match_busid_store()
178 if (sizeof(busid) <= len) in match_busid_store()
182 if (add_match_busid(busid) < 0) in match_busid_store()
185 pr_debug("add busid %s\n", busid); in match_busid_store()
190 if (del_match_busid(busid) < 0) in match_busid_store()
193 pr_debug("del busid %s\n", busid); in match_busid_store()
201 static int do_rebind(char *busid, struct bus_id_priv *busid_priv) in do_rebind() argument