{
struct nci_dev *ndev = (void *) arg;
- pr_debug("entry\n");
-
atomic_set(&ndev->cmd_cnt, 1);
queue_work(ndev->cmd_wq, &ndev->cmd_work);
}
{
struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
- pr_debug("entry\n");
-
return nci_open_device(ndev);
}
{
struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
- pr_debug("entry\n");
-
return nci_close_device(ndev);
}
struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
int rc;
- pr_debug("entry\n");
-
if (test_bit(NCI_DISCOVERY, &ndev->flags)) {
pr_err("unable to start poll, since poll is already active\n");
return -EBUSY;
{
struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
- pr_debug("entry\n");
-
if (!test_bit(NCI_DISCOVERY, &ndev->flags)) {
pr_err("unable to stop poll, since poll is not active\n");
return;
{
struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
- pr_debug("entry, target_idx %d, protocol 0x%x\n", target_idx, protocol);
+ pr_debug("target_idx %d, protocol 0x%x\n", target_idx, protocol);
if (!test_bit(NCI_POLL_ACTIVE, &ndev->flags)) {
pr_err("there is no available target to activate\n");
{
struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
- pr_debug("entry, target_idx %d\n", target_idx);
+ pr_debug("target_idx %d\n", target_idx);
if (!ndev->target_active_prot) {
pr_err("unable to deactivate target, no active target\n");
struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
int rc;
- pr_debug("entry, target_idx %d, len %d\n", target_idx, skb->len);
+ pr_debug("target_idx %d, len %d\n", target_idx, skb->len);
if (!ndev->target_active_prot) {
pr_err("unable to exchange data, no active target\n");
{
struct nci_dev *ndev;
- pr_debug("entry, supported_protocols 0x%x\n", supported_protocols);
+ pr_debug("supported_protocols 0x%x\n", supported_protocols);
if (!ops->open || !ops->close || !ops->send)
return NULL;
*/
void nci_free_device(struct nci_dev *ndev)
{
- pr_debug("entry\n");
-
nfc_free_device(ndev->nfc_dev);
kfree(ndev);
}
struct device *dev = &ndev->nfc_dev->dev;
char name[32];
- pr_debug("entry\n");
-
rc = nfc_register_device(ndev->nfc_dev);
if (rc)
goto exit;
*/
void nci_unregister_device(struct nci_dev *ndev)
{
- pr_debug("entry\n");
-
nci_close_device(ndev);
destroy_workqueue(ndev->cmd_wq);
{
struct nci_dev *ndev = (struct nci_dev *) skb->dev;
- pr_debug("entry, len %d\n", skb->len);
+ pr_debug("len %d\n", skb->len);
if (!ndev || (!test_bit(NCI_UP, &ndev->flags)
&& !test_bit(NCI_INIT, &ndev->flags))) {
{
struct nci_dev *ndev = (struct nci_dev *) skb->dev;
- pr_debug("entry, len %d\n", skb->len);
+ pr_debug("len %d\n", skb->len);
if (!ndev) {
kfree_skb(skb);
struct nci_ctrl_hdr *hdr;
struct sk_buff *skb;
- pr_debug("entry, opcode 0x%x, plen %d\n", opcode, plen);
+ pr_debug("opcode 0x%x, plen %d\n", opcode, plen);
skb = nci_skb_alloc(ndev, (NCI_CTRL_HDR_SIZE + plen), GFP_KERNEL);
if (!skb) {
struct nci_dev *ndev = container_of(work, struct nci_dev, tx_work);
struct sk_buff *skb;
- pr_debug("entry, credits_cnt %d\n", atomic_read(&ndev->credits_cnt));
+ pr_debug("credits_cnt %d\n", atomic_read(&ndev->credits_cnt));
/* Send queued tx data */
while (atomic_read(&ndev->credits_cnt)) {
struct nci_dev *ndev = container_of(work, struct nci_dev, cmd_work);
struct sk_buff *skb;
- pr_debug("entry, cmd_cnt %d\n", atomic_read(&ndev->cmd_cnt));
+ pr_debug("cmd_cnt %d\n", atomic_read(&ndev->cmd_cnt));
/* Send queued command */
if (atomic_read(&ndev->cmd_cnt)) {
data_exchange_cb_t cb = ndev->data_exchange_cb;
void *cb_context = ndev->data_exchange_cb_context;
- pr_debug("entry, len %d, err %d\n", skb ? skb->len : 0, err);
+ pr_debug("len %d, err %d\n", skb ? skb->len : 0, err);
if (cb) {
ndev->data_exchange_cb = NULL;
int frag_len;
int rc = 0;
- pr_debug("entry, conn_id 0x%x, total_len %d\n", conn_id, total_len);
+ pr_debug("conn_id 0x%x, total_len %d\n", conn_id, total_len);
__skb_queue_head_init(&frags_q);
{
int rc = 0;
- pr_debug("entry, conn_id 0x%x, plen %d\n", conn_id, skb->len);
+ pr_debug("conn_id 0x%x, plen %d\n", conn_id, skb->len);
/* check if the packet need to be fragmented */
if (skb->len <= ndev->max_data_pkt_payload_size) {
{
__u8 pbf = nci_pbf(skb->data);
- pr_debug("entry, len %d\n", skb->len);
+ pr_debug("len %d\n", skb->len);
pr_debug("NCI RX: MT=data, PBF=%d, conn_id=%d, plen=%d\n",
nci_pbf(skb->data),
struct nci_core_conn_credit_ntf *ntf = (void *) skb->data;
int i;
- pr_debug("entry, num_entries %d\n", ntf->num_entries);
+ pr_debug("num_entries %d\n", ntf->num_entries);
if (ntf->num_entries > NCI_MAX_NUM_CONN)
ntf->num_entries = NCI_MAX_NUM_CONN;
{
struct nci_core_reset_rsp *rsp = (void *) skb->data;
- pr_debug("entry, status 0x%x\n", rsp->status);
+ pr_debug("status 0x%x\n", rsp->status);
if (rsp->status == NCI_STATUS_OK) {
ndev->nci_ver = rsp->nci_ver;
struct nci_core_init_rsp_1 *rsp_1 = (void *) skb->data;
struct nci_core_init_rsp_2 *rsp_2;
- pr_debug("entry, status 0x%x\n", rsp_1->status);
+ pr_debug("status 0x%x\n", rsp_1->status);
if (rsp_1->status != NCI_STATUS_OK)
goto exit;
{
__u8 status = skb->data[0];
- pr_debug("entry, status 0x%x\n", status);
+ pr_debug("status 0x%x\n", status);
nci_req_complete(ndev, status);
}
{
__u8 status = skb->data[0];
- pr_debug("entry, status 0x%x\n", status);
+ pr_debug("status 0x%x\n", status);
if (status == NCI_STATUS_OK)
set_bit(NCI_DISCOVERY, &ndev->flags);
{
__u8 status = skb->data[0];
- pr_debug("entry, status 0x%x\n", status);
+ pr_debug("status 0x%x\n", status);
clear_bit(NCI_DISCOVERY, &ndev->flags);
{
void *hdr;
- pr_debug("entry\n");
-
hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).pid, cb->nlh->nlmsg_seq,
&nfc_genl_family, flags, NFC_CMD_GET_TARGET);
if (!hdr)
struct nfc_dev *dev = (struct nfc_dev *) cb->args[1];
int rc;
- pr_debug("entry\n");
-
if (!dev) {
dev = __get_device_from_cb(cb);
if (IS_ERR(dev))
{
struct nfc_dev *dev = (struct nfc_dev *) cb->args[1];
- pr_debug("entry\n");
-
if (dev)
nfc_put_device(dev);
struct sk_buff *msg;
void *hdr;
- pr_debug("entry\n");
-
dev->genl_data.poll_req_pid = 0;
msg = nlmsg_new(NLMSG_GOODSIZE, GFP_ATOMIC);
struct sk_buff *msg;
void *hdr;
- pr_debug("entry\n");
-
msg = nlmsg_new(NLMSG_GOODSIZE, GFP_KERNEL);
if (!msg)
return -ENOMEM;
struct sk_buff *msg;
void *hdr;
- pr_debug("entry\n");
-
msg = nlmsg_new(NLMSG_GOODSIZE, GFP_KERNEL);
if (!msg)
return -ENOMEM;
{
void *hdr;
- pr_debug("entry\n");
-
hdr = genlmsg_put(msg, pid, seq, &nfc_genl_family, flags,
NFC_CMD_GET_DEVICE);
if (!hdr)
struct nfc_dev *dev = (struct nfc_dev *) cb->args[1];
bool first_call = false;
- pr_debug("entry\n");
-
if (!iter) {
first_call = true;
iter = kmalloc(sizeof(struct class_dev_iter), GFP_KERNEL);
{
struct class_dev_iter *iter = (struct class_dev_iter *) cb->args[0];
- pr_debug("entry\n");
-
nfc_device_iter_exit(iter);
kfree(iter);
u32 idx;
int rc = -ENOBUFS;
- pr_debug("entry\n");
-
if (!info->attrs[NFC_ATTR_DEVICE_INDEX])
return -EINVAL;
int rc;
u32 idx;
- pr_debug("entry\n");
-
if (!info->attrs[NFC_ATTR_DEVICE_INDEX])
return -EINVAL;
int rc;
u32 idx;
- pr_debug("entry\n");
-
if (!info->attrs[NFC_ATTR_DEVICE_INDEX])
return -EINVAL;
u32 idx;
u32 protocols;
- pr_debug("entry\n");
-
if (!info->attrs[NFC_ATTR_DEVICE_INDEX] ||
!info->attrs[NFC_ATTR_PROTOCOLS])
return -EINVAL;
int rc;
u32 idx;
- pr_debug("entry\n");
-
if (!info->attrs[NFC_ATTR_DEVICE_INDEX])
return -EINVAL;