Lines Matching refs:di

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