Home
last modified time | relevance | path

Searched refs:hops (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/accel/habanalabs/common/mmu/
H A Dmmu_v2.c245 static int hl_mmu_v2_get_tlb_info(struct hl_ctx *ctx, u64 virt_addr, struct hl_mmu_hop_info *hops) in hl_mmu_v2_get_tlb_info() argument
262 hops->range_type = HL_VA_RANGE_TYPE_DRAM; in hl_mmu_v2_get_tlb_info()
264 hops->scrambled_vaddr = hdev->asic_funcs->scramble_addr(hdev, virt_addr); in hl_mmu_v2_get_tlb_info()
266 hops->hop_info[0].hop_addr = hl_mmu_dr_get_phys_hop0_addr(ctx); in hl_mmu_v2_get_tlb_info()
267 hops->hop_info[0].hop_pte_addr = hl_mmu_get_hop_pte_phys_addr(ctx, mmu_prop, 0, in hl_mmu_v2_get_tlb_info()
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()
270 if (hops->hop_info[0].hop_pte_addr == U64_MAX) in hl_mmu_v2_get_tlb_info()
273 hops->hop_info[0].hop_pte_val = hdev->asic_funcs->read_pte(hdev, in hl_mmu_v2_get_tlb_info()
274 hops->hop_info[0].hop_pte_addr); in hl_mmu_v2_get_tlb_info()
[all …]
H A Dmmu.c477 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()
486 tmp_phys_addr = 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()
490 if (hops->range_type == HL_VA_RANGE_TYPE_HOST_HUGE) in hl_mmu_pa_page_with_offset()
492 else if (hops->range_type == HL_VA_RANGE_TYPE_HOST) in hl_mmu_pa_page_with_offset()
497 if ((hops->range_type == HL_VA_RANGE_TYPE_DRAM) && in hl_mmu_pa_page_with_offset()
524 hop_shift = mmu_prop->hop_shifts[hops->used_hops - 1]; 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()
[all …]
H A Dmmu_v1.c454 struct hl_mmu_hop_info *hops) in hl_mmu_v1_get_tlb_info() argument
491 hops->hop_info[0].hop_addr = hl_mmu_dr_get_phys_hop0_addr(ctx); in hl_mmu_v1_get_tlb_info()
492 hops->hop_info[0].hop_pte_addr = in hl_mmu_v1_get_tlb_info()
494 hops->hop_info[0].hop_addr, virt_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()
503 if (hops->hop_info[i].hop_addr == ULLONG_MAX) in hl_mmu_v1_get_tlb_info()
506 hops->hop_info[i].hop_pte_addr = in hl_mmu_v1_get_tlb_info()
[all …]
H A Dmmu_v2_hr.c335 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()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcls_redirect.c101 enum hops { in set_up_conn()
126 enum hops hops; in prepare_addr()
133 const char *family_str, *type, *conn, *hops, *result, *flags; in was_decapsulated()
147 hops = "no hops";
148 if (test->hops == ONE_HOP)
149 hops = "one hop";
162 type, result, conn, hops, flags);
227 encap_init(&encap, test->hops in encap_init()
144 enum hops { global() enum
169 enum hops hops; global() member
176 const char *family_str, *type, *conn, *hops, *result, *flags; test_str() local
[all...]
/linux/Documentation/networking/
H A Dnexthop-group-resilient.rst9 weights of constituent next hops.
48 constituent next hops: a hash table. The selection algorithm uses SKB hash
55 the individual next hops is arbitrary. Therefore when a next hop is deleted
56 the buckets that held it are simply reassigned to other next hops::
69 When weights of next hops in a group are altered, it may be possible to
83 cause bucket allocation change, the wants counts for individual next hops
86 Next hops that have fewer buckets than their wants count, are called
88 overweight (and therefore no underweight) next hops in the group, it is
97 After assigning wants counts to next hops, an "upkeep" algorithm runs. For
105 underweight next hops. If, after considering all buckets in this manner,
[all …]
/linux/net/ipv6/
H A Dexthdrs.c1105 int hops; in ipv6_push_rthdr0() local
1112 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0()
1114 if (hops > 1) in ipv6_push_rthdr0()
1116 (hops - 1) * sizeof(struct in6_addr)); in ipv6_push_rthdr0()
1118 phdr->addr[hops - 1] = **addr_p; in ipv6_push_rthdr0()
1130 int plen, hops; in ipv6_push_rthdr4() local
1138 hops = sr_ihdr->first_segment + 1; in ipv6_push_rthdr4()
1140 (hops - 1) * sizeof(struct in6_addr)); in ipv6_push_rthdr4()
1145 if (sr_ihdr->hdrlen > hops * 2) { in ipv6_push_rthdr4()
1148 tlvs_offset = (1 + hops * 2) << 3; in ipv6_push_rthdr4()
[all …]
/linux/include/linux/
H A Dtopology.h270 extern const struct cpumask *sched_numa_hop_mask(unsigned int node, unsigned int hops);
278 sched_numa_hop_mask(unsigned int node, unsigned int hops) in sched_numa_hop_mask() argument
/linux/include/linux/usb/
H A Dpd_vdo.h437 #define VDO_ACABLE2(mtemp, stemp, u3p, trans, phy, ele, u4, hops, u2, u32, lane, iso, gen) \ argument
440 | ((hops) & 0x3) << 6 | (u2) << 5 | (u32) << 4 | (lane) << 3 \
/linux/drivers/firmware/arm_scmi/
H A Dprotocols.h185 const struct scmi_proto_helpers_ops *hops; member
/linux/net/batman-adv/
H A Ddistributed-arp-table.c77 __u8 hops; member
1476 __u8 hops; in batadv_dat_check_dhcp() member
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-rapidio156 (RO) number of hops on the path to the switch
/linux/block/
H A Dblk.h715 const struct blk_holder_ops *hops, struct file *bdev_file);
/linux/Documentation/networking/devlink/
H A Ddevlink-dpipe.rst176 host table for directly connected routes, or adjacency table for next-hops.
/linux/net/ipv4/
H A Dipconfig.c633 u8 hops; /* Used only by gateways */ member