| /linux/drivers/accel/habanalabs/common/mmu/ |
| H A D | mmu_v2.c | 245 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 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() 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 D | mmu_v1.c | 454 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 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()
|
| /linux/drivers/thunderbolt/ |
| H A D | test.c | 934 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane0() 935 out_port = path->hops[i].out_port; in tb_test_path_not_bonded_lane0() 996 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane1() 997 out_port = path->hops[i].out_port; in tb_test_path_not_bonded_lane1() 1076 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane1_chain() 1077 out_port = path->hops[i].out_port; in tb_test_path_not_bonded_lane1_chain() 1156 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane1_chain_reverse() 1157 out_port = path->hops[i].out_port; in tb_test_path_not_bonded_lane1_chain_reverse() 1248 in_port = path->hops[i].in_port; in tb_test_path_mixed_chain() 1249 out_port = path->hops[i].out_port; in tb_test_path_mixed_chain() [all …]
|
| H A D | tunnel.c | 1168 paths[TB_DP_VIDEO_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate() 1169 paths[TB_DP_AUX_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate() 1170 paths[TB_DP_AUX_PATH_IN]->hops[last].next_hop_index); in tb_dp_activate() 1173 paths[TB_DP_VIDEO_PATH_OUT]->hops[last].next_hop_index, in tb_dp_activate() 1174 paths[TB_DP_AUX_PATH_IN]->hops[0].in_hop_index, in tb_dp_activate() 1175 paths[TB_DP_AUX_PATH_OUT]->hops[last].next_hop_index); in tb_dp_activate() 1841 hop = &path->hops[0]; in tb_dma_init_rx_path() 1849 ret = tb_dma_reserve_credits(&path->hops[i], credits); in tb_dma_init_rx_path() 2024 if (tb_port_is_nhi(path->hops[0].in_port)) in tb_tunnel_match_dma() 2026 else if (tb_port_is_nhi(path->hops[pat in tb_tunnel_match_dma() [all...] |
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | cls_redirect.c | 101 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 D | nexthop-group-resilient.rst | 9 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/block/ |
| H A D | bdev.c | 578 * @hops: holder ops 586 const struct blk_holder_ops *hops) in bd_may_claim() argument 597 if (WARN_ON_ONCE(bdev->bd_holder_ops != hops)) in bd_may_claim() 618 * @hops: holder ops. 628 const struct blk_holder_ops *hops) in bd_prepare_to_claim() argument 637 if (!bd_may_claim(bdev, holder, hops)) { in bd_prepare_to_claim() 674 * @hops: block device holder operations 680 const struct blk_holder_ops *hops) in bd_finish_claiming() argument 685 BUG_ON(!bd_may_claim(bdev, holder, hops)); in bd_finish_claiming() 695 bdev->bd_holder_ops = hops; in bd_finish_claiming() 972 bdev_open(struct block_device * bdev,blk_mode_t mode,void * holder,const struct blk_holder_ops * hops,struct file * bdev_file) bdev_open() argument 1080 bdev_file_open_by_dev(dev_t dev,blk_mode_t mode,void * holder,const struct blk_holder_ops * hops) bdev_file_open_by_dev() argument 1117 bdev_file_open_by_path(const char * path,blk_mode_t mode,void * holder,const struct blk_holder_ops * hops) bdev_file_open_by_path() argument [all...] |
| H A D | blk.h | 772 const struct blk_holder_ops *hops, struct file *bdev_file); in blk_unfreeze_release_lock()
|
| /linux/drivers/firmware/arm_scmi/ |
| H A D | clock.c | 228 if (!ph->hops->protocol_msg_check(ph, CLOCK_RATE_NOTIFY, NULL)) in scmi_clock_protocol_attributes_get() 231 if (!ph->hops->protocol_msg_check(ph, in scmi_clock_protocol_attributes_get() 319 iter = ph->hops->iter_response_init(ph, &ops, 0, in scmi_clock_possible_parents() 326 return ph->hops->iter_response_run(iter); in scmi_clock_possible_parents() 395 ph->hops->extended_name_get(ph, CLOCK_NAME_GET, clk_id, in scmi_clock_attributes_get() 537 iter = ph->hops->iter_response_init(ph, &ops, clkd->tot_rates, in scmi_clock_describe_rates_get_full() 544 ret = ph->hops->iter_response_run(iter); in scmi_clock_describe_rates_get_full() 576 iter = ph->hops->iter_response_init(ph, &ops, 0, CLOCK_DESCRIBE_RATES, in scmi_clock_describe_rates_get_lazy() 585 ret = ph->hops->iter_response_run_bound(iter, &first, &last); in scmi_clock_describe_rates_get_lazy() 596 ret = ph->hops in scmi_clock_describe_rates_get_lazy() [all...] |
| H A D | driver.c | 2287 pi->ph.hops = &helpers_ops; in scmi_alloc_init_protocol_instance()
|
| /linux/net/ipv6/ |
| H A D | exthdrs.c | 1104 int hops; in ipv6_push_rthdr0() local 1111 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0() 1113 if (hops > 1) in ipv6_push_rthdr0() 1115 (hops - 1) * sizeof(struct in6_addr)); in ipv6_push_rthdr0() 1117 phdr->addr[hops - 1] = **addr_p; in ipv6_push_rthdr0() 1129 int plen, hops; in ipv6_push_rthdr4() local 1137 hops = sr_ihdr->first_segment + 1; in ipv6_push_rthdr4() 1139 (hops - 1) * sizeof(struct in6_addr)); in ipv6_push_rthdr4() 1144 if (sr_ihdr->hdrlen > hops * 2) { in ipv6_push_rthdr4() 1147 tlvs_offset = (1 + hops * in ipv6_push_rthdr4() [all...] |
| /linux/arch/s390/kernel/ |
| H A D | dis.c | 510 int start, end, opsize, hops, i; in show_code() local 536 for (i = 0, hops = 0; start + i < 32 && hops < 3; hops++) { in show_code() 548 hops = 0; in show_code() 549 while (start < end && hops < 8) { in show_code() 572 hops++; in show_code()
|
| /linux/include/linux/usb/ |
| H A D | pd_vdo.h | 437 #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/include/linux/ |
| H A D | dax.h | 150 const struct dax_holder_operations *hops); 167 const struct dax_holder_operations *hops) in fs_put_dax() 170 fs_dax_get(struct dax_device * dax_dev,void * holder,const struct dax_holder_operations * hops) fs_dax_get() argument
|
| H A D | blkdev.h | 1699 const struct blk_holder_ops *hops); 1701 void *holder, const struct blk_holder_ops *hops); 1703 const struct blk_holder_ops *hops);
|
| /linux/drivers/dax/ |
| H A D | super.c | 173 * @hops: operations for the inner holder 178 const struct dax_holder_operations *hops) in fs_dax_get() argument 217 dax_dev->holder_ops = hops; in fs_dax_get()
|
| /linux/net/batman-adv/ |
| H A D | distributed-arp-table.c | 99 * @hops: number of relay hops 116 __u8 hops; member 144 /** @hops: number of relay hops */ 145 __u8 hops; member
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-rapidio | 156 (RO) number of hops on the path to the switch
|
| /linux/kernel/sched/ |
| H A D | topology.c | 1134 * about doing this is to build the domains on 'hops'. For each NUMA level we 1135 * construct the mask of all nodes reachable in @level hops. 2220 * - If for two nodes A and B, located N > 1 hops away from each other, 2221 * there is an intermediary node C, which is < N hops away from both 2387 * CPUs of nodes that are that many hops away from us. in sched_init_numa() 2648 * sched_numa_hop_mask() - Get the cpumask of CPUs at most @hops hops away from 2650 * @node: The node to count hops from. 2651 * @hops: Include CPUs up to that many hops awa 2664 sched_numa_hop_mask(unsigned int node,unsigned int hops) sched_numa_hop_mask() argument [all...] |
| /linux/Documentation/networking/devlink/ |
| H A D | devlink-dpipe.rst | 176 host table for directly connected routes, or adjacency table for next-hops.
|
| /linux/net/sched/ |
| H A D | sch_htb.c | 227 unsigned int hops = 0; in htb_classify() local 270 if (++hops > TC_HTB_MAXDEPTH) { in htb_classify()
|
| /linux/net/ipv4/ |
| H A D | ipconfig.c | 636 u8 hops; /* Used only by gateways */ 633 u8 hops; /* Used only by gateways */ global() member
|
| /linux/Documentation/core-api/ |
| H A D | workqueue.rst | 204 hops through different CPUs.
|