Home
last modified time | relevance | path

Searched refs:se_idx (Results 1 – 5 of 5) sorted by relevance

/drivers/nfc/st21nfca/
Dse.c97 static int st21nfca_hci_control_se(struct nfc_hci_dev *hdev, u32 se_idx, in st21nfca_hci_control_se() argument
105 switch (se_idx) { in st21nfca_hci_control_se()
150 sk_host_list->data[i] != se_idx; i++) in st21nfca_hci_control_se()
155 if (state == ST21NFCA_SE_MODE_ON && host_id == se_idx) in st21nfca_hci_control_se()
156 return se_idx; in st21nfca_hci_control_se()
157 else if (state == ST21NFCA_SE_MODE_OFF && host_id != se_idx) in st21nfca_hci_control_se()
158 return se_idx; in st21nfca_hci_control_se()
185 int st21nfca_hci_enable_se(struct nfc_hci_dev *hdev, u32 se_idx) in st21nfca_hci_enable_se() argument
194 r = st21nfca_hci_control_se(hdev, se_idx, ST21NFCA_SE_MODE_ON); in st21nfca_hci_enable_se()
206 nfc_remove_se(hdev->ndev, se_idx); in st21nfca_hci_enable_se()
[all …]
Dst21nfca.h198 int st21nfca_hci_enable_se(struct nfc_hci_dev *hdev, u32 se_idx);
199 int st21nfca_hci_disable_se(struct nfc_hci_dev *hdev, u32 se_idx);
200 int st21nfca_hci_se_io(struct nfc_hci_dev *hdev, u32 se_idx,
/drivers/nfc/st-nci/
Dse.c416 static int st_nci_control_se(struct nci_dev *ndev, u8 se_idx, in st_nci_control_se() argument
424 switch (se_idx) { in st_nci_control_se()
442 r = nci_nfcee_mode_set(ndev, se_idx, state); in st_nci_control_se()
468 sk_host_list->data[i] != se_idx; i++) in st_nci_control_se()
472 if (state == ST_NCI_SE_MODE_ON && host_id == se_idx) in st_nci_control_se()
473 return se_idx; in st_nci_control_se()
474 else if (state == ST_NCI_SE_MODE_OFF && host_id != se_idx) in st_nci_control_se()
475 return se_idx; in st_nci_control_se()
480 int st_nci_disable_se(struct nci_dev *ndev, u32 se_idx) in st_nci_disable_se() argument
491 r = st_nci_control_se(ndev, se_idx, ST_NCI_SE_MODE_OFF); in st_nci_disable_se()
[all …]
Dst-nci.h140 int st_nci_enable_se(struct nci_dev *ndev, u32 se_idx);
141 int st_nci_disable_se(struct nci_dev *ndev, u32 se_idx);
142 int st_nci_se_io(struct nci_dev *ndev, u32 se_idx,
/drivers/nfc/pn544/
Dpn544.c795 u32 se_idx = 0; in pn544_hci_discover_se() local
805 nfc_add_se(hdev->ndev, se_idx++, NFC_SE_UICC); in pn544_hci_discover_se()
814 nfc_add_se(hdev->ndev, se_idx++, NFC_SE_EMBEDDED); in pn544_hci_discover_se()
816 return !se_idx; in pn544_hci_discover_se()
821 static int pn544_hci_enable_se(struct nfc_hci_dev *hdev, u32 se_idx) in pn544_hci_enable_se() argument
840 se = nfc_find_se(hdev->ndev, se_idx); in pn544_hci_enable_se()
876 static int pn544_hci_disable_se(struct nfc_hci_dev *hdev, u32 se_idx) in pn544_hci_disable_se() argument
881 se = nfc_find_se(hdev->ndev, se_idx); in pn544_hci_disable_se()