Searched refs:first_seg (Results 1 - 10 of 10) sorted by relevance

/linux-4.4.14/drivers/usb/host/
H A Dxhci-mem.c218 struct xhci_segment *first_seg, xhci_update_stream_segment_mapping()
229 seg = first_seg; xhci_update_stream_segment_mapping()
238 } while (seg != first_seg); xhci_update_stream_segment_mapping()
244 seg = first_seg; xhci_update_stream_segment_mapping()
250 } while (seg != first_seg); xhci_update_stream_segment_mapping()
262 seg = ring->first_seg; xhci_remove_stream_mapping()
266 } while (seg != ring->first_seg); xhci_remove_stream_mapping()
272 ring->first_seg, ring->last_seg, mem_flags); xhci_update_stream_mapping()
281 if (ring->first_seg) { xhci_ring_free()
284 xhci_free_segments_for_ring(xhci, ring->first_seg); xhci_ring_free()
294 ring->enqueue = ring->first_seg->trbs; xhci_initialize_ring_info()
295 ring->enq_seg = ring->first_seg; xhci_initialize_ring_info()
297 ring->deq_seg = ring->first_seg; xhci_initialize_ring_info()
379 ret = xhci_alloc_segments_for_ring(xhci, &ring->first_seg, xhci_ring_alloc()
429 struct xhci_segment *seg = ring->first_seg; xhci_reinit_cached_ring()
443 } while (seg != ring->first_seg); xhci_reinit_cached_ring()
718 addr = cur_ring->first_seg->dma | xhci_alloc_stream_info()
1197 ep0_ctx->deq = cpu_to_le64(dev->eps[0].ring->first_seg->dma | xhci_setup_addressable_virt_dev()
1439 ep_ctx->deq = cpu_to_le64(ep_ring->first_seg->dma | ep_ring->cycle_state); xhci_endpoint_init()
1936 { xhci->event_ring->first_seg->dma - 16, NULL }, xhci_check_trb_in_td_math()
1938 { xhci->event_ring->first_seg->dma - 1, NULL }, xhci_check_trb_in_td_math()
1940 { xhci->event_ring->first_seg->dma, xhci->event_ring->first_seg }, xhci_check_trb_in_td_math()
1942 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 1)*16, xhci_check_trb_in_td_math()
1943 xhci->event_ring->first_seg }, xhci_check_trb_in_td_math()
1945 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 1)*16 + 1, NULL }, xhci_check_trb_in_td_math()
1947 { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT)*16, NULL }, xhci_check_trb_in_td_math()
1959 { .input_seg = xhci->event_ring->first_seg, xhci_check_trb_in_td_math()
1960 .start_trb = xhci->event_ring->first_seg->trbs, xhci_check_trb_in_td_math()
1961 .end_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], xhci_check_trb_in_td_math()
1962 .input_dma = xhci->cmd_ring->first_seg->dma, xhci_check_trb_in_td_math()
1966 { .input_seg = xhci->event_ring->first_seg, xhci_check_trb_in_td_math()
1967 .start_trb = xhci->event_ring->first_seg->trbs, xhci_check_trb_in_td_math()
1968 .end_trb = &xhci->cmd_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], xhci_check_trb_in_td_math()
1969 .input_dma = xhci->cmd_ring->first_seg->dma, xhci_check_trb_in_td_math()
1973 { .input_seg = xhci->event_ring->first_seg, xhci_check_trb_in_td_math()
1974 .start_trb = xhci->cmd_ring->first_seg->trbs, xhci_check_trb_in_td_math()
1975 .end_trb = &xhci->cmd_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], xhci_check_trb_in_td_math()
1976 .input_dma = xhci->cmd_ring->first_seg->dma, xhci_check_trb_in_td_math()
1980 { .input_seg = xhci->event_ring->first_seg, xhci_check_trb_in_td_math()
1981 .start_trb = &xhci->event_ring->first_seg->trbs[0], xhci_check_trb_in_td_math()
1982 .end_trb = &xhci->event_ring->first_seg->trbs[3], xhci_check_trb_in_td_math()
1983 .input_dma = xhci->event_ring->first_seg->dma + 4*16, xhci_check_trb_in_td_math()
1987 { .input_seg = xhci->event_ring->first_seg, xhci_check_trb_in_td_math()
1988 .start_trb = &xhci->event_ring->first_seg->trbs[3], xhci_check_trb_in_td_math()
1989 .end_trb = &xhci->event_ring->first_seg->trbs[6], xhci_check_trb_in_td_math()
1990 .input_dma = xhci->event_ring->first_seg->dma + 2*16, xhci_check_trb_in_td_math()
1994 { .input_seg = xhci->event_ring->first_seg, xhci_check_trb_in_td_math()
1995 .start_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 3], xhci_check_trb_in_td_math()
1996 .end_trb = &xhci->event_ring->first_seg->trbs[1], xhci_check_trb_in_td_math()
1997 .input_dma = xhci->event_ring->first_seg->dma + 2*16, xhci_check_trb_in_td_math()
2001 { .input_seg = xhci->event_ring->first_seg, xhci_check_trb_in_td_math()
2002 .start_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 3], xhci_check_trb_in_td_math()
2003 .end_trb = &xhci->event_ring->first_seg->trbs[1], xhci_check_trb_in_td_math()
2004 .input_dma = xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 4)*16, xhci_check_trb_in_td_math()
2008 { .input_seg = xhci->event_ring->first_seg, xhci_check_trb_in_td_math()
2009 .start_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 3], xhci_check_trb_in_td_math()
2010 .end_trb = &xhci->event_ring->first_seg->trbs[1], xhci_check_trb_in_td_math()
2011 .input_dma = xhci->cmd_ring->first_seg->dma + 2*16, xhci_check_trb_in_td_math()
2022 xhci->event_ring->first_seg, xhci_check_trb_in_td_math()
2023 xhci->event_ring->first_seg->trbs, xhci_check_trb_in_td_math()
2024 &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1], xhci_check_trb_in_td_math()
2451 (unsigned long long)xhci->cmd_ring->first_seg->dma); xhci_mem_init()
2456 (xhci->cmd_ring->first_seg->dma & (u64) ~CMD_RING_RSVD_BITS) | xhci_mem_init()
2515 for (val = 0, seg = xhci->event_ring->first_seg; val < ERST_NUM_SEGS; val++) { xhci_mem_init()
215 xhci_update_stream_segment_mapping( struct radix_tree_root *trb_address_map, struct xhci_ring *ring, struct xhci_segment *first_seg, struct xhci_segment *last_seg, gfp_t mem_flags) xhci_update_stream_segment_mapping() argument
H A Dxhci-dbg.c375 struct xhci_segment *first_seg = ring->first_seg; xhci_debug_ring() local
376 xhci_debug_segment(xhci, first_seg); xhci_debug_ring()
382 for (seg = first_seg->next; seg != first_seg; seg = seg->next) xhci_debug_ring()
H A Dxhci.h1377 struct xhci_segment *first_seg; member in struct:xhci_ring
H A Dxhci.c831 ring->deq_seg = ring->first_seg; xhci_clear_command_ring()
832 ring->dequeue = ring->first_seg->trbs; xhci_clear_command_ring()
H A Dxhci-ring.c98 (seg->next == xhci->event_ring->first_seg); last_trb_on_last_seg()
/linux-4.4.14/drivers/infiniband/hw/mthca/
H A Dmthca_mr.c44 u32 first_seg; member in struct:mthca_mtt
226 mtt->first_seg = mthca_alloc_mtt_range(dev, mtt->order, buddy); __mthca_alloc_mtt()
227 if (mtt->first_seg == -1) { __mthca_alloc_mtt()
245 mthca_buddy_free(mtt->buddy, mtt->first_seg, mtt->order); mthca_free_mtt()
248 mtt->first_seg, mthca_free_mtt()
249 mtt->first_seg + (1 << mtt->order) - 1); mthca_free_mtt()
269 mtt->first_seg * dev->limits.mtt_seg_size + __mthca_write_mtt()
322 mtts = dev->mr_table.tavor_fmr.mtt_base + mtt->first_seg * dev->limits.mtt_seg_size + mthca_tavor_write_mtt_seg()
343 mtts = mthca_table_find(dev->mr_table.mtt_table, mtt->first_seg + mthca_arbel_write_mtt_seg()
478 mr->mtt->first_seg * dev->limits.mtt_seg_size); mthca_mr_alloc()
613 mtt_seg = mr->mtt->first_seg * dev->limits.mtt_seg_size; mthca_fmr_alloc()
617 mr->mtt->first_seg, mthca_fmr_alloc()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
H A Dtrx.c450 u8 first_seg = 0; rtl92ee_rx_check_dma_ok() local
460 first_seg = (u8)GET_RX_BUFFER_DESC_FS(header_desc); rtl92ee_rx_check_dma_ok()
464 while (total_len == 0 && first_seg == 0 && last_seg == 0) { rtl92ee_rx_check_dma_ok()
467 first_seg = (u8)GET_RX_BUFFER_DESC_FS(header_desc); rtl92ee_rx_check_dma_ok()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
H A Dmr.c222 u32 first_seg; __mlx4_free_mtt_range() local
227 first_seg = offset / (1 << log_mtts_per_seg); __mlx4_free_mtt_range()
229 mlx4_buddy_free(&mr_table->mtt_buddy, first_seg, seg_order); __mlx4_free_mtt_range()
H A Dmlx4.h965 void __mlx4_free_mtt_range(struct mlx4_dev *dev, u32 first_seg, int order);
/linux-4.4.14/drivers/net/ethernet/micrel/
H A Dksz884x.c903 u32 first_seg:1; member in struct:ksz_desc_tx_buf
923 u32 first_seg:1;
3989 hw->tx_desc_info.cur->sw.buf.tx.first_seg = 1; hw_alloc_pkt()

Completed in 716 milliseconds