Changeset 83c439c in mainline for uspace/drv/uhci-hcd/iface.c


Ignore:
Timestamp:
2011-02-12T02:12:52Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2806cd2
Parents:
7dd3318
Message:

Rename tracker⇒batch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/iface.c

    r7dd3318 r83c439c  
    109109        dev_speed_t speed = FULL_SPEED;
    110110
    111         tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_INTERRUPT,
     111        batch_t *batch = batch_get(dev, target, USB_TRANSFER_INTERRUPT,
    112112            max_packet_size, speed, data, size, NULL, 0, NULL, callback, arg);
    113         if (!tracker)
    114                 return ENOMEM;
    115         tracker_interrupt_out(tracker);
     113        if (!batch)
     114                return ENOMEM;
     115        batch_interrupt_out(batch);
    116116        return EOK;
    117117}
     
    124124        dev_speed_t speed = FULL_SPEED;
    125125
    126         tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_INTERRUPT,
     126        batch_t *batch = batch_get(dev, target, USB_TRANSFER_INTERRUPT,
    127127            max_packet_size, speed, data, size, NULL, 0, callback, NULL, arg);
    128         if (!tracker)
    129                 return ENOMEM;
    130         tracker_interrupt_in(tracker);
     128        if (!batch)
     129                return ENOMEM;
     130        batch_interrupt_in(batch);
    131131        return EOK;
    132132}
     
    139139        dev_speed_t speed = FULL_SPEED;
    140140
    141         tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,
     141        batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL,
    142142            max_packet_size, speed, data, size, setup_data, setup_size,
    143143            NULL, callback, arg);
    144         if (!tracker)
    145                 return ENOMEM;
    146         tracker_control_write(tracker);
     144        if (!batch)
     145                return ENOMEM;
     146        batch_control_write(batch);
    147147        return EOK;
    148148}
     
    155155        dev_speed_t speed = FULL_SPEED;
    156156
    157         tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,
     157        batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL,
    158158            max_packet_size, speed, data, size, setup_data, setup_size, callback,
    159159            NULL, arg);
    160         if (!tracker)
    161                 return ENOMEM;
    162         tracker_control_read(tracker);
     160        if (!batch)
     161                return ENOMEM;
     162        batch_control_read(batch);
    163163        return EOK;
    164164}
     
    172172
    173173        usb_log_warning("Using deprecated API %s.\n", __FUNCTION__);
    174         tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,
     174        batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL,
    175175            max_packet_size, speed, NULL, 0, data, size, NULL, callback, arg);
    176         if (!tracker)
    177                 return ENOMEM;
    178         tracker_control_setup_old(tracker);
     176        if (!batch)
     177                return ENOMEM;
     178        batch_control_setup_old(batch);
    179179        return EOK;
    180180}
     
    188188
    189189        usb_log_warning("Using deprecated API %s.\n", __FUNCTION__);
    190         tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,
     190        batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL,
    191191            max_packet_size, speed, data, size, NULL, 0, NULL, callback, arg);
    192         if (!tracker)
    193                 return ENOMEM;
    194         tracker_control_write_data_old(tracker);
     192        if (!batch)
     193                return ENOMEM;
     194        batch_control_write_data_old(batch);
    195195        return EOK;
    196196}
     
    203203
    204204        usb_log_warning("Using deprecated API %s.\n", __FUNCTION__);
    205         tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,
     205        batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL,
    206206            max_packet_size, speed, NULL, 0, NULL, 0, callback, NULL, arg);
    207         if (!tracker)
    208                 return ENOMEM;
    209         tracker_control_write_status_old(tracker);
     207        if (!batch)
     208                return ENOMEM;
     209        batch_control_write_status_old(batch);
    210210        return EOK;
    211211}
     
    219219
    220220        usb_log_warning("Using deprecated API %s.\n", __FUNCTION__);
    221         tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,
     221        batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL,
    222222            max_packet_size, speed, NULL, 0, data, size, NULL, callback, arg);
    223         if (!tracker)
    224                 return ENOMEM;
    225         tracker_control_setup_old(tracker);
     223        if (!batch)
     224                return ENOMEM;
     225        batch_control_setup_old(batch);
    226226        return EOK;
    227227}
     
    235235
    236236        usb_log_warning("Using deprecated API %s.\n", __FUNCTION__);
    237         tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,
     237        batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL,
    238238            max_packet_size, speed, data, size, NULL, 0, callback, NULL, arg);
    239         if (!tracker)
    240                 return ENOMEM;
    241         tracker_control_read_data_old(tracker);
     239        if (!batch)
     240                return ENOMEM;
     241        batch_control_read_data_old(batch);
    242242        return EOK;
    243243}
     
    250250
    251251        usb_log_warning("Using deprecated API %s.\n", __FUNCTION__);
    252         tracker_t *tracker = tracker_get(dev, target, USB_TRANSFER_CONTROL,
     252        batch_t *batch = batch_get(dev, target, USB_TRANSFER_CONTROL,
    253253            max_packet_size, speed, NULL, 0, NULL, 0, NULL, callback, arg);
    254         if (!tracker)
    255                 return ENOMEM;
    256         tracker_control_read_status_old(tracker);
     254        if (!batch)
     255                return ENOMEM;
     256        batch_control_read_status_old(batch);
    257257        return EOK;
    258258}
Note: See TracChangeset for help on using the changeset viewer.