| /linux/arch/arm/kernel/ |
| H A D | atags_compat.c | 13 * to convert to the new struct tag way. 81 static struct tag * __init memtag(struct tag *tag, unsigned long start, unsigned long size) in memtag() argument 83 tag = tag_next(tag); in memtag() 84 tag->hdr.tag = ATAG_MEM; in memtag() 85 tag->hdr.size = tag_size(tag_mem32); in memtag() 86 tag->u.mem.size = size; in memtag() 87 tag->u.mem.start = start; in memtag() 89 return tag; in memtag() 94 struct tag *tag = taglist; in build_tag_list() local 119 tag->hdr.tag = ATAG_CORE; in build_tag_list() [all …]
|
| H A D | atags_parse.c | 3 * Tag parsing. 11 * of variable-sized tags to the kernel. The first tag must be a ATAG_CORE 12 * tag for the list to be recognised (to distinguish the tagged list from 13 * a param_struct). The list is terminated with a zero-length tag (this tag 53 static int __init parse_tag_core(const struct tag *tag) in parse_tag_core() argument 55 if (tag->hdr.size > 2) { in parse_tag_core() 56 if ((tag->u.core.flags & 1) == 0) in parse_tag_core() 58 ROOT_DEV = old_decode_dev(tag->u.core.rootdev); in parse_tag_core() 65 static int __init parse_tag_mem32(const struct tag *tag) in parse_tag_mem32() argument 67 return arm_add_memory(tag->u.mem.start, tag->u.mem.size); in parse_tag_mem32() [all …]
|
| /linux/net/dsa/ |
| H A D | Kconfig | 22 tristate "No-op tag driver" 24 Say Y or M if you want to enable support for switches which don't tag 28 tristate "Tag driver for Atheros AR9331 SoC with built-in switch" 38 tristate "Tag driver for Broadcom switches using in-frame headers" 42 Broadcom switches which place the tag after the MAC source address. 45 tristate "Tag driver for BCM63xx legacy switches using in-frame headers" 49 BCM63xx legacy switches which place the tag after the MAC source 51 This tag is used in BCM63xx legacy switches which work without the 52 original FCS and length before the tag insertion. 55 tristate "Tag driver for BCM53xx legacy switches using in-frame headers" [all …]
|
| H A D | tag_brcm.c | 3 * Broadcom tag support 14 #include "tag.h" 21 /* Legacy Broadcom tag (6 bytes) */ 25 /* 1st byte in the tag */ 27 /* 2nd byte in the tag */ 30 /* Tag fields */ 31 /* 3rd byte in the tag */ 38 /* 4th byte in the tag */ 41 /* 6th byte in the tag */ 44 /* Newer Broadcom tag (4 bytes) */ [all …]
|
| H A D | tag_yt921x.c | 8 * | DA | SA | TagET | Tag | ET | Payload ... 12 * Tag Ethertype: CPU_TAG_TPID_TPID (default: ETH_P_YT921X = 0x9988) 15 * Tag: 16 * 2: VLAN Tag 31 #include "tag.h" 62 __be16 *tag; in yt921x_tag_xmit() local 68 tag = dsa_etype_header_pos_tx(skb); in yt921x_tag_xmit() 70 tag[0] = htons(ETH_P_YT921X); in yt921x_tag_xmit() 71 /* VLAN tag unrelated when TX */ in yt921x_tag_xmit() 72 tag[1] = 0; in yt921x_tag_xmit() [all …]
|
| H A D | tag_netc.c | 8 #include "tag.h" 12 /* Forward NXP switch tag */ 15 /* To_Port NXP switch tag */ 20 /* To_Host NXP switch tag */ 29 /* NETC switch tag lengths */ 51 static void netc_fill_common_tag(struct netc_tag_cmn *tag, u8 type, in netc_fill_common_tag() argument 54 tag->tpid = htons(ETH_P_NXP_NETC); in netc_fill_common_tag() 55 tag->type = FIELD_PREP(NETC_TAG_TYPE, type) | in netc_fill_common_tag() 57 tag->qos = NETC_TAG_QV | FIELD_PREP(NETC_TAG_IPV, ipv); in netc_fill_common_tag() 58 tag->switch_port = FIELD_PREP(NETC_TAG_SWITCH, sw_id) | in netc_fill_common_tag() [all …]
|
| H A D | tag_hellcreek.c | 3 * net/dsa/tag_hellcreek.c - Hirschmann Hellcreek switch tag format handling 14 #include "tag.h" 23 u8 *tag; in hellcreek_xmit() local 25 /* Calculate checksums (if required) before adding the trailer tag to in hellcreek_xmit() 27 * checksums after the switch strips the tag. in hellcreek_xmit() 35 /* Tag encoding */ in hellcreek_xmit() 36 tag = skb_put(skb, HELLCREEK_TAG_LEN); in hellcreek_xmit() 37 *tag = dsa_xmit_port_mask(skb, dev); in hellcreek_xmit() 45 /* Tag decoding */ in hellcreek_rcv() 46 u8 *tag = skb_tail_pointer(skb) - HELLCREEK_TAG_LEN; in hellcreek_rcv() local [all …]
|
| H A D | tag_mxl-gsw1xx.c | 3 * DSA driver Special Tag support for MaxLinear GSW1xx switch chips 14 #include "tag.h" 17 * tag is used by the GSW1xx. 19 * Dest MAC Src MAC special TAG EtherType 26 /* special tag header length (RX and TX) */ 39 /* special tag in RX path header */ 47 u16 tag; in gsw1xx_tag_xmit() local 55 /* special tag ingress */ in gsw1xx_tag_xmit() 59 tag = FIELD_PREP(GSW1XX_TX_PORT_MAP, dsa_xmit_port_mask(skb, dev)) | in gsw1xx_tag_xmit() 61 gsw1xx_tag[1] = htons(tag); in gsw1xx_tag_xmit() [all …]
|
| /linux/tools/testing/selftests/ublk/ |
| H A D | null.c | 46 static void __setup_nop_io(int tag, const struct ublksrv_io_desc *iod, in __setup_nop_io() 56 sqe->user_data = build_user_data(tag, ublk_op, 0, q_id, 1); in __setup_nop_io() 60 int tag) in null_queue_zc_io() 62 const struct ublksrv_io_desc *iod = ublk_get_iod(q, tag); in null_queue_zc_io() 64 unsigned short buf_idx = ublk_io_buf_idx(t, q, tag); in null_queue_zc_io() 68 io_uring_prep_buf_register(sqe[0], q, tag, q->q_id, buf_idx); in null_queue_zc_io() 69 sqe[0]->user_data = build_user_data(tag, in null_queue_zc_io() 73 __setup_nop_io(tag, iod, sqe[1], q->q_id, buf_idx); in null_queue_zc_io() 76 io_uring_prep_buf_unregister(sqe[2], q, tag, q->q_id, buf_idx); in null_queue_zc_io() 77 sqe[2]->user_data = build_user_data(tag, ublk_cmd_op_n in null_queue_zc_io() 45 __setup_nop_io(int tag,const struct ublksrv_io_desc * iod,struct io_uring_sqe * sqe,int q_id) __setup_nop_io() argument 59 null_queue_zc_io(struct ublk_thread * t,struct ublk_queue * q,int tag) null_queue_zc_io() argument 82 null_queue_auto_zc_io(struct ublk_thread * t,struct ublk_queue * q,int tag) null_queue_auto_zc_io() argument 95 unsigned tag = user_data_to_tag(cqe->user_data); ublk_null_io_done() local 116 ublk_null_queue_io(struct ublk_thread * t,struct ublk_queue * q,int tag) ublk_null_queue_io() argument 139 ublk_null_buf_index(const struct ublk_queue * q,int tag) ublk_null_buf_index() argument [all...] |
| H A D | kublk.h | 151 int tag; member 167 int tag, bool batch); 168 int (*queue_io)(struct ublk_thread *, struct ublk_queue *, int tag); 182 const struct ublk_queue *, int tag); 221 __u16 tag; member 352 static inline __u64 ublk_user_copy_offset(unsigned q_id, unsigned tag) in ublk_user_copy_offset() argument 355 ((__u64)q_id << UBLK_QID_OFF | (__u64)tag << UBLK_TAG_OFF); in ublk_user_copy_offset() 363 static inline __u64 build_user_data(unsigned tag, unsigned op, in build_user_data() argument 368 ublk_assert(!(tag >> 16) && !(op >> 8) && !(tgt_data >> 16) && !(q_id >> 7)); in build_user_data() 370 return tag | ((__u64)op << 16) | ((__u64)tgt_data << 24) | in build_user_data() [all …]
|
| H A D | file_backed.c | 17 const struct ublksrv_io_desc *iod, int tag) in loop_queue_flush_io() argument 26 sqe[0]->user_data = build_user_data(tag, ublk_op, 0, q->q_id, 1); in loop_queue_flush_io() 37 const struct ublksrv_io_desc *iod, int tag) in loop_queue_tgt_rw_io() 60 sqe[0]->user_data = build_user_data(tag, ublk_op, 0, q->q_id, 1); in loop_queue_tgt_rw_io() 65 const struct ublksrv_io_desc *iod, int tag) in loop_queue_tgt_rw_io() 71 struct ublk_io *io = ublk_get_io(q, tag); in loop_queue_tgt_rw_io() 76 unsigned short buf_index = ublk_io_buf_idx(t, q, tag); in loop_queue_tgt_rw_io() 80 return loop_queue_shmem_zc_io(t, q, iod, tag); in loop_queue_tgt_rw_io() 91 sqe[0]->user_data = build_user_data(tag, ublk_op, 1, q->q_id, 1); in loop_queue_tgt_rw_io() 107 sqe[0]->user_data = build_user_data(tag, ublk_o in loop_queue_tgt_io() 31 loop_queue_tgt_rw_io(struct ublk_thread * t,struct ublk_queue * q,const struct ublksrv_io_desc * iod,int tag) loop_queue_tgt_rw_io() argument 93 loop_queue_tgt_io(struct ublk_thread * t,struct ublk_queue * q,int tag) loop_queue_tgt_io() argument 122 ublk_loop_queue_io(struct ublk_thread * t,struct ublk_queue * q,int tag) ublk_loop_queue_io() argument 133 unsigned tag = user_data_to_tag(cqe->user_data); ublk_loop_io_done() local [all...] |
| /linux/tools/testing/selftests/arm64/mte/ |
| H A D | mte_helper.S | 19 * mte_insert_random_tag: Insert random tag and might be same as the source tag if 22 * x0 - source pointer with a tag/no-tag 24 * x0 - pointer with random tag 32 * mte_insert_new_tag: Insert new tag and different from the source tag if 35 * x0 - source pointer with a tag/no-tag 37 * x0 - pointer with random tag 46 * mte_get_tag_address: Get the tag from given address. 50 * x0 - pointer with appended tag 58 * mte_set_tag_address_range: Set the tag range from the given address 60 * x0 - source pointer with tag data [all …]
|
| H A D | check_tags_inclusion.c | 52 int tag, run, ret, result = KSFT_PASS; in check_single_included_tags() local 59 for (tag = 0; (tag < MT_TAG_COUNT) && (result == KSFT_PASS); tag++) { in check_single_included_tags() 60 ret = mte_switch_mode(mode, MT_INCLUDE_VALID_TAG(tag), false); in check_single_included_tags() 63 /* Try to catch a excluded tag by a number of tries. */ in check_single_included_tags() 66 /* Check tag value */ in check_single_included_tags() 67 if (MT_FETCH_TAG((uintptr_t)ptr) == tag) { in check_single_included_tags() 68 ksft_print_msg("FAIL: wrong tag = 0x%lx with include mask=0x%x\n", in check_single_included_tags() 70 MT_INCLUDE_VALID_TAG(tag)); in check_single_included_tags() 84 int tag, run, result = KSFT_PASS; in check_multiple_included_tags() local 92 for (tag = 0; (tag < MT_TAG_COUNT - 1) && (result == KSFT_PASS); tag++) { in check_multiple_included_tags() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | dr_ste_v1.c | 223 u8 *tag = hw_ste_p + DR_STE_SIZE_CTRL; in dr_ste_v1_prepare_for_postsend() local 224 u8 *mask = tag + DR_STE_SIZE_TAG; in dr_ste_v1_prepare_for_postsend() 232 /* Backup tag */ in dr_ste_v1_prepare_for_postsend() 233 memcpy(tmp_tag, tag, DR_STE_SIZE_TAG); in dr_ste_v1_prepare_for_postsend() 235 /* Swap mask and tag both are the same size */ in dr_ste_v1_prepare_for_postsend() 236 memcpy(tag, mask, DR_STE_SIZE_MASK); in dr_ste_v1_prepare_for_postsend() 451 * which doesn't have mask, and shouldn't have mask/tag swapped. in dr_ste_v1_set_match_range_pkt_len() 457 * To allow mask/tag swapping, writing the min/max_2 to min/max_0. in dr_ste_v1_set_match_range_pkt_len() 992 u8 *tag) in dr_ste_v1_build_eth_l2_src_dst_tag() argument 996 DR_STE_SET_TAG(eth_l2_src_dst_v1, tag, dmac_47_16, spec, dmac_47_16); in dr_ste_v1_build_eth_l2_src_dst_tag() [all …]
|
| H A D | dr_ste.h | 25 #define DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, value) do { \ argument 27 MLX5_SET(ste_##lookup_type, tag, t_fname, value); \ 32 /* Set to STE spec->s_fname to tag->t_fname set spec->s_fname as used */ 33 #define DR_STE_SET_TAG(lookup_type, tag, t_fname, spec, s_fname) \ argument 34 DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, spec->s_fname) 36 /* Set to STE -1 to tag->t_fname and set spec->s_fname as used */ 37 #define DR_STE_SET_ONES(lookup_type, tag, t_fname, spec, s_fname) \ argument 38 DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, -1) 40 #define DR_STE_SET_TCP_FLAGS(lookup_type, tag, spec) do { \ argument 41 MLX5_SET(ste_##lookup_type, tag, tcp_ns, !!((spec)->tcp_flags & (1 << 8))); \ [all …]
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | ccm.c | 38 static void nfp_ccm_free_tag(struct nfp_ccm *ccm, u16 tag) in nfp_ccm_free_tag() argument 40 WARN_ON(!__test_and_clear_bit(tag, ccm->tag_allocator)); in nfp_ccm_free_tag() 47 static struct sk_buff *__nfp_ccm_reply(struct nfp_ccm *ccm, u16 tag) in __nfp_ccm_reply() argument 54 if (msg_tag == tag) { in __nfp_ccm_reply() 55 nfp_ccm_free_tag(ccm, tag); in __nfp_ccm_reply() 65 nfp_ccm_reply(struct nfp_ccm *ccm, struct nfp_app *app, u16 tag) in nfp_ccm_reply() argument 70 skb = __nfp_ccm_reply(ccm, tag); in nfp_ccm_reply() 77 nfp_ccm_reply_drop_tag(struct nfp_ccm *ccm, struct nfp_app *app, u16 tag) in nfp_ccm_reply_drop_tag() argument 82 skb = __nfp_ccm_reply(ccm, tag); in nfp_ccm_reply_drop_tag() 84 nfp_ccm_free_tag(ccm, tag); in nfp_ccm_reply_drop_tag() [all …]
|
| /linux/Documentation/netlabel/ |
| H A D | draft-ietf-cipso-ipsecurity-01.txt | 142 3.4 Tag Types 146 information relevant to the data in the IP packet. Each tag begins with 147 a tag type identifier followed by the length of the tag and ends with the 148 actual security information to be passed. All multi-octet fields in a tag 151 all tags, as well as fields within a tag, are not aligned on any particular 152 octet boundary. The tag types defined in this document contain alignment 156 CIPSO tag types 0 through 127 are reserved for defining standard tag 157 formats. Their definitions will be published in RFCs. Tag types whose 159 only be meaningful in certain Domains of Interpretation. For these tag 160 types, implementations will require the DOI identifier as well as the tag [all …]
|
| /linux/include/linux/ |
| H A D | alloc_tag.h | 139 static inline struct alloc_tag_counters alloc_tag_read(struct alloc_tag *tag) in alloc_tag_read() argument 146 counter = per_cpu_ptr(tag->counters, cpu); in alloc_tag_read() 155 static inline void alloc_tag_add_check(union codetag_ref *ref, struct alloc_tag *tag) in alloc_tag_add_check() argument 158 "alloc_tag was not cleared (got tag for %s:%u)\n", in alloc_tag_add_check() 161 WARN_ONCE(!tag, "current->alloc_tag not set\n"); in alloc_tag_add_check() 170 static inline void alloc_tag_add_check(union codetag_ref *ref, struct alloc_tag *tag) {} in alloc_tag_add_check() argument 175 /* Caller should verify both ref and tag to be valid */ 176 static inline bool __alloc_tag_ref_set(union codetag_ref *ref, struct alloc_tag *tag) in __alloc_tag_ref_set() argument 178 alloc_tag_add_check(ref, tag); in __alloc_tag_ref_set() 179 if (!ref || !tag) in __alloc_tag_ref_set() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
| H A D | mcu.h | 67 __le16 tag; member 123 __le16 tag; member 151 __le16 tag; member 169 __le16 tag; member 183 __le16 tag; member 207 __le16 tag; member 236 __le16 tag; member 266 __le16 tag; member 271 __le16 tag; member 283 __le16 tag; member [all …]
|
| /linux/lib/ |
| H A D | radix-tree.c | 100 static inline void tag_set(struct radix_tree_node *node, unsigned int tag, in tag_set() argument 103 __set_bit(offset, node->tags[tag]); in tag_set() 106 static inline void tag_clear(struct radix_tree_node *node, unsigned int tag, in tag_clear() argument 109 __clear_bit(offset, node->tags[tag]); in tag_clear() 112 static inline int tag_get(const struct radix_tree_node *node, unsigned int tag, in tag_get() argument 115 return test_bit(offset, node->tags[tag]); in tag_get() 118 static inline void root_tag_set(struct radix_tree_root *root, unsigned tag) in root_tag_set() argument 120 root->xa_flags |= (__force gfp_t)(1 << (tag + ROOT_TAG_SHIFT)); in root_tag_set() 123 static inline void root_tag_clear(struct radix_tree_root *root, unsigned tag) in root_tag_clear() argument 125 root->xa_flags &= (__force gfp_t)~(1 << (tag + ROOT_TAG_SHIFT)); in root_tag_clear() [all …]
|
| /linux/drivers/ata/ |
| H A D | sata_dwc_460ex.c | 54 u32 fptagr; /* 1st party DMA tag */ 174 static void sata_dwc_bmdma_start_by_tag(struct ata_queued_cmd *qc, u8 tag); 177 static void sata_dwc_clear_dmacr(struct sata_dwc_device_port *hsdevp, u8 tag); 291 u8 tag = 0; in dma_dwc_xfer_done() local 297 tag = ap->link.active_tag; in dma_dwc_xfer_done() 305 sata_dwc_clear_dmacr(hsdevp, tag); in dma_dwc_xfer_done() 307 if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_NONE) { in dma_dwc_xfer_done() 308 dev_err(ap->dev, "DMA not pending tag=0x%02x pending=%d\n", in dma_dwc_xfer_done() 309 tag, hsdevp->dma_pending[tag]); in dma_dwc_xfer_done() 400 static u32 qcmd_tag_to_mask(u8 tag) in qcmd_tag_to_mask() argument [all …]
|
| /linux/drivers/net/ethernet/microchip/vcap/ |
| H A D | vcap_ag_api.h | 63 * Used by 802.1BR Bridge Port Extension in an E-Tag 65 * Used by 802.1BR Bridge Port Extension in an E-Tag 67 * Set for frames containing an E-TAG (802.1BR Ethertype 893f) 69 * E-Tag group bits in 802.1BR Bridge Port Extension 71 * Used by 802.1BR Bridge Port Extension in an E-Tag 73 * Used by 802.1BR Bridge Port Extension in an E-Tag 75 * Set if frame contains an RTAG: IEEE 802.1CB (FRER Redundancy tag, Ethertype 78 * First DEI in multiple vlan tags (outer tag or default port tag) 80 * Second DEI in multiple vlan tags (inner tag) 86 * First PCP in multiple vlan tags (outer tag or default port tag) [all …]
|
| /linux/drivers/scsi/be2iscsi/ |
| H A D | be_mgmt.c | 40 unsigned int tag = 0; in mgmt_vendor_specific_fw_cmd() local 79 wrb = alloc_mcc_wrb(phba, &tag); in mgmt_vendor_specific_fw_cmd() 92 be_mcc_notify(phba, tag); in mgmt_vendor_specific_fw_cmd() 95 return tag; in mgmt_vendor_specific_fw_cmd() 106 * Success: Tag number of the MBX Command issued 125 unsigned int tag = 0; in mgmt_open_connection() local 149 wrb = alloc_mcc_wrb(phba, &tag); in mgmt_open_connection() 208 be_mcc_notify(phba, tag); in mgmt_open_connection() 210 return tag; in mgmt_open_connection() 231 unsigned int tag; in beiscsi_exec_nemb_cmd() local [all …]
|
| /linux/drivers/pnp/pnpbios/ |
| H A D | rsparser.c | 45 * end tag -> 47 * end tag -> 49 * final end tag -> 84 unsigned int len, tag; in pnpbios_parse_allocated_resource_data() local 96 /* determine the type of tag */ in pnpbios_parse_allocated_resource_data() 97 if (p[0] & LARGE_TAG) { /* large tag */ in pnpbios_parse_allocated_resource_data() 99 tag = p[0]; in pnpbios_parse_allocated_resource_data() 100 } else { /* small tag */ in pnpbios_parse_allocated_resource_data() 102 tag = ((p[0] >> 3) & 0x0f); in pnpbios_parse_allocated_resource_data() 105 switch (tag) { in pnpbios_parse_allocated_resource_data() [all …]
|
| /linux/include/trace/events/ |
| H A D | 9p.h | 125 TP_PROTO(struct p9_client *clnt, int8_t type, int tag), 127 TP_ARGS(clnt, type, tag), 132 __field( __u32, tag ) 138 __entry->tag = tag; 141 TP_printk("client %lu request %s tag %d", 143 __entry->tag) 147 TP_PROTO(struct p9_client *clnt, int8_t type, int tag, int err), 149 TP_ARGS(clnt, type, tag, err), 154 __field( __u32, tag ) 161 __entry->tag = tag; [all …]
|