Lines Matching refs:se_idx
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()
504 if (se_idx == NFC_SE_EMBEDDED) { in st_nci_disable_se()
516 int st_nci_enable_se(struct nci_dev *ndev, u32 se_idx) in st_nci_enable_se() argument
525 r = st_nci_control_se(ndev, se_idx, ST_NCI_SE_MODE_ON); in st_nci_enable_se()
537 nfc_remove_se(ndev->nfc_dev, se_idx); in st_nci_enable_se()
658 int st_nci_se_io(struct nci_dev *ndev, u32 se_idx, in st_nci_se_io() argument
664 switch (se_idx) { in st_nci_se_io()