Lines Matching refs:desc
46 #define HAL_TX_DESC_OFFSET(desc, block, field) \ argument
47 (((uint8_t *)desc) + HAL_OFFSET(block, field))
49 #define HAL_SET_FLD(desc, block , field) \ argument
50 (*(uint32_t *) ((uint8_t *) desc + HAL_OFFSET(block, field)))
52 #define HAL_SET_FLD_OFFSET(desc, block , field, offset) \ argument
53 (*(uint32_t *) ((uint8_t *) desc + HAL_OFFSET(block, field) + (offset)))
55 #define HAL_SET_FLD_64(desc, block, field) \ argument
56 (*(uint64_t *)((uint8_t *)desc + HAL_OFFSET(block, field)))
58 #define HAL_SET_FLD_OFFSET_64(desc, block, field, offset) \ argument
59 (*(uint64_t *)((uint8_t *)desc + HAL_OFFSET(block, field) + (offset)))
61 #define HAL_TX_DESC_SET_TLV_HDR(desc, tag, len) \ argument
66 (*(uint32_t *)desc) = temp; \
80 #define HAL_TX_DESC_GET(desc, block, field) \ argument
81 HAL_TX_MS(block, field, HAL_SET_FLD(desc, block, field))
83 #define HAL_TX_DESC_OFFSET_GET(desc, block, field, offset) \ argument
84 HAL_TX_MS(block, field, HAL_SET_FLD_OFFSET(desc, block, field, offset))
86 #define HAL_TX_DESC_SUBBLOCK_GET(desc, block, sub, field) \ argument
87 HAL_TX_MS(sub, field, HAL_SET_FLD(desc, block, sub))
89 #define HAL_TX_DESC_GET_64(desc, block, field) \ argument
90 HAL_TX_MS(block, field, HAL_SET_FLD_64(desc, block, field))
92 #define HAL_TX_DESC_OFFSET_GET_64(desc, block, field, offset) \ argument
93 HAL_TX_MS(block, field, HAL_SET_FLD_OFFSET_64(desc, block, field,\
96 #define HAL_TX_DESC_SUBBLOCK_GET_64(desc, block, sub, field) \ argument
97 HAL_TX_MS(sub, field, HAL_SET_FLD_64(desc, block, sub))
258 uint32_t desc[HAL_TX_COMPLETION_DESC_LEN_DWORDS]; member
376 static inline void hal_tx_ext_desc_set_tso_enable(void *desc, in hal_tx_ext_desc_set_tso_enable() argument
379 HAL_SET_FLD(desc, HAL_TX_MSDU_EXTENSION, TSO_ENABLE) |= in hal_tx_ext_desc_set_tso_enable()
390 static inline void hal_tx_ext_desc_set_tso_flags(void *desc, in hal_tx_ext_desc_set_tso_flags() argument
393 HAL_SET_FLD_OFFSET(desc, HAL_TX_MSDU_EXTENSION, TSO_ENABLE, 0) = in hal_tx_ext_desc_set_tso_flags()
406 static inline void hal_tx_ext_desc_set_tcp_flags(void *desc, in hal_tx_ext_desc_set_tcp_flags() argument
410 HAL_SET_FLD(desc, HAL_TX_MSDU_EXTENSION, TCP_FLAG) |= in hal_tx_ext_desc_set_tcp_flags()
423 static inline void hal_tx_ext_desc_set_msdu_length(void *desc, in hal_tx_ext_desc_set_msdu_length() argument
427 HAL_SET_FLD(desc, HAL_TX_MSDU_EXTENSION, L2_LENGTH) |= in hal_tx_ext_desc_set_msdu_length()
439 static inline void hal_tx_ext_desc_set_tcp_seq(void *desc, in hal_tx_ext_desc_set_tcp_seq() argument
442 HAL_SET_FLD(desc, HAL_TX_MSDU_EXTENSION, TCP_SEQ_NUMBER) |= in hal_tx_ext_desc_set_tcp_seq()
454 static inline void hal_tx_ext_desc_set_ip_id(void *desc, in hal_tx_ext_desc_set_ip_id() argument
457 HAL_SET_FLD(desc, HAL_TX_MSDU_EXTENSION, IP_IDENTIFICATION) |= in hal_tx_ext_desc_set_ip_id()
470 static inline void hal_tx_ext_desc_set_buffer(void *desc, in hal_tx_ext_desc_set_buffer() argument
476 HAL_SET_FLD_OFFSET(desc, HAL_TX_MSDU_EXTENSION, BUF0_PTR_31_0, in hal_tx_ext_desc_set_buffer()
480 HAL_SET_FLD_OFFSET(desc, HAL_TX_MSDU_EXTENSION, BUF0_PTR_39_32, in hal_tx_ext_desc_set_buffer()
485 HAL_SET_FLD_OFFSET(desc, HAL_TX_MSDU_EXTENSION, BUF0_LEN, in hal_tx_ext_desc_set_buffer()
499 static inline void hal_tx_ext_desc_get_frag_info(void *desc, uint8_t frag_num, in hal_tx_ext_desc_get_frag_info() argument
505 *iova = HAL_TX_DESC_OFFSET_GET(desc, HAL_TX_MSDU_EXTENSION, in hal_tx_ext_desc_get_frag_info()
508 iova_hi = HAL_TX_DESC_OFFSET_GET(desc, HAL_TX_MSDU_EXTENSION, in hal_tx_ext_desc_get_frag_info()
512 *len = HAL_TX_DESC_OFFSET_GET(desc, HAL_TX_MSDU_EXTENSION, BUF0_LEN, in hal_tx_ext_desc_get_frag_info()
525 static inline void hal_tx_ext_desc_set_buffer0_param(void *desc, in hal_tx_ext_desc_set_buffer0_param() argument
530 HAL_SET_FLD(desc, HAL_TX_MSDU_EXTENSION, BUF0_PTR_31_0) |= in hal_tx_ext_desc_set_buffer0_param()
533 HAL_SET_FLD(desc, HAL_TX_MSDU_EXTENSION, BUF0_PTR_39_32) |= in hal_tx_ext_desc_set_buffer0_param()
537 HAL_SET_FLD(desc, HAL_TX_MSDU_EXTENSION, BUF0_LEN) |= in hal_tx_ext_desc_set_buffer0_param()
550 static inline void hal_tx_ext_desc_set_buffer1_param(void *desc, in hal_tx_ext_desc_set_buffer1_param() argument
555 HAL_SET_FLD(desc, HAL_TX_MSDU_EXTENSION, BUF1_PTR_31_0) |= in hal_tx_ext_desc_set_buffer1_param()
558 HAL_SET_FLD(desc, HAL_TX_MSDU_EXTENSION, BUF1_PTR_39_32) |= in hal_tx_ext_desc_set_buffer1_param()
562 HAL_SET_FLD(desc, HAL_TX_MSDU_EXTENSION, BUF1_LEN) |= in hal_tx_ext_desc_set_buffer1_param()
575 static inline void hal_tx_ext_desc_set_buffer2_param(void *desc, in hal_tx_ext_desc_set_buffer2_param() argument
580 HAL_SET_FLD(desc, HAL_TX_MSDU_EXTENSION, BUF2_PTR_31_0) |= in hal_tx_ext_desc_set_buffer2_param()
584 HAL_SET_FLD(desc, HAL_TX_MSDU_EXTENSION, BUF2_PTR_39_32) |= in hal_tx_ext_desc_set_buffer2_param()
588 HAL_SET_FLD(desc, HAL_TX_MSDU_EXTENSION, BUF2_LEN) |= in hal_tx_ext_desc_set_buffer2_param()
614 uint32_t *desc = (uint32_t *) hal_tx_ext_desc; in hal_tx_ext_desc_get_tso_enable() local
615 return (*desc & HAL_TX_MSDU_EXTENSION_TSO_ENABLE_MASK) >> in hal_tx_ext_desc_get_tso_enable()
763 "DWORD[i] = 0x%x", comp->desc[i]); in hal_dump_comp_desc()
778 uint8_t *desc = hw_desc + HAL_TX_COMP_HTT_STATUS_OFFSET; in hal_tx_comp_get_htt_desc() local
780 qdf_mem_copy(htt_desc, desc, HAL_TX_COMP_HTT_STATUS_LEN); in hal_tx_comp_get_htt_desc()
843 static inline void hal_tx_comp_get_status(void *desc, void *ts, in hal_tx_comp_get_status() argument
848 hal_soc->ops->hal_tx_comp_get_status(desc, ts, hal_soc); in hal_tx_comp_get_status()