Home
last modified time | relevance | path

Searched refs:payload (Results 1 – 25 of 657) sorted by relevance

12345678910>>...27

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dreg.h30 #define MLXSW_REG_ZERO(type, payload) memset(payload, 0, MLXSW_REG(type)->len) argument
49 static inline void mlxsw_reg_sgcr_pack(char *payload, bool llb) in mlxsw_reg_sgcr_pack() argument
51 MLXSW_REG_ZERO(sgcr, payload); in mlxsw_reg_sgcr_pack()
52 mlxsw_reg_sgcr_llb_set(payload, !!llb); in mlxsw_reg_sgcr_pack()
108 static inline void mlxsw_reg_smid_pack(char *payload, u16 mid, in mlxsw_reg_smid_pack() argument
111 MLXSW_REG_ZERO(smid, payload); in mlxsw_reg_smid_pack()
112 mlxsw_reg_smid_swid_set(payload, 0); in mlxsw_reg_smid_pack()
113 mlxsw_reg_smid_mid_set(payload, mid); in mlxsw_reg_smid_pack()
114 mlxsw_reg_smid_port_set(payload, port, set); in mlxsw_reg_smid_pack()
115 mlxsw_reg_smid_port_mask_set(payload, port, 1); in mlxsw_reg_smid_pack()
[all …]
/kernel/linux/linux-5.10/drivers/media/radio/wl128x/
Dfmdrv_tx.c16 u16 payload; in fm_tx_set_stereo_mono() local
25 payload = (1 - mode); in fm_tx_set_stereo_mono()
26 ret = fmc_send_cmd(fmdev, MONO_SET, REG_WR, &payload, in fm_tx_set_stereo_mono()
27 sizeof(payload), NULL, NULL); in fm_tx_set_stereo_mono()
38 u16 payload; in set_rds_text() local
47 payload = (u16)0x1; in set_rds_text()
48 ret = fmc_send_cmd(fmdev, DISPLAY_MODE, REG_WR, &payload, in set_rds_text()
49 sizeof(payload), NULL, NULL); in set_rds_text()
58 u16 payload; in set_rds_data_mode() local
62 payload = (u16)0xcafe; in set_rds_data_mode()
[all …]
Dfmdrv_rx.c36 u16 payload, curr_frq, intr_flag; in fm_rx_set_freq() local
47 payload = FM_RX_AUDIO_ENABLE_I2S_AND_ANALOG; in fm_rx_set_freq()
49 ret = fmc_send_cmd(fmdev, AUDIO_ENABLE_SET, REG_WR, &payload, in fm_rx_set_freq()
50 sizeof(payload), NULL, NULL); in fm_rx_set_freq()
55 payload = FM_RX_IFFREQ_HILO_AUTOMATIC; in fm_rx_set_freq()
56 ret = fmc_send_cmd(fmdev, HILO_SET, REG_WR, &payload, in fm_rx_set_freq()
57 sizeof(payload), NULL, NULL); in fm_rx_set_freq()
62 payload = (freq - fmdev->rx.region.bot_freq) / FM_FREQ_MUL; in fm_rx_set_freq()
64 ret = fmc_send_cmd(fmdev, FREQ_SET, REG_WR, &payload, in fm_rx_set_freq()
65 sizeof(payload), NULL, NULL); in fm_rx_set_freq()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_varlen.c43 void *payload = payload1; in handler64_unsigned() local
50 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in1[0]); in handler64_unsigned()
52 payload += len; in handler64_unsigned()
56 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in2[0]); in handler64_unsigned()
58 payload += len; in handler64_unsigned()
62 total1 = payload - (void *)payload1; in handler64_unsigned()
71 void *payload = payload3; in handler64_signed() local
78 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in1[0]); in handler64_signed()
80 payload += len; in handler64_signed()
83 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in2[0]); in handler64_signed()
[all …]
Dprofiler.inc.h208 void* payload, in read_full_cgroup_path() argument
211 void* payload_start = payload; in read_full_cgroup_path()
219 bpf_probe_read_str(payload, MAX_PATH, BPF_CORE_READ(cgroup_node, name)); in read_full_cgroup_path()
221 return payload; in read_full_cgroup_path()
223 *root_pos = payload - payload_start; in read_full_cgroup_path()
226 payload += filepart_length; in read_full_cgroup_path()
230 return payload; in read_full_cgroup_path()
253 void* payload) in populate_cgroup_info() argument
306 bpf_probe_read_str(payload, MAX_PATH, BPF_CORE_READ(root_kernfs, name)); in populate_cgroup_info()
311 payload += cgroup_root_length; in populate_cgroup_info()
[all …]
Dstrobemeta.h187 char payload[STROBE_MAX_PAYLOAD]; member
358 void *payload) in read_str_var() argument
369 len = bpf_probe_read_user_str(payload, STROBE_MAX_STR_LEN, value->ptr); in read_str_var()
388 void *payload) in read_map_var() argument
401 return payload; in read_map_var()
405 return payload; in read_map_var()
414 len = bpf_probe_read_user_str(payload, STROBE_MAX_STR_LEN, map.tag); in read_map_var()
417 payload += len; in read_map_var()
430 len = bpf_probe_read_user_str(payload, STROBE_MAX_STR_LEN, in read_map_var()
434 payload += len; in read_map_var()
[all …]
/kernel/linux/linux-5.10/tools/perf/util/intel-pt-decoder/
Dintel-pt-pkt-decoder.c79 uint64_t payload; in intel_pt_get_long_tnt() local
85 payload = le64_to_cpu(*(uint64_t *)buf); in intel_pt_get_long_tnt()
88 if (payload & BIT63) in intel_pt_get_long_tnt()
90 payload <<= 1; in intel_pt_get_long_tnt()
95 packet->payload = payload << 1; in intel_pt_get_long_tnt()
102 uint64_t payload = 0; in intel_pt_get_pip() local
108 memcpy_le64(&payload, buf + 2, 6); in intel_pt_get_pip()
109 packet->payload = payload >> 1; in intel_pt_get_pip()
110 if (payload & 1) in intel_pt_get_pip()
111 packet->payload |= NR_FLAG; in intel_pt_get_pip()
[all …]
/kernel/linux/linux-5.10/tools/perf/util/arm-spe-decoder/
Darm-spe-pkt-decoder.c96 case 1: packet->payload = *(uint8_t *)buf; break; in arm_spe_get_payload()
97 case 2: packet->payload = le16_to_cpu(*(uint16_t *)buf); break; in arm_spe_get_payload()
98 case 4: packet->payload = le32_to_cpu(*(uint32_t *)buf); break; in arm_spe_get_payload()
99 case 8: packet->payload = le64_to_cpu(*(uint64_t *)buf); break; in arm_spe_get_payload()
190 packet->payload = le16_to_cpu(*(uint16_t *)(buf + 1)); in arm_spe_get_counter()
207 memcpy_le64(&packet->payload, buf + 1, 8); in arm_spe_get_addr()
278 unsigned long long payload = packet->payload; in arm_spe_pkt_desc() local
293 if (payload & 0x1) { in arm_spe_pkt_desc()
298 if (payload & 0x2) { in arm_spe_pkt_desc()
303 if (payload & 0x4) { in arm_spe_pkt_desc()
[all …]
Darm-spe-decoder.c28 static u64 arm_spe_calc_ip(int index, u64 payload) in arm_spe_calc_ip() argument
30 u8 *addr = (u8 *)&payload; in arm_spe_calc_ip()
64 return payload; in arm_spe_calc_ip()
141 u64 payload, ip; in arm_spe_read_record() local
151 payload = decoder->packet.payload; in arm_spe_read_record()
155 decoder->record.timestamp = payload; in arm_spe_read_record()
160 ip = arm_spe_calc_ip(idx, payload); in arm_spe_read_record()
173 if (payload & BIT(EV_L1D_REFILL)) in arm_spe_read_record()
176 if (payload & BIT(EV_L1D_ACCESS)) in arm_spe_read_record()
179 if (payload & BIT(EV_TLB_WALK)) in arm_spe_read_record()
[all …]
/kernel/linux/linux-5.10/drivers/staging/hievent/
Dhiview_hievent.c48 struct hievent_payload *payload);
52 struct hievent_payload *payload = NULL; in hievent_payload_create() local
54 payload = kmalloc(sizeof(*payload), GFP_KERNEL); in hievent_payload_create()
55 if (!payload) in hievent_payload_create()
58 payload->key = NULL; in hievent_payload_create()
59 payload->value = NULL; in hievent_payload_create()
60 payload->next = NULL; in hievent_payload_create()
62 return payload; in hievent_payload_create()
92 struct hievent_payload *payload) in hievent_add_payload() argument
95 obj->head = payload; in hievent_add_payload()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/event/src/
Devent.c74 uint8_t *payload) in ia_css_event_decode() argument
76 assert(payload[1] == 0); in ia_css_event_decode()
77 assert(payload[2] == 0); in ia_css_event_decode()
78 assert(payload[3] == 0); in ia_css_event_decode()
89 payload[0] = event & 0xff; /*event_code */ in ia_css_event_decode()
90 payload[1] = (event >> 8) & 0xff; in ia_css_event_decode()
91 payload[2] = (event >> 16) & 0xff; in ia_css_event_decode()
92 payload[3] = 0; in ia_css_event_decode()
94 switch (payload[0]) { in ia_css_event_decode()
96 payload[2] = 0; in ia_css_event_decode()
[all …]
/kernel/linux/linux-5.10/drivers/net/ipa/
Dipa_cmd.c250 struct ipa_cmd_register_write *payload; in ipa_cmd_register_write_offset_valid() local
259 bit_count = BITS_PER_BYTE * sizeof(payload->offset); in ipa_cmd_register_write_offset_valid()
380 struct ipa_cmd_hw_ip_fltrt_init *payload; in ipa_cmd_table_init_add() local
401 payload = &cmd_payload->table_init; in ipa_cmd_table_init_add()
405 payload->hash_rules_addr = cpu_to_le64(hash_addr); in ipa_cmd_table_init_add()
406 payload->flags = cpu_to_le64(val); in ipa_cmd_table_init_add()
407 payload->nhash_rules_addr = cpu_to_le64(addr); in ipa_cmd_table_init_add()
409 gsi_trans_cmd_add(trans, payload, sizeof(*payload), payload_addr, in ipa_cmd_table_init_add()
420 struct ipa_cmd_hw_hdr_init_local *payload; in ipa_cmd_hdr_init_local_add() local
433 payload = &cmd_payload->hdr_init_local; in ipa_cmd_hdr_init_local_add()
[all …]
/kernel/linux/linux-5.10/drivers/ps3/
Dps3-sys-manager.c231 const struct ps3_sys_manager_header *header, const void *payload) in ps3_sys_manager_write() argument
244 result = ps3_vuart_write(dev, payload, header->payload_size); in ps3_sys_manager_write()
262 } payload; in ps3_sys_manager_send_attr() local
264 BUILD_BUG_ON(sizeof(payload) != 8); in ps3_sys_manager_send_attr()
274 memset(&payload, 0, sizeof(payload)); in ps3_sys_manager_send_attr()
275 payload.version = 1; in ps3_sys_manager_send_attr()
276 payload.attribute = attr; in ps3_sys_manager_send_attr()
278 return ps3_sys_manager_write(dev, &header, &payload); in ps3_sys_manager_send_attr()
299 } payload; in ps3_sys_manager_send_next_op() local
301 BUILD_BUG_ON(sizeof(payload) != 16); in ps3_sys_manager_send_next_op()
[all …]
/kernel/linux/linux-5.10/security/keys/trusted-keys/
Dtrusted_tpm2.c63 struct trusted_key_payload *payload, in tpm2_seal_trusted() argument
100 tpm_buf_append_u16(&buf, 4 + options->blobauth_len + payload->key_len + 1); in tpm2_seal_trusted()
106 tpm_buf_append_u16(&buf, payload->key_len + 1); in tpm2_seal_trusted()
107 tpm_buf_append(&buf, payload->key, payload->key_len); in tpm2_seal_trusted()
108 tpm_buf_append_u8(&buf, payload->migratable); in tpm2_seal_trusted()
155 memcpy(payload->blob, &buf.data[TPM_HEADER_SIZE + 4], blob_len); in tpm2_seal_trusted()
156 payload->blob_len = blob_len; in tpm2_seal_trusted()
186 struct trusted_key_payload *payload, in tpm2_load_cmd() argument
196 private_len = be16_to_cpup((__be16 *) &payload->blob[0]); in tpm2_load_cmd()
197 if (private_len > (payload->blob_len - 2)) in tpm2_load_cmd()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/
Dtunnel_conf.c230 struct nfp_tun_active_tuns *payload; in nfp_tunnel_keep_alive() local
237 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_keep_alive()
238 count = be32_to_cpu(payload->count); in nfp_tunnel_keep_alive()
245 if (pay_len != struct_size(payload, tun_info, count)) { in nfp_tunnel_keep_alive()
252 ipv4_addr = payload->tun_info[i].ipv4; in nfp_tunnel_keep_alive()
253 port = be32_to_cpu(payload->tun_info[i].egress_port); in nfp_tunnel_keep_alive()
272 struct nfp_tun_active_tuns_v6 *payload; in nfp_tunnel_keep_alive_v6() local
279 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_keep_alive_v6()
280 count = be32_to_cpu(payload->count); in nfp_tunnel_keep_alive_v6()
287 if (pay_len != struct_size(payload, tun_info, count)) { in nfp_tunnel_keep_alive_v6()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
Dselftest.c84 struct ef4_loopback_payload payload; member
288 struct ef4_loopback_payload *payload; in ef4_loopback_rx_packet() local
296 payload = &state->payload; in ef4_loopback_rx_packet()
299 received->ip.saddr = payload->ip.saddr; in ef4_loopback_rx_packet()
301 received->ip.check = payload->ip.check; in ef4_loopback_rx_packet()
312 if (memcmp(&received->header, &payload->header, ETH_HLEN) != 0) { in ef4_loopback_rx_packet()
320 if (pkt_len != sizeof(*payload)) { in ef4_loopback_rx_packet()
323 "%s loopback test\n", pkt_len, (int)sizeof(*payload), in ef4_loopback_rx_packet()
329 if (memcmp(&received->ip, &payload->ip, sizeof(payload->ip)) != 0) { in ef4_loopback_rx_packet()
337 if (memcmp(&received->msg, &payload->msg, sizeof(received->msg)) != 0) { in ef4_loopback_rx_packet()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dselftest.c87 struct efx_loopback_payload payload; member
286 struct efx_loopback_payload *payload; in efx_loopback_rx_packet() local
294 payload = &state->payload; in efx_loopback_rx_packet()
297 received->ip.saddr = payload->ip.saddr; in efx_loopback_rx_packet()
299 received->ip.check = payload->ip.check; in efx_loopback_rx_packet()
310 if (memcmp(&received->header, &payload->header, ETH_HLEN) != 0) { in efx_loopback_rx_packet()
318 if (pkt_len != sizeof(*payload)) { in efx_loopback_rx_packet()
321 "%s loopback test\n", pkt_len, (int)sizeof(*payload), in efx_loopback_rx_packet()
327 if (memcmp(&received->ip, &payload->ip, sizeof(payload->ip)) != 0) { in efx_loopback_rx_packet()
335 if (memcmp(&received->msg, &payload->msg, sizeof(received->msg)) != 0) { in efx_loopback_rx_packet()
[all …]
/kernel/linux/linux-5.10/tools/perf/scripts/python/
Dintel-pt-events.py38 payload = data[1]
40 print("IP: %u payload: %#x" % (exact_ip, payload), end=' ')
51 payload = data[1]
52 hints = payload & 0xff
53 extensions = (payload >> 32) & 0x3
58 payload = data[1]
59 hw = (payload >> 7) & 1
60 cstate = (payload >> 12) & 0xf
61 subcstate = (payload >> 8) & 0xf
73 payload = data[1]
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_ddc.c164 struct i2c_payload payload = { in dal_ddc_i2c_payloads_add() local
169 dal_vector_append(&payloads->payloads, &payload); in dal_ddc_i2c_payloads_add()
521 struct aux_payload payload; in dal_ddc_service_query_ddc_data() local
523 payload.i2c_over_aux = true; in dal_ddc_service_query_ddc_data()
524 payload.address = address; in dal_ddc_service_query_ddc_data()
525 payload.reply = NULL; in dal_ddc_service_query_ddc_data()
526 payload.defer_delay = get_defer_delay(ddc); in dal_ddc_service_query_ddc_data()
529 payload.write = true; in dal_ddc_service_query_ddc_data()
533 payload.mot = read_size == 0 ? false : true; in dal_ddc_service_query_ddc_data()
534 payload.length = write_size; in dal_ddc_service_query_ddc_data()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce/
Ddce_aux.c531 static enum i2caux_transaction_action i2caux_action_from_payload(struct aux_payload *payload) in i2caux_action_from_payload() argument
533 if (payload->i2c_over_aux) { in i2caux_action_from_payload()
534 if (payload->write) { in i2caux_action_from_payload()
535 if (payload->mot) in i2caux_action_from_payload()
539 if (payload->mot) in i2caux_action_from_payload()
543 if (payload->write) in i2caux_action_from_payload()
549 struct aux_payload *payload, in dce_aux_transfer_raw() argument
569 if (payload->i2c_over_aux) in dce_aux_transfer_raw()
574 aux_req.action = i2caux_action_from_payload(payload); in dce_aux_transfer_raw()
576 aux_req.address = payload->address; in dce_aux_transfer_raw()
[all …]
/kernel/linux/linux-5.10/security/keys/
Dbig_key.c58 struct path *path = (struct path *)&prep->payload.data[big_key_path]; in big_key_preparse()
72 prep->payload.data[big_key_len] = (void *)(unsigned long)datalen; in big_key_preparse()
120 prep->payload.data[big_key_data] = enckey; in big_key_preparse()
133 prep->payload.data[big_key_data] = data; in big_key_preparse()
154 struct path *path = (struct path *)&prep->payload.data[big_key_path]; in big_key_free_preparse()
158 kfree_sensitive(prep->payload.data[big_key_data]); in big_key_free_preparse()
167 struct path *path = (struct path *)&key->payload.data[big_key_path]; in big_key_revoke()
172 (size_t)key->payload.data[big_key_len] > BIG_KEY_FILE_THRESHOLD) in big_key_revoke()
181 size_t datalen = (size_t)key->payload.data[big_key_len]; in big_key_destroy()
184 struct path *path = (struct path *)&key->payload.data[big_key_path]; in big_key_destroy()
[all …]
/kernel/linux/linux-5.10/drivers/hid/
Dhid-wiimote-core.c1245 static void handler_keys(struct wiimote_data *wdata, const __u8 *payload) in handler_keys() argument
1252 ops->in_keys(wdata, payload); in handler_keys()
1260 ops->in_keys(wdata, payload); in handler_keys()
1266 static void handler_accel(struct wiimote_data *wdata, const __u8 *payload) in handler_accel() argument
1273 ops->in_accel(wdata, payload); in handler_accel()
1281 ops->in_accel(wdata, payload); in handler_accel()
1299 static void handler_ext(struct wiimote_data *wdata, const __u8 *payload, in handler_ext() argument
1314 if (len < 6 || !memcmp(payload, invalid, len)) in handler_ext()
1320 if (payload[5] & 0x01) in handler_ext()
1323 if (payload[4] & 0x01) { in handler_ext()
[all …]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dzforce_ts.c337 static int zforce_touch_event(struct zforce_ts *ts, u8 *payload) in zforce_touch_event() argument
344 count = payload[0]; in zforce_touch_event()
354 payload[9 * i + 2] << 8 | payload[9 * i + 1]; in zforce_touch_event()
356 payload[9 * i + 4] << 8 | payload[9 * i + 3]; in zforce_touch_event()
365 point.state = payload[9 * i + 5] & 0x0f; in zforce_touch_event()
366 point.id = (payload[9 * i + 5] & 0xf0) >> 4; in zforce_touch_event()
369 point.area_major = max(payload[9 * i + 6], in zforce_touch_event()
370 payload[9 * i + 7]); in zforce_touch_event()
371 point.area_minor = min(payload[9 * i + 6], in zforce_touch_event()
372 payload[9 * i + 7]); in zforce_touch_event()
[all …]
/kernel/linux/linux-5.10/security/integrity/ima/
Dima_queue_keys.c60 kfree(entry->payload); in ima_free_key_entry()
67 const void *payload, in ima_alloc_key_entry() argument
76 entry->payload = kmemdup(payload, payload_len, GFP_KERNEL); in ima_alloc_key_entry()
82 if ((entry == NULL) || (entry->payload == NULL) || in ima_alloc_key_entry()
103 bool ima_queue_key(struct key *keyring, const void *payload, in ima_queue_key() argument
109 entry = ima_alloc_key_entry(keyring, payload, payload_len); in ima_queue_key()
161 process_buffer_measurement(NULL, entry->payload, in ima_process_queued_keys()
/kernel/linux/linux-5.10/net/ncsi/
Dncsi-cmd.c51 h->length = htons(nca->payload); in ncsi_cmd_build_header()
57 sizeof(*h) + nca->payload); in ncsi_cmd_build_header()
59 ALIGN(nca->payload, 4)); in ncsi_cmd_build_header()
218 int payload; in ncsi_cmd_handler_oem() local
226 payload = ALIGN(nca->payload, 4); in ncsi_cmd_handler_oem()
228 len += max(payload, padding_bytes); in ncsi_cmd_handler_oem()
231 memcpy(&cmd->mfr_id, nca->data, nca->payload); in ncsi_cmd_handler_oem()
239 int payload; member
282 int payload; in ncsi_alloc_command() local
298 payload = ALIGN(nca->payload, 4); in ncsi_alloc_command()
[all …]

12345678910>>...27