/linux-4.4.14/sound/synth/ |
D | util_mem.c | 40 struct snd_util_memhdr *hdr; in snd_util_memhdr_new() local 42 hdr = kzalloc(sizeof(*hdr), GFP_KERNEL); in snd_util_memhdr_new() 43 if (hdr == NULL) in snd_util_memhdr_new() 45 hdr->size = memsize; in snd_util_memhdr_new() 46 mutex_init(&hdr->block_mutex); in snd_util_memhdr_new() 47 INIT_LIST_HEAD(&hdr->block); in snd_util_memhdr_new() 49 return hdr; in snd_util_memhdr_new() 55 void snd_util_memhdr_free(struct snd_util_memhdr *hdr) in snd_util_memhdr_free() argument 59 if (!hdr) in snd_util_memhdr_free() 62 while ((p = hdr->block.next) != &hdr->block) { in snd_util_memhdr_free() [all …]
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
D | radeon_ucode.c | 31 static void radeon_ucode_print_common_hdr(const struct common_firmware_header *hdr) in radeon_ucode_print_common_hdr() argument 33 DRM_DEBUG("size_bytes: %u\n", le32_to_cpu(hdr->size_bytes)); in radeon_ucode_print_common_hdr() 34 DRM_DEBUG("header_size_bytes: %u\n", le32_to_cpu(hdr->header_size_bytes)); in radeon_ucode_print_common_hdr() 35 DRM_DEBUG("header_version_major: %u\n", le16_to_cpu(hdr->header_version_major)); in radeon_ucode_print_common_hdr() 36 DRM_DEBUG("header_version_minor: %u\n", le16_to_cpu(hdr->header_version_minor)); in radeon_ucode_print_common_hdr() 37 DRM_DEBUG("ip_version_major: %u\n", le16_to_cpu(hdr->ip_version_major)); in radeon_ucode_print_common_hdr() 38 DRM_DEBUG("ip_version_minor: %u\n", le16_to_cpu(hdr->ip_version_minor)); in radeon_ucode_print_common_hdr() 39 DRM_DEBUG("ucode_version: 0x%08x\n", le32_to_cpu(hdr->ucode_version)); in radeon_ucode_print_common_hdr() 40 DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes)); in radeon_ucode_print_common_hdr() 42 le32_to_cpu(hdr->ucode_array_offset_bytes)); in radeon_ucode_print_common_hdr() [all …]
|
/linux-4.4.14/net/ieee802154/ |
D | header_ops.c | 55 ieee802154_hdr_push_sechdr(u8 *buf, const struct ieee802154_sechdr *hdr) in ieee802154_hdr_push_sechdr() argument 59 memcpy(buf, hdr, 1); in ieee802154_hdr_push_sechdr() 60 memcpy(buf + 1, &hdr->frame_counter, 4); in ieee802154_hdr_push_sechdr() 62 switch (hdr->key_id_mode) { in ieee802154_hdr_push_sechdr() 70 memcpy(buf + pos, &hdr->short_src, 4); in ieee802154_hdr_push_sechdr() 75 memcpy(buf + pos, &hdr->extended_src, IEEE802154_ADDR_LEN); in ieee802154_hdr_push_sechdr() 80 buf[pos++] = hdr->key_id; in ieee802154_hdr_push_sechdr() 86 ieee802154_hdr_push(struct sk_buff *skb, struct ieee802154_hdr *hdr) in ieee802154_hdr_push() argument 91 struct ieee802154_hdr_fc *fc = &hdr->fc; in ieee802154_hdr_push() 93 buf[pos++] = hdr->seq; in ieee802154_hdr_push() [all …]
|
D | netlink.c | 42 void *hdr; in ieee802154_nl_create() local 50 hdr = genlmsg_put(msg, 0, ieee802154_seq_num++, in ieee802154_nl_create() 53 if (!hdr) { in ieee802154_nl_create() 64 void *hdr = genlmsg_data(nlmsg_data(nlh)); in ieee802154_nl_mcast() local 66 genlmsg_end(msg, hdr); in ieee802154_nl_mcast() 74 void *hdr; in ieee802154_nl_new_reply() local 80 hdr = genlmsg_put_reply(msg, info, in ieee802154_nl_new_reply() 82 if (!hdr) { in ieee802154_nl_new_reply() 93 void *hdr = genlmsg_data(nlmsg_data(nlh)); in ieee802154_nl_reply() local 95 genlmsg_end(msg, hdr); in ieee802154_nl_reply()
|
/linux-4.4.14/net/6lowpan/ |
D | iphc.c | 350 static inline void lowpan_iphc_tf_set_ecn(struct ipv6hdr *hdr, const u8 *tf) in lowpan_iphc_tf_set_ecn() argument 356 hdr->flow_lbl[0] |= (ecn >> 2); in lowpan_iphc_tf_set_ecn() 360 static inline void lowpan_iphc_tf_set_dscp(struct ipv6hdr *hdr, const u8 *tf) in lowpan_iphc_tf_set_dscp() argument 366 hdr->priority |= ((dscp & 0x3c) >> 2); in lowpan_iphc_tf_set_dscp() 368 hdr->flow_lbl[0] |= ((dscp & 0x03) << 6); in lowpan_iphc_tf_set_dscp() 372 static inline void lowpan_iphc_tf_set_lbl(struct ipv6hdr *hdr, const u8 *lbl) in lowpan_iphc_tf_set_lbl() argument 383 hdr->flow_lbl[0] |= lbl[0] & 0x0f; in lowpan_iphc_tf_set_lbl() 384 memcpy(&hdr->flow_lbl[1], &lbl[1], 2); in lowpan_iphc_tf_set_lbl() 391 static int lowpan_iphc_tf_decompress(struct sk_buff *skb, struct ipv6hdr *hdr, in lowpan_iphc_tf_decompress() argument 409 lowpan_iphc_tf_set_ecn(hdr, tf); in lowpan_iphc_tf_decompress() [all …]
|
/linux-4.4.14/fs/xfs/libxfs/ |
D | xfs_dir2_data.c | 50 xfs_dir2_data_hdr_t *hdr; /* data block header */ in __xfs_dir3_data_check() local 76 hdr = bp->b_addr; in __xfs_dir3_data_check() 77 p = (char *)ops->data_entry_p(hdr); in __xfs_dir3_data_check() 79 switch (hdr->magic) { in __xfs_dir3_data_check() 82 btp = xfs_dir2_block_tail_p(geo, hdr); in __xfs_dir3_data_check() 98 endp = (char *)hdr + geo->blksize; in __xfs_dir3_data_check() 108 bf = ops->data_bestfree_p(hdr); in __xfs_dir3_data_check() 141 (char *)dup - (char *)hdr); in __xfs_dir3_data_check() 142 dfp = xfs_dir2_data_freefind(hdr, bf, dup); in __xfs_dir3_data_check() 169 (char *)dep - (char *)hdr); in __xfs_dir3_data_check() [all …]
|
D | xfs_da_format.c | 37 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sf_entsize() argument 43 count += hdr->i8count ? sizeof(xfs_dir2_ino8_t) : in xfs_dir2_sf_entsize() 50 struct xfs_dir2_sf_hdr *hdr, in xfs_dir3_sf_entsize() argument 53 return xfs_dir2_sf_entsize(hdr, len) + sizeof(__uint8_t); in xfs_dir3_sf_entsize() 58 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sf_nextentry() argument 62 ((char *)sfep + xfs_dir2_sf_entsize(hdr, sfep->namelen)); in xfs_dir2_sf_nextentry() 67 struct xfs_dir2_sf_hdr *hdr, in xfs_dir3_sf_nextentry() argument 71 ((char *)sfep + xfs_dir3_sf_entsize(hdr, sfep->namelen)); in xfs_dir3_sf_nextentry() 127 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sf_get_ino() argument 130 if (hdr->i8count) in xfs_dir2_sf_get_ino() [all …]
|
D | xfs_dir2_block.c | 174 struct xfs_dir2_data_hdr *hdr, in xfs_dir2_block_need_space() argument 189 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_block_need_space() 200 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space() 212 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space() 236 enddup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space() 248 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space() 267 ((char *)hdr + be16_to_cpu(bf[1].offset)); in xfs_dir2_block_need_space() 287 struct xfs_dir2_data_hdr *hdr, in xfs_dir2_block_compact() argument 319 (xfs_dir2_data_aoff_t)((char *)blp - (char *)hdr), in xfs_dir2_block_compact() 328 xfs_dir2_data_freescan(args->dp, hdr, needlog); in xfs_dir2_block_compact() [all …]
|
D | xfs_dir2.h | 44 int (*sf_entsize)(struct xfs_dir2_sf_hdr *hdr, int len); 46 (*sf_nextentry)(struct xfs_dir2_sf_hdr *hdr, 51 xfs_ino_t (*sf_get_ino)(struct xfs_dir2_sf_hdr *hdr, 53 void (*sf_put_ino)(struct xfs_dir2_sf_hdr *hdr, 56 xfs_ino_t (*sf_get_parent_ino)(struct xfs_dir2_sf_hdr *hdr); 57 void (*sf_put_parent_ino)(struct xfs_dir2_sf_hdr *hdr, 66 (*data_bestfree_p)(struct xfs_dir2_data_hdr *hdr); 74 (*data_dot_entry_p)(struct xfs_dir2_data_hdr *hdr); 76 (*data_dotdot_entry_p)(struct xfs_dir2_data_hdr *hdr); 78 (*data_first_entry_p)(struct xfs_dir2_data_hdr *hdr); [all …]
|
D | xfs_da_format.h | 59 struct xfs_da_blkinfo hdr; member 99 struct xfs_da_node_hdr hdr; member 104 struct xfs_da3_node_hdr hdr; member 285 xfs_dir2_sf_firstentry(struct xfs_dir2_sf_hdr *hdr) in xfs_dir2_sf_firstentry() argument 288 ((char *)hdr + xfs_dir2_sf_hdr_size(hdr->i8count)); in xfs_dir2_sf_firstentry() 365 struct xfs_dir3_blk_hdr hdr; member 370 #define XFS_DIR3_DATA_CRC_OFF offsetof(struct xfs_dir3_data_hdr, hdr.crc) 495 xfs_dir2_leaf_hdr_t hdr; /* leaf header */ member 500 struct xfs_dir3_leaf_hdr hdr; /* leaf header */ member 533 xfs_dir2_free_hdr_t hdr; /* block header */ member [all …]
|
D | xfs_dir2_leaf.c | 86 struct xfs_dir3_icleaf_hdr *hdr, in xfs_dir3_leaf_check_int() argument 103 if (!hdr) { in xfs_dir3_leaf_check_int() 105 hdr = &leafhdr; in xfs_dir3_leaf_check_int() 116 if (hdr->count > ops->leaf_max_ents(geo)) in xfs_dir3_leaf_check_int() 120 if ((hdr->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir3_leaf_check_int() 121 hdr->magic == XFS_DIR3_LEAF1_MAGIC) && in xfs_dir3_leaf_check_int() 122 (char *)&ents[hdr->count] > (char *)xfs_dir2_leaf_bests_p(ltp)) in xfs_dir3_leaf_check_int() 126 for (i = stale = 0; i < hdr->count; i++) { in xfs_dir3_leaf_check_int() 127 if (i + 1 < hdr->count) { in xfs_dir3_leaf_check_int() 135 if (hdr->stale != stale) in xfs_dir3_leaf_check_int() [all …]
|
/linux-4.4.14/fs/nfs/ |
D | nfs42xdr.c | 99 struct compound_hdr *hdr) in encode_allocate() argument 101 encode_op_hdr(xdr, OP_ALLOCATE, decode_allocate_maxsz, hdr); in encode_allocate() 107 struct compound_hdr *hdr) in encode_deallocate() argument 109 encode_op_hdr(xdr, OP_DEALLOCATE, decode_deallocate_maxsz, hdr); in encode_deallocate() 115 struct compound_hdr *hdr) in encode_seek() argument 117 encode_op_hdr(xdr, OP_SEEK, decode_seek_maxsz, hdr); in encode_seek() 126 struct compound_hdr *hdr) in encode_layoutstats() argument 130 encode_op_hdr(xdr, OP_LAYOUTSTATS, decode_layoutstats_maxsz, hdr); in encode_layoutstats() 152 struct compound_hdr *hdr) in encode_clone() argument 156 encode_op_hdr(xdr, OP_CLONE, decode_clone_maxsz, hdr); in encode_clone() [all …]
|
D | pagelist.c | 55 struct nfs_pgio_header *hdr, in nfs_pgheader_init() argument 56 void (*release)(struct nfs_pgio_header *hdr)) in nfs_pgheader_init() argument 61 hdr->req = nfs_list_entry(mirror->pg_list.next); in nfs_pgheader_init() 62 hdr->inode = desc->pg_inode; in nfs_pgheader_init() 63 hdr->cred = hdr->req->wb_context->cred; in nfs_pgheader_init() 64 hdr->io_start = req_offset(hdr->req); in nfs_pgheader_init() 65 hdr->good_bytes = mirror->pg_count; in nfs_pgheader_init() 66 hdr->dreq = desc->pg_dreq; in nfs_pgheader_init() 67 hdr->layout_private = desc->pg_layout_private; in nfs_pgheader_init() 68 hdr->release = release; in nfs_pgheader_init() [all …]
|
D | read.c | 144 static void nfs_read_completion(struct nfs_pgio_header *hdr) in nfs_read_completion() argument 148 if (test_bit(NFS_IOHDR_REDO, &hdr->flags)) in nfs_read_completion() 150 while (!list_empty(&hdr->pages)) { in nfs_read_completion() 151 struct nfs_page *req = nfs_list_entry(hdr->pages.next); in nfs_read_completion() 156 if (test_bit(NFS_IOHDR_EOF, &hdr->flags)) { in nfs_read_completion() 160 if (bytes > hdr->good_bytes) { in nfs_read_completion() 165 } else if (hdr->good_bytes - bytes < req->wb_bytes) { in nfs_read_completion() 168 start += hdr->good_bytes - bytes; in nfs_read_completion() 174 if (test_bit(NFS_IOHDR_ERROR, &hdr->flags)) { in nfs_read_completion() 175 if (bytes <= hdr->good_bytes) in nfs_read_completion() [all …]
|
D | nfs4xdr.c | 960 struct compound_hdr *hdr) in encode_compound_hdr() argument 968 hdr->replen = RPC_REPHDRSIZE + auth->au_rslack + 3 + hdr->taglen; in encode_compound_hdr() 970 WARN_ON_ONCE(hdr->taglen > NFS4_MAXTAGLEN); in encode_compound_hdr() 971 encode_string(xdr, hdr->taglen, hdr->tag); in encode_compound_hdr() 973 *p++ = cpu_to_be32(hdr->minorversion); in encode_compound_hdr() 974 hdr->nops_p = p; in encode_compound_hdr() 975 *p = cpu_to_be32(hdr->nops); in encode_compound_hdr() 980 struct compound_hdr *hdr) in encode_op_hdr() argument 983 hdr->nops++; in encode_op_hdr() 984 hdr->replen += replen; in encode_op_hdr() [all …]
|
D | direct.c | 127 nfs_direct_good_bytes(struct nfs_direct_req *dreq, struct nfs_pgio_header *hdr) in nfs_direct_good_bytes() argument 133 dreq->mirrors[hdr->pgio_mirror_idx].count += hdr->good_bytes; in nfs_direct_good_bytes() 134 dreq->count += hdr->good_bytes; in nfs_direct_good_bytes() 137 count = dreq->mirrors[hdr->pgio_mirror_idx].count; in nfs_direct_good_bytes() 138 if (count + dreq->io_start < hdr->io_start + hdr->good_bytes) { in nfs_direct_good_bytes() 139 count = hdr->io_start + hdr->good_bytes - dreq->io_start; in nfs_direct_good_bytes() 140 dreq->mirrors[hdr->pgio_mirror_idx].count = count; in nfs_direct_good_bytes() 192 struct nfs_pgio_header *hdr) in nfs_direct_set_hdr_verf() argument 196 verfp = nfs_direct_select_verf(dreq, hdr->ds_clp, hdr->ds_commit_idx); in nfs_direct_set_hdr_verf() 198 memcpy(verfp, &hdr->verf, sizeof(struct nfs_writeverf)); in nfs_direct_set_hdr_verf() [all …]
|
D | pnfs.c | 1892 int pnfs_write_done_resend_to_mds(struct nfs_pgio_header *hdr) in pnfs_write_done_resend_to_mds() argument 1897 nfs_pageio_init_write(&pgio, hdr->inode, FLUSH_STABLE, true, in pnfs_write_done_resend_to_mds() 1898 hdr->completion_ops); in pnfs_write_done_resend_to_mds() 1899 set_bit(NFS_CONTEXT_RESEND_WRITES, &hdr->args.context->flags); in pnfs_write_done_resend_to_mds() 1900 return nfs_pageio_resend(&pgio, hdr); in pnfs_write_done_resend_to_mds() 1904 static void pnfs_ld_handle_write_error(struct nfs_pgio_header *hdr) in pnfs_ld_handle_write_error() argument 1907 dprintk("pnfs write error = %d\n", hdr->pnfs_error); in pnfs_ld_handle_write_error() 1908 if (NFS_SERVER(hdr->inode)->pnfs_curr_ld->flags & in pnfs_ld_handle_write_error() 1910 pnfs_return_layout(hdr->inode); in pnfs_ld_handle_write_error() 1912 if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) in pnfs_ld_handle_write_error() [all …]
|
/linux-4.4.14/drivers/firmware/google/ |
D | memconsole.c | 72 static void __init found_v1_header(struct biosmemcon_ebda *hdr) in found_v1_header() argument 74 pr_info("BIOS console v1 EBDA structure found at %p\n", hdr); in found_v1_header() 77 hdr->v1.buffer_addr, hdr->v1.start, in found_v1_header() 78 hdr->v1.end, hdr->v1.num_chars); in found_v1_header() 80 memconsole_length = hdr->v1.num_chars; in found_v1_header() 81 memconsole_baseaddr = hdr->v1.buffer_addr; in found_v1_header() 84 static void __init found_v2_header(struct biosmemcon_ebda *hdr) in found_v2_header() argument 86 pr_info("BIOS console v2 EBDA structure found at %p\n", hdr); in found_v2_header() 89 hdr->v2.buffer_addr, hdr->v2.start, in found_v2_header() 90 hdr->v2.end, hdr->v2.num_bytes); in found_v2_header() [all …]
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ucode.c | 31 static void amdgpu_ucode_print_common_hdr(const struct common_firmware_header *hdr) in amdgpu_ucode_print_common_hdr() argument 33 DRM_DEBUG("size_bytes: %u\n", le32_to_cpu(hdr->size_bytes)); in amdgpu_ucode_print_common_hdr() 34 DRM_DEBUG("header_size_bytes: %u\n", le32_to_cpu(hdr->header_size_bytes)); in amdgpu_ucode_print_common_hdr() 35 DRM_DEBUG("header_version_major: %u\n", le16_to_cpu(hdr->header_version_major)); in amdgpu_ucode_print_common_hdr() 36 DRM_DEBUG("header_version_minor: %u\n", le16_to_cpu(hdr->header_version_minor)); in amdgpu_ucode_print_common_hdr() 37 DRM_DEBUG("ip_version_major: %u\n", le16_to_cpu(hdr->ip_version_major)); in amdgpu_ucode_print_common_hdr() 38 DRM_DEBUG("ip_version_minor: %u\n", le16_to_cpu(hdr->ip_version_minor)); in amdgpu_ucode_print_common_hdr() 39 DRM_DEBUG("ucode_version: 0x%08x\n", le32_to_cpu(hdr->ucode_version)); in amdgpu_ucode_print_common_hdr() 40 DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes)); in amdgpu_ucode_print_common_hdr() 42 le32_to_cpu(hdr->ucode_array_offset_bytes)); in amdgpu_ucode_print_common_hdr() [all …]
|
/linux-4.4.14/drivers/net/wireless/hostap/ |
D | hostap_80211_rx.c | 23 struct ieee80211_hdr *hdr; in hostap_dump_rx_80211() local 26 hdr = (struct ieee80211_hdr *) skb->data; in hostap_dump_rx_80211() 36 fc = le16_to_cpu(hdr->frame_control); in hostap_dump_rx_80211() 48 printk(" dur=0x%04x seq=0x%04x\n", le16_to_cpu(hdr->duration_id), in hostap_dump_rx_80211() 49 le16_to_cpu(hdr->seq_ctrl)); in hostap_dump_rx_80211() 51 printk(KERN_DEBUG " A1=%pM", hdr->addr1); in hostap_dump_rx_80211() 52 printk(" A2=%pM", hdr->addr2); in hostap_dump_rx_80211() 53 printk(" A3=%pM", hdr->addr3); in hostap_dump_rx_80211() 55 printk(" A4=%pM", hdr->addr4); in hostap_dump_rx_80211() 133 struct linux_wlan_ng_prism_hdr *hdr; in prism2_rx_80211() local [all …]
|
D | hostap_80211_tx.c | 22 struct ieee80211_hdr *hdr; in hostap_dump_tx_80211() local 25 hdr = (struct ieee80211_hdr *) skb->data; in hostap_dump_tx_80211() 33 fc = le16_to_cpu(hdr->frame_control); in hostap_dump_tx_80211() 45 printk(" dur=0x%04x seq=0x%04x\n", le16_to_cpu(hdr->duration_id), in hostap_dump_tx_80211() 46 le16_to_cpu(hdr->seq_ctrl)); in hostap_dump_tx_80211() 48 printk(KERN_DEBUG " A1=%pM", hdr->addr1); in hostap_dump_tx_80211() 49 printk(" A2=%pM", hdr->addr2); in hostap_dump_tx_80211() 50 printk(" A3=%pM", hdr->addr3); in hostap_dump_tx_80211() 52 printk(" A4=%pM", hdr->addr4); in hostap_dump_tx_80211() 66 struct ieee80211_hdr hdr; in hostap_data_start_xmit() local [all …]
|
D | hostap_ap.c | 654 struct ieee80211_hdr *hdr; in hostap_ap_tx_cb() local 664 hdr = (struct ieee80211_hdr *) skb->data; in hostap_ap_tx_cb() 665 hdr->frame_control &= cpu_to_le16(~IEEE80211_FCTL_VERS); in hostap_ap_tx_cb() 666 hdr->frame_control |= cpu_to_le16(ok ? BIT(1) : BIT(0)); in hostap_ap_tx_cb() 669 skb_pull(skb, hostap_80211_get_hdrlen(hdr->frame_control)); in hostap_ap_tx_cb() 683 struct ieee80211_hdr *hdr; in hostap_ap_tx_cb_auth() local 694 hdr = (struct ieee80211_hdr *) skb->data; in hostap_ap_tx_cb_auth() 695 if (!ieee80211_is_auth(hdr->frame_control) || in hostap_ap_tx_cb_auth() 714 sta = ap_get_sta(ap, hdr->addr1); in hostap_ap_tx_cb_auth() 739 dev->name, hdr->addr1, in hostap_ap_tx_cb_auth() [all …]
|
/linux-4.4.14/drivers/nvme/host/ |
D | scsi.c | 233 static int nvme_trans_copy_to_user(struct sg_io_hdr *hdr, void *from, in nvme_trans_copy_to_user() argument 241 if (hdr->iovec_count > 0) { in nvme_trans_copy_to_user() 244 for (i = 0; i < hdr->iovec_count; i++) { in nvme_trans_copy_to_user() 245 if (copy_from_user(&sgl, hdr->dxferp + in nvme_trans_copy_to_user() 261 if (copy_to_user(hdr->dxferp, from, n)) in nvme_trans_copy_to_user() 268 static int nvme_trans_copy_from_user(struct sg_io_hdr *hdr, void *to, in nvme_trans_copy_from_user() argument 276 if (hdr->iovec_count > 0) { in nvme_trans_copy_from_user() 279 for (i = 0; i < hdr->iovec_count; i++) { in nvme_trans_copy_from_user() 280 if (copy_from_user(&sgl, hdr->dxferp + in nvme_trans_copy_from_user() 295 if (copy_from_user(to, hdr->dxferp, n)) in nvme_trans_copy_from_user() [all …]
|
/linux-4.4.14/fs/nfs/filelayout/ |
D | filelayout.c | 88 static void filelayout_reset_write(struct nfs_pgio_header *hdr) in filelayout_reset_write() argument 90 struct rpc_task *task = &hdr->task; in filelayout_reset_write() 92 if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) { in filelayout_reset_write() 95 hdr->task.tk_pid, in filelayout_reset_write() 96 hdr->inode->i_sb->s_id, in filelayout_reset_write() 97 (unsigned long long)NFS_FILEID(hdr->inode), in filelayout_reset_write() 98 hdr->args.count, in filelayout_reset_write() 99 (unsigned long long)hdr->args.offset); in filelayout_reset_write() 101 task->tk_status = pnfs_write_done_resend_to_mds(hdr); in filelayout_reset_write() 105 static void filelayout_reset_read(struct nfs_pgio_header *hdr) in filelayout_reset_read() argument [all …]
|
/linux-4.4.14/block/ |
D | scsi_ioctl.c | 228 struct sg_io_hdr *hdr, fmode_t mode) in blk_fill_sghdr_rq() argument 230 if (copy_from_user(rq->cmd, hdr->cmdp, hdr->cmd_len)) in blk_fill_sghdr_rq() 238 rq->cmd_len = hdr->cmd_len; in blk_fill_sghdr_rq() 240 rq->timeout = msecs_to_jiffies(hdr->timeout); in blk_fill_sghdr_rq() 251 static int blk_complete_sghdr_rq(struct request *rq, struct sg_io_hdr *hdr, in blk_complete_sghdr_rq() argument 259 hdr->status = rq->errors & 0xff; in blk_complete_sghdr_rq() 260 hdr->masked_status = status_byte(rq->errors); in blk_complete_sghdr_rq() 261 hdr->msg_status = msg_byte(rq->errors); in blk_complete_sghdr_rq() 262 hdr->host_status = host_byte(rq->errors); in blk_complete_sghdr_rq() 263 hdr->driver_status = driver_byte(rq->errors); in blk_complete_sghdr_rq() [all …]
|
D | bsg.c | 87 struct sg_io_v4 hdr; member 140 struct sg_io_v4 *hdr, struct bsg_device *bd, in blk_fill_sgv4_hdr_rq() argument 143 if (hdr->request_len > BLK_MAX_CDB) { in blk_fill_sgv4_hdr_rq() 144 rq->cmd = kzalloc(hdr->request_len, GFP_KERNEL); in blk_fill_sgv4_hdr_rq() 149 if (copy_from_user(rq->cmd, (void __user *)(unsigned long)hdr->request, in blk_fill_sgv4_hdr_rq() 150 hdr->request_len)) in blk_fill_sgv4_hdr_rq() 153 if (hdr->subprotocol == BSG_SUB_PROTOCOL_SCSI_CMD) { in blk_fill_sgv4_hdr_rq() 162 rq->cmd_len = hdr->request_len; in blk_fill_sgv4_hdr_rq() 164 rq->timeout = msecs_to_jiffies(hdr->timeout); in blk_fill_sgv4_hdr_rq() 179 bsg_validate_sgv4_hdr(struct request_queue *q, struct sg_io_v4 *hdr, int *rw) in bsg_validate_sgv4_hdr() argument [all …]
|
/linux-4.4.14/net/rxrpc/ |
D | ar-connevent.c | 63 struct rxrpc_header hdr; in rxrpc_abort_connection() local 92 hdr.epoch = conn->epoch; in rxrpc_abort_connection() 93 hdr.cid = conn->cid; in rxrpc_abort_connection() 94 hdr.callNumber = 0; in rxrpc_abort_connection() 95 hdr.seq = 0; in rxrpc_abort_connection() 96 hdr.type = RXRPC_PACKET_TYPE_ABORT; in rxrpc_abort_connection() 97 hdr.flags = conn->out_clientflag; in rxrpc_abort_connection() 98 hdr.userStatus = 0; in rxrpc_abort_connection() 99 hdr.securityIndex = conn->security_ix; in rxrpc_abort_connection() 100 hdr._rsvd = 0; in rxrpc_abort_connection() [all …]
|
D | ar-input.c | 207 terminal = ((sp->hdr.flags & RXRPC_LAST_PACKET) && in rxrpc_fast_process_data() 208 !(sp->hdr.flags & RXRPC_CLIENT_INITIATED)); in rxrpc_fast_process_data() 225 if (sp->hdr.flags & RXRPC_LAST_PACKET) in rxrpc_fast_process_data() 241 rxrpc_propose_ACK(call, RXRPC_ACK_DELAY, sp->hdr.serial, false); in rxrpc_fast_process_data() 254 __rxrpc_propose_ACK(call, ack, sp->hdr.serial, true); in rxrpc_fast_process_data() 262 __rxrpc_propose_ACK(call, ack, sp->hdr.serial, true); in rxrpc_fast_process_data() 321 if (sp->hdr.type == RXRPC_PACKET_TYPE_DATA) { in rxrpc_fast_process_packet() 333 serial = ntohl(sp->hdr.serial); in rxrpc_fast_process_packet() 341 if (sp->hdr.flags & RXRPC_REQUEST_ACK) { in rxrpc_fast_process_packet() 343 rxrpc_propose_ACK(call, RXRPC_ACK_REQUESTED, sp->hdr.serial, false); in rxrpc_fast_process_packet() [all …]
|
D | rxkad.c | 163 struct rxkad_level1_hdr hdr; in rxkad_secure_packet_auth() member 172 check = ntohl(sp->hdr.seq ^ sp->hdr.callNumber); in rxkad_secure_packet_auth() 175 tmpbuf.hdr.data_size = htonl(data_size); in rxkad_secure_packet_auth() 218 check = ntohl(sp->hdr.seq ^ sp->hdr.callNumber); in rxkad_secure_packet_encrypt() 272 call->debug_id, key_serial(call->conn->key), ntohl(sp->hdr.seq), in rxkad_secure_packet() 290 x |= sp->hdr.seq & cpu_to_be32(0x3fffffff); in rxkad_secure_packet() 291 tmpbuf.x[0] = sp->hdr.callNumber; in rxkad_secure_packet() 302 sp->hdr.cksum = htons(y); in rxkad_secure_packet() 371 check ^= ntohl(sp->hdr.seq ^ sp->hdr.callNumber); in rxkad_verify_packet_auth() 456 check ^= ntohl(sp->hdr.seq ^ sp->hdr.callNumber); in rxkad_verify_packet_encrypt() [all …]
|
D | ar-ack.c | 218 struct rxrpc_header *hdr; in rxrpc_resend() local 250 sp->hdr.serial = in rxrpc_resend() 253 hdr = (struct rxrpc_header *) txb->head; in rxrpc_resend() 254 hdr->serial = sp->hdr.serial; in rxrpc_resend() 257 ntohl(sp->hdr.serial), ntohl(sp->hdr.seq)); in rxrpc_resend() 481 ntohl(sp->hdr.seq), call->rx_first_oos); in rxrpc_drain_rx_oos_queue() 483 if (ntohl(sp->hdr.seq) != call->rx_first_oos) { in rxrpc_drain_rx_oos_queue() 485 call->rx_first_oos = ntohl(rxrpc_skb(skb)->hdr.seq); in rxrpc_drain_rx_oos_queue() 489 terminal = ((sp->hdr.flags & RXRPC_LAST_PACKET) && in rxrpc_drain_rx_oos_queue() 490 !(sp->hdr.flags & RXRPC_CLIENT_INITIATED)); in rxrpc_drain_rx_oos_queue() [all …]
|
/linux-4.4.14/net/mac80211/ |
D | wpa.c | 35 struct ieee80211_hdr *hdr; in ieee80211_tx_h_michael_mic_add() local 40 hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_tx_h_michael_mic_add() 42 skb->len < 24 || !ieee80211_is_data_present(hdr->frame_control)) in ieee80211_tx_h_michael_mic_add() 45 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_tx_h_michael_mic_add() 78 michael_mic(key, hdr, data, data_len, mic); in ieee80211_tx_h_michael_mic_add() 95 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_rx_h_michael_mic_verify() local 101 if (!ieee80211_is_data_present(hdr->frame_control)) in ieee80211_rx_h_michael_mic_verify() 143 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_rx_h_michael_mic_verify() 149 hdr = (void *)skb->data; in ieee80211_rx_h_michael_mic_verify() 154 michael_mic(key, hdr, data, data_len, mic); in ieee80211_rx_h_michael_mic_verify() [all …]
|
D | mesh_ps.c | 188 struct ieee80211_hdr *hdr) in ieee80211_mps_set_frame_flags() argument 193 if (WARN_ON(is_unicast_ether_addr(hdr->addr1) && in ieee80211_mps_set_frame_flags() 194 ieee80211_is_data_qos(hdr->frame_control) && in ieee80211_mps_set_frame_flags() 198 if (is_unicast_ether_addr(hdr->addr1) && in ieee80211_mps_set_frame_flags() 199 ieee80211_is_data_qos(hdr->frame_control) && in ieee80211_mps_set_frame_flags() 206 hdr->frame_control &= cpu_to_le16(~IEEE80211_FCTL_PM); in ieee80211_mps_set_frame_flags() 208 hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM); in ieee80211_mps_set_frame_flags() 210 if (!ieee80211_is_data_qos(hdr->frame_control)) in ieee80211_mps_set_frame_flags() 213 qc = ieee80211_get_qos_ctl(hdr); in ieee80211_mps_set_frame_flags() 215 if ((is_unicast_ether_addr(hdr->addr1) && in ieee80211_mps_set_frame_flags() [all …]
|
D | rx.c | 45 static u8 *ieee80211_get_bssid(struct ieee80211_hdr *hdr, size_t len, in ieee80211_get_bssid() argument 48 __le16 fc = hdr->frame_control; in ieee80211_get_bssid() 57 return hdr->addr1; in ieee80211_get_bssid() 59 return hdr->addr2; in ieee80211_get_bssid() 61 return hdr->addr3; in ieee80211_get_bssid() 67 return hdr->addr3; in ieee80211_get_bssid() 72 return hdr->addr1; in ieee80211_get_bssid() 77 return hdr->addr2; in ieee80211_get_bssid() 80 return hdr->addr1; in ieee80211_get_bssid() 120 struct ieee80211_hdr *hdr; in should_drop_frame() local [all …]
|
D | tx.c | 58 struct ieee80211_hdr *hdr; in ieee80211_duration() local 101 hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_duration() 102 if (ieee80211_is_ctl(hdr->frame_control)) { in ieee80211_duration() 181 if (ieee80211_is_data_qos(hdr->frame_control) && in ieee80211_duration() 182 *(ieee80211_get_qos_ctl(hdr)) & IEEE80211_QOS_CTL_ACK_POLICY_NOACK) in ieee80211_duration() 284 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_check_assoc() local 293 !ieee80211_is_probe_req(hdr->frame_control) && in ieee80211_tx_h_check_assoc() 294 !ieee80211_is_nullfunc(hdr->frame_control)) in ieee80211_tx_h_check_assoc() 322 ieee80211_is_data(hdr->frame_control))) { in ieee80211_tx_h_check_assoc() 326 hdr->addr1); in ieee80211_tx_h_check_assoc() [all …]
|
D | michael.c | 31 struct ieee80211_hdr *hdr) in michael_mic_hdr() argument 35 da = ieee80211_get_DA(hdr); in michael_mic_hdr() 36 sa = ieee80211_get_SA(hdr); in michael_mic_hdr() 37 if (ieee80211_is_data_qos(hdr->frame_control)) in michael_mic_hdr() 38 tid = *ieee80211_get_qos_ctl(hdr) & IEEE80211_QOS_CTL_TID_MASK; in michael_mic_hdr() 56 void michael_mic(const u8 *key, struct ieee80211_hdr *hdr, in michael_mic() argument 63 michael_mic_hdr(&mctx, key, hdr); in michael_mic()
|
D | status.c | 51 struct ieee80211_hdr *hdr = (void *)skb->data; in ieee80211_handle_filtered_frame() local 79 if (hdr->frame_control & cpu_to_le16(IEEE80211_FCTL_MOREDATA)) in ieee80211_handle_filtered_frame() 80 hdr->frame_control &= ~cpu_to_le16(IEEE80211_FCTL_MOREDATA); in ieee80211_handle_filtered_frame() 82 if (ieee80211_is_data_qos(hdr->frame_control)) { in ieee80211_handle_filtered_frame() 83 u8 *p = ieee80211_get_qos_ctl(hdr); in ieee80211_handle_filtered_frame() 189 struct ieee80211_hdr *hdr = (void *) skb->data; in ieee80211_frame_acked() local 190 u8 *qc = ieee80211_get_qos_ctl(hdr); in ieee80211_frame_acked() 193 ieee80211_check_pending_bar(sta, hdr->addr1, tid); in ieee80211_frame_acked() 279 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data; in ieee80211_add_tx_radiotap_header() local 315 !is_multicast_ether_addr(hdr->addr1)) in ieee80211_add_tx_radiotap_header() [all …]
|
D | wme.c | 121 struct ieee80211_hdr *hdr) in ieee80211_select_queue_80211() argument 129 if (!ieee80211_is_data(hdr->frame_control)) { in ieee80211_select_queue_80211() 133 if (!ieee80211_is_data_qos(hdr->frame_control)) { in ieee80211_select_queue_80211() 138 p = ieee80211_get_qos_ctl(hdr); in ieee80211_select_queue_80211() 237 struct ieee80211_hdr *hdr = (void *)skb->data; in ieee80211_set_qos_hdr() local 242 if (!ieee80211_is_data_qos(hdr->frame_control)) in ieee80211_set_qos_hdr() 245 p = ieee80211_get_qos_ctl(hdr); in ieee80211_set_qos_hdr() 251 if (is_multicast_ether_addr(hdr->addr1) || in ieee80211_set_qos_hdr() 265 if (!ieee80211_is_qos_nullfunc(hdr->frame_control)) in ieee80211_set_qos_hdr()
|
/linux-4.4.14/drivers/target/iscsi/ |
D | iscsi_target.c | 824 struct iscsi_scsi_req *hdr; in iscsit_setup_scsi_cmd() local 830 hdr = (struct iscsi_scsi_req *) buf; in iscsit_setup_scsi_cmd() 831 payload_length = ntoh24(hdr->dlength); in iscsit_setup_scsi_cmd() 835 if (!(hdr->flags & ISCSI_FLAG_CMD_WRITE) && in iscsit_setup_scsi_cmd() 836 !(hdr->flags & ISCSI_FLAG_CMD_FINAL)) { in iscsit_setup_scsi_cmd() 843 if (((hdr->flags & ISCSI_FLAG_CMD_READ) || in iscsit_setup_scsi_cmd() 844 (hdr->flags & ISCSI_FLAG_CMD_WRITE)) && !hdr->data_length) { in iscsit_setup_scsi_cmd() 855 hdr->flags &= ~ISCSI_FLAG_CMD_READ; in iscsit_setup_scsi_cmd() 856 hdr->flags &= ~ISCSI_FLAG_CMD_WRITE; in iscsit_setup_scsi_cmd() 860 " CDB: 0x%02x, Fixing up flags\n", hdr->cdb[0]); in iscsit_setup_scsi_cmd() [all …]
|
D | iscsi_target_erl0.c | 78 struct iscsi_data *hdr = (struct iscsi_data *) buf; in iscsit_dataout_within_command_recovery_check() local 79 u32 payload_length = ntoh24(hdr->dlength); in iscsit_dataout_within_command_recovery_check() 95 cmd->write_data_done != be32_to_cpu(hdr->offset)) in iscsit_dataout_within_command_recovery_check() 102 seq = iscsit_get_seq_holder(cmd, be32_to_cpu(hdr->offset), in iscsit_dataout_within_command_recovery_check() 114 (seq->offset != be32_to_cpu(hdr->offset) || in iscsit_dataout_within_command_recovery_check() 115 seq->data_sn != be32_to_cpu(hdr->datasn))) in iscsit_dataout_within_command_recovery_check() 120 seq->data_sn != be32_to_cpu(hdr->datasn)) in iscsit_dataout_within_command_recovery_check() 135 " 0x%08x\n", hdr->offset, payload_length, hdr->datasn); in iscsit_dataout_within_command_recovery_check() 145 struct iscsi_data *hdr = (struct iscsi_data *) buf; in iscsit_dataout_check_unsolicited_sequence() local 146 u32 payload_length = ntoh24(hdr->dlength); in iscsit_dataout_check_unsolicited_sequence() [all …]
|
/linux-4.4.14/drivers/bluetooth/ |
D | hci_h5.c | 49 #define H5_HDR_SEQ(hdr) ((hdr)[0] & 0x07) argument 50 #define H5_HDR_ACK(hdr) (((hdr)[0] >> 3) & 0x07) argument 51 #define H5_HDR_CRC(hdr) (((hdr)[0] >> 6) & 0x01) argument 52 #define H5_HDR_RELIABLE(hdr) (((hdr)[0] >> 7) & 0x01) argument 53 #define H5_HDR_PKT_TYPE(hdr) ((hdr)[1] & 0x0f) argument 54 #define H5_HDR_LEN(hdr) ((((hdr)[1] >> 4) & 0xff) + ((hdr)[2] << 4)) argument 293 const unsigned char *hdr = h5->rx_skb->data; in h5_handle_internal_rx() local 298 if (H5_HDR_PKT_TYPE(hdr) != HCI_3WIRE_LINK_PKT) in h5_handle_internal_rx() 301 if (H5_HDR_LEN(hdr) < 2) in h5_handle_internal_rx() 319 if (H5_HDR_LEN(hdr) > 2) in h5_handle_internal_rx() [all …]
|
/linux-4.4.14/fs/nfs/flexfilelayout/ |
D | flexfilelayout.c | 900 static void ff_layout_reset_write(struct nfs_pgio_header *hdr, bool retry_pnfs) in ff_layout_reset_write() argument 902 struct rpc_task *task = &hdr->task; in ff_layout_reset_write() 904 pnfs_layoutcommit_inode(hdr->inode, false); in ff_layout_reset_write() 909 hdr->task.tk_pid, in ff_layout_reset_write() 910 hdr->inode->i_sb->s_id, in ff_layout_reset_write() 911 (unsigned long long)NFS_FILEID(hdr->inode), in ff_layout_reset_write() 912 hdr->args.count, in ff_layout_reset_write() 913 (unsigned long long)hdr->args.offset); in ff_layout_reset_write() 915 if (!hdr->dreq) { in ff_layout_reset_write() 918 ctx = nfs_list_entry(hdr->pages.next)->wb_context; in ff_layout_reset_write() [all …]
|
/linux-4.4.14/fs/cifs/ |
D | smb2misc.c | 33 check_smb2_hdr(struct smb2_hdr *hdr, __u64 mid) in check_smb2_hdr() argument 35 __u64 wire_mid = le64_to_cpu(hdr->MessageId); in check_smb2_hdr() 41 if ((*(__le32 *)hdr->ProtocolId == SMB2_PROTO_NUMBER) && in check_smb2_hdr() 43 if (hdr->Flags & SMB2_FLAGS_SERVER_TO_REDIR) in check_smb2_hdr() 47 if (hdr->Command == SMB2_OPLOCK_BREAK) in check_smb2_hdr() 53 if (*(__le32 *)hdr->ProtocolId != SMB2_PROTO_NUMBER) in check_smb2_hdr() 55 *(unsigned int *) hdr->ProtocolId); in check_smb2_hdr() 98 struct smb2_hdr *hdr = (struct smb2_hdr *)buf; in smb2_check_message() local 99 struct smb2_pdu *pdu = (struct smb2_pdu *)hdr; in smb2_check_message() 100 __u64 mid = le64_to_cpu(hdr->MessageId); in smb2_check_message() [all …]
|
D | cifspdu.h | 447 get_bcc(struct smb_hdr *hdr) in get_bcc() argument 449 __le16 *bc_ptr = (__le16 *)BCC(hdr); in get_bcc() 456 put_bcc(__u16 count, struct smb_hdr *hdr) in put_bcc() argument 458 __le16 *bc_ptr = (__le16 *)BCC(hdr); in put_bcc() 507 struct smb_hdr hdr; /* wct = 0 */ member 517 struct smb_hdr hdr; /* wct = 13 */ member 541 struct smb_hdr hdr; /* wct = 17 */ member 597 struct smb_hdr hdr; /* wct = 12 */ member 616 struct smb_hdr hdr; /* wct = 13 */ member 639 struct smb_hdr hdr; /* wct = 4 */ member [all …]
|
D | smb2pdu.h | 121 struct smb2_hdr hdr; member 160 struct smb2_hdr hdr; member 184 struct smb2_hdr hdr; member 248 struct smb2_hdr hdr; member 271 struct smb2_hdr hdr; member 288 struct smb2_hdr hdr; member 297 struct smb2_hdr hdr; member 303 struct smb2_hdr hdr; member 312 struct smb2_hdr hdr; member 321 struct smb2_hdr hdr; member [all …]
|
/linux-4.4.14/arch/ia64/kernel/ |
D | perfmon_default_smpl.c | 79 pfm_default_smpl_hdr_t *hdr; in default_init() local 82 hdr = (pfm_default_smpl_hdr_t *)buf; in default_init() 84 hdr->hdr_version = PFM_DEFAULT_SMPL_VERSION; in default_init() 85 hdr->hdr_buf_size = arg->buf_size; in default_init() 86 hdr->hdr_cur_offs = sizeof(*hdr); in default_init() 87 hdr->hdr_overflows = 0UL; in default_init() 88 hdr->hdr_count = 0UL; in default_init() 93 hdr->hdr_buf_size, in default_init() 94 sizeof(*hdr), in default_init() 95 hdr->hdr_version, in default_init() [all …]
|
/linux-4.4.14/drivers/block/rsxx/ |
D | config.c | 34 cfg->hdr.version = RSXX_CFG_VERSION; in initialize_config() 57 static void config_hdr_be_to_cpu(struct card_cfg_hdr *hdr) in config_hdr_be_to_cpu() argument 59 hdr->version = be32_to_cpu((__force __be32) hdr->version); in config_hdr_be_to_cpu() 60 hdr->crc = be32_to_cpu((__force __be32) hdr->crc); in config_hdr_be_to_cpu() 63 static void config_hdr_cpu_to_be(struct card_cfg_hdr *hdr) in config_hdr_cpu_to_be() argument 65 hdr->version = (__force u32) cpu_to_be32(hdr->version); in config_hdr_cpu_to_be() 66 hdr->crc = (__force u32) cpu_to_be32(hdr->crc); in config_hdr_cpu_to_be() 105 if (unlikely(cfg.hdr.version != RSXX_CFG_VERSION)) { in rsxx_save_config() 108 cfg.hdr.version); in rsxx_save_config() 115 cfg.hdr.crc = config_data_crc32(&cfg); in rsxx_save_config() [all …]
|
/linux-4.4.14/drivers/staging/unisys/include/ |
D | channel.h | 367 struct channel_header __iomem *hdr = ch; in spar_channel_client_acquire_os() local 369 if (readl(&hdr->cli_state_os) == CHANNELCLI_DISABLED) { in spar_channel_client_acquire_os() 370 if ((readb(&hdr->cli_error_os) in spar_channel_client_acquire_os() 373 writeb(readb(&hdr->cli_error_os) | in spar_channel_client_acquire_os() 375 &hdr->cli_error_os); in spar_channel_client_acquire_os() 383 if ((readl(&hdr->cli_state_os) != CHANNELCLI_OWNED) && in spar_channel_client_acquire_os() 384 (readl(&hdr->cli_state_boot) == CHANNELCLI_DISABLED)) { in spar_channel_client_acquire_os() 388 ULTRA_CHANNELCLI_STRING(readl(&hdr->cli_state_os)), in spar_channel_client_acquire_os() 389 readl(&hdr->cli_state_os), in spar_channel_client_acquire_os() 392 writel(CHANNELCLI_OWNED, &hdr->cli_state_os); in spar_channel_client_acquire_os() [all …]
|
/linux-4.4.14/sound/soc/ |
D | soc-topology.c | 249 static enum snd_soc_dobj_type get_dobj_type(struct snd_soc_tplg_hdr *hdr, in get_dobj_type() argument 252 switch (hdr->type) { in get_dobj_type() 272 struct snd_soc_tplg_ctl_hdr *hdr, int index) in soc_bind_err() argument 276 hdr->ops.get, hdr->ops.put, hdr->ops.info, index, in soc_bind_err() 281 struct snd_soc_tplg_ctl_hdr *hdr, const char *name) in soc_control_err() argument 285 name, hdr->ops.get, hdr->ops.put, hdr->ops.info, in soc_control_err() 291 struct snd_soc_tplg_hdr *hdr) in soc_tplg_vendor_load_() argument 296 ret = tplg->ops->vendor_load(tplg->comp, hdr); in soc_tplg_vendor_load_() 299 hdr->vendor_type); in soc_tplg_vendor_load_() 308 hdr->type, hdr->vendor_type); in soc_tplg_vendor_load_() [all …]
|
/linux-4.4.14/net/bluetooth/ |
D | mgmt_util.c | 34 struct mgmt_hdr *hdr; in mgmt_send_event() local 36 skb = alloc_skb(sizeof(*hdr) + data_len, GFP_KERNEL); in mgmt_send_event() 40 hdr = (void *) skb_put(skb, sizeof(*hdr)); in mgmt_send_event() 41 hdr->opcode = cpu_to_le16(event); in mgmt_send_event() 43 hdr->index = cpu_to_le16(hdev->id); in mgmt_send_event() 45 hdr->index = cpu_to_le16(MGMT_INDEX_NONE); in mgmt_send_event() 46 hdr->len = cpu_to_le16(data_len); in mgmt_send_event() 63 struct mgmt_hdr *hdr; in mgmt_cmd_status() local 69 skb = alloc_skb(sizeof(*hdr) + sizeof(*ev), GFP_KERNEL); in mgmt_cmd_status() 73 hdr = (void *) skb_put(skb, sizeof(*hdr)); in mgmt_cmd_status() [all …]
|
D | a2mp.c | 123 struct a2mp_cmd *hdr) in a2mp_command_rej() argument 127 if (le16_to_cpu(hdr->len) < sizeof(*rej)) in a2mp_command_rej() 130 BT_DBG("ident %d reason %d", hdr->ident, le16_to_cpu(rej->reason)); in a2mp_command_rej() 138 struct a2mp_cmd *hdr) in a2mp_discover_req() argument 141 u16 len = le16_to_cpu(hdr->len); in a2mp_discover_req() 191 a2mp_send(mgr, A2MP_DISCOVER_RSP, hdr->ident, len, rsp); in a2mp_discover_req() 198 struct a2mp_cmd *hdr) in a2mp_discover_rsp() argument 201 u16 len = le16_to_cpu(hdr->len); in a2mp_discover_rsp() 275 struct a2mp_cmd *hdr) in a2mp_change_notify() argument 299 struct a2mp_cmd *hdr) in a2mp_getinfo_req() argument [all …]
|
/linux-4.4.14/arch/powerpc/boot/ |
D | wii.c | 54 struct mipc_infohdr **hdrp, *hdr; in mipc_get_infohdr() local 60 hdr = NULL; in mipc_get_infohdr() 64 hdr = *hdrp; in mipc_get_infohdr() 65 if (mipc_check_address((u32)hdr)) { in mipc_get_infohdr() 66 printf("mini: invalid hdr %08X\n", (u32)hdr); in mipc_get_infohdr() 67 hdr = NULL; in mipc_get_infohdr() 70 if (memcmp(hdr->magic, "IPC", 3)) { in mipc_get_infohdr() 72 hdr = NULL; in mipc_get_infohdr() 77 return hdr; in mipc_get_infohdr() 82 struct mipc_infohdr *hdr; in mipc_get_mem2_boundary() local [all …]
|
D | gunzip_util.c | 44 char *hdr = src; in gunzip_start() local 50 if ((hdr[0] == 0x1f) && (hdr[1] == 0x8b)) { in gunzip_start() 60 flags = hdr[3]; in gunzip_start() 61 if (hdr[2] != Z_DEFLATED || (flags & RESERVED) != 0) in gunzip_start() 64 hdrlen = 12 + hdr[10] + (hdr[11] << 8); in gunzip_start() 66 while (hdr[hdrlen++] != 0) in gunzip_start() 69 while (hdr[hdrlen++] != 0) in gunzip_start()
|
/linux-4.4.14/net/ipv6/ |
D | ip6_input.c | 67 const struct ipv6hdr *hdr; in ipv6_rcv() local 104 if (unlikely(!pskb_may_pull(skb, sizeof(*hdr)))) in ipv6_rcv() 107 hdr = ipv6_hdr(skb); in ipv6_rcv() 109 if (hdr->version != 6) in ipv6_rcv() 114 (ipv6_get_dsfield(hdr) & INET_ECN_MASK), in ipv6_rcv() 122 ipv6_addr_loopback(&hdr->daddr)) in ipv6_rcv() 133 ipv6_addr_is_multicast(&hdr->daddr) && in ipv6_rcv() 134 IPV6_ADDR_MC_SCOPE(&hdr->daddr) == 1) in ipv6_rcv() 142 if (ipv6_addr_is_multicast(&hdr->daddr) && in ipv6_rcv() 143 IPV6_ADDR_MC_SCOPE(&hdr->daddr) == 0) in ipv6_rcv() [all …]
|
/linux-4.4.14/arch/s390/hypfs/ |
D | hypfs_diag.c | 93 static inline __u8 info_blk_hdr__npar(enum diag204_format type, void *hdr) in info_blk_hdr__npar() argument 96 return ((struct info_blk_hdr *)hdr)->npar; in info_blk_hdr__npar() 98 return ((struct x_info_blk_hdr *)hdr)->npar; in info_blk_hdr__npar() 101 static inline __u8 info_blk_hdr__flags(enum diag204_format type, void *hdr) in info_blk_hdr__flags() argument 104 return ((struct info_blk_hdr *)hdr)->flags; in info_blk_hdr__flags() 106 return ((struct x_info_blk_hdr *)hdr)->flags; in info_blk_hdr__flags() 109 static inline __u16 info_blk_hdr__pcpus(enum diag204_format type, void *hdr) in info_blk_hdr__pcpus() argument 112 return ((struct info_blk_hdr *)hdr)->phys_cpus; in info_blk_hdr__pcpus() 114 return ((struct x_info_blk_hdr *)hdr)->phys_cpus; in info_blk_hdr__pcpus() 152 static inline __u8 part_hdr__rcpus(enum diag204_format type, void *hdr) in part_hdr__rcpus() argument [all …]
|
D | hypfs_diag0c.c | 99 memset(&diag0c_data->hdr, 0, sizeof(diag0c_data->hdr)); in dbfs_diag0c_create() 100 get_tod_clock_ext(diag0c_data->hdr.tod_ext); in dbfs_diag0c_create() 101 diag0c_data->hdr.len = count * sizeof(struct hypfs_diag0c_entry); in dbfs_diag0c_create() 102 diag0c_data->hdr.version = DBFS_D0C_HDR_VERSION; in dbfs_diag0c_create() 103 diag0c_data->hdr.count = count; in dbfs_diag0c_create() 106 *size = diag0c_data->hdr.len + sizeof(struct hypfs_diag0c_hdr); in dbfs_diag0c_create()
|
/linux-4.4.14/drivers/net/wireless/libertas/ |
D | host.h | 395 struct cmd_header hdr; member 406 struct cmd_header hdr; member 441 struct cmd_header hdr; member 459 struct cmd_header hdr; member 467 struct cmd_header hdr; member 475 struct cmd_header hdr; member 493 struct cmd_header hdr; member 499 struct cmd_header hdr; member 506 struct cmd_header hdr; member 514 struct cmd_header hdr; member [all …]
|
/linux-4.4.14/include/uapi/linux/ |
D | virtio_gpu.h | 110 struct virtio_gpu_ctrl_hdr hdr; member 129 struct virtio_gpu_ctrl_hdr hdr; member 136 struct virtio_gpu_ctrl_hdr hdr; member 145 struct virtio_gpu_ctrl_hdr hdr; member 153 struct virtio_gpu_ctrl_hdr hdr; member 161 struct virtio_gpu_ctrl_hdr hdr; member 176 struct virtio_gpu_ctrl_hdr hdr; member 183 struct virtio_gpu_ctrl_hdr hdr; member 191 struct virtio_gpu_ctrl_hdr hdr; member 208 struct virtio_gpu_ctrl_hdr hdr; member [all …]
|
/linux-4.4.14/arch/x86/kernel/cpu/mcheck/ |
D | mce-apei.c | 75 struct cper_record_header hdr; member 85 memcpy(rcd.hdr.signature, CPER_SIG_RECORD, CPER_SIG_SIZE); in apei_write_mce() 86 rcd.hdr.revision = CPER_RECORD_REV; in apei_write_mce() 87 rcd.hdr.signature_end = CPER_SIG_END; in apei_write_mce() 88 rcd.hdr.section_count = 1; in apei_write_mce() 89 rcd.hdr.error_severity = CPER_SEV_FATAL; in apei_write_mce() 91 rcd.hdr.validation_bits = 0; in apei_write_mce() 92 rcd.hdr.record_length = sizeof(rcd); in apei_write_mce() 93 rcd.hdr.creator_id = CPER_CREATOR_MCE; in apei_write_mce() 94 rcd.hdr.notification_type = CPER_NOTIFY_MCE; in apei_write_mce() [all …]
|
/linux-4.4.14/drivers/staging/rdma/amso1100/ |
D | c2_wr.h | 317 struct c2wr_hdr hdr; member 324 struct c2wr_hdr hdr; member 334 struct c2wr_hdr hdr; member 342 struct c2wr_hdr hdr; member 384 struct c2wr_hdr hdr; member 392 struct c2wr_hdr hdr; member 406 struct c2wr_hdr hdr; member 414 struct c2wr_hdr hdr; member 426 struct c2wr_hdr hdr; member 431 struct c2wr_hdr hdr; member [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | cstep.c | 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz) in nvbios_cstepTe() argument 43 *hdr = nvbios_rd08(bios, cstep + 1); in nvbios_cstepTe() 59 nvbios_cstepEe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr) in nvbios_cstepEe() argument 62 u16 data = nvbios_cstepTe(bios, ver, hdr, &cnt, &len, &xnr, &xsz); in nvbios_cstepEe() 64 data = data + *hdr + (idx * len); in nvbios_cstepEe() 65 *hdr = len; in nvbios_cstepEe() 72 nvbios_cstepEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, in nvbios_cstepEp() argument 75 u16 data = nvbios_cstepEe(bios, idx, ver, hdr); in nvbios_cstepEp() 85 nvbios_cstepEm(struct nvkm_bios *bios, u8 pstate, u8 *ver, u8 *hdr, in nvbios_cstepEm() argument 89 while ((data = nvbios_cstepEp(bios, idx++, ver, hdr, info))) { in nvbios_cstepEm() [all …]
|
D | M0205.c | 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_M0205Te() argument 42 *hdr = nvbios_rd08(bios, data + 0x01); in nvbios_M0205Te() 59 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz, in nvbios_M0205Tp() argument 62 u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, snr, ssz); in nvbios_M0205Tp() 76 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_M0205Ee() argument 79 u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_M0205Ee() 81 data = data + *hdr + idx * (*len + (snr * ssz)); in nvbios_M0205Ee() 82 *hdr = *len; in nvbios_M0205Ee() 92 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, in nvbios_M0205Ep() argument 95 u32 data = nvbios_M0205Ee(bios, idx, ver, hdr, cnt, len); in nvbios_M0205Ep() [all …]
|
D | dp.c | 29 nvbios_dp_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_dp_table() argument 43 *hdr = nvbios_rd08(bios, data + 0x01); in nvbios_dp_table() 59 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_dpout_entry() argument 61 u16 data = nvbios_dp_table(bios, ver, hdr, cnt, len); in nvbios_dpout_entry() 63 u16 outp = nvbios_rd16(bios, data + *hdr + idx * *len); in nvbios_dpout_entry() 67 *hdr = nvbios_rd08(bios, data + 0x04); in nvbios_dpout_entry() 73 *hdr = nvbios_rd08(bios, data + 0x04); in nvbios_dpout_entry() 88 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, in nvbios_dpout_parse() argument 91 u16 data = nvbios_dpout_entry(bios, idx, ver, hdr, cnt, len); in nvbios_dpout_parse() 130 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, in nvbios_dpout_match() argument [all …]
|
D | disp.c | 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *sub) in nvbios_disp_table() argument 43 *hdr = nvbios_rd08(bios, data + 0x01); in nvbios_disp_table() 61 u8 hdr, cnt; in nvbios_disp_entry() local 62 u16 data = nvbios_disp_table(bios, ver, &hdr, &cnt, len, sub); in nvbios_disp_entry() 64 return data + hdr + (idx * *len); in nvbios_disp_entry() 83 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_outp_entry() argument 86 u16 data = nvbios_disp_parse(bios, idx, ver, len, hdr, &info); in nvbios_outp_entry() 97 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *info) in nvbios_outp_parse() argument 99 u16 data = nvbios_outp_entry(bios, idx, ver, hdr, cnt, len); in nvbios_outp_parse() 100 if (data && *hdr >= 0x0a) { in nvbios_outp_parse() [all …]
|
D | boost.c | 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_boostTe() argument 43 *hdr = nvbios_rd08(bios, boost + 1); in nvbios_boostTe() 60 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_boostEe() argument 63 u16 data = nvbios_boostTe(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_boostEe() 65 data = data + *hdr + (idx * (*len + (snr * ssz))); in nvbios_boostEe() 66 *hdr = *len; in nvbios_boostEe() 76 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_boostE *info) in nvbios_boostEp() argument 78 u16 data = nvbios_boostEe(bios, idx, ver, hdr, cnt, len); in nvbios_boostEp() 90 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_boostE *info) in nvbios_boostEm() argument 93 while ((data = nvbios_boostEp(bios, idx++, ver, hdr, cnt, len, info))) { in nvbios_boostEm() [all …]
|
D | M0203.c | 29 nvbios_M0203Te(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_M0203Te() argument 41 *hdr = nvbios_rd08(bios, data + 0x01); in nvbios_M0203Te() 55 nvbios_M0203Tp(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, in nvbios_M0203Tp() argument 58 u32 data = nvbios_M0203Te(bios, ver, hdr, cnt, len); in nvbios_M0203Tp() 72 nvbios_M0203Ee(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr) in nvbios_M0203Ee() argument 75 u32 data = nvbios_M0203Te(bios, ver, hdr, &cnt, &len); in nvbios_M0203Ee() 77 data = data + *hdr + idx * len; in nvbios_M0203Ee() 78 *hdr = len; in nvbios_M0203Ee() 85 nvbios_M0203Ep(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, in nvbios_M0203Ep() argument 88 u32 data = nvbios_M0203Ee(bios, idx, ver, hdr); in nvbios_M0203Ep() [all …]
|
D | M0209.c | 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_M0209Te() argument 42 *hdr = nvbios_rd08(bios, data + 0x01); in nvbios_M0209Te() 59 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_M0209Ee() argument 62 u32 data = nvbios_M0209Te(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_M0209Ee() 64 data = data + *hdr + idx * (*len + (snr * ssz)); in nvbios_M0209Ee() 65 *hdr = *len; in nvbios_M0209Ee() 75 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0209E *info) in nvbios_M0209Ep() argument 77 u32 data = nvbios_M0209Ee(bios, idx, ver, hdr, cnt, len); in nvbios_M0209Ep() 95 nvbios_M0209Se(struct nvkm_bios *bios, int ent, int idx, u8 *ver, u8 *hdr) in nvbios_M0209Se() argument 99 u32 data = nvbios_M0209Ee(bios, ent, ver, hdr, &cnt, &len); in nvbios_M0209Se() [all …]
|
D | xpio.c | 29 dcb_xpiod_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in dcb_xpiod_table() argument 31 u16 data = dcb_gpio_table(bios, ver, hdr, cnt, len); in dcb_xpiod_table() 32 if (data && *ver >= 0x40 && *hdr >= 0x06) { in dcb_xpiod_table() 36 *hdr = nvbios_rd08(bios, data + 0x01); in dcb_xpiod_table() 47 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in dcb_xpio_table() argument 49 u16 data = dcb_xpiod_table(bios, ver, hdr, cnt, len); in dcb_xpio_table() 51 u16 xpio = nvbios_rd16(bios, data + *hdr + (idx * *len)); in dcb_xpio_table() 54 *hdr = nvbios_rd08(bios, data + 0x01); in dcb_xpio_table() 65 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_xpio *info) in dcb_xpio_parse() argument 67 u16 data = dcb_xpio_table(bios, idx, ver, hdr, cnt, len); in dcb_xpio_parse()
|
D | perf.c | 29 nvbios_perf_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, in nvbios_perf_table() argument 40 *hdr = nvbios_rd08(bios, perf + 1); in nvbios_perf_table() 63 *hdr = nvbios_rd08(bios, perf + 0); in nvbios_perf_table() 79 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_perf_entry() argument 82 u16 perf = nvbios_perf_table(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_perf_entry() 84 perf = perf + *hdr + (idx * (*len + (snr * ssz))); in nvbios_perf_entry() 85 *hdr = *len; in nvbios_perf_entry() 95 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_perfE *info) in nvbios_perfEp() argument 97 u16 perf = nvbios_perf_entry(bios, idx, ver, hdr, cnt, len); in nvbios_perfEp() 107 if (*hdr > 0x38) in nvbios_perfEp() [all …]
|
D | mxm.c | 29 mxm_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr) in mxm_table() argument 40 *hdr = x.length; in mxm_table() 41 if (*ver != 1 || *hdr < 3) { in mxm_table() 42 nvkm_warn(subdev, "BIT 'x' table %d/%d unknown\n", *ver, *hdr); in mxm_table() 78 u8 ver, hdr; in mxm_sor_map() local 79 u16 mxm = mxm_table(bios, &ver, &hdr); in mxm_sor_map() 80 if (mxm && hdr >= 6) { in mxm_sor_map() 115 u8 ver, hdr; in mxm_ddc_map() local 116 u16 mxm = mxm_table(bios, &ver, &hdr); in mxm_ddc_map() 117 if (mxm && hdr >= 8) { in mxm_ddc_map()
|
D | P0260.c | 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz) in nvbios_P0260Te() argument 42 *hdr = nvbios_rd08(bios, data + 1); in nvbios_P0260Te() 60 u8 hdr, cnt, xnr, xsz; in nvbios_P0260Ee() local 61 u32 data = nvbios_P0260Te(bios, ver, &hdr, &cnt, len, &xnr, &xsz); in nvbios_P0260Ee() 63 return data + hdr + (idx * *len); in nvbios_P0260Ee() 86 u8 hdr, cnt, len, xnr; in nvbios_P0260Xe() local 87 u32 data = nvbios_P0260Te(bios, ver, &hdr, &cnt, &len, &xnr, xsz); in nvbios_P0260Xe() 89 return data + hdr + (cnt * len) + (idx * *xsz); in nvbios_P0260Xe() 94 nvbios_P0260Xp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, in nvbios_P0260Xp() argument 97 u32 data = nvbios_P0260Xe(bios, idx, ver, hdr); in nvbios_P0260Xp()
|
D | gpio.c | 30 dcb_gpio_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in dcb_gpio_table() argument 33 u16 dcb = dcb_table(bios, ver, hdr, cnt, len); in dcb_gpio_table() 35 if (*ver >= 0x30 && *hdr >= 0x0c) in dcb_gpio_table() 44 *hdr = 3; in dcb_gpio_table() 49 *hdr = nvbios_rd08(bios, data + 0x01); in dcb_gpio_table() 63 u8 hdr, cnt, xver; /* use gpio version for xpio entry parsing */ in dcb_gpio_entry() local 67 gpio = dcb_gpio_table(bios, ver, &hdr, &cnt, len); in dcb_gpio_entry() 69 gpio = dcb_xpio_table(bios, idx, &xver, &hdr, &cnt, len); in dcb_gpio_entry() 72 return gpio + hdr + (ent * *len); in dcb_gpio_entry() 122 u8 hdr, cnt, i = 0; in dcb_gpio_match() local [all …]
|
D | conn.c | 29 nvbios_connTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_connTe() argument 31 u32 dcb = dcb_table(bios, ver, hdr, cnt, len); in nvbios_connTe() 32 if (dcb && *ver >= 0x30 && *hdr >= 0x16) { in nvbios_connTe() 36 *hdr = nvbios_rd08(bios, data + 1); in nvbios_connTe() 46 nvbios_connTp(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, in nvbios_connTp() argument 49 u32 data = nvbios_connTe(bios, ver, hdr, cnt, len); in nvbios_connTp() 64 u8 hdr, cnt; in nvbios_connEe() local 65 u32 data = nvbios_connTe(bios, ver, &hdr, &cnt, len); in nvbios_connEe() 67 return data + hdr + (idx * *len); in nvbios_connEe()
|
D | pmu.c | 45 nvbios_pmuTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_pmuTe() argument 55 *hdr = nvbios_rd08(bios, data + 0x01); in nvbios_pmuTe() 65 nvbios_pmuEe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr) in nvbios_pmuEe() argument 68 u32 data = nvbios_pmuTe(bios, ver, hdr, &cnt, &len); in nvbios_pmuEe() 70 data = data + *hdr + (idx * len); in nvbios_pmuEe() 71 *hdr = len; in nvbios_pmuEe() 78 nvbios_pmuEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, in nvbios_pmuEp() argument 81 u32 data = nvbios_pmuEe(bios, idx, ver, hdr); in nvbios_pmuEp() 96 u8 ver, hdr, idx = 0; in nvbios_pmuRm() local 99 while ((data = nvbios_pmuEp(bios, idx++, &ver, &hdr, &pmuE))) { in nvbios_pmuRm()
|
D | fan.c | 29 nvbios_fan_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_fan_table() argument 42 *hdr = nvbios_rd08(bios, fan + 1); in nvbios_fan_table() 56 nvbios_fan_entry(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, in nvbios_fan_entry() argument 59 u16 data = nvbios_fan_table(bios, ver, hdr, cnt, len); in nvbios_fan_entry() 61 return data + *hdr + (idx * (*len)); in nvbios_fan_entry() 68 u8 ver, hdr, cnt, len; in nvbios_fan_parse() local 70 u16 data = nvbios_fan_entry(bios, 0, &ver, &hdr, &cnt, &len); in nvbios_fan_parse()
|
D | volt.c | 29 nvbios_volt_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_volt_table() argument 45 *hdr = 5; in nvbios_volt_table() 50 *hdr = nvbios_rd08(bios, volt + 1); in nvbios_volt_table() 57 *hdr = nvbios_rd08(bios, volt + 1); in nvbios_volt_table() 69 nvbios_volt_parse(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, in nvbios_volt_parse() argument 72 u16 volt = nvbios_volt_table(bios, ver, hdr, cnt, len); in nvbios_volt_parse() 119 u8 hdr, cnt; in nvbios_volt_entry() local 120 u16 volt = nvbios_volt_table(bios, ver, &hdr, &cnt, len); in nvbios_volt_entry() 122 volt = volt + hdr + (idx * *len); in nvbios_volt_entry()
|
D | timing.c | 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_timingTe() argument 46 *hdr = nvbios_rd08(bios, timing + 1); in nvbios_timingTe() 53 *hdr = nvbios_rd08(bios, timing + 1); in nvbios_timingTe() 70 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_timingEe() argument 73 u16 timing = nvbios_timingTe(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_timingEe() 75 timing += *hdr + idx * (*len + (snr * ssz)); in nvbios_timingEe() 76 *hdr = *len; in nvbios_timingEe() 86 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *p) in nvbios_timingEp() argument 88 u16 data = nvbios_timingEe(bios, idx, ver, hdr, cnt, len), temp; in nvbios_timingEp() 90 p->timing_hdr = *hdr; in nvbios_timingEp() [all …]
|
D | rammap.c | 29 nvbios_rammapTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, in nvbios_rammapTe() argument 44 *hdr = nvbios_rd08(bios, rammap + 1); in nvbios_rammapTe() 61 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_rammapEe() argument 64 u16 rammap = nvbios_rammapTe(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_rammapEe() 66 rammap = rammap + *hdr + (idx * (*len + (snr * ssz))); in nvbios_rammapEe() 67 *hdr = *len; in nvbios_rammapEe() 92 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *p) in nvbios_rammapEp() argument 94 u32 data = nvbios_rammapEe(bios, idx, ver, hdr, cnt, len), temp; in nvbios_rammapEp() 97 p->rammap_hdr = *hdr; in nvbios_rammapEp() 134 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *info) in nvbios_rammapEm() argument [all …]
|
/linux-4.4.14/net/mac802154/ |
D | rx.c | 42 struct sk_buff *skb, const struct ieee802154_hdr *hdr) in ieee802154_subif_frame() argument 135 ieee802154_parse_frame_start(struct sk_buff *skb, struct ieee802154_hdr *hdr) in ieee802154_parse_frame_start() argument 142 hlen = ieee802154_hdr_pull(skb, hdr); in ieee802154_parse_frame_start() 148 pr_debug("fc: %04x dsn: %02x\n", le16_to_cpup((__le16 *)&hdr->fc), in ieee802154_parse_frame_start() 149 hdr->seq); in ieee802154_parse_frame_start() 151 cb->type = hdr->fc.type; in ieee802154_parse_frame_start() 152 cb->ackreq = hdr->fc.ack_request; in ieee802154_parse_frame_start() 153 cb->secen = hdr->fc.security_enabled; in ieee802154_parse_frame_start() 155 ieee802154_print_addr("destination", &hdr->dest); in ieee802154_parse_frame_start() 156 ieee802154_print_addr("source", &hdr->source); in ieee802154_parse_frame_start() [all …]
|
D | iface.c | 339 struct ieee802154_hdr *hdr, in mac802154_set_header_security() argument 358 hdr->fc.security_enabled = 1; in mac802154_set_header_security() 359 hdr->sec.level = level; in mac802154_set_header_security() 360 hdr->sec.key_id_mode = params.out_key.mode; in mac802154_set_header_security() 362 hdr->sec.short_src = params.out_key.short_source; in mac802154_set_header_security() 364 hdr->sec.extended_src = params.out_key.extended_source; in mac802154_set_header_security() 365 hdr->sec.key_id = params.out_key.id; in mac802154_set_header_security() 376 struct ieee802154_hdr hdr; in ieee802154_header_create() local 385 memset(&hdr.fc, 0, sizeof(hdr.fc)); in ieee802154_header_create() 386 hdr.fc.type = cb->type; in ieee802154_header_create() [all …]
|
D | llsec.c | 549 const struct ieee802154_hdr *hdr, in llsec_lookup_key() argument 554 u8 key_id_mode = hdr->sec.key_id_mode; in llsec_lookup_key() 560 if (hdr->fc.type == IEEE802154_FC_TYPE_BEACON) { in llsec_lookup_key() 571 if (!(key_entry->key->frame_types & BIT(hdr->fc.type))) in llsec_lookup_key() 581 if (id->id != hdr->sec.key_id) in llsec_lookup_key() 586 id->short_source == hdr->sec.short_src) || in llsec_lookup_key() 588 id->extended_source == hdr->sec.extended_src)) in llsec_lookup_key() 618 const struct ieee802154_hdr *hdr, in llsec_do_encrypt_unauth() argument 629 llsec_geniv(iv, sec->params.hwaddr, &hdr->sec); in llsec_do_encrypt_unauth() 648 const struct ieee802154_hdr *hdr, in llsec_do_encrypt_auth() argument [all …]
|
/linux-4.4.14/fs/nfs/objlayout/ |
D | objlayout.c | 232 struct nfs_pgio_header *hdr; in _rpc_read_complete() local 236 hdr = container_of(task, struct nfs_pgio_header, task); in _rpc_read_complete() 238 pnfs_ld_read_done(hdr); in _rpc_read_complete() 244 struct nfs_pgio_header *hdr = oir->rpcdata; in objlayout_read_done() local 246 oir->status = hdr->task.tk_status = status; in objlayout_read_done() 248 hdr->res.count = status; in objlayout_read_done() 250 hdr->pnfs_error = status; in objlayout_read_done() 255 status, hdr->res.eof, sync); in objlayout_read_done() 258 pnfs_ld_read_done(hdr); in objlayout_read_done() 260 INIT_WORK(&hdr->task.u.tk_work, _rpc_read_complete); in objlayout_read_done() [all …]
|
D | objio_osd.c | 410 int objio_read_pagelist(struct nfs_pgio_header *hdr) in objio_read_pagelist() argument 415 ret = objio_alloc_io_state(NFS_I(hdr->inode)->layout, true, in objio_read_pagelist() 416 hdr->lseg, hdr->args.pages, hdr->args.pgbase, in objio_read_pagelist() 417 hdr->args.offset, hdr->args.count, hdr, in objio_read_pagelist() 424 hdr->args.offset, hdr->args.count); in objio_read_pagelist() 457 struct nfs_pgio_header *hdr = objios->oir.rpcdata; in __r4w_get_page() local 458 struct address_space *mapping = hdr->inode->i_mapping; in __r4w_get_page() 461 loff_t i_size = i_size_read(hdr->inode); in __r4w_get_page() 498 int objio_write_pagelist(struct nfs_pgio_header *hdr, int how) in objio_write_pagelist() argument 503 ret = objio_alloc_io_state(NFS_I(hdr->inode)->layout, false, in objio_write_pagelist() [all …]
|
/linux-4.4.14/drivers/staging/rtl8712/ |
D | rtl871x_recv.h | 142 return precvframe->u.hdr.rx_head; in get_rxmem() 150 return precvframe->u.hdr.rx_data; in get_recvframe_data() 159 precvframe->u.hdr.rx_data += sz; in recvframe_pull() 160 if (precvframe->u.hdr.rx_data > precvframe->u.hdr.rx_tail) { in recvframe_pull() 161 precvframe->u.hdr.rx_data -= sz; in recvframe_pull() 164 precvframe->u.hdr.len -= sz; in recvframe_pull() 165 return precvframe->u.hdr.rx_data; in recvframe_pull() 175 precvframe->u.hdr.rx_tail += sz; in recvframe_put() 176 if (precvframe->u.hdr.rx_tail > precvframe->u.hdr.rx_end) { in recvframe_put() 177 precvframe->u.hdr.rx_tail -= sz; in recvframe_put() [all …]
|
D | rtl8712_recv.c | 140 struct _adapter *padapter = precvframe->u.hdr.adapter; in r8712_free_recvframe() 143 if (precvframe->u.hdr.pkt) { in r8712_free_recvframe() 144 dev_kfree_skb_any(precvframe->u.hdr.pkt);/*free skb by driver*/ in r8712_free_recvframe() 145 precvframe->u.hdr.pkt = NULL; in r8712_free_recvframe() 148 list_del_init(&(precvframe->u.hdr.list)); in r8712_free_recvframe() 149 list_add_tail(&(precvframe->u.hdr.list), &pfree_recv_queue->queue); in r8712_free_recvframe() 209 pfhdr = &prframe->u.hdr; in recvframe_defrag() 223 pnfhdr = &pnextrframe->u.hdr; in recvframe_defrag() 265 pfhdr = &precv_frame->u.hdr; in r8712_recvframe_chk_defrag() 319 if ((prtnframe != NULL) && (prtnframe->u.hdr.attrib.privacy)) { in r8712_recvframe_chk_defrag() [all …]
|
D | rtl871x_recv.c | 93 precvframe->u.hdr.adapter = padapter; in _r8712_init_recv_priv() 121 list_del_init(&precvframe->u.hdr.list); in r8712_alloc_recvframe() 122 padapter = precvframe->u.hdr.adapter; in r8712_alloc_recvframe() 168 struct rx_pkt_attrib *prxattrib = &precvframe->u.hdr.attrib; in r8712_recvframe_chkmic() 176 iv = precvframe->u.hdr.rx_data + in r8712_recvframe_chkmic() 187 datalen = precvframe->u.hdr.len - prxattrib->hdrlen - in r8712_recvframe_chkmic() 189 pframe = precvframe->u.hdr.rx_data; in r8712_recvframe_chkmic() 222 struct rx_pkt_attrib *prxattrib = &precv_frame->u.hdr.attrib; in r8712_decryptor() 262 pfhdr = &precv_frame->u.hdr; in r8712_portctrl() 303 sint tid = precv_frame->u.hdr.attrib.priority; in recv_decache() [all …]
|
/linux-4.4.14/drivers/net/wan/ |
D | dlci.c | 73 struct frhdr hdr; in dlci_header() local 77 hdr.control = FRAD_I_UI; in dlci_header() 81 hdr.IP_NLPID = FRAD_P_IP; in dlci_header() 82 hlen = sizeof(hdr.control) + sizeof(hdr.IP_NLPID); in dlci_header() 88 hdr.pad = FRAD_P_PADDING; in dlci_header() 89 hdr.NLPID = FRAD_P_SNAP; in dlci_header() 90 memset(hdr.OUI, 0, sizeof(hdr.OUI)); in dlci_header() 91 hdr.PID = htons(type); in dlci_header() 92 hlen = sizeof(hdr); in dlci_header() 100 memcpy(dest, &hdr, hlen); in dlci_header() [all …]
|
/linux-4.4.14/sound/pci/trident/ |
D | trident_memory.c | 140 search_empty(struct snd_util_memhdr *hdr, int size) in search_empty() argument 148 list_for_each(p, &hdr->block) { in search_empty() 159 blk = __snd_util_memblk_new(hdr, psize * ALIGN_PAGE_SIZE, p->prev); in search_empty() 192 struct snd_util_memhdr *hdr; in snd_trident_alloc_sg_pages() local 201 hdr = trident->tlb.memhdr; in snd_trident_alloc_sg_pages() 202 if (snd_BUG_ON(!hdr)) in snd_trident_alloc_sg_pages() 207 mutex_lock(&hdr->block_mutex); in snd_trident_alloc_sg_pages() 208 blk = search_empty(hdr, runtime->dma_bytes); in snd_trident_alloc_sg_pages() 210 mutex_unlock(&hdr->block_mutex); in snd_trident_alloc_sg_pages() 222 __snd_util_mem_free(hdr, blk); in snd_trident_alloc_sg_pages() [all …]
|
/linux-4.4.14/include/linux/mlx5/ |
D | device.h | 361 struct mlx5_inbox_hdr hdr; member 366 struct mlx5_outbox_hdr hdr; member 393 struct mlx5_inbox_hdr hdr; member 400 struct mlx5_outbox_hdr hdr; member 405 struct mlx5_inbox_hdr hdr; member 412 struct mlx5_outbox_hdr hdr; member 698 struct mlx5_inbox_hdr hdr; member 707 struct mlx5_outbox_hdr hdr; member 713 struct mlx5_inbox_hdr hdr; member 719 struct mlx5_outbox_hdr hdr; member [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
D | manage.c | 112 struct e1000_host_mng_dhcp_cookie *hdr = &hw->mng_cookie; in e1000e_enable_tx_pkt_filtering() local 141 hdr_csum = hdr->checksum; in e1000e_enable_tx_pkt_filtering() 142 hdr->checksum = 0; in e1000e_enable_tx_pkt_filtering() 143 csum = e1000_calculate_checksum((u8 *)hdr, in e1000e_enable_tx_pkt_filtering() 149 if ((hdr_csum != csum) || (hdr->signature != E1000_IAMT_SIGNATURE)) { in e1000e_enable_tx_pkt_filtering() 155 if (!(hdr->status & E1000_MNG_DHCP_COOKIE_STATUS_PARSING)) in e1000e_enable_tx_pkt_filtering() 169 struct e1000_host_mng_command_header *hdr) in e1000_mng_write_cmd_header() argument 175 hdr->checksum = e1000_calculate_checksum((u8 *)hdr, length); in e1000_mng_write_cmd_header() 180 E1000_WRITE_REG_ARRAY(hw, E1000_HOST_IF, i, *((u32 *)hdr + i)); in e1000_mng_write_cmd_header() 269 struct e1000_host_mng_command_header hdr; in e1000e_mng_write_dhcp_info() local [all …]
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
D | pd.c | 40 struct mlx5_inbox_hdr hdr; member 45 struct mlx5_outbox_hdr hdr; member 51 struct mlx5_inbox_hdr hdr; member 57 struct mlx5_outbox_hdr hdr; member 69 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_ALLOC_PD); in mlx5_core_alloc_pd() 74 if (out.hdr.status) in mlx5_core_alloc_pd() 75 return mlx5_cmd_status_to_err(&out.hdr); in mlx5_core_alloc_pd() 90 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DEALLOC_PD); in mlx5_core_dealloc_pd() 96 if (out.hdr.status) in mlx5_core_dealloc_pd() 97 return mlx5_cmd_status_to_err(&out.hdr); in mlx5_core_dealloc_pd()
|
D | mr.c | 67 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_CREATE_MKEY); in mlx5_core_create_mkey() 81 if (lout.hdr.status) { in mlx5_core_create_mkey() 82 mlx5_core_dbg(dev, "status %d\n", lout.hdr.status); in mlx5_core_create_mkey() 83 return mlx5_cmd_status_to_err(&lout.hdr); in mlx5_core_create_mkey() 129 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_MKEY); in mlx5_core_destroy_mkey() 135 if (out.hdr.status) in mlx5_core_destroy_mkey() 136 return mlx5_cmd_status_to_err(&out.hdr); in mlx5_core_destroy_mkey() 151 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_MKEY); in mlx5_core_query_mkey() 157 if (out->hdr.status) in mlx5_core_query_mkey() 158 return mlx5_cmd_status_to_err(&out->hdr); in mlx5_core_query_mkey() [all …]
|
D | mcg.c | 41 struct mlx5_inbox_hdr hdr; member 48 struct mlx5_outbox_hdr hdr; member 53 struct mlx5_inbox_hdr hdr; member 60 struct mlx5_outbox_hdr hdr; member 72 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_ATTACH_TO_MCG); in mlx5_core_attach_mcg() 79 if (out.hdr.status) in mlx5_core_attach_mcg() 80 err = mlx5_cmd_status_to_err(&out.hdr); in mlx5_core_attach_mcg() 94 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DETTACH_FROM_MCG); in mlx5_core_detach_mcg() 101 if (out.hdr.status) in mlx5_core_detach_mcg() 102 err = mlx5_cmd_status_to_err(&out.hdr); in mlx5_core_detach_mcg()
|
D | qp.c | 193 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_CREATE_QP); in mlx5_core_create_qp() 207 if (out.hdr.status) { in mlx5_core_create_qp() 210 return mlx5_cmd_status_to_err(&out.hdr); in mlx5_core_create_qp() 240 din.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_QP); in mlx5_core_create_qp() 268 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_QP); in mlx5_core_destroy_qp() 274 if (out.hdr.status) in mlx5_core_destroy_qp() 275 return mlx5_cmd_status_to_err(&out.hdr); in mlx5_core_destroy_qp() 334 in->hdr.opcode = cpu_to_be16(op); in mlx5_core_qp_modify() 340 return mlx5_cmd_status_to_err(&out.hdr); in mlx5_core_qp_modify() 367 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_QP); in mlx5_core_qp_query() [all …]
|
D | cq.c | 100 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_CREATE_CQ); in mlx5_core_create_cq() 106 if (out.hdr.status) in mlx5_core_create_cq() 107 return mlx5_cmd_status_to_err(&out.hdr); in mlx5_core_create_cq() 132 din.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_CQ); in mlx5_core_create_cq() 160 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_CQ); in mlx5_core_destroy_cq() 166 if (out.hdr.status) in mlx5_core_destroy_cq() 167 return mlx5_cmd_status_to_err(&out.hdr); in mlx5_core_destroy_cq() 189 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_CQ); in mlx5_core_query_cq() 195 if (out->hdr.status) in mlx5_core_query_cq() 196 return mlx5_cmd_status_to_err(&out->hdr); in mlx5_core_query_cq() [all …]
|
D | pagealloc.c | 70 struct mlx5_inbox_hdr hdr; member 75 struct mlx5_outbox_hdr hdr; member 82 struct mlx5_inbox_hdr hdr; member 90 struct mlx5_outbox_hdr hdr; member 174 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_PAGES); in mlx5_cmd_query_pages() 175 in.hdr.opmod = boot ? cpu_to_be16(MLX5_BOOT_PAGES) : cpu_to_be16(MLX5_INIT_PAGES); in mlx5_cmd_query_pages() 181 if (out.hdr.status) in mlx5_cmd_query_pages() 182 return mlx5_cmd_status_to_err(&out.hdr); in mlx5_cmd_query_pages() 290 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_MANAGE_PAGES); in page_notify_fail() 291 in->hdr.opmod = cpu_to_be16(MLX5_PAGES_CANT_GIVE); in page_notify_fail() [all …]
|
/linux-4.4.14/drivers/net/wireless/orinoco/ |
D | mic.c | 52 u8 hdr[ETH_HLEN + 2]; /* size of header + padding */ in orinoco_mic() local 60 memcpy(&hdr[0], da, ETH_ALEN); in orinoco_mic() 61 memcpy(&hdr[ETH_ALEN], sa, ETH_ALEN); in orinoco_mic() 62 hdr[ETH_ALEN * 2] = priority; in orinoco_mic() 63 hdr[ETH_ALEN * 2 + 1] = 0; in orinoco_mic() 64 hdr[ETH_ALEN * 2 + 2] = 0; in orinoco_mic() 65 hdr[ETH_ALEN * 2 + 3] = 0; in orinoco_mic() 69 sg_set_buf(&sg[0], hdr, sizeof(hdr)); in orinoco_mic() 77 return crypto_hash_digest(&desc, sg, data_len + sizeof(hdr), in orinoco_mic()
|
D | fw.c | 57 static const char *validate_fw(const struct orinoco_fw_header *hdr, size_t len) in validate_fw() argument 61 if (len < sizeof(*hdr)) in validate_fw() 63 if (memcmp(hdr->hdr_vers, "HFW", 3) != 0) in validate_fw() 66 hdrsize = le16_to_cpu(hdr->headersize); in validate_fw() 69 if ((hdrsize + le32_to_cpu(hdr->block_offset)) > len) in validate_fw() 71 if ((hdrsize + le32_to_cpu(hdr->pdr_offset)) > len) in validate_fw() 73 if ((hdrsize + le32_to_cpu(hdr->pri_offset)) > len) in validate_fw() 75 if ((hdrsize + le32_to_cpu(hdr->compat_offset)) > len) in validate_fw() 106 const struct orinoco_fw_header *hdr; in orinoco_dl_firmware() local 142 hdr = (const struct orinoco_fw_header *) fw_entry->data; in orinoco_dl_firmware() [all …]
|
/linux-4.4.14/net/netfilter/ |
D | nf_nat_proto_udp.c | 40 struct udphdr *hdr; in udp_manip_pkt() local 43 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) in udp_manip_pkt() 45 hdr = (struct udphdr *)(skb->data + hdroff); in udp_manip_pkt() 50 portptr = &hdr->source; in udp_manip_pkt() 54 portptr = &hdr->dest; in udp_manip_pkt() 56 if (hdr->check || skb->ip_summed == CHECKSUM_PARTIAL) { in udp_manip_pkt() 57 l3proto->csum_update(skb, iphdroff, &hdr->check, in udp_manip_pkt() 59 inet_proto_csum_replace2(&hdr->check, skb, *portptr, newport, in udp_manip_pkt() 61 if (!hdr->check) in udp_manip_pkt() 62 hdr->check = CSUM_MANGLED_0; in udp_manip_pkt()
|
D | nf_nat_proto_udplite.c | 40 struct udphdr *hdr; in udplite_manip_pkt() local 43 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) in udplite_manip_pkt() 46 hdr = (struct udphdr *)(skb->data + hdroff); in udplite_manip_pkt() 51 portptr = &hdr->source; in udplite_manip_pkt() 55 portptr = &hdr->dest; in udplite_manip_pkt() 58 l3proto->csum_update(skb, iphdroff, &hdr->check, tuple, maniptype); in udplite_manip_pkt() 59 inet_proto_csum_replace2(&hdr->check, skb, *portptr, newport, false); in udplite_manip_pkt() 60 if (!hdr->check) in udplite_manip_pkt() 61 hdr->check = CSUM_MANGLED_0; in udplite_manip_pkt()
|
D | nf_nat_proto_tcp.c | 41 struct tcphdr *hdr; in tcp_manip_pkt() local 54 hdr = (struct tcphdr *)(skb->data + hdroff); in tcp_manip_pkt() 59 portptr = &hdr->source; in tcp_manip_pkt() 63 portptr = &hdr->dest; in tcp_manip_pkt() 69 if (hdrsize < sizeof(*hdr)) in tcp_manip_pkt() 72 l3proto->csum_update(skb, iphdroff, &hdr->check, tuple, maniptype); in tcp_manip_pkt() 73 inet_proto_csum_replace2(&hdr->check, skb, oldport, newport, false); in tcp_manip_pkt()
|
D | nf_nat_proto_dccp.c | 43 struct dccp_hdr *hdr; in dccp_manip_pkt() local 53 hdr = (struct dccp_hdr *)(skb->data + hdroff); in dccp_manip_pkt() 57 portptr = &hdr->dccph_sport; in dccp_manip_pkt() 60 portptr = &hdr->dccph_dport; in dccp_manip_pkt() 66 if (hdrsize < sizeof(*hdr)) in dccp_manip_pkt() 69 l3proto->csum_update(skb, iphdroff, &hdr->dccph_checksum, in dccp_manip_pkt() 71 inet_proto_csum_replace2(&hdr->dccph_checksum, skb, oldport, newport, in dccp_manip_pkt()
|
D | nf_nat_proto_sctp.c | 37 sctp_sctphdr_t *hdr; in sctp_manip_pkt() local 39 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) in sctp_manip_pkt() 42 hdr = (struct sctphdr *)(skb->data + hdroff); in sctp_manip_pkt() 46 hdr->source = tuple->src.u.sctp.port; in sctp_manip_pkt() 49 hdr->dest = tuple->dst.u.sctp.port; in sctp_manip_pkt() 52 hdr->checksum = sctp_compute_cksum(skb, hdroff); in sctp_manip_pkt()
|
/linux-4.4.14/arch/arm/kernel/ |
D | atags_compat.c | 87 tag->hdr.tag = ATAG_MEM; in memtag() 88 tag->hdr.size = tag_size(tag_mem32); in memtag() 122 tag->hdr.tag = ATAG_CORE; in build_tag_list() 123 tag->hdr.size = tag_size(tag_core); in build_tag_list() 129 tag->hdr.tag = ATAG_RAMDISK; in build_tag_list() 130 tag->hdr.size = tag_size(tag_ramdisk); in build_tag_list() 137 tag->hdr.tag = ATAG_INITRD; in build_tag_list() 138 tag->hdr.size = tag_size(tag_initrd); in build_tag_list() 143 tag->hdr.tag = ATAG_SERIAL; in build_tag_list() 144 tag->hdr.size = tag_size(tag_serialnr); in build_tag_list() [all …]
|
D | atags_parse.c | 56 if (tag->hdr.size > 2) { in parse_tag_core() 154 if (tag->hdr.tag == t->tag) { in parse_tag() 168 for (; t->hdr.size; t = tag_next(t)) in parse_tags() 171 t->hdr.tag); in parse_tags() 176 for (; tag->hdr.size; tag = tag_next(tag)) in squash_mem_tags() 177 if (tag->hdr.tag == ATAG_MEM) in squash_mem_tags() 178 tag->hdr.tag = ATAG_NONE; in squash_mem_tags() 216 if (tags->hdr.tag != ATAG_CORE) in setup_machine_tags() 219 if (tags->hdr.tag != ATAG_CORE) { in setup_machine_tags() 227 if (tags->hdr.tag == ATAG_CORE) { in setup_machine_tags()
|
/linux-4.4.14/drivers/staging/wilc1000/ |
D | linux_mon.c | 16 struct ieee80211_radiotap_header hdr; member 21 struct ieee80211_radiotap_header hdr; member 56 struct wilc_wfi_radiotap_hdr *hdr; in WILC_WFI_monitor_rx() local 91 cb_hdr->hdr.it_version = 0; /* PKTHDR_RADIOTAP_VERSION; */ in WILC_WFI_monitor_rx() 93 cb_hdr->hdr.it_len = cpu_to_le16(sizeof(struct wilc_wfi_radiotap_cb_hdr)); in WILC_WFI_monitor_rx() 95 cb_hdr->hdr.it_present = cpu_to_le32( in WILC_WFI_monitor_rx() 118 hdr = (struct wilc_wfi_radiotap_hdr *) skb_push(skb, sizeof(*hdr)); in WILC_WFI_monitor_rx() 119 memset(hdr, 0, sizeof(struct wilc_wfi_radiotap_hdr)); in WILC_WFI_monitor_rx() 120 hdr->hdr.it_version = 0; /* PKTHDR_RADIOTAP_VERSION; */ in WILC_WFI_monitor_rx() 121 hdr->hdr.it_len = cpu_to_le16(sizeof(struct wilc_wfi_radiotap_hdr)); in WILC_WFI_monitor_rx() [all …]
|
/linux-4.4.14/drivers/net/wireless/ath/wcn36xx/ |
D | txrx.c | 29 struct ieee80211_hdr *hdr; in wcn36xx_rx_skb() local 64 hdr = (struct ieee80211_hdr *) skb->data; in wcn36xx_rx_skb() 65 fc = __le16_to_cpu(hdr->frame_control); in wcn36xx_rx_skb() 66 sn = IEEE80211_SEQ_TO_SN(__le16_to_cpu(hdr->seq_ctrl)); in wcn36xx_rx_skb() 68 if (ieee80211_is_beacon(hdr->frame_control)) { in wcn36xx_rx_skb() 119 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in wcn36xx_tx_start_ampdu() local 128 if (WARN_ON(!ieee80211_is_data_qos(hdr->frame_control))) in wcn36xx_tx_start_ampdu() 134 qc = ieee80211_get_qos_ctl(hdr); in wcn36xx_tx_start_ampdu() 157 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in wcn36xx_set_tx_data() local 185 __vif_priv = get_vif_by_addr(wcn, hdr->addr2); in wcn36xx_set_tx_data() [all …]
|
/linux-4.4.14/drivers/scsi/fnic/ |
D | fnic_res.h | 93 desc->hdr.type = FCPIO_ICMND_16; /* enum fcpio_type */ in fnic_queue_wq_copy_desc_icmnd_16() 94 desc->hdr.status = 0; /* header status entry */ in fnic_queue_wq_copy_desc_icmnd_16() 95 desc->hdr._resvd = 0; /* reserved */ in fnic_queue_wq_copy_desc_icmnd_16() 96 desc->hdr.tag.u.req_id = req_id; /* id for this request */ in fnic_queue_wq_copy_desc_icmnd_16() 132 desc->hdr.type = FCPIO_ITMF; /* enum fcpio_type */ in fnic_queue_wq_copy_desc_itmf() 133 desc->hdr.status = 0; /* header status entry */ in fnic_queue_wq_copy_desc_itmf() 134 desc->hdr._resvd = 0; /* reserved */ in fnic_queue_wq_copy_desc_itmf() 135 desc->hdr.tag.u.req_id = req_id; /* id for this request */ in fnic_queue_wq_copy_desc_itmf() 156 desc->hdr.type = FCPIO_FLOGI_REG; /* enum fcpio_type */ in fnic_queue_wq_copy_desc_flogi_reg() 157 desc->hdr.status = 0; /* header status entry */ in fnic_queue_wq_copy_desc_flogi_reg() [all …]
|
/linux-4.4.14/net/tipc/ |
D | link.c | 268 struct tipc_msg *hdr; in tipc_link_create() local 275 hdr = l->pmsg; in tipc_link_create() 276 tipc_msg_init(ownnode, hdr, LINK_PROTOCOL, RESET_MSG, INT_H_SIZE, peer); in tipc_link_create() 277 msg_set_size(hdr, sizeof(l->proto_msg)); in tipc_link_create() 278 msg_set_session(hdr, session); in tipc_link_create() 279 msg_set_bearer_id(hdr, l->bearer_id); in tipc_link_create() 285 strcpy((char *)msg_data(hdr), if_name); in tipc_link_create() 714 struct tipc_msg *hdr = buf_msg(skb_peek(list)); in tipc_link_xmit() local 716 unsigned int i, imp = msg_importance(hdr); in tipc_link_xmit() 730 if (unlikely(msg_size(hdr) > mtu)) in tipc_link_xmit() [all …]
|
D | msg.c | 480 struct tipc_msg *hdr = buf_msg(_skb); in tipc_msg_reverse() local 482 int dlen = min_t(uint, msg_data_sz(hdr), MAX_FORWARD_SIZE); in tipc_msg_reverse() 486 hdr = buf_msg(_skb); in tipc_msg_reverse() 487 if (msg_dest_droppable(hdr)) in tipc_msg_reverse() 489 if (msg_errcode(hdr)) in tipc_msg_reverse() 493 memcpy(&ohdr, hdr, msg_hdr_sz(hdr)); in tipc_msg_reverse() 496 if (msg_short(hdr)) { in tipc_msg_reverse() 500 memcpy((*skb)->data + BASIC_H_SIZE, msg_data(hdr), dlen); in tipc_msg_reverse() 503 hdr = buf_msg(_skb); in tipc_msg_reverse() 504 memcpy(hdr, &ohdr, BASIC_H_SIZE); in tipc_msg_reverse() [all …]
|
/linux-4.4.14/net/nfc/ |
D | netlink.c | 78 void *hdr; in nfc_genl_send_target() local 80 hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in nfc_genl_send_target() 82 if (!hdr) in nfc_genl_send_target() 85 genl_dump_check_consistent(cb, hdr, &nfc_genl_family); in nfc_genl_send_target() 113 genlmsg_end(msg, hdr); in nfc_genl_send_target() 117 genlmsg_cancel(msg, hdr); in nfc_genl_send_target() 194 void *hdr; in nfc_genl_targets_found() local 202 hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, in nfc_genl_targets_found() 204 if (!hdr) in nfc_genl_targets_found() 210 genlmsg_end(msg, hdr); in nfc_genl_targets_found() [all …]
|
/linux-4.4.14/drivers/s390/char/ |
D | monwriter.c | 37 struct monwrite_hdr hdr; member 47 struct monwrite_hdr hdr; member 84 if ((entry->hdr.mon_function == monhdr->mon_function || in monwrite_find_hdr() 86 entry->hdr.applid == monhdr->applid && in monwrite_find_hdr() 87 entry->hdr.record_num == monhdr->record_num && in monwrite_find_hdr() 88 entry->hdr.version == monhdr->version && in monwrite_find_hdr() 89 entry->hdr.release == monhdr->release && in monwrite_find_hdr() 90 entry->hdr.mod_level == monhdr->mod_level) in monwrite_find_hdr() 98 struct monwrite_hdr *monhdr = &monpriv->hdr; in monwrite_new_hdr() 111 monhdr->datalen = monbuf->hdr.datalen; in monwrite_new_hdr() [all …]
|
D | sclp_sdias.c | 80 if (!(sccb.evbuf.hdr.flags & 0x80)) { in sdias_sclp_send() 82 sccb.evbuf.hdr.flags); in sdias_sclp_send() 114 sccb.hdr.length = sizeof(sccb); in sclp_sdias_blk_count() 115 sccb.evbuf.hdr.length = sizeof(struct sdias_evbuf); in sclp_sdias_blk_count() 116 sccb.evbuf.hdr.type = EVTYP_SDIAS; in sclp_sdias_blk_count() 132 if (sccb.hdr.response_code != 0x0020) { in sclp_sdias_blk_count() 133 TRACE("send failed: %x\n", sccb.hdr.response_code); in sclp_sdias_blk_count() 173 sccb.hdr.length = sizeof(sccb); in sclp_sdias_copy() 174 sccb.evbuf.hdr.length = sizeof(struct sdias_evbuf); in sclp_sdias_copy() 175 sccb.evbuf.hdr.type = EVTYP_SDIAS; in sclp_sdias_copy() [all …]
|
/linux-4.4.14/drivers/uwb/i1480/dfu/ |
D | mac.c | 48 void fw_hdrs_free(struct fw_hdr *hdr) in fw_hdrs_free() argument 52 while (hdr) { in fw_hdrs_free() 53 next = hdr->next; in fw_hdrs_free() 54 kfree(hdr); in fw_hdrs_free() 55 hdr = next; in fw_hdrs_free() 62 int fw_hdr_load(struct i1480 *i1480, struct fw_hdr *hdr, unsigned hdr_cnt, in fw_hdr_load() argument 75 hdr->next = NULL; in fw_hdr_load() 76 hdr->address = le32_to_cpu(*data_itr++); in fw_hdr_load() 77 hdr->length = le32_to_cpu(*data_itr++); in fw_hdr_load() 78 hdr->bin = data_itr; in fw_hdr_load() [all …]
|
/linux-4.4.14/drivers/block/ |
D | amiflop.c | 724 struct header hdr; in amiga_read() local 736 raw = decode ((ulong *)&hdr.magic, (ulong *)raw, 4); in amiga_read() 737 raw = decode ((ulong *)&hdr.labels, (ulong *)raw, 16); in amiga_read() 738 raw = decode ((ulong *)&hdr.hdrchk, (ulong *)raw, 4); in amiga_read() 739 raw = decode ((ulong *)&hdr.datachk, (ulong *)raw, 4); in amiga_read() 740 csum = checksum((ulong *)&hdr, in amiga_read() 741 (char *)&hdr.hdrchk-(char *)&hdr); in amiga_read() 745 hdr.magic, hdr.track, hdr.sect, hdr.ord, in amiga_read() 746 *(ulong *)&hdr.labels[0], *(ulong *)&hdr.labels[4], in amiga_read() 747 *(ulong *)&hdr.labels[8], *(ulong *)&hdr.labels[12], in amiga_read() [all …]
|
/linux-4.4.14/drivers/net/wireless/ath/ath10k/ |
D | htc.c | 82 struct ath10k_htc_hdr *hdr; in ath10k_htc_prepare_tx_skb() local 84 hdr = (struct ath10k_htc_hdr *)skb->data; in ath10k_htc_prepare_tx_skb() 86 hdr->eid = ep->eid; in ath10k_htc_prepare_tx_skb() 87 hdr->len = __cpu_to_le16(skb->len - sizeof(*hdr)); in ath10k_htc_prepare_tx_skb() 88 hdr->flags = 0; in ath10k_htc_prepare_tx_skb() 89 hdr->flags |= ATH10K_HTC_FLAG_NEED_CREDIT_UPDATE; in ath10k_htc_prepare_tx_skb() 92 hdr->seq_no = ep->seq_no++; in ath10k_htc_prepare_tx_skb() 248 if (length < sizeof(record->hdr)) { in ath10k_htc_process_trailer() 253 if (record->hdr.len > length) { in ath10k_htc_process_trailer() 256 record->hdr.len); in ath10k_htc_process_trailer() [all …]
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | module.c | 32 static const Elf_Shdr *find_section(const Elf_Ehdr *hdr, in find_section() argument 39 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section() 40 for (i = 1; i < hdr->e_shnum; i++) in find_section() 46 int module_finalize(const Elf_Ehdr *hdr, in module_finalize() argument 52 sect = find_section(hdr, sechdrs, "__ftr_fixup"); in module_finalize() 58 sect = find_section(hdr, sechdrs, "__mmu_ftr_fixup"); in module_finalize() 65 sect = find_section(hdr, sechdrs, "__fw_ftr_fixup"); in module_finalize() 72 sect = find_section(hdr, sechdrs, "__lwsync_fixup"); in module_finalize()
|
/linux-4.4.14/drivers/nfc/ |
D | mei_phy.c | 36 struct mei_nfc_hdr hdr; member 42 struct mei_nfc_hdr hdr; member 116 cmd.hdr.cmd = MEI_NFC_CMD_MAINTENANCE; in mei_nfc_if_version() 117 cmd.hdr.data_size = 1; in mei_nfc_if_version() 120 MEI_DUMP_NFC_HDR("version", &cmd.hdr); in mei_nfc_if_version() 182 cmd->hdr.cmd = MEI_NFC_CMD_MAINTENANCE; in mei_nfc_connect() 183 cmd->hdr.data_size = 3; in mei_nfc_connect() 188 MEI_DUMP_NFC_HDR("connect request", &cmd->hdr); in mei_nfc_connect() 203 MEI_DUMP_NFC_HDR("connect reply", &reply->hdr); in mei_nfc_connect() 223 struct mei_nfc_hdr *hdr; in mei_nfc_send() local [all …]
|
/linux-4.4.14/drivers/scsi/snic/ |
D | snic_fwint.h | 114 snic_io_hdr_enc(struct snic_io_hdr *hdr, u8 typ, u8 status, u32 id, u32 hid, in snic_io_hdr_enc() argument 117 hdr->type = typ; in snic_io_hdr_enc() 118 hdr->status = status; in snic_io_hdr_enc() 119 hdr->protocol = 0; in snic_io_hdr_enc() 120 hdr->hid = cpu_to_le32(hid); in snic_io_hdr_enc() 121 hdr->cmnd_id = cpu_to_le32(id); in snic_io_hdr_enc() 122 hdr->sg_cnt = cpu_to_le16(sg_cnt); in snic_io_hdr_enc() 123 hdr->init_ctx = ctx; in snic_io_hdr_enc() 124 hdr->flags = 0; in snic_io_hdr_enc() 129 snic_io_hdr_dec(struct snic_io_hdr *hdr, u8 *typ, u8 *stat, u32 *cmnd_id, in snic_io_hdr_dec() argument [all …]
|
/linux-4.4.14/drivers/net/wireless/p54/ |
D | txrx.c | 36 struct p54_hdr *hdr; in p54_dump_tx_queue() local 49 hdr = (void *) skb->data; in p54_dump_tx_queue() 57 le16_to_cpu(hdr->flags), le16_to_cpu(hdr->len), in p54_dump_tx_queue() 58 le32_to_cpu(hdr->req_id), le16_to_cpu(hdr->type), in p54_dump_tx_queue() 256 struct p54_hdr *hdr = (struct p54_hdr *) entry->data; in p54_find_and_unlink_skb() local 258 if (hdr->req_id == req_id) { in p54_find_and_unlink_skb() 296 struct ieee80211_hdr *hdr = (void *) skb->data; in p54_pspoll_workaround() local 303 if (!ieee80211_is_beacon(hdr->frame_control)) in p54_pspoll_workaround() 310 if (!ether_addr_equal_64bits(hdr->addr3, priv->bssid)) in p54_pspoll_workaround() 329 struct p54_rx_data *hdr = (struct p54_rx_data *) skb->data; in p54_rx_data() local [all …]
|
/linux-4.4.14/arch/s390/pci/ |
D | pci_clp.c | 88 rrb->request.hdr.len = sizeof(rrb->request); in clp_query_pci_fngrp() 89 rrb->request.hdr.cmd = CLP_QUERY_PCI_FNGRP; in clp_query_pci_fngrp() 90 rrb->response.hdr.len = sizeof(rrb->response); in clp_query_pci_fngrp() 94 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) in clp_query_pci_fngrp() 98 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_query_pci_fngrp() 141 rrb->request.hdr.len = sizeof(rrb->request); in clp_query_pci_fn() 142 rrb->request.hdr.cmd = CLP_QUERY_PCI_FN; in clp_query_pci_fn() 143 rrb->response.hdr.len = sizeof(rrb->response); in clp_query_pci_fn() 147 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) { in clp_query_pci_fn() 155 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_query_pci_fn() [all …]
|
/linux-4.4.14/drivers/firmware/ |
D | iscsi_ibft.c | 105 struct ibft_hdr hdr; member 115 struct ibft_hdr hdr; member 125 struct ibft_hdr hdr; member 141 struct ibft_hdr hdr; member 183 struct ibft_hdr *hdr; member 235 static int ibft_verify_hdr(char *t, struct ibft_hdr *hdr, int id, int length) in ibft_verify_hdr() argument 237 if (hdr->id != id) { in ibft_verify_hdr() 240 "found %d instead!\n", t, id, hdr->id); in ibft_verify_hdr() 243 if (hdr->length != length) { in ibft_verify_hdr() 246 "found %d instead!\n", t, length, hdr->length); in ibft_verify_hdr() [all …]
|
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_tkip.c | 313 struct rtl_80211_hdr_4addr *hdr; in ieee80211_tkip_encrypt() local 325 hdr = (struct rtl_80211_hdr_4addr *) skb->data; in ieee80211_tkip_encrypt() 329 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in ieee80211_tkip_encrypt() 391 struct rtl_80211_hdr_4addr *hdr; in ieee80211_tkip_decrypt() local 403 hdr = (struct rtl_80211_hdr_4addr *) skb->data; in ieee80211_tkip_decrypt() 409 " flag from %pM\n", hdr->addr2); in ieee80211_tkip_decrypt() 423 " key\n", hdr->addr2, keyidx); in ieee80211_tkip_decrypt() 437 "%08x%04x\n", hdr->addr2, in ieee80211_tkip_decrypt() 445 tkip_mixing_phase1(tkey->rx_ttak, tkey->key, hdr->addr2, iv32); in ieee80211_tkip_decrypt() 459 hdr->addr2); in ieee80211_tkip_decrypt() [all …]
|
D | ieee80211_crypt_ccmp.c | 115 struct rtl_80211_hdr_4addr *hdr, in ccmp_init_blocks() argument 125 fc = le16_to_cpu(hdr->frame_ctl); in ccmp_init_blocks() 138 pos = (u8 *) &hdr->addr4; in ccmp_init_blocks() 152 memcpy(b0 + 2, hdr->addr2, ETH_ALEN); in ccmp_init_blocks() 164 pos = (u8 *) hdr; in ccmp_init_blocks() 169 memcpy(aad + 4, hdr->addr1, 3 * ETH_ALEN); in ccmp_init_blocks() 170 pos = (u8 *) &hdr->seq_ctl; in ccmp_init_blocks() 175 memcpy(aad + 24, hdr->addr4, ETH_ALEN); in ccmp_init_blocks() 199 struct rtl_80211_hdr_4addr *hdr; in ieee80211_ccmp_encrypt() local 231 hdr = (struct rtl_80211_hdr_4addr *) skb->data; in ieee80211_ccmp_encrypt() [all …]
|
/linux-4.4.14/drivers/staging/rtl8192e/ |
D | rtllib_crypt_tkip.c | 301 struct rtllib_hdr_4addr *hdr; in rtllib_tkip_encrypt() local 314 hdr = (struct rtllib_hdr_4addr *) skb->data; in rtllib_tkip_encrypt() 318 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in rtllib_tkip_encrypt() 384 struct rtllib_hdr_4addr *hdr; in rtllib_tkip_decrypt() local 397 hdr = (struct rtllib_hdr_4addr *) skb->data; in rtllib_tkip_decrypt() 404 hdr->addr2); in rtllib_tkip_decrypt() 419 hdr->addr2, keyidx); in rtllib_tkip_decrypt() 434 hdr->addr2, tkey->rx_iv32, in rtllib_tkip_decrypt() 444 hdr->addr2, iv32); in rtllib_tkip_decrypt() 458 hdr->addr2); in rtllib_tkip_decrypt() [all …]
|
D | rtllib_crypt_ccmp.c | 110 struct rtllib_hdr_4addr *hdr, in ccmp_init_blocks() argument 120 fc = le16_to_cpu(hdr->frame_ctl); in ccmp_init_blocks() 130 pos = (u8 *) &hdr->addr4; in ccmp_init_blocks() 144 memcpy(b0 + 2, hdr->addr2, ETH_ALEN); in ccmp_init_blocks() 156 pos = (u8 *) hdr; in ccmp_init_blocks() 161 memcpy(aad + 4, hdr->addr1, 3 * ETH_ALEN); in ccmp_init_blocks() 162 pos = (u8 *) &hdr->seq_ctl; in ccmp_init_blocks() 167 memcpy(aad + 24, hdr->addr4, ETH_ALEN); in ccmp_init_blocks() 191 struct rtllib_hdr_4addr *hdr; in rtllib_ccmp_encrypt() local 222 hdr = (struct rtllib_hdr_4addr *) skb->data; in rtllib_ccmp_encrypt() [all …]
|
/linux-4.4.14/drivers/net/ethernet/emulex/benet/ |
D | be_cmds.h | 347 struct be_cmd_req_hdr hdr; member 374 struct be_cmd_req_hdr hdr; member 382 struct be_cmd_resp_hdr hdr; member 388 struct be_cmd_req_hdr hdr; member 395 struct be_cmd_resp_hdr hdr; member 401 struct be_cmd_req_hdr hdr; member 449 struct be_cmd_req_hdr hdr; member 459 struct be_cmd_resp_hdr hdr; member 465 struct be_cmd_req_hdr hdr; member 474 struct be_cmd_resp_hdr hdr; member [all …]
|
D | be_cmds.c | 945 be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON, in be_cmd_eq_create() 953 req->hdr.version = ver; in be_cmd_eq_create() 996 be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON, in be_cmd_mac_addr_query() 1037 be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON, in be_cmd_pmac_add() 1041 req->hdr.domain = domain; in be_cmd_pmac_add() 1080 be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON, in be_cmd_pmac_del() 1084 req->hdr.domain = dom; in be_cmd_pmac_del() 1112 be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON, in be_cmd_cq_create() 1129 req->hdr.version = 2; in be_cmd_cq_create() 1190 be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON, in be_cmd_mccq_ext_create() [all …]
|
/linux-4.4.14/drivers/misc/sgi-gru/ |
D | grukdump.c | 121 struct gru_dump_context_header hdr; in gru_dump_context() local 128 memset(&hdr, 0, sizeof(hdr)); in gru_dump_context() 138 ubuf += sizeof(hdr); in gru_dump_context() 147 bytes = sizeof(hdr) + GRU_CACHE_LINE_BYTES; in gru_dump_context() 152 hdr.pid = gts->ts_tgid_owner; in gru_dump_context() 153 hdr.vaddr = gts->ts_vma->vm_start; in gru_dump_context() 173 hdr.magic = GRU_DUMP_MAGIC; in gru_dump_context() 174 hdr.gid = gru->gs_gid; in gru_dump_context() 175 hdr.ctxnum = ctxnum; in gru_dump_context() 176 hdr.cbrcnt = cbrcnt; in gru_dump_context() [all …]
|
/linux-4.4.14/drivers/message/fusion/ |
D | mptctl.h | 137 mpt_ioctl_header hdr; member 179 mpt_ioctl_header hdr; member 197 mpt_ioctl_header hdr; member 219 mpt_ioctl_header hdr; member 246 mpt_ioctl_header hdr; member 257 mpt_ioctl_header hdr; member 264 mpt_ioctl_header hdr; member 277 mpt_ioctl_header hdr; member 283 mpt_ioctl_header hdr; member 294 mpt_ioctl_header hdr; member [all …]
|
/linux-4.4.14/drivers/scsi/ |
D | scsi_netlink.c | 49 struct scsi_nl_hdr *hdr; in scsi_nl_rcv_msg() local 57 if ((nlh->nlmsg_len < (sizeof(*nlh) + sizeof(*hdr))) || in scsi_nl_rcv_msg() 73 hdr = nlmsg_data(nlh); in scsi_nl_rcv_msg() 74 if ((hdr->version != SCSI_NL_VERSION) || in scsi_nl_rcv_msg() 75 (hdr->magic != SCSI_NL_MAGIC)) { in scsi_nl_rcv_msg() 85 if (nlh->nlmsg_len < (sizeof(*nlh) + hdr->msglen)) { in scsi_nl_rcv_msg() 94 tport = hdr->transport; in scsi_nl_rcv_msg() 96 switch (hdr->msgtype) { in scsi_nl_rcv_msg() 107 __func__, hdr->msgtype, err); in scsi_nl_rcv_msg()
|
D | libiscsi.c | 117 void iscsi_update_cmdsn(struct iscsi_session *session, struct iscsi_nopin *hdr) in iscsi_update_cmdsn() argument 119 __iscsi_update_cmdsn(session, be32_to_cpu(hdr->exp_cmdsn), in iscsi_update_cmdsn() 120 be32_to_cpu(hdr->max_cmdsn)); in iscsi_update_cmdsn() 137 struct iscsi_data *hdr) in iscsi_prep_data_out_pdu() argument 144 memset(hdr, 0, sizeof(struct iscsi_data)); in iscsi_prep_data_out_pdu() 145 hdr->ttt = r2t->ttt; in iscsi_prep_data_out_pdu() 146 hdr->datasn = cpu_to_be32(r2t->datasn); in iscsi_prep_data_out_pdu() 148 hdr->opcode = ISCSI_OP_SCSI_DATA_OUT; in iscsi_prep_data_out_pdu() 149 hdr->lun = task->lun; in iscsi_prep_data_out_pdu() 150 hdr->itt = task->hdr_itt; in iscsi_prep_data_out_pdu() [all …]
|
/linux-4.4.14/include/sound/ |
D | util_mem.h | 52 void snd_util_memhdr_free(struct snd_util_memhdr *hdr); 53 struct snd_util_memblk *snd_util_mem_alloc(struct snd_util_memhdr *hdr, int size); 54 int snd_util_mem_free(struct snd_util_memhdr *hdr, struct snd_util_memblk *blk); 55 int snd_util_mem_avail(struct snd_util_memhdr *hdr); 58 struct snd_util_memblk *__snd_util_mem_alloc(struct snd_util_memhdr *hdr, int size); 59 void __snd_util_mem_free(struct snd_util_memhdr *hdr, struct snd_util_memblk *blk); 60 struct snd_util_memblk *__snd_util_memblk_new(struct snd_util_memhdr *hdr,
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_minidump.c | 230 struct qlcnic_common_entry_hdr hdr; member 273 struct qlcnic_82xx_dump_template_hdr *hdr = t_hdr; in qlcnic_82xx_get_saved_state() local 275 return hdr->saved_state[index]; in qlcnic_82xx_get_saved_state() 281 struct qlcnic_82xx_dump_template_hdr *hdr = t_hdr; in qlcnic_82xx_set_saved_state() local 283 hdr->saved_state[index] = value; in qlcnic_82xx_set_saved_state() 288 struct qlcnic_82xx_dump_template_hdr *hdr; in qlcnic_82xx_cache_tmpl_hdr_values() local 290 hdr = fw_dump->tmpl_hdr; in qlcnic_82xx_cache_tmpl_hdr_values() 291 fw_dump->tmpl_hdr_size = hdr->size; in qlcnic_82xx_cache_tmpl_hdr_values() 292 fw_dump->version = hdr->version; in qlcnic_82xx_cache_tmpl_hdr_values() 293 fw_dump->num_entries = hdr->num_entries; in qlcnic_82xx_cache_tmpl_hdr_values() [all …]
|
/linux-4.4.14/net/key/ |
D | af_key.c | 281 struct sadb_msg *hdr; in pfkey_do_dump() local 292 hdr = (struct sadb_msg *) pfk->dump.skb->data; in pfkey_do_dump() 293 hdr->sadb_msg_seq = 0; in pfkey_do_dump() 294 hdr->sadb_msg_errno = rc; in pfkey_do_dump() 313 struct sadb_msg *hdr; in pfkey_error() local 330 hdr = (struct sadb_msg *) skb_put(skb, sizeof(struct sadb_msg)); in pfkey_error() 331 pfkey_hdr_dup(hdr, orig); in pfkey_error() 332 hdr->sadb_msg_errno = (uint8_t) err; in pfkey_error() 333 hdr->sadb_msg_len = (sizeof(struct sadb_msg) / in pfkey_error() 480 static int parse_exthdrs(struct sk_buff *skb, const struct sadb_msg *hdr, void **ext_hdrs) in parse_exthdrs() argument [all …]
|
/linux-4.4.14/drivers/scsi/mpt3sas/ |
D | mpt3sas_ctl.h | 115 struct mpt3_ioctl_header hdr; member 167 struct mpt3_ioctl_header hdr; member 196 struct mpt3_ioctl_header hdr; member 208 struct mpt3_ioctl_header hdr; member 231 struct mpt3_ioctl_header hdr; member 253 struct mpt3_ioctl_header hdr; member 269 struct mpt3_ioctl_header hdr; member 299 struct mpt3_ioctl_header hdr; member 334 struct mpt3_ioctl_header hdr; member 353 struct mpt3_ioctl_header hdr; member [all …]
|
/linux-4.4.14/net/wireless/ |
D | lib80211_crypt_tkip.c | 314 struct ieee80211_hdr *hdr; in lib80211_tkip_hdr() local 316 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_tkip_hdr() 325 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in lib80211_tkip_hdr() 363 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in lib80211_tkip_encrypt() local 365 hdr->addr1); in lib80211_tkip_encrypt() 411 struct ieee80211_hdr *hdr; in lib80211_tkip_decrypt() local 417 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_tkip_decrypt() 421 hdr->addr2); in lib80211_tkip_decrypt() 432 hdr->addr2); in lib80211_tkip_decrypt() 443 hdr->addr2, keyidx); in lib80211_tkip_decrypt() [all …]
|
D | lib80211_crypt_ccmp.c | 112 struct ieee80211_hdr *hdr, in ccmp_init_blocks() argument 120 a4_included = ieee80211_has_a4(hdr->frame_control); in ccmp_init_blocks() 121 qc_included = ieee80211_is_data_qos(hdr->frame_control); in ccmp_init_blocks() 127 pos = (u8 *) & hdr->addr4; in ccmp_init_blocks() 141 memcpy(b0 + 2, hdr->addr2, ETH_ALEN); in ccmp_init_blocks() 153 pos = (u8 *) hdr; in ccmp_init_blocks() 158 memcpy(aad + 4, hdr->addr1, 3 * ETH_ALEN); in ccmp_init_blocks() 159 pos = (u8 *) & hdr->seq_ctrl; in ccmp_init_blocks() 164 memcpy(aad + 24, hdr->addr4, ETH_ALEN); in ccmp_init_blocks() 223 struct ieee80211_hdr *hdr; in lib80211_ccmp_encrypt() local [all …]
|
/linux-4.4.14/drivers/scsi/be2iscsi/ |
D | be_cmds.h | 270 struct be_cmd_req_hdr hdr; /* dw[4] */ member 308 struct be_cmd_req_hdr hdr; /* dw[4] */ member 313 struct be_cmd_resp_hdr hdr; /* dw[4] */ member 379 struct be_cmd_req_hdr hdr; member 384 struct be_cmd_resp_hdr hdr; member 394 struct be_cmd_req_hdr hdr; member 398 struct be_cmd_resp_hdr hdr; member 404 struct be_cmd_req_hdr hdr; member 414 struct be_cmd_resp_hdr hdr; member 421 struct be_cmd_req_hdr hdr; member [all …]
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
D | user_sdma.c | 189 struct hfi1_pkt_header hdr; member 261 struct hfi1_pkt_header hdr; member 498 if (iovec[idx].iov_len < sizeof(info) + sizeof(req->hdr)) { in hfi1_user_sdma_process_request() 503 iovec[idx].iov_len, sizeof(info) + sizeof(req->hdr)); in hfi1_user_sdma_process_request() 557 ret = copy_from_user(&req->hdr, iovec[idx].iov_base + sizeof(info), in hfi1_user_sdma_process_request() 558 sizeof(req->hdr)); in hfi1_user_sdma_process_request() 567 req->hdr.pbc[2] = 0; in hfi1_user_sdma_process_request() 570 opcode = (be32_to_cpu(req->hdr.bth[0]) >> 24) & 0xff; in hfi1_user_sdma_process_request() 582 vl = (le16_to_cpu(req->hdr.pbc[0]) >> 12) & 0xF; in hfi1_user_sdma_process_request() 583 sc = (((be16_to_cpu(req->hdr.lrh[0]) >> 12) & 0xF) | in hfi1_user_sdma_process_request() [all …]
|
D | ud.c | 487 struct hfi1_ib_header hdr; in return_cnp() local 494 struct ib_grh *grh = &hdr.u.l.grh; in return_cnp() 501 ohdr = &hdr.u.l.oth; in return_cnp() 505 ohdr = &hdr.u.oth; in return_cnp() 517 hdr.lrh[0] = cpu_to_be16(lrh0); in return_cnp() 518 hdr.lrh[1] = cpu_to_be16(dlid); in return_cnp() 519 hdr.lrh[2] = cpu_to_be16(hwords + SIZE_OF_CRC); in return_cnp() 520 hdr.lrh[3] = cpu_to_be16(slid); in return_cnp() 530 &hdr, hwords); in return_cnp() 653 struct hfi1_ib_header *hdr = packet->hdr; in hfi1_ud_rcv() local [all …]
|
/linux-4.4.14/net/bridge/netfilter/ |
D | ebt_802_3.c | 19 const struct ebt_802_3_hdr *hdr = ebt_802_3_hdr(skb); in ebt_802_3_mt() local 20 __be16 type = hdr->llc.ui.ctrl & IS_UI ? hdr->llc.ui.type : hdr->llc.ni.type; in ebt_802_3_mt() 23 if (FWINV(info->sap != hdr->llc.ui.ssap, EBT_802_3_SAP)) in ebt_802_3_mt() 25 if (FWINV(info->sap != hdr->llc.ui.dsap, EBT_802_3_SAP)) in ebt_802_3_mt() 30 if (!(hdr->llc.ui.dsap == CHECK_TYPE && hdr->llc.ui.ssap == CHECK_TYPE)) in ebt_802_3_mt()
|
/linux-4.4.14/net/ipv6/netfilter/ |
D | nf_nat_proto_icmpv6.c | 64 struct icmp6hdr *hdr; in icmpv6_manip_pkt() local 66 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) in icmpv6_manip_pkt() 69 hdr = (struct icmp6hdr *)(skb->data + hdroff); in icmpv6_manip_pkt() 70 l3proto->csum_update(skb, iphdroff, &hdr->icmp6_cksum, in icmpv6_manip_pkt() 72 if (hdr->icmp6_type == ICMPV6_ECHO_REQUEST || in icmpv6_manip_pkt() 73 hdr->icmp6_type == ICMPV6_ECHO_REPLY) { in icmpv6_manip_pkt() 74 inet_proto_csum_replace2(&hdr->icmp6_cksum, skb, in icmpv6_manip_pkt() 75 hdr->icmp6_identifier, in icmpv6_manip_pkt() 77 hdr->icmp6_identifier = tuple->src.u.icmp.id; in icmpv6_manip_pkt()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
D | disp.h | 4 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *sub); 10 u16 nvbios_disp_entry(struct nvkm_bios *, u8 idx, u8 *ver, u8 *hdr, u8 *sub); 11 u16 nvbios_disp_parse(struct nvkm_bios *, u8 idx, u8 *ver, u8 *hdr, u8 *sub, 21 u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 23 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *); 25 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *); 33 u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 35 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ocfg *); 37 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ocfg *);
|
D | cstep.h | 4 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz); 11 u16 nvbios_cstepEe(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr); 12 u16 nvbios_cstepEp(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr, 14 u16 nvbios_cstepEm(struct nvkm_bios *, u8 pstate, u8 *ver, u8 *hdr, 23 u16 nvbios_cstepXe(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr); 24 u16 nvbios_cstepXp(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
|
D | M0205.h | 8 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz); 10 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz, 18 u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 20 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0205E *); 26 u32 nvbios_M0205Se(struct nvkm_bios *, int ent, int idx, u8 *ver, u8 *hdr); 27 u32 nvbios_M0205Sp(struct nvkm_bios *, int ent, int idx, u8 *ver, u8 *hdr,
|
D | P0260.h | 4 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz); 10 u32 nvbios_P0260Ee(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr); 11 u32 nvbios_P0260Ep(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr, 18 u32 nvbios_P0260Xe(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr); 19 u32 nvbios_P0260Xp(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
|
D | rammap.h | 5 u32 nvbios_rammapTe(struct nvkm_bios *, u8 *ver, u8 *hdr, 9 u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 13 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *); 15 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *); 19 u8 *ver, u8 *hdr); 24 u8 *ver, u8 *hdr, struct nvbios_ramcfg *);
|
D | M0203.h | 9 u32 nvbios_M0203Te(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 10 u32 nvbios_M0203Tp(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, 24 u32 nvbios_M0203Ee(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr); 25 u32 nvbios_M0203Ep(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr, 27 u32 nvbios_M0203Em(struct nvkm_bios *, u8 ramcfg, u8 *ver, u8 *hdr,
|
D | M0209.h | 4 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz); 16 u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 18 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0209E *); 24 u32 nvbios_M0209Se(struct nvkm_bios *, int ent, int idx, u8 *ver, u8 *hdr); 25 u32 nvbios_M0209Sp(struct nvkm_bios *, int ent, int idx, u8 *ver, u8 *hdr,
|
/linux-4.4.14/scripts/ |
D | Makefile.headersinst | 50 input-files1 := $(foreach hdr, $(header-y), \ 51 $(if $(wildcard $(srcdir)/$(hdr)), \ 52 $(wildcard $(srcdir)/$(hdr))) \ 55 input-files2 := $(foreach hdr, $(header-y), \ 56 $(if $(wildcard $(srcdir)/$(hdr)),, \ 57 $(if $(wildcard $(oldsrcdir)/$(hdr)), \ 58 $(wildcard $(oldsrcdir)/$(hdr)), \ 59 $(error Missing UAPI file $(srcdir)/$(hdr))) \ 62 input-files3 := $(foreach hdr, $(genhdr-y), \ 63 $(if $(wildcard $(gendir)/$(hdr)), \ [all …]
|
/linux-4.4.14/arch/mips/kernel/ |
D | vpe.c | 182 static void layout_sections(struct module *mod, const Elf_Ehdr *hdr, in layout_sections() argument 196 for (i = 0; i < hdr->e_shnum; i++) in layout_sections() 200 for (i = 0; i < hdr->e_shnum; ++i) { in layout_sections() 578 Elf_Ehdr *hdr; in vpe_elfload() local 588 hdr = (Elf_Ehdr *) v->pbuffer; in vpe_elfload() 593 if (memcmp(hdr->e_ident, ELFMAG, SELFMAG) != 0 in vpe_elfload() 594 || (hdr->e_type != ET_REL && hdr->e_type != ET_EXEC) in vpe_elfload() 595 || !elf_check_arch(hdr) in vpe_elfload() 596 || hdr->e_shentsize != sizeof(*sechdrs)) { in vpe_elfload() 602 if (hdr->e_type == ET_REL) in vpe_elfload() [all …]
|
/linux-4.4.14/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_sli.h | 280 struct ocrdma_mqe_hdr hdr; member 350 struct ocrdma_mqe_hdr hdr; member 356 struct ocrdma_mbx_rsp hdr; member 613 struct ocrdma_mqe_hdr hdr; member 640 struct ocrdma_mqe_hdr hdr; member 647 struct ocrdma_mqe_hdr hdr; member 689 struct ocrdma_mqe_hdr hdr; member 730 struct ocrdma_mqe_hdr hdr; member 792 struct ocrdma_mqe_hdr hdr; member 810 struct ocrdma_mqe_hdr hdr; member [all …]
|
/linux-4.4.14/include/uapi/scsi/ |
D | cxlflash_ioctl.h | 49 struct dk_cxlflash_hdr hdr; /* Common fields */ member 61 struct dk_cxlflash_hdr hdr; /* Common fields */ member 67 struct dk_cxlflash_hdr hdr; /* Common fields */ member 77 struct dk_cxlflash_hdr hdr; /* Common fields */ member 86 struct dk_cxlflash_hdr hdr; /* Common fields */ member 93 struct dk_cxlflash_hdr hdr; /* Common fields */ member 102 struct dk_cxlflash_hdr hdr; /* Common fields */ member 113 struct dk_cxlflash_hdr hdr; /* Common fields */ member 126 struct dk_cxlflash_hdr hdr; /* Common fields */ member 140 struct dk_cxlflash_hdr hdr; /* Common fields */ member
|
D | scsi_netlink.h | 113 #define INIT_SCSI_NL_HDR(hdr, t, mtype, mlen) \ argument 115 (hdr)->version = SCSI_NL_VERSION; \ 116 (hdr)->transport = t; \ 117 (hdr)->magic = SCSI_NL_MAGIC; \ 118 (hdr)->msgtype = mtype; \ 119 (hdr)->msglen = mlen; \
|
/linux-4.4.14/drivers/nfc/s3fwrn5/ |
D | firmware.c | 67 struct s3fwrn5_fw_header hdr; in s3fwrn5_fw_prep_msg() local 70 hdr.type = type | fw_info->parity; in s3fwrn5_fw_prep_msg() 72 hdr.code = code; in s3fwrn5_fw_prep_msg() 73 hdr.len = len; in s3fwrn5_fw_prep_msg() 79 memcpy(skb_put(skb, S3FWRN5_FW_HDR_SIZE), &hdr, S3FWRN5_FW_HDR_SIZE); in s3fwrn5_fw_prep_msg() 92 struct s3fwrn5_fw_header *hdr; in s3fwrn5_fw_get_bootinfo() local 107 hdr = (struct s3fwrn5_fw_header *) rsp->data; in s3fwrn5_fw_get_bootinfo() 108 if (hdr->code != S3FWRN5_FW_RET_SUCCESS) { in s3fwrn5_fw_get_bootinfo() 126 struct s3fwrn5_fw_header *hdr; in s3fwrn5_fw_enter_update_mode() local 144 hdr = (struct s3fwrn5_fw_header *) rsp->data; in s3fwrn5_fw_enter_update_mode() [all …]
|
/linux-4.4.14/drivers/s390/crypto/ |
D | zcrypt_msgtype6.c | 182 struct type6_hdr hdr; in ICAMEX_msg_to_type6MEX_msgX() member 202 msg->hdr = static_type6_hdrX; in ICAMEX_msg_to_type6MEX_msgX() 203 msg->hdr.ToCardLen1 = size - sizeof(msg->hdr); in ICAMEX_msg_to_type6MEX_msgX() 204 msg->hdr.FromCardLen1 = PCIXCC_MAX_ICA_RESPONSE_SIZE - sizeof(msg->hdr); in ICAMEX_msg_to_type6MEX_msgX() 208 msg->cprbx.rpl_msgbl = msg->hdr.FromCardLen1; in ICAMEX_msg_to_type6MEX_msgX() 213 msg->cprbx.req_parml = size - sizeof(msg->hdr) - sizeof(msg->cprbx); in ICAMEX_msg_to_type6MEX_msgX() 250 struct type6_hdr hdr; in ICACRT_msg_to_type6CRT_msgX() member 270 msg->hdr = static_type6_hdrX; in ICACRT_msg_to_type6CRT_msgX() 271 msg->hdr.ToCardLen1 = size - sizeof(msg->hdr); in ICACRT_msg_to_type6CRT_msgX() 272 msg->hdr.FromCardLen1 = PCIXCC_MAX_ICA_RESPONSE_SIZE - sizeof(msg->hdr); in ICACRT_msg_to_type6CRT_msgX() [all …]
|
D | zcrypt_msgtype6.h | 130 struct type6_hdr hdr; in rng_type6CPRB_msgX() member 143 .ToCardLen1 = sizeof(*msg) - sizeof(msg->hdr), in rng_type6CPRB_msgX() 144 .FromCardLen1 = sizeof(*msg) - sizeof(msg->hdr), in rng_type6CPRB_msgX() 150 .req_parml = sizeof(*msg) - sizeof(msg->hdr) - in rng_type6CPRB_msgX() 152 .rpl_msgbl = sizeof(*msg) - sizeof(msg->hdr), in rng_type6CPRB_msgX() 155 msg->hdr = static_type6_hdrX; in rng_type6CPRB_msgX() 156 msg->hdr.FromCardLen2 = random_number_length, in rng_type6CPRB_msgX() 160 memcpy(msg->function_code, msg->hdr.function_code, 0x02); in rng_type6CPRB_msgX()
|
/linux-4.4.14/drivers/net/wireless/ipw2x00/ |
D | libipw_rx.c | 43 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in libipw_monitor_rx() local 44 u16 fc = le16_to_cpu(hdr->frame_control); in libipw_monitor_rx() 90 struct libipw_hdr_4addr *hdr) in libipw_frag_cache_get() argument 97 sc = le16_to_cpu(hdr->seq_ctl); in libipw_frag_cache_get() 123 memcpy(entry->src_addr, hdr->addr2, ETH_ALEN); in libipw_frag_cache_get() 124 memcpy(entry->dst_addr, hdr->addr1, ETH_ALEN); in libipw_frag_cache_get() 128 entry = libipw_frag_cache_find(ieee, seq, frag, hdr->addr2, in libipw_frag_cache_get() 129 hdr->addr1); in libipw_frag_cache_get() 141 struct libipw_hdr_4addr *hdr) in libipw_frag_cache_invalidate() argument 147 sc = le16_to_cpu(hdr->seq_ctl); in libipw_frag_cache_invalidate() [all …]
|
/linux-4.4.14/security/integrity/ |
D | digsig_asymmetric.c | 71 struct signature_v2_hdr *hdr = (struct signature_v2_hdr *)sig; in asymmetric_verify() local 75 if (siglen <= sizeof(*hdr)) in asymmetric_verify() 78 siglen -= sizeof(*hdr); in asymmetric_verify() 80 if (siglen != __be16_to_cpu(hdr->sig_size)) in asymmetric_verify() 83 if (hdr->hash_algo >= PKEY_HASH__LAST) in asymmetric_verify() 86 key = request_asymmetric_key(keyring, __be32_to_cpu(hdr->keyid)); in asymmetric_verify() 92 pks.pkey_hash_algo = hdr->hash_algo; in asymmetric_verify() 96 pks.rsa.s = mpi_read_raw_data(hdr->sig, siglen); in asymmetric_verify()
|
/linux-4.4.14/drivers/tty/hvc/ |
D | hvsi_lib.c | 28 q.hdr.type = VS_QUERY_PACKET_HEADER; in hvsi_start_handshake() 29 q.hdr.len = sizeof(struct hvsi_query); in hvsi_start_handshake() 31 hvsi_send_packet(pv, &q.hdr); in hvsi_start_handshake() 40 ctrl.hdr.type = VS_CONTROL_PACKET_HEADER; in hvsi_send_close() 41 ctrl.hdr.len = sizeof(struct hvsi_control); in hvsi_send_close() 43 return hvsi_send_packet(pv, &ctrl.hdr); in hvsi_send_close() 96 r.hdr.type = VS_QUERY_RESPONSE_PACKET_HEADER; in hvsi_got_query() 97 r.hdr.len = sizeof(struct hvsi_query_response); in hvsi_got_query() 100 r.query_seqno = pkt->hdr.seqno; in hvsi_got_query() 101 hvsi_send_packet(pv, &r.hdr); in hvsi_got_query() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/ |
D | linux-tracefile.c | 214 dbghdr_to_err_string(struct ptldebug_header *hdr) in dbghdr_to_err_string() argument 216 switch (hdr->ph_subsys) { in dbghdr_to_err_string() 226 dbghdr_to_info_string(struct ptldebug_header *hdr) in dbghdr_to_info_string() argument 228 switch (hdr->ph_subsys) { in dbghdr_to_info_string() 237 void cfs_print_to_console(struct ptldebug_header *hdr, int mask, in cfs_print_to_console() argument 244 prefix = dbghdr_to_err_string(hdr); in cfs_print_to_console() 247 prefix = dbghdr_to_err_string(hdr); in cfs_print_to_console() 250 prefix = dbghdr_to_info_string(hdr); in cfs_print_to_console() 253 prefix = dbghdr_to_info_string(hdr); in cfs_print_to_console() 261 hdr->ph_pid, hdr->ph_extern_pid, file, hdr->ph_line_num, in cfs_print_to_console()
|
D | linux-module.c | 45 struct libcfs_ioctl_hdr *hdr; in libcfs_ioctl_getdata() local 49 hdr = (struct libcfs_ioctl_hdr *)buf; in libcfs_ioctl_getdata() 52 if (copy_from_user(buf, arg, sizeof(*hdr))) in libcfs_ioctl_getdata() 55 if (hdr->ioc_version != LIBCFS_IOCTL_VERSION) { in libcfs_ioctl_getdata() 60 if (hdr->ioc_len >= end - buf) { in libcfs_ioctl_getdata() 65 if (hdr->ioc_len < sizeof(struct libcfs_ioctl_data)) { in libcfs_ioctl_getdata() 70 orig_len = hdr->ioc_len; in libcfs_ioctl_getdata() 71 if (copy_from_user(buf, arg, hdr->ioc_len)) in libcfs_ioctl_getdata()
|
/linux-4.4.14/drivers/net/wimax/i2400m/ |
D | i2400m.h | 741 void i2400m_brh_set_opcode(struct i2400m_bootrom_header *hdr, in i2400m_brh_set_opcode() argument 744 hdr->command = cpu_to_le32( in i2400m_brh_set_opcode() 745 (le32_to_cpu(hdr->command) & ~I2400M_BRH_OPCODE_MASK) in i2400m_brh_set_opcode() 750 unsigned i2400m_brh_get_opcode(const struct i2400m_bootrom_header *hdr) in i2400m_brh_get_opcode() argument 752 return le32_to_cpu(hdr->command) & I2400M_BRH_OPCODE_MASK; in i2400m_brh_get_opcode() 756 unsigned i2400m_brh_get_response(const struct i2400m_bootrom_header *hdr) in i2400m_brh_get_response() argument 758 return (le32_to_cpu(hdr->command) & I2400M_BRH_RESPONSE_MASK) in i2400m_brh_get_response() 763 unsigned i2400m_brh_get_use_checksum(const struct i2400m_bootrom_header *hdr) in i2400m_brh_get_use_checksum() argument 765 return le32_to_cpu(hdr->command) & I2400M_BRH_USE_CHECKSUM; in i2400m_brh_get_use_checksum() 770 const struct i2400m_bootrom_header *hdr) in i2400m_brh_get_response_required() argument [all …]
|
/linux-4.4.14/arch/blackfin/kernel/ |
D | module.c | 21 module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections() argument 31 Elf_Shdr *s, *sechdrs_end = sechdrs + hdr->e_shnum; in module_frob_arch_sections() 42 (hdr->e_flags & EF_BFIN_CODE_IN_L1))) { in module_frob_arch_sections() 54 (hdr->e_flags & EF_BFIN_DATA_IN_L1))) { in module_frob_arch_sections() 66 (hdr->e_flags & EF_BFIN_DATA_IN_L1))) { in module_frob_arch_sections() 97 (hdr->e_flags & EF_BFIN_CODE_IN_L2))) { in module_frob_arch_sections() 109 (hdr->e_flags & EF_BFIN_DATA_IN_L2))) { in module_frob_arch_sections() 121 (hdr->e_flags & EF_BFIN_DATA_IN_L2))) { in module_frob_arch_sections() 234 module_finalize(const Elf_Ehdr * hdr, in module_finalize() argument 241 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize() [all …]
|
/linux-4.4.14/drivers/crypto/nx/ |
D | nx-842.c | 150 static int nx842_crypto_add_header(struct nx842_crypto_header *hdr, u8 *buf) in nx842_crypto_add_header() argument 152 int s = NX842_CRYPTO_HEADER_SIZE(hdr->groups); in nx842_crypto_add_header() 155 if (s > be16_to_cpu(hdr->group[0].padding)) { in nx842_crypto_add_header() 160 memcpy(buf, hdr, s); in nx842_crypto_add_header() 263 struct nx842_crypto_header *hdr = &ctx->header; in nx842_crypto_compress() local 297 hdr->magic = cpu_to_be16(NX842_CRYPTO_MAGIC); in nx842_crypto_compress() 298 hdr->groups = 0; in nx842_crypto_compress() 299 hdr->ignore = 0; in nx842_crypto_compress() 302 n = hdr->groups++; in nx842_crypto_compress() 304 if (hdr->groups > NX842_CRYPTO_GROUP_MAX) in nx842_crypto_compress() [all …]
|
/linux-4.4.14/arch/x86/boot/ |
D | main.c | 40 memcpy(&boot_params.hdr, &hdr, sizeof hdr); in copy_boot_params() 42 if (!boot_params.hdr.cmd_line_ptr && in copy_boot_params() 50 if (oldcmd->cl_offset < boot_params.hdr.setup_move_size) in copy_boot_params() 55 boot_params.hdr.cmd_line_ptr = in copy_boot_params() 120 if (boot_params.hdr.loadflags & CAN_USE_HEAP) { in init_heap() 125 ((size_t)boot_params.hdr.heap_end_ptr + 0x200); in init_heap()
|
/linux-4.4.14/drivers/staging/gdm72xx/ |
D | usb_boot.c | 147 struct img_header hdr; in usb_boot() local 167 if (firm->size < sizeof(hdr)) { in usb_boot() 172 memcpy(&hdr, firm->data, sizeof(hdr)); in usb_boot() 174 array_le32_to_cpu((u32 *)&hdr, 19); in usb_boot() 176 if (hdr.count > MAX_IMG_CNT) { in usb_boot() 177 dev_err(&usbdev->dev, "Too many images. %d\n", hdr.count); in usb_boot() 182 for (i = 0; i < hdr.count; i++) { in usb_boot() 183 if (hdr.offset[i] > hdr.len) { in usb_boot() 186 i, hdr.offset[i], hdr.len); in usb_boot() 191 pos = hdr.offset[i]; in usb_boot() [all …]
|
/linux-4.4.14/net/802/ |
D | fddi.c | 65 fddi->hdr.llc_snap.dsap = FDDI_EXTENDED_SAP; in fddi_header() 66 fddi->hdr.llc_snap.ssap = FDDI_EXTENDED_SAP; in fddi_header() 67 fddi->hdr.llc_snap.ctrl = FDDI_UI_CMD; in fddi_header() 68 fddi->hdr.llc_snap.oui[0] = 0x00; in fddi_header() 69 fddi->hdr.llc_snap.oui[1] = 0x00; in fddi_header() 70 fddi->hdr.llc_snap.oui[2] = 0x00; in fddi_header() 71 fddi->hdr.llc_snap.ethertype = htons(type); in fddi_header() 110 if(fddi->hdr.llc_8022_1.dsap==0xe0) in fddi_type_trans() 118 type=fddi->hdr.llc_snap.ethertype; in fddi_type_trans()
|
/linux-4.4.14/drivers/infiniband/ulp/iser/ |
D | iser_initiator.c | 54 struct iser_hdr *hdr = &iser_task->desc.iser_header; in iser_prepare_read_cmd() local 82 hdr->flags |= ISER_RSV; in iser_prepare_read_cmd() 83 hdr->read_stag = cpu_to_be32(mem_reg->rkey); in iser_prepare_read_cmd() 84 hdr->read_va = cpu_to_be64(mem_reg->sge.addr); in iser_prepare_read_cmd() 107 struct iser_hdr *hdr = &iser_task->desc.iser_header; in iser_prepare_write_cmd() local 138 hdr->flags |= ISER_WSV; in iser_prepare_write_cmd() 139 hdr->write_stag = cpu_to_be32(mem_reg->rkey); in iser_prepare_write_cmd() 140 hdr->write_va = cpu_to_be64(mem_reg->sge.addr + unsol_sz); in iser_prepare_write_cmd() 377 struct iscsi_scsi_req *hdr = (struct iscsi_scsi_req *)task->hdr; in iser_send_command() local 382 edtl = ntohl(hdr->data_length); in iser_send_command() [all …]
|
/linux-4.4.14/drivers/s390/net/ |
D | qeth_l3_main.c | 1024 if (cmd->hdr.return_code == 0) { in qeth_l3_default_setassparms_cb() 1025 cmd->hdr.return_code = cmd->data.setassparms.hdr.return_code; in qeth_l3_default_setassparms_cb() 1026 if (cmd->hdr.prot_version == QETH_PROT_IPV4) in qeth_l3_default_setassparms_cb() 1027 card->options.ipa4.enabled_funcs = cmd->hdr.ipa_enabled; in qeth_l3_default_setassparms_cb() 1028 if (cmd->hdr.prot_version == QETH_PROT_IPV6) in qeth_l3_default_setassparms_cb() 1029 card->options.ipa6.enabled_funcs = cmd->hdr.ipa_enabled; in qeth_l3_default_setassparms_cb() 1031 if (cmd->data.setassparms.hdr.assist_no == IPA_INBOUND_CHECKSUM && in qeth_l3_default_setassparms_cb() 1032 cmd->data.setassparms.hdr.command_code == IPA_CMD_ASS_START) { in qeth_l3_default_setassparms_cb() 1036 if (cmd->data.setassparms.hdr.assist_no == IPA_OUTBOUND_CHECKSUM && in qeth_l3_default_setassparms_cb() 1037 cmd->data.setassparms.hdr.command_code == IPA_CMD_ASS_START) { in qeth_l3_default_setassparms_cb() [all …]
|
D | qeth_l2_main.c | 253 struct qeth_hdr *hdr, struct sk_buff *skb) in qeth_l2_hdr_csum() argument 261 hdr->hdr.l2.flags[1] |= QETH_HDR_EXT_UDP; in qeth_l2_hdr_csum() 262 hdr->hdr.l2.flags[1] |= QETH_HDR_EXT_CSUM_TRANSP_REQ | in qeth_l2_hdr_csum() 269 static void qeth_l2_fill_header(struct qeth_card *card, struct qeth_hdr *hdr, in qeth_l2_fill_header() argument 274 memset(hdr, 0, sizeof(struct qeth_hdr)); in qeth_l2_fill_header() 275 hdr->hdr.l2.id = QETH_HEADER_TYPE_LAYER2; in qeth_l2_fill_header() 279 hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_MULTICAST; in qeth_l2_fill_header() 281 hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_BROADCAST; in qeth_l2_fill_header() 283 hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_UNICAST; in qeth_l2_fill_header() 285 hdr->hdr.l2.pkt_length = skb->len-QETH_HEADER_SIZE; in qeth_l2_fill_header() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lnet/klnds/socklnd/ |
D | socklnd_proto.c | 456 lnet_hdr_t *hdr; in ksocknal_send_hello_v1() local 463 LIBCFS_ALLOC(hdr, sizeof(*hdr)); in ksocknal_send_hello_v1() 464 if (hdr == NULL) { in ksocknal_send_hello_v1() 469 hmv = (lnet_magicversion_t *)&hdr->dest_nid; in ksocknal_send_hello_v1() 491 hdr->src_nid = cpu_to_le64 (hello->kshm_src_nid); in ksocknal_send_hello_v1() 492 hdr->src_pid = cpu_to_le32 (hello->kshm_src_pid); in ksocknal_send_hello_v1() 493 hdr->type = cpu_to_le32 (LNET_MSG_HELLO); in ksocknal_send_hello_v1() 494 hdr->payload_length = cpu_to_le32 (hello->kshm_nips * sizeof(__u32)); in ksocknal_send_hello_v1() 495 hdr->msg.hello.type = cpu_to_le32 (hello->kshm_ctype); in ksocknal_send_hello_v1() 496 hdr->msg.hello.incarnation = cpu_to_le64 (hello->kshm_src_incarnation); in ksocknal_send_hello_v1() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/ |
D | lib-move.c | 1364 lnet_hdr_t *hdr = &msg->msg_hdr; in lnet_recv_put() local 1373 msg->msg_ack = (!lnet_is_wire_handle_none(&hdr->msg.put.ack_wmd) && in lnet_recv_put() 1377 msg->msg_offset, msg->msg_wanted, hdr->payload_length); in lnet_recv_put() 1383 lnet_hdr_t *hdr = &msg->msg_hdr; in lnet_parse_put() local 1388 hdr->msg.put.match_bits = le64_to_cpu(hdr->msg.put.match_bits); in lnet_parse_put() 1389 hdr->msg.put.ptl_index = le32_to_cpu(hdr->msg.put.ptl_index); in lnet_parse_put() 1390 hdr->msg.put.offset = le32_to_cpu(hdr->msg.put.offset); in lnet_parse_put() 1392 info.mi_id.nid = hdr->src_nid; in lnet_parse_put() 1393 info.mi_id.pid = hdr->src_pid; in lnet_parse_put() 1395 info.mi_portal = hdr->msg.put.ptl_index; in lnet_parse_put() [all …]
|
D | lib-msg.c | 63 lnet_hdr_t *hdr = &msg->msg_hdr; in lnet_build_msg_event() local 72 ev->target.nid = le64_to_cpu(hdr->dest_nid); in lnet_build_msg_event() 73 ev->target.pid = le32_to_cpu(hdr->dest_pid); in lnet_build_msg_event() 80 ev->target.pid = hdr->dest_pid; in lnet_build_msg_event() 81 ev->target.nid = hdr->dest_nid; in lnet_build_msg_event() 82 ev->initiator.pid = hdr->src_pid; in lnet_build_msg_event() 83 ev->initiator.nid = hdr->src_nid; in lnet_build_msg_event() 84 ev->rlength = hdr->payload_length; in lnet_build_msg_event() 95 ev->pt_index = hdr->msg.put.ptl_index; in lnet_build_msg_event() 96 ev->match_bits = hdr->msg.put.match_bits; in lnet_build_msg_event() [all …]
|
/linux-4.4.14/drivers/net/wireless/libertas_tf/ |
D | libertas_tf.h | 343 struct cmd_header hdr; member 378 struct cmd_header hdr; member 384 struct cmd_header hdr; member 391 struct cmd_header hdr; member 399 struct cmd_header hdr; member 405 struct cmd_header hdr; member 412 struct cmd_header hdr; member 420 struct cmd_header hdr; member 430 struct cmd_header hdr; member 437 struct cmd_header hdr; member [all …]
|
/linux-4.4.14/drivers/hv/ |
D | hv_balloon.c | 173 struct dm_header hdr; member 193 struct dm_header hdr; member 211 struct dm_header hdr; member 222 struct dm_header hdr; member 239 struct dm_header hdr; member 265 struct dm_header hdr; member 284 struct dm_header hdr; member 305 struct dm_header hdr; member 328 struct dm_header hdr; member 342 struct dm_header hdr; member [all …]
|
D | channel_mgmt.c | 494 static void vmbus_unload_response(struct vmbus_channel_message_header *hdr) in vmbus_unload_response() argument 505 struct vmbus_channel_message_header hdr; in vmbus_initiate_unload() local 512 memset(&hdr, 0, sizeof(struct vmbus_channel_message_header)); in vmbus_initiate_unload() 513 hdr.msgtype = CHANNELMSG_UNLOAD; in vmbus_initiate_unload() 514 vmbus_post_msg(&hdr, sizeof(struct vmbus_channel_message_header)); in vmbus_initiate_unload() 523 static void vmbus_onoffer(struct vmbus_channel_message_header *hdr) in vmbus_onoffer() argument 528 offer = (struct vmbus_channel_offer_channel *)hdr; in vmbus_onoffer() 577 static void vmbus_onoffer_rescind(struct vmbus_channel_message_header *hdr) in vmbus_onoffer_rescind() argument 584 rescind = (struct vmbus_channel_rescind_offer *)hdr; in vmbus_onoffer_rescind() 619 struct vmbus_channel_message_header *hdr) in vmbus_onoffers_delivered() argument [all …]
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/ |
D | iwl-devtrace.h | 35 struct ieee80211_hdr *hdr = (void *)skb->data; in iwl_trace_data() local 38 if (!ieee80211_is_data(hdr->frame_control)) in iwl_trace_data() 47 struct ieee80211_hdr *hdr; in iwl_rx_trace_len() local 52 hdr = (void *)((u8 *)cmd + sizeof(struct iwl_cmd_header) + in iwl_rx_trace_len() 54 if (!ieee80211_is_data(hdr->frame_control)) in iwl_rx_trace_len() 58 ieee80211_hdrlen(hdr->frame_control); in iwl_rx_trace_len()
|
/linux-4.4.14/fs/nfsd/ |
D | nfs4callback.c | 260 struct nfs4_cb_compound_hdr *hdr) in encode_cb_compound4args() argument 266 *p++ = cpu_to_be32(hdr->minorversion); in encode_cb_compound4args() 267 *p++ = cpu_to_be32(hdr->ident); in encode_cb_compound4args() 269 hdr->nops_p = p; in encode_cb_compound4args() 270 *p = cpu_to_be32(hdr->nops); /* argarray element count */ in encode_cb_compound4args() 276 static void encode_cb_nops(struct nfs4_cb_compound_hdr *hdr) in encode_cb_nops() argument 278 BUG_ON(hdr->nops > NFS4_MAX_BACK_CHANNEL_OPS); in encode_cb_nops() 279 *hdr->nops_p = cpu_to_be32(hdr->nops); in encode_cb_nops() 292 struct nfs4_cb_compound_hdr *hdr) in decode_cb_compound4res() argument 300 hdr->status = be32_to_cpup(p++); in decode_cb_compound4res() [all …]
|
/linux-4.4.14/net/sched/ |
D | em_meta.c | 82 struct tcf_meta_val hdr; member 94 return TCF_META_ID(v->hdr.kind); in meta_id() 99 return TCF_META_TYPE(v->hdr.kind); in meta_type() 713 int shift = v->hdr.shift; in meta_var_apply_extras() 764 if (v->hdr.shift) in meta_int_apply_extras() 765 dst->value >>= v->hdr.shift; in meta_int_apply_extras() 858 switch (meta->lvalue.hdr.op) { in em_meta_match() 910 struct tcf_meta_hdr *hdr; in em_meta_change() local 920 hdr = nla_data(tb[TCA_EM_META_HDR]); in em_meta_change() 922 if (TCF_META_TYPE(hdr->left.kind) != TCF_META_TYPE(hdr->right.kind) || in em_meta_change() [all …]
|
D | em_nbyte.c | 22 struct tcf_em_nbyte hdr; member 47 unsigned char *ptr = tcf_get_base_ptr(skb, nbyte->hdr.layer); in em_nbyte_match() 49 ptr += nbyte->hdr.off; in em_nbyte_match() 51 if (!tcf_valid_offset(skb, ptr, nbyte->hdr.len)) in em_nbyte_match() 54 return !memcmp(ptr + nbyte->hdr.off, nbyte->pattern, nbyte->hdr.len); in em_nbyte_match()
|
/linux-4.4.14/drivers/block/paride/ |
D | pg.c | 579 struct pg_write_hdr hdr; in pg_write() local 580 int hs = sizeof (hdr); in pg_write() 587 if (copy_from_user(&hdr, buf, hs)) in pg_write() 590 if (hdr.magic != PG_MAGIC) in pg_write() 592 if (hdr.dlen < 0 || hdr.dlen > PG_MAX_DATA) in pg_write() 597 if (hdr.func == PG_RESET) { in pg_write() 605 if (hdr.func != PG_COMMAND) in pg_write() 609 dev->timeout = hdr.timeout * HZ + HZ / 2 + jiffies; in pg_write() 611 if (pg_command(dev, hdr.packet, hdr.dlen, jiffies + PG_TMO)) { in pg_write() 627 struct pg_read_hdr hdr; in pg_read() local [all …]
|
/linux-4.4.14/include/uapi/linux/wimax/ |
D | i2400m.h | 473 struct i2400m_tlv_hdr hdr; member 479 struct i2400m_tlv_hdr hdr; member 488 struct i2400m_tlv_hdr hdr; member 501 struct i2400m_tlv_hdr hdr; member 514 struct i2400m_tlv_hdr hdr; member 525 struct i2400m_tlv_hdr hdr; member 531 struct i2400m_tlv_hdr hdr; member 545 struct i2400m_tlv_hdr hdr; member 552 struct i2400m_tlv_hdr hdr; member 559 struct i2400m_tlv_hdr hdr; member [all …]
|
/linux-4.4.14/arch/x86/entry/vdso/ |
D | vdso2c.h | 14 ELF(Ehdr) *hdr = (ELF(Ehdr) *)raw_addr; in BITSFUNC() 23 ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_LE(&hdr->e_phoff)); in BITSFUNC() 26 for (i = 0; i < GET_LE(&hdr->e_phnum); i++) { in BITSFUNC() 62 secstrings_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC() 63 GET_LE(&hdr->e_shentsize)*GET_LE(&hdr->e_shstrndx); in BITSFUNC() 65 for (i = 0; i < GET_LE(&hdr->e_shnum); i++) { in BITSFUNC() 66 ELF(Shdr) *sh = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC() 67 GET_LE(&hdr->e_shentsize) * i; in BITSFUNC() 79 strtab_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC() 80 GET_LE(&hdr->e_shentsize) * GET_LE(&symtab_hdr->sh_link); in BITSFUNC()
|
/linux-4.4.14/drivers/net/wireless/ath/wil6210/ |
D | fw_inc.c | 48 const struct wil_fw_record_head *hdr = (const void *)data; in wil_fw_verify() local 59 if (size < sizeof(*hdr) + sizeof(fh)) { in wil_fw_verify() 65 if (le16_to_cpu(hdr->type) != wil_fw_type_file_header) { in wil_fw_verify() 71 fh_ = (struct wil_fw_record_file_header *)&hdr[1]; in wil_fw_verify() 82 if (dlen < sizeof(*hdr) + sizeof(fh)) { in wil_fw_verify() 105 crc = crc32_le(~0, (unsigned char const *)hdr, sizeof(*hdr)); in wil_fw_verify() 108 dlen - sizeof(*hdr) - sizeof(fh)); in wil_fw_verify() 424 const struct wil_fw_record_head *hdr; in wil_fw_load() local 427 for (hdr = data;; hdr = (const void *)hdr + s, size -= s) { in wil_fw_load() 428 if (size < sizeof(*hdr)) in wil_fw_load() [all …]
|
/linux-4.4.14/drivers/misc/vmw_vmci/ |
D | vmci_doorbell.c | 241 link_msg.hdr.dst = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID, in dbell_link() 243 link_msg.hdr.src = VMCI_ANON_SRC_HANDLE; in dbell_link() 244 link_msg.hdr.payload_size = sizeof(link_msg) - VMCI_DG_HEADERSIZE; in dbell_link() 248 return vmci_send_datagram(&link_msg.hdr); in dbell_link() 259 unlink_msg.hdr.dst = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID, in dbell_unlink() 261 unlink_msg.hdr.src = VMCI_ANON_SRC_HANDLE; in dbell_unlink() 262 unlink_msg.hdr.payload_size = sizeof(unlink_msg) - VMCI_DG_HEADERSIZE; in dbell_unlink() 265 return vmci_send_datagram(&unlink_msg.hdr); in dbell_unlink() 276 notify_msg.hdr.dst = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID, in dbell_notify_as_guest() 278 notify_msg.hdr.src = VMCI_ANON_SRC_HANDLE; in dbell_notify_as_guest() [all …]
|
/linux-4.4.14/drivers/vfio/pci/ |
D | vfio_pci.c | 564 struct vfio_irq_set hdr; in vfio_pci_ioctl() local 570 if (copy_from_user(&hdr, (void __user *)arg, minsz)) in vfio_pci_ioctl() 573 if (hdr.argsz < minsz || hdr.index >= VFIO_PCI_NUM_IRQS || in vfio_pci_ioctl() 574 hdr.flags & ~(VFIO_IRQ_SET_DATA_TYPE_MASK | in vfio_pci_ioctl() 578 if (!(hdr.flags & VFIO_IRQ_SET_DATA_NONE)) { in vfio_pci_ioctl() 580 int max = vfio_pci_get_irq_count(vdev, hdr.index); in vfio_pci_ioctl() 582 if (hdr.flags & VFIO_IRQ_SET_DATA_BOOL) in vfio_pci_ioctl() 584 else if (hdr.flags & VFIO_IRQ_SET_DATA_EVENTFD) in vfio_pci_ioctl() 589 if (hdr.argsz - minsz < hdr.count * size || in vfio_pci_ioctl() 590 hdr.start >= max || hdr.start + hdr.count > max) in vfio_pci_ioctl() [all …]
|
/linux-4.4.14/drivers/net/ |
D | virtio_net.c | 152 struct virtio_net_hdr_mrg_rxbuf hdr; member 252 struct virtio_net_hdr_mrg_rxbuf *hdr; in page_to_skb() local 263 hdr = skb_vnet_hdr(skb); in page_to_skb() 267 hdr_padded_len = sizeof *hdr; in page_to_skb() 271 memcpy(hdr, p, hdr_len); in page_to_skb() 357 struct virtio_net_hdr_mrg_rxbuf *hdr = buf; in receive_mergeable() local 358 u16 num_buf = virtio16_to_cpu(vi->vdev, hdr->num_buffers); in receive_mergeable() 377 hdr->num_buffers)); in receive_mergeable() 444 struct virtio_net_hdr_mrg_rxbuf *hdr; in receive_buf() local 471 hdr = skb_vnet_hdr(skb); in receive_buf() [all …]
|
/linux-4.4.14/sound/pci/emu10k1/ |
D | memory.c | 304 struct snd_util_memhdr *hdr; in snd_emu10k1_alloc_pages() local 313 hdr = emu->memhdr; in snd_emu10k1_alloc_pages() 314 if (snd_BUG_ON(!hdr)) in snd_emu10k1_alloc_pages() 319 mutex_lock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 322 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 339 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 350 __snd_util_mem_free(hdr, (struct snd_util_memblk *)blk); in snd_emu10k1_alloc_pages() 351 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 354 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 382 struct snd_util_memhdr *hdr = hw->memhdr; in snd_emu10k1_synth_alloc() local [all …]
|
/linux-4.4.14/drivers/staging/vt6656/ |
D | rxtx.c | 98 context->hdr = NULL; in vnt_get_free_context() 254 struct ieee80211_hdr *hdr) in vnt_mac_hdr_pos() argument 257 u8 *hdr_pos = (u8 *)hdr; in vnt_mac_hdr_pos() 259 tx_context->hdr = hdr; in vnt_mac_hdr_pos() 260 if (!tx_context->hdr) in vnt_mac_hdr_pos() 271 struct ieee80211_hdr *hdr = in vnt_rxtx_datahead_g() local 283 if (ieee80211_is_pspoll(hdr->frame_control)) { in vnt_rxtx_datahead_g() 299 tx_context->tx_hdr_size = vnt_mac_hdr_pos(tx_context, &buf->hdr); in vnt_rxtx_datahead_g() 332 tx_context->tx_hdr_size = vnt_mac_hdr_pos(tx_context, &buf->hdr); in vnt_rxtx_datahead_g_fb() 356 tx_context->tx_hdr_size = vnt_mac_hdr_pos(tx_context, &buf->hdr); in vnt_rxtx_datahead_a_fb() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/linux/ |
D | linux-module.c | 79 struct obd_ioctl_hdr hdr; in obd_ioctl_getdata() local 84 if (copy_from_user(&hdr, (void *)arg, sizeof(hdr))) in obd_ioctl_getdata() 87 if (hdr.ioc_version != OBD_IOCTL_VERSION) { in obd_ioctl_getdata() 89 OBD_IOCTL_VERSION, hdr.ioc_version); in obd_ioctl_getdata() 93 if (hdr.ioc_len > OBD_MAX_IOCTL_BUFFER) { in obd_ioctl_getdata() 95 hdr.ioc_len, OBD_MAX_IOCTL_BUFFER); in obd_ioctl_getdata() 99 if (hdr.ioc_len < sizeof(struct obd_ioctl_data)) { in obd_ioctl_getdata() 100 CERROR("User buffer too small for ioctl (%d)\n", hdr.ioc_len); in obd_ioctl_getdata() 108 *buf = libcfs_kvzalloc(hdr.ioc_len, GFP_NOFS); in obd_ioctl_getdata() 111 hdr.ioc_len); in obd_ioctl_getdata() [all …]
|
/linux-4.4.14/drivers/usb/wusbcore/ |
D | devconnect.c | 146 cack_ie->hdr.bLength = sizeof(cack_ie->hdr) in wusbhc_fill_cack_ie() 235 wusbhc_mmcie_set(wusbhc, 0, 0, &wusbhc->cack_ie.hdr); in wusbhc_devconnect_acked() 237 wusbhc_mmcie_rm(wusbhc, &wusbhc->cack_ie.hdr); in wusbhc_devconnect_acked() 323 result = wusbhc_mmcie_set(wusbhc, 0, 0, &wusbhc->cack_ie.hdr); in wusbhc_devconnect_ack() 412 old_keep_alives = ie->hdr.bLength - sizeof(ie->hdr); in __wusbhc_keep_alive() 438 ie->hdr.bLength = sizeof(ie->hdr) + in __wusbhc_keep_alive() 441 wusbhc_mmcie_set(wusbhc, 10, 5, &ie->hdr); in __wusbhc_keep_alive() 443 wusbhc_mmcie_rm(wusbhc, &ie->hdr); in __wusbhc_keep_alive() 548 dnc = container_of(dn_hdr, struct wusb_dn_connect, hdr); in wusbhc_handle_dn_connect() 672 ie->hdr.bLength = sizeof(*ie); in __wusbhc_dev_disable() [all …]
|
/linux-4.4.14/net/nfc/nci/ |
D | spi.c | 74 unsigned char *hdr; in nci_spi_send() local 79 hdr = skb_push(skb, NCI_SPI_HDR_LEN); in nci_spi_send() 80 hdr[0] = NCI_SPI_DIRECT_WRITE; in nci_spi_send() 81 hdr[1] = nspi->acknowledge_mode; in nci_spi_send() 82 hdr[2] = payload_len >> 8; in nci_spi_send() 83 hdr[3] = payload_len & 0xFF; in nci_spi_send() 161 unsigned char *hdr; in send_acknowledge() local 168 hdr = skb_push(skb, NCI_SPI_HDR_LEN); in send_acknowledge() 169 hdr[0] = NCI_SPI_DIRECT_WRITE; in send_acknowledge() 170 hdr[1] = NCI_SPI_CRC_ENABLED; in send_acknowledge() [all …]
|
/linux-4.4.14/include/net/nfc/ |
D | nci.h | 177 #define nci_mt(hdr) (((hdr)[0]>>5)&0x07) argument 178 #define nci_mt_set(hdr, mt) ((hdr)[0] |= (__u8)(((mt)&0x07)<<5)) argument 184 #define nci_pbf(hdr) (__u8)(((hdr)[0]>>4)&0x01) argument 185 #define nci_pbf_set(hdr, pbf) ((hdr)[0] |= (__u8)(((pbf)&0x01)<<4)) argument 190 #define nci_opcode(hdr) nci_opcode_pack(hdr[0], hdr[1]) argument 195 #define nci_plen(hdr) (__u8)((hdr)[2]) argument 198 #define nci_conn_id(hdr) (__u8)(((hdr)[0])&0x0f) argument
|
/linux-4.4.14/arch/s390/include/asm/ |
D | pci_clp.h | 51 struct clp_req_hdr hdr; member 61 struct clp_rsp_hdr hdr; member 75 struct clp_req_hdr hdr; member 86 struct clp_rsp_hdr hdr; member 110 struct clp_req_hdr hdr; member 122 struct clp_rsp_hdr hdr; member 143 struct clp_req_hdr hdr; member 156 struct clp_rsp_hdr hdr; member
|
/linux-4.4.14/include/scsi/ |
D | osd_attributes.h | 194 struct osd_attr_page_header hdr; /* id=R+2, size=0x24 */ member 211 struct osd_attr_page_header hdr; /* id=P+2, size=0x1C */ member 224 struct osd_attr_page_header hdr; /* id=U+2, size=0x8 */ member 236 struct osd_attr_page_header hdr; /* id=R+3, size=0xD */ member 255 struct osd_attr_page_header hdr; /* id=P+3, size=0x1F */ member 277 struct osd_attr_page_header hdr; /* id=C+3/3, size=0x1E */ member 314 struct osd_attr_page_header hdr; /* id=R+5, size=0x3F */ member 345 struct osd_attr_page_header hdr; /* id=p+5, size=0x8f */ member 368 struct osd_attr_page_header hdr; /* id=C+5/5, size=4 */ member 387 struct osd_attr_page_header hdr; /* id=0xFFFFFFFE, size=0x44 */ member
|
/linux-4.4.14/include/linux/usb/ |
D | wusb.h | 94 struct wuie_hdr hdr; member 106 struct wuie_hdr hdr; member 132 struct wuie_hdr hdr; member 143 struct wuie_hdr hdr; member 157 struct wuie_hdr hdr; member 168 struct wuie_hdr hdr; member 179 struct wuie_hdr hdr; member 203 struct wusb_dn_hdr hdr; member 225 struct wusb_dn_hdr hdr; member 230 struct wusb_dn_hdr hdr; member
|
/linux-4.4.14/net/ipv4/netfilter/ |
D | nf_nat_proto_icmp.c | 63 struct icmphdr *hdr; in icmp_manip_pkt() local 65 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) in icmp_manip_pkt() 68 hdr = (struct icmphdr *)(skb->data + hdroff); in icmp_manip_pkt() 69 inet_proto_csum_replace2(&hdr->checksum, skb, in icmp_manip_pkt() 70 hdr->un.echo.id, tuple->src.u.icmp.id, false); in icmp_manip_pkt() 71 hdr->un.echo.id = tuple->src.u.icmp.id; in icmp_manip_pkt()
|
/linux-4.4.14/drivers/staging/wlan-ng/ |
D | p80211mgmt.h | 301 union p80211_hdr *hdr; member 313 union p80211_hdr *hdr; member 336 union p80211_hdr *hdr; member 352 union p80211_hdr *hdr; member 367 union p80211_hdr *hdr; member 384 union p80211_hdr *hdr; member 401 union p80211_hdr *hdr; member 419 union p80211_hdr *hdr; member 436 union p80211_hdr *hdr; member 451 union p80211_hdr *hdr; member [all …]
|
/linux-4.4.14/scripts/mod/ |
D | modpost.c | 409 Elf_Ehdr *hdr; in parse_elf() local 415 hdr = grab_file(filename, &info->size); in parse_elf() 416 if (!hdr) { in parse_elf() 425 info->hdr = hdr; in parse_elf() 426 if (info->size < sizeof(*hdr)) { in parse_elf() 431 if ((hdr->e_ident[EI_MAG0] != ELFMAG0) || in parse_elf() 432 (hdr->e_ident[EI_MAG1] != ELFMAG1) || in parse_elf() 433 (hdr->e_ident[EI_MAG2] != ELFMAG2) || in parse_elf() 434 (hdr->e_ident[EI_MAG3] != ELFMAG3)) { in parse_elf() 439 hdr->e_type = TO_NATIVE(hdr->e_type); in parse_elf() [all …]
|