Lines Matching refs:str
49 new_nd->str.idx = tmp_nd->str.idx + 1; in desc_add_and_update_idx()
51 LOG_DBG("Add %u behind %u", new_nd->str.idx, tmp_nd->str.idx); in desc_add_and_update_idx()
58 new_nd->str.idx = tmp_nd->str.idx + 1; in desc_add_and_update_idx()
60 LOG_DBG("Add %u before %u", new_nd->str.idx, next_nd->str.idx); in desc_add_and_update_idx()
65 if (tmp_nd->str.idx != (next_nd->str.idx - 1)) { in desc_add_and_update_idx()
67 new_nd->str.idx = tmp_nd->str.idx + 1; in desc_add_and_update_idx()
70 tmp_nd->str.idx, next_nd->str.idx, new_nd->str.idx); in desc_add_and_update_idx()
76 new_nd->str.idx = 0; in desc_add_and_update_idx()
78 LOG_DBG("Added first descriptor node (usage type %u)", new_nd->str.utype); in desc_add_and_update_idx()
91 if (desc_nd->str.idx == idx) { in usbd_get_descriptor()
113 (void *)tmp, tmp->str.utype); in usbd_desc_remove_all()
163 switch (desc_nd->str.utype) { in usbd_add_descriptor()
167 hs_desc->iManufacturer = desc_nd->str.idx; in usbd_add_descriptor()
168 fs_desc->iManufacturer = desc_nd->str.idx; in usbd_add_descriptor()
171 hs_desc->iProduct = desc_nd->str.idx; in usbd_add_descriptor()
172 fs_desc->iProduct = desc_nd->str.idx; in usbd_add_descriptor()
175 hs_desc->iSerialNumber = desc_nd->str.idx; in usbd_add_descriptor()
176 fs_desc->iSerialNumber = desc_nd->str.idx; in usbd_add_descriptor()
191 return desc_nd->str.idx; in usbd_str_desc_get_idx()
203 desc_nd->str.idx = 0U; in usbd_remove_descriptor()