Lines Matching refs:di
67 copy_info_hidraw(fido_dev_info_t *di, const char *path)
75 memset(di, 0, sizeof(*di));
86 (di->path = strdup(path)) == NULL ||
87 (di->manufacturer = strdup(UHID_VENDOR)) == NULL ||
88 (di->product = strdup(rawname)) == NULL)
90 di->vendor_id = devinfo.vendor;
91 di->product_id = devinfo.product;
93 if ((di->path = strdup(path)) == NULL ||
94 (di->manufacturer = strdup(udi.udi_vendor)) == NULL ||
95 (di->product = strdup(udi.udi_product)) == NULL)
97 di->vendor_id = (int16_t)udi.udi_vendorNo;
98 di->product_id = (int16_t)udi.udi_productNo;
107 free(di->path);
108 free(di->manufacturer);
109 free(di->product);
110 explicit_bzero(di, sizeof(*di));
118 copy_info_uhid(fido_dev_info_t *di, const char *path)
124 memset(di, 0, sizeof(*di));
137 if ((di->path = strdup(path)) == NULL ||
138 (di->manufacturer = strdup(udi.udi_vendor)) == NULL ||
139 (di->product = strdup(udi.udi_product)) == NULL)
141 di->vendor_id = (int16_t)udi.udi_vendorNo;
142 di->product_id = (int16_t)udi.udi_productNo;
150 free(di->path);
151 free(di->manufacturer);
152 free(di->product);
153 explicit_bzero(di, sizeof(*di));