Lines Matching +full:- +full:eproto
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2014-2015 STMicroelectronics SAS. All rights reserved.
14 #include "st-nci.h"
46 return -EINVAL; in st_nci_factory_mode()
52 test_and_set_bit(ST_NCI_FACTORY_MODE, &info->flags); in st_nci_factory_mode()
55 clear_bit(ST_NCI_FACTORY_MODE, &info->flags); in st_nci_factory_mode()
58 return -EINVAL; in st_nci_factory_mode()
104 HCI_DM_GET_INFO, skb->len); in st_nci_hci_dm_get_info()
106 r = -ENOMEM; in st_nci_hci_dm_get_info()
110 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_get_info()
112 r = -ENOBUFS; in st_nci_hci_dm_get_info()
136 HCI_DM_GET_DATA, skb->len); in st_nci_hci_dm_get_data()
138 r = -ENOMEM; in st_nci_hci_dm_get_data()
142 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_get_data()
144 r = -ENOBUFS; in st_nci_hci_dm_get_data()
161 dev->fw_download_in_progress = true; in st_nci_hci_dm_fwupd_start()
165 dev->fw_download_in_progress = false; in st_nci_hci_dm_fwupd_start()
184 if (dev->fw_download_in_progress) { in st_nci_hci_dm_direct_load()
185 dev->fw_download_in_progress = false; in st_nci_hci_dm_direct_load()
189 return -EPROTO; in st_nci_hci_dm_direct_load()
213 return -EPROTO; in st_nci_hci_get_param()
215 r = nci_hci_get_param(ndev, param->gate, param->data, &skb); in st_nci_hci_get_param()
220 HCI_GET_PARAM, skb->len); in st_nci_hci_get_param()
222 r = -ENOMEM; in st_nci_hci_get_param()
226 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_get_param()
228 r = -ENOBUFS; in st_nci_hci_get_param()
256 return -EPROTO; in st_nci_hci_dm_vdc_measurement_value()
265 HCI_DM_VDC_MEASUREMENT_VALUE, skb->len); in st_nci_hci_dm_vdc_measurement_value()
267 r = -ENOMEM; in st_nci_hci_dm_vdc_measurement_value()
271 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_vdc_measurement_value()
273 r = -ENOBUFS; in st_nci_hci_dm_vdc_measurement_value()
292 return -EPROTO; in st_nci_hci_dm_vdc_value_comparison()
301 HCI_DM_VDC_VALUE_COMPARISON, skb->len); in st_nci_hci_dm_vdc_value_comparison()
303 r = -ENOMEM; in st_nci_hci_dm_vdc_value_comparison()
307 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_hci_dm_vdc_value_comparison()
309 r = -ENOBUFS; in st_nci_hci_dm_vdc_value_comparison()
328 return -EPROTO; in st_nci_loopback()
335 LOOPBACK, skb->len); in st_nci_loopback()
337 r = -ENOMEM; in st_nci_loopback()
341 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st_nci_loopback()
343 r = -ENOBUFS; in st_nci_loopback()
361 sizeof(ndev->manufact_specific_info)); in st_nci_manufacturer_specific()
363 return -ENOMEM; in st_nci_manufacturer_specific()
365 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, sizeof(ndev->manufact_specific_info), in st_nci_manufacturer_specific()
366 &ndev->manufact_specific_info)) { in st_nci_manufacturer_specific()
368 return -ENOBUFS; in st_nci_manufacturer_specific()