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