Lines Matching defs:vendorid
27 u_int16_t vendorid;
33 u_int16_t vendorid, productid;
83 const char *names_vendor(u_int16_t vendorid)
87 v = vendors[hashnum(vendorid)];
89 if (v->vendorid == vendorid)
94 const char *names_product(u_int16_t vendorid, u_int16_t productid)
98 p = products[hashnum((vendorid << 16) | productid)];
100 if (p->vendorid == vendorid && p->productid == productid)
188 static int new_vendor(const char *name, u_int16_t vendorid)
191 unsigned int h = hashnum(vendorid);
195 if (v->vendorid == vendorid)
201 v->vendorid = vendorid;
207 static int new_product(const char *name, u_int16_t vendorid,
211 unsigned int h = hashnum((vendorid << 16) | productid);
215 if (p->vendorid == vendorid && p->productid == productid)
221 p->vendorid = vendorid;