Lines Matching refs:busid
43 * Find the index of the busid by name.
46 static int get_busid_idx(const char *busid)
54 if (!strncmp(busid_table[i].name, busid, BUSID_SIZE)) {
65 struct bus_id_priv *get_busid_priv(const char *busid)
71 idx = get_busid_idx(busid);
88 static int add_match_busid(char *busid)
95 if (get_busid_idx(busid) >= 0) {
103 strscpy(busid_table[i].name, busid, BUSID_SIZE);
120 int del_match_busid(char *busid)
126 idx = get_busid_idx(busid);
170 char busid[BUSID_SIZE];
175 /* busid needs to include \0 termination */
176 if (strscpy(busid, buf + 4, BUSID_SIZE) < 0)
180 if (add_match_busid(busid) < 0)
183 pr_debug("add busid %s\n", busid);
188 if (del_match_busid(busid) < 0)
191 pr_debug("del busid %s\n", busid);
199 static int do_rebind(char *busid, struct bus_id_priv *busid_priv)
261 /* release the busid lock */