Lines Matching refs:new_nd
32 struct usbd_desc_node *const new_nd) in desc_add_and_update_idx() argument
39 if (!desc_type_equal(tmp_nd, new_nd)) { in desc_add_and_update_idx()
49 new_nd->str.idx = tmp_nd->str.idx + 1; in desc_add_and_update_idx()
50 sys_dlist_append(&uds_ctx->descriptors, &new_nd->node); 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()
56 if (!desc_type_equal(next_nd, new_nd)) { in desc_add_and_update_idx()
58 new_nd->str.idx = tmp_nd->str.idx + 1; in desc_add_and_update_idx()
59 sys_dlist_insert(&next_nd->node, &new_nd->node); 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()
67 new_nd->str.idx = tmp_nd->str.idx + 1; in desc_add_and_update_idx()
68 sys_dlist_insert(&next_nd->node, &new_nd->node); 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()
77 sys_dlist_append(&uds_ctx->descriptors, &new_nd->node); 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()