Home
last modified time | relevance | path

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

12345678910>>...33

/linux-6.12.1/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, u16 lag_lookup_pgt_base) in mlxsw_reg_sgcr_pack() argument
51 MLXSW_REG_ZERO(sgcr, payload); in mlxsw_reg_sgcr_pack()
52 mlxsw_reg_sgcr_lag_lookup_pgt_base_set(payload, lag_lookup_pgt_base); in mlxsw_reg_sgcr_pack()
110 static inline void mlxsw_reg_sspr_pack(char *payload, u16 local_port) in mlxsw_reg_sspr_pack() argument
112 MLXSW_REG_ZERO(sspr, payload); in mlxsw_reg_sspr_pack()
113 mlxsw_reg_sspr_m_set(payload, 1); in mlxsw_reg_sspr_pack()
114 mlxsw_reg_sspr_local_port_set(payload, local_port); in mlxsw_reg_sspr_pack()
115 mlxsw_reg_sspr_system_port_set(payload, local_port); in mlxsw_reg_sspr_pack()
143 static inline void mlxsw_reg_sfdat_pack(char *payload, u32 age_time) in mlxsw_reg_sfdat_pack() argument
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/security/keys/
Dbig_key.c28 #define to_big_key_payload(payload) \ argument
29 (struct big_key_payload *)((payload).data)
59 struct big_key_payload *payload = to_big_key_payload(prep->payload); in big_key_preparse() local
67 BUILD_BUG_ON(sizeof(*payload) != sizeof(prep->payload.data)); in big_key_preparse()
75 payload->length = datalen; in big_key_preparse()
123 payload->data = enckey; in big_key_preparse()
124 payload->path = file->f_path; in big_key_preparse()
125 path_get(&payload->path); in big_key_preparse()
135 payload->data = data; in big_key_preparse()
154 struct big_key_payload *payload = to_big_key_payload(prep->payload); in big_key_free_preparse() local
[all …]
/linux-6.12.1/tools/perf/util/arm-spe-decoder/
Darm-spe-pkt-decoder.c59 case 1: packet->payload = *(uint8_t *)buf; break; in arm_spe_get_payload()
60 case 2: packet->payload = get_unaligned_le16(buf); break; in arm_spe_get_payload()
61 case 4: packet->payload = get_unaligned_le32(buf); break; in arm_spe_get_payload()
62 case 8: packet->payload = get_unaligned_le64(buf); break; in arm_spe_get_payload()
282 u64 payload = packet->payload; in arm_spe_pkt_desc_event() local
287 if (payload & BIT(EV_EXCEPTION_GEN)) in arm_spe_pkt_desc_event()
289 if (payload & BIT(EV_RETIRED)) in arm_spe_pkt_desc_event()
291 if (payload & BIT(EV_L1D_ACCESS)) in arm_spe_pkt_desc_event()
293 if (payload & BIT(EV_L1D_REFILL)) in arm_spe_pkt_desc_event()
295 if (payload & BIT(EV_TLB_ACCESS)) in arm_spe_pkt_desc_event()
[all …]
Darm-spe-decoder.c25 static u64 arm_spe_calc_ip(int index, u64 payload) in arm_spe_calc_ip() argument
32 ns = SPE_ADDR_PKT_GET_NS(payload); in arm_spe_calc_ip()
33 el = SPE_ADDR_PKT_GET_EL(payload); in arm_spe_calc_ip()
36 payload = SPE_ADDR_PKT_ADDR_GET_BYTES_0_6(payload); in arm_spe_calc_ip()
40 payload |= 0xffULL << SPE_ADDR_PKT_ADDR_BYTE7_SHIFT; in arm_spe_calc_ip()
46 payload = SPE_ADDR_PKT_ADDR_GET_BYTES_0_6(payload); in arm_spe_calc_ip()
62 val = SPE_ADDR_PKT_ADDR_GET_BYTE_6(payload); in arm_spe_calc_ip()
64 payload |= 0xffULL << SPE_ADDR_PKT_ADDR_BYTE7_SHIFT; in arm_spe_calc_ip()
69 payload = SPE_ADDR_PKT_ADDR_GET_BYTES_0_6(payload); in arm_spe_calc_ip()
78 return payload; in arm_spe_calc_ip()
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_varlen.c46 void *payload = payload1; in handler64_unsigned() local
53 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in1[0]); in handler64_unsigned()
55 payload += len; in handler64_unsigned()
59 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in2[0]); in handler64_unsigned()
61 payload += len; in handler64_unsigned()
65 total1 = payload - (void *)payload1; in handler64_unsigned()
76 void *payload = payload3; in handler64_signed() local
83 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in1[0]); in handler64_signed()
85 payload += len; in handler64_signed()
88 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in2[0]); in handler64_signed()
[all …]
Dprofiler.inc.h206 void* payload, in read_full_cgroup_path() argument
209 void* payload_start = payload; in read_full_cgroup_path()
217 bpf_probe_read_kernel_str(payload, MAX_PATH, in read_full_cgroup_path()
220 return payload; in read_full_cgroup_path()
222 *root_pos = payload - payload_start; in read_full_cgroup_path()
224 payload += filepart_length; in read_full_cgroup_path()
228 return payload; in read_full_cgroup_path()
251 void* payload) in populate_cgroup_info() argument
304 bpf_probe_read_kernel_str(payload, MAX_PATH, in populate_cgroup_info()
308 payload += cgroup_root_length; in populate_cgroup_info()
[all …]
Dtest_xdp_do_redirect.c35 __u8 *payload = data + HDR_SZ; in xdp_redirect() local
38 if (payload + 1 > data_end) in xdp_redirect()
50 if (*payload == MARK_XMIT) in xdp_redirect()
53 *payload = MARK_IN; in xdp_redirect()
70 __u8 *payload = data + HDR_SZ; in check_pkt() local
72 if (payload + 1 > data_end) in check_pkt()
75 if (iph->nexthdr != IPPROTO_UDP || *payload != MARK_IN) in check_pkt()
81 *payload = mark; in check_pkt()
/linux-6.12.1/drivers/accel/ivpu/
Divpu_jsm_msg.c99 req.payload.register_db.db_idx = db_id; in ivpu_jsm_register_db()
100 req.payload.register_db.jobq_base = jobq_base; in ivpu_jsm_register_db()
101 req.payload.register_db.jobq_size = jobq_size; in ivpu_jsm_register_db()
102 req.payload.register_db.host_ssid = ctx_id; in ivpu_jsm_register_db()
118 req.payload.unregister_db.db_idx = db_id; in ivpu_jsm_unregister_db()
137 req.payload.query_engine_hb.engine_idx = engine; in ivpu_jsm_get_heartbeat()
147 *heartbeat = resp.payload.query_engine_hb_done.heartbeat; in ivpu_jsm_get_heartbeat()
160 req.payload.engine_reset.engine_idx = engine; in ivpu_jsm_reset_engine()
179 req.payload.engine_preempt.engine_idx = engine; in ivpu_jsm_preempt_engine()
180 req.payload.engine_preempt.preempt_id = preempt_id; in ivpu_jsm_preempt_engine()
[all …]
/linux-6.12.1/tools/perf/util/intel-pt-decoder/
Dintel-pt-pkt-decoder.c76 uint64_t payload; in intel_pt_get_long_tnt() local
82 payload = get_unaligned_le64(buf); in intel_pt_get_long_tnt()
85 if (payload & BIT63) in intel_pt_get_long_tnt()
87 payload <<= 1; in intel_pt_get_long_tnt()
92 packet->payload = payload << 1; in intel_pt_get_long_tnt()
99 uint64_t payload = 0; in intel_pt_get_pip() local
105 memcpy_le64(&payload, buf + 2, 6); in intel_pt_get_pip()
106 packet->payload = payload; in intel_pt_get_pip()
123 packet->payload = get_unaligned_le16(buf + 2); in intel_pt_get_cbr()
135 memcpy_le64(&packet->payload, buf + 2, 5); in intel_pt_get_vmcs()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dce/
Ddce_aux.c533 static enum i2caux_transaction_action i2caux_action_from_payload(struct aux_payload *payload) in i2caux_action_from_payload() argument
535 if (payload->i2c_over_aux) { in i2caux_action_from_payload()
536 if (payload->write_status_update) { in i2caux_action_from_payload()
537 if (payload->mot) in i2caux_action_from_payload()
542 if (payload->write) { in i2caux_action_from_payload()
543 if (payload->mot) in i2caux_action_from_payload()
548 if (payload->mot) in i2caux_action_from_payload()
553 if (payload->write) in i2caux_action_from_payload()
560 struct aux_payload *payload, in dce_aux_transfer_raw() argument
583 if (payload->i2c_over_aux) in dce_aux_transfer_raw()
[all …]
/linux-6.12.1/drivers/net/ipa/
Dipa_cmd.c259 struct ipa_cmd_register_write *payload; in ipa_cmd_register_write_offset_valid() local
269 bit_count = BITS_PER_BYTE * sizeof(payload->offset); in ipa_cmd_register_write_offset_valid()
367 struct ipa_cmd_hw_ip_fltrt_init *payload; in ipa_cmd_table_init_add() local
388 payload = &cmd_payload->table_init; in ipa_cmd_table_init_add()
392 payload->hash_rules_addr = cpu_to_le64(hash_addr); in ipa_cmd_table_init_add()
393 payload->flags = cpu_to_le64(val); in ipa_cmd_table_init_add()
394 payload->nhash_rules_addr = cpu_to_le64(addr); in ipa_cmd_table_init_add()
396 gsi_trans_cmd_add(trans, payload, sizeof(*payload), payload_addr, in ipa_cmd_table_init_add()
406 struct ipa_cmd_hw_hdr_init_local *payload; in ipa_cmd_hdr_init_local_add() local
419 payload = &cmd_payload->hdr_init_local; in ipa_cmd_hdr_init_local_add()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/flower/
Dtunnel_conf.c210 struct nfp_tun_active_tuns *payload; in nfp_tunnel_keep_alive() local
217 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_keep_alive()
218 count = be32_to_cpu(payload->count); in nfp_tunnel_keep_alive()
225 if (pay_len != struct_size(payload, tun_info, count)) { in nfp_tunnel_keep_alive()
232 ipv4_addr = payload->tun_info[i].ipv4; in nfp_tunnel_keep_alive()
233 port = be32_to_cpu(payload->tun_info[i].egress_port); in nfp_tunnel_keep_alive()
252 struct nfp_tun_active_tuns_v6 *payload; in nfp_tunnel_keep_alive_v6() local
259 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_keep_alive_v6()
260 count = be32_to_cpu(payload->count); in nfp_tunnel_keep_alive_v6()
267 if (pay_len != struct_size(payload, tun_info, count)) { in nfp_tunnel_keep_alive_v6()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/link/protocols/
Dlink_ddc.c97 struct i2c_payload payload = { in i2c_payloads_add() local
102 dal_vector_append(&payloads->payloads, &payload); in i2c_payloads_add()
276 struct aux_payload *payload) in submit_aux_command() argument
284 if (!payload) in submit_aux_command()
290 payload->length; in submit_aux_command()
292 payload->length - retrieved : DEFAULT_AUX_MAX_DATA_SIZE; in submit_aux_command()
294 current_payload.address = payload->address; in submit_aux_command()
295 current_payload.data = &payload->data[retrieved]; in submit_aux_command()
296 current_payload.defer_delay = payload->defer_delay; in submit_aux_command()
297 current_payload.i2c_over_aux = payload->i2c_over_aux; in submit_aux_command()
[all …]
/linux-6.12.1/security/keys/trusted-keys/
Dtrusted_tpm2.c31 static int tpm2_key_encode(struct trusted_key_payload *payload, in tpm2_key_encode() argument
84 work1 = payload->blob; in tpm2_key_encode()
85 work1 = asn1_encode_sequence(work1, work1 + sizeof(payload->blob), in tpm2_key_encode()
94 return work1 - payload->blob; in tpm2_key_encode()
109 static int tpm2_key_decode(struct trusted_key_payload *payload, in tpm2_key_decode() argument
119 ret = asn1_ber_decoder(&tpm2key_decoder, &ctx, payload->blob, in tpm2_key_decode()
120 payload->blob_len); in tpm2_key_decode()
241 struct trusted_key_payload *payload, in tpm2_seal_trusted() argument
296 tpm_buf_append_u16(&sized, payload->key_len); in tpm2_seal_trusted()
297 tpm_buf_append(&sized, payload->key, payload->key_len); in tpm2_seal_trusted()
[all …]
/linux-6.12.1/drivers/net/ethernet/sfc/
Dselftest.c91 struct efx_loopback_payload payload; member
290 struct efx_loopback_payload *payload; in efx_loopback_rx_packet() local
298 payload = &state->payload; in efx_loopback_rx_packet()
302 received.ip.saddr = payload->ip.saddr; in efx_loopback_rx_packet()
304 received.ip.check = payload->ip.check; in efx_loopback_rx_packet()
315 if (memcmp(&received.header, &payload->header, ETH_HLEN) != 0) { in efx_loopback_rx_packet()
332 if (memcmp(&received.ip, &payload->ip, sizeof(payload->ip)) != 0) { in efx_loopback_rx_packet()
340 if (memcmp(&received.msg, &payload->msg, sizeof(received.msg)) != 0) { in efx_loopback_rx_packet()
348 if (received.iteration != payload->iteration) { in efx_loopback_rx_packet()
352 ntohs(payload->iteration), LOOPBACK_MODE(efx)); in efx_loopback_rx_packet()
[all …]
/linux-6.12.1/drivers/net/ethernet/sfc/siena/
Dselftest.c92 struct efx_loopback_payload payload; member
291 struct efx_loopback_payload *payload; in efx_siena_loopback_rx_packet() local
299 payload = &state->payload; in efx_siena_loopback_rx_packet()
303 received.ip.saddr = payload->ip.saddr; in efx_siena_loopback_rx_packet()
305 received.ip.check = payload->ip.check; in efx_siena_loopback_rx_packet()
316 if (memcmp(&received.header, &payload->header, ETH_HLEN) != 0) { in efx_siena_loopback_rx_packet()
333 if (memcmp(&received.ip, &payload->ip, sizeof(payload->ip)) != 0) { in efx_siena_loopback_rx_packet()
341 if (memcmp(&received.msg, &payload->msg, sizeof(received.msg)) != 0) { in efx_siena_loopback_rx_packet()
349 if (received.iteration != payload->iteration) { in efx_siena_loopback_rx_packet()
353 ntohs(payload->iteration), LOOPBACK_MODE(efx)); in efx_siena_loopback_rx_packet()
[all …]
/linux-6.12.1/drivers/net/ethernet/sfc/falcon/
Dselftest.c89 struct ef4_loopback_payload payload; member
293 struct ef4_loopback_payload *payload; in ef4_loopback_rx_packet() local
301 payload = &state->payload; in ef4_loopback_rx_packet()
305 received.ip.saddr = payload->ip.saddr; in ef4_loopback_rx_packet()
307 received.ip.check = payload->ip.check; in ef4_loopback_rx_packet()
318 if (memcmp(&received.header, &payload->header, ETH_HLEN) != 0) { in ef4_loopback_rx_packet()
335 if (memcmp(&received.ip, &payload->ip, sizeof(payload->ip)) != 0) { in ef4_loopback_rx_packet()
343 if (memcmp(&received.msg, &payload->msg, sizeof(received.msg)) != 0) { in ef4_loopback_rx_packet()
351 if (received.iteration != payload->iteration) { in ef4_loopback_rx_packet()
355 ntohs(payload->iteration), LOOPBACK_MODE(efx)); in ef4_loopback_rx_packet()
[all …]
/linux-6.12.1/drivers/hid/
Dhid-wiimote-core.c1250 static void handler_keys(struct wiimote_data *wdata, const __u8 *payload) in handler_keys() argument
1257 ops->in_keys(wdata, payload); in handler_keys()
1265 ops->in_keys(wdata, payload); in handler_keys()
1271 static void handler_accel(struct wiimote_data *wdata, const __u8 *payload) in handler_accel() argument
1278 ops->in_accel(wdata, payload); in handler_accel()
1286 ops->in_accel(wdata, payload); in handler_accel()
1304 static void handler_ext(struct wiimote_data *wdata, const __u8 *payload, in handler_ext() argument
1319 if (len < 6 || !memcmp(payload, invalid, len)) in handler_ext()
1325 if (payload[5] & 0x01) in handler_ext()
1328 if (payload[4] & 0x01) { in handler_ext()
[all …]
/linux-6.12.1/certs/
Dsystem_keyring.c47 const union key_payload *payload, in restrict_link_by_builtin_trusted() argument
50 return restrict_link_by_signature(dest_keyring, type, payload, in restrict_link_by_builtin_trusted()
67 const union key_payload *payload, in restrict_link_by_digsig_builtin() argument
70 return restrict_link_by_digsig(dest_keyring, type, payload, in restrict_link_by_digsig_builtin()
90 const union key_payload *payload, in restrict_link_by_builtin_and_secondary_trusted() argument
98 payload == &builtin_trusted_keys->payload) in restrict_link_by_builtin_and_secondary_trusted()
102 return restrict_link_by_signature(dest_keyring, type, payload, in restrict_link_by_builtin_and_secondary_trusted()
119 const union key_payload *payload, in restrict_link_by_digsig_builtin_and_secondary() argument
127 payload == &builtin_trusted_keys->payload) in restrict_link_by_digsig_builtin_and_secondary()
131 return restrict_link_by_digsig(dest_keyring, type, payload, in restrict_link_by_digsig_builtin_and_secondary()
[all …]
/linux-6.12.1/drivers/media/i2c/ccs/
Dccs-data.c133 const void *payload, const void *endp) in ccs_data_parse_version() argument
135 const struct __ccs_data_block_version *v = payload; in ccs_data_parse_version()
173 const void **payload, in ccs_data_block_parse_header() argument
203 if (payload) in ccs_data_block_parse_header()
204 *payload = (void *)&block->length + hlen; in ccs_data_block_parse_header()
214 size_t *__num_regs, const void *payload, in ccs_data_parse_regs() argument
227 while (payload < endp && num_regs < INT_MAX) { in ccs_data_parse_regs()
228 const struct __ccs_data_block_regs *r = payload; in ccs_data_parse_regs()
247 const struct __ccs_data_block_regs2 *r2 = payload; in ccs_data_parse_regs()
265 const struct __ccs_data_block_regs3 *r3 = payload; in ccs_data_parse_regs()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dmub/src/
Ddmub_srv_stat.c97 notify->link_index = cmd.dpia_notification.payload.header.instance; in dmub_srv_stat_get_notification()
99 if (cmd.dpia_notification.payload.header.type == DPIA_NOTIFY__BW_ALLOCATION) { in dmub_srv_stat_get_notification()
101 notify->dpia_notification.payload.data.dpia_bw_alloc.estimated_bw = in dmub_srv_stat_get_notification()
102 cmd.dpia_notification.payload.data.dpia_bw_alloc.estimated_bw; in dmub_srv_stat_get_notification()
103 notify->dpia_notification.payload.data.dpia_bw_alloc.allocated_bw = in dmub_srv_stat_get_notification()
104 cmd.dpia_notification.payload.data.dpia_bw_alloc.allocated_bw; in dmub_srv_stat_get_notification()
106 if (cmd.dpia_notification.payload.data.dpia_bw_alloc.bits.bw_request_failed) in dmub_srv_stat_get_notification()
108 else if (cmd.dpia_notification.payload.data.dpia_bw_alloc.bits.bw_request_succeeded) in dmub_srv_stat_get_notification()
110 else if (cmd.dpia_notification.payload.data.dpia_bw_alloc.bits.est_bw_changed) in dmub_srv_stat_get_notification()
112 else if (cmd.dpia_notification.payload.data.dpia_bw_alloc.bits.bw_alloc_cap_changed) in dmub_srv_stat_get_notification()

12345678910>>...33