ndlc 148 arch/mips/pci/fixup-malta.c u8 odlc, ndlc; ndlc 152 arch/mips/pci/fixup-malta.c ndlc = odlc | PIIX4_FUNC0_DLC_USBPR_EN | ndlc 155 arch/mips/pci/fixup-malta.c (void) pci_write_config_byte(dev, PIIX4_FUNC0_DLC, ndlc); ndlc 40 drivers/nfc/st-nci/core.c r = ndlc_open(info->ndlc); ndlc 54 drivers/nfc/st-nci/core.c ndlc_close(info->ndlc); ndlc 70 drivers/nfc/st-nci/core.c return ndlc_send(info->ndlc, skb); ndlc 114 drivers/nfc/st-nci/core.c int st_nci_probe(struct llt_ndlc *ndlc, int phy_headroom, ndlc 121 drivers/nfc/st-nci/core.c info = devm_kzalloc(ndlc->dev, ndlc 134 drivers/nfc/st-nci/core.c ndlc->ndev = nci_allocate_device(&st_nci_ops, protocols, ndlc 136 drivers/nfc/st-nci/core.c if (!ndlc->ndev) { ndlc 140 drivers/nfc/st-nci/core.c info->ndlc = ndlc; ndlc 142 drivers/nfc/st-nci/core.c nci_set_drvdata(ndlc->ndev, info); ndlc 144 drivers/nfc/st-nci/core.c r = st_nci_vendor_cmds_init(ndlc->ndev); ndlc 150 drivers/nfc/st-nci/core.c r = nci_register_device(ndlc->ndev); ndlc 156 drivers/nfc/st-nci/core.c return st_nci_se_init(ndlc->ndev, se_status); ndlc 159 drivers/nfc/st-nci/core.c nci_free_device(ndlc->ndev); ndlc 168 drivers/nfc/st-nci/core.c ndlc_close(info->ndlc); ndlc 34 drivers/nfc/st-nci/i2c.c struct llt_ndlc *ndlc; ndlc 52 drivers/nfc/st-nci/i2c.c if (phy->ndlc->powered == 0 && phy->irq_active == 0) { ndlc 79 drivers/nfc/st-nci/i2c.c if (phy->ndlc->hard_fault != 0) ndlc 80 drivers/nfc/st-nci/i2c.c return phy->ndlc->hard_fault; ndlc 164 drivers/nfc/st-nci/i2c.c if (!phy || !phy->ndlc || irq != phy->i2c_dev->irq) { ndlc 172 drivers/nfc/st-nci/i2c.c if (phy->ndlc->hard_fault) ndlc 175 drivers/nfc/st-nci/i2c.c if (!phy->ndlc->powered) { ndlc 184 drivers/nfc/st-nci/i2c.c ndlc_recv(phy->ndlc, skb); ndlc 243 drivers/nfc/st-nci/i2c.c &phy->ndlc, &phy->se_status); ndlc 266 drivers/nfc/st-nci/i2c.c ndlc_remove(phy->ndlc); ndlc 46 drivers/nfc/st-nci/ndlc.c int ndlc_open(struct llt_ndlc *ndlc) ndlc 49 drivers/nfc/st-nci/ndlc.c ndlc->ops->enable(ndlc->phy_id); ndlc 50 drivers/nfc/st-nci/ndlc.c ndlc->powered = 1; ndlc 55 drivers/nfc/st-nci/ndlc.c void ndlc_close(struct llt_ndlc *ndlc) ndlc 63 drivers/nfc/st-nci/ndlc.c ndlc->ops->enable(ndlc->phy_id); ndlc 65 drivers/nfc/st-nci/ndlc.c nci_prop_cmd(ndlc->ndev, ST_NCI_CORE_PROP, ndlc 68 drivers/nfc/st-nci/ndlc.c ndlc->powered = 0; ndlc 69 drivers/nfc/st-nci/ndlc.c ndlc->ops->disable(ndlc->phy_id); ndlc 73 drivers/nfc/st-nci/ndlc.c int ndlc_send(struct llt_ndlc *ndlc, struct sk_buff *skb) ndlc 80 drivers/nfc/st-nci/ndlc.c skb_queue_tail(&ndlc->send_q, skb); ndlc 82 drivers/nfc/st-nci/ndlc.c schedule_work(&ndlc->sm_work); ndlc 88 drivers/nfc/st-nci/ndlc.c static void llt_ndlc_send_queue(struct llt_ndlc *ndlc) ndlc 94 drivers/nfc/st-nci/ndlc.c if (ndlc->send_q.qlen) ndlc 96 drivers/nfc/st-nci/ndlc.c ndlc->send_q.qlen, ndlc->ack_pending_q.qlen); ndlc 98 drivers/nfc/st-nci/ndlc.c while (ndlc->send_q.qlen) { ndlc 99 drivers/nfc/st-nci/ndlc.c skb = skb_dequeue(&ndlc->send_q); ndlc 101 drivers/nfc/st-nci/ndlc.c r = ndlc->ops->write(ndlc->phy_id, skb); ndlc 103 drivers/nfc/st-nci/ndlc.c ndlc->hard_fault = r; ndlc 109 drivers/nfc/st-nci/ndlc.c skb_queue_tail(&ndlc->ack_pending_q, skb); ndlc 112 drivers/nfc/st-nci/ndlc.c ndlc->t1_active = true; ndlc 113 drivers/nfc/st-nci/ndlc.c mod_timer(&ndlc->t1_timer, time_sent + ndlc 116 drivers/nfc/st-nci/ndlc.c ndlc->t2_active = true; ndlc 117 drivers/nfc/st-nci/ndlc.c mod_timer(&ndlc->t2_timer, time_sent + ndlc 122 drivers/nfc/st-nci/ndlc.c static void llt_ndlc_requeue_data_pending(struct llt_ndlc *ndlc) ndlc 127 drivers/nfc/st-nci/ndlc.c while ((skb = skb_dequeue_tail(&ndlc->ack_pending_q))) { ndlc 143 drivers/nfc/st-nci/ndlc.c skb_queue_head(&ndlc->send_q, skb); ndlc 147 drivers/nfc/st-nci/ndlc.c static void llt_ndlc_rcv_queue(struct llt_ndlc *ndlc) ndlc 153 drivers/nfc/st-nci/ndlc.c if (ndlc->rcv_q.qlen) ndlc 154 drivers/nfc/st-nci/ndlc.c pr_debug("rcvQlen=%d\n", ndlc->rcv_q.qlen); ndlc 156 drivers/nfc/st-nci/ndlc.c while ((skb = skb_dequeue(&ndlc->rcv_q)) != NULL) { ndlc 162 drivers/nfc/st-nci/ndlc.c skb = skb_dequeue(&ndlc->ack_pending_q); ndlc 164 drivers/nfc/st-nci/ndlc.c del_timer_sync(&ndlc->t1_timer); ndlc 165 drivers/nfc/st-nci/ndlc.c del_timer_sync(&ndlc->t2_timer); ndlc 166 drivers/nfc/st-nci/ndlc.c ndlc->t2_active = false; ndlc 167 drivers/nfc/st-nci/ndlc.c ndlc->t1_active = false; ndlc 170 drivers/nfc/st-nci/ndlc.c llt_ndlc_requeue_data_pending(ndlc); ndlc 171 drivers/nfc/st-nci/ndlc.c llt_ndlc_send_queue(ndlc); ndlc 174 drivers/nfc/st-nci/ndlc.c ndlc->t1_active = true; ndlc 175 drivers/nfc/st-nci/ndlc.c mod_timer(&ndlc->t1_timer, time_sent + ndlc 180 drivers/nfc/st-nci/ndlc.c ndlc->t1_active = true; ndlc 181 drivers/nfc/st-nci/ndlc.c mod_timer(&ndlc->t1_timer, time_sent + ndlc 189 drivers/nfc/st-nci/ndlc.c nci_recv_frame(ndlc->ndev, skb); ndlc 198 drivers/nfc/st-nci/ndlc.c struct llt_ndlc *ndlc = container_of(work, struct llt_ndlc, sm_work); ndlc 200 drivers/nfc/st-nci/ndlc.c llt_ndlc_send_queue(ndlc); ndlc 201 drivers/nfc/st-nci/ndlc.c llt_ndlc_rcv_queue(ndlc); ndlc 203 drivers/nfc/st-nci/ndlc.c if (ndlc->t1_active && timer_pending(&ndlc->t1_timer) == 0) { ndlc 206 drivers/nfc/st-nci/ndlc.c ndlc->t1_active = false; ndlc 208 drivers/nfc/st-nci/ndlc.c llt_ndlc_requeue_data_pending(ndlc); ndlc 209 drivers/nfc/st-nci/ndlc.c llt_ndlc_send_queue(ndlc); ndlc 212 drivers/nfc/st-nci/ndlc.c if (ndlc->t2_active && timer_pending(&ndlc->t2_timer) == 0) { ndlc 214 drivers/nfc/st-nci/ndlc.c ndlc->t2_active = false; ndlc 215 drivers/nfc/st-nci/ndlc.c ndlc->t1_active = false; ndlc 216 drivers/nfc/st-nci/ndlc.c del_timer_sync(&ndlc->t1_timer); ndlc 217 drivers/nfc/st-nci/ndlc.c del_timer_sync(&ndlc->t2_timer); ndlc 218 drivers/nfc/st-nci/ndlc.c ndlc_close(ndlc); ndlc 219 drivers/nfc/st-nci/ndlc.c ndlc->hard_fault = -EREMOTEIO; ndlc 223 drivers/nfc/st-nci/ndlc.c void ndlc_recv(struct llt_ndlc *ndlc, struct sk_buff *skb) ndlc 227 drivers/nfc/st-nci/ndlc.c ndlc->hard_fault = -EREMOTEIO; ndlc 228 drivers/nfc/st-nci/ndlc.c ndlc_close(ndlc); ndlc 231 drivers/nfc/st-nci/ndlc.c skb_queue_tail(&ndlc->rcv_q, skb); ndlc 234 drivers/nfc/st-nci/ndlc.c schedule_work(&ndlc->sm_work); ndlc 240 drivers/nfc/st-nci/ndlc.c struct llt_ndlc *ndlc = from_timer(ndlc, t, t1_timer); ndlc 244 drivers/nfc/st-nci/ndlc.c schedule_work(&ndlc->sm_work); ndlc 249 drivers/nfc/st-nci/ndlc.c struct llt_ndlc *ndlc = from_timer(ndlc, t, t2_timer); ndlc 253 drivers/nfc/st-nci/ndlc.c schedule_work(&ndlc->sm_work); ndlc 260 drivers/nfc/st-nci/ndlc.c struct llt_ndlc *ndlc; ndlc 262 drivers/nfc/st-nci/ndlc.c ndlc = devm_kzalloc(dev, sizeof(struct llt_ndlc), GFP_KERNEL); ndlc 263 drivers/nfc/st-nci/ndlc.c if (!ndlc) ndlc 266 drivers/nfc/st-nci/ndlc.c ndlc->ops = phy_ops; ndlc 267 drivers/nfc/st-nci/ndlc.c ndlc->phy_id = phy_id; ndlc 268 drivers/nfc/st-nci/ndlc.c ndlc->dev = dev; ndlc 269 drivers/nfc/st-nci/ndlc.c ndlc->powered = 0; ndlc 271 drivers/nfc/st-nci/ndlc.c *ndlc_id = ndlc; ndlc 274 drivers/nfc/st-nci/ndlc.c timer_setup(&ndlc->t1_timer, ndlc_t1_timeout, 0); ndlc 275 drivers/nfc/st-nci/ndlc.c timer_setup(&ndlc->t2_timer, ndlc_t2_timeout, 0); ndlc 277 drivers/nfc/st-nci/ndlc.c skb_queue_head_init(&ndlc->rcv_q); ndlc 278 drivers/nfc/st-nci/ndlc.c skb_queue_head_init(&ndlc->send_q); ndlc 279 drivers/nfc/st-nci/ndlc.c skb_queue_head_init(&ndlc->ack_pending_q); ndlc 281 drivers/nfc/st-nci/ndlc.c INIT_WORK(&ndlc->sm_work, llt_ndlc_sm_work); ndlc 283 drivers/nfc/st-nci/ndlc.c return st_nci_probe(ndlc, phy_headroom, phy_tailroom, se_status); ndlc 287 drivers/nfc/st-nci/ndlc.c void ndlc_remove(struct llt_ndlc *ndlc) ndlc 289 drivers/nfc/st-nci/ndlc.c st_nci_remove(ndlc->ndev); ndlc 292 drivers/nfc/st-nci/ndlc.c del_timer_sync(&ndlc->t1_timer); ndlc 293 drivers/nfc/st-nci/ndlc.c del_timer_sync(&ndlc->t2_timer); ndlc 294 drivers/nfc/st-nci/ndlc.c ndlc->t2_active = false; ndlc 295 drivers/nfc/st-nci/ndlc.c ndlc->t1_active = false; ndlc 297 drivers/nfc/st-nci/ndlc.c skb_queue_purge(&ndlc->rcv_q); ndlc 298 drivers/nfc/st-nci/ndlc.c skb_queue_purge(&ndlc->send_q); ndlc 44 drivers/nfc/st-nci/ndlc.h int ndlc_open(struct llt_ndlc *ndlc); ndlc 45 drivers/nfc/st-nci/ndlc.h void ndlc_close(struct llt_ndlc *ndlc); ndlc 46 drivers/nfc/st-nci/ndlc.h int ndlc_send(struct llt_ndlc *ndlc, struct sk_buff *skb); ndlc 47 drivers/nfc/st-nci/ndlc.h void ndlc_recv(struct llt_ndlc *ndlc, struct sk_buff *skb); ndlc 51 drivers/nfc/st-nci/ndlc.h void ndlc_remove(struct llt_ndlc *ndlc); ndlc 692 drivers/nfc/st-nci/se.c nci_hci_send_event(info->ndlc->ndev, ST_NCI_APDU_READER_GATE, ndlc 696 drivers/nfc/st-nci/se.c nci_hci_send_event(info->ndlc->ndev, ST_NCI_DEVICE_MGNT_GATE, ndlc 35 drivers/nfc/st-nci/spi.c struct llt_ndlc *ndlc; ndlc 53 drivers/nfc/st-nci/spi.c if (phy->ndlc->powered == 0 && phy->irq_active == 0) { ndlc 88 drivers/nfc/st-nci/spi.c if (phy->ndlc->hard_fault != 0) ndlc 89 drivers/nfc/st-nci/spi.c return phy->ndlc->hard_fault; ndlc 105 drivers/nfc/st-nci/spi.c ndlc_recv(phy->ndlc, skb_rx); ndlc 139 drivers/nfc/st-nci/spi.c phy->ndlc->hard_fault = 1; ndlc 179 drivers/nfc/st-nci/spi.c if (!phy || !phy->ndlc || irq != phy->spi_dev->irq) { ndlc 187 drivers/nfc/st-nci/spi.c if (phy->ndlc->hard_fault) ndlc 190 drivers/nfc/st-nci/spi.c if (!phy->ndlc->powered) { ndlc 199 drivers/nfc/st-nci/spi.c ndlc_recv(phy->ndlc, skb); ndlc 259 drivers/nfc/st-nci/spi.c &phy->ndlc, &phy->se_status); ndlc 282 drivers/nfc/st-nci/spi.c ndlc_remove(phy->ndlc); ndlc 115 drivers/nfc/st-nci/st-nci.h struct llt_ndlc *ndlc; ndlc 122 drivers/nfc/st-nci/st-nci.h int st_nci_probe(struct llt_ndlc *ndlc, int phy_headroom,