/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ih.c | 42 if (adev->irq.ih.ring_obj == NULL) { in amdgpu_ih_ring_alloc() 43 r = amdgpu_bo_create(adev, adev->irq.ih.ring_size, in amdgpu_ih_ring_alloc() 46 NULL, NULL, &adev->irq.ih.ring_obj); in amdgpu_ih_ring_alloc() 51 r = amdgpu_bo_reserve(adev->irq.ih.ring_obj, false); in amdgpu_ih_ring_alloc() 54 r = amdgpu_bo_pin(adev->irq.ih.ring_obj, in amdgpu_ih_ring_alloc() 56 &adev->irq.ih.gpu_addr); in amdgpu_ih_ring_alloc() 58 amdgpu_bo_unreserve(adev->irq.ih.ring_obj); in amdgpu_ih_ring_alloc() 62 r = amdgpu_bo_kmap(adev->irq.ih.ring_obj, in amdgpu_ih_ring_alloc() 63 (void **)&adev->irq.ih.ring); in amdgpu_ih_ring_alloc() 64 amdgpu_bo_unreserve(adev->irq.ih.ring_obj); in amdgpu_ih_ring_alloc() [all …]
|
D | tonga_ih.c | 65 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() 122 if (adev->irq.ih.use_bus_addr) in tonga_ih_irq_init() 123 WREG32(mmIH_RB_BASE, adev->irq.ih.rb_dma_addr >> 8); in tonga_ih_irq_init() 125 WREG32(mmIH_RB_BASE, adev->irq.ih.gpu_addr >> 8); in tonga_ih_irq_init() 127 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in tonga_ih_irq_init() 140 if (adev->irq.ih.use_bus_addr) in tonga_ih_irq_init() 141 wptr_off = adev->irq.ih.rb_dma_addr + (adev->irq.ih.wptr_offs * 4); in tonga_ih_irq_init() 143 wptr_off = adev->wb.gpu_addr + (adev->irq.ih.wptr_offs * 4); in tonga_ih_irq_init() [all …]
|
D | cik_ih.c | 67 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() 125 WREG32(mmIH_RB_BASE, adev->irq.ih.gpu_addr >> 8); in cik_ih_irq_init() 126 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in cik_ih_irq_init() 135 wptr_off = adev->wb.gpu_addr + (adev->irq.ih.wptr_offs * 4); in cik_ih_irq_init() 191 wptr = le32_to_cpu(adev->wb.wb[adev->irq.ih.wptr_offs]); in cik_ih_get_wptr() 200 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in cik_ih_get_wptr() 201 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in cik_ih_get_wptr() 206 return (wptr & adev->irq.ih.ptr_mask); in cik_ih_get_wptr() [all …]
|
D | cz_ih.c | 67 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() 126 WREG32(mmIH_RB_BASE, adev->irq.ih.gpu_addr >> 8); in cz_ih_irq_init() 128 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in cz_ih_irq_init() 137 wptr_off = adev->wb.gpu_addr + (adev->irq.ih.wptr_offs * 4); in cz_ih_irq_init() 193 wptr = le32_to_cpu(adev->wb.wb[adev->irq.ih.wptr_offs]); in cz_ih_get_wptr() 202 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in cz_ih_get_wptr() 203 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in cz_ih_get_wptr() 208 return (wptr & adev->irq.ih.ptr_mask); in cz_ih_get_wptr() [all …]
|
D | iceland_ih.c | 67 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() 126 WREG32(mmIH_RB_BASE, adev->irq.ih.gpu_addr >> 8); in iceland_ih_irq_init() 128 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); in iceland_ih_irq_init() 137 wptr_off = adev->wb.gpu_addr + (adev->irq.ih.wptr_offs * 4); in iceland_ih_irq_init() 193 wptr = le32_to_cpu(adev->wb.wb[adev->irq.ih.wptr_offs]); in iceland_ih_get_wptr() 202 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in iceland_ih_get_wptr() 203 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in iceland_ih_get_wptr() 208 return (wptr & adev->irq.ih.ptr_mask); in iceland_ih_get_wptr() [all …]
|
D | amdgpu_irq.h | 66 struct amdgpu_ih_ring ih; member
|
D | amdgpu_test.c | 51 if (adev->irq.ih.ring_obj) in amdgpu_do_test_moves() 52 n -= adev->irq.ih.ring_size; in amdgpu_do_test_moves()
|
D | amdgpu_device.c | 1417 atomic_set(&adev->irq.ih.lock, 0); in amdgpu_device_init()
|
/linux-4.4.14/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() 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 …]
|
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 44 static void sd_print_item(struct item_head *ih, char *item) in sd_print_item() argument 47 if (stat_data_v1(ih)) { in sd_print_item() 63 static void sd_check_item(struct item_head *ih, char *item) in sd_check_item() argument 122 static int direct_bytes_number(struct item_head *ih, int block_size) in direct_bytes_number() argument 124 return ih_item_len(ih); in direct_bytes_number() 142 static void direct_print_item(struct item_head *ih, char *item) in direct_print_item() argument 148 while (j < ih_item_len(ih)) in direct_print_item() 153 static void direct_check_item(struct item_head *ih, char *item) in direct_check_item() argument 213 static int indirect_bytes_number(struct item_head *ih, int block_size) in indirect_bytes_number() argument [all …]
|
D | inode.c | 136 inline void make_le_item_head(struct item_head *ih, const struct cpu_key *key, in make_le_item_head() argument 142 ih->ih_key.k_dir_id = cpu_to_le32(key->on_disk_key.k_dir_id); in make_le_item_head() 143 ih->ih_key.k_objectid = in make_le_item_head() 146 put_ih_version(ih, version); in make_le_item_head() 147 set_le_ih_k_offset(ih, offset); in make_le_item_head() 148 set_le_ih_k_type(ih, type); in make_le_item_head() 149 put_ih_item_len(ih, length); in make_le_item_head() 155 put_ih_entry_count(ih, entry_count); in make_le_item_head() 214 struct item_head *ih, in allocation_needed() argument 219 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 | 112 static void sprintf_item_head(char *buf, struct item_head *ih) in sprintf_item_head() argument 114 if (ih) { in sprintf_item_head() 116 (ih_version(ih) == KEY_FORMAT_3_6) ? "*3.6* " : "*3.5*"); in sprintf_item_head() 117 sprintf_le_key(buf + strlen(buf), &(ih->ih_key)); in sprintf_item_head() 120 ih_item_len(ih), ih_location(ih), ih_free_space(ih)); in sprintf_item_head() 462 struct item_head *ih; in print_leaf() local 472 ih = item_head(bh, 0); in print_leaf() 481 &(ih->ih_key), &((ih + nr - 1)->ih_key)); in print_leaf() 495 ih += from; in print_leaf() 500 for (i = from; i < to; i++, ih++) { in print_leaf() [all …]
|
D | stree.c | 392 struct item_head *ih; in is_leaf() local 412 ih = (struct item_head *)(buf + BLKH_SIZE) + nr - 1; in is_leaf() 413 used_space = BLKH_SIZE + IH_SIZE * nr + (blocksize - ih_location(ih)); in is_leaf() 427 ih = (struct item_head *)(buf + BLKH_SIZE); in is_leaf() 429 for (i = 0; i < nr; i++, ih++) { in is_leaf() 430 if (le_ih_k_type(ih) == TYPE_ANY) { in is_leaf() 433 ih); in is_leaf() 436 if (ih_location(ih) >= blocksize in is_leaf() 437 || ih_location(ih) < IH_SIZE * nr) { in is_leaf() 440 ih); in is_leaf() [all …]
|
D | fix_node.c | 53 struct item_head *ih; in create_virtual_node() local 81 ih = item_head(Sh, 0); in create_virtual_node() 84 if (op_is_left_mergeable(&ih->ih_key, Sh->b_size) in create_virtual_node() 105 vi->vi_item_len += ih_item_len(ih + j) + IH_SIZE; in create_virtual_node() 106 vi->vi_ih = ih + j; in create_virtual_node() 107 vi->vi_item = ih_item_body(Sh, ih + j); in create_virtual_node() 716 struct item_head *ih; in are_leaves_removable() local 722 ih = item_head(S0, 0); in are_leaves_removable() 724 && !comp_short_le_keys(&ih->ih_key, in are_leaves_removable() 737 if (is_direntry_le_ih(ih)) { in are_leaves_removable() [all …]
|
D | super.c | 200 struct item_head *ih; in finish_unfinished() local 268 ih = item_head(bh, item_pos); in finish_unfinished() 270 if (le32_to_cpu(ih->ih_key.k_dir_id) != MAX_KEY_OBJECTID) in finish_unfinished() 274 save_link_key = ih->ih_key; in finish_unfinished() 275 if (is_indirect_le_ih(ih)) in finish_unfinished() 281 item = ih_item_body(bh, ih); in finish_unfinished() 284 le32_to_cpu(ih->ih_key.k_objectid); in finish_unfinished() 402 struct item_head ih; in add_save_link() local 427 make_le_item_head(&ih, &key, key.version, in add_save_link() 441 make_le_item_head(&ih, &key, key.version, 1, TYPE_INDIRECT, in add_save_link() [all …]
|
D | ibalance.c | 134 struct reiserfs_key *ih; in internal_insert_childs() local 164 ih = internal_key(cur, ((to == -1) ? 0 : to)); in internal_insert_childs() 166 memmove(ih + count, ih, in internal_insert_childs() 170 memcpy(ih, inserted, KEY_SIZE); in internal_insert_childs() 172 memcpy(ih + 1, inserted + 1, KEY_SIZE); in internal_insert_childs()
|
D | bitmap.c | 850 struct item_head *ih; in get_left_neighbor() local 865 ih = tp_item_head(path); in get_left_neighbor() 875 if (!hint->formatted_node && is_indirect_le_ih(ih)) { in get_left_neighbor() 876 if (pos_in_item == I_UNFM_NUM(ih)) in get_left_neighbor()
|
D | namei.c | 31 struct item_head *ih = de->de_ih; in bin_search_in_dir_item() local 36 rbound = ih_entry_count(ih) - 1; in bin_search_in_dir_item()
|
/linux-4.4.14/net/ipv4/netfilter/ |
D | nf_log_ipv4.c | 43 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-4.4.14/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_nic.h | 137 struct octeon_instr_ih *ih; in octnet_prepare_pci_cmd() local 143 ih = (struct octeon_instr_ih *)&cmd->ih; in octnet_prepare_pci_cmd() 148 ih->fsz = 24; in octnet_prepare_pci_cmd() 150 ih->tagtype = ORDERED_TAG; in octnet_prepare_pci_cmd() 151 ih->grp = DEFAULT_POW_GRP; in octnet_prepare_pci_cmd() 154 ih->tag = tag; in octnet_prepare_pci_cmd() 156 ih->tag = LIO_DATA(setup->s.ifidx); in octnet_prepare_pci_cmd() 158 ih->raw = 1; in octnet_prepare_pci_cmd() 159 ih->qos = (setup->s.ifidx & 3) + 4; /* map qos based on interface */ in octnet_prepare_pci_cmd() 162 ih->dlengsz = setup->s.u.datasize; in octnet_prepare_pci_cmd() [all …]
|
D | request_manager.c | 560 struct octeon_instr_ih *ih; in octeon_prepare_soft_command() local 569 ih = (struct octeon_instr_ih *)&sc->cmd.ih; in octeon_prepare_soft_command() 570 ih->tagtype = ATOMIC_TAG; in octeon_prepare_soft_command() 571 ih->tag = LIO_CONTROL; in octeon_prepare_soft_command() 572 ih->raw = 1; in octeon_prepare_soft_command() 573 ih->grp = CFG_GET_CTRL_Q_GRP(oct_cfg); in octeon_prepare_soft_command() 576 ih->dlengsz = sc->datasize; in octeon_prepare_soft_command() 577 ih->rs = 1; in octeon_prepare_soft_command() 596 ih->fsz = 40; /* irh+ossp[0]+ossp[1]+rdp+rptr = 40 bytes */ in octeon_prepare_soft_command() 600 ih->fsz = 24; /* irh + ossp[0] + ossp[1] = 24 bytes */ in octeon_prepare_soft_command() [all …]
|
D | octeon_nic.c | 51 struct octeon_instr_ih *ih; in octeon_alloc_soft_command_resp() local 67 ih = (struct octeon_instr_ih *)&sc->cmd.ih; in octeon_alloc_soft_command_resp() 68 ih->fsz = 40; /* irh + ossp[0] + ossp[1] + rdp + rptr = 40 bytes */ in octeon_alloc_soft_command_resp()
|
D | octeon_iq.h | 162 u64 ih; member 184 u64 ih; member
|
D | lio_main.c | 2556 struct octeon_instr_ih *ih; in send_nic_timestamp_pkt() local 2581 ih = (struct octeon_instr_ih *)&sc->cmd.ih; in send_nic_timestamp_pkt() 2586 sc, ih->dlengsz, ndata->reqtype); in send_nic_timestamp_pkt()
|
/linux-4.4.14/net/netfilter/ |
D | xt_AUDIT.c | 77 const struct iphdr *ih; in audit_ip4() local 79 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in audit_ip4() 80 if (!ih) { in audit_ip4() 86 &ih->saddr, &ih->daddr, ntohs(ih->id), ih->protocol); in audit_ip4() 88 if (ntohs(ih->frag_off) & IP_OFFSET) { in audit_ip4() 93 audit_proto(ab, skb, ih->protocol, ih->ihl * 4); in audit_ip4() 99 const struct ipv6hdr *ih; in audit_ip6() local 104 ih = skb_header_pointer(skb, skb_network_offset(skb), sizeof(_ip6h), &_ip6h); in audit_ip6() 105 if (!ih) { in audit_ip6() 110 nexthdr = ih->nexthdr; in audit_ip6() [all …]
|
D | nf_conntrack_proto_sctp.c | 409 sctp_inithdr_t _inithdr, *ih; in sctp_packet() local 411 ih = skb_header_pointer(skb, offset + sizeof(sctp_chunkhdr_t), in sctp_packet() 413 if (ih == NULL) in sctp_packet() 416 ih->init_tag, !dir); in sctp_packet() 417 ct->proto.sctp.vtag[!dir] = ih->init_tag; in sctp_packet() 486 sctp_inithdr_t _inithdr, *ih; in sctp_new() local 488 ih = skb_header_pointer(skb, offset + sizeof(sctp_chunkhdr_t), in sctp_new() 490 if (ih == NULL) in sctp_new() 494 ih->init_tag); in sctp_new() 497 ih->init_tag; in sctp_new()
|
/linux-4.4.14/net/bridge/netfilter/ |
D | ebt_log.c | 100 const struct iphdr *ih; in ebt_log_packet() local 103 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in ebt_log_packet() 104 if (ih == NULL) { in ebt_log_packet() 109 &ih->saddr, &ih->daddr, ih->tos, ih->protocol); in ebt_log_packet() 110 print_ports(skb, ih->protocol, ih->ihl*4); in ebt_log_packet() 117 const struct ipv6hdr *ih; in ebt_log_packet() local 123 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in ebt_log_packet() 124 if (ih == NULL) { in ebt_log_packet() 129 &ih->saddr, &ih->daddr, ih->priority, ih->nexthdr); in ebt_log_packet() 130 nexthdr = ih->nexthdr; in ebt_log_packet()
|
D | ebt_ip.c | 31 const struct iphdr *ih; in ebt_ip_mt() local 36 ih = skb_header_pointer(skb, 0, sizeof(_iph), &_iph); in ebt_ip_mt() 37 if (ih == NULL) in ebt_ip_mt() 40 FWINV(info->tos != ih->tos, EBT_IP_TOS)) in ebt_ip_mt() 43 FWINV((ih->saddr & info->smsk) != in ebt_ip_mt() 47 FWINV((ih->daddr & info->dmsk) != in ebt_ip_mt() 51 if (FWINV(info->protocol != ih->protocol, EBT_IP_PROTO)) in ebt_ip_mt() 56 if (ntohs(ih->frag_off) & IP_OFFSET) in ebt_ip_mt() 58 pptr = skb_header_pointer(skb, ih->ihl*4, in ebt_ip_mt()
|
D | ebt_among.c | 73 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-4.4.14/net/netfilter/ipvs/ |
D | ip_vs_proto.c | 235 struct iphdr _iph, *ih; in ip_vs_tcpudp_debug_packet_v4() local 237 ih = skb_header_pointer(skb, offset, sizeof(_iph), &_iph); in ip_vs_tcpudp_debug_packet_v4() 238 if (ih == NULL) in ip_vs_tcpudp_debug_packet_v4() 240 else if (ih->frag_off & htons(IP_OFFSET)) in ip_vs_tcpudp_debug_packet_v4() 241 sprintf(buf, "%pI4->%pI4 frag", &ih->saddr, &ih->daddr); in ip_vs_tcpudp_debug_packet_v4() 245 pptr = skb_header_pointer(skb, offset + ih->ihl*4, in ip_vs_tcpudp_debug_packet_v4() 249 &ih->saddr, &ih->daddr); in ip_vs_tcpudp_debug_packet_v4() 252 &ih->saddr, ntohs(pptr[0]), in ip_vs_tcpudp_debug_packet_v4() 253 &ih->daddr, ntohs(pptr[1])); in ip_vs_tcpudp_debug_packet_v4() 267 struct ipv6hdr _iph, *ih; in ip_vs_tcpudp_debug_packet_v6() local [all …]
|
/linux-4.4.14/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-4.4.14/net/ipv6/netfilter/ |
D | nf_log_ipv6.c | 47 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()
|
/linux-4.4.14/security/ |
D | lsm_audit.c | 46 struct iphdr *ih; in ipv4_skb_to_auditdata() local 48 ih = ip_hdr(skb); in ipv4_skb_to_auditdata() 49 if (ih == NULL) in ipv4_skb_to_auditdata() 52 ad->u.net->v4info.saddr = ih->saddr; in ipv4_skb_to_auditdata() 53 ad->u.net->v4info.daddr = ih->daddr; in ipv4_skb_to_auditdata() 56 *proto = ih->protocol; in ipv4_skb_to_auditdata() 58 if (ntohs(ih->frag_off) & IP_OFFSET) in ipv4_skb_to_auditdata() 61 switch (ih->protocol) { in ipv4_skb_to_auditdata()
|
/linux-4.4.14/fs/coda/ |
D | upcall.c | 52 inp->ih.opcode = opcode; in alloc_upcall() 53 inp->ih.pid = task_pid_nr_ns(current, &init_pid_ns); in alloc_upcall() 54 inp->ih.pgid = task_pgrp_nr_ns(current, &init_pid_ns); in alloc_upcall() 55 inp->ih.uid = from_kuid(&init_user_ns, current_fsuid()); in alloc_upcall() 169 inp->ih.uid = from_kuid(&init_user_ns, uid); in venus_close() 694 req->uc_opcode = ((union inputArgs *)buffer)->ih.opcode; in coda_upcall() 699 ((union inputArgs *)buffer)->ih.unique = req->uc_unique; in coda_upcall() 754 sig_inputArgs->ih.opcode = CODA_SIGNAL; in coda_upcall() 755 sig_inputArgs->ih.unique = req->uc_unique; in coda_upcall() 758 sig_req->uc_opcode = sig_inputArgs->ih.opcode; in coda_upcall() [all …]
|
/linux-4.4.14/drivers/net/ethernet/sgi/ |
D | ioc3-eth.c | 512 struct iphdr *ih; in ioc3_tcpudp_checksum() local 533 ih = (struct iphdr *) ((char *)eh + ETH_HLEN); in ioc3_tcpudp_checksum() 534 if (ip_is_fragment(ih)) in ioc3_tcpudp_checksum() 537 proto = ih->protocol; in ioc3_tcpudp_checksum() 543 (ih->tot_len - (ih->ihl << 2)) + in ioc3_tcpudp_checksum() 544 htons((uint16_t)ih->protocol) + in ioc3_tcpudp_checksum() 545 (ih->saddr >> 16) + (ih->saddr & 0xffff) + in ioc3_tcpudp_checksum() 546 (ih->daddr >> 16) + (ih->daddr & 0xffff); in ioc3_tcpudp_checksum() 1419 const struct iphdr *ih = ip_hdr(skb); in ioc3_start_xmit() local 1420 const int proto = ntohs(ih->protocol); in ioc3_start_xmit() [all …]
|
/linux-4.4.14/net/bridge/ |
D | br_multicast.c | 367 struct igmphdr *ih; in br_ip4_multicast_alloc_query() local 372 sizeof(*ih) + 4); in br_ip4_multicast_alloc_query() 397 iph->tot_len = htons(sizeof(*iph) + sizeof(*ih) + 4); in br_ip4_multicast_alloc_query() 413 ih = igmp_hdr(skb); in br_ip4_multicast_alloc_query() 414 ih->type = IGMP_HOST_MEMBERSHIP_QUERY; in br_ip4_multicast_alloc_query() 415 ih->code = (group ? br->multicast_last_member_interval : in br_ip4_multicast_alloc_query() 418 ih->group = group; in br_ip4_multicast_alloc_query() 419 ih->csum = 0; in br_ip4_multicast_alloc_query() 420 ih->csum = ip_compute_csum((void *)ih, sizeof(struct igmphdr)); in br_ip4_multicast_alloc_query() 421 skb_put(skb, sizeof(*ih)); in br_ip4_multicast_alloc_query() [all …]
|
/linux-4.4.14/drivers/cpufreq/ |
D | pmac64-cpufreq.c | 485 u64 max_freq, min_freq, ih, il; in g5_pm72_cpufreq_init() local 581 ih = *((u32 *)(eeprom + 0x10)); in g5_pm72_cpufreq_init() 585 if (il == ih) { in g5_pm72_cpufreq_init() 593 if (ih != 0 && il != 0) in g5_pm72_cpufreq_init() 594 min_freq = (max_freq * il) / ih; in g5_pm72_cpufreq_init()
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
D | r600.c | 3275 rdev->ih.ring_obj = NULL; in r600_init() 3427 rdev->ih.ring_size = ring_size; in r600_ih_ring_init() 3428 rdev->ih.ptr_mask = rdev->ih.ring_size - 1; in r600_ih_ring_init() 3429 rdev->ih.rptr = 0; in r600_ih_ring_init() 3437 if (rdev->ih.ring_obj == NULL) { in r600_ih_ring_alloc() 3438 r = radeon_bo_create(rdev, rdev->ih.ring_size, in r600_ih_ring_alloc() 3441 NULL, NULL, &rdev->ih.ring_obj); in r600_ih_ring_alloc() 3446 r = radeon_bo_reserve(rdev->ih.ring_obj, false); in r600_ih_ring_alloc() 3449 r = radeon_bo_pin(rdev->ih.ring_obj, in r600_ih_ring_alloc() 3451 &rdev->ih.gpu_addr); in r600_ih_ring_alloc() [all …]
|
D | si.c | 5916 rdev->ih.enabled = true; in si_enable_interrupts() 5931 rdev->ih.enabled = false; in si_disable_interrupts() 5932 rdev->ih.rptr = 0; in si_disable_interrupts() 6017 WREG32(INTERRUPT_CNTL2, rdev->ih.gpu_addr >> 8); in si_irq_init() 6027 WREG32(IH_RB_BASE, rdev->ih.gpu_addr >> 8); in si_irq_init() 6028 rb_bufsz = order_base_2(rdev->ih.ring_size / 4); in si_irq_init() 6080 if (!rdev->ih.enabled) { in si_irq_set() 6412 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask); in si_get_ih_wptr() 6413 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask; in si_get_ih_wptr() 6418 return (wptr & rdev->ih.ptr_mask); in si_get_ih_wptr() [all …]
|
D | cik.c | 7266 rdev->ih.enabled = true; in cik_enable_interrupts() 7288 rdev->ih.enabled = false; in cik_disable_interrupts() 7289 rdev->ih.rptr = 0; in cik_disable_interrupts() 7403 WREG32(INTERRUPT_CNTL2, rdev->ih.gpu_addr >> 8); in cik_irq_init() 7413 WREG32(IH_RB_BASE, rdev->ih.gpu_addr >> 8); in cik_irq_init() 7414 rb_bufsz = order_base_2(rdev->ih.ring_size / 4); in cik_irq_init() 7474 if (!rdev->ih.enabled) { in cik_irq_set() 7873 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask); in cik_get_ih_wptr() 7874 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask; in cik_get_ih_wptr() 7879 return (wptr & rdev->ih.ptr_mask); in cik_get_ih_wptr() [all …]
|
D | evergreen.c | 4616 if (!rdev->ih.enabled) { in evergreen_irq_set() 5026 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask); in evergreen_get_ih_wptr() 5027 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask; in evergreen_get_ih_wptr() 5032 return (wptr & rdev->ih.ptr_mask); in evergreen_get_ih_wptr() 5047 if (!rdev->ih.enabled || rdev->shutdown) in evergreen_irq_process() 5054 if (atomic_xchg(&rdev->ih.lock, 1)) in evergreen_irq_process() 5057 rptr = rdev->ih.rptr; in evergreen_irq_process() 5069 src_id = le32_to_cpu(rdev->ih.ring[ring_index]) & 0xff; in evergreen_irq_process() 5070 src_data = le32_to_cpu(rdev->ih.ring[ring_index + 1]) & 0xfffffff; in evergreen_irq_process() 5496 rptr &= rdev->ih.ptr_mask; in evergreen_irq_process() [all …]
|
D | radeon_device.c | 1310 atomic_set(&rdev->ih.lock, 0); in radeon_device_init()
|
D | rv770.c | 1927 rdev->ih.ring_obj = NULL; in rv770_init()
|
D | ni.c | 2348 rdev->ih.ring_obj = NULL; in cayman_init()
|
D | radeon.h | 2415 struct r600_ih ih; /* r6/700 interrupt ring */ member
|
/linux-4.4.14/fs/fuse/ |
D | dev.c | 1085 struct fuse_in_header ih; in fuse_read_interrupt() local 1087 unsigned reqsize = sizeof(ih) + sizeof(arg); in fuse_read_interrupt() 1092 memset(&ih, 0, sizeof(ih)); in fuse_read_interrupt() 1094 ih.len = reqsize; in fuse_read_interrupt() 1095 ih.opcode = FUSE_INTERRUPT; in fuse_read_interrupt() 1096 ih.unique = req->intr_unique; in fuse_read_interrupt() 1103 err = fuse_copy_one(cs, &ih, sizeof(ih)); in fuse_read_interrupt() 1143 struct fuse_in_header ih = { in fuse_read_single_forget() local 1147 .len = sizeof(ih) + sizeof(arg), in fuse_read_single_forget() 1152 if (nbytes < ih.len) in fuse_read_single_forget() [all …]
|
/linux-4.4.14/include/linux/ |
D | intel-iommu.h | 286 #define QI_IOTLB_IH(ih) (((u64)ih) << 6) argument 309 #define QI_EIOTLB_IH(ih) (((u64)ih) << 6) argument
|
/linux-4.4.14/net/ipv6/ |
D | ila.c | 80 struct icmp6hdr *ih = (struct icmp6hdr *) in update_ipv6_locator() local 84 inet_proto_csum_replace_by_diff(&ih->icmp6_cksum, skb, in update_ipv6_locator()
|
/linux-4.4.14/drivers/net/ethernet/tile/ |
D | tilegx.c | 1725 struct iphdr *ih; in tso_headers_prepare() local 1747 ih = ip_hdr(skb); in tso_headers_prepare() 1749 isum_seed = ((0xFFFF - ih->check) + in tso_headers_prepare() 1750 (0xFFFF - ih->tot_len) + in tso_headers_prepare() 1751 (0xFFFF - ih->id)); in tso_headers_prepare() 1752 id = ntohs(ih->id); in tso_headers_prepare() 1778 ih = (struct iphdr *)(buf + ih_off); in tso_headers_prepare() 1779 ih->tot_len = htons(sh_len + p_len - ih_off); in tso_headers_prepare() 1780 ih->id = htons(id++); in tso_headers_prepare() 1781 ih->check = csum_long(isum_seed + ih->tot_len + in tso_headers_prepare() [all …]
|
D | tilepro.c | 1682 struct iphdr *ih = ip_hdr(skb); in tile_net_tx_tso() local 1683 unsigned int ih_len = ih->ihl * 4; in tile_net_tx_tso() 1745 BUG_ON(ih->protocol != IPPROTO_TCP); in tile_net_tx_tso()
|
/linux-4.4.14/fs/jfs/ |
D | jfs_dtree.c | 3599 struct idtentry *ih; in dtCompare() local 3621 ih = (struct idtentry *) & p->slot[si]; in dtCompare() 3622 si = ih->next; in dtCompare() 3623 name = ih->name; in dtCompare() 3624 namlen = ih->namlen; in dtCompare() 3677 struct idtentry *ih; in ciCompare() local 3717 ih = (struct idtentry *) & p->slot[si]; in ciCompare() 3718 si = ih->next; in ciCompare() 3719 name = ih->name; in ciCompare() 3720 namlen = ih->namlen; in ciCompare() [all …]
|
/linux-4.4.14/net/ipv4/ |
D | igmp.c | 677 struct igmphdr *ih; in igmp_send_report() local 734 ih = (struct igmphdr *)skb_put(skb, sizeof(struct igmphdr)); in igmp_send_report() 735 ih->type = type; in igmp_send_report() 736 ih->code = 0; in igmp_send_report() 737 ih->csum = 0; in igmp_send_report() 738 ih->group = group; in igmp_send_report() 739 ih->csum = ip_compute_csum((void *)ih, sizeof(struct igmphdr)); in igmp_send_report() 883 struct igmphdr *ih = igmp_hdr(skb); in igmp_heard_query() local 886 __be32 group = ih->group; in igmp_heard_query() 892 if (ih->code == 0) { in igmp_heard_query() [all …]
|
/linux-4.4.14/drivers/iommu/ |
D | intel-svm.c | 150 unsigned long address, unsigned long pages, int ih, int gl) in intel_flush_svm_range_dev() argument 171 QI_EIOTLB_IH(ih) | QI_EIOTLB_AM(mask); in intel_flush_svm_range_dev() 196 unsigned long pages, int ih, int gl) in intel_flush_svm_range() argument 207 intel_flush_svm_range_dev(svm, sdev, address, pages, ih, gl); in intel_flush_svm_range()
|
D | dmar.c | 1300 int ih = 0; in qi_flush_iotlb() local 1310 desc.high = QI_IOTLB_ADDR(addr) | QI_IOTLB_IH(ih) in qi_flush_iotlb()
|
D | intel-iommu.c | 1535 int ih, int map) in iommu_flush_iotlb_psi() argument 1543 if (ih) in iommu_flush_iotlb_psi() 1544 ih = 1 << 6; in iommu_flush_iotlb_psi() 1555 iommu->flush.flush_iotlb(iommu, did, addr | ih, mask, in iommu_flush_iotlb_psi()
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | prom_init.c | 1903 static int __init prom_set_color(ihandle ih, int i, int r, int g, int b) in prom_set_color() argument 1905 return call_prom("call-method", 6, 1, ADDR("color!"), ih, i, b, g, r); in prom_set_color() 1920 ihandle ih; in prom_check_displays() local 1963 ih = call_prom("open", 1, 1, path); in prom_check_displays() 1964 if (ih == 0) { in prom_check_displays() 1977 if (prom_set_color(ih, i, clut[0], clut[1], in prom_check_displays() 1984 if (prom_set_color(ih, i + 32, clut[0], clut[1], in prom_check_displays()
|
/linux-4.4.14/drivers/staging/wilc1000/ |
D | linux_wlan.c | 1367 struct iphdr *ih; in mac_xmit() local 1399 ih = (struct iphdr *)(skb->data + sizeof(struct ethhdr)); in mac_xmit() 1401 pu8UdpBuffer = (char *)ih + sizeof(struct iphdr); in mac_xmit()
|
/linux-4.4.14/security/selinux/ |
D | hooks.c | 3759 struct iphdr _iph, *ih; in selinux_parse_skb_ipv4() local 3762 ih = skb_header_pointer(skb, offset, sizeof(_iph), &_iph); in selinux_parse_skb_ipv4() 3763 if (ih == NULL) in selinux_parse_skb_ipv4() 3766 ihlen = ih->ihl * 4; in selinux_parse_skb_ipv4() 3770 ad->u.net->v4info.saddr = ih->saddr; in selinux_parse_skb_ipv4() 3771 ad->u.net->v4info.daddr = ih->daddr; in selinux_parse_skb_ipv4() 3775 *proto = ih->protocol; in selinux_parse_skb_ipv4() 3777 switch (ih->protocol) { in selinux_parse_skb_ipv4() 3781 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4() 3797 if (ntohs(ih->frag_off) & IP_OFFSET) in selinux_parse_skb_ipv4() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/gr/fuc/ |
D | gpc.fuc | 138 mov $r1 #ih 327 ih:
|
D | hub.fuc | 84 mov $r1 #ih 308 ih:
|
/linux-4.4.14/crypto/ |
D | vmac.c | 66 #define ADD128(rh, rl, ih, il) \ argument 72 (rh) += (ih); \
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/sec/fuc/ |
D | g98.fuc0s | 103 mov $r1 #ih 134 ih:
|
/linux-4.4.14/drivers/net/ethernet/packetengines/ |
D | hamachi.c | 1519 struct iphdr *ih = (struct iphdr *) skb->data; in hamachi_rx() local 1524 if (ntohs(ih->tot_len) >= 46){ in hamachi_rx() 1526 if (!(ih->frag_off & cpu_to_be16(IP_MF|IP_OFFSET))) { in hamachi_rx()
|
/linux-4.4.14/Documentation/hwmon/ |
D | lm93 | 37 A "0" configures the VID pins for V(ih) = 2.1V min, V(il) = 0.8V max. 38 A "1" configures the VID pins for V(ih) = 0.8V min, V(il) = 0.4V max.
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/ce/fuc/ |
D | com.fuc | 141 mov $r1 #ih 165 ih:
|