Lines Matching refs:channel

93 	if (fifo->channel.dtr_init) {
94 fifo->channel.dtr_init(fifo, (xge_hal_dtr_h)txdp, index,
95 fifo->channel.userdata, XGE_HAL_CHANNEL_OC_NORMAL);
130 xge_os_dma_unmap(fifo->channel.pdev,
140 xge_os_dma_free(fifo->channel.pdev,
164 hldev = (xge_hal_device_t *)fifo->channel.devh;
169 xge_os_spin_lock_init(&fifo->channel.reserve_lock, hldev->pdev);
171 xge_os_spin_lock_init_irq(&fifo->channel.reserve_lock, hldev->irqh);
177 xge_os_spin_lock_init(&fifo->channel.post_lock, hldev->pdev);
178 fifo->post_lock_ptr = &fifo->channel.post_lock;
184 xge_os_spin_lock_init_irq(&fifo->channel.post_lock,
186 fifo->post_lock_ptr = &fifo->channel.post_lock;
227 * routine which will essentially stop channel and free the resources.
252 fifo->channel.dtr_init = attr->dtr_init;
253 fifo->channel.userdata = attr->userdata;
282 fifo->channel.reserve_length, fifo->channel.reserve_top,
288 for ( i = 0; i < fifo->channel.reserve_length; i++) {
290 " handle:%p", i, fifo->channel.reserve_arr[i]);
294 xge_assert(fifo->channel.reserve_length);
296 max_arr_index = fifo->channel.reserve_length - 1;
297 max_arr_index -=fifo->channel.reserve_top;
299 mid_point = (fifo->channel.reserve_length - fifo->channel.reserve_top)/2;
301 dtrh = fifo->channel.reserve_arr[i];
302 fifo->channel.reserve_arr[i] =
303 fifo->channel.reserve_arr[max_arr_index - i];
304 fifo->channel.reserve_arr[max_arr_index - i] = dtrh;
308 for ( i = 0; i < fifo->channel.reserve_length; i++) {
310 " handle:%p", i, fifo->channel.reserve_arr[i]);
321 xge_hal_device_t *hldev = (xge_hal_device_t *)fifo->channel.devh;
330 xge_os_spin_lock_destroy(&fifo->channel.reserve_lock, hldev->pdev);
332 xge_os_spin_lock_destroy_irq(&fifo->channel.reserve_lock, hldev->pdev);
336 xge_os_spin_lock_destroy(&fifo->channel.post_lock, hldev->pdev);
338 xge_os_spin_lock_destroy_irq(&fifo->channel.post_lock,
463 xge_hal_channel_t *channel = NULL;
470 /* find channel */
477 channel = tmp;
482 if (channel) {
483 xge_hal_channel_msix_set(channel,
502 xge_os_dma_unmap(fifo->channel.pdev,
512 xge_os_dma_free(fifo->channel.pdev,
535 txdl_priv->align_vaddr = (char *)xge_os_dma_malloc(fifo->channel.pdev,
546 txdl_priv->align_dma_addr = xge_os_dma_map(fifo->channel.pdev,