| /linux/drivers/net/ethernet/microchip/lan966x/ |
| H A D | lan966x_tbf.c | 12 u32 se_idx; in lan966x_tbf_add() local 21 se_idx = SE_IDX_PORT + port->chip_port; in lan966x_tbf_add() 23 se_idx = SE_IDX_QUEUE + port->chip_port * NUM_PRIO_QUEUES + queue; in lan966x_tbf_add() 46 lan966x, QSYS_SE_CFG(se_idx)); in lan966x_tbf_add() 50 lan966x, QSYS_CIR_CFG(se_idx)); in lan966x_tbf_add() 61 u32 se_idx; in lan966x_tbf_del() local 70 se_idx = SE_IDX_PORT + port->chip_port; in lan966x_tbf_del() 72 se_idx = SE_IDX_QUEUE + port->chip_port * NUM_PRIO_QUEUES + queue; in lan966x_tbf_del() 78 lan966x, QSYS_SE_CFG(se_idx)); in lan966x_tbf_del() 82 lan966x, QSYS_CIR_CFG(se_idx)); in lan966x_tbf_del()
|
| H A D | lan966x_cbs.c | 10 u8 se_idx; in lan966x_cbs_add() local 18 se_idx = SE_IDX_QUEUE + port->chip_port * NUM_PRIO_QUEUES + qopt->queue; in lan966x_cbs_add() 42 lan966x, QSYS_SE_CFG(se_idx)); in lan966x_cbs_add() 46 lan966x, QSYS_CIR_CFG(se_idx)); in lan966x_cbs_add() 55 u8 se_idx; in lan966x_cbs_del() local 57 se_idx = SE_IDX_QUEUE + port->chip_port * NUM_PRIO_QUEUES + qopt->queue; in lan966x_cbs_del() 63 lan966x, QSYS_SE_CFG(se_idx)); in lan966x_cbs_del() 67 lan966x, QSYS_CIR_CFG(se_idx)); in lan966x_cbs_del()
|
| H A D | lan966x_ets.c | 25 u32 se_idx; in lan966x_ets_add() local 48 se_idx = SE_IDX_PORT + port->chip_port; in lan966x_ets_add() 65 lan966x, QSYS_SE_DWRR_CFG(se_idx, 7 - i)); in lan966x_ets_add() 72 lan966x, QSYS_SE_CFG(se_idx)); in lan966x_ets_add() 81 u32 se_idx; in lan966x_ets_del() local 84 se_idx = SE_IDX_PORT + port->chip_port; in lan966x_ets_del() 87 lan_wr(0, lan966x, QSYS_SE_DWRR_CFG(se_idx, i)); in lan966x_ets_del() 93 lan966x, QSYS_SE_CFG(se_idx)); in lan966x_ets_del()
|
| /linux/drivers/nfc/st21nfca/ |
| H A D | se.c | 86 static int st21nfca_hci_control_se(struct nfc_hci_dev *hdev, u32 se_idx, in st21nfca_hci_control_se() argument 94 switch (se_idx) { in st21nfca_hci_control_se() 139 sk_host_list->data[i] != se_idx; i++) in st21nfca_hci_control_se() 144 if (state == ST21NFCA_SE_MODE_ON && host_id == se_idx) in st21nfca_hci_control_se() 145 return se_idx; in st21nfca_hci_control_se() 146 else if (state == ST21NFCA_SE_MODE_OFF && host_id != se_idx) in st21nfca_hci_control_se() 147 return se_idx; in st21nfca_hci_control_se() 174 int st21nfca_hci_enable_se(struct nfc_hci_dev *hdev, u32 se_idx) in st21nfca_hci_enable_se() argument 183 r = st21nfca_hci_control_se(hdev, se_idx, ST21NFCA_SE_MODE_ON); in st21nfca_hci_enable_se() 195 nfc_remove_se(hdev->ndev, se_idx); in st21nfca_hci_enable_se() [all …]
|
| H A D | st21nfca.h | 188 int st21nfca_hci_enable_se(struct nfc_hci_dev *hdev, u32 se_idx); 189 int st21nfca_hci_disable_se(struct nfc_hci_dev *hdev, u32 se_idx); 190 int st21nfca_hci_se_io(struct nfc_hci_dev *hdev, u32 se_idx,
|
| /linux/net/nfc/ |
| H A D | core.c | 534 struct nfc_se *nfc_find_se(struct nfc_dev *dev, u32 se_idx) in nfc_find_se() argument 539 if (se->idx == se_idx) in nfc_find_se() 546 int nfc_enable_se(struct nfc_dev *dev, u32 se_idx) in nfc_enable_se() argument 551 pr_debug("%s se index %d\n", dev_name(&dev->dev), se_idx); in nfc_enable_se() 575 se = nfc_find_se(dev, se_idx); in nfc_enable_se() 586 rc = dev->ops->enable_se(dev, se_idx); in nfc_enable_se() 595 int nfc_disable_se(struct nfc_dev *dev, u32 se_idx) in nfc_disable_se() argument 600 pr_debug("%s se index %d\n", dev_name(&dev->dev), se_idx); in nfc_disable_se() 619 se = nfc_find_se(dev, se_idx); in nfc_disable_se() 630 rc = dev->ops->disable_se(dev, se_idx); in nfc_disable_se() [all …]
|
| H A D | nfc.h | 93 int nfc_genl_se_added(struct nfc_dev *dev, u32 se_idx, u16 type); 94 int nfc_genl_se_removed(struct nfc_dev *dev, u32 se_idx); 95 int nfc_genl_se_transaction(struct nfc_dev *dev, u8 se_idx, 97 int nfc_genl_se_connectivity(struct nfc_dev *dev, u8 se_idx); 148 int nfc_enable_se(struct nfc_dev *dev, u32 se_idx); 149 int nfc_disable_se(struct nfc_dev *dev, u32 se_idx);
|
| H A D | netlink.c | 429 int nfc_genl_se_added(struct nfc_dev *dev, u32 se_idx, u16 type) in nfc_genl_se_added() argument 444 nla_put_u32(msg, NFC_ATTR_SE_INDEX, se_idx) || in nfc_genl_se_added() 460 int nfc_genl_se_removed(struct nfc_dev *dev, u32 se_idx) in nfc_genl_se_removed() argument 475 nla_put_u32(msg, NFC_ATTR_SE_INDEX, se_idx)) in nfc_genl_se_removed() 490 int nfc_genl_se_transaction(struct nfc_dev *dev, u8 se_idx, in nfc_genl_se_transaction() argument 506 se = nfc_find_se(dev, se_idx); in nfc_genl_se_transaction() 511 nla_put_u32(msg, NFC_ATTR_SE_INDEX, se_idx) || in nfc_genl_se_transaction() 536 int nfc_genl_se_connectivity(struct nfc_dev *dev, u8 se_idx) in nfc_genl_se_connectivity() argument 551 se = nfc_find_se(dev, se_idx); in nfc_genl_se_connectivity() 556 nla_put_u32(msg, NFC_ATTR_SE_INDEX, se_idx) || in nfc_genl_se_connectivity() [all …]
|
| /linux/drivers/nfc/st-nci/ |
| H A D | se.c | 428 static int st_nci_control_se(struct nci_dev *ndev, u8 se_idx, in st_nci_control_se() argument 436 switch (se_idx) { in st_nci_control_se() 454 r = nci_nfcee_mode_set(ndev, se_idx, state); in st_nci_control_se() 480 sk_host_list->data[i] != se_idx; i++) in st_nci_control_se() 484 if (state == ST_NCI_SE_MODE_ON && host_id == se_idx) in st_nci_control_se() 485 return se_idx; in st_nci_control_se() 486 else if (state == ST_NCI_SE_MODE_OFF && host_id != se_idx) in st_nci_control_se() 487 return se_idx; in st_nci_control_se() 492 int st_nci_disable_se(struct nci_dev *ndev, u32 se_idx) in st_nci_disable_se() argument 501 r = st_nci_control_se(ndev, se_idx, ST_NCI_SE_MODE_OFF); in st_nci_disable_se() [all …]
|
| H A D | st-nci.h | 129 int st_nci_enable_se(struct nci_dev *ndev, u32 se_idx); 130 int st_nci_disable_se(struct nci_dev *ndev, u32 se_idx); 131 int st_nci_se_io(struct nci_dev *ndev, u32 se_idx,
|
| /linux/include/net/nfc/ |
| H A D | nfc.h | 70 int (*enable_se)(struct nfc_dev *dev, u32 se_idx); 71 int (*disable_se)(struct nfc_dev *dev, u32 se_idx); 72 int (*se_io) (struct nfc_dev *dev, u32 se_idx, 295 int nfc_se_transaction(struct nfc_dev *dev, u8 se_idx, 297 int nfc_se_connectivity(struct nfc_dev *dev, u8 se_idx); 298 int nfc_add_se(struct nfc_dev *dev, u32 se_idx, u16 type); 299 int nfc_remove_se(struct nfc_dev *dev, u32 se_idx); 300 struct nfc_se *nfc_find_se(struct nfc_dev *dev, u32 se_idx);
|
| H A D | hci.h | 48 int (*enable_se)(struct nfc_hci_dev *dev, u32 se_idx); 49 int (*disable_se)(struct nfc_hci_dev *dev, u32 se_idx); 50 int (*se_io)(struct nfc_hci_dev *dev, u32 se_idx,
|
| /linux/drivers/nfc/pn544/ |
| H A D | pn544.c | 783 u32 se_idx = 0; in pn544_hci_discover_se() local 793 nfc_add_se(hdev->ndev, se_idx++, NFC_SE_UICC); in pn544_hci_discover_se() 802 nfc_add_se(hdev->ndev, se_idx++, NFC_SE_EMBEDDED); in pn544_hci_discover_se() 804 return !se_idx; in pn544_hci_discover_se() 809 static int pn544_hci_enable_se(struct nfc_hci_dev *hdev, u32 se_idx) in pn544_hci_enable_se() argument 828 se = nfc_find_se(hdev->ndev, se_idx); in pn544_hci_enable_se() 864 static int pn544_hci_disable_se(struct nfc_hci_dev *hdev, u32 se_idx) in pn544_hci_disable_se() argument 869 se = nfc_find_se(hdev->ndev, se_idx); in pn544_hci_disable_se()
|
| /linux/net/nfc/hci/ |
| H A D | core.c | 801 static int hci_enable_se(struct nfc_dev *nfc_dev, u32 se_idx) in hci_enable_se() argument 806 return hdev->ops->enable_se(hdev, se_idx); in hci_enable_se() 811 static int hci_disable_se(struct nfc_dev *nfc_dev, u32 se_idx) in hci_disable_se() argument 816 return hdev->ops->disable_se(hdev, se_idx); in hci_disable_se() 821 static int hci_se_io(struct nfc_dev *nfc_dev, u32 se_idx, in hci_se_io() argument 828 return hdev->ops->se_io(hdev, se_idx, apdu, in hci_se_io()
|
| /linux/net/nfc/nci/ |
| H A D | core.c | 1074 static int nci_enable_se(struct nfc_dev *nfc_dev, u32 se_idx) in nci_enable_se() argument 1079 return ndev->ops->enable_se(ndev, se_idx); in nci_enable_se() 1084 static int nci_disable_se(struct nfc_dev *nfc_dev, u32 se_idx) in nci_disable_se() argument 1089 return ndev->ops->disable_se(ndev, se_idx); in nci_disable_se() 1110 static int nci_se_io(struct nfc_dev *nfc_dev, u32 se_idx, in nci_se_io() argument 1117 return ndev->ops->se_io(ndev, se_idx, apdu, in nci_se_io()
|