Home
last modified time | relevance | path

Searched refs:ndlc (Results 1 – 9 of 9) sorted by relevance

/linux-4.4.14/drivers/nfc/st-nci/
Dndlc.c58 int ndlc_open(struct llt_ndlc *ndlc) in ndlc_open() argument
61 ndlc->ops->enable(ndlc->phy_id); in ndlc_open()
62 ndlc->powered = 1; in ndlc_open()
67 void ndlc_close(struct llt_ndlc *ndlc) in ndlc_close() argument
75 ndlc->ops->enable(ndlc->phy_id); in ndlc_close()
77 nci_prop_cmd(ndlc->ndev, ST_NCI_CORE_PROP, in ndlc_close()
80 ndlc->powered = 0; in ndlc_close()
81 ndlc->ops->disable(ndlc->phy_id); in ndlc_close()
85 int ndlc_send(struct llt_ndlc *ndlc, struct sk_buff *skb) in ndlc_send() argument
92 skb_queue_tail(&ndlc->send_q, skb); in ndlc_send()
[all …]
Dcore.c51 r = ndlc_open(info->ndlc); in st_nci_open()
65 ndlc_close(info->ndlc); in st_nci_close()
81 return ndlc_send(info->ndlc, skb); in st_nci_send()
125 int st_nci_probe(struct llt_ndlc *ndlc, int phy_headroom, in st_nci_probe() argument
132 info = devm_kzalloc(ndlc->dev, in st_nci_probe()
145 ndlc->ndev = nci_allocate_device(&st_nci_ops, protocols, in st_nci_probe()
147 if (!ndlc->ndev) { in st_nci_probe()
151 info->ndlc = ndlc; in st_nci_probe()
153 nci_set_drvdata(ndlc->ndev, info); in st_nci_probe()
155 r = st_nci_vendor_cmds_init(ndlc->ndev); in st_nci_probe()
[all …]
Dndlc.h55 int ndlc_open(struct llt_ndlc *ndlc);
56 void ndlc_close(struct llt_ndlc *ndlc);
57 int ndlc_send(struct llt_ndlc *ndlc, struct sk_buff *skb);
58 void ndlc_recv(struct llt_ndlc *ndlc, struct sk_buff *skb);
62 void ndlc_remove(struct llt_ndlc *ndlc);
Dspi.c52 struct llt_ndlc *ndlc; member
71 if (phy->ndlc->powered == 0 && phy->irq_active == 0) { in st_nci_spi_enable()
106 if (phy->ndlc->hard_fault != 0) in st_nci_spi_write()
107 return phy->ndlc->hard_fault; in st_nci_spi_write()
123 ndlc_recv(phy->ndlc, skb_rx); in st_nci_spi_write()
157 phy->ndlc->hard_fault = 1; in st_nci_spi_read()
197 if (!phy || !phy->ndlc || irq != phy->spi_dev->irq) { in st_nci_irq_thread_fn()
205 if (phy->ndlc->hard_fault) in st_nci_irq_thread_fn()
208 if (!phy->ndlc->powered) { in st_nci_irq_thread_fn()
217 ndlc_recv(phy->ndlc, skb); in st_nci_irq_thread_fn()
[all …]
Di2c.c51 struct llt_ndlc *ndlc; member
70 if (phy->ndlc->powered == 0 && phy->irq_active == 0) { in st_nci_i2c_enable()
97 if (phy->ndlc->hard_fault != 0) in st_nci_i2c_write()
98 return phy->ndlc->hard_fault; in st_nci_i2c_write()
182 if (!phy || !phy->ndlc || irq != phy->i2c_dev->irq) { in st_nci_irq_thread_fn()
190 if (phy->ndlc->hard_fault) in st_nci_irq_thread_fn()
193 if (!phy->ndlc->powered) { in st_nci_irq_thread_fn()
202 ndlc_recv(phy->ndlc, skb); in st_nci_irq_thread_fn()
333 &phy->ndlc, &phy->se_status); in st_nci_i2c_probe()
356 ndlc_remove(phy->ndlc); in st_nci_i2c_remove()
Dst-nci.h133 struct llt_ndlc *ndlc; member
141 int st_nci_probe(struct llt_ndlc *ndlc, int phy_headroom,
DMakefile5 st-nci-objs = ndlc.o core.o se.o vendor_cmds.o
Dse.c712 nci_hci_send_event(info->ndlc->ndev, ST_NCI_APDU_READER_GATE, in st_nci_se_wt_timeout()
716 nci_hci_send_event(info->ndlc->ndev, ST_NCI_DEVICE_MGNT_GATE, in st_nci_se_wt_timeout()
/linux-4.4.14/arch/mips/pci/
Dfixup-malta.c147 u8 odlc, ndlc; in quirk_dlcsetup() local
151 ndlc = odlc | PIIX4_FUNC0_DLC_USBPR_EN | in quirk_dlcsetup()
154 (void) pci_write_config_byte(dev, PIIX4_FUNC0_DLC, ndlc); in quirk_dlcsetup()