|
@@ -125,7 +125,7 @@ static ssize_t iwl_dbgfs_tx_statistics_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos) {
|
|
|
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
char *buf;
|
|
|
int pos = 0;
|
|
|
|
|
@@ -184,7 +184,7 @@ static ssize_t iwl_dbgfs_rx_statistics_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos) {
|
|
|
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
char *buf;
|
|
|
int pos = 0;
|
|
|
int cnt;
|
|
@@ -232,7 +232,7 @@ static ssize_t iwl_dbgfs_sram_read(struct file *file,
|
|
|
ssize_t ret;
|
|
|
int i;
|
|
|
int pos = 0;
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
size_t bufsz;
|
|
|
|
|
|
/* default is to dump the entire data segment */
|
|
@@ -306,7 +306,7 @@ static ssize_t iwl_dbgfs_sram_write(struct file *file,
|
|
|
static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf,
|
|
|
size_t count, loff_t *ppos)
|
|
|
{
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
struct iwl_station_entry *station;
|
|
|
int max_sta = priv->hw_params.max_stations;
|
|
|
char *buf;
|
|
@@ -376,7 +376,7 @@ static ssize_t iwl_dbgfs_nvm_read(struct file *file,
|
|
|
loff_t *ppos)
|
|
|
{
|
|
|
ssize_t ret;
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
int pos = 0, ofs = 0, buf_size = 0;
|
|
|
const u8 *ptr;
|
|
|
char *buf;
|
|
@@ -464,7 +464,7 @@ static ssize_t iwl_dbgfs_log_event_write(struct file *file,
|
|
|
static ssize_t iwl_dbgfs_channels_read(struct file *file, char __user *user_buf,
|
|
|
size_t count, loff_t *ppos)
|
|
|
{
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
struct ieee80211_channel *channels = NULL;
|
|
|
const struct ieee80211_supported_band *supp_band = NULL;
|
|
|
int pos = 0, i, bufsz = PAGE_SIZE;
|
|
@@ -537,7 +537,7 @@ static ssize_t iwl_dbgfs_status_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos) {
|
|
|
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
char buf[512];
|
|
|
int pos = 0;
|
|
|
const size_t bufsz = sizeof(buf);
|
|
@@ -585,7 +585,7 @@ static ssize_t iwl_dbgfs_interrupt_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos) {
|
|
|
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
int pos = 0;
|
|
|
int cnt = 0;
|
|
|
char *buf;
|
|
@@ -672,7 +672,7 @@ static ssize_t iwl_dbgfs_interrupt_write(struct file *file,
|
|
|
static ssize_t iwl_dbgfs_qos_read(struct file *file, char __user *user_buf,
|
|
|
size_t count, loff_t *ppos)
|
|
|
{
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
int pos = 0, i;
|
|
|
char buf[256];
|
|
|
const size_t bufsz = sizeof(buf);
|
|
@@ -695,7 +695,7 @@ static ssize_t iwl_dbgfs_qos_read(struct file *file, char __user *user_buf,
|
|
|
static ssize_t iwl_dbgfs_led_read(struct file *file, char __user *user_buf,
|
|
|
size_t count, loff_t *ppos)
|
|
|
{
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
int pos = 0;
|
|
|
char buf[256];
|
|
|
const size_t bufsz = sizeof(buf);
|
|
@@ -721,7 +721,7 @@ static ssize_t iwl_dbgfs_thermal_throttling_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos)
|
|
|
{
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
|
|
|
struct iwl_tt_restriction *restriction;
|
|
|
char buf[100];
|
|
@@ -781,7 +781,7 @@ static ssize_t iwl_dbgfs_disable_ht40_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos)
|
|
|
{
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
char buf[100];
|
|
|
int pos = 0;
|
|
|
const size_t bufsz = sizeof(buf);
|
|
@@ -838,7 +838,7 @@ static ssize_t iwl_dbgfs_sleep_level_override_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos)
|
|
|
{
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
char buf[10];
|
|
|
int pos, value;
|
|
|
const size_t bufsz = sizeof(buf);
|
|
@@ -856,7 +856,7 @@ static ssize_t iwl_dbgfs_current_sleep_command_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos)
|
|
|
{
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
char buf[200];
|
|
|
int pos = 0, i;
|
|
|
const size_t bufsz = sizeof(buf);
|
|
@@ -994,7 +994,7 @@ static ssize_t iwl_dbgfs_tx_queue_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos) {
|
|
|
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
struct iwl_tx_queue *txq;
|
|
|
struct iwl_queue *q;
|
|
|
char *buf;
|
|
@@ -1040,7 +1040,7 @@ static ssize_t iwl_dbgfs_rx_queue_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos) {
|
|
|
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
struct iwl_rx_queue *rxq = &priv->rxq;
|
|
|
char buf[256];
|
|
|
int pos = 0;
|
|
@@ -1086,7 +1086,7 @@ static ssize_t iwl_dbgfs_ucode_rx_stats_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos)
|
|
|
{
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
int pos = 0;
|
|
|
char *buf;
|
|
|
int bufsz = sizeof(struct statistics_rx_phy) * 20 +
|
|
@@ -1400,7 +1400,7 @@ static ssize_t iwl_dbgfs_ucode_tx_stats_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos)
|
|
|
{
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
int pos = 0;
|
|
|
char *buf;
|
|
|
int bufsz = (sizeof(struct statistics_tx) * 24) + 250;
|
|
@@ -1542,7 +1542,7 @@ static ssize_t iwl_dbgfs_ucode_general_stats_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos)
|
|
|
{
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
int pos = 0;
|
|
|
char *buf;
|
|
|
int bufsz = sizeof(struct statistics_general) * 4 + 250;
|
|
@@ -1633,7 +1633,7 @@ static ssize_t iwl_dbgfs_sensitivity_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos) {
|
|
|
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
int pos = 0;
|
|
|
int cnt = 0;
|
|
|
char *buf;
|
|
@@ -1714,7 +1714,7 @@ static ssize_t iwl_dbgfs_chain_noise_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos) {
|
|
|
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
int pos = 0;
|
|
|
int cnt = 0;
|
|
|
char *buf;
|
|
@@ -1772,7 +1772,7 @@ static ssize_t iwl_dbgfs_tx_power_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos) {
|
|
|
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
char buf[128];
|
|
|
int pos = 0;
|
|
|
ssize_t ret;
|
|
@@ -1823,7 +1823,7 @@ static ssize_t iwl_dbgfs_power_save_status_read(struct file *file,
|
|
|
char __user *user_buf,
|
|
|
size_t count, loff_t *ppos)
|
|
|
{
|
|
|
- struct iwl_priv *priv = (struct iwl_priv *)file->private_data;
|
|
|
+ struct iwl_priv *priv = file->private_data;
|
|
|
char buf[60];
|
|
|
int pos = 0;
|
|
|
const size_t bufsz = sizeof(buf);
|