Lines Matching refs:tx_desc

115 static inline void dp_tx_desc_set_magic(struct dp_tx_desc_s *tx_desc,  in dp_tx_desc_set_magic()  argument
118 tx_desc->magic = magic_pattern; in dp_tx_desc_set_magic()
121 static inline void dp_tx_desc_set_magic(struct dp_tx_desc_s *tx_desc, in dp_tx_desc_set_magic() argument
471 dp_tx_desc_clear(struct dp_tx_desc_s *tx_desc) in dp_tx_desc_clear() argument
473 tx_desc->vdev_id = DP_INVALID_VDEV_ID; in dp_tx_desc_clear()
474 tx_desc->nbuf = NULL; in dp_tx_desc_clear()
475 tx_desc->flags = 0; in dp_tx_desc_clear()
476 tx_desc->next = NULL; in dp_tx_desc_clear()
509 struct dp_tx_desc_s *tx_desc = pool->freelist; in dp_tx_get_desc_flow_pool() local
513 return tx_desc; in dp_tx_get_desc_flow_pool()
527 struct dp_tx_desc_s *tx_desc) in dp_tx_put_desc_flow_pool() argument
529 tx_desc->next = pool->freelist; in dp_tx_put_desc_flow_pool()
530 pool->freelist = tx_desc; in dp_tx_put_desc_flow_pool()
648 struct dp_tx_desc_s *tx_desc = NULL; in dp_tx_desc_alloc() local
649 struct dp_tx_desc_pool_s *pool = &soc->tx_desc[desc_pool_id]; in dp_tx_desc_alloc()
660 tx_desc = dp_tx_get_desc_flow_pool(pool); in dp_tx_desc_alloc()
661 tx_desc->pool_id = desc_pool_id; in dp_tx_desc_alloc()
662 tx_desc->flags = DP_TX_DESC_FLAG_ALLOCATED; in dp_tx_desc_alloc()
663 dp_tx_desc_set_magic(tx_desc, in dp_tx_desc_alloc()
730 return tx_desc; in dp_tx_desc_alloc()
742 dp_tx_desc_free(struct dp_soc *soc, struct dp_tx_desc_s *tx_desc, in dp_tx_desc_free() argument
745 struct dp_tx_desc_pool_s *pool = &soc->tx_desc[desc_pool_id]; in dp_tx_desc_free()
751 tx_desc->vdev_id = DP_INVALID_VDEV_ID; in dp_tx_desc_free()
752 tx_desc->nbuf = NULL; in dp_tx_desc_free()
753 tx_desc->flags = 0; in dp_tx_desc_free()
754 dp_tx_desc_set_magic(tx_desc, DP_TX_MAGIC_PATTERN_FREE); in dp_tx_desc_free()
755 dp_tx_put_desc_flow_pool(pool, tx_desc); in dp_tx_desc_free()
837 dp_tx_spcl_desc_free(struct dp_soc *soc, struct dp_tx_desc_s *tx_desc, in dp_tx_spcl_desc_free() argument
868 struct dp_tx_desc_s *tx_desc = NULL; in dp_tx_desc_alloc() local
869 struct dp_tx_desc_pool_s *pool = &soc->tx_desc[desc_pool_id]; in dp_tx_desc_alloc()
875 tx_desc = dp_tx_get_desc_flow_pool(pool); in dp_tx_desc_alloc()
876 tx_desc->pool_id = desc_pool_id; in dp_tx_desc_alloc()
877 tx_desc->flags = DP_TX_DESC_FLAG_ALLOCATED; in dp_tx_desc_alloc()
878 dp_tx_desc_set_magic(tx_desc, in dp_tx_desc_alloc()
898 return tx_desc; in dp_tx_desc_alloc()
915 dp_tx_desc_free(struct dp_soc *soc, struct dp_tx_desc_s *tx_desc, in dp_tx_desc_free() argument
918 struct dp_tx_desc_pool_s *pool = &soc->tx_desc[desc_pool_id]; in dp_tx_desc_free()
921 tx_desc->vdev_id = DP_INVALID_VDEV_ID; in dp_tx_desc_free()
922 tx_desc->nbuf = NULL; in dp_tx_desc_free()
923 tx_desc->flags = 0; in dp_tx_desc_free()
924 dp_tx_desc_set_magic(tx_desc, DP_TX_MAGIC_PATTERN_FREE); in dp_tx_desc_free()
925 dp_tx_put_desc_flow_pool(pool, tx_desc); in dp_tx_desc_free()
958 dp_tx_spcl_desc_free(struct dp_soc *soc, struct dp_tx_desc_s *tx_desc, in dp_tx_spcl_desc_free() argument
1006 void dp_tx_prefetch_desc(struct dp_tx_desc_s *tx_desc) in dp_tx_prefetch_desc() argument
1008 if (tx_desc) in dp_tx_prefetch_desc()
1009 prefetch(tx_desc); in dp_tx_prefetch_desc()
1013 void dp_tx_prefetch_desc(struct dp_tx_desc_s *tx_desc) in dp_tx_prefetch_desc() argument
1028 struct dp_tx_desc_s *tx_desc = NULL; in dp_tx_desc_alloc() local
1035 tx_desc = pool->freelist; in dp_tx_desc_alloc()
1038 if (!tx_desc) { in dp_tx_desc_alloc()
1048 tx_desc->flags = DP_TX_DESC_FLAG_ALLOCATED; in dp_tx_desc_alloc()
1052 return tx_desc; in dp_tx_desc_alloc()
1058 struct dp_tx_desc_s *tx_desc = NULL; in dp_tx_spcl_desc_alloc() local
1065 tx_desc = pool->freelist; in dp_tx_spcl_desc_alloc()
1068 if (!tx_desc) { in dp_tx_spcl_desc_alloc()
1078 tx_desc->flags = DP_TX_DESC_FLAG_ALLOCATED; in dp_tx_spcl_desc_alloc()
1079 tx_desc->flags |= DP_TX_DESC_FLAG_SPECIAL; in dp_tx_spcl_desc_alloc()
1083 return tx_desc; in dp_tx_spcl_desc_alloc()
1144 dp_tx_desc_free(struct dp_soc *soc, struct dp_tx_desc_s *tx_desc, in dp_tx_desc_free() argument
1149 dp_tx_desc_clear(tx_desc); in dp_tx_desc_free()
1152 tx_desc->next = pool->freelist; in dp_tx_desc_free()
1153 pool->freelist = tx_desc; in dp_tx_desc_free()
1160 dp_tx_spcl_desc_free(struct dp_soc *soc, struct dp_tx_desc_s *tx_desc, in dp_tx_spcl_desc_free() argument
1165 dp_tx_desc_clear(tx_desc); in dp_tx_spcl_desc_free()
1169 tx_desc->next = pool->freelist; in dp_tx_spcl_desc_free()
1170 pool->freelist = tx_desc; in dp_tx_spcl_desc_free()
1220 pool = &soc->tx_desc[pool_id]; in dp_tx_is_desc_id_valid()