Lines Matching refs:se_idx
422 static int st_nci_control_se(struct nci_dev *ndev, u8 se_idx, in st_nci_control_se() argument
430 switch (se_idx) { in st_nci_control_se()
448 r = nci_nfcee_mode_set(ndev, se_idx, state); in st_nci_control_se()
474 sk_host_list->data[i] != se_idx; i++) in st_nci_control_se()
478 if (state == ST_NCI_SE_MODE_ON && host_id == se_idx) in st_nci_control_se()
479 return se_idx; in st_nci_control_se()
480 else if (state == ST_NCI_SE_MODE_OFF && host_id != se_idx) in st_nci_control_se()
481 return se_idx; in st_nci_control_se()
486 int st_nci_disable_se(struct nci_dev *ndev, u32 se_idx) in st_nci_disable_se() argument
497 r = st_nci_control_se(ndev, se_idx, ST_NCI_SE_MODE_OFF); in st_nci_disable_se()
500 if (se_idx == NFC_SE_EMBEDDED) { in st_nci_disable_se()
512 int st_nci_enable_se(struct nci_dev *ndev, u32 se_idx) in st_nci_enable_se() argument
523 r = st_nci_control_se(ndev, se_idx, ST_NCI_SE_MODE_ON); in st_nci_enable_se()
535 nfc_remove_se(ndev->nfc_dev, se_idx); in st_nci_enable_se()
667 int st_nci_se_io(struct nci_dev *ndev, u32 se_idx, in st_nci_se_io() argument
675 switch (se_idx) { in st_nci_se_io()