Home
last modified time | relevance | path

Searched refs:swap_bin_len (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/wireless/ath/ath10k/
H A Dswap.c90 ath10k_swap_code_seg_alloc(struct ath10k *ar, size_t swap_bin_len) in ath10k_swap_code_seg_alloc() argument
96 swap_bin_len = roundup(swap_bin_len, 2); in ath10k_swap_code_seg_alloc()
97 if (swap_bin_len > ATH10K_SWAP_CODE_SEG_BIN_LEN_MAX) { in ath10k_swap_code_seg_alloc()
99 swap_bin_len, ATH10K_SWAP_CODE_SEG_BIN_LEN_MAX); in ath10k_swap_code_seg_alloc()
107 virt_addr = dma_alloc_coherent(ar->dev, swap_bin_len, &paddr, in ath10k_swap_code_seg_alloc()
113 seg_info->seg_hw_info.size = __cpu_to_le32(swap_bin_len); in ath10k_swap_code_seg_alloc()
114 seg_info->seg_hw_info.swap_size = __cpu_to_le32(swap_bin_len); in ath10k_swap_code_seg_alloc()
117 seg_info->seg_hw_info.size_log2 = __cpu_to_le32(ilog2(swap_bin_len)); in ath10k_swap_code_seg_alloc()