Changeset 078e0e6 in mainline
- Timestamp:
- 2017-10-05T16:21:02Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e9e24f2
- Parents:
- 4930b15
- Location:
- uspace/drv/bus/usb/xhci
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/commands.c
r4930b15 r078e0e6 95 95 xhci_cmd_t *xhci_cmd_alloc(void) 96 96 { 97 xhci_cmd_t *cmd = malloc 32(sizeof(xhci_cmd_t));97 xhci_cmd_t *cmd = malloc(sizeof(xhci_cmd_t)); 98 98 xhci_cmd_init(cmd); 99 99 … … 120 120 { 121 121 xhci_cmd_fini(cmd); 122 free 32(cmd);122 free(cmd); 123 123 } 124 124 -
uspace/drv/bus/usb/xhci/hc.c
r4930b15 r078e0e6 193 193 return ENOMEM; 194 194 195 hc->dcbaa_virt = malloc 32((1 + hc->max_slots) * sizeof(xhci_virt_device_ctx_t));195 hc->dcbaa_virt = malloc((1 + hc->max_slots) * sizeof(xhci_virt_device_ctx_t)); 196 196 if (!hc->dcbaa_virt) { 197 197 err = ENOMEM; -
uspace/drv/bus/usb/xhci/rh.c
r4930b15 r078e0e6 103 103 // xhci_cmd_fini(&cmd); 104 104 // 105 // xhci_input_ctx_t *ictx = malloc 32(sizeof(xhci_input_ctx_t));105 // xhci_input_ctx_t *ictx = malloc(sizeof(xhci_input_ctx_t)); 106 106 // if (!ictx) { 107 107 // return ENOMEM; … … 119 119 // XHCI_SLOT_ROUTE_STRING_SET(ictx->slot_ctx, route_str); 120 120 // 121 // xhci_trb_ring_t *ep_ring = malloc 32(sizeof(xhci_trb_ring_t));121 // xhci_trb_ring_t *ep_ring = malloc(sizeof(xhci_trb_ring_t)); 122 122 // if (!ep_ring) { 123 123 // err = ENOMEM; … … 144 144 // 145 145 // // TODO: What's the alignment? 146 // xhci_device_ctx_t *dctx = malloc 32(sizeof(xhci_device_ctx_t));146 // xhci_device_ctx_t *dctx = malloc(sizeof(xhci_device_ctx_t)); 147 147 // if (!dctx) { 148 148 // err = ENOMEM; … … 171 171 // err_dctx: 172 172 // if (dctx) { 173 // free 32(dctx);173 // free(dctx); 174 174 // hc->dcbaa[slot_id] = 0; 175 175 // memset(&hc->dcbaa_virt[slot_id], 0, sizeof(xhci_virt_device_ctx_t)); … … 178 178 // if (ep_ring) { 179 179 // xhci_trb_ring_fini(ep_ring); 180 // free 32(ep_ring);180 // free(ep_ring); 181 181 // } 182 182 // err_ictx: 183 // free 32(ictx);183 // free(ictx); 184 184 // return err; 185 185 // }
Note:
See TracChangeset
for help on using the changeset viewer.