Home
last modified time | relevance | path

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

12

/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()
H A Damdgpu_gmc.c422 struct amdgpu_ih_ring *ih, uint64_t addr, in amdgpu_gmc_filter_faults() argument
431 if (amdgpu_ih_ts_after(timestamp, ih->processed_timestamp)) in amdgpu_gmc_filter_faults()
496 struct amdgpu_ih_ring *ih; in amdgpu_gmc_filter_faults_remove() local
506 ih = &adev->irq.ih1; in amdgpu_gmc_filter_faults_remove()
508 ih = &adev->irq.ih_soft; in amdgpu_gmc_filter_faults_remove()
513 last_wptr = amdgpu_ih_get_wptr(adev, ih); in amdgpu_gmc_filter_faults_remove()
517 last_ts = amdgpu_ih_decode_iv_ts(adev, ih, last_wptr, -1); in amdgpu_gmc_filter_faults_remove()
549 if (entry->ih == &adev->irq.ih) { in amdgpu_gmc_handle_retry_fault()
561 if (entry->ih != &adev->irq.ih_soft && in amdgpu_gmc_handle_retry_fault()
562 amdgpu_gmc_filter_faults(adev, entry->ih, addr, entry->pasid, in amdgpu_gmc_handle_retry_fault()
[all …]
/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/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/fs/ntfs/
H A Dindex.c36 struct index_header *ih; in ntfs_index_entry_inconsistent() local
40 ih = &icx->ir->index; in ntfs_index_entry_inconsistent()
42 ih = &icx->ib->index; in ntfs_index_entry_inconsistent()
44 if ((le32_to_cpu(ih->index_length) > le32_to_cpu(ih->allocated_size)) || in ntfs_index_entry_inconsistent()
45 (le32_to_cpu(ih->index_length) > icx->block_size)) { in ntfs_index_entry_inconsistent()
52 ie_start = (u8 *)ih + le32_to_cpu(ih->entries_offset); in ntfs_index_entry_inconsistent()
53 ie_end = (u8 *)ih + le32_to_cpu(ih->index_length); in ntfs_index_entry_inconsistent()
57 le16_to_cpu(ie->length) > le32_to_cpu(ih->allocated_size) || in ntfs_index_entry_inconsistent()
286 static struct index_entry *ntfs_ie_get_first(struct index_header *ih) in ntfs_ie_get_first() argument
288 return (struct index_entry *)((u8 *)ih + le32_to_cpu(ih->entries_offset)); in ntfs_ie_get_first()
[all …]
/linux/net/netfilter/
H A Dnf_conntrack_proto_sctp.c263 struct sctp_inithdr _inithdr, *ih; in sctp_new() local
268 ih = skb_header_pointer(skb, offset + sizeof(_sch), in sctp_new()
270 if (!ih) in sctp_new()
274 ih->init_tag); in sctp_new()
276 ct->proto.sctp.vtag[IP_CT_DIR_REPLY] = ih->init_tag; in sctp_new()
463 struct sctp_inithdr _ih, *ih; in nf_conntrack_sctp_packet() local
465 ih = skb_header_pointer(skb, offset + sizeof(_sch), sizeof(*ih), &_ih); in nf_conntrack_sctp_packet()
466 if (!ih) in nf_conntrack_sctp_packet()
471 ct->proto.sctp.vtag[!dir] != ih->init_tag) { in nf_conntrack_sctp_packet()
477 pr_debug("Setting vtag %x for dir %d\n", ih->init_tag, !dir); in nf_conntrack_sctp_packet()
[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.c2520 const struct iphdr *ih; in audit_log_nf_skb() local
2522 ih = skb_header_pointer(skb, skb_network_offset(skb), in audit_log_nf_skb()
2524 if (!ih) in audit_log_nf_skb()
2527 switch (ih->protocol) { in audit_log_nf_skb()
2538 &ih->saddr, &ih->daddr, ih->protocol, in audit_log_nf_skb()
2553 &ih->saddr, &ih->daddr, ih->protocol, in audit_log_nf_skb()
2567 &ih->saddr, &ih->daddr, ih->protocol, in audit_log_nf_skb()
2573 &ih->saddr, &ih->daddr, ih->protocol); in audit_log_nf_skb()
2580 const struct ipv6hdr *ih; in audit_log_nf_skb() local
2584 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/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()
602 const struct erofs_xattr_ibody_header *ih = kaddr + ofs; in erofs_inode_has_noacl() local
604 if (EROFS_I(inode)->xattr_isize < sizeof(*ih)) in erofs_inode_has_noacl()
608 !check_add_overflow(ofs, sizeof(*ih), &ofs) && in erofs_inode_has_noacl()
610 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.c620 struct octep_vf_instr_hdr *ih; in octep_vf_start_xmit() local
648 ih = &hw_desc->ih; in octep_vf_start_xmit()
649 ih->tlen = skb->len; in octep_vf_start_xmit()
650 ih->pkind = oct->fw_info.pkind; in octep_vf_start_xmit()
651 ih->fsz = oct->fw_info.fsz; in octep_vf_start_xmit()
652 ih->tlen = skb->len + ih->fsz; in octep_vf_start_xmit()
668 ih->gsz = nr_frags + 1; in octep_vf_start_xmit()
669 ih->gather = 1; in octep_vf_start_xmit()
/linux/arch/powerpc/mm/book3s64/
H A Dslb.c157 u32 ih; in __slb_flush_and_restore_bolted() local
168 ih = 1; in __slb_flush_and_restore_bolted()
170 ih = 0; in __slb_flush_and_restore_bolted()
177 :: "i" (ih), in __slb_flush_and_restore_bolted()

12