/kernel/linux/linux-6.6/drivers/thunderbolt/ |
H 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() 200 path->hops[i].in_counter_index = -1; in tb_path_discover() 201 path->hops[i].out_port = out_port; in tb_path_discover() 202 path->hops[i].next_hop_index = next_hop; in tb_path_discover() 204 tb_dump_hop(&path->hops[i], &hop); in tb_path_discover() 270 path->hops in tb_path_alloc() [all...] |
H 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[ in tb_test_path_mixed_chain() [all...] |
H A D | tunnel.c | 824 paths[TB_DP_VIDEO_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate() 825 paths[TB_DP_AUX_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate() 826 paths[TB_DP_AUX_PATH_IN]->hops[last].next_hop_index); in tb_dp_activate() 829 paths[TB_DP_VIDEO_PATH_OUT]->hops[last].next_hop_index, in tb_dp_activate() 830 paths[TB_DP_AUX_PATH_IN]->hops[0].in_hop_index, in tb_dp_activate() 831 paths[TB_DP_AUX_PATH_OUT]->hops[last].next_hop_index); in tb_dp_activate() 1509 hop = &path->hops[0]; in tb_dma_init_rx_path() 1517 ret = tb_dma_reserve_credits(&path->hops[i], credits); in tb_dma_init_rx_path() 1686 if (tb_port_is_nhi(path->hops[0].in_port)) in tb_tunnel_match_dma() 1688 else if (tb_port_is_nhi(path->hops[pat in tb_tunnel_match_dma() [all...] |
/kernel/linux/linux-5.10/drivers/thunderbolt/ |
H A D | path.c | 160 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_discover() 161 if (!path->hops) { in tb_path_discover() 191 path->hops[i].in_port = p; in tb_path_discover() 192 path->hops[i].in_hop_index = h; in tb_path_discover() 193 path->hops[i].in_counter_index = -1; in tb_path_discover() 194 path->hops[i].out_port = out_port; in tb_path_discover() 195 path->hops[i].next_hop_index = next_hop; in tb_path_discover() 260 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNE in tb_path_alloc() [all...] |
H A D | test.c | 786 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane0() 787 out_port = path->hops[i].out_port; in tb_test_path_not_bonded_lane0() 848 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane1() 849 out_port = path->hops[i].out_port; in tb_test_path_not_bonded_lane1() 928 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane1_chain() 929 out_port = path->hops[i].out_port; in tb_test_path_not_bonded_lane1_chain() 1008 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane1_chain_reverse() 1009 out_port = path->hops[i].out_port; in tb_test_path_not_bonded_lane1_chain_reverse() 1100 in_port = path->hops[i].in_port; in tb_test_path_mixed_chain() 1101 out_port = path->hops[ in tb_test_path_mixed_chain() [all...] |
H A D | tunnel.c | 126 path->hops[0].initial_credits = 7; in tb_pci_init_path() 128 path->hops[1].initial_credits = in tb_pci_init_path() 129 tb_initial_credits(path->hops[1].in_port->sw); in tb_pci_init_path() 519 paths[TB_DP_VIDEO_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate() 520 paths[TB_DP_AUX_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate() 521 paths[TB_DP_AUX_PATH_IN]->hops[last].next_hop_index); in tb_dp_activate() 524 paths[TB_DP_VIDEO_PATH_OUT]->hops[last].next_hop_index, in tb_dp_activate() 525 paths[TB_DP_AUX_PATH_IN]->hops[0].in_hop_index, in tb_dp_activate() 526 paths[TB_DP_AUX_PATH_OUT]->hops[last].next_hop_index); in tb_dp_activate() 617 path->hops[ in tb_dp_init_aux_path() [all...] |
/kernel/linux/linux-6.6/drivers/accel/habanalabs/common/mmu/ |
H A D | mmu.c | 102 * page tables hops related to this context. 142 * - Free DRAM default page mapping hops 476 struct hl_mmu_hop_info *hops, in hl_mmu_pa_page_with_offset() 484 if (hops->unscrambled_paddr) in hl_mmu_pa_page_with_offset() 485 tmp_phys_addr = hops->unscrambled_paddr; in hl_mmu_pa_page_with_offset() 487 tmp_phys_addr = hops->hop_info[hops->used_hops - 1].hop_pte_val; in hl_mmu_pa_page_with_offset() 489 if (hops->range_type == HL_VA_RANGE_TYPE_HOST_HUGE) in hl_mmu_pa_page_with_offset() 491 else if (hops->range_type == HL_VA_RANGE_TYPE_HOST) in hl_mmu_pa_page_with_offset() 496 if ((hops in hl_mmu_pa_page_with_offset() 475 hl_mmu_pa_page_with_offset(struct hl_ctx *ctx, u64 virt_addr, struct hl_mmu_hop_info *hops, u64 *phys_addr) hl_mmu_pa_page_with_offset() argument 533 struct hl_mmu_hop_info hops; hl_mmu_va_to_pa() local 547 hl_mmu_get_tlb_info(struct hl_ctx *ctx, u64 virt_addr, struct hl_mmu_hop_info *hops) hl_mmu_get_tlb_info() argument 1148 hl_mmu_hr_get_tlb_info(struct hl_ctx *ctx, u64 virt_addr, struct hl_mmu_hop_info *hops, struct hl_hr_mmu_funcs *hr_func) hl_mmu_hr_get_tlb_info() argument [all...] |
H A D | mmu_v1.c | 269 /* need only pte 0 in hops 0 and 1 */ in dram_default_mapping_init() 443 * page tables hops related to this context. 460 * - Free DRAM default page mapping hops 599 * there are only 3 hops rather than 4. Currently the DRAM allocation in hl_mmu_v1_map() 647 dev_err(hdev->dev, "DRAM mapping should not allocate more hops\n"); in hl_mmu_v1_map() 718 struct hl_mmu_hop_info *hops) in hl_mmu_v1_get_tlb_info() 751 /* huge pages use lesser hops */ in hl_mmu_v1_get_tlb_info() 755 hops->hop_info[0].hop_addr = get_phys_hop0_addr(ctx); in hl_mmu_v1_get_tlb_info() 756 hops->hop_info[0].hop_pte_addr = in hl_mmu_v1_get_tlb_info() 758 hops in hl_mmu_v1_get_tlb_info() 717 hl_mmu_v1_get_tlb_info(struct hl_ctx *ctx, u64 virt_addr, struct hl_mmu_hop_info *hops) hl_mmu_v1_get_tlb_info() argument [all...] |
H A D | mmu_v2_hr.c | 76 * page tables hops related to this context. 93 * - Free DRAM default page mapping hops 220 * there are only 4 hops rather than 5. Currently the DRAM allocation in _hl_mmu_v2_hr_map() 335 struct hl_mmu_hop_info *hops, in hl_mmu_v2_hr_get_tlb_mapping_params() 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() 373 return hl_mmu_hr_get_tlb_info(ctx, virt_addr, hops, in hl_mmu_v2_hr_get_tlb_info() 333 hl_mmu_v2_hr_get_tlb_mapping_params(struct hl_device *hdev, struct hl_mmu_properties **mmu_prop, struct hl_mmu_hop_info *hops, u64 virt_addr, bool *is_huge) hl_mmu_v2_hr_get_tlb_mapping_params() argument 370 hl_mmu_v2_hr_get_tlb_info(struct hl_ctx *ctx, u64 virt_addr, struct hl_mmu_hop_info *hops) hl_mmu_v2_hr_get_tlb_info() argument
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | cls_redirect.c | 175 enum hops { enum 200 enum hops hops; member 207 const char *family_str, *type, *conn, *hops, *result, *flags; in test_str() local 221 hops = "no hops"; in test_str() 222 if (test->hops == ONE_HOP) in test_str() 223 hops = "one hop"; in test_str() 236 type, result, conn, hops, flags); in test_str() 292 encap_init(&encap, test->hops in build_input() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | cls_redirect.c | 176 enum hops { enum 201 enum hops hops; member 208 const char *family_str, *type, *conn, *hops, *result, *flags; in test_str() local 222 hops = "no hops"; in test_str() 223 if (test->hops == ONE_HOP) in test_str() 224 hops = "one hop"; in test_str() 237 type, result, conn, hops, flags); in test_str() 293 encap_init(&encap, test->hops in build_input() [all...] |
/kernel/linux/linux-6.6/block/ |
H A D | bdev.c | 453 * @hops: holder ops 461 const struct blk_holder_ops *hops) in bd_may_claim() 472 if (WARN_ON_ONCE(bdev->bd_holder_ops != hops)) in bd_may_claim() 493 * @hops: holder ops. 503 const struct blk_holder_ops *hops) in bd_prepare_to_claim() 512 if (!bd_may_claim(bdev, holder, hops)) { in bd_prepare_to_claim() 549 * @hops: block device holder operations 555 const struct blk_holder_ops *hops) in bd_finish_claiming() 560 BUG_ON(!bd_may_claim(bdev, holder, hops)); in bd_finish_claiming() 570 bdev->bd_holder_ops = hops; in bd_finish_claiming() 460 bd_may_claim(struct block_device *bdev, void *holder, const struct blk_holder_ops *hops) bd_may_claim() argument 502 bd_prepare_to_claim(struct block_device *bdev, void *holder, const struct blk_holder_ops *hops) bd_prepare_to_claim() argument 554 bd_finish_claiming(struct block_device *bdev, void *holder, const struct blk_holder_ops *hops) bd_finish_claiming() argument 754 blkdev_get_by_dev(dev_t dev, blk_mode_t mode, void *holder, const struct blk_holder_ops *hops) blkdev_get_by_dev() argument 834 bdev_open_by_dev(dev_t dev, blk_mode_t mode, void *holder, const struct blk_holder_ops *hops) bdev_open_by_dev() argument 870 blkdev_get_by_path(const char *path, blk_mode_t mode, void *holder, const struct blk_holder_ops *hops) blkdev_get_by_path() argument 891 bdev_open_by_path(const char *path, blk_mode_t mode, void *holder, const struct blk_holder_ops *hops) bdev_open_by_path() argument [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | topology.h | 74 * between NUMA nodes 2-hops apart. 250 extern const struct cpumask *sched_numa_hop_mask(unsigned int node, unsigned int hops); 258 sched_numa_hop_mask(unsigned int node, unsigned int hops) in sched_numa_hop_mask() argument
|
/kernel/linux/linux-5.10/net/ipv6/ |
H A D | exthdrs.c | 1060 int hops; in ipv6_push_rthdr0() local 1067 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0() 1069 if (hops > 1) in ipv6_push_rthdr0() 1071 (hops - 1) * sizeof(struct in6_addr)); in ipv6_push_rthdr0() 1073 phdr->addr[hops - 1] = **addr_p; in ipv6_push_rthdr0() 1085 int plen, hops; in ipv6_push_rthdr4() local 1093 hops = sr_ihdr->first_segment + 1; in ipv6_push_rthdr4() 1095 (hops - 1) * sizeof(struct in6_addr)); in ipv6_push_rthdr4() 1100 if (sr_ihdr->hdrlen > hops * 2) { in ipv6_push_rthdr4() 1103 tlvs_offset = (1 + hops * in ipv6_push_rthdr4() [all...] |
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | exthdrs.c | 1084 int hops; in ipv6_push_rthdr0() local 1091 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0() 1093 if (hops > 1) in ipv6_push_rthdr0() 1095 (hops - 1) * sizeof(struct in6_addr)); in ipv6_push_rthdr0() 1097 phdr->addr[hops - 1] = **addr_p; in ipv6_push_rthdr0() 1109 int plen, hops; in ipv6_push_rthdr4() local 1117 hops = sr_ihdr->first_segment + 1; in ipv6_push_rthdr4() 1119 (hops - 1) * sizeof(struct in6_addr)); in ipv6_push_rthdr4() 1124 if (sr_ihdr->hdrlen > hops * 2) { in ipv6_push_rthdr4() 1127 tlvs_offset = (1 + hops * in ipv6_push_rthdr4() [all...] |
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | dis.c | 503 int start, end, opsize, hops, i; in show_code() local 523 for (i = 0, hops = 0; start + i < 32 && hops < 3; hops++) { in show_code() 536 hops = 0; in show_code() 537 while (start < end && hops < 8) { in show_code() 559 hops++; in show_code()
|
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | dis.c | 506 int start, end, opsize, hops, i; in show_code() local 526 for (i = 0, hops = 0; start + i < 32 && hops < 3; hops++) { in show_code() 539 hops = 0; in show_code() 540 while (start < end && hops < 8) { in show_code() 562 hops++; in show_code()
|
/kernel/linux/linux-6.6/drivers/firmware/arm_scmi/ |
H A D | powercap.c | 272 ph->hops->extended_name_get(ph, POWERCAP_DOMAIN_NAME_GET, in scmi_powercap_domain_attributes_get() 408 ph->hops->fastchannel_db_ring(fci->set_db); in __scmi_powercap_cap_set() 528 ph->hops->fastchannel_db_ring(fci->set_db); in scmi_powercap_pai_set() 700 ph->hops->fastchannel_init(ph, POWERCAP_DESCRIBE_FASTCHANNEL, in scmi_powercap_domain_init_fc() 705 ph->hops->fastchannel_init(ph, POWERCAP_DESCRIBE_FASTCHANNEL, in scmi_powercap_domain_init_fc() 709 ph->hops->fastchannel_init(ph, POWERCAP_DESCRIBE_FASTCHANNEL, in scmi_powercap_domain_init_fc() 714 ph->hops->fastchannel_init(ph, POWERCAP_DESCRIBE_FASTCHANNEL, in scmi_powercap_domain_init_fc()
|
H A D | perf.c | 291 ph->hops->extended_name_get(ph, PERF_DOMAIN_NAME_GET, in scmi_perf_domain_attributes_get() 422 iter = ph->hops->iter_response_init(ph, &ops, MAX_OPPS, in scmi_perf_describe_levels_get() 429 ret = ph->hops->iter_response_run(iter); in scmi_perf_describe_levels_get() 504 ph->hops->fastchannel_db_ring(fci->set_db); in __scmi_perf_limits_set() 655 ph->hops->fastchannel_db_ring(fci->set_db); in __scmi_perf_level_set() 778 ph->hops->fastchannel_init(ph, PERF_DESCRIBE_FASTCHANNEL, in scmi_perf_domain_init_fc() 783 ph->hops->fastchannel_init(ph, PERF_DESCRIBE_FASTCHANNEL, in scmi_perf_domain_init_fc() 787 ph->hops->fastchannel_init(ph, PERF_DESCRIBE_FASTCHANNEL, in scmi_perf_domain_init_fc() 792 ph->hops->fastchannel_init(ph, PERF_DESCRIBE_FASTCHANNEL, in scmi_perf_domain_init_fc()
|
H A D | sensors.c | 351 iter = ph->hops->iter_response_init(ph, &ops, s->intervals.count, in scmi_sensor_update_intervals() 358 return ph->hops->iter_response_run(iter); in scmi_sensor_update_intervals() 489 iter = ph->hops->iter_response_init(ph, &ops, s->num_axis, in scmi_sensor_axis_extended_names_get() 500 ret = ph->hops->iter_response_run(iter); in scmi_sensor_axis_extended_names_get() 530 iter = ph->hops->iter_response_init(ph, &ops, s->num_axis, in scmi_sensor_axis_description() 537 ret = ph->hops->iter_response_run(iter); in scmi_sensor_axis_description() 646 ph->hops->extended_name_get(ph, SENSOR_NAME_GET, s->id, in iter_sens_descr_process_response() 685 iter = ph->hops->iter_response_init(ph, &ops, si->num_sensors, in scmi_sensor_description_get() 691 return ph->hops->iter_response_run(iter); in scmi_sensor_description_get()
|
H A D | voltage.c | 193 iter = ph->hops->iter_response_init(ph, &ops, v->num_levels, in scmi_voltage_levels_get() 200 ret = ph->hops->iter_response_run(iter); in scmi_voltage_levels_get() 243 ph->hops->extended_name_get(ph, in scmi_voltage_descriptors_get()
|
H A D | clock.c | 171 ph->hops->extended_name_get(ph, CLOCK_NAME_GET, clk_id, in scmi_clock_attributes_get() 304 iter = ph->hops->iter_response_init(ph, &ops, SCMI_MAX_NUM_RATES, in scmi_clock_describe_rates_get() 311 ret = ph->hops->iter_response_run(iter); in scmi_clock_describe_rates_get()
|
/kernel/linux/linux-6.6/include/dt-bindings/usb/ |
H A D | pd.h | 367 * <7:6> :: USB2 hub hops consumed 404 #define VDO_ACABLE2(mtemp, stemp, u3p, trans, phy, ele, u4, hops, u2, u32, lane, iso, gen) \ 407 | ((hops) & 0x3) << 6 | (u2) << 5 | (u32) << 4 | (lane) << 3 \
|
/kernel/linux/linux-6.6/include/linux/usb/ |
H A D | pd_vdo.h | 392 * <7:6> :: USB2 hub hops consumed 429 #define VDO_ACABLE2(mtemp, stemp, u3p, trans, phy, ele, u4, hops, u2, u32, lane, iso, gen) \ 432 | ((hops) & 0x3) << 6 | (u2) << 5 | (u32) << 4 | (lane) << 3 \
|
/kernel/linux/linux-6.6/scripts/dtc/include-prefixes/dt-bindings/usb/ |
H A D | pd.h | 367 * <7:6> :: USB2 hub hops consumed 404 #define VDO_ACABLE2(mtemp, stemp, u3p, trans, phy, ele, u4, hops, u2, u32, lane, iso, gen) \ 407 | ((hops) & 0x3) << 6 | (u2) << 5 | (u32) << 4 | (lane) << 3 \
|