Home
last modified time | relevance | path

Searched refs:tag (Results 1 – 25 of 1220) sorted by relevance

12345678910>>...49

/linux/arch/arm/kernel/
H A Datags_compat.c81 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()
120 tag->hdr.size = tag_size(tag_core); in build_tag_list()
[all …]
H A Datags_parse.c53 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()
73 static int __init parse_tag_videotext(const struct tag *tag) in parse_tag_videotext() argument
75 vgacon_screen_info.orig_x = tag->u.videotext.x; in parse_tag_videotext()
76 vgacon_screen_info.orig_y = tag->u.videotext.y; in parse_tag_videotext()
77 vgacon_screen_info.orig_video_page = tag->u.videotext.video_page; in parse_tag_videotext()
[all …]
H A Datags_proc.c28 void __init save_atags(const struct tag *tags) in save_atags()
40 struct tag *tag = (struct tag *)atags_copy; in init_atags_procfs() local
44 if (tag->hdr.tag != ATAG_CORE) { in init_atags_procfs()
49 for (; tag->hdr.size; tag = tag_next(tag)) in init_atags_procfs()
53 size = (char *)tag - atags_copy + sizeof(struct tag_header); in init_atags_procfs()
55 WARN_ON(tag->hdr.tag != ATAG_NONE); in init_atags_procfs()
/linux/tools/testing/selftests/ublk/
H A Dnull.c45 static void __setup_nop_io(int tag, const struct ublksrv_io_desc *iod, in __setup_nop_io() argument
51 sqe->buf_index = tag; in __setup_nop_io()
55 sqe->user_data = build_user_data(tag, ublk_op, 0, q_id, 1); in __setup_nop_io()
59 int tag) in null_queue_zc_io() argument
61 const struct ublksrv_io_desc *iod = ublk_get_iod(q, tag); in null_queue_zc_io()
66 io_uring_prep_buf_register(sqe[0], q, tag, q->q_id, ublk_get_io(q, tag)->buf_index); in null_queue_zc_io()
67 sqe[0]->user_data = build_user_data(tag, in null_queue_zc_io()
71 __setup_nop_io(tag, iod, sqe[1], q->q_id); in null_queue_zc_io()
74 io_uring_prep_buf_unregister(sqe[2], q, tag, q->q_id, ublk_get_io(q, tag)->buf_index); in null_queue_zc_io()
75 sqe[2]->user_data = build_user_data(tag, ublk_cmd_op_nr(sqe[2]->cmd_op), 0, q->q_id, 1); in null_queue_zc_io()
[all …]
H A Dfile_backed.c17 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()
31 const struct ublksrv_io_desc *iod, int tag) in loop_queue_tgt_rw_io() argument
50 sqe[0]->buf_index = tag; in loop_queue_tgt_rw_io()
53 sqe[0]->user_data = build_user_data(tag, ublk_op, 0, q->q_id, 1); in loop_queue_tgt_rw_io()
59 io_uring_prep_buf_register(sqe[0], q, tag, q->q_id, ublk_get_io(q, tag)->buf_index); in loop_queue_tgt_rw_io()
61 sqe[0]->user_data = build_user_data(tag, in loop_queue_tgt_rw_io()
67 sqe[1]->buf_index = tag; in loop_queue_tgt_rw_io()
69 sqe[1]->user_data = build_user_data(tag, ublk_op, 0, q->q_id, 1); in loop_queue_tgt_rw_io()
71 io_uring_prep_buf_unregister(sqe[2], q, tag, q->q_id, ublk_get_io(q, tag)->buf_index); in loop_queue_tgt_rw_io()
[all …]
H A Dkublk.h119 int tag; member
133 int (*queue_io)(struct ublk_thread *, struct ublk_queue *, int tag);
146 unsigned short (*buf_index)(const struct ublk_queue *, int tag);
219 static inline __u64 build_user_data(unsigned tag, unsigned op, in build_user_data() argument
224 assert(!(tag >> 16) && !(op >> 8) && !(tgt_data >> 16) && !(q_id >> 7)); in build_user_data()
226 return tag | (op << 16) | (tgt_data << 24) | in build_user_data()
257 return container_of(io, struct ublk_queue, ios[io->tag]); in ublk_io_to_queue()
292 struct ublk_queue *q, int tag, int q_id, __u64 index) in __io_uring_prep_buf_reg_unreg() argument
304 cmd->tag = tag; in __io_uring_prep_buf_reg_unreg()
310 struct ublk_queue *q, int tag, int q_id, __u64 index) in io_uring_prep_buf_register() argument
[all …]
/linux/drivers/iommu/intel/
H A Dcache.c23 static bool cache_tage_match(struct cache_tag *tag, u16 domain_id, in cache_tage_match() argument
27 if (tag->type != type) in cache_tage_match()
30 if (tag->domain_id != domain_id || tag->pasid != pasid) in cache_tage_match()
34 return tag->iommu == iommu; in cache_tage_match()
37 return tag->dev == dev; in cache_tage_match()
48 struct cache_tag *tag, *temp; in cache_tag_assign() local
52 tag = kzalloc(sizeof(*tag), GFP_KERNEL); in cache_tag_assign()
53 if (!tag) in cache_tag_assign()
56 tag->type = type; in cache_tag_assign()
57 tag->iommu = iommu; in cache_tag_assign()
[all …]
H A Dtrace.h94 TP_PROTO(struct cache_tag *tag),
95 TP_ARGS(tag),
97 __string(iommu, tag->iommu->name)
98 __string(dev, dev_name(tag->dev))
107 __entry->type = tag->type;
108 __entry->domain_id = tag->domain_id;
109 __entry->pasid = tag->pasid;
110 __entry->users = tag->users;
124 TP_PROTO(struct cache_tag *tag),
125 TP_ARGS(tag)
[all …]
/linux/include/linux/
H A Dalloc_tag.h137 static inline struct alloc_tag_counters alloc_tag_read(struct alloc_tag *tag) in alloc_tag_read() argument
144 counter = per_cpu_ptr(tag->counters, cpu); in alloc_tag_read()
153 static inline void alloc_tag_add_check(union codetag_ref *ref, struct alloc_tag *tag) in alloc_tag_add_check() argument
159 WARN_ONCE(!tag, "current->alloc_tag not set\n"); in alloc_tag_add_check()
167 static inline void alloc_tag_add_check(union codetag_ref *ref, struct alloc_tag *tag) {} in alloc_tag_add_check() argument
172 static inline bool __alloc_tag_ref_set(union codetag_ref *ref, struct alloc_tag *tag) in __alloc_tag_ref_set() argument
174 alloc_tag_add_check(ref, tag); in __alloc_tag_ref_set()
175 if (!ref || !tag) in __alloc_tag_ref_set()
178 ref->ct = &tag->ct; in __alloc_tag_ref_set()
182 static inline bool alloc_tag_ref_set(union codetag_ref *ref, struct alloc_tag *tag) in alloc_tag_ref_set() argument
[all …]
/linux/arch/sparc/include/asm/
H A Dspitfire.h97 static inline void spitfire_put_dcache_tag(unsigned long addr, unsigned long tag) in spitfire_put_dcache_tag() argument
102 : "r" (tag), "r" (addr), "i" (ASI_DCACHE_TAG)); in spitfire_put_dcache_tag()
111 static inline void spitfire_put_icache_tag(unsigned long addr, unsigned long tag) in spitfire_put_icache_tag() argument
116 : "r" (tag), "r" (addr), "i" (ASI_IC_TAG)); in spitfire_put_icache_tag()
135 unsigned long tag; in spitfire_get_dtlb_tag() local
138 : "=r" (tag) in spitfire_get_dtlb_tag()
140 return tag; in spitfire_get_dtlb_tag()
168 unsigned long tag; in spitfire_get_itlb_tag() local
171 : "=r" (tag) in spitfire_get_itlb_tag()
173 return tag; in spitfire_get_itlb_tag()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/
H A Dccm.c38 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/arch/x86/math-emu/
H A Dreg_divide.c34 int tag, deststnr; in FPU_div() local
81 tag = FPU_u_div(&x, &y, dest, control_w, sign); in FPU_div()
83 if (tag < 0) in FPU_div()
84 return tag; in FPU_div()
86 FPU_settagi(deststnr, tag); in FPU_div()
87 return tag; in FPU_div()
103 tag = FPU_u_div(&x, &y, dest, control_w, sign); in FPU_div()
104 if (tag < 0) in FPU_div()
105 return tag; in FPU_div()
107 FPU_settagi(deststnr, tag); in FPU_div()
[all …]
H A Dfpu_tags.c39 void FPU_settag0(int tag) in FPU_settag0() argument
44 fpu_tag_word |= (tag & 3) << (regnr * 2); in FPU_settag0()
47 void FPU_settagi(int stnr, int tag) in FPU_settagi() argument
52 fpu_tag_word |= (tag & 3) << (regnr * 2); in FPU_settagi()
55 void FPU_settag(int regnr, int tag) in FPU_settag() argument
59 fpu_tag_word |= (tag & 3) << (regnr * 2); in FPU_settag()
95 void FPU_copy_to_regi(FPU_REG const *r, u_char tag, int stnr) in FPU_copy_to_regi() argument
98 FPU_settagi(stnr, tag); in FPU_copy_to_regi()
101 void FPU_copy_to_reg1(FPU_REG const *r, u_char tag) in FPU_copy_to_reg1() argument
104 FPU_settagi(1, tag); in FPU_copy_to_reg1()
[all …]
H A Dfpu_trig.c40 int tag, st0_tag = TAG_Valid; in trig_arg() local
51 tag = FPU_u_div(st0_ptr, &CONST_PI2, &tmp, PR_64_BITS | RC_CHOP | 0x3f, in trig_arg()
54 FPU_round_to_int(&tmp, tag); /* Fortunately, this can't overflow in trig_arg()
154 int tag; in convert_l2reg() local
174 tag = FPU_normalize(dest); in convert_l2reg()
175 FPU_settagi(deststnr, tag); in convert_l2reg()
233 static void f2xm1(FPU_REG *st0_ptr, u_char tag) in f2xm1() argument
239 if (tag == TAG_Valid) { in f2xm1()
253 if (tag == TAG_Zero) in f2xm1()
256 if (tag == TAG_Special) in f2xm1()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_ste_v0.c740 u8 *tag) in dr_ste_v0_build_eth_l2_src_dst_tag() argument
744 DR_STE_SET_TAG(eth_l2_src_dst, tag, dmac_47_16, spec, dmac_47_16); in dr_ste_v0_build_eth_l2_src_dst_tag()
745 DR_STE_SET_TAG(eth_l2_src_dst, tag, dmac_15_0, spec, dmac_15_0); in dr_ste_v0_build_eth_l2_src_dst_tag()
748 MLX5_SET(ste_eth_l2_src_dst, tag, smac_47_32, in dr_ste_v0_build_eth_l2_src_dst_tag()
750 MLX5_SET(ste_eth_l2_src_dst, tag, smac_31_0, in dr_ste_v0_build_eth_l2_src_dst_tag()
758 MLX5_SET(ste_eth_l2_src_dst, tag, l3_type, STE_IPV4); in dr_ste_v0_build_eth_l2_src_dst_tag()
761 MLX5_SET(ste_eth_l2_src_dst, tag, l3_type, STE_IPV6); in dr_ste_v0_build_eth_l2_src_dst_tag()
768 DR_STE_SET_TAG(eth_l2_src_dst, tag, first_vlan_id, spec, first_vid); in dr_ste_v0_build_eth_l2_src_dst_tag()
769 DR_STE_SET_TAG(eth_l2_src_dst, tag, first_cfi, spec, first_cfi); in dr_ste_v0_build_eth_l2_src_dst_tag()
770 DR_STE_SET_TAG(eth_l2_src_dst, tag, first_priority, spec, first_prio); in dr_ste_v0_build_eth_l2_src_dst_tag()
[all …]
H A Ddr_ste_v1.c223 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()
233 memcpy(tmp_tag, tag, DR_STE_SIZE_TAG); in dr_ste_v1_prepare_for_postsend()
236 memcpy(tag, mask, DR_STE_SIZE_MASK); in dr_ste_v1_prepare_for_postsend()
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()
997 DR_STE_SET_TAG(eth_l2_src_dst_v1, tag, dmac_15_0, spec, dmac_15_0); in dr_ste_v1_build_eth_l2_src_dst_tag()
999 DR_STE_SET_TAG(eth_l2_src_dst_v1, tag, smac_47_16, spec, smac_47_16); in dr_ste_v1_build_eth_l2_src_dst_tag()
1000 DR_STE_SET_TAG(eth_l2_src_dst_v1, tag, smac_15_0, spec, smac_15_0); in dr_ste_v1_build_eth_l2_src_dst_tag()
1003 MLX5_SET(ste_eth_l2_src_dst_v1, tag, l3_type, STE_IPV4); in dr_ste_v1_build_eth_l2_src_dst_tag()
[all …]
H A Ddr_ste.h25 #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); \
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)
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))); \
42 MLX5_SET(ste_##lookup_type, tag, tcp_cwr, !!((spec)->tcp_flags & (1 << 7))); \
43 MLX5_SET(ste_##lookup_type, tag, tcp_ece, !!((spec)->tcp_flags & (1 << 6))); \
[all …]
/linux/drivers/ata/
H A Dsata_dwc_460ex.c175 static void sata_dwc_bmdma_start_by_tag(struct ata_queued_cmd *qc, u8 tag);
178 static void sata_dwc_clear_dmacr(struct sata_dwc_device_port *hsdevp, u8 tag);
295 u8 tag = 0; in dma_dwc_xfer_done() local
301 tag = ap->link.active_tag; in dma_dwc_xfer_done()
309 sata_dwc_clear_dmacr(hsdevp, tag); in dma_dwc_xfer_done()
311 if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_NONE) { in dma_dwc_xfer_done()
313 tag, hsdevp->dma_pending[tag]); in dma_dwc_xfer_done()
405 static u32 qcmd_tag_to_mask(u8 tag) in qcmd_tag_to_mask() argument
407 return 0x00000001 << (tag & 0x1f); in qcmd_tag_to_mask()
419 u8 status, tag; in sata_dwc_error_intr() local
[all …]
/linux/arch/xtensa/kernel/
H A Dsetup.c82 u32 tag; member
86 #define __tagtable(tag, fn) static tagtable_t __tagtable_##fn \ argument
87 __section(".taglist") __attribute__((used)) = { tag, fn }
91 static int __init parse_tag_mem(const bp_tag_t *tag) in parse_tag_mem() argument
93 struct bp_meminfo *mi = (struct bp_meminfo *)(tag->data); in parse_tag_mem()
105 static int __init parse_tag_initrd(const bp_tag_t* tag) in parse_tag_initrd() argument
107 struct bp_meminfo *mi = (struct bp_meminfo *)(tag->data); in parse_tag_initrd()
121 static int __init parse_tag_fdt(const bp_tag_t *tag) in parse_tag_fdt() argument
123 dtb_start = __va(tag->data[0]); in parse_tag_fdt()
131 static int __init parse_tag_cmdline(const bp_tag_t* tag) in parse_tag_cmdline() argument
[all …]
/linux/arch/mips/cavium-octeon/executive/
H A Dcvmx-l2c.c319 uint64_t tag = addr >> shift; in cvmx_l2c_lock_line() local
332 if (l2c_tadx_tag.s.valid && l2c_tadx_tag.s.tag == tag) in cvmx_l2c_lock_line()
465 union cvmx_l2c_tag tag; in cvmx_l2c_unlock_line() local
478 tag = cvmx_l2c_get_tag(assoc, index); in cvmx_l2c_unlock_line()
480 if (tag.s.V && (tag.s.addr == tag_addr)) { in cvmx_l2c_unlock_line()
482 return tag.s.L; in cvmx_l2c_unlock_line()
487 union cvmx_l2c_tag tag; in cvmx_l2c_unlock_line() local
495 tag = cvmx_l2c_get_tag(assoc, index); in cvmx_l2c_unlock_line()
497 if (tag.s.V && (tag.s.addr == tag_addr)) { in cvmx_l2c_unlock_line()
499 return tag.s.L; in cvmx_l2c_unlock_line()
[all …]
/linux/lib/
H A Dradix-tree.c100 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/staging/media/atomisp/pci/hive_isp_css_shared/host/
H A Dtag.c40 sh_css_encode_tag_descr(struct sh_css_tag_descr *tag) in sh_css_encode_tag_descr() argument
50 assert(tag); in sh_css_encode_tag_descr()
52 if (tag->num_captures < 0) { in sh_css_encode_tag_descr()
53 num_captures = -tag->num_captures; in sh_css_encode_tag_descr()
56 num_captures = tag->num_captures; in sh_css_encode_tag_descr()
59 skip = tag->skip; in sh_css_encode_tag_descr()
60 if (tag->offset < 0) { in sh_css_encode_tag_descr()
61 offset = -tag->offset; in sh_css_encode_tag_descr()
64 offset = tag->offset; in sh_css_encode_tag_descr()
67 exp_id = tag->exp_id; in sh_css_encode_tag_descr()
/linux/drivers/scsi/be2iscsi/
H A Dbe_mgmt.c40 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()
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
235 wrb = alloc_mcc_wrb(phba, &tag); in beiscsi_exec_nemb_cmd()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmcu.h69 __le16 tag; member
125 __le16 tag; member
153 __le16 tag; member
172 __le16 tag; member
201 __le16 tag; member
231 __le16 tag; member
236 __le16 tag; member
248 __le16 tag; member
266 __le16 tag; member
285 __le16 tag; member
[all …]
/linux/tools/testing/radix-tree/
H A Dtag_check.c14 __simple_checks(struct radix_tree_root *tree, unsigned long index, int tag) in __simple_checks() argument
20 assert(item_tag_get(tree, index, tag) == 0); in __simple_checks()
23 assert(item_tag_get(tree, index, tag) == 0); in __simple_checks()
24 item_tag_set(tree, index, tag); in __simple_checks()
25 ret = item_tag_get(tree, index, tag); in __simple_checks()
27 ret = tag_tagged_items(tree, first, ~0UL, 10, tag, !tag); in __simple_checks()
29 ret = item_tag_get(tree, index, !tag); in __simple_checks()
34 ret = item_tag_get(tree, index, tag); in __simple_checks()
132 char *thrash_state, int tag) in gang_check() argument
140 index, BATCH, tag))) { in gang_check()
[all …]

12345678910>>...49