/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ih.c | 41 int amdgpu_ih_ring_init(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih, in amdgpu_ih_ring_init() argument 50 ih->ring_size = ring_size; in amdgpu_ih_ring_init() 51 ih->ptr_mask = ih->ring_size - 1; in amdgpu_ih_ring_init() 52 ih->rptr = 0; in amdgpu_ih_ring_init() 53 ih->use_bus_addr = use_bus_addr; in amdgpu_ih_ring_init() 58 if (ih->ring) in amdgpu_ih_ring_init() 64 ih->ring = dma_alloc_coherent(adev->dev, ih->ring_size + 8, in amdgpu_ih_ring_init() 66 if (ih->ring == NULL) in amdgpu_ih_ring_init() 69 memset((void *)ih->ring, 0, ih->ring_size + 8); in amdgpu_ih_ring_init() 70 ih->gpu_addr = dma_addr; in amdgpu_ih_ring_init() [all …]
|
D | vega10_ih.c | 61 adev->irq.ih.enabled = true; in vega10_ih_enable_interrupts() 121 adev->irq.ih.enabled = false; in vega10_ih_disable_interrupts() 122 adev->irq.ih.rptr = 0; in vega10_ih_disable_interrupts() 166 static uint32_t vega10_ih_rb_cntl(struct amdgpu_ih_ring *ih, uint32_t ih_rb_cntl) in vega10_ih_rb_cntl() argument 168 int rb_bufsz = order_base_2(ih->ring_size / 4); in vega10_ih_rb_cntl() 171 MC_SPACE, ih->use_bus_addr ? 1 : 4); in vega10_ih_rb_cntl() 189 static uint32_t vega10_ih_doorbell_rptr(struct amdgpu_ih_ring *ih) in vega10_ih_doorbell_rptr() argument 193 if (ih->use_doorbell) { in vega10_ih_doorbell_rptr() 196 ih->doorbell_index); in vega10_ih_doorbell_rptr() 221 struct amdgpu_ih_ring *ih; in vega10_ih_irq_init() local [all …]
|
D | navi10_ih.c | 52 adev->irq.ih.enabled = true; in navi10_ih_enable_interrupts() 72 adev->irq.ih.enabled = false; in navi10_ih_disable_interrupts() 73 adev->irq.ih.rptr = 0; in navi10_ih_disable_interrupts() 76 static uint32_t navi10_ih_rb_cntl(struct amdgpu_ih_ring *ih, uint32_t ih_rb_cntl) in navi10_ih_rb_cntl() argument 78 int rb_bufsz = order_base_2(ih->ring_size / 4); in navi10_ih_rb_cntl() 81 MC_SPACE, ih->use_bus_addr ? 1 : 4); in navi10_ih_rb_cntl() 112 struct amdgpu_ih_ring *ih = &adev->irq.ih; in navi10_ih_irq_init() local 123 WREG32_SOC15(OSSSYS, 0, mmIH_RB_BASE, ih->gpu_addr >> 8); in navi10_ih_irq_init() 124 WREG32_SOC15(OSSSYS, 0, mmIH_RB_BASE_HI, (ih->gpu_addr >> 40) & 0xff); in navi10_ih_irq_init() 127 ih_rb_cntl = navi10_ih_rb_cntl(ih, ih_rb_cntl); in navi10_ih_irq_init() [all …]
|
D | tonga_ih.c | 67 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 …]
|
D | si_ih.c | 42 adev->irq.ih.enabled = true; in si_ih_enable_interrupts() 56 adev->irq.ih.enabled = false; in si_ih_disable_interrupts() 57 adev->irq.ih.rptr = 0; in si_ih_disable_interrupts() 62 struct amdgpu_ih_ring *ih = &adev->irq.ih; in si_ih_irq_init() local 67 WREG32(INTERRUPT_CNTL2, adev->irq.ih.gpu_addr >> 8); in si_ih_irq_init() 73 WREG32(IH_RB_BASE, adev->irq.ih.gpu_addr >> 8); in si_ih_irq_init() 74 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in si_ih_irq_init() 81 WREG32(IH_RB_WPTR_ADDR_LO, lower_32_bits(ih->wptr_addr)); in si_ih_irq_init() 82 WREG32(IH_RB_WPTR_ADDR_HI, upper_32_bits(ih->wptr_addr) & 0xFF); in si_ih_irq_init() 105 struct amdgpu_ih_ring *ih) in si_ih_get_wptr() argument [all …]
|
D | cik_ih.c | 69 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() 188 struct amdgpu_ih_ring *ih) in cik_ih_get_wptr() argument 192 wptr = le32_to_cpu(*ih->wptr_cpu); in cik_ih_get_wptr() [all …]
|
D | iceland_ih.c | 69 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() 190 struct amdgpu_ih_ring *ih) in iceland_ih_get_wptr() argument 194 wptr = le32_to_cpu(*ih->wptr_cpu); in iceland_ih_get_wptr() [all …]
|
D | cz_ih.c | 69 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() 190 struct amdgpu_ih_ring *ih) in cz_ih_get_wptr() argument 194 wptr = le32_to_cpu(*ih->wptr_cpu); in cz_ih_get_wptr() [all …]
|
D | amdgpu_ih.h | 61 u32 (*get_wptr)(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih); 62 void (*decode_iv)(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih, 64 void (*set_rptr)(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih); 67 #define amdgpu_ih_get_wptr(adev, ih) (adev)->irq.ih_funcs->get_wptr((adev), (ih)) argument 69 (adev)->irq.ih_funcs->decode_iv((adev), (ih), (iv)) 70 #define amdgpu_ih_set_rptr(adev, ih) (adev)->irq.ih_funcs->set_rptr((adev), (ih)) argument 72 int amdgpu_ih_ring_init(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih, 74 void amdgpu_ih_ring_fini(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih); 75 int amdgpu_ih_process(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih);
|
/Linux-v5.4/fs/reiserfs/ |
D | lbalance.c | 26 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 …]
|
D | do_balan.c | 83 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() 287 struct item_head *const ih, in balance_leaf_insert_left() argument 302 new_item_len = ih_item_len(ih) - tb->lbytes; in balance_leaf_insert_left() 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() [all …]
|
D | reiserfs.h | 1396 #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 …]
|
D | item_ops.c | 19 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 …]
|
D | inode.c | 137 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 …]
|
D | dir.c | 70 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 …]
|
D | prints.c | 116 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 …]
|
D | stree.c | 393 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-v5.4/net/ipv4/netfilter/ |
D | nf_log_ipv4.c | 40 const struct iphdr *ih; in dump_ipv4_packet() local 48 ih = skb_header_pointer(skb, iphoff, sizeof(_iph), &_iph); in dump_ipv4_packet() 49 if (ih == NULL) { in dump_ipv4_packet() 57 nf_log_buf_add(m, "SRC=%pI4 DST=%pI4 ", &ih->saddr, &ih->daddr); in dump_ipv4_packet() 61 ntohs(ih->tot_len), ih->tos & IPTOS_TOS_MASK, in dump_ipv4_packet() 62 ih->tos & IPTOS_PREC_MASK, ih->ttl, ntohs(ih->id)); in dump_ipv4_packet() 65 if (ntohs(ih->frag_off) & IP_CE) in dump_ipv4_packet() 67 if (ntohs(ih->frag_off) & IP_DF) in dump_ipv4_packet() 69 if (ntohs(ih->frag_off) & IP_MF) in dump_ipv4_packet() 73 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() [all …]
|
/Linux-v5.4/net/bridge/netfilter/ |
D | ebt_log.c | 99 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()
|
D | ebt_ip.c | 41 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()
|
/Linux-v5.4/net/netfilter/ |
D | xt_AUDIT.c | 34 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()
|
D | nft_log.c | 32 const struct iphdr *ih; in audit_ip4() local 34 ih = skb_header_pointer(skb, skb_network_offset(skb), sizeof(_iph), &_iph); in audit_ip4() 35 if (!ih) in audit_ip4() 39 &ih->saddr, &ih->daddr, ih->protocol); in audit_ip4() 47 const struct ipv6hdr *ih; in audit_ip6() local 51 ih = skb_header_pointer(skb, skb_network_offset(skb), sizeof(_ip6h), &_ip6h); in audit_ip6() 52 if (!ih) in audit_ip6() 55 nexthdr = ih->nexthdr; in audit_ip6() 59 &ih->saddr, &ih->daddr, nexthdr); in audit_ip6()
|
/Linux-v5.4/net/netfilter/ipvs/ |
D | ip_vs_proto.c | 221 struct iphdr _iph, *ih; in ip_vs_tcpudp_debug_packet_v4() local 223 ih = skb_header_pointer(skb, offset, sizeof(_iph), &_iph); in ip_vs_tcpudp_debug_packet_v4() 224 if (ih == NULL) in ip_vs_tcpudp_debug_packet_v4() 226 else if (ih->frag_off & htons(IP_OFFSET)) in ip_vs_tcpudp_debug_packet_v4() 227 sprintf(buf, "%pI4->%pI4 frag", &ih->saddr, &ih->daddr); in ip_vs_tcpudp_debug_packet_v4() 231 pptr = skb_header_pointer(skb, offset + ih->ihl*4, 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 [all …]
|
/Linux-v5.4/include/uapi/linux/ |
D | coda.h | 322 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-v5.4/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_irq.c | 98 void (*ih)(void *), in init_handler_common_data() 102 hcd->handler = ih; in init_handler_common_data() 144 void *ih, in remove_irq_handler() argument 173 if (ih == handler) { in remove_irq_handler() 193 ih, int_params->irq_source, int_params->int_context); in remove_irq_handler() 200 void (*ih)(void *)) in validate_irq_registration_params() 202 if (NULL == int_params || NULL == ih) { in validate_irq_registration_params() 263 void (*ih)(void *), in amdgpu_dm_irq_register_interrupt() 271 if (false == validate_irq_registration_params(int_params, ih)) in amdgpu_dm_irq_register_interrupt() 280 init_handler_common_data(handler_data, ih, handler_args, &adev->dm); in amdgpu_dm_irq_register_interrupt() [all …]
|