Searched refs:vh (Results 1 - 16 of 16) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvif/
H A Dunpack.h9 #define nvif_unpack(d,vl,vh,m) ({ \
13 (d).version <= (vh)) { \
/linux-4.4.14/fs/efs/
H A Dsuper.c46 {0x00, "SGI vh"},
159 static efs_block_t efs_validate_vh(struct volume_header *vh) { efs_validate_vh() argument
167 if (be32_to_cpu(vh->vh_magic) != VHMAGIC) { efs_validate_vh()
176 ui = ((__be32 *) (vh + 1)) - 1; efs_validate_vh()
177 for(csum = 0; ui >= ((__be32 *) vh);) { efs_validate_vh()
187 pr_debug("bf: \"%16s\"\n", vh->vh_bootfile); efs_validate_vh()
194 name[j] = vh->vh_vd[i].vd_name[j]; efs_validate_vh()
199 pr_debug("vh: %8s block: 0x%08x size: 0x%08x\n", efs_validate_vh()
200 name, (int) be32_to_cpu(vh->vh_vd[i].vd_lbn), efs_validate_vh()
201 (int) be32_to_cpu(vh->vh_vd[i].vd_nbytes)); efs_validate_vh()
207 pt_type = (int) be32_to_cpu(vh->vh_pt[i].pt_type); efs_validate_vh()
212 if (be32_to_cpu(vh->vh_pt[i].pt_nblks)) { efs_validate_vh()
214 i, (int)be32_to_cpu(vh->vh_pt[i].pt_firstlbn), efs_validate_vh()
215 (int)be32_to_cpu(vh->vh_pt[i].pt_nblks), efs_validate_vh()
221 sblock = be32_to_cpu(vh->vh_pt[i].pt_firstlbn); efs_validate_vh()
273 /* read the vh (volume header) block */ efs_fill_super()
/linux-4.4.14/drivers/media/pci/solo6x10/
H A Dsolo6x10-v4l2-enc.c98 const vop_header *vh; member in struct:solo_enc_buf
403 static inline int vop_interlaced(const vop_header *vh) vop_interlaced() argument
405 return (__le32_to_cpu((*vh)[0]) >> 30) & 1; vop_interlaced()
408 static inline u8 vop_channel(const vop_header *vh) vop_channel() argument
410 return (__le32_to_cpu((*vh)[0]) >> 24) & 0x1F; vop_channel()
413 static inline u8 vop_type(const vop_header *vh) vop_type() argument
415 return (__le32_to_cpu((*vh)[0]) >> 22) & 3; vop_type()
418 static inline u32 vop_mpeg_size(const vop_header *vh) vop_mpeg_size() argument
420 return __le32_to_cpu((*vh)[0]) & 0xFFFFF; vop_mpeg_size()
423 static inline u8 vop_hsize(const vop_header *vh) vop_hsize() argument
425 return (__le32_to_cpu((*vh)[1]) >> 8) & 0xFF; vop_hsize()
428 static inline u8 vop_vsize(const vop_header *vh) vop_vsize() argument
430 return __le32_to_cpu((*vh)[1]) & 0xFF; vop_vsize()
433 static inline u32 vop_mpeg_offset(const vop_header *vh) vop_mpeg_offset() argument
435 return __le32_to_cpu((*vh)[2]); vop_mpeg_offset()
438 static inline u32 vop_jpeg_offset(const vop_header *vh) vop_jpeg_offset() argument
440 return __le32_to_cpu((*vh)[3]); vop_jpeg_offset()
443 static inline u32 vop_jpeg_size(const vop_header *vh) vop_jpeg_size() argument
445 return __le32_to_cpu((*vh)[4]) & 0xFFFFF; vop_jpeg_size()
448 static inline u32 vop_sec(const vop_header *vh) vop_sec() argument
450 return __le32_to_cpu((*vh)[5]); vop_sec()
453 static inline u32 vop_usec(const vop_header *vh) vop_usec() argument
455 return __le32_to_cpu((*vh)[6]); vop_usec()
459 struct vb2_buffer *vb, const vop_header *vh) solo_fill_jpeg()
468 if (vb2_plane_size(vb, 0) < vop_jpeg_size(vh) + solo_enc->jpeg_len) solo_fill_jpeg()
471 frame_size = ALIGN(vop_jpeg_size(vh) + solo_enc->jpeg_len, DMA_ALIGN); solo_fill_jpeg()
472 vb2_set_plane_payload(vb, 0, vop_jpeg_size(vh) + solo_enc->jpeg_len); solo_fill_jpeg()
475 vop_jpeg_offset(vh) - SOLO_JPEG_EXT_ADDR(solo_dev), solo_fill_jpeg()
481 struct vb2_buffer *vb, const vop_header *vh) solo_fill_mpeg()
489 if (vb2_plane_size(vb, 0) < vop_mpeg_size(vh)) solo_fill_mpeg()
495 if (!vop_type(vh)) { solo_fill_mpeg()
498 vb2_set_plane_payload(vb, 0, vop_mpeg_size(vh) + solo_fill_mpeg()
502 vb2_set_plane_payload(vb, 0, vop_mpeg_size(vh)); solo_fill_mpeg()
506 frame_off = (vop_mpeg_offset(vh) - SOLO_MP4E_EXT_ADDR(solo_dev) + solo_fill_mpeg()
507 sizeof(*vh)) % SOLO_MP4E_EXT_SIZE(solo_dev); solo_fill_mpeg()
508 frame_size = ALIGN(vop_mpeg_size(vh) + skip, DMA_ALIGN); solo_fill_mpeg()
519 const vop_header *vh = enc_buf->vh; solo_enc_fillbuf() local
525 ret = solo_fill_mpeg(solo_enc, vb, vh); solo_enc_fillbuf()
528 ret = solo_fill_jpeg(solo_enc, vb, vh); solo_enc_fillbuf()
534 vbuf->timestamp.tv_sec = vop_sec(vh); solo_enc_fillbuf()
535 vbuf->timestamp.tv_usec = vop_usec(vh); solo_enc_fillbuf()
627 enc_buf.vh = solo_dev->vh_buf; solo_handle_ring()
630 if (vop_mpeg_offset(enc_buf.vh) != solo_handle_ring()
458 solo_fill_jpeg(struct solo_enc_dev *solo_enc, struct vb2_buffer *vb, const vop_header *vh) solo_fill_jpeg() argument
480 solo_fill_mpeg(struct solo_enc_dev *solo_enc, struct vb2_buffer *vb, const vop_header *vh) solo_fill_mpeg() argument
/linux-4.4.14/fs/hfsplus/
H A Dioctl.c31 struct hfsplus_vh *vh = sbi->s_vhdr; hfsplus_ioctl_bless() local
41 vh->finder_info[0] = bvh->finder_info[0] = hfsplus_ioctl_bless()
49 vh->finder_info[1] = bvh->finder_info[1] = cpu_to_be32(cnid); hfsplus_ioctl_bless()
52 vh->finder_info[5] = bvh->finder_info[5] = hfsplus_ioctl_bless()
/linux-4.4.14/sound/usb/6fire/
H A Dcomm.c60 u8 reg, u8 vl, u8 vh) usb6fire_comm_init_buffer()
70 buffer[6] = vh; usb6fire_comm_init_buffer()
129 u8 reg, u8 vl, u8 vh) usb6fire_comm_write16()
139 usb6fire_comm_init_buffer(buffer, 0x00, request, reg, vl, vh); usb6fire_comm_write16()
59 usb6fire_comm_init_buffer(u8 *buffer, u8 id, u8 request, u8 reg, u8 vl, u8 vh) usb6fire_comm_init_buffer() argument
128 usb6fire_comm_write16(struct comm_runtime *rt, u8 request, u8 reg, u8 vl, u8 vh) usb6fire_comm_write16() argument
H A Dcomm.h36 u8 vh, u8 vl);
/linux-4.4.14/drivers/mtd/ubi/
H A Dfastmap.c456 struct ubi_vid_hdr *vh; scan_pool() local
465 vh = ubi_zalloc_vid_hdr(ubi, GFP_KERNEL); scan_pool()
466 if (!vh) { scan_pool()
511 err = ubi_io_read_vid_hdr(ubi, pnum, vh, 0); scan_pool()
536 new_aeb->lnum = be32_to_cpu(vh->lnum); scan_pool()
537 new_aeb->sqnum = be64_to_cpu(vh->sqnum); scan_pool()
538 new_aeb->copy_flag = vh->copy_flag; scan_pool()
544 err = process_pool_aeb(ubi, ai, vh, new_aeb); scan_pool()
559 ubi_free_vid_hdr(ubi, vh); scan_pool()
866 struct ubi_vid_hdr *vh; ubi_scan_fastmap() local
932 vh = ubi_zalloc_vid_hdr(ubi, GFP_KERNEL); ubi_scan_fastmap()
933 if (!vh) { ubi_scan_fastmap()
973 ret = ubi_io_read_vid_hdr(ubi, pnum, vh, 0); ubi_scan_fastmap()
981 if (be32_to_cpu(vh->vol_id) != UBI_FM_SB_VOLUME_ID) { ubi_scan_fastmap()
983 be32_to_cpu(vh->vol_id), ubi_scan_fastmap()
989 if (be32_to_cpu(vh->vol_id) != UBI_FM_DATA_VOLUME_ID) { ubi_scan_fastmap()
991 be32_to_cpu(vh->vol_id), ubi_scan_fastmap()
998 if (sqnum < be64_to_cpu(vh->sqnum)) ubi_scan_fastmap()
999 sqnum = be64_to_cpu(vh->sqnum); ubi_scan_fastmap()
1063 ubi_free_vid_hdr(ubi, vh); ubi_scan_fastmap()
1072 ubi_free_vid_hdr(ubi, vh); ubi_scan_fastmap()
1403 struct ubi_vid_hdr *vh = NULL; invalidate_fastmap() local
1415 vh = new_fm_vhdr(ubi, UBI_FM_SB_VOLUME_ID); invalidate_fastmap()
1416 if (!vh) invalidate_fastmap()
1428 vh->sqnum = cpu_to_be64(ubi_next_sqnum(ubi)); invalidate_fastmap()
1429 ret = ubi_io_write_vid_hdr(ubi, e->pnum, vh); invalidate_fastmap()
1441 ubi_free_vid_hdr(ubi, vh); invalidate_fastmap()
H A Dattach.c329 struct ubi_vid_hdr *vh = NULL; ubi_compare_lebs() local
372 vh = ubi_zalloc_vid_hdr(ubi, GFP_KERNEL); ubi_compare_lebs()
373 if (!vh) ubi_compare_lebs()
377 err = ubi_io_read_vid_hdr(ubi, pnum, vh, 0); ubi_compare_lebs()
391 vid_hdr = vh; ubi_compare_lebs()
417 ubi_free_vid_hdr(ubi, vh); ubi_compare_lebs()
429 ubi_free_vid_hdr(ubi, vh); ubi_compare_lebs()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dgddr5.c37 int pd, lf, xd, vh, vr, vo, l3; nvkm_gddr5_calc() local
47 vh = ram->next->bios.ramcfg_11_02_10; nvkm_gddr5_calc()
114 ram->mr[7] |= (vh & 0x01) << 7; nvkm_gddr5_calc()
/linux-4.4.14/drivers/net/
H A Dvxlan.c517 struct vxlanhdr *vh, size_t hdrlen, vxlan_gro_remcsum()
524 return vh; vxlan_gro_remcsum()
534 vh = skb_gro_remcsum_process(skb, (void *)vh, off, hdrlen, vxlan_gro_remcsum()
539 return vh; vxlan_gro_remcsum()
547 struct vxlanhdr *vh, *vh2; vxlan_gro_receive() local
558 hlen = off_vx + sizeof(*vh); vxlan_gro_receive()
559 vh = skb_gro_header_fast(skb, off_vx); vxlan_gro_receive()
561 vh = skb_gro_header_slow(skb, hlen, off_vx); vxlan_gro_receive()
562 if (unlikely(!vh)) vxlan_gro_receive()
566 skb_gro_postpull_rcsum(skb, vh, sizeof(struct vxlanhdr)); vxlan_gro_receive()
568 flags = ntohl(vh->vx_flags); vxlan_gro_receive()
571 vh = vxlan_gro_remcsum(skb, off_vx, vh, sizeof(struct vxlanhdr), vxlan_gro_receive()
572 ntohl(vh->vx_vni), &grc, vxlan_gro_receive()
576 if (!vh) vxlan_gro_receive()
589 if (vh->vx_flags != vh2->vx_flags || vxlan_gro_receive()
590 vh->vx_vni != vh2->vx_vni) { vxlan_gro_receive()
1125 static struct vxlanhdr *vxlan_remcsum(struct sk_buff *skb, struct vxlanhdr *vh, vxlan_remcsum() argument
1131 return vh; vxlan_remcsum()
1143 vh = (struct vxlanhdr *)(udp_hdr(skb) + 1); vxlan_remcsum()
1145 skb_remcsum_process(skb, (void *)vh + hdrlen, start, offset, vxlan_remcsum()
1148 return vh; vxlan_remcsum()
515 vxlan_gro_remcsum(struct sk_buff *skb, unsigned int off, struct vxlanhdr *vh, size_t hdrlen, u32 data, struct gro_remcsum *grc, bool nopartial) vxlan_gro_remcsum() argument
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_io.c307 struct vlan_ethhdr *vh = (struct vlan_ethhdr *)(skb->data); qlcnic_send_filter() local
322 vh = (struct vlan_ethhdr *)skb->data; qlcnic_send_filter()
323 vlan_id = ntohs(vh->h_vlan_TCI); qlcnic_send_filter()
467 struct vlan_ethhdr *vh; qlcnic_tx_pkt() local
472 vh = (struct vlan_ethhdr *)skb->data; qlcnic_tx_pkt()
474 vlan_tci = ntohs(vh->h_vlan_TCI); qlcnic_tx_pkt()
475 protocol = ntohs(vh->h_vlan_encapsulated_proto); qlcnic_tx_pkt()
525 vh = (struct vlan_ethhdr *)((char *) hwdesc + 2); qlcnic_tx_pkt()
526 skb_copy_from_linear_data(skb, vh, 12); qlcnic_tx_pkt()
527 vh->h_vlan_proto = htons(ETH_P_8021Q); qlcnic_tx_pkt()
528 vh->h_vlan_TCI = htons(vlan_tci); qlcnic_tx_pkt()
531 (char *)vh + 16, qlcnic_tx_pkt()
/linux-4.4.14/include/linux/
H A Dif_vlan.h499 struct vlan_hdr *vh; __vlan_get_protocol() local
505 vh = (struct vlan_hdr *)(skb->data + vlan_depth); __vlan_get_protocol()
506 type = vh->h_vlan_encapsulated_proto; __vlan_get_protocol()
/linux-4.4.14/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_main.c1886 struct vlan_ethhdr *vh; netxen_tso_check() local
1890 vh = (struct vlan_ethhdr *)skb->data; netxen_tso_check()
1891 protocol = vh->h_vlan_encapsulated_proto; netxen_tso_check()
1963 vh = (struct vlan_ethhdr *)((char *)hwdesc + 2); netxen_tso_check()
1964 skb_copy_from_linear_data(skb, vh, 12); netxen_tso_check()
1965 vh->h_vlan_proto = htons(ETH_P_8021Q); netxen_tso_check()
1966 vh->h_vlan_TCI = htons(vid); netxen_tso_check()
1968 (char *)vh + 16, copy_len - 16); netxen_tso_check()
/linux-4.4.14/drivers/net/ethernet/sfc/
H A Drx.c857 const struct vlan_hdr *vh = efx_filter_rfs() local
864 EFX_BUG_ON_PARANOID(skb_headlen(skb) < sizeof(*vh)); efx_filter_rfs()
865 ether_type = vh->h_vlan_encapsulated_proto; efx_filter_rfs()
/linux-4.4.14/kernel/trace/
H A Dtrace_events_filter.c2323 #define DATA_REC(m, va, vb, vc, vd, ve, vf, vg, vh, nvisit) \
2327 .e = ve, .f = vf, .g = vg, .h = vh }, \
/linux-4.4.14/drivers/net/ethernet/myricom/myri10ge/
H A Dmyri10ge.c1281 struct vlan_hdr *vh = (struct vlan_hdr *)(skb->data); myri10ge_vlan_ip_csum() local
1284 (vh->h_vlan_encapsulated_proto == htons(ETH_P_IP) || myri10ge_vlan_ip_csum()
1285 vh->h_vlan_encapsulated_proto == htons(ETH_P_IPV6))) { myri10ge_vlan_ip_csum()

Completed in 721 milliseconds