Home
last modified time | relevance | path

Searched refs:ih (Results 1 – 25 of 59) sorted by relevance

123

/linux/drivers/gpu/drm/amd/amdgpu/
H A Dtonga_ih.c67 adev->irq.ih.enabled = true; in tonga_ih_enable_interrupts()
87 adev->irq.ih.enabled = false; in tonga_ih_disable_interrupts()
88 adev->irq.ih.rptr = 0; in tonga_ih_disable_interrupts()
105 struct amdgpu_ih_ring *ih = &adev->irq.ih; in tonga_ih_irq_init() local
123 WREG32(mmIH_RB_BASE, ih->gpu_addr >> 8); in tonga_ih_irq_init()
125 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in tonga_ih_irq_init()
138 WREG32(mmIH_RB_WPTR_ADDR_LO, lower_32_bits(ih->wptr_addr)); in tonga_ih_irq_init()
139 WREG32(mmIH_RB_WPTR_ADDR_HI, upper_32_bits(ih->wptr_addr) & 0xFF); in tonga_ih_irq_init()
146 if (adev->irq.ih.use_doorbell) { in tonga_ih_irq_init()
148 OFFSET, adev->irq.ih.doorbell_index); in tonga_ih_irq_init()
[all …]
H A Dsi_ih.c45 adev->irq.ih.enabled = true; in si_ih_enable_interrupts()
59 adev->irq.ih.enabled = false; in si_ih_disable_interrupts()
60 adev->irq.ih.rptr = 0; in si_ih_disable_interrupts()
65 struct amdgpu_ih_ring *ih = &adev->irq.ih; in si_ih_irq_init() local
77 WREG32(IH_RB_BASE, adev->irq.ih.gpu_addr >> 8); in si_ih_irq_init()
78 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in si_ih_irq_init()
85 WREG32(IH_RB_WPTR_ADDR_LO, lower_32_bits(ih->wptr_addr)); in si_ih_irq_init()
86 WREG32(IH_RB_WPTR_ADDR_HI, upper_32_bits(ih->wptr_addr) & 0xFF); in si_ih_irq_init()
112 struct amdgpu_ih_ring *ih) in si_ih_get_wptr() argument
116 wptr = le32_to_cpu(*ih->wptr_cpu); in si_ih_get_wptr()
[all …]
H A Dcik_ih.c69 adev->irq.ih.enabled = true; in cik_ih_enable_interrupts()
91 adev->irq.ih.enabled = false; in cik_ih_disable_interrupts()
92 adev->irq.ih.rptr = 0; in cik_ih_disable_interrupts()
108 struct amdgpu_ih_ring *ih = &adev->irq.ih; in cik_ih_irq_init() local
126 WREG32(mmIH_RB_BASE, adev->irq.ih.gpu_addr >> 8); in cik_ih_irq_init()
127 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in cik_ih_irq_init()
136 WREG32(mmIH_RB_WPTR_ADDR_LO, lower_32_bits(ih->wptr_addr)); in cik_ih_irq_init()
137 WREG32(mmIH_RB_WPTR_ADDR_HI, upper_32_bits(ih->wptr_addr) & 0xFF); in cik_ih_irq_init()
192 struct amdgpu_ih_ring *ih) in cik_ih_get_wptr() argument
196 wptr = le32_to_cpu(*ih->wptr_cpu); in cik_ih_get_wptr()
[all …]
H A Diceland_ih.c69 adev->irq.ih.enabled = true; in iceland_ih_enable_interrupts()
91 adev->irq.ih.enabled = false; in iceland_ih_disable_interrupts()
92 adev->irq.ih.rptr = 0; in iceland_ih_disable_interrupts()
108 struct amdgpu_ih_ring *ih = &adev->irq.ih; in iceland_ih_irq_init() local
127 WREG32(mmIH_RB_BASE, adev->irq.ih.gpu_addr >> 8); in iceland_ih_irq_init()
129 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in iceland_ih_irq_init()
138 WREG32(mmIH_RB_WPTR_ADDR_LO, lower_32_bits(ih->wptr_addr)); in iceland_ih_irq_init()
139 WREG32(mmIH_RB_WPTR_ADDR_HI, upper_32_bits(ih->wptr_addr) & 0xFF); in iceland_ih_irq_init()
194 struct amdgpu_ih_ring *ih) in iceland_ih_get_wptr() argument
198 wptr = le32_to_cpu(*ih->wptr_cpu); in iceland_ih_get_wptr()
[all …]
H A Dcz_ih.c69 adev->irq.ih.enabled = true; in cz_ih_enable_interrupts()
91 adev->irq.ih.enabled = false; in cz_ih_disable_interrupts()
92 adev->irq.ih.rptr = 0; in cz_ih_disable_interrupts()
108 struct amdgpu_ih_ring *ih = &adev->irq.ih; in cz_ih_irq_init() local
127 WREG32(mmIH_RB_BASE, adev->irq.ih.gpu_addr >> 8); in cz_ih_irq_init()
129 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in cz_ih_irq_init()
138 WREG32(mmIH_RB_WPTR_ADDR_LO, lower_32_bits(ih->wptr_addr)); in cz_ih_irq_init()
139 WREG32(mmIH_RB_WPTR_ADDR_HI, upper_32_bits(ih->wptr_addr) & 0xFF); in cz_ih_irq_init()
194 struct amdgpu_ih_ring *ih) in cz_ih_get_wptr() argument
198 wptr = le32_to_cpu(*ih->wptr_cpu); in cz_ih_get_wptr()
[all …]
H A Damdgpu_irq.c206 ret = amdgpu_ih_process(adev, &adev->irq.ih); in amdgpu_irq_handler()
375 amdgpu_ih_ring_fini(adev, &adev->irq.ih); in amdgpu_irq_fini_hw()
471 struct amdgpu_ih_ring *ih) in amdgpu_irq_dispatch() argument
473 u32 ring_index = ih->rptr >> 2; in amdgpu_irq_dispatch()
480 entry.ih = ih; in amdgpu_irq_dispatch()
481 entry.iv_entry = (const uint32_t *)&ih->ring[ring_index]; in amdgpu_irq_dispatch()
492 trace_amdgpu_iv(ih - &adev->irq.ih, &entry); in amdgpu_irq_dispatch()
531 if (amdgpu_ih_ts_after(ih->processed_timestamp, entry.timestamp)) in amdgpu_irq_dispatch()
532 ih->processed_timestamp = entry.timestamp; in amdgpu_irq_dispatch()
/linux/net/bridge/netfilter/
H A Debt_log.c99 const struct iphdr *ih; in ebt_log_packet() local
102 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in ebt_log_packet()
103 if (ih == NULL) { in ebt_log_packet()
108 &ih->saddr, &ih->daddr, ih->tos, ih->protocol); in ebt_log_packet()
109 print_ports(skb, ih->protocol, ih->ihl*4); in ebt_log_packet()
116 const struct ipv6hdr *ih; in ebt_log_packet() local
122 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in ebt_log_packet()
123 if (ih == NULL) { in ebt_log_packet()
128 &ih->saddr, &ih->daddr, ih->priority, ih->nexthdr); in ebt_log_packet()
129 nexthdr = ih->nexthdr; in ebt_log_packet()
H A Debt_ip.c41 const struct iphdr *ih; in ebt_ip_mt() local
46 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in ebt_ip_mt()
47 if (ih == NULL) in ebt_ip_mt()
50 NF_INVF(info, EBT_IP_TOS, info->tos != ih->tos)) in ebt_ip_mt()
54 (ih->saddr & info->smsk) != info->saddr)) in ebt_ip_mt()
58 (ih->daddr & info->dmsk) != info->daddr)) in ebt_ip_mt()
61 if (NF_INVF(info, EBT_IP_PROTO, info->protocol != ih->protocol)) in ebt_ip_mt()
66 if (ntohs(ih->frag_off) & IP_OFFSET) in ebt_ip_mt()
70 pptr = skb_header_pointer(skb, ih->ihl*4, in ebt_ip_mt()
H A Debt_among.c74 const struct iphdr *ih; in get_ip_dst() local
77 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in get_ip_dst()
78 if (ih == NULL) in get_ip_dst()
80 *addr = ih->daddr; in get_ip_dst()
105 const struct iphdr *ih; in get_ip_src() local
108 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in get_ip_src()
109 if (ih == NULL) in get_ip_src()
111 *addr = ih->saddr; in get_ip_src()
/linux/net/netfilter/ipvs/
H A Dip_vs_proto.c220 struct iphdr _iph, *ih; in ip_vs_tcpudp_debug_packet_v4() local
222 ih = skb_header_pointer(skb, offset, sizeof(_iph), &_iph); in ip_vs_tcpudp_debug_packet_v4()
223 if (ih == NULL) in ip_vs_tcpudp_debug_packet_v4()
225 else if (ih->frag_off & htons(IP_OFFSET)) in ip_vs_tcpudp_debug_packet_v4()
226 sprintf(buf, "%pI4->%pI4 frag", &ih->saddr, &ih->daddr); in ip_vs_tcpudp_debug_packet_v4()
230 pptr = skb_header_pointer(skb, offset + ih->ihl*4, in ip_vs_tcpudp_debug_packet_v4()
234 &ih->saddr, &ih->daddr); in ip_vs_tcpudp_debug_packet_v4()
237 &ih->saddr, ntohs(pptr[0]), in ip_vs_tcpudp_debug_packet_v4()
238 &ih->daddr, ntohs(pptr[1])); in ip_vs_tcpudp_debug_packet_v4()
252 struct ipv6hdr _iph, *ih; in ip_vs_tcpudp_debug_packet_v6() local
[all …]
/linux/net/netfilter/
H A Dxt_AUDIT.c34 const struct iphdr *ih; audit_ip4() local
49 const struct ipv6hdr *ih; audit_ip6() local
H A Dnf_log_syslog.c305 const struct iphdr *ih; in dump_ipv4_packet() local
314 ih = skb_header_pointer(skb, iphoff, sizeof(_iph), &_iph); in dump_ipv4_packet()
315 if (!ih) { in dump_ipv4_packet()
324 nf_log_buf_add(m, "SRC=%pI4 DST=%pI4 ", &ih->saddr, &ih->daddr); in dump_ipv4_packet()
328 iph_totlen(skb, ih), ih->tos & IPTOS_TOS_MASK, in dump_ipv4_packet()
329 ih->tos & IPTOS_PREC_MASK, ih->ttl, ntohs(ih in dump_ipv4_packet()
540 const struct ipv6hdr *ih; dump_ipv6_packet() local
[all...]
H A Dnft_log.c32 const struct iphdr *ih; audit_ip4() local
47 const struct ipv6hdr *ih; audit_ip6() local
/linux/include/uapi/linux/
H A Dcoda.h322 struct coda_in_hdr ih; member
336 struct coda_in_hdr ih; member
347 struct coda_in_hdr ih; member
358 struct coda_in_hdr ih; member
369 struct coda_in_hdr ih; member
386 struct coda_in_hdr ih; member
398 struct coda_in_hdr ih; member
409 struct coda_in_hdr ih; member
425 struct coda_in_hdr ih; member
440 struct coda_in_hdr ih; member
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dxdp_features.c78 struct iphdr *ih = (struct iphdr *)(eh + 1); in xdp_process_echo_packet() local
84 ih = (struct iphdr *)(eh + 1); in xdp_process_echo_packet()
85 if (ih + 1 > (struct iphdr *)data_end) in xdp_process_echo_packet()
88 if (saddr != ih->saddr) in xdp_process_echo_packet()
91 if (daddr != ih->daddr) in xdp_process_echo_packet()
94 if (ih->protocol != IPPROTO_UDP) in xdp_process_echo_packet()
97 uh = (struct udphdr *)(ih + 1); in xdp_process_echo_packet()
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_irq.c101 void (*ih)(void *), in init_handler_common_data()
105 hcd->handler = ih; in init_handler_common_data()
133 void *ih, in remove_irq_handler() argument
165 if (ih == handler->handler) { in remove_irq_handler()
186 ih, int_params->irq_source, int_params->int_context); in remove_irq_handler()
242 void (*ih)(void *)) in validate_irq_registration_params()
244 if (NULL == int_params || NULL == ih) { in validate_irq_registration_params()
305 void (*ih)(void *), in amdgpu_dm_irq_register_interrupt()
313 if (false == validate_irq_registration_params(int_params, ih)) in amdgpu_dm_irq_register_interrupt()
322 init_handler_common_data(handler_data, ih, handler_args, &adev->dm); in amdgpu_dm_irq_register_interrupt()
[all …]
/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-selftest.c44 struct iphdr *ih; in xgbe_test_loopback_validate() local
74 ih = ip_hdr(skb); in xgbe_test_loopback_validate()
77 if (ih->protocol != IPPROTO_TCP) in xgbe_test_loopback_validate()
80 th = (struct tcphdr *)((u8 *)ih + 4 * ih->ihl); in xgbe_test_loopback_validate()
86 if (ih->protocol != IPPROTO_UDP) in xgbe_test_loopback_validate()
89 uh = (struct udphdr *)((u8 *)ih + 4 * ih->ihl); in xgbe_test_loopback_validate()
/linux/kernel/
H A Daudit.c2514 const struct iphdr *ih; in audit_log_nf_skb() local
2516 ih = skb_header_pointer(skb, skb_network_offset(skb), in audit_log_nf_skb()
2518 if (!ih) in audit_log_nf_skb()
2521 switch (ih->protocol) { in audit_log_nf_skb()
2532 &ih->saddr, &ih->daddr, ih->protocol, in audit_log_nf_skb()
2547 &ih->saddr, &ih->daddr, ih->protocol, in audit_log_nf_skb()
2561 &ih->saddr, &ih->daddr, ih->protocol, in audit_log_nf_skb()
2567 &ih->saddr, &ih->daddr, ih->protocol); in audit_log_nf_skb()
2574 const struct ipv6hdr *ih; in audit_log_nf_skb() local
2578 ih = skb_header_pointer(skb, skb_network_offset(skb), in audit_log_nf_skb()
[all …]
/linux/drivers/net/ethernet/sgi/
H A Dioc3-eth.c302 struct iphdr *ih; in ioc3_tcpudp_checksum() local
322 ih = (struct iphdr *)((char *)eh + ETH_HLEN); in ioc3_tcpudp_checksum()
323 if (ip_is_fragment(ih)) in ioc3_tcpudp_checksum()
326 proto = ih->protocol; in ioc3_tcpudp_checksum()
332 (ih->tot_len - (ih->ihl << 2)) + in ioc3_tcpudp_checksum()
333 htons((u16)ih->protocol) + in ioc3_tcpudp_checksum()
334 (ih->saddr >> 16) + (ih->saddr & 0xffff) + in ioc3_tcpudp_checksum()
335 (ih->daddr >> 16) + (ih->daddr & 0xffff); in ioc3_tcpudp_checksum()
996 const struct iphdr *ih = ip_hdr(skb); in ioc3_start_xmit() local
997 const int proto = ntohs(ih->protocol); in ioc3_start_xmit()
[all …]
/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_reqmgr.c450 sr->instr.ih.value = 0; in nitrox_process_se_request()
451 sr->instr.ih.s.g = 1; in nitrox_process_se_request()
452 sr->instr.ih.s.gsz = sr->in.sgmap_cnt; in nitrox_process_se_request()
453 sr->instr.ih.s.ssz = sr->out.sgmap_cnt; in nitrox_process_se_request()
454 sr->instr.ih.s.fsz = FDATA_SIZE + sizeof(struct gphdr); in nitrox_process_se_request()
455 sr->instr.ih.s.tlen = sr->instr.ih.s.fsz + sr->in.total_bytes; in nitrox_process_se_request()
456 sr->instr.ih.bev = cpu_to_be64(sr->instr.ih.value); in nitrox_process_se_request()
/linux/drivers/iommu/intel/
H A Dcache.c334 u64 addr, unsigned long npages, bool ih, in qi_batch_add_piotlb() argument
345 qi_desc_piotlb(did, pasid, addr, npages, ih, &batch->descs[batch->index]); in qi_batch_add_piotlb()
375 unsigned long mask, int ih) in cache_tag_flush_iotlb() argument
382 pages, ih, domain->qi_batch); in cache_tag_flush_iotlb()
394 ih = 0; in cache_tag_flush_iotlb()
399 qi_batch_add_iotlb(iommu, tag->domain_id, addr | ih, mask, type, in cache_tag_flush_iotlb()
402 __iommu_flush_iotlb(iommu, tag->domain_id, addr | ih, mask, type); in cache_tag_flush_iotlb()
437 unsigned long end, int ih) in cache_tag_flush_range() argument
461 cache_tag_flush_iotlb(domain, tag, addr, pages, mask, ih); in cache_tag_flush_range()
/linux/fs/erofs/
H A Dxattr.c35 const struct erofs_xattr_ibody_header *ih; in erofs_init_inode_xattrs() local
81 ih = erofs_read_metabuf(&buf, sb, pos, erofs_inode_in_metabox(inode)); in erofs_init_inode_xattrs()
82 if (IS_ERR(ih)) { in erofs_init_inode_xattrs()
83 ret = PTR_ERR(ih); in erofs_init_inode_xattrs()
86 vi->xattr_name_filter = le32_to_cpu(ih->h_name_filter); in erofs_init_inode_xattrs()
87 vi->xattr_shared_count = ih->h_shared_count; in erofs_init_inode_xattrs()
596 const struct erofs_xattr_ibody_header *ih = kaddr + ofs; in erofs_inode_has_noacl() local
598 if (EROFS_I(inode)->xattr_isize < sizeof(*ih)) in erofs_inode_has_noacl()
602 !check_add_overflow(ofs, sizeof(*ih), &ofs) && in erofs_inode_has_noacl()
604 if ((le32_to_cpu(ih->h_name_filter) & bitmask) == bitmask) in erofs_inode_has_noacl()
/linux/fs/coda/
H A Dupcall.c53 inp->ih.opcode = opcode; in alloc_upcall()
54 inp->ih.pid = task_pid_nr_ns(current, &init_pid_ns); in alloc_upcall()
55 inp->ih.pgid = task_pgrp_nr_ns(current, &init_pid_ns); in alloc_upcall()
56 inp->ih.uid = from_kuid(&init_user_ns, current_fsuid()); in alloc_upcall()
170 inp->ih.uid = from_kuid(&init_user_ns, uid); in venus_close()
733 buffer->ih.unique = ++vcp->vc_seq; in coda_upcall()
739 req->uc_opcode = buffer->ih.opcode; in coda_upcall()
740 req->uc_unique = buffer->ih.unique; in coda_upcall()
801 sig_inputArgs->ih.opcode = CODA_SIGNAL; in coda_upcall()
802 sig_inputArgs->ih.unique = req->uc_unique; in coda_upcall()
[all …]
/linux/drivers/gpu/drm/radeon/
H A Dr600.c3315 rdev->ih.ring_obj = NULL; in r600_init()
3473 rdev->ih.ring_size = ring_size; in r600_ih_ring_init()
3474 rdev->ih.ptr_mask = rdev->ih.ring_size - 1; in r600_ih_ring_init()
3475 rdev->ih.rptr = 0; in r600_ih_ring_init()
3483 if (rdev->ih.ring_obj == NULL) { in r600_ih_ring_alloc()
3484 r = radeon_bo_create(rdev, rdev->ih.ring_size, in r600_ih_ring_alloc()
3487 NULL, NULL, &rdev->ih.ring_obj); in r600_ih_ring_alloc()
3492 r = radeon_bo_reserve(rdev->ih.ring_obj, false); in r600_ih_ring_alloc()
3495 r = radeon_bo_pin(rdev->ih.ring_obj, in r600_ih_ring_alloc()
3497 &rdev->ih.gpu_addr); in r600_ih_ring_alloc()
[all …]
/linux/drivers/net/ethernet/marvell/octeon_ep_vf/
H A Doctep_vf_main.c602 struct octep_vf_instr_hdr *ih; in octep_vf_start_xmit() local
630 ih = &hw_desc->ih; in octep_vf_start_xmit()
631 ih->tlen = skb->len; in octep_vf_start_xmit()
632 ih->pkind = oct->fw_info.pkind; in octep_vf_start_xmit()
633 ih->fsz = oct->fw_info.fsz; in octep_vf_start_xmit()
634 ih->tlen = skb->len + ih->fsz; in octep_vf_start_xmit()
650 ih->gsz = nr_frags + 1; in octep_vf_start_xmit()
651 ih->gather = 1; in octep_vf_start_xmit()

123