/kernel/linux/linux-5.10/drivers/nfc/st-nci/ |
H A D | ndlc.c | 42 print_hex_dump(KERN_DEBUG, "ndlc: ", DUMP_PREFIX_OFFSET, \ 46 int ndlc_open(struct llt_ndlc *ndlc) in ndlc_open() argument 49 ndlc->ops->enable(ndlc->phy_id); in ndlc_open() 50 ndlc->powered = 1; in ndlc_open() 55 void ndlc_close(struct llt_ndlc *ndlc) in ndlc_close() argument 63 ndlc->ops->enable(ndlc->phy_id); in ndlc_close() 65 nci_prop_cmd(ndlc->ndev, ST_NCI_CORE_PROP, in ndlc_close() 68 ndlc in ndlc_close() 73 ndlc_send(struct llt_ndlc *ndlc, struct sk_buff *skb) ndlc_send() argument 88 llt_ndlc_send_queue(struct llt_ndlc *ndlc) llt_ndlc_send_queue() argument 122 llt_ndlc_requeue_data_pending(struct llt_ndlc *ndlc) llt_ndlc_requeue_data_pending() argument 147 llt_ndlc_rcv_queue(struct llt_ndlc *ndlc) llt_ndlc_rcv_queue() argument 198 struct llt_ndlc *ndlc = container_of(work, struct llt_ndlc, sm_work); llt_ndlc_sm_work() local 223 ndlc_recv(struct llt_ndlc *ndlc, struct sk_buff *skb) ndlc_recv() argument 240 struct llt_ndlc *ndlc = from_timer(ndlc, t, t1_timer); ndlc_t1_timeout() local 249 struct llt_ndlc *ndlc = from_timer(ndlc, t, t2_timer); ndlc_t2_timeout() local 260 struct llt_ndlc *ndlc; ndlc_probe() local 287 ndlc_remove(struct llt_ndlc *ndlc) ndlc_remove() argument [all...] |
H A D | core.c | 40 r = ndlc_open(info->ndlc); in st_nci_open() 54 ndlc_close(info->ndlc); in st_nci_close() 70 return ndlc_send(info->ndlc, skb); in st_nci_send() 114 int st_nci_probe(struct llt_ndlc *ndlc, int phy_headroom, in st_nci_probe() argument 121 info = devm_kzalloc(ndlc->dev, in st_nci_probe() 134 ndlc->ndev = nci_allocate_device(&st_nci_ops, protocols, in st_nci_probe() 136 if (!ndlc->ndev) { in st_nci_probe() 140 info->ndlc = ndlc; in st_nci_probe() 142 nci_set_drvdata(ndlc in st_nci_probe() [all...] |
H A D | ndlc.h | 44 int ndlc_open(struct llt_ndlc *ndlc); 45 void ndlc_close(struct llt_ndlc *ndlc); 46 int ndlc_send(struct llt_ndlc *ndlc, struct sk_buff *skb); 47 void ndlc_recv(struct llt_ndlc *ndlc, struct sk_buff *skb); 51 void ndlc_remove(struct llt_ndlc *ndlc);
|
H A D | i2c.c | 22 /* ndlc header */ 34 struct llt_ndlc *ndlc; member 52 if (phy->ndlc->powered == 0 && phy->irq_active == 0) { in st_nci_i2c_enable() 79 if (phy->ndlc->hard_fault != 0) in st_nci_i2c_write() 80 return phy->ndlc->hard_fault; in st_nci_i2c_write() 99 * Reads an ndlc frame and returns it in a newly allocated sk_buff. 153 * Reads an ndlc frame from the chip. 164 if (!phy || !phy->ndlc || irq != phy->i2c_dev->irq) { in st_nci_irq_thread_fn() 172 if (phy->ndlc->hard_fault) in st_nci_irq_thread_fn() 175 if (!phy->ndlc in st_nci_irq_thread_fn() [all...] |
H A D | spi.c | 23 /* ndlc header */ 35 struct llt_ndlc *ndlc; member 53 if (phy->ndlc->powered == 0 && phy->irq_active == 0) { in st_nci_spi_enable() 88 if (phy->ndlc->hard_fault != 0) in st_nci_spi_write() 89 return phy->ndlc->hard_fault; in st_nci_spi_write() 94 * Send them back in the ndlc state machine. in st_nci_spi_write() 105 ndlc_recv(phy->ndlc, skb_rx); in st_nci_spi_write() 113 * Reads an ndlc frame and returns it in a newly allocated sk_buff. 139 phy->ndlc->hard_fault = 1; in st_nci_spi_read() 168 * Reads an ndlc fram [all...] |
H A D | st-nci.h | 11 #include "ndlc.h" 115 struct llt_ndlc *ndlc; member 122 int st_nci_probe(struct llt_ndlc *ndlc, int phy_headroom,
|
H A D | Makefile | 6 st-nci-objs = ndlc.o core.o se.o vendor_cmds.o
|
H A D | se.c | 699 nci_hci_send_event(info->ndlc->ndev, ST_NCI_APDU_READER_GATE, in st_nci_se_wt_timeout() 703 nci_hci_send_event(info->ndlc->ndev, ST_NCI_DEVICE_MGNT_GATE, in st_nci_se_wt_timeout()
|
/kernel/linux/linux-6.6/drivers/nfc/st-nci/ |
H A D | ndlc.c | 42 print_hex_dump(KERN_DEBUG, "ndlc: ", DUMP_PREFIX_OFFSET, \ 46 int ndlc_open(struct llt_ndlc *ndlc) in ndlc_open() argument 49 ndlc->ops->enable(ndlc->phy_id); in ndlc_open() 50 ndlc->powered = 1; in ndlc_open() 55 void ndlc_close(struct llt_ndlc *ndlc) in ndlc_close() argument 63 ndlc->ops->enable(ndlc->phy_id); in ndlc_close() 65 nci_prop_cmd(ndlc->ndev, ST_NCI_CORE_PROP, in ndlc_close() 68 ndlc in ndlc_close() 73 ndlc_send(struct llt_ndlc *ndlc, struct sk_buff *skb) ndlc_send() argument 88 llt_ndlc_send_queue(struct llt_ndlc *ndlc) llt_ndlc_send_queue() argument 122 llt_ndlc_requeue_data_pending(struct llt_ndlc *ndlc) llt_ndlc_requeue_data_pending() argument 147 llt_ndlc_rcv_queue(struct llt_ndlc *ndlc) llt_ndlc_rcv_queue() argument 198 struct llt_ndlc *ndlc = container_of(work, struct llt_ndlc, sm_work); llt_ndlc_sm_work() local 223 ndlc_recv(struct llt_ndlc *ndlc, struct sk_buff *skb) ndlc_recv() argument 240 struct llt_ndlc *ndlc = from_timer(ndlc, t, t1_timer); ndlc_t1_timeout() local 247 struct llt_ndlc *ndlc = from_timer(ndlc, t, t2_timer); ndlc_t2_timeout() local 256 struct llt_ndlc *ndlc; ndlc_probe() local 283 ndlc_remove(struct llt_ndlc *ndlc) ndlc_remove() argument [all...] |
H A D | core.c | 38 r = ndlc_open(info->ndlc); in st_nci_open() 52 ndlc_close(info->ndlc); in st_nci_close() 68 return ndlc_send(info->ndlc, skb); in st_nci_send() 112 int st_nci_probe(struct llt_ndlc *ndlc, int phy_headroom, in st_nci_probe() argument 119 info = devm_kzalloc(ndlc->dev, in st_nci_probe() 133 ndlc->ndev = nci_allocate_device(&st_nci_ops, protocols, in st_nci_probe() 135 if (!ndlc->ndev) { in st_nci_probe() 139 info->ndlc = ndlc; in st_nci_probe() 141 nci_set_drvdata(ndlc in st_nci_probe() [all...] |
H A D | spi.c | 23 /* ndlc header */ 35 struct llt_ndlc *ndlc; member 53 if (phy->ndlc->powered == 0 && phy->irq_active == 0) { in st_nci_spi_enable() 88 if (phy->ndlc->hard_fault != 0) in st_nci_spi_write() 89 return phy->ndlc->hard_fault; in st_nci_spi_write() 94 * Send them back in the ndlc state machine. in st_nci_spi_write() 103 ndlc_recv(phy->ndlc, skb_rx); in st_nci_spi_write() 110 * Reads an ndlc frame and returns it in a newly allocated sk_buff. 136 phy->ndlc->hard_fault = 1; in st_nci_spi_read() 165 * Reads an ndlc fram [all...] |
H A D | ndlc.h | 44 int ndlc_open(struct llt_ndlc *ndlc); 45 void ndlc_close(struct llt_ndlc *ndlc); 46 int ndlc_send(struct llt_ndlc *ndlc, struct sk_buff *skb); 47 void ndlc_recv(struct llt_ndlc *ndlc, struct sk_buff *skb); 51 void ndlc_remove(struct llt_ndlc *ndlc);
|
H A D | i2c.c | 22 /* ndlc header */ 34 struct llt_ndlc *ndlc; member 52 if (phy->ndlc->powered == 0 && phy->irq_active == 0) { in st_nci_i2c_enable() 79 if (phy->ndlc->hard_fault != 0) in st_nci_i2c_write() 80 return phy->ndlc->hard_fault; in st_nci_i2c_write() 99 * Reads an ndlc frame and returns it in a newly allocated sk_buff. 153 * Reads an ndlc frame from the chip. 163 if (!phy || !phy->ndlc || irq != phy->i2c_dev->irq) { in st_nci_irq_thread_fn() 168 if (phy->ndlc->hard_fault) in st_nci_irq_thread_fn() 171 if (!phy->ndlc in st_nci_irq_thread_fn() [all...] |
H A D | st-nci.h | 11 #include "ndlc.h" 115 struct llt_ndlc *ndlc; member 122 int st_nci_probe(struct llt_ndlc *ndlc, int phy_headroom,
|
H A D | Makefile | 6 st-nci-objs = ndlc.o core.o se.o vendor_cmds.o
|
H A D | se.c | 705 nci_hci_send_event(info->ndlc->ndev, ST_NCI_APDU_READER_GATE, in st_nci_se_wt_timeout() 709 nci_hci_send_event(info->ndlc->ndev, ST_NCI_DEVICE_MGNT_GATE, in st_nci_se_wt_timeout()
|
/kernel/linux/linux-5.10/arch/mips/pci/ |
H A D | fixup-malta.c | 148 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()
|
/kernel/linux/linux-6.6/arch/mips/pci/ |
H A D | fixup-malta.c | 148 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()
|