/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/ |
D | reg.h | 30 #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() 118 static inline void mlxsw_reg_sspr_pack(char *payload, u16 local_port) in mlxsw_reg_sspr_pack() argument 120 MLXSW_REG_ZERO(sspr, payload); in mlxsw_reg_sspr_pack() 121 mlxsw_reg_sspr_m_set(payload, 1); in mlxsw_reg_sspr_pack() 122 mlxsw_reg_sspr_local_port_set(payload, local_port); in mlxsw_reg_sspr_pack() 123 mlxsw_reg_sspr_sub_port_set(payload, 0); in mlxsw_reg_sspr_pack() 124 mlxsw_reg_sspr_system_port_set(payload, local_port); in mlxsw_reg_sspr_pack() [all …]
|
/linux-6.1.9/drivers/media/radio/wl128x/ |
D | fmdrv_tx.c | 16 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 …]
|
D | fmdrv_rx.c | 36 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.1.9/security/keys/ |
D | big_key.c | 28 #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.1.9/tools/perf/util/arm-spe-decoder/ |
D | arm-spe-pkt-decoder.c | 72 case 1: packet->payload = *(uint8_t *)buf; break; in arm_spe_get_payload() 73 case 2: packet->payload = le16_to_cpu(*(uint16_t *)buf); break; in arm_spe_get_payload() 74 case 4: packet->payload = le32_to_cpu(*(uint32_t *)buf); break; in arm_spe_get_payload() 75 case 8: packet->payload = le64_to_cpu(*(uint64_t *)buf); break; in arm_spe_get_payload() 295 u64 payload = packet->payload; in arm_spe_pkt_desc_event() local 300 if (payload & BIT(EV_EXCEPTION_GEN)) in arm_spe_pkt_desc_event() 302 if (payload & BIT(EV_RETIRED)) in arm_spe_pkt_desc_event() 304 if (payload & BIT(EV_L1D_ACCESS)) in arm_spe_pkt_desc_event() 306 if (payload & BIT(EV_L1D_REFILL)) in arm_spe_pkt_desc_event() 308 if (payload & BIT(EV_TLB_ACCESS)) in arm_spe_pkt_desc_event() [all …]
|
D | arm-spe-decoder.c | 25 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() 74 return payload; in arm_spe_calc_ip() [all …]
|
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | test_varlen.c | 46 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 …]
|
D | profiler.inc.h | 208 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 …]
|
D | strobemeta.h | 187 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 …]
|
D | test_xdp_do_redirect.c | 22 __u8 *payload = data + HDR_SZ; in xdp_redirect() local 25 if (payload + 1 > data_end) in xdp_redirect() 37 if (*payload == 0) { in xdp_redirect() 38 *payload = 0x42; in xdp_redirect() 57 __u8 *payload = data + HDR_SZ; in check_pkt() local 59 if (payload + 1 > data_end) in check_pkt() 62 if (iph->nexthdr != IPPROTO_UDP || *payload != 0x42) in check_pkt() 68 *payload = 0; in check_pkt()
|
/linux-6.1.9/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-pkt-decoder.c | 80 uint64_t payload; in intel_pt_get_long_tnt() local 86 payload = le64_to_cpu(*(uint64_t *)buf); in intel_pt_get_long_tnt() 89 if (payload & BIT63) in intel_pt_get_long_tnt() 91 payload <<= 1; in intel_pt_get_long_tnt() 96 packet->payload = payload << 1; in intel_pt_get_long_tnt() 103 uint64_t payload = 0; in intel_pt_get_pip() local 109 memcpy_le64(&payload, buf + 2, 6); in intel_pt_get_pip() 110 packet->payload = payload; in intel_pt_get_pip() 127 packet->payload = le16_to_cpu(*(uint16_t *)(buf + 2)); in intel_pt_get_cbr() 144 memcpy_le64(&packet->payload, buf + 2, count); in intel_pt_get_vmcs() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_aux.c | 533 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.1.9/drivers/net/ipa/ |
D | ipa_cmd.c | 276 struct ipa_cmd_register_write *payload; in ipa_cmd_register_write_offset_valid() local 286 bit_count = BITS_PER_BYTE * sizeof(payload->offset); in ipa_cmd_register_write_offset_valid() 395 struct ipa_cmd_hw_ip_fltrt_init *payload; in ipa_cmd_table_init_add() local 416 payload = &cmd_payload->table_init; in ipa_cmd_table_init_add() 420 payload->hash_rules_addr = cpu_to_le64(hash_addr); in ipa_cmd_table_init_add() 421 payload->flags = cpu_to_le64(val); in ipa_cmd_table_init_add() 422 payload->nhash_rules_addr = cpu_to_le64(addr); in ipa_cmd_table_init_add() 424 gsi_trans_cmd_add(trans, payload, sizeof(*payload), payload_addr, in ipa_cmd_table_init_add() 434 struct ipa_cmd_hw_hdr_init_local *payload; in ipa_cmd_hdr_init_local_add() local 447 payload = &cmd_payload->hdr_init_local; in ipa_cmd_hdr_init_local_add() [all …]
|
/linux-6.1.9/drivers/staging/media/atomisp/pci/runtime/event/src/ |
D | event.c | 74 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.1.9/drivers/net/ethernet/netronome/nfp/flower/ |
D | tunnel_conf.c | 198 struct nfp_tun_active_tuns *payload; in nfp_tunnel_keep_alive() local 205 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_keep_alive() 206 count = be32_to_cpu(payload->count); in nfp_tunnel_keep_alive() 213 if (pay_len != struct_size(payload, tun_info, count)) { in nfp_tunnel_keep_alive() 220 ipv4_addr = payload->tun_info[i].ipv4; in nfp_tunnel_keep_alive() 221 port = be32_to_cpu(payload->tun_info[i].egress_port); in nfp_tunnel_keep_alive() 240 struct nfp_tun_active_tuns_v6 *payload; in nfp_tunnel_keep_alive_v6() local 247 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_keep_alive_v6() 248 count = be32_to_cpu(payload->count); in nfp_tunnel_keep_alive_v6() 255 if (pay_len != struct_size(payload, tun_info, count)) { in nfp_tunnel_keep_alive_v6() [all …]
|
/linux-6.1.9/security/keys/trusted-keys/ |
D | trusted_tpm2.c | 31 static int tpm2_key_encode(struct trusted_key_payload *payload, in tpm2_key_encode() argument 79 work1 = payload->blob; in tpm2_key_encode() 80 work1 = asn1_encode_sequence(work1, work1 + sizeof(payload->blob), in tpm2_key_encode() 85 return work1 - payload->blob; in tpm2_key_encode() 96 static int tpm2_key_decode(struct trusted_key_payload *payload, in tpm2_key_decode() argument 106 ret = asn1_ber_decoder(&tpm2key_decoder, &ctx, payload->blob, in tpm2_key_decode() 107 payload->blob_len); in tpm2_key_decode() 228 struct trusted_key_payload *payload, in tpm2_seal_trusted() argument 269 tpm_buf_append_u16(&buf, 4 + options->blobauth_len + payload->key_len); in tpm2_seal_trusted() 275 tpm_buf_append_u16(&buf, payload->key_len); in tpm2_seal_trusted() [all …]
|
/linux-6.1.9/drivers/ps3/ |
D | ps3-sys-manager.c | 231 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.1.9/drivers/net/ethernet/sfc/falcon/ |
D | selftest.c | 84 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 …]
|
/linux-6.1.9/drivers/net/ethernet/sfc/ |
D | selftest.c | 87 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 …]
|
/linux-6.1.9/drivers/net/ethernet/sfc/siena/ |
D | selftest.c | 87 struct efx_loopback_payload payload; member 286 struct efx_loopback_payload *payload; in efx_siena_loopback_rx_packet() local 294 payload = &state->payload; in efx_siena_loopback_rx_packet() 297 received->ip.saddr = payload->ip.saddr; in efx_siena_loopback_rx_packet() 299 received->ip.check = payload->ip.check; in efx_siena_loopback_rx_packet() 310 if (memcmp(&received->header, &payload->header, ETH_HLEN) != 0) { in efx_siena_loopback_rx_packet() 318 if (pkt_len != sizeof(*payload)) { in efx_siena_loopback_rx_packet() 321 "%s loopback test\n", pkt_len, (int)sizeof(*payload), in efx_siena_loopback_rx_packet() 327 if (memcmp(&received->ip, &payload->ip, sizeof(payload->ip)) != 0) { in efx_siena_loopback_rx_packet() 335 if (memcmp(&received->msg, &payload->msg, sizeof(received->msg)) != 0) { in efx_siena_loopback_rx_packet() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_link_ddc.c | 171 struct i2c_payload payload = { in dal_ddc_i2c_payloads_add() local 176 dal_vector_append(&payloads->payloads, &payload); in dal_ddc_i2c_payloads_add() 547 struct aux_payload payload; in dal_ddc_service_query_ddc_data() local 549 payload.i2c_over_aux = true; in dal_ddc_service_query_ddc_data() 550 payload.address = address; in dal_ddc_service_query_ddc_data() 551 payload.reply = NULL; in dal_ddc_service_query_ddc_data() 552 payload.defer_delay = get_defer_delay(ddc); in dal_ddc_service_query_ddc_data() 553 payload.write_status_update = false; in dal_ddc_service_query_ddc_data() 556 payload.write = true; in dal_ddc_service_query_ddc_data() 560 payload.mot = !(read_size == 0); in dal_ddc_service_query_ddc_data() [all …]
|
/linux-6.1.9/drivers/hid/ |
D | hid-wiimote-core.c | 1245 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 …]
|
/linux-6.1.9/drivers/media/i2c/ccs/ |
D | ccs-data.c | 133 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.1.9/drivers/input/touchscreen/ |
D | zforce_ts.c | 337 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 …]
|
/linux-6.1.9/drivers/soc/xilinx/ |
D | xlnx_event_manager.c | 421 static void xlnx_call_suspend_cb_handler(const u32 *payload) in xlnx_call_suspend_cb_handler() argument 425 u32 cb_type = payload[0]; in xlnx_call_suspend_cb_handler() 433 cb_pos->eve_cb(&payload[0], cb_pos->agent_data); in xlnx_call_suspend_cb_handler() 442 static void xlnx_call_notify_cb_handler(const u32 *payload) in xlnx_call_notify_cb_handler() argument 446 u64 key = ((u64)payload[1] << 32U) | (u64)payload[2]; in xlnx_call_notify_cb_handler() 455 cb_pos->eve_cb(&payload[0], cb_pos->agent_data); in xlnx_call_notify_cb_handler() 460 ret = zynqmp_pm_register_notifier(payload[1], payload[2], in xlnx_call_notify_cb_handler() 464 payload[1], payload[2], ret); in xlnx_call_notify_cb_handler() 468 xlnx_remove_cb_for_notify_event(payload[1], payload[2], in xlnx_call_notify_cb_handler() 477 payload[1], payload[2]); in xlnx_call_notify_cb_handler() [all …]
|