/linux/drivers/gpu/drm/nouveau/nvkm/nvfw/ |
H A D | acr.c | 26 wpr_header_dump(struct nvkm_subdev *subdev, const struct wpr_header *hdr) in wpr_header_dump() argument 29 nvkm_debug(subdev, "\tfalconID : %d\n", hdr->falcon_id); in wpr_header_dump() 30 nvkm_debug(subdev, "\tlsbOffset : 0x%x\n", hdr->lsb_offset); in wpr_header_dump() 31 nvkm_debug(subdev, "\tbootstrapOwner: %d\n", hdr->bootstrap_owner); in wpr_header_dump() 32 nvkm_debug(subdev, "\tlazyBootstrap : %d\n", hdr->lazy_bootstrap); in wpr_header_dump() 33 nvkm_debug(subdev, "\tstatus : %d\n", hdr->status); in wpr_header_dump() 37 wpr_header_v1_dump(struct nvkm_subdev *subdev, const struct wpr_header_v1 *hdr) in wpr_header_v1_dump() argument 40 nvkm_debug(subdev, "\tfalconID : %d\n", hdr->falcon_id); in wpr_header_v1_dump() 41 nvkm_debug(subdev, "\tlsbOffset : 0x%x\n", hdr->lsb_offset); in wpr_header_v1_dump() 42 nvkm_debug(subdev, "\tbootstrapOwner: %d\n", hdr->bootstrap_owner); in wpr_header_v1_dump() [all …]
|
H A D | flcn.c | 26 loader_config_dump(struct nvkm_subdev *subdev, const struct loader_config *hdr) in loader_config_dump() argument 29 nvkm_debug(subdev, "\tdmaIdx : %d\n", hdr->dma_idx); in loader_config_dump() 30 nvkm_debug(subdev, "\tcodeDmaBase : 0x%xx\n", hdr->code_dma_base); in loader_config_dump() 31 nvkm_debug(subdev, "\tcodeSizeTotal : 0x%x\n", hdr->code_size_total); in loader_config_dump() 32 nvkm_debug(subdev, "\tcodeSizeToLoad: 0x%x\n", hdr->code_size_to_load); in loader_config_dump() 33 nvkm_debug(subdev, "\tcodeEntryPoint: 0x%x\n", hdr->code_entry_point); in loader_config_dump() 34 nvkm_debug(subdev, "\tdataDmaBase : 0x%x\n", hdr->data_dma_base); in loader_config_dump() 35 nvkm_debug(subdev, "\tdataSize : 0x%x\n", hdr->data_size); in loader_config_dump() 36 nvkm_debug(subdev, "\toverlayDmaBase: 0x%x\n", hdr->overlay_dma_base); in loader_config_dump() 37 nvkm_debug(subdev, "\targc : 0x%08x\n", hdr->argc); in loader_config_dump() [all …]
|
H A D | ls.c | 27 const struct nvfw_ls_desc_head *hdr) in nvfw_ls_desc_head() argument 33 hdr->descriptor_size); in nvfw_ls_desc_head() 34 nvkm_debug(subdev, "\timageSize : %d\n", hdr->image_size); in nvfw_ls_desc_head() 36 hdr->tools_version); in nvfw_ls_desc_head() 37 nvkm_debug(subdev, "\tappVersion : 0x%x\n", hdr->app_version); in nvfw_ls_desc_head() 39 date = kstrndup(hdr->date, sizeof(hdr->date), GFP_KERNEL); in nvfw_ls_desc_head() 44 hdr->bootloader_start_offset); in nvfw_ls_desc_head() 46 hdr->bootloader_size); in nvfw_ls_desc_head() 48 hdr->bootloader_imem_offset); in nvfw_ls_desc_head() 50 hdr->bootloader_entry_point); in nvfw_ls_desc_head() [all …]
|
H A D | hs.c | 28 const struct nvfw_hs_header *hdr = data; in nvfw_hs_header() local 30 nvkm_debug(subdev, "\tsigDbgOffset : 0x%x\n", hdr->sig_dbg_offset); in nvfw_hs_header() 31 nvkm_debug(subdev, "\tsigDbgSize : 0x%x\n", hdr->sig_dbg_size); in nvfw_hs_header() 32 nvkm_debug(subdev, "\tsigProdOffset : 0x%x\n", hdr->sig_prod_offset); in nvfw_hs_header() 33 nvkm_debug(subdev, "\tsigProdSize : 0x%x\n", hdr->sig_prod_size); in nvfw_hs_header() 34 nvkm_debug(subdev, "\tpatchLoc : 0x%x\n", hdr->patch_loc); in nvfw_hs_header() 35 nvkm_debug(subdev, "\tpatchSig : 0x%x\n", hdr->patch_sig); in nvfw_hs_header() 36 nvkm_debug(subdev, "\thdrOffset : 0x%x\n", hdr->hdr_offset); in nvfw_hs_header() 37 nvkm_debug(subdev, "\thdrSize : 0x%x\n", hdr->hdr_size); in nvfw_hs_header() 38 return hdr; in nvfw_hs_header() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/acr/ |
H A D | ga102.c | 30 struct wpr_header_v2 hdr; in ga102_acr_wpr_patch() local 40 nvkm_robj(acr->wpr, offset, &hdr, sizeof(hdr)); in ga102_acr_wpr_patch() 41 wpr_header_v2_dump(&acr->subdev, &hdr); in ga102_acr_wpr_patch() 44 if (lsfw->id != hdr.wpr.falcon_id) in ga102_acr_wpr_patch() 47 nvkm_robj(acr->wpr, hdr.wpr.lsb_offset, lsb, sizeof(*lsb)); in ga102_acr_wpr_patch() 54 offset += sizeof(hdr); in ga102_acr_wpr_patch() 55 } while (hdr.wpr.falcon_id != WPR_HEADER_V1_FALCON_ID_INVALID); in ga102_acr_wpr_patch() 64 struct lsb_header_v2 *hdr; in ga102_acr_wpr_build_lsb() local 67 if (WARN_ON(lsfw->sig->size != sizeof(hdr->signature))) in ga102_acr_wpr_build_lsb() 70 hdr = kvzalloc(sizeof(*hdr), GFP_KERNEL); in ga102_acr_wpr_build_lsb() [all …]
|
/linux/sound/synth/ |
H A D | util_mem.c | 27 struct snd_util_memhdr *hdr; in snd_util_memhdr_new() local 29 hdr = kzalloc(sizeof(*hdr), GFP_KERNEL); in snd_util_memhdr_new() 30 if (hdr == NULL) in snd_util_memhdr_new() 32 hdr->size = memsize; in snd_util_memhdr_new() 33 mutex_init(&hdr->block_mutex); in snd_util_memhdr_new() 34 INIT_LIST_HEAD(&hdr->block); in snd_util_memhdr_new() 36 return hdr; in snd_util_memhdr_new() 42 void snd_util_memhdr_free(struct snd_util_memhdr *hdr) in snd_util_memhdr_free() argument 46 if (!hdr) in snd_util_memhdr_free() 49 while ((p = hdr->block.next) != &hdr->block) { in snd_util_memhdr_free() [all …]
|
/linux/drivers/s390/scsi/ |
H A D | zfcp_diag.c | 37 struct zfcp_diag_header *hdr; in zfcp_diag_adapter_setup() local 46 hdr = &diag->port_data.header; in zfcp_diag_adapter_setup() 48 spin_lock_init(&hdr->access_lock); in zfcp_diag_adapter_setup() 49 hdr->buffer = &diag->port_data.data; in zfcp_diag_adapter_setup() 50 hdr->buffer_size = sizeof(diag->port_data.data); in zfcp_diag_adapter_setup() 52 hdr->timestamp = jiffies - msecs_to_jiffies(diag->max_age); in zfcp_diag_adapter_setup() 55 hdr = &diag->config_data.header; in zfcp_diag_adapter_setup() 57 spin_lock_init(&hdr->access_lock); in zfcp_diag_adapter_setup() 58 hdr->buffer = &diag->config_data.data; in zfcp_diag_adapter_setup() 59 hdr->buffer_size = sizeof(diag->config_data.data); in zfcp_diag_adapter_setup() [all …]
|
/linux/drivers/gpu/drm/radeon/ |
H A 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/net/ieee802154/ |
H A D | header_ops.c | 47 ieee802154_hdr_push_sechdr(u8 *buf, const struct ieee802154_sechdr *hdr) in ieee802154_hdr_push_sechdr() argument 51 memcpy(buf, hdr, 1); in ieee802154_hdr_push_sechdr() 52 memcpy(buf + 1, &hdr->frame_counter, 4); in ieee802154_hdr_push_sechdr() 54 switch (hdr->key_id_mode) { in ieee802154_hdr_push_sechdr() 62 memcpy(buf + pos, &hdr->short_src, 4); in ieee802154_hdr_push_sechdr() 67 memcpy(buf + pos, &hdr->extended_src, IEEE802154_ADDR_LEN); in ieee802154_hdr_push_sechdr() 72 buf[pos++] = hdr->key_id; in ieee802154_hdr_push_sechdr() 78 ieee802154_hdr_push(struct sk_buff *skb, struct ieee802154_hdr *hdr) in ieee802154_hdr_push() argument 83 struct ieee802154_hdr_fc *fc = &hdr->fc; in ieee802154_hdr_push() 85 buf[pos++] = hdr->seq; in ieee802154_hdr_push() [all …]
|
/linux/drivers/net/ethernet/meta/fbnic/ |
H A D | fbnic_tlv.c | 24 struct fbnic_tlv_hdr hdr = { 0 }; in fbnic_tlv_msg_alloc() local 32 hdr.type = msg_id; in fbnic_tlv_msg_alloc() 33 hdr.is_msg = 1; in fbnic_tlv_msg_alloc() 34 hdr.len = cpu_to_le16(1); in fbnic_tlv_msg_alloc() 37 msg->hdr = hdr; in fbnic_tlv_msg_alloc() 56 struct fbnic_tlv_hdr hdr = { 0 }; in fbnic_tlv_attr_put_flag() local 59 attr_max_len -= le16_to_cpu(msg->hdr.len) * sizeof(u32); in fbnic_tlv_attr_put_flag() 64 attr = &msg[le16_to_cpu(msg->hdr.len)]; in fbnic_tlv_attr_put_flag() 67 hdr.type = attr_id; in fbnic_tlv_attr_put_flag() 68 hdr.len = cpu_to_le16(sizeof(hdr)); in fbnic_tlv_attr_put_flag() [all …]
|
/linux/drivers/scsi/ |
H A D | scsi_bsg.c | 12 static int scsi_bsg_sg_io_fn(struct request_queue *q, struct sg_io_v4 *hdr, in scsi_bsg_sg_io_fn() argument 20 if (hdr->protocol != BSG_PROTOCOL_SCSI || in scsi_bsg_sg_io_fn() 21 hdr->subprotocol != BSG_SUB_PROTOCOL_SCSI_CMD) in scsi_bsg_sg_io_fn() 23 if (hdr->dout_xfer_len && hdr->din_xfer_len) { in scsi_bsg_sg_io_fn() 28 rq = scsi_alloc_request(q, hdr->dout_xfer_len ? in scsi_bsg_sg_io_fn() 35 scmd->cmd_len = hdr->request_len; in scsi_bsg_sg_io_fn() 42 if (copy_from_user(scmd->cmnd, uptr64(hdr->request), scmd->cmd_len)) in scsi_bsg_sg_io_fn() 49 if (hdr->dout_xfer_len) { in scsi_bsg_sg_io_fn() 50 ret = blk_rq_map_user(rq->q, rq, NULL, uptr64(hdr->dout_xferp), in scsi_bsg_sg_io_fn() 51 hdr->dout_xfer_len, GFP_KERNEL); in scsi_bsg_sg_io_fn() [all …]
|
H A D | scsi_ioctl.c | 365 struct sg_io_hdr *hdr, bool open_for_write) in scsi_fill_sghdr_rq() argument 369 if (hdr->cmd_len < 6) in scsi_fill_sghdr_rq() 371 if (copy_from_user(scmd->cmnd, hdr->cmdp, hdr->cmd_len)) in scsi_fill_sghdr_rq() 375 scmd->cmd_len = hdr->cmd_len; in scsi_fill_sghdr_rq() 377 rq->timeout = msecs_to_jiffies(hdr->timeout); in scsi_fill_sghdr_rq() 388 static int scsi_complete_sghdr_rq(struct request *rq, struct sg_io_hdr *hdr, in scsi_complete_sghdr_rq() argument 397 hdr->status = scmd->result & 0xff; in scsi_complete_sghdr_rq() 398 hdr->masked_status = sg_status_byte(scmd->result); in scsi_complete_sghdr_rq() 399 hdr->msg_status = COMMAND_COMPLETE; in scsi_complete_sghdr_rq() 400 hdr->host_status = host_byte(scmd->result); in scsi_complete_sghdr_rq() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_lwt_ip_encap.c | 21 } hdr; in bpf_lwt_encap_gre() local 24 memset(&hdr, 0, sizeof(struct encap_hdr)); in bpf_lwt_encap_gre() 26 hdr.iph.ihl = 5; in bpf_lwt_encap_gre() 27 hdr.iph.version = 4; in bpf_lwt_encap_gre() 28 hdr.iph.ttl = 0x40; in bpf_lwt_encap_gre() 29 hdr.iph.protocol = 47; /* IPPROTO_GRE */ in bpf_lwt_encap_gre() 31 hdr.iph.saddr = 0x640110ac; /* 172.16.1.100 */ in bpf_lwt_encap_gre() 32 hdr.iph.daddr = 0x641010ac; /* 172.16.16.100 */ in bpf_lwt_encap_gre() 34 hdr.iph.saddr = 0xac100164; /* 172.16.1.100 */ in bpf_lwt_encap_gre() 35 hdr.iph.daddr = 0xac101064; /* 172.16.16.100 */ in bpf_lwt_encap_gre() [all …]
|
H A D | test_misc_tcp_hdr_options.c | 41 } hdr = {}; in __check_active_hdr_in() local 46 hdr.reg_opt.kind = 0xB9; in __check_active_hdr_in() 49 ret = bpf_load_hdr_opt(skops, &hdr.reg_opt, 2, load_flags); in __check_active_hdr_in() 54 hdr.reg_opt.len = 4; in __check_active_hdr_in() 55 ret = bpf_load_hdr_opt(skops, &hdr.reg_opt, sizeof(hdr.reg_opt), in __check_active_hdr_in() 60 hdr.reg_opt.len = 0; in __check_active_hdr_in() 61 ret = bpf_load_hdr_opt(skops, &hdr.reg_opt, sizeof(hdr.reg_opt), in __check_active_hdr_in() 63 if (ret != 4 || hdr.reg_opt.len != 4 || hdr.reg_opt.kind != 0xB9 || in __check_active_hdr_in() 64 hdr.reg_opt.data[0] != 0xfa || hdr.reg_opt.data[1] != 0xce) in __check_active_hdr_in() 68 hdr.exprm_opt.kind = TCPOPT_EXP; in __check_active_hdr_in() [all …]
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_dir2_data.c | 24 struct xfs_dir2_data_hdr *hdr, struct xfs_dir2_data_free *bf, 31 struct xfs_dir2_data_hdr *hdr) in xfs_dir2_data_bestfree_p() argument 34 return ((struct xfs_dir3_data_hdr *)hdr)->best_free; in xfs_dir2_data_bestfree_p() 35 return hdr->bestfree; in xfs_dir2_data_bestfree_p() 107 xfs_dir2_data_hdr_t *hdr; /* data block header */ in __xfs_dir3_data_check() local 127 hdr = bp->b_addr; in __xfs_dir3_data_check() 130 switch (hdr->magic) { in __xfs_dir3_data_check() 133 btp = xfs_dir2_block_tail_p(geo, hdr); in __xfs_dir3_data_check() 146 end = xfs_dir3_data_end_offset(geo, hdr); in __xfs_dir3_data_check() 153 bf = xfs_dir2_data_bestfree_p(mp, hdr); in __xfs_dir3_data_check() [all …]
|
/linux/fs/smb/server/ |
H A D | smb2misc.c | 14 static int check_smb2_hdr(struct smb2_hdr *hdr) in check_smb2_hdr() argument 19 if (hdr->Flags & SMB2_FLAGS_SERVER_TO_REDIR) in check_smb2_hdr() 86 struct smb2_hdr *hdr) in smb2_get_data_area_len() argument 98 switch (hdr->Command) { in smb2_get_data_area_len() 100 *off = le16_to_cpu(((struct smb2_sess_setup_req *)hdr)->SecurityBufferOffset); in smb2_get_data_area_len() 101 *len = le16_to_cpu(((struct smb2_sess_setup_req *)hdr)->SecurityBufferLength); in smb2_get_data_area_len() 105 le16_to_cpu(((struct smb2_tree_connect_req *)hdr)->PathOffset), in smb2_get_data_area_len() 107 *len = le16_to_cpu(((struct smb2_tree_connect_req *)hdr)->PathLength); in smb2_get_data_area_len() 113 le16_to_cpu(((struct smb2_create_req *)hdr)->NameOffset), in smb2_get_data_area_len() 116 le16_to_cpu(((struct smb2_create_req *)hdr)->NameLength); in smb2_get_data_area_len() [all …]
|
/linux/fs/nfs/ |
H A D | nfs42xdr.c | 280 struct compound_hdr *hdr) in encode_allocate() 282 encode_op_hdr(xdr, OP_ALLOCATE, decode_allocate_maxsz, hdr); in encode_allocate() 308 struct compound_hdr *hdr) in encode_copy() 310 encode_op_hdr(xdr, OP_COPY, decode_copy_maxsz, hdr); in encode_copy() 330 struct compound_hdr *hdr) in encode_copy_commit() 334 encode_op_hdr(xdr, OP_COMMIT, decode_commit_maxsz, hdr); in encode_copy_commit() 342 struct compound_hdr *hdr) in encode_offload_cancel() 344 encode_op_hdr(xdr, OP_OFFLOAD_CANCEL, decode_offload_cancel_maxsz, hdr); in encode_offload_cancel() 350 struct compound_hdr *hdr) in encode_copy_notify() 352 encode_op_hdr(xdr, OP_COPY_NOTIFY, decode_copy_notify_maxsz, hdr); in encode_copy_notify() 278 encode_allocate(struct xdr_stream * xdr,const struct nfs42_falloc_args * args,struct compound_hdr * hdr) encode_allocate() argument 306 encode_copy(struct xdr_stream * xdr,const struct nfs42_copy_args * args,struct compound_hdr * hdr) encode_copy() argument 328 encode_copy_commit(struct xdr_stream * xdr,const struct nfs42_copy_args * args,struct compound_hdr * hdr) encode_copy_commit() argument 340 encode_offload_cancel(struct xdr_stream * xdr,const struct nfs42_offload_status_args * args,struct compound_hdr * hdr) encode_offload_cancel() argument 348 encode_copy_notify(struct xdr_stream * xdr,const struct nfs42_copy_notify_args * args,struct compound_hdr * hdr) encode_copy_notify() argument 357 encode_deallocate(struct xdr_stream * xdr,const struct nfs42_falloc_args * args,struct compound_hdr * hdr) encode_deallocate() argument 365 encode_read_plus(struct xdr_stream * xdr,const struct nfs_pgio_args * args,struct compound_hdr * hdr) encode_read_plus() argument 375 encode_seek(struct xdr_stream * xdr,const struct nfs42_seek_args * args,struct compound_hdr * hdr) encode_seek() argument 386 encode_layoutstats(struct xdr_stream * xdr,const struct nfs42_layoutstat_args * args,struct nfs42_layoutstat_devinfo * devinfo,struct compound_hdr * hdr) encode_layoutstats() argument 413 encode_clone(struct xdr_stream * xdr,const struct nfs42_clone_args * args,struct compound_hdr * hdr) encode_clone() argument 440 encode_layouterror(struct xdr_stream * xdr,const struct nfs42_layout_error * args,struct compound_hdr * hdr) encode_layouterror() argument 456 encode_setxattr(struct xdr_stream * xdr,const struct nfs42_setxattrargs * arg,struct compound_hdr * hdr) encode_setxattr() argument 474 encode_getxattr(struct xdr_stream * xdr,const char * name,struct compound_hdr * hdr) encode_getxattr() argument 481 encode_removexattr(struct xdr_stream * xdr,const char * name,struct compound_hdr * hdr) encode_removexattr() argument 489 encode_listxattrs(struct xdr_stream * xdr,const struct nfs42_listxattrsargs * arg,struct compound_hdr * hdr) encode_listxattrs() argument 516 struct compound_hdr hdr = { nfs4_xdr_enc_allocate() local 536 struct compound_hdr hdr = { nfs4_xdr_enc_copy() local 559 struct compound_hdr hdr = { nfs4_xdr_enc_offload_cancel() local 578 struct compound_hdr hdr = { nfs4_xdr_enc_copy_notify() local 597 struct compound_hdr hdr = { nfs4_xdr_enc_deallocate() local 617 struct compound_hdr hdr = { nfs4_xdr_enc_read_plus() local 639 struct compound_hdr hdr = { nfs4_xdr_enc_seek() local 660 struct compound_hdr hdr = { nfs4_xdr_enc_layoutstats() local 681 struct compound_hdr hdr = { nfs4_xdr_enc_clone() local 703 struct compound_hdr hdr = { nfs4_xdr_enc_layouterror() local 723 struct compound_hdr hdr = { nfs4_xdr_enc_setxattr() local 742 struct compound_hdr hdr = { nfs4_xdr_enc_getxattr() local 766 struct compound_hdr hdr = { nfs4_xdr_enc_listxattrs() local 789 struct compound_hdr hdr = { nfs4_xdr_enc_removexattr() local 1045 struct nfs_pgio_header *hdr = decode_read_plus() local 1290 struct compound_hdr hdr; nfs4_xdr_dec_allocate() local 1318 struct compound_hdr hdr; nfs4_xdr_dec_copy() local 1353 struct compound_hdr hdr; nfs4_xdr_dec_offload_cancel() local 1379 struct compound_hdr hdr; nfs4_xdr_dec_copy_notify() local 1405 struct compound_hdr hdr; nfs4_xdr_dec_deallocate() local 1433 struct compound_hdr hdr; nfs4_xdr_dec_read_plus() local 1462 struct compound_hdr hdr; nfs4_xdr_dec_seek() local 1487 struct compound_hdr hdr; nfs4_xdr_dec_layoutstats() local 1518 struct compound_hdr hdr; nfs4_xdr_dec_clone() local 1553 struct compound_hdr hdr; nfs4_xdr_dec_layouterror() local 1578 struct compound_hdr hdr; nfs4_xdr_dec_setxattr() local 1605 struct compound_hdr hdr; nfs4_xdr_dec_getxattr() local 1629 struct compound_hdr hdr; nfs4_xdr_dec_listxattrs() local 1655 struct compound_hdr hdr; nfs4_xdr_dec_removexattr() local [all...] |
H A D | pagelist.c | 96 struct nfs_pgio_header *hdr, in nfs_pgheader_init() argument 97 void (*release)(struct nfs_pgio_header *hdr)) in nfs_pgheader_init() argument 102 hdr->req = nfs_list_entry(mirror->pg_list.next); in nfs_pgheader_init() 103 hdr->inode = desc->pg_inode; in nfs_pgheader_init() 104 hdr->cred = nfs_req_openctx(hdr->req)->cred; in nfs_pgheader_init() 105 hdr->io_start = req_offset(hdr->req); in nfs_pgheader_init() 106 hdr->good_bytes = mirror->pg_count; in nfs_pgheader_init() 107 hdr in nfs_pgheader_init() 119 nfs_set_pgio_error(struct nfs_pgio_header * hdr,int error,loff_t pos) nfs_set_pgio_error() argument 636 struct nfs_pgio_header *hdr = ops->rw_alloc_header(); nfs_pgio_header_alloc() local 654 nfs_pgio_data_destroy(struct nfs_pgio_header * hdr) nfs_pgio_data_destroy() argument 666 nfs_pgio_header_free(struct nfs_pgio_header * hdr) nfs_pgio_header_free() argument 681 nfs_pgio_rpcsetup(struct nfs_pgio_header * hdr,unsigned int pgbase,unsigned int count,int how,struct nfs_commit_info * cinfo) nfs_pgio_rpcsetup() argument 725 struct nfs_pgio_header *hdr = calldata; nfs_pgio_prepare() local 732 nfs_initiate_pgio(struct rpc_clnt * clnt,struct nfs_pgio_header * hdr,const struct cred * cred,const struct nfs_rpc_ops * rpc_ops,const struct rpc_call_ops * call_ops,int how,int flags,struct nfsd_file * localio) nfs_initiate_pgio() argument 781 nfs_pgio_error(struct nfs_pgio_header * hdr) nfs_pgio_error() argument 793 struct nfs_pgio_header *hdr = calldata; nfs_pgio_release() local 855 struct nfs_pgio_header *hdr = calldata; nfs_pgio_result() local 875 nfs_generic_pgio(struct nfs_pageio_descriptor * desc,struct nfs_pgio_header * hdr) nfs_generic_pgio() argument 949 struct nfs_pgio_header *hdr; nfs_generic_pg_pgios() local 1374 nfs_pageio_resend(struct nfs_pageio_descriptor * desc,struct nfs_pgio_header * hdr) nfs_pageio_resend() argument [all...] |
/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_adv_rss.c | 14 iavf_fill_adv_rss_ip4_hdr(struct virtchnl_proto_hdr *hdr, u64 hash_flds) in iavf_fill_adv_rss_ip4_hdr() argument 16 VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, IPV4); in iavf_fill_adv_rss_ip4_hdr() 19 VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV4, SRC); in iavf_fill_adv_rss_ip4_hdr() 22 VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV4, DST); in iavf_fill_adv_rss_ip4_hdr() 31 iavf_fill_adv_rss_ip6_hdr(struct virtchnl_proto_hdr *hdr, u64 hash_flds) in iavf_fill_adv_rss_ip6_hdr() argument 33 VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, IPV6); in iavf_fill_adv_rss_ip6_hdr() 36 VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV6, SRC); in iavf_fill_adv_rss_ip6_hdr() 39 VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV6, DST); in iavf_fill_adv_rss_ip6_hdr() 48 iavf_fill_adv_rss_tcp_hdr(struct virtchnl_proto_hdr *hdr, u64 hash_flds) in iavf_fill_adv_rss_tcp_hdr() argument 50 VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, TCP); in iavf_fill_adv_rss_tcp_hdr() [all …]
|
/linux/drivers/firmware/google/ |
H A D | memconsole-x86-legacy.c | 52 static void found_v1_header(struct biosmemcon_ebda *hdr) in found_v1_header() argument 55 hdr); in found_v1_header() 57 hdr->v1.buffer_addr, hdr->v1.start, in found_v1_header() 58 hdr->v1.end, hdr->v1.num_chars); in found_v1_header() 60 memconsole_baseaddr = phys_to_virt(hdr->v1.buffer_addr); in found_v1_header() 61 memconsole_length = hdr->v1.num_chars; in found_v1_header() 65 static void found_v2_header(struct biosmemcon_ebda *hdr) in found_v2_header() argument 68 hdr); in found_v2_header() 70 hdr->v2.buffer_addr, hdr->v2.start, in found_v2_header() 71 hdr->v2.end, hdr->v2.num_bytes); in found_v2_header() [all …]
|
/linux/scripts/ |
H A D | insert-sys-cert.c | 68 static unsigned long get_offset_from_address(Elf_Ehdr *hdr, unsigned long addr) in get_offset_from_address() argument 73 x = (void *)hdr + hdr->e_shoff; in get_offset_from_address() 74 if (hdr->e_shnum == SHN_UNDEF) in get_offset_from_address() 77 num_sections = hdr->e_shnum; in get_offset_from_address() 93 static void get_symbol_from_map(Elf_Ehdr *hdr, FILE *f, char *name, in get_symbol_from_map() argument 128 s->offset = get_offset_from_address(hdr, s->address); in get_symbol_from_map() 130 s->content = (void *)hdr + s->offset; in get_symbol_from_map() 133 static Elf_Sym *find_elf_symbol(Elf_Ehdr *hdr, Elf_Shdr *symtab, char *name) in find_elf_symbol() argument 141 x = (void *)hdr + hdr->e_shoff; in find_elf_symbol() 143 symtab_start = (void *)hdr + symtab->sh_offset; in find_elf_symbol() [all …]
|
/linux/drivers/firmware/imx/ |
H A D | misc.c | 15 struct imx_sc_rpc_msg hdr; member 22 struct imx_sc_rpc_msg hdr; member 30 struct imx_sc_rpc_msg hdr; member 36 struct imx_sc_rpc_msg hdr; member 55 struct imx_sc_rpc_msg *hdr = &msg.hdr; in imx_sc_misc_set_control() local 57 hdr->ver = IMX_SC_RPC_VERSION; in imx_sc_misc_set_control() 58 hdr->svc = (uint8_t)IMX_SC_RPC_SVC_MISC; in imx_sc_misc_set_control() 59 hdr->func = (uint8_t)IMX_SC_MISC_FUNC_SET_CONTROL; in imx_sc_misc_set_control() 60 hdr->size = 4; in imx_sc_misc_set_control() 86 struct imx_sc_rpc_msg *hdr = &msg.hdr; in imx_sc_misc_get_control() local [all …]
|
/linux/fs/nfs/filelayout/ |
H A D | filelayout.c | 89 static void filelayout_reset_write(struct nfs_pgio_header *hdr) in filelayout_reset_write() argument 91 struct rpc_task *task = &hdr->task; in filelayout_reset_write() 93 if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) { in filelayout_reset_write() 96 hdr->task.tk_pid, in filelayout_reset_write() 97 hdr->inode->i_sb->s_id, in filelayout_reset_write() 98 (unsigned long long)NFS_FILEID(hdr->inode), in filelayout_reset_write() 99 hdr->args.count, in filelayout_reset_write() 100 (unsigned long long)hdr->args.offset); in filelayout_reset_write() 102 task->tk_status = pnfs_write_done_resend_to_mds(hdr); in filelayout_reset_write() 106 static void filelayout_reset_read(struct nfs_pgio_header *hdr) in filelayout_reset_read() argument [all …]
|
/linux/drivers/media/platform/verisilicon/ |
H A D | hantro_g1_vp8_dec.c | 135 const struct v4l2_ctrl_vp8_frame *hdr) in cfg_lf() argument 137 const struct v4l2_vp8_segment *seg = &hdr->segment; in cfg_lf() 138 const struct v4l2_vp8_loop_filter *lf = &hdr->lf; in cfg_lf() 177 const struct v4l2_ctrl_vp8_frame *hdr) in cfg_qp() argument 179 const struct v4l2_vp8_quantization *q = &hdr->quant; in cfg_qp() 180 const struct v4l2_vp8_segment *seg = &hdr->segment; in cfg_qp() 232 const struct v4l2_ctrl_vp8_frame *hdr) in cfg_parts() argument 236 u32 first_part_offset = V4L2_VP8_FRAME_IS_KEY_FRAME(hdr) ? 10 : 3; in cfg_parts() 260 hdr->first_part_header_bits + 8; in cfg_parts() 264 mb_size = hdr->first_part_size - in cfg_parts() [all …]
|
/linux/net/6lowpan/ |
H A D | iphc.c | 149 (!(hdr->saddr.s6_addr[1] & 0x3f) && \ 150 !hdr->saddr.s6_addr16[1] && \ 151 !hdr->saddr.s6_addr32[1]) 504 static inline void lowpan_iphc_tf_set_ecn(struct ipv6hdr *hdr, const u8 *tf) in lowpan_iphc_tf_set_ecn() argument 510 hdr->flow_lbl[0] |= (ecn >> 2); in lowpan_iphc_tf_set_ecn() 514 static inline void lowpan_iphc_tf_set_dscp(struct ipv6hdr *hdr, const u8 *tf) in lowpan_iphc_tf_set_dscp() argument 520 hdr->priority |= ((dscp & 0x3c) >> 2); in lowpan_iphc_tf_set_dscp() 522 hdr->flow_lbl[0] |= ((dscp & 0x03) << 6); in lowpan_iphc_tf_set_dscp() 526 static inline void lowpan_iphc_tf_set_lbl(struct ipv6hdr *hdr, const u8 *lbl) in lowpan_iphc_tf_set_lbl() argument 537 hdr->flow_lbl[0] |= lbl[0] & 0x0f; in lowpan_iphc_tf_set_lbl() [all …]
|