iwlwifi: iwl_rx_cmd_buffer belongs to transport API
This is how the transport passes things up into higher layers, so it belongs to the transport API. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
bffc66ce22
commit
930dfd5f20
|
@ -67,7 +67,6 @@
|
||||||
#include <linux/spinlock.h>
|
#include <linux/spinlock.h>
|
||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
#include <linux/gfp.h>
|
#include <linux/gfp.h>
|
||||||
#include <linux/mm.h> /* for page_address */
|
|
||||||
#include <net/mac80211.h>
|
#include <net/mac80211.h>
|
||||||
|
|
||||||
#include "iwl-commands.h"
|
#include "iwl-commands.h"
|
||||||
|
@ -413,22 +412,6 @@ static inline bool iwl_have_debug_level(u32 level)
|
||||||
return iwlagn_mod_params.debug_level & level;
|
return iwlagn_mod_params.debug_level & level;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct iwl_rx_cmd_buffer {
|
|
||||||
struct page *_page;
|
|
||||||
};
|
|
||||||
|
|
||||||
static inline void *rxb_addr(struct iwl_rx_cmd_buffer *r)
|
|
||||||
{
|
|
||||||
return page_address(r->_page);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline struct page *rxb_steal_page(struct iwl_rx_cmd_buffer *r)
|
|
||||||
{
|
|
||||||
struct page *p = r->_page;
|
|
||||||
r->_page = NULL;
|
|
||||||
return p;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* mac80211 queues, ACs, hardware queues, FIFOs.
|
* mac80211 queues, ACs, hardware queues, FIFOs.
|
||||||
*
|
*
|
||||||
|
|
|
@ -64,6 +64,7 @@
|
||||||
#define __iwl_trans_h__
|
#define __iwl_trans_h__
|
||||||
|
|
||||||
#include <linux/ieee80211.h>
|
#include <linux/ieee80211.h>
|
||||||
|
#include <linux/mm.h> /* for page_address */
|
||||||
|
|
||||||
#include "iwl-shared.h"
|
#include "iwl-shared.h"
|
||||||
#include "iwl-debug.h"
|
#include "iwl-debug.h"
|
||||||
|
@ -201,6 +202,22 @@ static inline void iwl_free_resp(struct iwl_host_cmd *cmd)
|
||||||
free_pages(cmd->_rx_page_addr, cmd->_rx_page_order);
|
free_pages(cmd->_rx_page_addr, cmd->_rx_page_order);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct iwl_rx_cmd_buffer {
|
||||||
|
struct page *_page;
|
||||||
|
};
|
||||||
|
|
||||||
|
static inline void *rxb_addr(struct iwl_rx_cmd_buffer *r)
|
||||||
|
{
|
||||||
|
return page_address(r->_page);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline struct page *rxb_steal_page(struct iwl_rx_cmd_buffer *r)
|
||||||
|
{
|
||||||
|
struct page *p = r->_page;
|
||||||
|
r->_page = NULL;
|
||||||
|
return p;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct iwl_trans_ops - transport specific operations
|
* struct iwl_trans_ops - transport specific operations
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue