Home
last modified time | relevance | path

Searched +full:- +full:eproto (Results 1 – 25 of 296) 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/fs/afs/
H A Dmisc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
23 case 13: return -EACCES; in afs_abort_to_error()
24 case 27: return -EFBIG; in afs_abort_to_error()
25 case 30: return -EROFS; in afs_abort_to_error()
27 /* VICE "special error" codes; 101 - 111 */ in afs_abort_to_error()
28 case VSALVAGE: return -EIO; in afs_abort_to_error()
29 case VNOVNODE: return -ENOENT; in afs_abort_to_error()
30 case VNOVOL: return -ENOMEDIUM; in afs_abort_to_error()
31 case VVOLEXISTS: return -EEXIST; in afs_abort_to_error()
32 case VNOSERVICE: return -EIO; in afs_abort_to_error()
[all …]
/linux/drivers/rtc/
H A Drtc-optee.c1 // SPDX-License-Identifier: GPL-2.0
20 /* PTA_CMD_RTC_GET_INFO - Get RTC information
27 * PTA_CMD_RTC_GET_TIME - Get time from RTC
34 * PTA_CMD_RTC_SET_TIME - Set time from RTC
42 * PTA_CMD_RTC_GET_OFFSET - Get RTC offset
49 * PTA_CMD_RTC_SET_OFFSET - Set RTC offset
56 * PTA_CMD_RTC_READ_ALARM - Read RTC alarm
63 * PTA_CMD_RTC_SET_ALARM - Set RTC alarm
71 * PTA_CMD_RTC_ENABLE_ALARM - Enable Alarm
78 * PTA_CMD_RTC_WAIT_ALARM - Get alarm event
[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-byt
[all...]
H A Drxgk.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* GSSAPI-based RxRPC security
13 #include <linux/key-type.h>
14 #include "ar-internal.h"
23 struct krb5_buffer *server_key = (void *)&prep->payload.data[2]; in rxgk_preparse_server_key()
27 _enter("%zu", prep->datalen); in rxgk_preparse_server_key()
29 if (sscanf(prep->orig_description, "%u:%u:%u:%u%n", in rxgk_preparse_server_key()
31 return -EINVAL; in rxgk_preparse_server_key()
33 if (prep->orig_description[n]) in rxgk_preparse_server_key()
34 return -EINVAL; in rxgk_preparse_server_key()
[all …]
H A Drxgk_app.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* Application-specific bits for GSSAPI-based RxRPC security
13 #include <linux/key-type.h>
14 #include "ar-internal.h"
18 * Decode a default-style YFS ticket in a response and turn it into an
19 * rxrpc-type key.
47 const struct cred *cred = current_cred(); // TODO - use socket creds in rxgk_yfs_decode_ticket()
58 return rxrpc_abort_conn(conn, skb, RXGK_INCONSISTENCY, -EPROTO, in rxgk_yfs_decode_ticket()
64 return rxrpc_abort_conn(conn, skb, RXGK_INCONSISTENCY, -EPROTO, in rxgk_yfs_decode_ticket()
69 if (klen > ticket_len - 10 * sizeof(__be32)) in rxgk_yfs_decode_ticket()
[all …]
H A Dinsecure.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 #include "ar-internal.h"
27 txb->pkt_len = txb->len; in none_secure_packet()
28 if (txb->len == RXRPC_JUMBO_DATALEN) in none_secure_packet()
29 txb->jumboable = true; in none_secure_packet()
37 sp->flags |= RXRPC_RX_VERIFIED; in none_verify_packet()
48 rxrpc_abort_conn(conn, skb, RX_PROTOCOL_ERROR, -EPROTO, in none_validate_challenge()
56 return -EINVAL; in none_sendmsg_respond_to_challenge()
62 return rxrpc_abort_conn(conn, skb, RX_PROTOCOL_ERROR, -EPROTO, in none_verify_response()
80 * RxRPC Kerberos-based security
/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/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/security/apparmor/
H A 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
40 if (ad->iface.ns) { in audit_cb()
42 audit_log_untrustedstring(ab, ad->iface.ns); in audit_cb()
44 if (ad->name) { in audit_cb()
46 audit_log_untrustedstring(ab, ad->name); in audit_cb()
48 if (ad->iface.pos) in audit_cb()
49 audit_log_format(ab, " offset=%ld", ad->iface.pos); in audit_cb()
[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/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/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()
315 return -EIO; in mlx5_query_module_id()
327 /* Addresses between 0-255 - page 00 */ in mlx5_qsfp_eeprom_page()
330 /* Addresses between 256 - 639 belongs to pages 01, 02 and 03 in mlx5_qsfp_eeprom_page()
332 * 1 + ((400 - 256)/128) = 2 in mlx5_qsfp_eeprom_page()
334 return 1 + ((offset - MLX5_EEPROM_PAGE_LENGTH) / in mlx5_qsfp_eeprom_page()
351 *offset -= mlx5_qsfp_eeprom_high_page_offset(*page_num); in mlx5_qsfp_eeprom_params_set()
[all …]
/linux/security/loadpin/
H A Dloadpin.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright 2011-2016 Google Inc.
21 #include <linux/dm-verity-loadpin.h>
71 * If load pinning is not enforced via a read-only block in set_sysctl()
85 if (mnt_sb->s_bdev) { in report_writable()
86 pr_info("%pg (%u:%u): %s\n", mnt_sb->s_bdev, in report_writable()
87 MAJOR(mnt_sb->s_bdev->bd_dev), in report_writable()
88 MINOR(mnt_sb->s_bdev->bd_dev), in report_writable()
89 writable ? "writable" : "read-only"); in report_writable()
105 if (mnt_sb->s_bdev) in sb_is_writable()
[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