Lines Matching refs:se_idx
416 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()
494 if (se_idx == NFC_SE_EMBEDDED) { in st_nci_disable_se()
506 int st_nci_enable_se(struct nci_dev *ndev, u32 se_idx) in st_nci_enable_se() argument
517 r = st_nci_control_se(ndev, se_idx, ST_NCI_SE_MODE_ON); in st_nci_enable_se()
529 nfc_remove_se(ndev->nfc_dev, se_idx); in st_nci_enable_se()
656 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()