Home
last modified time | relevance | path

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

12345

/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ih.c51 ih->ptr_mask = ih->ring_size - 1; in amdgpu_ih_ring_init()
52 ih->rptr = 0; in amdgpu_ih_ring_init()
58 if (ih->ring) in amdgpu_ih_ring_init()
70 ih->wptr_addr = dma_addr + ih->ring_size; in amdgpu_ih_ring_init()
71 ih->wptr_cpu = &ih->ring[ih->ring_size / 4]; in amdgpu_ih_ring_init()
72 ih->rptr_addr = dma_addr + ih->ring_size + 4; in amdgpu_ih_ring_init()
73 ih->rptr_cpu = &ih->ring[(ih->ring_size / 4) + 1]; in amdgpu_ih_ring_init()
89 &ih->ring_obj, &ih->gpu_addr, in amdgpu_ih_ring_init()
128 (void *)ih->ring, ih->gpu_addr); in amdgpu_ih_ring_fini()
131 amdgpu_bo_free_kernel(&ih->ring_obj, &ih->gpu_addr, in amdgpu_ih_ring_fini()
[all …]
H A Dvega10_ih.c109 if (ih == &adev->irq.ih) in vega10_ih_toggle_ring_interrupts()
127 ih->rptr = 0; in vega10_ih_toggle_ring_interrupts()
222 if (ih == &adev->irq.ih) in vega10_ih_enable_ring()
235 if (ih == &adev->irq.ih) { in vega10_ih_enable_ring()
341 if (ih == &adev->irq.ih || ih == &adev->irq.ih_soft) { in vega10_ih_get_wptr()
370 ih->rptr = tmp; in vega10_ih_get_wptr()
404 if ((v < ih->ring_size) && (v != ih->rptr)) in vega10_ih_irq_rearm()
405 WDOORBELL32(ih->doorbell_index, ih->rptr); in vega10_ih_irq_rearm()
429 *ih->rptr_cpu = ih->rptr; in vega10_ih_set_rptr()
430 WDOORBELL32(ih->doorbell_index, ih->rptr); in vega10_ih_set_rptr()
[all …]
H A Dvega20_ih.c118 if (ih == &adev->irq.ih) in vega20_ih_toggle_ring_interrupts()
136 ih->rptr = 0; in vega20_ih_toggle_ring_interrupts()
231 if (ih == &adev->irq.ih) in vega20_ih_enable_ring()
244 if (ih == &adev->irq.ih) { in vega20_ih_enable_ring()
389 if (ih == &adev->irq.ih || ih == &adev->irq.ih_soft) { in vega20_ih_get_wptr()
418 ih->rptr = tmp; in vega20_ih_get_wptr()
453 if ((v < ih->ring_size) && (v != ih->rptr)) in vega20_ih_irq_rearm()
454 WDOORBELL32(ih->doorbell_index, ih->rptr); in vega20_ih_irq_rearm()
478 *ih->rptr_cpu = ih->rptr; in vega20_ih_set_rptr()
479 WDOORBELL32(ih->doorbell_index, ih->rptr); in vega20_ih_set_rptr()
[all …]
H A Dnavi10_ih.c165 if (ih == &adev->irq.ih) in navi10_ih_toggle_ring_interrupts()
182 ih->rptr = 0; in navi10_ih_toggle_ring_interrupts()
277 if (ih == &adev->irq.ih) in navi10_ih_enable_ring()
291 if (ih == &adev->irq.ih) { in navi10_ih_enable_ring()
412 if (ih == &adev->irq.ih || ih == &adev->irq.ih_soft) { in navi10_ih_get_wptr()
440 ih->rptr = tmp; in navi10_ih_get_wptr()
474 if ((v < ih->ring_size) && (v != ih->rptr)) in navi10_ih_irq_rearm()
475 WDOORBELL32(ih->doorbell_index, ih->rptr); in navi10_ih_irq_rearm()
499 *ih->rptr_cpu = ih->rptr; in navi10_ih_set_rptr()
500 WDOORBELL32(ih->doorbell_index, ih->rptr); in navi10_ih_set_rptr()
[all …]
H A Dih_v6_1.c139 if (ih == &adev->irq.ih) in ih_v6_1_toggle_ring_interrupts()
156 ih->rptr = 0; in ih_v6_1_toggle_ring_interrupts()
172 struct amdgpu_ih_ring *ih[] = {&adev->irq.ih, &adev->irq.ih1}; in ih_v6_1_toggle_interrupts() local
251 if (ih == &adev->irq.ih) in ih_v6_1_enable_ring()
267 if (ih == &adev->irq.ih) { in ih_v6_1_enable_ring()
416 ih->rptr = tmp; in ih_v6_1_get_wptr()
451 if ((v < ih->ring_size) && (v != ih->rptr)) in ih_v6_1_irq_rearm()
452 WDOORBELL32(ih->doorbell_index, ih->rptr); in ih_v6_1_irq_rearm()
473 *ih->rptr_cpu = ih->rptr; in ih_v6_1_set_rptr()
474 WDOORBELL32(ih->doorbell_index, ih->rptr); in ih_v6_1_set_rptr()
[all …]
H A Dih_v6_0.c167 if (ih == &adev->irq.ih) in ih_v6_0_toggle_ring_interrupts()
184 ih->rptr = 0; in ih_v6_0_toggle_ring_interrupts()
200 struct amdgpu_ih_ring *ih[] = {&adev->irq.ih, &adev->irq.ih1}; in ih_v6_0_toggle_interrupts() local
279 if (ih == &adev->irq.ih) in ih_v6_0_enable_ring()
295 if (ih == &adev->irq.ih) { in ih_v6_0_enable_ring()
444 ih->rptr = tmp; in ih_v6_0_get_wptr()
478 if ((v < ih->ring_size) && (v != ih->rptr)) in ih_v6_0_irq_rearm()
479 WDOORBELL32(ih->doorbell_index, ih->rptr); in ih_v6_0_irq_rearm()
500 *ih->rptr_cpu = ih->rptr; in ih_v6_0_set_rptr()
501 WDOORBELL32(ih->doorbell_index, ih->rptr); in ih_v6_0_set_rptr()
[all …]
H A Damdgpu_ih.h84 u32 (*get_wptr)(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih);
85 void (*decode_iv)(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih,
87 uint64_t (*decode_iv_ts)(struct amdgpu_ih_ring *ih, u32 rptr,
89 void (*set_rptr)(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih);
92 #define amdgpu_ih_get_wptr(adev, ih) (adev)->irq.ih_funcs->get_wptr((adev), (ih)) argument
94 (adev)->irq.ih_funcs->decode_iv((adev), (ih), (iv))
95 #define amdgpu_ih_decode_iv_ts(adev, ih, rptr, offset) \ argument
97 (adev)->irq.ih_funcs->decode_iv_ts((ih), (rptr), (offset)))
98 #define amdgpu_ih_set_rptr(adev, ih) (adev)->irq.ih_funcs->set_rptr((adev), (ih)) argument
106 struct amdgpu_ih_ring *ih);
[all …]
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
216 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in tonga_ih_get_wptr()
217 ih->rptr = (wptr + 16) & ih->ptr_mask; in tonga_ih_get_wptr()
263 ih->rptr += 16; in tonga_ih_decode_iv()
277 if (ih->use_doorbell) { in tonga_ih_set_rptr()
279 *ih->rptr_cpu = ih->rptr; in tonga_ih_set_rptr()
280 WDOORBELL32(ih->doorbell_index, ih->rptr); in tonga_ih_set_rptr()
[all …]
H A Dsi_ih.c44 adev->irq.ih.enabled = true; in si_ih_enable_interrupts()
58 adev->irq.ih.enabled = false; in si_ih_disable_interrupts()
59 adev->irq.ih.rptr = 0; in si_ih_disable_interrupts()
64 struct amdgpu_ih_ring *ih = &adev->irq.ih; in si_ih_irq_init() local
108 struct amdgpu_ih_ring *ih) in si_ih_get_wptr() argument
117 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in si_ih_get_wptr()
118 ih->rptr = (wptr + 16) & ih->ptr_mask; in si_ih_get_wptr()
129 return (wptr & ih->ptr_mask); in si_ih_get_wptr()
136 u32 ring_index = ih->rptr >> 2; in si_ih_decode_iv()
150 ih->rptr += 16; in si_ih_decode_iv()
[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
189 struct amdgpu_ih_ring *ih) in cik_ih_get_wptr() argument
202 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in cik_ih_get_wptr()
203 ih->rptr = (wptr + 16) & ih->ptr_mask; in cik_ih_get_wptr()
214 return (wptr & ih->ptr_mask); in cik_ih_get_wptr()
253 u32 ring_index = ih->rptr >> 2; in cik_ih_decode_iv()
269 ih->rptr += 16; in cik_ih_decode_iv()
[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
212 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in iceland_ih_get_wptr()
213 ih->rptr = (wptr + 16) & ih->ptr_mask; in iceland_ih_get_wptr()
225 return (wptr & ih->ptr_mask); in iceland_ih_get_wptr()
239 struct amdgpu_ih_ring *ih, in iceland_ih_decode_iv() argument
243 u32 ring_index = ih->rptr >> 2; in iceland_ih_decode_iv()
259 ih->rptr += 16; in iceland_ih_decode_iv()
[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
191 struct amdgpu_ih_ring *ih) in cz_ih_get_wptr() argument
213 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in cz_ih_get_wptr()
214 ih->rptr = (wptr + 16) & ih->ptr_mask; in cz_ih_get_wptr()
226 return (wptr & ih->ptr_mask); in cz_ih_get_wptr()
244 u32 ring_index = ih->rptr >> 2; in cz_ih_decode_iv()
260 ih->rptr += 16; in cz_ih_decode_iv()
[all …]
/openbmc/linux/fs/reiserfs/
H A Dlbalance.c206 ih); in leaf_copy_boundary_item()
249 RFALSE(is_indirect_le_ih(ih) && get_ih_free_space(ih), in leaf_copy_boundary_item()
251 ih); in leaf_copy_boundary_item()
258 le_ih_k_offset(ih) + op_bytes_number(ih, src->b_size), in leaf_copy_boundary_item()
298 ih) + ih_item_len(ih) - bytes_or_entries, in leaf_copy_boundary_item()
355 memmove(ih + cpy_num, ih, (nr - dest_before) * IH_SIZE); in leaf_copy_items_entirely()
948 memmove(ih + 1, ih, IH_SIZE * (nr - before)); in leaf_insert_into_buf()
1051 put_ih_item_len(ih, ih_item_len(ih) + paste_size); in leaf_paste_in_buffer()
1121 put_ih_entry_count(ih, ih_entry_count(ih) - del_count); in leaf_cut_entries()
1170 set_le_ih_k_offset(ih, deh_offset(B_I_DEH(bh, ih))); in leaf_cut_from_buffer()
[all …]
H A Ddo_balan.c118 if (is_direntry_le_ih(ih)) { in balance_leaf_when_delete_cut()
140 RFALSE(!ih_item_len(ih), in balance_leaf_when_delete_cut()
305 put_ih_item_len(ih, ih_item_len(ih) - new_item_len); in balance_leaf_insert_left()
307 RFALSE(ih_item_len(ih) <= 0, in balance_leaf_insert_left()
321 if (is_indirect_le_ih(ih)) in balance_leaf_insert_left()
649 old_len = ih_item_len(ih); in balance_leaf_insert_right()
656 if (is_indirect_le_ih(ih)) in balance_leaf_insert_right()
951 old_len = ih_item_len(ih); in balance_leaf_new_nodes_insert()
958 if (is_indirect_le_ih(ih)) in balance_leaf_new_nodes_insert()
960 set_le_ih_k_offset(ih, in balance_leaf_new_nodes_insert()
[all …]
H A Dreiserfs.h1409 #define get_ih_free_space(ih) (ih_version (ih) == KEY_FORMAT_3_6 ? 0 : ih_free_space (ih)) argument
1481 return le_key_k_offset(ih_version(ih), &(ih->ih_key)); in le_ih_k_offset()
1495 return le_key_k_type(ih_version(ih), &(ih->ih_key)); in le_ih_k_type()
1536 set_le_key_k_type(ih_version(ih), &(ih->ih_key), type); in set_le_ih_k_type()
1562 return is_direntry_le_key(ih_version(ih), &ih->ih_key); in is_direntry_le_ih()
1567 return is_direct_le_key(ih_version(ih), &ih->ih_key); in is_direct_le_ih()
1572 return is_indirect_le_key(ih_version(ih), &ih->ih_key); in is_indirect_le_ih()
1577 return is_statdata_le_key(ih_version(ih), &ih->ih_key); in is_statdata_le_ih()
2235 #define item_moved(ih,path) comp_items(ih, path) argument
2236 #define path_changed(ih,path) comp_items (ih, path) argument
[all …]
H A Ditem_ops.c36 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
116 return ih_item_len(ih); in direct_bytes_number()
140 while (j < ih_item_len(ih)) in direct_print_item()
207 return ih_item_len(ih) / UNFM_P_SIZE * block_size; in indirect_bytes_number()
269 if (ih_item_len(ih) % UNFM_P_SIZE) in indirect_print_item()
272 printk("%d pointers\n[ ", (int)I_UNFM_NUM(ih)); in indirect_print_item()
273 for (j = 0; j < I_UNFM_NUM(ih); j++) { in indirect_print_item()
385 for (i = 0; i < ih_entry_count(ih); i++, deh++) { in direntry_print_item()
[all …]
H A Dinode.c144 ih->ih_key.k_objectid = in make_le_item_head()
323 ih = tp_item_head(&path); in _get_block_create_0()
408 if ((le_ih_k_offset(ih) - 1 + ih_item_len(ih)) > inode->i_size) { in _get_block_create_0()
1232 struct item_head *ih; in init_inode() local
1248 if (stat_data_v1(ih)) { in init_inode()
1416 struct item_head *ih; in update_stat_data() local
1426 if (stat_data_v1(ih)) { in update_stat_data()
1839 &(ih->ih_key)); in reiserfs_new_directory()
1882 &(ih->ih_key)); in reiserfs_new_symlink()
1922 struct item_head ih; in reiserfs_new_inode() local
[all …]
/openbmc/linux/net/netfilter/
H A Dxt_AUDIT.c34 const struct iphdr *ih; in audit_ip4() local
36 ih = skb_header_pointer(skb, skb_network_offset(skb), sizeof(_iph), &_iph); in audit_ip4()
37 if (!ih) in audit_ip4()
41 &ih->saddr, &ih->daddr, ih->protocol); in audit_ip4()
49 const struct ipv6hdr *ih; in audit_ip6() local
53 ih = skb_header_pointer(skb, skb_network_offset(skb), sizeof(_ip6h), &_ip6h); in audit_ip6()
54 if (!ih) in audit_ip6()
57 nexthdr = ih->nexthdr; in audit_ip6()
61 &ih->saddr, &ih->daddr, nexthdr); in audit_ip6()
H A Dnf_log_syslog.c303 const struct iphdr *ih; in dump_ipv4_packet() local
313 if (!ih) { in dump_ipv4_packet()
322 nf_log_buf_add(m, "SRC=%pI4 DST=%pI4 ", &ih->saddr, &ih->daddr); in dump_ipv4_packet()
326 iph_totlen(skb, ih), ih->tos & IPTOS_TOS_MASK, in dump_ipv4_packet()
327 ih->tos & IPTOS_PREC_MASK, ih->ttl, ntohs(ih->id)); in dump_ipv4_packet()
362 switch (ih->protocol) { in dump_ipv4_packet()
538 const struct ipv6hdr *ih; in dump_ipv6_packet() local
552 if (!ih) { in dump_ipv6_packet()
558 nf_log_buf_add(m, "SRC=%pI6 DST=%pI6 ", &ih->saddr, &ih->daddr); in dump_ipv6_packet()
564 ih->hop_limit, in dump_ipv6_packet()
[all …]
/openbmc/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()
/openbmc/linux/net/netfilter/ipvs/
H A Dip_vs_proto.c221 struct iphdr _iph, *ih; in ip_vs_tcpudp_debug_packet_v4() local
224 if (ih == NULL) in ip_vs_tcpudp_debug_packet_v4()
227 sprintf(buf, "%pI4->%pI4 frag", &ih->saddr, &ih->daddr); in ip_vs_tcpudp_debug_packet_v4()
235 &ih->saddr, &ih->daddr); in ip_vs_tcpudp_debug_packet_v4()
238 &ih->saddr, ntohs(pptr[0]), in ip_vs_tcpudp_debug_packet_v4()
239 &ih->daddr, ntohs(pptr[1])); in ip_vs_tcpudp_debug_packet_v4()
253 struct ipv6hdr _iph, *ih; in ip_vs_tcpudp_debug_packet_v6() local
256 if (ih == NULL) in ip_vs_tcpudp_debug_packet_v6()
259 sprintf(buf, "%pI6c->%pI6c frag", &ih->saddr, &ih->daddr); in ip_vs_tcpudp_debug_packet_v6()
267 &ih->saddr, &ih->daddr); in ip_vs_tcpudp_debug_packet_v6()
[all …]
/openbmc/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 …]
/openbmc/u-boot/arch/arm/lib/
H A Dimage.c32 struct Image_header *ih; in booti_setup() local
38 ih = (struct Image_header *)map_sysmem(image, 0); in booti_setup()
40 if (ih->magic != le32_to_cpu(LINUX_ARM64_IMAGE_MAGIC)) { in booti_setup()
50 if (ih->image_size == 0) { in booti_setup()
55 image_size = le64_to_cpu(ih->image_size); in booti_setup()
56 text_offset = le64_to_cpu(ih->text_offset); in booti_setup()
67 if (!force_reloc && (le64_to_cpu(ih->flags) & BIT(3))) in booti_setup()
74 unmap_sysmem(ih); in booti_setup()
/openbmc/u-boot/common/spl/
H A Dspl_ymodem.c79 struct image_header *ih; in spl_ymodem_load_image() local
112 ih = (struct image_header *)buf; in spl_ymodem_load_image()
113 ret = spl_parse_image_header(spl_image, ih); in spl_ymodem_load_image()
117 if (ih->ih_comp == IH_COMP_GZIP) in spl_ymodem_load_image()
123 ih = (struct image_header *)addr; in spl_ymodem_load_image()
134 if (ih->ih_comp == IH_COMP_GZIP) { in spl_ymodem_load_image()
135 if (gunzip((void *)(spl_image->load_addr + sizeof(*ih)), in spl_ymodem_load_image()
137 (void *)(CONFIG_SYS_LOAD_ADDR + sizeof(*ih)), in spl_ymodem_load_image()

12345