Home
last modified time | relevance | path

Searched +full:- +full:eproto (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/linux/net/caif/
H A Dcfpkt_skbuff.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson AB 2010
19 cfpkt_priv(pkt)->erronous = true; \
20 skb_reset_tail_pointer(&pkt->skb); \
40 return (struct cfpkt_priv_data *) pkt->skb.cb; in cfpkt_priv()
45 return cfpkt_priv(pkt)->erronous; in is_erronous()
50 return &pkt->skb; in pkt_to_skb()
61 cfpkt_priv(pkt)->erronous = false; in cfpkt_fromnative()
98 return skb->len > 0; in cfpkt_more()
105 memcpy(data, skb->data, len); in cfpkt_peek_head()
[all …]
H A Dcfrfml.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson AB 2010
37 struct cfrfml *rfml = container_obj(&srvl->layer); in cfrfml_release()
39 if (rfml->incomplete_frm) in cfrfml_release()
40 cfpkt_destroy(rfml->incomplete_frm); in cfrfml_release()
54 cfsrvl_init(&this->serv, channel_id, dev_info, false); in cfrfml_create()
55 this->serv.release = cfrfml_release; in cfrfml_create()
56 this->serv.layer.receive = cfrfml_receive; in cfrfml_create()
57 this->serv.layer.transmit = cfrfml_transmit; in cfrfml_create()
60 tmp = (mtu_size - RFM_HEAD_SIZE - 6) / 16; in cfrfml_create()
[all …]
H A Dcfveil.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson AB 2010
33 vei->layer.receive = cfvei_receive; in cfvei_create()
34 vei->layer.transmit = cfvei_transmit; in cfvei_create()
35 snprintf(vei->layer.name, CAIF_LAYER_NAME_SZ, "vei%d", channel_id); in cfvei_create()
36 return &vei->layer; in cfvei_create()
43 caif_assert(layr->up != NULL); in cfvei_receive()
44 caif_assert(layr->receive != NULL); in cfvei_receive()
45 caif_assert(layr->ctrlcmd != NULL); in cfvei_receive()
51 return -EPROTO; in cfvei_receive()
[all …]
H A Dcfdgml.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson AB 2010
34 dgm->layer.receive = cfdgml_receive; in cfdgml_create()
35 dgm->layer.transmit = cfdgml_transmit; in cfdgml_create()
36 snprintf(dgm->layer.name, CAIF_LAYER_NAME_SZ, "dgm%d", channel_id); in cfdgml_create()
37 return &dgm->layer; in cfdgml_create()
42 u8 cmd = -1; in cfdgml_receive()
45 caif_assert(layr->up != NULL); in cfdgml_receive()
46 caif_assert(layr->receive != NULL); in cfdgml_receive()
47 caif_assert(layr->ctrlcmd != NULL); in cfdgml_receive()
[all …]
H A Dcffrml.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) ST-Ericsson AB 2010
14 #include <linux/crc-ccitt.h>
40 this->pcpu_refcnt = alloc_percpu(int); in cffrml_create()
41 if (this->pcpu_refcnt == NULL) { in cffrml_create()
48 this->layer.receive = cffrml_receive; in cffrml_create()
49 this->layer.transmit = cffrml_transmit; in cffrml_create()
50 this->layer.ctrlcmd = cffrml_ctrlcmd; in cffrml_create()
51 snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "frm%d", phyid); in cffrml_create()
52 this->dofcs = use_fcs; in cffrml_create()
[all …]
/linux/drivers/crypto/nx/
H A Dnx-common-powernv.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 #include "nx-842.h"
18 #include <asm/opal-api.h>
25 MODULE_ALIAS_CRYPTO("842-nx");
76 * setup_indirect_dde - Setup an indirect DDE
85 dde->flags = 0; in setup_indirect_dde()
86 dde->count = dde_count; in setup_indirect_dde()
87 dde->index = 0; in setup_indirect_dde()
88 dde->length = cpu_to_be32(byte_count); in setup_indirect_dde()
89 dde->address = cpu_to_be64(nx842_get_pa(ddl)); in setup_indirect_dde()
[all …]
/linux/drivers/rtc/
H A Drtc-optee.c1 // SPDX-License-Identifier: GPL-2.0
40 * struct optee_rtc - OP-TEE RTC private data
41 * @dev: OP-TEE based RTC device.
42 * @ctx: OP-TEE context handler.
64 inv_arg.session = priv->session_id; in optee_rtc_readtime()
69 param[0].u.memref.shm = priv->shm; in optee_rtc_readtime()
72 ret = tee_client_invoke_func(priv->ctx, &inv_arg, param); in optee_rtc_readtime()
74 return ret ? ret : -EPROTO; in optee_rtc_readtime()
76 optee_tm = tee_shm_get_va(priv->shm, 0); in optee_rtc_readtime()
81 return -EPROTO; in optee_rtc_readtime()
[all …]
/linux/net/rxrpc/
H A Drxkad.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* Kerberos-based RxRPC security
18 #include <linux/key-type.h>
21 #include <keys/rxrpc-type.h>
22 #include "ar-internal.h"
57 * The data should be the 8-byte secret key.
63 if (prep->datalen != 8) in rxkad_preparse_server_key()
64 return -EINVAL; in rxkad_preparse_server_key()
66 memcpy(&prep->payload.data[2], prep->data, 8); in rxkad_preparse_server_key()
74 if (crypto_skcipher_setkey(ci, prep->data, 8) < 0) in rxkad_preparse_server_key()
[all …]
/linux/drivers/iio/common/ssp_sensors/
H A Dssp_spi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 #define SSP_DEV (&data->spi->dev)
12 * SSP -> AP Instruction
15 * hrm etc. data. LIBRARY and META are mock-up's for now.
25 #define SSP_UNIMPLEMENTED -1
89 msg->buffer = kzalloc(SSP_HEADER_SIZE_ALIGNED + len, in ssp_create_msg()
91 if (!msg->buffer) { in ssp_create_msg()
96 msg->length = len; in ssp_create_msg()
97 msg->options = opt; in ssp_create_msg()
99 memcpy(msg->buffer, &h, SSP_HEADER_SIZE); in ssp_create_msg()
[all …]
/linux/drivers/hid/surface-hid/
H A Dsurface_hid_core.c1 // SPDX-License-Identifier: GPL-2.0+
7 * Copyright (C) 2019-2021 Maximilian Luz <luzmaximilian@gmail.com>
22 /* -- Utility functions. ---------------------------------------------------- */
27 * Non-ssam client devices, i.e. platform client devices, cannot be in surface_hid_is_hot_removed()
28 * hot-removed. in surface_hid_is_hot_removed()
30 if (!is_ssam_device(shid->dev)) in surface_hid_is_hot_removed()
33 return ssam_device_is_hot_removed(to_ssam_device(shid->dev)); in surface_hid_is_hot_removed()
37 /* -- Device descriptor access. --------------------------------------------- */
44 return -ENODEV; in surface_hid_load_hid_descriptor()
46 status = shid->ops.get_descriptor(shid, SURFACE_HID_DESC_HID, in surface_hid_load_hid_descriptor()
[all …]
/linux/drivers/nfc/st-nci/
H A Dvendor_cmds.c1 // 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()
[all …]
/linux/drivers/nfc/s3fwrn5/
H A Dfirmware.c1 // SPDX-License-Identifier: GPL-2.0-or-later
31 reinit_completion(&fw_info->completion); in s3fwrn5_fw_send_msg()
38 &fw_info->completion, msecs_to_jiffies(1000)); in s3fwrn5_fw_send_msg()
42 return -ENXIO; in s3fwrn5_fw_send_msg()
44 if (!fw_info->rsp) in s3fwrn5_fw_send_msg()
45 return -EINVAL; in s3fwrn5_fw_send_msg()
47 *rsp = fw_info->rsp; in s3fwrn5_fw_send_msg()
48 fw_info->rsp = NULL; in s3fwrn5_fw_send_msg()
59 hdr.type = type | fw_info->parity; in s3fwrn5_fw_prep_msg()
60 fw_info->parity ^= 0x80; in s3fwrn5_fw_prep_msg()
[all …]
/linux/drivers/misc/mei/
H A Dhbm.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2003-2022, Intel Corporation. All rights reserved.
68 * mei_cl_conn_status_to_errno - convert client connect response
79 case MEI_CL_CONN_NOT_FOUND: return -ENOTTY; in mei_cl_conn_status_to_errno()
80 case MEI_CL_CONN_ALREADY_STARTED: return -EBUSY; in mei_cl_conn_status_to_errno()
81 case MEI_CL_CONN_OUT_OF_RESOURCES: return -EBUSY; in mei_cl_conn_status_to_errno()
82 case MEI_CL_CONN_MESSAGE_SMALL: return -EINVAL; in mei_cl_conn_status_to_errno()
83 case MEI_CL_CONN_NOT_ALLOWED: return -EBUSY; in mei_cl_conn_status_to_errno()
84 default: return -EINVAL; in mei_cl_conn_status_to_errno()
89 * mei_hbm_write_message - wrapper for sending hbm messages.
[all …]
H A Dinterrupt.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2003-2018, Intel Corporation. All rights reserved.
23 * mei_irq_compl_handler - dispatch complete handlers
35 cl = cb->cl; in mei_irq_compl_handler()
36 list_del_init(&cb->list); in mei_irq_compl_handler()
38 dev_dbg(dev->dev, "completing call back.\n"); in mei_irq_compl_handler()
45 * mei_cl_hbm_equal - check if hbm is addressed to the client
55 return mei_cl_host_addr(cl) == mei_hdr->host_addr && in mei_cl_hbm_equal()
56 mei_cl_me_id(cl) == mei_hdr->me_addr; in mei_cl_hbm_equal()
60 * mei_irq_discard_msg - discard received message
[all …]
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_guc_relay_test.c1 // SPDX-License-Identifier: GPL-2.0 AND MIT
8 #include <kunit/test-bug.h>
35 test->priv = &fake; in relay_test_init()
38 xe = test->priv; in relay_test_init()
41 relay = &xe_device_get_gt(xe, 0)->uc.guc.relay; in relay_test_init()
47 relay->last_rid = TEST_RID - 1; in relay_test_init()
49 test->priv = relay; in relay_test_init()
71 return -ECOMM; in replacement_xe_guc_ct_send_recv_always_fails()
122 const u32 len = GUC2PF_RELAY_FROM_VF_EVENT_MSG_MIN_LEN - 1; in pf_rejects_guc2pf_too_short()
123 struct xe_guc_relay *relay = test->priv; in pf_rejects_guc2pf_too_short()
[all …]
/linux/drivers/nfc/st21nfca/
H A Dvendor_cmds.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2014-2015 STMicroelectronics SAS. All rights reserved.
41 return -EINVAL; in st21nfca_factory_mode()
47 test_and_set_bit(ST21NFCA_FACTORY_MODE, &hdev->quirks); in st21nfca_factory_mode()
50 clear_bit(ST21NFCA_FACTORY_MODE, &hdev->quirks); in st21nfca_factory_mode()
53 return -EINVAL; in st21nfca_factory_mode()
101 HCI_DM_GET_INFO, skb->len); in st21nfca_hci_dm_get_info()
103 r = -ENOMEM; in st21nfca_hci_dm_get_info()
107 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { in st21nfca_hci_dm_get_info()
109 r = -ENOBUFS; in st21nfca_hci_dm_get_info()
[all …]
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0-only
27 * Reader gate for communication with contact-less cards using Type A
28 * protocol ISO14443-3 but not compliant with ISO14443-4
68 #define ST21NFCA_EVT_HOT_PLUG_IS_INHIBITED(x) (x->data[0] & 0x80)
121 * - It does useless EEPROM cycling in st21nfca_hci_load_session()
122 * - It might cause issue for secure elements support in st21nfca_hci_load_session()
125 * - get a pipe list for each host. in st21nfca_hci_load_session()
128 * - get pipe information in st21nfca_hci_load_session()
129 * - match retrieved pipe list in st21nfca_gates in st21nfca_hci_load_session()
148 for (i = 0; i < skb_pipe_list->len; i++) { in st21nfca_hci_load_session()
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_gt_sriov_vf.c1 // SPDX-License-Identifier: MIT
3 * Copyright © 2023-2024 Intel Corporation
47 return ret > 0 ? -EPROTO : ret; in guc_action_vf_reset()
52 struct xe_guc *guc = &gt->uc.guc; in vf_reset_guc_state()
84 return -EPROTO; in guc_action_match_version()
98 switch (xe->info.platform) { in vf_minimum_guc_version()
122 struct xe_gt_sriov_vf_guc_version *guc_version = &gt->sriov.vf.guc_version; in vf_handshake_with_guc()
123 struct xe_guc *guc = &gt->uc.guc; in vf_handshake_with_guc()
130 /* select wanted version - prefer previous (if any) */ in vf_handshake_with_guc()
131 if (guc_version->major || guc_version->minor) { in vf_handshake_with_guc()
[all …]
/linux/fs/afs/
H A Dmisc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
22 case 13: return -EACCES; in afs_abort_to_error()
23 case 27: return -EFBIG; in afs_abort_to_error()
24 case 30: return -EROFS; in afs_abort_to_error()
26 /* VICE "special error" codes; 101 - 111 */ in afs_abort_to_error()
27 case VSALVAGE: return -EIO; in afs_abort_to_error()
28 case VNOVNODE: return -ENOENT; in afs_abort_to_error()
29 case VNOVOL: return -ENOMEDIUM; in afs_abort_to_error()
30 case VVOLEXISTS: return -EEXIST; in afs_abort_to_error()
31 case VNOSERVICE: return -EIO; in afs_abort_to_error()
[all …]
/linux/net/can/j1939/
H A Daddress-claim.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2010-2011 EIA Electronics,
4 // Copyright (c) 2010-2011 EIA Electronics,
6 // Copyright (c) 2017-2019 Pengutronix,
7 // Marc Kleine-Budde <kernel@pengutronix.de>
8 // Copyright (c) 2017-2019 Pengutronix,
13 * - keeps track of the AC states of ECU's,
14 * - resolves NAME<=>SA taking into account the AC states of ECU's.
16 * All Address Claim msgs (including host-originated msg) are processed
30 #include "j1939-priv.h"
[all …]
/linux/net/nfc/nci/
H A Dhci.c1 // SPDX-License-Identifier: GPL-2.0-only
50 u8 header; /* type -cmd,evt,rsp- + instruction */
102 return -EOPNOTSUPP; in nci_hci_result_to_errno()
104 return -ETIME; in nci_hci_result_to_errno()
106 return -1; in nci_hci_result_to_errno()
116 hdev->pipes[i].gate = NCI_HCI_INVALID_GATE; in nci_hci_reset_pipes()
117 hdev->pipes[i].host = NCI_HCI_INVALID_HOST; in nci_hci_reset_pipes()
119 memset(hdev->gate2pipe, NCI_HCI_INVALID_PIPE, sizeof(hdev->gate2pipe)); in nci_hci_reset_pipes()
127 if (ndev->hci_dev->pipes[i].host == host) { in nci_hci_reset_pipes_per_host()
128 ndev->hci_dev->pipes[i].gate = NCI_HCI_INVALID_GATE; in nci_hci_reset_pipes_per_host()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dport.c2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
43 int err = -ENOMEM; in mlx5_access_reg()
319 return -EIO; in mlx5_query_module_id()
331 /* Addresses between 0-255 - page 00 */ in mlx5_qsfp_eeprom_page()
334 /* Addresses between 256 - 639 belongs to pages 01, 02 and 03 in mlx5_qsfp_eeprom_page()
336 * 1 + ((400 - 256)/128) = 2 in mlx5_qsfp_eeprom_page()
338 return 1 + ((offset - MLX5_EEPROM_PAGE_LENGTH) / in mlx5_qsfp_eeprom_page()
355 *offset -= mlx5_qsfp_eeprom_high_page_offset(*page_num); in mlx5_qsfp_eeprom_params_set()
[all …]
/linux/drivers/nfc/pn544/
H A Dpn544.c1 // SPDX-License-Identifier: GPL-2.0-only
131 mutex_lock(&info->info_lock); in pn544_hci_open()
133 if (info->state != PN544_ST_COLD) { in pn544_hci_open()
134 r = -EBUSY; in pn544_hci_open()
138 r = info->phy_ops->enable(info->phy_id); in pn544_hci_open()
141 info->state = PN544_ST_READY; in pn544_hci_open()
144 mutex_unlock(&info->info_lock); in pn544_hci_open()
152 mutex_lock(&info->info_lock); in pn544_hci_close()
154 if (info->state == PN544_ST_COLD) in pn544_hci_close()
157 info->phy_ops->disable(info->phy_id); in pn544_hci_close()
[all …]
/linux/fs/dlm/
H A Dutil.c1 // SPDX-License-Identifier: GPL-2.0-only
5 ** Copyright (C) 2005-2008 Red Hat, Inc. All rights reserved.
29 case -EDEADLK: in to_dlm_errno()
30 return -DLM_ERRNO_EDEADLK; in to_dlm_errno()
31 case -EBADR: in to_dlm_errno()
32 return -DLM_ERRNO_EBADR; in to_dlm_errno()
33 case -EBADSLT: in to_dlm_errno()
34 return -DLM_ERRNO_EBADSLT; in to_dlm_errno()
35 case -EPROTO: in to_dlm_errno()
36 return -DLM_ERRNO_EPROTO; in to_dlm_errno()
[all …]
/linux/drivers/infiniband/sw/siw/
H A Dsiw_qp_rx.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
4 /* Copyright (c) 2008-2019, IBM Corporation */
44 (void *)(uintptr_t)umem->fp_addr); in siw_rx_umem()
46 srx->skb_copied += copied; in siw_rx_umem()
47 srx->skb_new -= copied; in siw_rx_umem()
49 return -EFAULT; in siw_rx_umem()
52 bytes = min(len, (int)PAGE_SIZE - pg_off); in siw_rx_umem()
57 rv = skb_copy_bits(srx->skb, srx->skb_offset, dest + pg_off, in siw_rx_umem()
62 srx->skb_copied += copied; in siw_rx_umem()
63 srx->skb_new -= copied; in siw_rx_umem()
[all …]

12345678910>>...12