|
@@ -48,6 +48,7 @@
|
|
|
#include <qdf_module.h>
|
|
|
#include <qdf_atomic.h>
|
|
|
#include <pld_common.h>
|
|
|
+#include <qdf_module.h>
|
|
|
|
|
|
#if defined(FEATURE_TSO)
|
|
|
#include <net/ipv6.h>
|
|
@@ -165,7 +166,7 @@ void qdf_nbuf_tx_desc_count_display(void)
|
|
|
nbuf_tx_mgmt[QDF_NBUF_TX_PKT_FREE],
|
|
|
nbuf_tx_mgmt[QDF_NBUF_TX_PKT_FREE]);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(qdf_nbuf_tx_desc_count_display);
|
|
|
+qdf_export_symbol(qdf_nbuf_tx_desc_count_display);
|
|
|
|
|
|
/**
|
|
|
* qdf_nbuf_tx_desc_count_update() - Updates the layer packet counter
|
|
@@ -188,7 +189,7 @@ static inline void qdf_nbuf_tx_desc_count_update(uint8_t packet_type,
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(qdf_nbuf_tx_desc_count_update);
|
|
|
+qdf_export_symbol(qdf_nbuf_tx_desc_count_update);
|
|
|
|
|
|
/**
|
|
|
* qdf_nbuf_tx_desc_count_clear() - Clears packet counter for both data, mgmt
|
|
@@ -200,7 +201,7 @@ void qdf_nbuf_tx_desc_count_clear(void)
|
|
|
memset(nbuf_tx_mgmt, 0, sizeof(nbuf_tx_mgmt));
|
|
|
memset(nbuf_tx_data, 0, sizeof(nbuf_tx_data));
|
|
|
}
|
|
|
-EXPORT_SYMBOL(qdf_nbuf_tx_desc_count_clear);
|
|
|
+qdf_export_symbol(qdf_nbuf_tx_desc_count_clear);
|
|
|
|
|
|
/**
|
|
|
* qdf_nbuf_set_state() - Updates the packet state
|
|
@@ -230,7 +231,7 @@ void qdf_nbuf_set_state(qdf_nbuf_t nbuf, uint8_t current_state)
|
|
|
qdf_nbuf_tx_desc_count_update(packet_type,
|
|
|
current_state);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(qdf_nbuf_set_state);
|
|
|
+qdf_export_symbol(qdf_nbuf_set_state);
|
|
|
|
|
|
#ifdef CONFIG_MCL
|
|
|
/**
|
|
@@ -331,7 +332,7 @@ int __qdf_nbuf_count_get(void)
|
|
|
{
|
|
|
return qdf_atomic_read(&nbuf_count);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_count_get);
|
|
|
+qdf_export_symbol(__qdf_nbuf_count_get);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_count_inc() - increment nbuf global count
|
|
@@ -344,7 +345,7 @@ void __qdf_nbuf_count_inc(qdf_nbuf_t nbuf)
|
|
|
{
|
|
|
qdf_atomic_inc(&nbuf_count);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_count_inc);
|
|
|
+qdf_export_symbol(__qdf_nbuf_count_inc);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_count_dec() - decrement nbuf global count
|
|
@@ -357,7 +358,7 @@ void __qdf_nbuf_count_dec(__qdf_nbuf_t nbuf)
|
|
|
{
|
|
|
qdf_atomic_dec(&nbuf_count);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_count_dec);
|
|
|
+qdf_export_symbol(__qdf_nbuf_count_dec);
|
|
|
#endif
|
|
|
|
|
|
|
|
@@ -506,7 +507,7 @@ skb_alloc:
|
|
|
return skb;
|
|
|
}
|
|
|
#endif
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_alloc);
|
|
|
+qdf_export_symbol(__qdf_nbuf_alloc);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_free() - free the nbuf its interrupt safe
|
|
@@ -538,7 +539,7 @@ void __qdf_nbuf_free(struct sk_buff *skb)
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_free);
|
|
|
+qdf_export_symbol(__qdf_nbuf_free);
|
|
|
|
|
|
#ifdef MEMORY_DEBUG
|
|
|
enum qdf_nbuf_event_type {
|
|
@@ -867,7 +868,7 @@ __qdf_nbuf_map(qdf_device_t osdev, struct sk_buff *skb, qdf_dma_dir_t dir)
|
|
|
|
|
|
return __qdf_nbuf_map_single(osdev, skb, dir);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_map);
|
|
|
+qdf_export_symbol(__qdf_nbuf_map);
|
|
|
|
|
|
#else
|
|
|
QDF_STATUS
|
|
@@ -875,7 +876,7 @@ __qdf_nbuf_map(qdf_device_t osdev, struct sk_buff *skb, qdf_dma_dir_t dir)
|
|
|
{
|
|
|
return __qdf_nbuf_map_single(osdev, skb, dir);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_map);
|
|
|
+qdf_export_symbol(__qdf_nbuf_map);
|
|
|
#endif
|
|
|
/**
|
|
|
* __qdf_nbuf_unmap() - to unmap a previously mapped buf
|
|
@@ -898,7 +899,7 @@ __qdf_nbuf_unmap(qdf_device_t osdev, struct sk_buff *skb,
|
|
|
*/
|
|
|
__qdf_nbuf_unmap_single(osdev, skb, dir);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_unmap);
|
|
|
+qdf_export_symbol(__qdf_nbuf_unmap);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_map_single() - map a single buffer to local bus address space
|
|
@@ -919,7 +920,7 @@ __qdf_nbuf_map_single(qdf_device_t osdev, qdf_nbuf_t buf, qdf_dma_dir_t dir)
|
|
|
BUILD_BUG_ON(sizeof(QDF_NBUF_CB_PADDR(buf)) < sizeof(buf->data));
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_map_single);
|
|
|
+qdf_export_symbol(__qdf_nbuf_map_single);
|
|
|
#else
|
|
|
QDF_STATUS
|
|
|
__qdf_nbuf_map_single(qdf_device_t osdev, qdf_nbuf_t buf, qdf_dma_dir_t dir)
|
|
@@ -935,7 +936,7 @@ __qdf_nbuf_map_single(qdf_device_t osdev, qdf_nbuf_t buf, qdf_dma_dir_t dir)
|
|
|
? QDF_STATUS_E_FAILURE
|
|
|
: QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_map_single);
|
|
|
+qdf_export_symbol(__qdf_nbuf_map_single);
|
|
|
#endif
|
|
|
/**
|
|
|
* __qdf_nbuf_unmap_single() - unmap a previously mapped buf
|
|
@@ -960,7 +961,7 @@ void __qdf_nbuf_unmap_single(qdf_device_t osdev, qdf_nbuf_t buf,
|
|
|
__qdf_dma_dir_to_os(dir));
|
|
|
}
|
|
|
#endif
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_unmap_single);
|
|
|
+qdf_export_symbol(__qdf_nbuf_unmap_single);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_set_rx_cksum() - set rx checksum
|
|
@@ -990,7 +991,7 @@ __qdf_nbuf_set_rx_cksum(struct sk_buff *skb, qdf_nbuf_rx_cksum_t *cksum)
|
|
|
}
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_set_rx_cksum);
|
|
|
+qdf_export_symbol(__qdf_nbuf_set_rx_cksum);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_get_tx_cksum() - get tx checksum
|
|
@@ -1011,7 +1012,7 @@ qdf_nbuf_tx_cksum_t __qdf_nbuf_get_tx_cksum(struct sk_buff *skb)
|
|
|
return QDF_NBUF_TX_CKSUM_NONE;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_get_tx_cksum);
|
|
|
+qdf_export_symbol(__qdf_nbuf_get_tx_cksum);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_get_tid() - get tid
|
|
@@ -1023,7 +1024,7 @@ uint8_t __qdf_nbuf_get_tid(struct sk_buff *skb)
|
|
|
{
|
|
|
return skb->priority;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_get_tid);
|
|
|
+qdf_export_symbol(__qdf_nbuf_get_tid);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_set_tid() - set tid
|
|
@@ -1035,7 +1036,7 @@ void __qdf_nbuf_set_tid(struct sk_buff *skb, uint8_t tid)
|
|
|
{
|
|
|
skb->priority = tid;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_set_tid);
|
|
|
+qdf_export_symbol(__qdf_nbuf_set_tid);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_set_tid() - set tid
|
|
@@ -1047,7 +1048,7 @@ uint8_t __qdf_nbuf_get_exemption_type(struct sk_buff *skb)
|
|
|
{
|
|
|
return QDF_NBUF_EXEMPT_NO_EXEMPTION;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_get_exemption_type);
|
|
|
+qdf_export_symbol(__qdf_nbuf_get_exemption_type);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_reg_trace_cb() - register trace callback
|
|
@@ -1059,7 +1060,7 @@ void __qdf_nbuf_reg_trace_cb(qdf_nbuf_trace_update_t cb_func_ptr)
|
|
|
{
|
|
|
qdf_trace_update_cb = cb_func_ptr;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_reg_trace_cb);
|
|
|
+qdf_export_symbol(__qdf_nbuf_reg_trace_cb);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_data_get_dhcp_subtype() - get the subtype
|
|
@@ -1325,7 +1326,7 @@ bool __qdf_nbuf_data_is_ipv4_pkt(uint8_t *data)
|
|
|
else
|
|
|
return false;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_data_is_ipv4_pkt);
|
|
|
+qdf_export_symbol(__qdf_nbuf_data_is_ipv4_pkt);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_data_is_ipv4_dhcp_pkt() - check if skb data is a dhcp packet
|
|
@@ -1355,7 +1356,7 @@ bool __qdf_nbuf_data_is_ipv4_dhcp_pkt(uint8_t *data)
|
|
|
else
|
|
|
return false;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_data_is_ipv4_dhcp_pkt);
|
|
|
+qdf_export_symbol(__qdf_nbuf_data_is_ipv4_dhcp_pkt);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_data_is_ipv4_eapol_pkt() - check if skb data is a eapol packet
|
|
@@ -1378,7 +1379,7 @@ bool __qdf_nbuf_data_is_ipv4_eapol_pkt(uint8_t *data)
|
|
|
else
|
|
|
return false;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_data_is_ipv4_eapol_pkt);
|
|
|
+qdf_export_symbol(__qdf_nbuf_data_is_ipv4_eapol_pkt);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_is_ipv4_wapi_pkt() - check if skb data is a wapi packet
|
|
@@ -1401,7 +1402,7 @@ bool __qdf_nbuf_is_ipv4_wapi_pkt(struct sk_buff *skb)
|
|
|
else
|
|
|
return false;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_is_ipv4_wapi_pkt);
|
|
|
+qdf_export_symbol(__qdf_nbuf_is_ipv4_wapi_pkt);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_is_ipv4_tdls_pkt() - check if skb data is a tdls packet
|
|
@@ -1424,7 +1425,7 @@ bool __qdf_nbuf_is_ipv4_tdls_pkt(struct sk_buff *skb)
|
|
|
else
|
|
|
return false;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_is_ipv4_tdls_pkt);
|
|
|
+qdf_export_symbol(__qdf_nbuf_is_ipv4_tdls_pkt);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_data_is_ipv4_arp_pkt() - check if skb data is a arp packet
|
|
@@ -1447,7 +1448,7 @@ bool __qdf_nbuf_data_is_ipv4_arp_pkt(uint8_t *data)
|
|
|
else
|
|
|
return false;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_data_is_ipv4_arp_pkt);
|
|
|
+qdf_export_symbol(__qdf_nbuf_data_is_ipv4_arp_pkt);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_data_is_arp_req() - check if skb data is a arp request
|
|
@@ -1800,7 +1801,7 @@ bool __qdf_nbuf_data_is_ipv6_pkt(uint8_t *data)
|
|
|
else
|
|
|
return false;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_data_is_ipv6_pkt);
|
|
|
+qdf_export_symbol(__qdf_nbuf_data_is_ipv6_pkt);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_data_is_ipv6_dhcp_pkt() - check if skb data is a dhcp packet
|
|
@@ -1830,7 +1831,7 @@ bool __qdf_nbuf_data_is_ipv6_dhcp_pkt(uint8_t *data)
|
|
|
else
|
|
|
return false;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_data_is_ipv6_dhcp_pkt);
|
|
|
+qdf_export_symbol(__qdf_nbuf_data_is_ipv6_dhcp_pkt);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_data_is_ipv4_mcast_pkt() - check if it is IPV4 multicast packet.
|
|
@@ -2347,7 +2348,7 @@ void qdf_net_buf_debug_init(void)
|
|
|
spin_lock_init(&g_qdf_net_buf_track_lock[i]);
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(qdf_net_buf_debug_init);
|
|
|
+qdf_export_symbol(qdf_net_buf_debug_init);
|
|
|
|
|
|
/**
|
|
|
* qdf_net_buf_debug_init() - exit network buffer debug functionality
|
|
@@ -2391,7 +2392,7 @@ void qdf_net_buf_debug_exit(void)
|
|
|
}
|
|
|
#endif
|
|
|
}
|
|
|
-EXPORT_SYMBOL(qdf_net_buf_debug_exit);
|
|
|
+qdf_export_symbol(qdf_net_buf_debug_exit);
|
|
|
|
|
|
/**
|
|
|
* qdf_net_buf_debug_hash() - hash network buffer pointer
|
|
@@ -2475,7 +2476,7 @@ void qdf_net_buf_debug_add_node(qdf_nbuf_t net_buf, size_t size,
|
|
|
|
|
|
spin_unlock_irqrestore(&g_qdf_net_buf_track_lock[i], irq_flag);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(qdf_net_buf_debug_add_node);
|
|
|
+qdf_export_symbol(qdf_net_buf_debug_add_node);
|
|
|
|
|
|
/**
|
|
|
* qdf_net_buf_debug_delete_node() - remove skb from debug hash table
|
|
@@ -2528,7 +2529,7 @@ done:
|
|
|
QDF_BUG(0);
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(qdf_net_buf_debug_delete_node);
|
|
|
+qdf_export_symbol(qdf_net_buf_debug_delete_node);
|
|
|
|
|
|
void qdf_net_buf_debug_acquire_skb(qdf_nbuf_t net_buf,
|
|
|
uint8_t *file_name, uint32_t line_num)
|
|
@@ -2548,7 +2549,7 @@ void qdf_net_buf_debug_acquire_skb(qdf_nbuf_t net_buf,
|
|
|
}
|
|
|
qdf_net_buf_debug_add_node(net_buf, 0, file_name, line_num);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(qdf_net_buf_debug_acquire_skb);
|
|
|
+qdf_export_symbol(qdf_net_buf_debug_acquire_skb);
|
|
|
|
|
|
/**
|
|
|
* qdf_net_buf_debug_release_skb() - release skb to avoid memory leak
|
|
@@ -2588,7 +2589,7 @@ void qdf_net_buf_debug_release_skb(qdf_nbuf_t net_buf)
|
|
|
|
|
|
qdf_net_buf_debug_delete_node(net_buf);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(qdf_net_buf_debug_release_skb);
|
|
|
+qdf_export_symbol(qdf_net_buf_debug_release_skb);
|
|
|
|
|
|
qdf_nbuf_t qdf_nbuf_alloc_debug(qdf_device_t osdev, qdf_size_t size,
|
|
|
int reserve, int align, int prio,
|
|
@@ -2760,7 +2761,7 @@ void __qdf_dmaaddr_to_32s(qdf_dma_addr_t dmaaddr,
|
|
|
*hi = 0;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_dmaaddr_to_32s);
|
|
|
+qdf_export_symbol(__qdf_dmaaddr_to_32s);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_fill_tso_cmn_seg_info() - Init function for each TSO nbuf segment
|
|
@@ -3022,7 +3023,7 @@ uint32_t __qdf_nbuf_get_tso_info(qdf_device_t osdev, struct sk_buff *skb,
|
|
|
}
|
|
|
return tso_info->num_segs;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_get_tso_info);
|
|
|
+qdf_export_symbol(__qdf_nbuf_get_tso_info);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_unmap_tso_segment() - function to dma unmap TSO segment element
|
|
@@ -3081,7 +3082,7 @@ void __qdf_nbuf_unmap_tso_segment(qdf_device_t osdev,
|
|
|
tso_seg->seg.tso_frags[0].paddr = 0;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_unmap_tso_segment);
|
|
|
+qdf_export_symbol(__qdf_nbuf_unmap_tso_segment);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_get_tso_num_seg() - function to divide a TSO nbuf
|
|
@@ -3241,7 +3242,7 @@ fail:
|
|
|
return 0;
|
|
|
}
|
|
|
#endif
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_get_tso_num_seg);
|
|
|
+qdf_export_symbol(__qdf_nbuf_get_tso_num_seg);
|
|
|
|
|
|
#endif /* FEATURE_TSO */
|
|
|
|
|
@@ -3250,13 +3251,13 @@ struct sk_buff *__qdf_nbuf_inc_users(struct sk_buff *skb)
|
|
|
qdf_nbuf_users_inc(&skb->users);
|
|
|
return skb;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_inc_users);
|
|
|
+qdf_export_symbol(__qdf_nbuf_inc_users);
|
|
|
|
|
|
int __qdf_nbuf_get_users(struct sk_buff *skb)
|
|
|
{
|
|
|
return qdf_nbuf_users_read(&skb->users);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_get_users);
|
|
|
+qdf_export_symbol(__qdf_nbuf_get_users);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_ref() - Reference the nbuf so it can get held until the last free.
|
|
@@ -3269,7 +3270,7 @@ void __qdf_nbuf_ref(struct sk_buff *skb)
|
|
|
{
|
|
|
skb_get(skb);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_ref);
|
|
|
+qdf_export_symbol(__qdf_nbuf_ref);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_shared() - Check whether the buffer is shared
|
|
@@ -3281,7 +3282,7 @@ int __qdf_nbuf_shared(struct sk_buff *skb)
|
|
|
{
|
|
|
return skb_shared(skb);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_shared);
|
|
|
+qdf_export_symbol(__qdf_nbuf_shared);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_dmamap_create() - create a DMA map.
|
|
@@ -3309,7 +3310,7 @@ __qdf_nbuf_dmamap_create(qdf_device_t osdev, __qdf_dma_map_t *dmap)
|
|
|
|
|
|
return error;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_dmamap_create);
|
|
|
+qdf_export_symbol(__qdf_nbuf_dmamap_create);
|
|
|
/**
|
|
|
* __qdf_nbuf_dmamap_destroy() - delete a dma map
|
|
|
* @osdev: qdf device handle
|
|
@@ -3322,7 +3323,7 @@ __qdf_nbuf_dmamap_destroy(qdf_device_t osdev, __qdf_dma_map_t dmap)
|
|
|
{
|
|
|
kfree(dmap);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_dmamap_destroy);
|
|
|
+qdf_export_symbol(__qdf_nbuf_dmamap_destroy);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_map_nbytes_single() - map nbytes
|
|
@@ -3343,7 +3344,7 @@ QDF_STATUS __qdf_nbuf_map_nbytes_single(
|
|
|
QDF_NBUF_CB_PADDR(buf) = paddr = buf->data;
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_map_nbytes_single);
|
|
|
+qdf_export_symbol(__qdf_nbuf_map_nbytes_single);
|
|
|
#else
|
|
|
QDF_STATUS __qdf_nbuf_map_nbytes_single(
|
|
|
qdf_device_t osdev, struct sk_buff *buf,
|
|
@@ -3358,7 +3359,7 @@ QDF_STATUS __qdf_nbuf_map_nbytes_single(
|
|
|
return dma_mapping_error(osdev->dev, paddr) ?
|
|
|
QDF_STATUS_E_FAULT : QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_map_nbytes_single);
|
|
|
+qdf_export_symbol(__qdf_nbuf_map_nbytes_single);
|
|
|
#endif
|
|
|
/**
|
|
|
* __qdf_nbuf_unmap_nbytes_single() - unmap nbytes
|
|
@@ -3375,7 +3376,7 @@ __qdf_nbuf_unmap_nbytes_single(
|
|
|
qdf_device_t osdev, struct sk_buff *buf, qdf_dma_dir_t dir, int nbytes)
|
|
|
{
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_unmap_nbytes_single);
|
|
|
+qdf_export_symbol(__qdf_nbuf_unmap_nbytes_single);
|
|
|
|
|
|
#else
|
|
|
void
|
|
@@ -3389,7 +3390,7 @@ __qdf_nbuf_unmap_nbytes_single(
|
|
|
dma_unmap_single(osdev->dev, QDF_NBUF_CB_PADDR(buf),
|
|
|
nbytes, __qdf_dma_dir_to_os(dir));
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_unmap_nbytes_single);
|
|
|
+qdf_export_symbol(__qdf_nbuf_unmap_nbytes_single);
|
|
|
#endif
|
|
|
/**
|
|
|
* __qdf_nbuf_map_nbytes() - get the dma map of the nbuf
|
|
@@ -3423,7 +3424,7 @@ __qdf_nbuf_map_nbytes(
|
|
|
|
|
|
return __qdf_nbuf_map_nbytes_single(osdev, skb, dir, nbytes);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_map_nbytes);
|
|
|
+qdf_export_symbol(__qdf_nbuf_map_nbytes);
|
|
|
#else
|
|
|
QDF_STATUS
|
|
|
__qdf_nbuf_map_nbytes(
|
|
@@ -3434,7 +3435,7 @@ __qdf_nbuf_map_nbytes(
|
|
|
{
|
|
|
return __qdf_nbuf_map_nbytes_single(osdev, skb, dir, nbytes);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_map_nbytes);
|
|
|
+qdf_export_symbol(__qdf_nbuf_map_nbytes);
|
|
|
#endif
|
|
|
/**
|
|
|
* __qdf_nbuf_unmap_nbytes() - to unmap a previously mapped buf
|
|
@@ -3460,7 +3461,7 @@ __qdf_nbuf_unmap_nbytes(
|
|
|
*/
|
|
|
__qdf_nbuf_unmap_nbytes_single(osdev, skb, dir, nbytes);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_unmap_nbytes);
|
|
|
+qdf_export_symbol(__qdf_nbuf_unmap_nbytes);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_dma_map_info() - return the dma map info
|
|
@@ -3479,7 +3480,7 @@ __qdf_nbuf_dma_map_info(__qdf_dma_map_t bmap, qdf_dmamap_info_t *sg)
|
|
|
sizeof(struct __qdf_segment));
|
|
|
sg->nsegs = bmap->nsegs;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_dma_map_info);
|
|
|
+qdf_export_symbol(__qdf_nbuf_dma_map_info);
|
|
|
/**
|
|
|
* __qdf_nbuf_frag_info() - return the frag data & len, where frag no. is
|
|
|
* specified by the index
|
|
@@ -3509,7 +3510,7 @@ __qdf_nbuf_frag_info(struct sk_buff *skb, qdf_sglist_t *sg)
|
|
|
sg->nsegs += i;
|
|
|
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_frag_info);
|
|
|
+qdf_export_symbol(__qdf_nbuf_frag_info);
|
|
|
#else
|
|
|
#ifdef QDF_OS_DEBUG
|
|
|
void
|
|
@@ -3525,7 +3526,7 @@ __qdf_nbuf_frag_info(struct sk_buff *skb, qdf_sglist_t *sg)
|
|
|
|
|
|
qdf_assert(sh->nr_frags == 0);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_frag_info);
|
|
|
+qdf_export_symbol(__qdf_nbuf_frag_info);
|
|
|
#else
|
|
|
void
|
|
|
__qdf_nbuf_frag_info(struct sk_buff *skb, qdf_sglist_t *sg)
|
|
@@ -3534,7 +3535,7 @@ __qdf_nbuf_frag_info(struct sk_buff *skb, qdf_sglist_t *sg)
|
|
|
sg->sg_segs[0].len = skb->len;
|
|
|
sg->nsegs = 1;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_frag_info);
|
|
|
+qdf_export_symbol(__qdf_nbuf_frag_info);
|
|
|
#endif
|
|
|
#endif
|
|
|
/**
|
|
@@ -3552,7 +3553,7 @@ __qdf_nbuf_get_frag_size(__qdf_nbuf_t nbuf, uint32_t cur_frag)
|
|
|
|
|
|
return skb_frag_size(frag);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_get_frag_size);
|
|
|
+qdf_export_symbol(__qdf_nbuf_get_frag_size);
|
|
|
|
|
|
/**
|
|
|
* __qdf_nbuf_frag_map() - dma map frag
|
|
@@ -3574,7 +3575,7 @@ QDF_STATUS __qdf_nbuf_frag_map(
|
|
|
QDF_NBUF_CB_PADDR(nbuf) = paddr = nbuf->data;
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_frag_map);
|
|
|
+qdf_export_symbol(__qdf_nbuf_frag_map);
|
|
|
#else
|
|
|
QDF_STATUS __qdf_nbuf_frag_map(
|
|
|
qdf_device_t osdev, __qdf_nbuf_t nbuf,
|
|
@@ -3592,7 +3593,7 @@ QDF_STATUS __qdf_nbuf_frag_map(
|
|
|
return dma_mapping_error(osdev->dev, paddr) ?
|
|
|
QDF_STATUS_E_FAULT : QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_frag_map);
|
|
|
+qdf_export_symbol(__qdf_nbuf_frag_map);
|
|
|
#endif
|
|
|
/**
|
|
|
* __qdf_nbuf_dmamap_set_cb() - setup the map callback for a dma map
|
|
@@ -3607,7 +3608,7 @@ __qdf_nbuf_dmamap_set_cb(__qdf_dma_map_t dmap, void *cb, void *arg)
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_dmamap_set_cb);
|
|
|
+qdf_export_symbol(__qdf_nbuf_dmamap_set_cb);
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -3658,7 +3659,7 @@ __qdf_nbuf_sync_for_cpu(qdf_device_t osdev,
|
|
|
*/
|
|
|
__qdf_nbuf_sync_single_for_cpu(osdev, skb, dir);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_sync_for_cpu);
|
|
|
+qdf_export_symbol(__qdf_nbuf_sync_for_cpu);
|
|
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0))
|
|
|
/**
|
|
@@ -4113,7 +4114,7 @@ void qdf_nbuf_classify_pkt(struct sk_buff *skb)
|
|
|
QDF_NBUF_CB_GET_PACKET_TYPE(skb) =
|
|
|
QDF_NBUF_CB_PACKET_TYPE_WAPI;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(qdf_nbuf_classify_pkt);
|
|
|
+qdf_export_symbol(qdf_nbuf_classify_pkt);
|
|
|
|
|
|
void __qdf_nbuf_init(__qdf_nbuf_t nbuf)
|
|
|
{
|
|
@@ -4121,7 +4122,7 @@ void __qdf_nbuf_init(__qdf_nbuf_t nbuf)
|
|
|
nbuf->data = nbuf->head + NET_SKB_PAD;
|
|
|
skb_reset_tail_pointer(nbuf);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(__qdf_nbuf_init);
|
|
|
+qdf_export_symbol(__qdf_nbuf_init);
|
|
|
|
|
|
#ifdef WLAN_FEATURE_FASTPATH
|
|
|
void qdf_nbuf_init_fast(qdf_nbuf_t nbuf)
|
|
@@ -4130,7 +4131,7 @@ void qdf_nbuf_init_fast(qdf_nbuf_t nbuf)
|
|
|
nbuf->data = nbuf->head + NET_SKB_PAD;
|
|
|
skb_reset_tail_pointer(nbuf);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(qdf_nbuf_init_fast);
|
|
|
+qdf_export_symbol(qdf_nbuf_init_fast);
|
|
|
#endif /* WLAN_FEATURE_FASTPATH */
|
|
|
|
|
|
|