Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/nfc/st-nci/
Dndlc.c57 int ndlc_open(struct llt_ndlc *ndlc) in ndlc_open() argument
60 ndlc->ops->enable(ndlc->phy_id); in ndlc_open()
61 ndlc->powered = 1; in ndlc_open()
66 void ndlc_close(struct llt_ndlc *ndlc) in ndlc_close() argument
74 ndlc->ops->enable(ndlc->phy_id); in ndlc_close()
76 nci_prop_cmd(ndlc->ndev, ST_NCI_CORE_PROP, in ndlc_close()
79 ndlc->powered = 0; in ndlc_close()
80 ndlc->ops->disable(ndlc->phy_id); in ndlc_close()
84 int ndlc_send(struct llt_ndlc *ndlc, struct sk_buff *skb) in ndlc_send() argument
91 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 …]
Dspi.c46 struct llt_ndlc *ndlc; member
64 if (phy->ndlc->powered == 0 && phy->irq_active == 0) { in st_nci_spi_enable()
99 if (phy->ndlc->hard_fault != 0) in st_nci_spi_write()
100 return phy->ndlc->hard_fault; in st_nci_spi_write()
116 ndlc_recv(phy->ndlc, skb_rx); in st_nci_spi_write()
150 phy->ndlc->hard_fault = 1; in st_nci_spi_read()
190 if (!phy || !phy->ndlc || irq != phy->spi_dev->irq) { in st_nci_irq_thread_fn()
198 if (phy->ndlc->hard_fault) in st_nci_irq_thread_fn()
201 if (!phy->ndlc->powered) { in st_nci_irq_thread_fn()
210 ndlc_recv(phy->ndlc, skb); in st_nci_irq_thread_fn()
[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);
Di2c.c45 struct llt_ndlc *ndlc; member
63 if (phy->ndlc->powered == 0 && phy->irq_active == 0) { in st_nci_i2c_enable()
90 if (phy->ndlc->hard_fault != 0) in st_nci_i2c_write()
91 return phy->ndlc->hard_fault; in st_nci_i2c_write()
175 if (!phy || !phy->ndlc || irq != phy->i2c_dev->irq) { in st_nci_irq_thread_fn()
183 if (phy->ndlc->hard_fault) in st_nci_irq_thread_fn()
186 if (!phy->ndlc->powered) { in st_nci_irq_thread_fn()
195 ndlc_recv(phy->ndlc, skb); in st_nci_irq_thread_fn()
254 &phy->ndlc, &phy->se_status); in st_nci_i2c_probe()
277 ndlc_remove(phy->ndlc); in st_nci_i2c_remove()
Dst-nci.h126 struct llt_ndlc *ndlc; member
133 int st_nci_probe(struct llt_ndlc *ndlc, int phy_headroom,
DMakefile6 st-nci-objs = ndlc.o core.o se.o vendor_cmds.o
Dse.c701 nci_hci_send_event(info->ndlc->ndev, ST_NCI_APDU_READER_GATE, in st_nci_se_wt_timeout()
705 nci_hci_send_event(info->ndlc->ndev, ST_NCI_DEVICE_MGNT_GATE, in st_nci_se_wt_timeout()
/Linux-v4.19/arch/mips/pci/
Dfixup-malta.c148 u8 odlc, ndlc; in quirk_dlcsetup() local
152 ndlc = odlc | PIIX4_FUNC0_DLC_USBPR_EN | in quirk_dlcsetup()
155 (void) pci_write_config_byte(dev, PIIX4_FUNC0_DLC, ndlc); in quirk_dlcsetup()