Home
last modified time | relevance | path

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

12345678910>>...16

/linux-6.12.1/net/caif/
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 …]
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 …]
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 …]
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 …]
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-6.12.1/drivers/crypto/nx/
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-6.12.1/drivers/rtc/
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-6.12.1/net/rxrpc/
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 …]
Dinsecure.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 #include "ar-internal.h"
34 sp->flags |= RXRPC_RX_VERIFIED; in none_verify_packet()
45 return rxrpc_abort_conn(conn, skb, RX_PROTOCOL_ERROR, -EPROTO, in none_respond_to_challenge()
52 return rxrpc_abort_conn(conn, skb, RX_PROTOCOL_ERROR, -EPROTO, in none_verify_response()
70 * RxRPC Kerberos-based security
/linux-6.12.1/drivers/iio/common/ssp_sensors/
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-6.12.1/drivers/hid/surface-hid/
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-6.12.1/drivers/nfc/st-nci/
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-6.12.1/drivers/nfc/s3fwrn5/
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-6.12.1/drivers/misc/mei/
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 …]
/linux-6.12.1/drivers/base/
Dproperty.c1 // SPDX-License-Identifier: GPL-2.0
3 * property.c - Unified device property interface.
23 return IS_ENABLED(CONFIG_OF) && dev->of_node ? in __dev_fwnode()
24 of_fwnode_handle(dev->of_node) : dev->fwnode; in __dev_fwnode()
30 return IS_ENABLED(CONFIG_OF) && dev->of_node ? in __dev_fwnode_const()
31 of_fwnode_handle(dev->of_node) : dev->fwnode; in __dev_fwnode_const()
36 * device_property_present - check if a property of a device is present
51 * fwnode_property_present - check if a property of a firmware node is present
69 return fwnode_call_bool_op(fwnode->secondary, property_present, propname); in fwnode_property_present()
74 * device_property_read_u8_array - return a u8 array property of a device
[all …]
/linux-6.12.1/drivers/spi/
Dspi-dln2.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Driver for the Diolan DLN-2 USB-SPI adapter
111 tx.port = dln2->port; in dln2_spi_enable()
115 len -= sizeof(tx.wait_for_completion); in dln2_spi_enable()
121 return dln2_transfer_tx(dln2->pdev, cmd, &tx, len); in dln2_spi_enable()
129 * Ex: cs_mask = 0x03 -> CS0 & CS1 will be selected and the next WR/RD operation
139 tx.port = dln2->port; in dln2_spi_cs_set()
148 return dln2_transfer_tx(dln2->pdev, DLN2_SPI_SET_SS, &tx, sizeof(tx)); in dln2_spi_cs_set()
152 * Select one CS line. The other lines will be un-selected.
170 tx.port = dln2->port; in dln2_spi_cs_enable()
[all …]
/linux-6.12.1/drivers/nfc/st21nfca/
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 …]
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-6.12.1/drivers/gpu/drm/xe/tests/
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-6.12.1/fs/afs/
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-6.12.1/security/apparmor/
Dpolicy_unpack.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Copyright (C) 1998-2008 Novell/SUSE
9 * Copyright 2009-2010 Canonical Ltd.
12 * policy format documentation see Documentation/admin-guide/LSM/apparmor.rst
39 if (ad->iface.ns) { in audit_cb()
41 audit_log_untrustedstring(ab, ad->iface.ns); in audit_cb()
43 if (ad->name) { in audit_cb()
45 audit_log_untrustedstring(ab, ad->name); in audit_cb()
47 if (ad->iface.pos) in audit_cb()
48 audit_log_format(ab, " offset=%ld", ad->iface.pos); in audit_cb()
[all …]
/linux-6.12.1/net/can/j1939/
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-6.12.1/net/nfc/nci/
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-6.12.1/fs/dlm/
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-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
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 …]

12345678910>>...16