Home
last modified time | relevance | path

Searched refs:seg_desc (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/net/ethernet/google/gve/
H A Dgve_tx.c482 static void gve_tx_fill_seg_desc(union gve_tx_desc *seg_desc, in gve_tx_fill_seg_desc() argument
487 seg_desc->seg.type_flags = GVE_TXD_SEG; in gve_tx_fill_seg_desc()
490 seg_desc->seg.type_flags |= GVE_TXSF_IPV6; in gve_tx_fill_seg_desc()
491 seg_desc->seg.l3_offset = l3_offset >> 1; in gve_tx_fill_seg_desc()
492 seg_desc->seg.mss = cpu_to_be16(gso_size); in gve_tx_fill_seg_desc()
494 seg_desc->seg.seg_len = cpu_to_be16(len); in gve_tx_fill_seg_desc()
495 seg_desc->seg.seg_addr = cpu_to_be64(addr); in gve_tx_fill_seg_desc()
512 union gve_tx_desc *pkt_desc, *seg_desc; in gve_tx_add_skb_copy() local
563 seg_desc = &tx->desc[next_idx]; in gve_tx_add_skb_copy()
565 gve_tx_fill_seg_desc(seg_desc, skb_network_offset(skb), in gve_tx_add_skb_copy()
[all …]
/openbmc/linux/arch/x86/kvm/
H A Demulate.c1556 struct desc_struct seg_desc, old_desc; in __load_segment_descriptor() local
1566 memset(&seg_desc, 0, sizeof(seg_desc)); in __load_segment_descriptor()
1571 ctxt->ops->get_segment(ctxt, &dummy, &seg_desc, NULL, seg); in __load_segment_descriptor()
1572 set_desc_base(&seg_desc, selector << 4); in __load_segment_descriptor()
1576 set_desc_base(&seg_desc, selector << 4); in __load_segment_descriptor()
1577 set_desc_limit(&seg_desc, 0xffff); in __load_segment_descriptor()
1578 seg_desc.type = 3; in __load_segment_descriptor()
1579 seg_desc.p = 1; in __load_segment_descriptor()
1580 seg_desc.s = 1; in __load_segment_descriptor()
1581 seg_desc.dpl = 3; in __load_segment_descriptor()
[all …]
/openbmc/linux/drivers/target/
H A Dtarget_core_xcopy.c789 unsigned char *p = NULL, *seg_desc; in target_parse_xcopy_cmd() local
838 seg_desc = &p[16] + tdll; in target_parse_xcopy_cmd()
840 rc = target_xcopy_parse_segment_descriptors(xop, seg_desc, sdll, &ret); in target_parse_xcopy_cmd()