Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337369
b: refs/heads/master
c: 2d83902
h: refs/heads/master
i:
  337367: 8aa33b0
v: v3
  • Loading branch information
YAMANE Toshiaki authored and Greg Kroah-Hartman committed Oct 30, 2012
1 parent 8b6296f commit 6a3b9ad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f57cee11374a0e3056313e0818e3ff2ebd0f496d
refs/heads/master: 2d8390223a8909dfddb326fd3d912de80022dd10
33 changes: 16 additions & 17 deletions trunk/drivers/staging/gdm72xx/gdm_qos.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* GNU General Public License for more details.
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/etherdevice.h>
#include <asm/byteorder.h>

Expand All @@ -24,15 +26,6 @@

#define B2H(x) __be16_to_cpu(x)

#undef dprintk
#define dprintk(fmt, args ...) printk(KERN_DEBUG "[QoS] " fmt, ## args)
#undef wprintk
#define wprintk(fmt, args ...) \
printk(KERN_WARNING "[QoS WARNING] " fmt, ## args)
#undef eprintk
#define eprintk(fmt, args ...) printk(KERN_ERR "[QoS ERROR] " fmt, ## args)


#define MAX_FREE_LIST_CNT 32
static struct {
struct list_head head;
Expand Down Expand Up @@ -95,7 +88,7 @@ static void free_qos_entry_list(struct list_head *free_list)
total_free++;
}

dprintk("%s: total_free_cnt=%d\n", __func__, total_free);
pr_debug("%s: total_free_cnt=%d\n", __func__, total_free);
}

void gdm_qos_init(void *nic_ptr)
Expand Down Expand Up @@ -240,7 +233,9 @@ static u32 extract_qos_list(struct nic *nic, struct list_head *head)
qcb->csr[i].qos_buf_count++;

if (!list_empty(&qcb->qos_list[i]))
wprintk("QoS Index(%d) is piled!!\n", i);
netdev_warn(nic->netdev,
"Index(%d) is piled!!\n",
i);
}
}
}
Expand Down Expand Up @@ -280,7 +275,8 @@ int gdm_qos_send_hci_pkt(struct sk_buff *skb, struct net_device *dev)
entry = alloc_qos_entry();
entry->skb = skb;
entry->dev = dev;
dprintk("qcb->qos_list_cnt=%d\n", qcb->qos_list_cnt);
netdev_dbg(dev, "qcb->qos_list_cnt=%d\n",
qcb->qos_list_cnt);
}

spin_lock_irqsave(&qcb->qos_lock, flags);
Expand Down Expand Up @@ -362,7 +358,7 @@ void gdm_recv_qos_hci_packet(void *nic_ptr, u8 *buf, int size)
index = get_csr(qcb, SFID, 0);
if (index == -1) {
spin_unlock_irqrestore(&qcb->qos_lock, flags);
eprintk("QoS ERROR: No SF\n");
netdev_err(nic->netdev, "QoS ERROR: No SF\n");
return;
}
qcb->csr[index].qos_buf_count = buf[(i*5)+10];
Expand All @@ -383,11 +379,12 @@ void gdm_recv_qos_hci_packet(void *nic_ptr, u8 *buf, int size)

index = get_csr(qcb, SFID, 1);
if (index == -1) {
eprintk("QoS ERROR: csr Update Error\n");
netdev_err(nic->netdev, "QoS ERROR: csr Update Error\n");
return;
}

dprintk("QOS_ADD SFID = 0x%x, index=%d\n", SFID, index);
netdev_dbg(nic->netdev, "QOS_ADD SFID = 0x%x, index=%d\n",
SFID, index);

spin_lock_irqsave(&qcb->qos_lock, flags);
qcb->csr[index].SFID = SFID;
Expand Down Expand Up @@ -435,11 +432,13 @@ void gdm_recv_qos_hci_packet(void *nic_ptr, u8 *buf, int size)
SFID += (buf[pos++]);
index = get_csr(qcb, SFID, 1);
if (index == -1) {
eprintk("QoS ERROR: Wrong index(%d)\n", index);
netdev_err(nic->netdev, "QoS ERROR: Wrong index(%d)\n",
index);
return;
}

dprintk("QOS_CHANGE_DEL SFID = 0x%x, index=%d\n", SFID, index);
netdev_dbg(nic->netdev, "QOS_CHANGE_DEL SFID = 0x%x, index=%d\n",
SFID, index);

INIT_LIST_HEAD(&free_list);

Expand Down

0 comments on commit 6a3b9ad

Please sign in to comment.