Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ih.c42 if (adev->irq.ih.ring_obj == NULL) { in amdgpu_ih_ring_alloc()
43 r = amdgpu_bo_create_kernel(adev, adev->irq.ih.ring_size, in amdgpu_ih_ring_alloc()
45 &adev->irq.ih.ring_obj, in amdgpu_ih_ring_alloc()
46 &adev->irq.ih.gpu_addr, in amdgpu_ih_ring_alloc()
47 (void **)&adev->irq.ih.ring); in amdgpu_ih_ring_alloc()
74 adev->irq.ih.ring_size = ring_size; in amdgpu_ih_ring_init()
75 adev->irq.ih.ptr_mask = adev->irq.ih.ring_size - 1; in amdgpu_ih_ring_init()
76 adev->irq.ih.rptr = 0; in amdgpu_ih_ring_init()
77 adev->irq.ih.use_bus_addr = use_bus_addr; in amdgpu_ih_ring_init()
79 if (adev->irq.ih.use_bus_addr) { in amdgpu_ih_ring_init()
[all …]
Dvega10_ih.c52 adev->irq.ih.enabled = true; in vega10_ih_enable_interrupts()
72 adev->irq.ih.enabled = false; in vega10_ih_disable_interrupts()
73 adev->irq.ih.rptr = 0; in vega10_ih_disable_interrupts()
102 if (adev->irq.ih.use_bus_addr) { in vega10_ih_irq_init()
103 WREG32_SOC15(OSSSYS, 0, mmIH_RB_BASE, adev->irq.ih.rb_dma_addr >> 8); in vega10_ih_irq_init()
104 WREG32_SOC15(OSSSYS, 0, mmIH_RB_BASE_HI, ((u64)adev->irq.ih.rb_dma_addr >> 40) & 0xff); in vega10_ih_irq_init()
107 WREG32_SOC15(OSSSYS, 0, mmIH_RB_BASE, adev->irq.ih.gpu_addr >> 8); in vega10_ih_irq_init()
108 WREG32_SOC15(OSSSYS, 0, mmIH_RB_BASE_HI, (adev->irq.ih.gpu_addr >> 40) & 0xff); in vega10_ih_irq_init()
111 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in vega10_ih_irq_init()
127 if (adev->irq.ih.use_bus_addr) in vega10_ih_irq_init()
[all …]
Dtonga_ih.c65 adev->irq.ih.enabled = true; in tonga_ih_enable_interrupts()
85 adev->irq.ih.enabled = false; in tonga_ih_disable_interrupts()
86 adev->irq.ih.rptr = 0; in tonga_ih_disable_interrupts()
121 if (adev->irq.ih.use_bus_addr) in tonga_ih_irq_init()
122 WREG32(mmIH_RB_BASE, adev->irq.ih.rb_dma_addr >> 8); in tonga_ih_irq_init()
124 WREG32(mmIH_RB_BASE, adev->irq.ih.gpu_addr >> 8); in tonga_ih_irq_init()
126 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in tonga_ih_irq_init()
139 if (adev->irq.ih.use_bus_addr) in tonga_ih_irq_init()
140 wptr_off = adev->irq.ih.rb_dma_addr + (adev->irq.ih.wptr_offs * 4); in tonga_ih_irq_init()
142 wptr_off = adev->wb.gpu_addr + (adev->irq.ih.wptr_offs * 4); in tonga_ih_irq_init()
[all …]
Dcik_ih.c67 adev->irq.ih.enabled = true; in cik_ih_enable_interrupts()
89 adev->irq.ih.enabled = false; in cik_ih_disable_interrupts()
90 adev->irq.ih.rptr = 0; in cik_ih_disable_interrupts()
124 WREG32(mmIH_RB_BASE, adev->irq.ih.gpu_addr >> 8); in cik_ih_irq_init()
125 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in cik_ih_irq_init()
134 wptr_off = adev->wb.gpu_addr + (adev->irq.ih.wptr_offs * 4); in cik_ih_irq_init()
190 wptr = le32_to_cpu(adev->wb.wb[adev->irq.ih.wptr_offs]); in cik_ih_get_wptr()
199 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in cik_ih_get_wptr()
200 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in cik_ih_get_wptr()
205 return (wptr & adev->irq.ih.ptr_mask); in cik_ih_get_wptr()
[all …]
Dcz_ih.c67 adev->irq.ih.enabled = true; in cz_ih_enable_interrupts()
89 adev->irq.ih.enabled = false; in cz_ih_disable_interrupts()
90 adev->irq.ih.rptr = 0; in cz_ih_disable_interrupts()
125 WREG32(mmIH_RB_BASE, adev->irq.ih.gpu_addr >> 8); in cz_ih_irq_init()
127 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in cz_ih_irq_init()
136 wptr_off = adev->wb.gpu_addr + (adev->irq.ih.wptr_offs * 4); in cz_ih_irq_init()
192 wptr = le32_to_cpu(adev->wb.wb[adev->irq.ih.wptr_offs]); in cz_ih_get_wptr()
201 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in cz_ih_get_wptr()
202 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in cz_ih_get_wptr()
207 return (wptr & adev->irq.ih.ptr_mask); in cz_ih_get_wptr()
[all …]
Diceland_ih.c67 adev->irq.ih.enabled = true; in iceland_ih_enable_interrupts()
89 adev->irq.ih.enabled = false; in iceland_ih_disable_interrupts()
90 adev->irq.ih.rptr = 0; in iceland_ih_disable_interrupts()
125 WREG32(mmIH_RB_BASE, adev->irq.ih.gpu_addr >> 8); in iceland_ih_irq_init()
127 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in iceland_ih_irq_init()
136 wptr_off = adev->wb.gpu_addr + (adev->irq.ih.wptr_offs * 4); in iceland_ih_irq_init()
192 wptr = le32_to_cpu(adev->wb.wb[adev->irq.ih.wptr_offs]); in iceland_ih_get_wptr()
201 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in iceland_ih_get_wptr()
202 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in iceland_ih_get_wptr()
207 return (wptr & adev->irq.ih.ptr_mask); in iceland_ih_get_wptr()
[all …]
Dsi_ih.c40 adev->irq.ih.enabled = true; in si_ih_enable_interrupts()
54 adev->irq.ih.enabled = false; in si_ih_disable_interrupts()
55 adev->irq.ih.rptr = 0; in si_ih_disable_interrupts()
65 WREG32(INTERRUPT_CNTL2, adev->irq.ih.gpu_addr >> 8); in si_ih_irq_init()
71 WREG32(IH_RB_BASE, adev->irq.ih.gpu_addr >> 8); in si_ih_irq_init()
72 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in si_ih_irq_init()
79 wptr_off = adev->wb.gpu_addr + (adev->irq.ih.wptr_offs * 4); in si_ih_irq_init()
107 wptr = le32_to_cpu(adev->wb.wb[adev->irq.ih.wptr_offs]); in si_ih_get_wptr()
112 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in si_ih_get_wptr()
113 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in si_ih_get_wptr()
[all …]
/Linux-v4.19/fs/reiserfs/
Dlbalance.c26 struct item_head *ih; in leaf_copy_dir_entries() local
31 ih = item_head(source, item_num); in leaf_copy_dir_entries()
33 RFALSE(!is_direntry_le_ih(ih), "vs-10000: item must be directory item"); in leaf_copy_dir_entries()
39 deh = B_I_DEH(source, ih); in leaf_copy_dir_entries()
42 ih_item_len(ih)) - in leaf_copy_dir_entries()
45 source->b_data + ih_location(ih) + in leaf_copy_dir_entries()
63 (last_first == FIRST_TO_LAST && le_ih_k_offset(ih) == DOT_OFFSET) || in leaf_copy_dir_entries()
65 && comp_short_le_keys /*COMP_SHORT_KEYS */ (&ih->ih_key, in leaf_copy_dir_entries()
73 memcpy(&new_ih.ih_key, &ih->ih_key, KEY_SIZE); in leaf_copy_dir_entries()
82 if (from < ih_entry_count(ih)) { in leaf_copy_dir_entries()
[all …]
Ddo_balan.c83 struct item_head *ih = item_head(tbS0, item_pos); in balance_leaf_when_delete_del() local
86 RFALSE(ih_item_len(ih) + IH_SIZE != -tb->insert_size[0], in balance_leaf_when_delete_del()
88 -tb->insert_size[0], ih); in balance_leaf_when_delete_del()
113 struct item_head *ih = item_head(tbS0, item_pos); in balance_leaf_when_delete_cut() local
118 if (is_direntry_le_ih(ih)) { in balance_leaf_when_delete_cut()
140 RFALSE(!ih_item_len(ih), in balance_leaf_when_delete_cut()
245 struct item_head *ih; in balance_leaf_when_delete() local
254 ih = item_head(tbS0, item_pos); in balance_leaf_when_delete()
290 struct item_head *const ih, in balance_leaf_insert_left() argument
306 new_item_len = ih_item_len(ih) - tb->lbytes; in balance_leaf_insert_left()
[all …]
Dreiserfs.h1396 #define ih_free_space(ih) le16_to_cpu((ih)->u.ih_free_space_reserved) argument
1397 #define ih_version(ih) le16_to_cpu((ih)->ih_version) argument
1398 #define ih_entry_count(ih) le16_to_cpu((ih)->u.ih_entry_count) argument
1399 #define ih_location(ih) le16_to_cpu((ih)->ih_item_location) argument
1400 #define ih_item_len(ih) le16_to_cpu((ih)->ih_item_len) argument
1402 #define put_ih_free_space(ih, val) do { (ih)->u.ih_free_space_reserved = cpu_to_le16(val); } whil… argument
1403 #define put_ih_version(ih, val) do { (ih)->ih_version = cpu_to_le16(val); } while (0) argument
1404 #define put_ih_entry_count(ih, val) do { (ih)->u.ih_entry_count = cpu_to_le16(val); } while (0) argument
1405 #define put_ih_location(ih, val) do { (ih)->ih_item_location = cpu_to_le16(val); } while (0) argument
1406 #define put_ih_item_len(ih, val) do { (ih)->ih_item_len = cpu_to_le16(val); } while (0) argument
[all …]
Ditem_ops.c19 static int sd_bytes_number(struct item_head *ih, int block_size) in sd_bytes_number() argument
36 static void sd_print_item(struct item_head *ih, char *item) in sd_print_item() argument
39 if (stat_data_v1(ih)) { in sd_print_item()
55 static void sd_check_item(struct item_head *ih, char *item) in sd_check_item() argument
114 static int direct_bytes_number(struct item_head *ih, int block_size) in direct_bytes_number() argument
116 return ih_item_len(ih); in direct_bytes_number()
134 static void direct_print_item(struct item_head *ih, char *item) in direct_print_item() argument
140 while (j < ih_item_len(ih)) in direct_print_item()
145 static void direct_check_item(struct item_head *ih, char *item) in direct_check_item() argument
205 static int indirect_bytes_number(struct item_head *ih, int block_size) in indirect_bytes_number() argument
[all …]
Dinode.c137 inline void make_le_item_head(struct item_head *ih, const struct cpu_key *key, in make_le_item_head() argument
143 ih->ih_key.k_dir_id = cpu_to_le32(key->on_disk_key.k_dir_id); in make_le_item_head()
144 ih->ih_key.k_objectid = in make_le_item_head()
147 put_ih_version(ih, version); in make_le_item_head()
148 set_le_ih_k_offset(ih, offset); in make_le_item_head()
149 set_le_ih_k_type(ih, type); in make_le_item_head()
150 put_ih_item_len(ih, length); in make_le_item_head()
156 put_ih_entry_count(ih, entry_count); in make_le_item_head()
215 struct item_head *ih, in allocation_needed() argument
220 if (retval == POSITION_FOUND && is_indirect_le_ih(ih) && in allocation_needed()
[all …]
Ddir.c70 struct item_head *ih, tmp_ih; in reiserfs_readdir_inode() local
111 ih = de.de_ih; in reiserfs_readdir_inode()
112 store_ih(&tmp_ih, ih); in reiserfs_readdir_inode()
115 RFALSE(COMP_SHORT_KEYS(&ih->ih_key, &pos_key), in reiserfs_readdir_inode()
117 ih, &pos_key); in reiserfs_readdir_inode()
126 RFALSE(ih_entry_count(ih) < entry_num, in reiserfs_readdir_inode()
128 entry_num, ih_entry_count(ih)); in reiserfs_readdir_inode()
135 || entry_num < ih_entry_count(ih)) { in reiserfs_readdir_inode()
137 B_I_DEH(bh, ih) + entry_num; in reiserfs_readdir_inode()
139 for (; entry_num < ih_entry_count(ih); in reiserfs_readdir_inode()
[all …]
Dprints.c116 static int scnprintf_item_head(char *buf, size_t size, struct item_head *ih) in scnprintf_item_head() argument
118 if (ih) { in scnprintf_item_head()
123 (ih_version(ih) == KEY_FORMAT_3_6) ? in scnprintf_item_head()
126 p += scnprintf_le_key(p, end - p, &ih->ih_key); in scnprintf_item_head()
130 ih_item_len(ih), ih_location(ih), in scnprintf_item_head()
131 ih_free_space(ih)); in scnprintf_item_head()
481 struct item_head *ih; in print_leaf() local
491 ih = item_head(bh, 0); in print_leaf()
500 &(ih->ih_key), &((ih + nr - 1)->ih_key)); in print_leaf()
514 ih += from; in print_leaf()
[all …]
Dstree.c393 struct item_head *ih; in is_leaf() local
413 ih = (struct item_head *)(buf + BLKH_SIZE) + nr - 1; in is_leaf()
414 used_space = BLKH_SIZE + IH_SIZE * nr + (blocksize - ih_location(ih)); in is_leaf()
428 ih = (struct item_head *)(buf + BLKH_SIZE); in is_leaf()
430 for (i = 0; i < nr; i++, ih++) { in is_leaf()
431 if (le_ih_k_type(ih) == TYPE_ANY) { in is_leaf()
434 ih); in is_leaf()
437 if (ih_location(ih) >= blocksize in is_leaf()
438 || ih_location(ih) < IH_SIZE * nr) { in is_leaf()
441 ih); in is_leaf()
[all …]
/Linux-v4.19/net/ipv4/netfilter/
Dnf_log_ipv4.c43 const struct iphdr *ih; in dump_ipv4_packet() local
51 ih = skb_header_pointer(skb, iphoff, sizeof(_iph), &_iph); in dump_ipv4_packet()
52 if (ih == NULL) { in dump_ipv4_packet()
60 nf_log_buf_add(m, "SRC=%pI4 DST=%pI4 ", &ih->saddr, &ih->daddr); in dump_ipv4_packet()
64 ntohs(ih->tot_len), ih->tos & IPTOS_TOS_MASK, in dump_ipv4_packet()
65 ih->tos & IPTOS_PREC_MASK, ih->ttl, ntohs(ih->id)); in dump_ipv4_packet()
68 if (ntohs(ih->frag_off) & IP_CE) in dump_ipv4_packet()
70 if (ntohs(ih->frag_off) & IP_DF) in dump_ipv4_packet()
72 if (ntohs(ih->frag_off) & IP_MF) in dump_ipv4_packet()
76 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet()
[all …]
/Linux-v4.19/net/bridge/netfilter/
Debt_log.c98 const struct iphdr *ih; in ebt_log_packet() local
101 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in ebt_log_packet()
102 if (ih == NULL) { in ebt_log_packet()
107 &ih->saddr, &ih->daddr, ih->tos, ih->protocol); in ebt_log_packet()
108 print_ports(skb, ih->protocol, ih->ihl*4); in ebt_log_packet()
115 const struct ipv6hdr *ih; in ebt_log_packet() local
121 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in ebt_log_packet()
122 if (ih == NULL) { in ebt_log_packet()
127 &ih->saddr, &ih->daddr, ih->priority, ih->nexthdr); in ebt_log_packet()
128 nexthdr = ih->nexthdr; in ebt_log_packet()
Debt_ip.c40 const struct iphdr *ih; in ebt_ip_mt() local
45 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in ebt_ip_mt()
46 if (ih == NULL) in ebt_ip_mt()
49 NF_INVF(info, EBT_IP_TOS, info->tos != ih->tos)) in ebt_ip_mt()
53 (ih->saddr & info->smsk) != info->saddr)) in ebt_ip_mt()
57 (ih->daddr & info->dmsk) != info->daddr)) in ebt_ip_mt()
60 if (NF_INVF(info, EBT_IP_PROTO, info->protocol != ih->protocol)) in ebt_ip_mt()
65 if (ntohs(ih->frag_off) & IP_OFFSET) in ebt_ip_mt()
69 pptr = skb_header_pointer(skb, ih->ihl*4, in ebt_ip_mt()
Debt_among.c73 const struct iphdr *ih; in get_ip_dst() local
76 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in get_ip_dst()
77 if (ih == NULL) in get_ip_dst()
79 *addr = ih->daddr; in get_ip_dst()
104 const struct iphdr *ih; in get_ip_src() local
107 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in get_ip_src()
108 if (ih == NULL) in get_ip_src()
110 *addr = ih->saddr; in get_ip_src()
/Linux-v4.19/net/netfilter/
Dxt_AUDIT.c37 const struct iphdr *ih; in audit_ip4() local
39 ih = skb_header_pointer(skb, skb_network_offset(skb), sizeof(_iph), &_iph); in audit_ip4()
40 if (!ih) in audit_ip4()
44 &ih->saddr, &ih->daddr, ih->protocol); in audit_ip4()
52 const struct ipv6hdr *ih; in audit_ip6() local
56 ih = skb_header_pointer(skb, skb_network_offset(skb), sizeof(_ip6h), &_ip6h); in audit_ip6()
57 if (!ih) in audit_ip6()
60 nexthdr = ih->nexthdr; in audit_ip6()
64 &ih->saddr, &ih->daddr, nexthdr); in audit_ip6()
Dnft_log.c35 const struct iphdr *ih; in audit_ip4() local
37 ih = skb_header_pointer(skb, skb_network_offset(skb), sizeof(_iph), &_iph); in audit_ip4()
38 if (!ih) in audit_ip4()
42 &ih->saddr, &ih->daddr, ih->protocol); in audit_ip4()
50 const struct ipv6hdr *ih; in audit_ip6() local
54 ih = skb_header_pointer(skb, skb_network_offset(skb), sizeof(_ip6h), &_ip6h); in audit_ip6()
55 if (!ih) in audit_ip6()
58 nexthdr = ih->nexthdr; in audit_ip6()
62 &ih->saddr, &ih->daddr, nexthdr); in audit_ip6()
/Linux-v4.19/net/netfilter/ipvs/
Dip_vs_proto.c226 struct iphdr _iph, *ih; in ip_vs_tcpudp_debug_packet_v4() local
228 ih = skb_header_pointer(skb, offset, sizeof(_iph), &_iph); in ip_vs_tcpudp_debug_packet_v4()
229 if (ih == NULL) in ip_vs_tcpudp_debug_packet_v4()
231 else if (ih->frag_off & htons(IP_OFFSET)) in ip_vs_tcpudp_debug_packet_v4()
232 sprintf(buf, "%pI4->%pI4 frag", &ih->saddr, &ih->daddr); in ip_vs_tcpudp_debug_packet_v4()
236 pptr = skb_header_pointer(skb, offset + ih->ihl*4, in ip_vs_tcpudp_debug_packet_v4()
240 &ih->saddr, &ih->daddr); in ip_vs_tcpudp_debug_packet_v4()
243 &ih->saddr, ntohs(pptr[0]), in ip_vs_tcpudp_debug_packet_v4()
244 &ih->daddr, ntohs(pptr[1])); in ip_vs_tcpudp_debug_packet_v4()
258 struct ipv6hdr _iph, *ih; in ip_vs_tcpudp_debug_packet_v6() local
[all …]
/Linux-v4.19/include/uapi/linux/
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-v4.19/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_irq.c65 void (*ih)(void *), in init_handler_common_data()
69 hcd->handler = ih; in init_handler_common_data()
113 void *ih, in remove_irq_handler() argument
142 if (ih == handler) { in remove_irq_handler()
162 ih, int_params->irq_source, int_params->int_context); in remove_irq_handler()
169 void (*ih)(void *)) in validate_irq_registration_params()
171 if (NULL == int_params || NULL == ih) { in validate_irq_registration_params()
214 void (*ih)(void *), in amdgpu_dm_irq_register_interrupt()
222 if (false == validate_irq_registration_params(int_params, ih)) in amdgpu_dm_irq_register_interrupt()
233 init_handler_common_data(&handler_data->hcd, ih, handler_args, in amdgpu_dm_irq_register_interrupt()
[all …]
/Linux-v4.19/net/ipv6/netfilter/
Dnf_log_ipv6.c47 const struct ipv6hdr *ih; in dump_ipv6_packet() local
57 ih = skb_header_pointer(skb, ip6hoff, sizeof(_ip6h), &_ip6h); in dump_ipv6_packet()
58 if (ih == NULL) { in dump_ipv6_packet()
64 nf_log_buf_add(m, "SRC=%pI6 DST=%pI6 ", &ih->saddr, &ih->daddr); in dump_ipv6_packet()
68 ntohs(ih->payload_len) + sizeof(struct ipv6hdr), in dump_ipv6_packet()
69 (ntohl(*(__be32 *)ih) & 0x0ff00000) >> 20, in dump_ipv6_packet()
70 ih->hop_limit, in dump_ipv6_packet()
71 (ntohl(*(__be32 *)ih) & 0x000fffff)); in dump_ipv6_packet()
75 currenthdr = ih->nexthdr; in dump_ipv6_packet()

123