| /drivers/thunderbolt/ |
| A D | path.c | 163 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_discover() 164 if (!path->hops) { in tb_path_discover() 198 path->hops[i].in_port = p; in tb_path_discover() 199 path->hops[i].in_hop_index = h; in tb_path_discover() 201 path->hops[i].out_port = out_port; in tb_path_discover() 204 tb_dump_hop(&path->hops[i], &hop); in tb_path_discover() 270 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_alloc() 271 if (!path->hops) { in tb_path_alloc() 333 path->hops[i].in_port = in_port; in tb_path_alloc() 335 path->hops[i].out_port = out_port; in tb_path_alloc() [all …]
|
| A D | test.c | 913 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane0() 914 out_port = path->hops[i].out_port; in tb_test_path_not_bonded_lane0() 975 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane1() 976 out_port = path->hops[i].out_port; in tb_test_path_not_bonded_lane1() 1055 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane1_chain() 1056 out_port = path->hops[i].out_port; in tb_test_path_not_bonded_lane1_chain() 1135 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane1_chain_reverse() 1136 out_port = path->hops[i].out_port; in tb_test_path_not_bonded_lane1_chain_reverse() 1227 in_port = path->hops[i].in_port; in tb_test_path_mixed_chain() 1228 out_port = path->hops[i].out_port; in tb_test_path_mixed_chain() [all …]
|
| A D | tunnel.c | 1120 paths[TB_DP_VIDEO_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate() 1121 paths[TB_DP_AUX_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate() 1122 paths[TB_DP_AUX_PATH_IN]->hops[last].next_hop_index); in tb_dp_activate() 1125 paths[TB_DP_VIDEO_PATH_OUT]->hops[last].next_hop_index, in tb_dp_activate() 1126 paths[TB_DP_AUX_PATH_IN]->hops[0].in_hop_index, in tb_dp_activate() 1127 paths[TB_DP_AUX_PATH_OUT]->hops[last].next_hop_index); in tb_dp_activate() 1781 hop = &path->hops[0]; in tb_dma_init_rx_path() 1789 ret = tb_dma_reserve_credits(&path->hops[i], credits); in tb_dma_init_rx_path() 1958 if (tb_port_is_nhi(path->hops[0].in_port)) in tb_tunnel_match_dma() 1968 (tx_path->hops[0].in_hop_index != transmit_ring)) in tb_tunnel_match_dma() [all …]
|
| A D | tb.h | 443 struct tb_path_hop *hops; member 1202 for ((hop) = &(path)->hops[0]; \ 1203 (hop) <= &(path)->hops[(path)->path_length - 1]; (hop)++)
|
| /drivers/accel/habanalabs/common/mmu/ |
| A D | mmu_v2.c | 268 hops->hop_info[0].hop_addr, in hl_mmu_v2_get_tlb_info() 269 hops->scrambled_vaddr); in hl_mmu_v2_get_tlb_info() 274 hops->hop_info[0].hop_pte_addr); in hl_mmu_v2_get_tlb_info() 279 hops->hop_info[i].hop_addr = in hl_mmu_v2_get_tlb_info() 284 hops->hop_info[i].hop_pte_addr = in hl_mmu_v2_get_tlb_info() 286 hops->hop_info[i].hop_addr, in hl_mmu_v2_get_tlb_info() 287 hops->scrambled_vaddr); in hl_mmu_v2_get_tlb_info() 291 hops->hop_info[i].hop_pte_val = in hl_mmu_v2_get_tlb_info() 293 hops->hop_info[i].hop_pte_addr); in hl_mmu_v2_get_tlb_info() 313 hops->unscrambled_paddr = hops->hop_info[i].hop_pte_val; in hl_mmu_v2_get_tlb_info() [all …]
|
| A D | mmu.c | 477 struct hl_mmu_hop_info *hops, in hl_mmu_pa_page_with_offset() argument 485 if (hops->unscrambled_paddr) in hl_mmu_pa_page_with_offset() 488 tmp_phys_addr = hops->hop_info[hops->used_hops - 1].hop_pte_val; in hl_mmu_pa_page_with_offset() 534 struct hl_mmu_hop_info hops; in hl_mmu_va_to_pa() local 537 memset(&hops, 0, sizeof(hops)); in hl_mmu_va_to_pa() 549 struct hl_mmu_hop_info *hops) in hl_mmu_get_tlb_info() argument 581 if (hops->unscrambled_paddr) in hl_mmu_get_tlb_info() 582 hl_mmu_pa_page_with_offset(ctx, virt_addr, hops, &hops->unscrambled_paddr); in hl_mmu_get_tlb_info() 1191 hops->scrambled_vaddr); in hl_mmu_hr_get_tlb_info() 1212 hops->unscrambled_paddr = hops->hop_info[i].hop_pte_val; in hl_mmu_hr_get_tlb_info() [all …]
|
| A D | mmu_v1.c | 454 struct hl_mmu_hop_info *hops) in hl_mmu_v1_get_tlb_info() argument 492 hops->hop_info[0].hop_pte_addr = in hl_mmu_v1_get_tlb_info() 495 hops->hop_info[0].hop_pte_val = in hl_mmu_v1_get_tlb_info() 497 hops->hop_info[0].hop_pte_addr); in hl_mmu_v1_get_tlb_info() 500 hops->hop_info[i].hop_addr = in hl_mmu_v1_get_tlb_info() 502 hops->hop_info[i - 1].hop_pte_val); in hl_mmu_v1_get_tlb_info() 506 hops->hop_info[i].hop_pte_addr = in hl_mmu_v1_get_tlb_info() 508 hops->hop_info[i].hop_addr, in hl_mmu_v1_get_tlb_info() 510 hops->hop_info[i].hop_pte_val = in hl_mmu_v1_get_tlb_info() 512 hops->hop_info[i].hop_pte_addr); in hl_mmu_v1_get_tlb_info() [all …]
|
| A D | mmu_v2_hr.c | 335 struct hl_mmu_hop_info *hops, in hl_mmu_v2_hr_get_tlb_mapping_params() argument 354 hops->range_type = HL_VA_RANGE_TYPE_DRAM; in hl_mmu_v2_hr_get_tlb_mapping_params() 358 hops->range_type = HL_VA_RANGE_TYPE_HOST; in hl_mmu_v2_hr_get_tlb_mapping_params() 362 hops->range_type = HL_VA_RANGE_TYPE_HOST_HUGE; in hl_mmu_v2_hr_get_tlb_mapping_params() 371 struct hl_mmu_hop_info *hops) in hl_mmu_v2_hr_get_tlb_info() argument 373 return hl_mmu_hr_get_tlb_info(ctx, virt_addr, hops, in hl_mmu_v2_hr_get_tlb_info()
|
| /drivers/firmware/arm_scmi/ |
| A D | sensors.c | 253 if (!ph->hops->protocol_msg_check(ph, in scmi_sensor_attributes_get() 257 if (!ph->hops->protocol_msg_check(ph, in scmi_sensor_attributes_get() 368 iter = ph->hops->iter_response_init(ph, &ops, s->intervals.count, in scmi_sensor_update_intervals() 375 return ph->hops->iter_response_run(iter); in scmi_sensor_update_intervals() 506 iter = ph->hops->iter_response_init(ph, &ops, s->num_axis, in scmi_sensor_axis_extended_names_get() 517 ret = ph->hops->iter_response_run(iter); in scmi_sensor_axis_extended_names_get() 547 iter = ph->hops->iter_response_init(ph, &ops, s->num_axis, in scmi_sensor_axis_description() 554 ret = ph->hops->iter_response_run(iter); in scmi_sensor_axis_description() 664 ph->hops->extended_name_get(ph, SENSOR_NAME_GET, s->id, in iter_sens_descr_process_response() 703 iter = ph->hops->iter_response_init(ph, &ops, si->num_sensors, in scmi_sensor_description_get() [all …]
|
| A D | perf.c | 230 if (!ph->hops->protocol_msg_check(ph, PERF_NOTIFY_LEVEL, NULL)) in scmi_perf_attributes_get() 233 if (!ph->hops->protocol_msg_check(ph, PERF_NOTIFY_LIMITS, NULL)) in scmi_perf_attributes_get() 328 ph->hops->extended_name_get(ph, PERF_DOMAIN_NAME_GET, in scmi_perf_domain_attributes_get() 487 iter = ph->hops->iter_response_init(ph, &ops, MAX_OPPS, in scmi_perf_describe_levels_get() 494 ret = ph->hops->iter_response_run(iter); in scmi_perf_describe_levels_get() 569 ph->hops->fastchannel_db_ring(fci->set_db); in __scmi_perf_limits_set() 723 ph->hops->fastchannel_db_ring(fci->set_db); in __scmi_perf_level_set() 849 ph->hops->fastchannel_init(ph, PERF_DESCRIBE_FASTCHANNEL, in scmi_perf_domain_init_fc() 854 ph->hops->fastchannel_init(ph, PERF_DESCRIBE_FASTCHANNEL, in scmi_perf_domain_init_fc() 860 ph->hops->fastchannel_init(ph, PERF_DESCRIBE_FASTCHANNEL, in scmi_perf_domain_init_fc() [all …]
|
| A D | powercap.c | 164 if (!ph->hops->protocol_msg_check(ph, in scmi_powercap_attributes_get() 168 if (!ph->hops->protocol_msg_check(ph, in scmi_powercap_attributes_get() 291 ph->hops->extended_name_get(ph, POWERCAP_DOMAIN_NAME_GET, in scmi_powercap_domain_attributes_get() 427 ph->hops->fastchannel_db_ring(fci->set_db); in __scmi_powercap_cap_set() 547 ph->hops->fastchannel_db_ring(fci->set_db); in scmi_powercap_pai_set() 719 ph->hops->fastchannel_init(ph, POWERCAP_DESCRIBE_FASTCHANNEL, in scmi_powercap_domain_init_fc() 725 ph->hops->fastchannel_init(ph, POWERCAP_DESCRIBE_FASTCHANNEL, in scmi_powercap_domain_init_fc() 730 ph->hops->fastchannel_init(ph, POWERCAP_DESCRIBE_FASTCHANNEL, in scmi_powercap_domain_init_fc() 736 ph->hops->fastchannel_init(ph, POWERCAP_DESCRIBE_FASTCHANNEL, in scmi_powercap_domain_init_fc()
|
| A D | pinctrl.c | 237 ret = ph->hops->extended_name_get(ph, PINCTRL_NAME_GET, in scmi_pinctrl_attributes() 311 iter = ph->hops->iter_response_init(ph, &ops, size, in scmi_pinctrl_list_associations() 318 return ph->hops->iter_response_run(iter); in scmi_pinctrl_list_associations() 426 iter = ph->hops->iter_response_init(ph, &ops, max_configs, in scmi_pinctrl_settings_get() 433 return ph->hops->iter_response_run(iter); in scmi_pinctrl_settings_get() 476 int max_msg_size = ph->hops->get_max_msg_size(ph); in scmi_pinctrl_settings_conf()
|
| A D | clock.c | 215 if (!ph->hops->protocol_msg_check(ph, CLOCK_RATE_NOTIFY, NULL)) in scmi_clock_protocol_attributes_get() 218 if (!ph->hops->protocol_msg_check(ph, in scmi_clock_protocol_attributes_get() 307 iter = ph->hops->iter_response_init(ph, &ops, 0, in scmi_clock_possible_parents() 314 ret = ph->hops->iter_response_run(iter); in scmi_clock_possible_parents() 386 ph->hops->extended_name_get(ph, CLOCK_NAME_GET, clk_id, in scmi_clock_attributes_get() 529 iter = ph->hops->iter_response_init(ph, &ops, SCMI_MAX_NUM_RATES, in scmi_clock_describe_rates_get() 536 ret = ph->hops->iter_response_run(iter); in scmi_clock_describe_rates_get()
|
| A D | voltage.c | 196 iter = ph->hops->iter_response_init(ph, &ops, v->num_levels, in scmi_voltage_levels_get() 203 ret = ph->hops->iter_response_run(iter); in scmi_voltage_levels_get() 248 ph->hops->extended_name_get(ph, in scmi_voltage_descriptors_get()
|
| A D | power.c | 103 if (!ph->hops->protocol_msg_check(ph, POWER_STATE_NOTIFY, NULL)) in scmi_power_attributes_get() 146 ph->hops->extended_name_get(ph, POWER_DOMAIN_NAME_GET, in scmi_power_domain_attributes_get()
|
| A D | reset.c | 95 if (!ph->hops->protocol_msg_check(ph, RESET_NOTIFY, NULL)) in scmi_reset_attributes_get() 142 ph->hops->extended_name_get(ph, RESET_DOMAIN_NAME_GET, domain, in scmi_reset_domain_attributes_get()
|
| A D | system.c | 163 if (!ph->hops->protocol_msg_check(ph, SYSTEM_POWER_STATE_NOTIFY, NULL)) in scmi_system_protocol_init()
|
| A D | protocols.h | 181 const struct scmi_proto_helpers_ops *hops; member
|
| A D | driver.c | 2173 pi->ph.hops = &helpers_ops; in scmi_alloc_init_protocol_instance()
|
| /drivers/firmware/arm_scmi/vendors/imx/ |
| A D | imx-sm-misc.c | 208 int max_msg_size = ph->hops->get_max_msg_size(ph); in scmi_imx_misc_ctrl_get() 247 int max_msg_size = ph->hops->get_max_msg_size(ph); in scmi_imx_misc_ctrl_set()
|
| /drivers/accel/habanalabs/common/ |
| A D | habanalabs.h | 2879 struct hl_mmu_hop_info *hops, 2910 int (*get_tlb_info)(struct hl_ctx *ctx, u64 virt_addr, struct hl_mmu_hop_info *hops); 3920 int hl_mmu_hr_get_tlb_info(struct hl_ctx *ctx, u64 virt_addr, struct hl_mmu_hop_info *hops, 3928 struct hl_mmu_hop_info *hops);
|