Searched refs:tag (Results 1 - 200 of 1101) sorted by relevance

123456

/linux-4.1.27/arch/arm/kernel/
H A Datags_compat.c16 * to convert to the new struct tag way.
84 static struct tag * __init memtag(struct tag *tag, unsigned long start, unsigned long size) memtag() argument
86 tag = tag_next(tag); memtag()
87 tag->hdr.tag = ATAG_MEM; memtag()
88 tag->hdr.size = tag_size(tag_mem32); memtag()
89 tag->u.mem.size = size; memtag()
90 tag->u.mem.start = start; memtag()
92 return tag; memtag()
97 struct tag *tag = taglist; build_tag_list() local
122 tag->hdr.tag = ATAG_CORE; build_tag_list()
123 tag->hdr.size = tag_size(tag_core); build_tag_list()
124 tag->u.core.flags = params->u1.s.flags & FLAG_READONLY; build_tag_list()
125 tag->u.core.pagesize = params->u1.s.page_size; build_tag_list()
126 tag->u.core.rootdev = params->u1.s.rootdev; build_tag_list()
128 tag = tag_next(tag); build_tag_list()
129 tag->hdr.tag = ATAG_RAMDISK; build_tag_list()
130 tag->hdr.size = tag_size(tag_ramdisk); build_tag_list()
131 tag->u.ramdisk.flags = (params->u1.s.flags & FLAG_RDLOAD ? 1 : 0) | build_tag_list()
133 tag->u.ramdisk.size = params->u1.s.ramdisk_size; build_tag_list()
134 tag->u.ramdisk.start = params->u1.s.rd_start; build_tag_list()
136 tag = tag_next(tag); build_tag_list()
137 tag->hdr.tag = ATAG_INITRD; build_tag_list()
138 tag->hdr.size = tag_size(tag_initrd); build_tag_list()
139 tag->u.initrd.start = params->u1.s.initrd_start; build_tag_list()
140 tag->u.initrd.size = params->u1.s.initrd_size; build_tag_list()
142 tag = tag_next(tag); build_tag_list()
143 tag->hdr.tag = ATAG_SERIAL; build_tag_list()
144 tag->hdr.size = tag_size(tag_serialnr); build_tag_list()
145 tag->u.serialnr.low = params->u1.s.system_serial_low; build_tag_list()
146 tag->u.serialnr.high = params->u1.s.system_serial_high; build_tag_list()
148 tag = tag_next(tag); build_tag_list()
149 tag->hdr.tag = ATAG_REVISION; build_tag_list()
150 tag->hdr.size = tag_size(tag_revision); build_tag_list()
151 tag->u.revision.rev = params->u1.s.system_rev; build_tag_list()
157 tag = memtag(tag, PHYS_OFFSET + (i << 26), build_tag_list()
161 tag = memtag(tag, PHYS_OFFSET, params->u1.s.nr_pages * PAGE_SIZE); build_tag_list()
165 tag = tag_next(tag); build_tag_list()
166 tag->hdr.tag = ATAG_MEMCLK; build_tag_list()
167 tag->hdr.size = tag_size(tag_memclk); build_tag_list()
168 tag->u.memclk.fmemclk = params->u1.s.mem_fclk_21285; build_tag_list()
174 tag = tag_next(tag); build_tag_list()
175 tag->hdr.tag = ATAG_VIDEOTEXT; build_tag_list()
176 tag->hdr.size = tag_size(tag_videotext); build_tag_list()
177 tag->u.videotext.x = params->u1.s.video_x; build_tag_list()
178 tag->u.videotext.y = params->u1.s.video_y; build_tag_list()
179 tag->u.videotext.video_page = 0; build_tag_list()
180 tag->u.videotext.video_mode = 0; build_tag_list()
181 tag->u.videotext.video_cols = params->u1.s.video_num_cols; build_tag_list()
182 tag->u.videotext.video_ega_bx = 0; build_tag_list()
183 tag->u.videotext.video_lines = params->u1.s.video_num_rows; build_tag_list()
184 tag->u.videotext.video_isvga = 1; build_tag_list()
185 tag->u.videotext.video_points = 8; build_tag_list()
190 tag = tag_next(tag); build_tag_list()
191 tag->hdr.tag = ATAG_ACORN; build_tag_list()
192 tag->hdr.size = tag_size(tag_acorn); build_tag_list()
193 tag->u.acorn.memc_control_reg = params->u1.s.memc_control_reg; build_tag_list()
194 tag->u.acorn.vram_pages = params->u1.s.pages_in_vram; build_tag_list()
195 tag->u.acorn.sounddefault = params->u1.s.sounddefault; build_tag_list()
196 tag->u.acorn.adfsdrives = params->u1.s.adfsdrives; build_tag_list()
199 tag = tag_next(tag); build_tag_list()
200 tag->hdr.tag = ATAG_CMDLINE; build_tag_list()
201 tag->hdr.size = (strlen(params->commandline) + 3 + build_tag_list()
203 strcpy(tag->u.cmdline.cmdline, params->commandline); build_tag_list()
205 tag = tag_next(tag); build_tag_list()
206 tag->hdr.tag = ATAG_NONE; build_tag_list()
207 tag->hdr.size = 0; build_tag_list()
209 memmove(params, taglist, ((int)tag) - ((int)taglist) + build_tag_list()
213 void __init convert_to_tag_list(struct tag *tags) convert_to_tag_list()
H A Datags_parse.c14 * of variable-sized tags to the kernel. The first tag must be a ATAG_CORE
15 * tag for the list to be recognised (to distinguish the tagged list from
16 * a param_struct). The list is terminated with a zero-length tag (this tag
54 static int __init parse_tag_core(const struct tag *tag) parse_tag_core() argument
56 if (tag->hdr.size > 2) { parse_tag_core()
57 if ((tag->u.core.flags & 1) == 0) parse_tag_core()
59 ROOT_DEV = old_decode_dev(tag->u.core.rootdev); parse_tag_core()
66 static int __init parse_tag_mem32(const struct tag *tag) parse_tag_mem32() argument
68 return arm_add_memory(tag->u.mem.start, tag->u.mem.size); parse_tag_mem32()
74 static int __init parse_tag_videotext(const struct tag *tag) parse_tag_videotext() argument
76 screen_info.orig_x = tag->u.videotext.x; parse_tag_videotext()
77 screen_info.orig_y = tag->u.videotext.y; parse_tag_videotext()
78 screen_info.orig_video_page = tag->u.videotext.video_page; parse_tag_videotext()
79 screen_info.orig_video_mode = tag->u.videotext.video_mode; parse_tag_videotext()
80 screen_info.orig_video_cols = tag->u.videotext.video_cols; parse_tag_videotext()
81 screen_info.orig_video_ega_bx = tag->u.videotext.video_ega_bx; parse_tag_videotext()
82 screen_info.orig_video_lines = tag->u.videotext.video_lines; parse_tag_videotext()
83 screen_info.orig_video_isVGA = tag->u.videotext.video_isvga; parse_tag_videotext()
84 screen_info.orig_video_points = tag->u.videotext.video_points; parse_tag_videotext()
92 static int __init parse_tag_ramdisk(const struct tag *tag) parse_tag_ramdisk() argument
96 rd_image_start = tag->u.ramdisk.start; parse_tag_ramdisk()
97 rd_doload = (tag->u.ramdisk.flags & 1) == 0; parse_tag_ramdisk()
98 rd_prompt = (tag->u.ramdisk.flags & 2) == 0; parse_tag_ramdisk()
100 if (tag->u.ramdisk.size) parse_tag_ramdisk()
101 rd_size = tag->u.ramdisk.size; parse_tag_ramdisk()
109 static int __init parse_tag_serialnr(const struct tag *tag) parse_tag_serialnr() argument
111 system_serial_low = tag->u.serialnr.low; parse_tag_serialnr()
112 system_serial_high = tag->u.serialnr.high; parse_tag_serialnr()
118 static int __init parse_tag_revision(const struct tag *tag) parse_tag_revision() argument
120 system_rev = tag->u.revision.rev; parse_tag_revision()
126 static int __init parse_tag_cmdline(const struct tag *tag) parse_tag_cmdline() argument
130 strlcat(default_command_line, tag->u.cmdline.cmdline, parse_tag_cmdline()
133 pr_warn("Ignoring tag cmdline (using the default kernel command line)\n"); parse_tag_cmdline()
135 strlcpy(default_command_line, tag->u.cmdline.cmdline, parse_tag_cmdline()
144 * Scan the tag table for this tag, and call its parse function.
145 * The tag table is built by the linker from all the __tagtable
148 static int __init parse_tag(const struct tag *tag) parse_tag() argument
154 if (tag->hdr.tag == t->tag) { parse_tag()
155 t->parse(tag); parse_tag()
164 * specific tag tables.
166 static void __init parse_tags(const struct tag *t) parse_tags()
170 pr_warn("Ignoring unrecognised tag 0x%08x\n", parse_tags()
171 t->hdr.tag); parse_tags()
174 static void __init squash_mem_tags(struct tag *tag) squash_mem_tags() argument
176 for (; tag->hdr.size; tag = tag_next(tag)) squash_mem_tags()
177 if (tag->hdr.tag == ATAG_MEM) squash_mem_tags()
178 tag->hdr.tag = ATAG_NONE; squash_mem_tags()
184 struct tag *tags = (struct tag *)&default_tags; setup_machine_tags()
214 * a tag list.
216 if (tags->hdr.tag != ATAG_CORE)
219 if (tags->hdr.tag != ATAG_CORE) {
221 tags = (struct tag *)&default_tags;
227 if (tags->hdr.tag == ATAG_CORE) {
H A Datags.h2 extern void save_atags(struct tag *tags);
4 static inline void save_atags(struct tag *tags) { } save_atags()
7 void convert_to_tag_list(struct tag *tags); save_atags()
H A Datags_proc.c27 void __init save_atags(const struct tag *tags) save_atags()
39 struct tag *tag = (struct tag *)atags_copy; init_atags_procfs() local
43 if (tag->hdr.tag != ATAG_CORE) { init_atags_procfs()
48 for (; tag->hdr.size; tag = tag_next(tag)) init_atags_procfs()
52 size = (char *)tag - atags_copy + sizeof(struct tag_header); init_atags_procfs()
54 WARN_ON(tag->hdr.tag != ATAG_NONE); init_atags_procfs()
/linux-4.1.27/include/scsi/
H A Dscsi_tcq.h9 #define SCSI_NO_TAG (-1) /* identify no tag in use */
28 * @tag: tag generated by blk_mq_unique_tag()
33 static inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag) scsi_find_tag() argument
37 if (tag != SCSI_NO_TAG) { scsi_find_tag()
39 return scsi_mq_find_tag(sdev->host, tag); scsi_find_tag()
41 req = blk_queue_find_tag(sdev->request_queue, tag); scsi_find_tag()
51 * scsi_init_shared_tag_map - create a shared tag map
52 * @shost: the host to share the tag map among all devices
58 * We always have a shared tag map around when using blk-mq. scsi_init_shared_tag_map()
64 * If the shared tag map isn't already initialized, do it now. scsi_init_shared_tag_map()
81 * @tag: tag generated by blk_mq_unique_tag()
87 int tag) scsi_host_find_tag()
91 if (tag != SCSI_NO_TAG) { scsi_host_find_tag()
93 return scsi_mq_find_tag(shost, tag); scsi_host_find_tag()
94 req = blk_map_queue_find_tag(shost->bqt, tag); scsi_host_find_tag()
86 scsi_host_find_tag(struct Scsi_Host *shost, int tag) scsi_host_find_tag() argument
H A Dsrp.h121 u64 tag; member in struct:srp_login_req
140 u64 tag; member in struct:srp_login_rsp
152 u64 tag; member in struct:srp_login_rej
161 u64 tag; member in struct:srp_i_logout
169 u64 tag; member in struct:srp_t_logout
180 u64 tag; member in struct:srp_tsk_mgmt
201 u64 tag; member in struct:srp_cmd
231 u64 tag; member in struct:srp_rsp
247 u64 tag; member in struct:srp_cred_req
253 u64 tag; member in struct:srp_cred_rsp
266 u64 tag; member in struct:srp_aer_req
277 u64 tag; member in struct:srp_aer_rsp
/linux-4.1.27/arch/x86/math-emu/
H A Dreg_divide.c10 | Return value is the tag of the answer, or-ed with FPU_Exception if |
33 int tag, deststnr; FPU_div() local
80 tag = FPU_u_div(&x, &y, dest, control_w, sign); FPU_div()
82 if (tag < 0) FPU_div()
83 return tag; FPU_div()
85 FPU_settagi(deststnr, tag); FPU_div()
86 return tag; FPU_div()
102 tag = FPU_u_div(&x, &y, dest, control_w, sign); FPU_div()
103 if (tag < 0) FPU_div()
104 return tag; FPU_div()
106 FPU_settagi(deststnr, tag); FPU_div()
107 return tag; FPU_div()
136 int tag; FPU_div() local
137 tag = FPU_gettag0(); FPU_div()
138 if (tag == TAG_Special) FPU_div()
139 tag = FPU_Special(st0_ptr); FPU_div()
140 return real_2op_NaN(st0_ptr, tag, rm, FPU_div()
143 int tag; FPU_div() local
144 tag = FPU_gettagi(rm); FPU_div()
145 if (tag == TAG_Special) FPU_div()
146 tag = FPU_Special(&st(rm)); FPU_div()
147 return real_2op_NaN(&st(rm), tag, 0, FPU_div()
H A Dfpu_tags.c38 void FPU_settag0(int tag) FPU_settag0() argument
43 fpu_tag_word |= (tag & 3) << (regnr * 2); FPU_settag0()
46 void FPU_settagi(int stnr, int tag) FPU_settagi() argument
51 fpu_tag_word |= (tag & 3) << (regnr * 2); FPU_settagi()
54 void FPU_settag(int regnr, int tag) FPU_settag() argument
58 fpu_tag_word |= (tag & 3) << (regnr * 2); FPU_settag()
94 void FPU_copy_to_regi(FPU_REG const *r, u_char tag, int stnr) FPU_copy_to_regi() argument
97 FPU_settagi(stnr, tag); FPU_copy_to_regi()
100 void FPU_copy_to_reg1(FPU_REG const *r, u_char tag) FPU_copy_to_reg1() argument
103 FPU_settagi(1, tag); FPU_copy_to_reg1()
106 void FPU_copy_to_reg0(FPU_REG const *r, u_char tag) FPU_copy_to_reg0() argument
114 fpu_tag_word |= (tag & 3) << (regnr * 2); FPU_copy_to_reg0()
H A Dreg_mul.c10 | Returns the tag of the result if no exceptions or errors occurred. |
36 int tag; FPU_mul() local
41 tag = FPU_mul()
44 if (tag < 0) { FPU_mul()
46 return tag; FPU_mul()
48 FPU_settagi(deststnr, tag); FPU_mul()
49 return tag; FPU_mul()
66 tag = FPU_u_mul(&x, &y, dest, control_w, sign, FPU_mul()
68 if (tag < 0) { FPU_mul()
70 return tag; FPU_mul()
72 FPU_settagi(deststnr, tag); FPU_mul()
73 return tag; FPU_mul()
H A Dreg_add_sub.c44 int diff, tag, expa, expb; FPU_add() local
54 tag = FPU_add()
70 tag = FPU_add()
74 tag = FPU_add()
86 if (tag < 0) { FPU_add()
88 return tag; FPU_add()
90 FPU_settagi(deststnr, tag); FPU_add()
91 return tag; FPU_add()
133 int diff, tag = 0, expa, expb, deststnr; FPU_sub() local
184 tag = FPU_sub()
196 tag = FPU_sub()
202 tag = FPU_sub()
207 tag = FPU_sub()
217 if (tag < 0) { FPU_sub()
219 return tag; FPU_sub()
221 FPU_settagi(deststnr, tag); FPU_sub()
222 return tag; FPU_sub()
H A Dfpu_trig.c39 int tag, st0_tag = TAG_Valid; trig_arg() local
50 tag = FPU_u_div(st0_ptr, &CONST_PI2, &tmp, PR_64_BITS | RC_CHOP | 0x3f, trig_arg()
53 FPU_round_to_int(&tmp, tag); /* Fortunately, this can't overflow trig_arg()
153 int tag; convert_l2reg() local
173 tag = FPU_normalize(dest); convert_l2reg()
174 FPU_settagi(deststnr, tag); convert_l2reg()
232 static void f2xm1(FPU_REG *st0_ptr, u_char tag) f2xm1() argument
238 if (tag == TAG_Valid) { f2xm1()
252 if (tag == TAG_Zero) f2xm1()
255 if (tag == TAG_Special) f2xm1()
256 tag = FPU_Special(st0_ptr); f2xm1()
258 switch (tag) { f2xm1()
271 single_arg_error(st0_ptr, tag); f2xm1()
454 u_char tag; fsqrt_() local
469 tag = wm_sqrt(st0_ptr, 0, 0, control_word, SIGN_POS); fsqrt_()
471 FPU_settag0(tag); fsqrt_()
507 int flags, tag; frndint_() local
529 tag = FPU_normalize(st0_ptr); frndint_()
531 FPU_settag0(tag); frndint_()
549 static int fsin(FPU_REG *st0_ptr, u_char tag) fsin() argument
553 if (tag == TAG_Valid) { fsin()
579 if (tag == TAG_Zero) { fsin()
584 if (tag == TAG_Special) fsin()
585 tag = FPU_Special(st0_ptr); fsin()
587 if (tag == TW_Denormal) { fsin()
595 tag = FPU_round(st0_ptr, 1, 0, FULL_PRECISION, arg_sign); fsin()
597 FPU_settag0(tag); fsin()
600 } else if (tag == TW_Infinity) { fsin()
605 single_arg_error(st0_ptr, tag); fsin()
610 static int f_cos(FPU_REG *st0_ptr, u_char tag) f_cos() argument
616 if (tag == TAG_Valid) { f_cos()
656 } else if (tag == TAG_Zero) { f_cos()
662 if (tag == TAG_Special) f_cos()
663 tag = FPU_Special(st0_ptr); f_cos()
665 if (tag == TW_Denormal) { f_cos()
670 } else if (tag == TW_Infinity) { f_cos()
675 single_arg_error(st0_ptr, tag); /* requires st0_ptr == &st(0) */ f_cos()
689 u_char tag; fsincos() local
708 tag = FPU_Special(st0_ptr); fsincos()
710 tag = st0_tag; fsincos()
712 if (tag == TW_NaN) { fsincos()
715 } else if (tag == TW_Infinity) { fsincos()
787 int tag; do_fprem() local
814 tag = FPU_u_div(&st0, &st1, &tmp, do_fprem()
820 FPU_round_to_int(&tmp, tag); /* Fortunately, this can't do_fprem()
891 tag = do_fprem()
896 FPU_round_to_int(&tmp, tag); /* Fortunately, this can't do_fprem()
929 tag = FPU_normalize_nuo(&tmp); do_fprem()
934 if ((exponent16(&tmp) <= EXP_UNDER) && (tag != TAG_Zero) do_fprem()
937 tag = arith_underflow(st0_ptr); do_fprem()
939 FPU_settag0(tag); do_fprem()
941 } else if ((exponent16(&tmp) > EXP_UNDER) || (tag == TAG_Zero)) { do_fprem()
945 tag = do_fprem()
948 FPU_settag0(tag); do_fprem()
1025 int e, tag; fyl2x() local
1053 tag = FPU_normalize_nuo(&exponent); fyl2x()
1056 tag = fyl2x()
1057 FPU_mul(&exponent, tag, 1, FULL_PRECISION); fyl2x()
1058 if (tag >= 0) fyl2x()
1059 FPU_settagi(1, tag); fyl2x()
1195 int tag; fpatan() local
1235 tag = fpatan()
1241 if (tag >= 0) fpatan()
1242 FPU_settagi(1, tag); fpatan()
H A Dpoly_l2.c32 int tag; poly_l2() local
50 tag = FPU_normalize_nuo(&x); poly_l2()
52 if (tag == TAG_Zero) { poly_l2()
92 tag = FPU_round(st1_ptr, 1, 0, FULL_PRECISION, sign ^ st1_sign); poly_l2()
93 FPU_settagi(1, tag); poly_l2()
108 u_char tag; poly_l2p1() local
128 tag = FPU_round(dest, 1, 0, FULL_PRECISION, sign0 ^ sign1); poly_l2p1()
129 FPU_settagi(1, tag); poly_l2p1()
131 if (tag == TAG_Valid) poly_l2p1()
H A Dreg_constant.c39 /* Only the sign (and tag) is used in internal zeroes */
42 /* Only the sign and significand (and tag) are used in internal NaNs */
49 /* Only the sign (and tag) is used in internal infinities */
52 static void fld_const(FPU_REG const * c, int adj, u_char tag) fld_const() argument
64 FPU_settag0(tag); fld_const()
H A Dpoly_2xm1.c57 u_char tag; poly_2xm1() local
138 tag = FPU_round(result, 1, 0, FULL_PRECISION, sign); poly_2xm1()
141 FPU_settag0(tag); poly_2xm1()
H A Dfpu_proto.h62 extern void FPU_settag0(int tag);
63 extern void FPU_settagi(int stnr, int tag);
64 extern void FPU_settag(int regnr, int tag);
70 extern void FPU_copy_to_regi(FPU_REG const *r, u_char tag, int stnr);
71 extern void FPU_copy_to_reg1(FPU_REG const *r, u_char tag);
72 extern void FPU_copy_to_reg0(FPU_REG const *r, u_char tag);
132 extern int FPU_round_to_int(FPU_REG *r, u_char tag);
H A Derrors.c197 printk("Whoops! Error in errors.c: tag%d is %d ", i, FPU_printall()
513 int tag = TAG_Valid; FPU_divide_by_zero() local
519 tag = TAG_Special; FPU_divide_by_zero()
524 return (!(control_word & CW_ZeroDiv) ? FPU_Exception : 0) | tag; FPU_divide_by_zero()
573 int tag = TAG_Valid; arith_overflow() local
579 tag = TAG_Special; arith_overflow()
592 return tag; arith_overflow()
595 return tag; arith_overflow()
601 int tag = TAG_Valid; arith_underflow() local
608 tag = TAG_Zero; arith_underflow()
621 return tag; arith_underflow()
624 return tag; arith_underflow()
H A Dfpu_aux.c105 u_char tag; fld_i_() local
116 tag = FPU_gettagi(i); fld_i_()
118 FPU_settag0(tag); fld_i_()
H A Dreg_ld_str.c40 u_char tag; normalize_no_excep() local
44 tag = FPU_normalize_nuo(r); normalize_no_excep()
49 return tag; normalize_no_excep()
96 int exp, tag, negative; FPU_load_double() local
115 tag = TAG_Special; FPU_load_double()
122 tag = TAG_Special; /* The calling function must look for NaNs */ FPU_load_double()
130 tag = TAG_Zero; FPU_load_double()
146 tag = TAG_Valid; FPU_load_double()
151 return tag; FPU_load_double()
158 int exp, tag, negative; FPU_load_single() local
189 tag = TAG_Special; FPU_load_single()
195 tag = TAG_Special; /* The calling function must look for NaNs */ FPU_load_single()
200 tag = TAG_Valid; FPU_load_single()
205 return tag; FPU_load_single()
969 int FPU_round_to_int(FPU_REG *r, u_char tag) FPU_round_to_int() argument
974 if (tag == TAG_Zero) { FPU_round_to_int()
1029 u_char tag; fldenv() local
1088 tag = tag_word & 3; fldenv()
1091 if (tag == TAG_Empty) fldenv()
1092 /* New tag is empty. Accept it */ fldenv()
1095 /* Old tag is empty and new tag is not empty. New tag is determined fldenv()
1112 /* Else old tag is not empty and new tag is not empty. Old tag fldenv()
/linux-4.1.27/arch/metag/include/asm/
H A Dtcm.h9 unsigned int tag; member in struct:tcm_allocation
18 unsigned int tag; member in struct:tcm_region
24 unsigned long tcm_alloc(unsigned int tag, size_t len);
25 void tcm_free(unsigned int tag, unsigned long addr, size_t len);
/linux-4.1.27/arch/metag/kernel/
H A Dtcm.c18 unsigned int tag; member in struct:tcm_pool
26 static struct tcm_pool *find_pool(unsigned int tag) find_pool() argument
33 if (pool->tag == tag) find_pool()
42 * @tag: tag of the pool to allocate memory from
46 * the specified tag. Returns the address of the allocated memory
49 unsigned long tcm_alloc(unsigned int tag, size_t len) tcm_alloc() argument
54 pool = find_pool(tag); tcm_alloc()
67 * @tag: tag of the pool to free memory to
72 * pool matching the specified tag.
74 void tcm_free(unsigned int tag, unsigned long addr, size_t len) tcm_free() argument
78 pool = find_pool(tag); tcm_free()
85 * tcm_lookup_tag - find the tag matching an address
86 * @p: memory address to lookup the tag for
88 * Find the tag of the tcm memory region that contains the
101 return pool->tag; tcm_lookup_tag()
123 pool->tag = reg->tag; tcm_add_region()
/linux-4.1.27/block/
H A Dblk-tag.c13 * blk_queue_find_tag - find a request by its tag and queue
15 * @tag: The tag of the request
18 * Should be used when a device returns a tag and you want to match
23 struct request *blk_queue_find_tag(struct request_queue *q, int tag) blk_queue_find_tag() argument
25 return blk_map_queue_find_tag(q->queue_tags, tag); blk_queue_find_tag()
30 * blk_free_tags - release a given set of tag maintenance info
31 * @bqt: the tag map to free
54 * __blk_queue_free_tags - release tag maintenance info
75 * blk_queue_free_tags - release tag maintenance info
143 * blk_init_tags - initialize the tag info for an external tag map
145 * @alloc_policy: tag allocation policy
154 * blk_queue_init_tags - initialize the queue tag info
157 * @tags: the tag to use
158 * @alloc_policy: tag allocation policy
215 * adjust max_depth. *NOTE* as requests with tag value blk_queue_resize_tags()
216 * between new_depth and real_max_depth can be in-flight, tag blk_queue_resize_tags()
225 * Currently cannot replace a shared tag map with a new blk_queue_resize_tags()
252 * blk_queue_end_tag - end tag operations for a request
260 * request back on the free list thus corrupting the internal tag list.
268 unsigned tag = rq->tag; /* negative tags invalid */ blk_queue_end_tag() local
270 BUG_ON(tag >= bqt->real_max_depth); blk_queue_end_tag()
274 rq->tag = -1; blk_queue_end_tag()
276 if (unlikely(bqt->tag_index[tag] == NULL)) blk_queue_end_tag()
277 printk(KERN_ERR "%s: tag %d is missing\n", blk_queue_end_tag()
278 __func__, tag); blk_queue_end_tag()
280 bqt->tag_index[tag] = NULL; blk_queue_end_tag()
282 if (unlikely(!test_bit(tag, bqt->tag_map))) { blk_queue_end_tag()
283 printk(KERN_ERR "%s: attempt to clear non-busy tag (%d)\n", blk_queue_end_tag()
284 __func__, tag); blk_queue_end_tag()
291 clear_bit_unlock(tag, bqt->tag_map); blk_queue_end_tag()
296 * blk_queue_start_tag - find a free tag and assign it
303 * automagically gets a tag assigned). Note that this function
317 int tag; blk_queue_start_tag() local
323 rq->rq_disk ? rq->rq_disk->disk_name : "?", rq->tag); blk_queue_start_tag()
328 * Protect against shared tag maps, as we may not have exclusive blk_queue_start_tag()
329 * access to the tag map. blk_queue_start_tag()
352 tag = find_first_zero_bit(bqt->tag_map, max_depth); blk_queue_start_tag()
353 if (tag >= max_depth) blk_queue_start_tag()
358 tag = find_next_zero_bit(bqt->tag_map, size, start); blk_queue_start_tag()
359 if (tag >= size && start + size > bqt->max_depth) { blk_queue_start_tag()
361 tag = find_first_zero_bit(bqt->tag_map, size); blk_queue_start_tag()
363 if (tag >= size) blk_queue_start_tag()
367 } while (test_and_set_bit_lock(tag, bqt->tag_map)); blk_queue_start_tag()
373 bqt->next_tag = (tag + 1) % bqt->max_depth; blk_queue_start_tag()
375 rq->tag = tag; blk_queue_start_tag()
376 bqt->tag_index[tag] = rq; blk_queue_start_tag()
389 * In this case, we will safely clear the block side of the tag queue and
H A Dblk-mq-tag.c9 * between multiple submitters when a shared tag map is used.
20 #include "blk-mq-tag.h"
113 * For shared tag users, we track the number of currently active users
114 * and attempt to provide a fair share of the tag depth for each of them.
146 int tag, org_last_tag = last_tag; __bt_get_word() local
149 tag = find_next_zero_bit(&bm->word, bm->depth, last_tag); __bt_get_word()
150 if (unlikely(tag >= bm->depth)) { __bt_get_word()
163 if (!test_and_set_bit(tag, &bm->word)) __bt_get_word()
166 last_tag = tag + 1; __bt_get_word()
171 return tag; __bt_get_word()
177 * Straight forward bitmap tag implementation, where each bit is a tag
191 int index, i, tag; __bt_get() local
200 tag = __bt_get_word(&bt->map[index], TAG_TO_BIT(bt, last_tag), __bt_get()
202 if (tag != -1) { __bt_get()
203 tag += (index << bt->bits_per_word); __bt_get()
208 * Jump to next index, and reset the last tag to be the __bt_get()
209 * first tag of that index __bt_get()
225 * up using the specific cached tag. __bt_get()
228 if (tag == org_last_tag || unlikely(BT_ALLOC_RR(tags))) { __bt_get()
229 last_tag = tag + 1; __bt_get()
236 return tag; __bt_get()
261 int tag; bt_get() local
263 tag = __bt_get(hctx, bt, last_tag, tags); bt_get()
264 if (tag != -1) bt_get()
265 return tag; bt_get()
274 tag = __bt_get(hctx, bt, last_tag, tags); bt_get()
275 if (tag != -1) bt_get()
282 * reserved tag allocation. bt_get()
288 * Retry tag allocation after running the hardware queue, bt_get()
291 tag = __bt_get(hctx, bt, last_tag, tags); bt_get()
292 if (tag != -1) bt_get()
314 return tag; bt_get()
319 int tag; __blk_mq_get_tag() local
321 tag = bt_get(data, &data->hctx->tags->bitmap_tags, data->hctx, __blk_mq_get_tag()
323 if (tag >= 0) __blk_mq_get_tag()
324 return tag + data->hctx->tags->nr_reserved_tags; __blk_mq_get_tag()
331 int tag, zero = 0; __blk_mq_get_reserved_tag() local
338 tag = bt_get(data, &data->hctx->tags->breserved_tags, NULL, &zero, __blk_mq_get_reserved_tag()
340 if (tag < 0) __blk_mq_get_reserved_tag()
343 return tag; __blk_mq_get_reserved_tag()
376 static void bt_clear_tag(struct blk_mq_bitmap_tags *bt, unsigned int tag) bt_clear_tag() argument
378 const int index = TAG_TO_INDEX(bt, tag); bt_clear_tag()
382 clear_bit(TAG_TO_BIT(bt, tag), &bt->map[index].word); bt_clear_tag()
401 void blk_mq_put_tag(struct blk_mq_hw_ctx *hctx, unsigned int tag, blk_mq_put_tag() argument
406 if (tag >= tags->nr_reserved_tags) { blk_mq_put_tag()
407 const int real_tag = tag - tags->nr_reserved_tags; blk_mq_put_tag()
414 BUG_ON(tag >= tags->nr_reserved_tags); blk_mq_put_tag()
415 bt_clear_tag(&tags->breserved_tags, tag); blk_mq_put_tag()
505 * If the tag space is small, shrink the number of tags bt_alloc()
575 pr_err("blk-mq: tag depth too large\n"); blk_mq_init_tags()
596 void blk_mq_tag_init_last_tag(struct blk_mq_tags *tags, unsigned int *tag) blk_mq_tag_init_last_tag() argument
600 *tag = prandom_u32() % depth; blk_mq_tag_init_last_tag()
619 * blk_mq_unique_tag() - return a tag that is unique queue-wide
620 * @rq: request for which to compute a unique tag
622 * The tag field in struct request is unique per hardware queue but not over
623 * all hardware queues. Hence this function that returns a tag with the
624 * hardware context index in the upper bits and the per hardware queue tag in
642 (rq->tag & BLK_MQ_UNIQUE_TAG_MASK); blk_mq_unique_tag()
H A Dblk-mq-tag.h16 #define TAG_TO_INDEX(bt, tag) ((tag) >> (bt)->bits_per_word)
17 #define TAG_TO_BIT(bt, tag) ((tag) & ((1 << (bt)->bits_per_word) - 1))
54 extern void blk_mq_put_tag(struct blk_mq_hw_ctx *hctx, unsigned int tag, unsigned int *last_tag);
H A Dt10-pi.c45 * Type 1 and Type 2 protection use the same format: 16 bit guard tag,
46 * 16 bit app tag, 32 bit reference tag. Type 3 does not define the ref
47 * tag.
90 pr_err("%s: ref tag error at location %llu " \ t10_pi_verify()
107 pr_err("%s: guard tag error at sector %llu " \ t10_pi_verify()
/linux-4.1.27/fs/fscache/
H A Dcache.c25 * look up a cache tag
29 struct fscache_cache_tag *tag, *xtag; __fscache_lookup_cache_tag() local
31 /* firstly check for the existence of the tag under read lock */ __fscache_lookup_cache_tag()
34 list_for_each_entry(tag, &fscache_cache_tag_list, link) { __fscache_lookup_cache_tag()
35 if (strcmp(tag->name, name) == 0) { __fscache_lookup_cache_tag()
36 atomic_inc(&tag->usage); __fscache_lookup_cache_tag()
38 return tag; __fscache_lookup_cache_tag()
44 /* the tag does not exist - create a candidate */ __fscache_lookup_cache_tag()
47 /* return a dummy tag if out of memory */ __fscache_lookup_cache_tag()
56 list_for_each_entry(tag, &fscache_cache_tag_list, link) { __fscache_lookup_cache_tag()
57 if (strcmp(tag->name, name) == 0) { __fscache_lookup_cache_tag()
58 atomic_inc(&tag->usage); __fscache_lookup_cache_tag()
61 return tag; __fscache_lookup_cache_tag()
71 * release a reference to a cache tag
73 void __fscache_release_cache_tag(struct fscache_cache_tag *tag) __fscache_release_cache_tag() argument
75 if (tag != ERR_PTR(-ENOMEM)) { __fscache_release_cache_tag()
78 if (atomic_dec_and_test(&tag->usage)) __fscache_release_cache_tag()
79 list_del_init(&tag->link); __fscache_release_cache_tag()
81 tag = NULL; __fscache_release_cache_tag()
85 kfree(tag); __fscache_release_cache_tag()
97 struct fscache_cache_tag *tag; fscache_select_cache_for_object() local
141 tag = cookie->def->select_cache(cookie->parent->netfs_data, fscache_select_cache_for_object()
143 if (!tag) fscache_select_cache_for_object()
146 if (tag == ERR_PTR(-ENOMEM)) { fscache_select_cache_for_object()
147 _leave(" = NULL [nomem tag]"); fscache_select_cache_for_object()
151 if (!tag->cache) { fscache_select_cache_for_object()
152 _leave(" = NULL [unbacked tag]"); fscache_select_cache_for_object()
156 if (test_bit(FSCACHE_IOERROR, &tag->cache->flags)) fscache_select_cache_for_object()
159 _leave(" = %p [specific]", tag->cache); fscache_select_cache_for_object()
160 return tag->cache; fscache_select_cache_for_object()
210 * @tagname: The tag describing this cache
221 struct fscache_cache_tag *tag; fscache_add_cache() local
239 /* we use the cache tag to uniquely identify caches */ fscache_add_cache()
240 tag = __fscache_lookup_cache_tag(tagname); fscache_add_cache()
241 if (IS_ERR(tag)) fscache_add_cache()
244 if (test_and_set_bit(FSCACHE_TAG_RESERVED, &tag->flags)) fscache_add_cache()
257 tag->cache = cache; fscache_add_cache()
258 cache->tag = tag; fscache_add_cache()
284 cache->tag->name, cache->ops->name); fscache_add_cache()
291 pr_err("Cache tag '%s' already in use\n", tagname); fscache_add_cache()
292 __fscache_release_cache_tag(tag); fscache_add_cache()
297 __fscache_release_cache_tag(tag); fscache_add_cache()
372 cache->tag->name); fscache_withdraw_cache()
380 cache->tag->cache = NULL; fscache_withdraw_cache()
415 clear_bit(FSCACHE_TAG_RESERVED, &cache->tag->flags); fscache_withdraw_cache()
416 fscache_release_cache_tag(cache->tag); fscache_withdraw_cache()
417 cache->tag = NULL; fscache_withdraw_cache()
/linux-4.1.27/drivers/pci/
H A Dvpd.c19 /* Don't return success of the tag isn't complete */ pci_vpd_find_tag()
29 u8 tag = val & ~PCI_VPD_SRDT_LEN_MASK; pci_vpd_find_tag() local
31 if (tag == rdt) pci_vpd_find_tag()
34 if (tag == PCI_VPD_SRDT_END) pci_vpd_find_tag()
/linux-4.1.27/arch/mn10300/mm/
H A DMakefile11 cacheflush-$(CONFIG_MN10300_CACHE_INV_BY_TAG) += cache-inv-by-tag.o
13 cacheflush-$(CONFIG_MN10300_CACHE_FLUSH_BY_TAG) += cache-flush-by-tag.o
17 cache-dbg-flush-by-tag.o cache-dbg-inv-by-tag.o
21 cache-dbg-inv-by-tag.o cache-dbg-inv.o
H A Dcache-dbg-inv-by-tag.S1 /* MN10300 CPU cache invalidation routines, using direct tag flushing
45 # read the tags from the tag RAM, and if they indicate a matching valid
50 add d0,a0 # starting icache tag RAM
71 mov (a0),d0 # read the tag in the way 0 slot
77 mov (a0),d0 # read the tag in the way 1 slot
83 mov (a0),d0 # read the tag in the way 2 slot
89 mov (a0),d0 # read the tag in the way 3 slot
95 mov d0,(a0) # kill the tag (D0 is 0 at this point)
H A Dcache-dbg-flush-by-tag.S1 /* MN10300 CPU cache invalidation routines, using direct tag flushing
43 # read the addresses tagged in the cache's tag RAM and attempt to flush
45 # - we rely on the hardware to filter out invalid tag entry addresses
46 mov DCACHE_TAG(0,0),a0 # dcache tag RAM access address
H A Dcache-inv-by-tag.S151 clr d2 # we're going to clear tag RAM
154 # read the tags from the tag RAM, and if they indicate a valid dirty
159 add d0,a0 # starting dcache tag RAM
185 mov (L1_CACHE_WAYDISP*0,a0),d0 # read the tag in the way 0 slot
194 mov d2,(L1_CACHE_WAYDISP*0,a0) # kill the tag
199 mov (L1_CACHE_WAYDISP*1,a0),d0 # read the tag in the way 1 slot
208 mov d2,(L1_CACHE_WAYDISP*1,a0) # kill the tag
213 mov (L1_CACHE_WAYDISP*2,a0),d0 # read the tag in the way 2 slot
222 mov d2,(L1_CACHE_WAYDISP*2,a0) # kill the tag
227 mov (L1_CACHE_WAYDISP*3,a0),d0 # read the tag in the way 3 slot
236 mov d2,(L1_CACHE_WAYDISP*3,a0) # kill the tag
/linux-4.1.27/scripts/dtc/
H A Dfdtdump.c57 uint32_t tag; dump_blob() local
98 while ((tag = fdt32_to_cpu(GET_CELL(p))) != FDT_END) { dump_blob()
100 /* printf("tag: 0x%08x (%d)\n", tag, p - p_struct); */ dump_blob()
102 if (tag == FDT_BEGIN_NODE) { dump_blob()
115 if (tag == FDT_END_NODE) { dump_blob()
122 if (tag == FDT_NOP) { dump_blob()
127 if (tag != FDT_PROP) { dump_blob()
128 fprintf(stderr, "%*s ** Unknown tag 0x%08x\n", depth * shift, "", tag); dump_blob()
/linux-4.1.27/include/trace/events/
H A D9p.h100 TP_PROTO(struct p9_client *clnt, int8_t type, int tag),
102 TP_ARGS(clnt, type, tag),
107 __field( __u32, tag )
113 __entry->tag = tag;
116 TP_printk("client %lu request %s tag %d",
118 __entry->tag)
122 TP_PROTO(struct p9_client *clnt, int8_t type, int tag, int err),
124 TP_ARGS(clnt, type, tag, err),
129 __field( __u32, tag )
136 __entry->tag = tag;
140 TP_printk("client %lu response %s tag %d err %d",
142 __entry->tag, __entry->err)
155 __field( __u16, tag )
162 __entry->tag = pdu->tag;
165 TP_printk("clnt %lu %s(tag = %d)\n%.3x: %16ph\n%.3x: %16ph\n",
167 __entry->tag, 0, __entry->line, 16, __entry->line + 16)
H A Dlibata.h151 __field( unsigned int, tag )
172 __entry->tag = qc->tag;
188 TP_printk("ata_port=%u ata_dev=%u tag=%d proto=%s cmd=%s " \
190 __entry->ata_port, __entry->ata_dev, __entry->tag,
209 __field( unsigned int, tag )
229 __entry->tag = qc->tag;
244 TP_printk("ata_port=%u ata_dev=%u tag=%d flags=%s status=%s " \
246 __entry->ata_port, __entry->ata_dev, __entry->tag,
303 __field( unsigned int, tag )
311 __entry->tag = qc->tag;
316 TP_printk("ata_port=%u ata_dev=%u tag=%d flags=%s err_mask=%s",
317 __entry->ata_port, __entry->ata_dev, __entry->tag,
/linux-4.1.27/drivers/pnp/pnpbios/
H A Drsparser.c44 * end tag ->
46 * end tag ->
48 * final end tag ->
83 unsigned int len, tag; pnpbios_parse_allocated_resource_data() local
95 /* determine the type of tag */ pnpbios_parse_allocated_resource_data()
96 if (p[0] & LARGE_TAG) { /* large tag */ pnpbios_parse_allocated_resource_data()
98 tag = p[0]; pnpbios_parse_allocated_resource_data()
99 } else { /* small tag */ pnpbios_parse_allocated_resource_data()
101 tag = ((p[0] >> 3) & 0x0f); pnpbios_parse_allocated_resource_data()
104 switch (tag) { pnpbios_parse_allocated_resource_data()
193 default: /* an unknown tag */ pnpbios_parse_allocated_resource_data()
195 dev_err(&dev->dev, "unknown tag %#x length %d\n", pnpbios_parse_allocated_resource_data()
196 tag, len); pnpbios_parse_allocated_resource_data()
200 /* continue to the next tag */ pnpbios_parse_allocated_resource_data()
207 dev_err(&dev->dev, "no end tag in resource structure\n"); pnpbios_parse_allocated_resource_data()
319 unsigned int len, tag; pnpbios_parse_resource_option_data() local
330 /* determine the type of tag */ pnpbios_parse_resource_option_data()
331 if (p[0] & LARGE_TAG) { /* large tag */ pnpbios_parse_resource_option_data()
333 tag = p[0]; pnpbios_parse_resource_option_data()
334 } else { /* small tag */ pnpbios_parse_resource_option_data()
336 tag = ((p[0] >> 3) & 0x0f); pnpbios_parse_resource_option_data()
339 switch (tag) { pnpbios_parse_resource_option_data()
407 default: /* an unknown tag */ pnpbios_parse_resource_option_data()
409 dev_err(&dev->dev, "unknown tag %#x length %d\n", pnpbios_parse_resource_option_data()
410 tag, len); pnpbios_parse_resource_option_data()
414 /* continue to the next tag */ pnpbios_parse_resource_option_data()
421 dev_err(&dev->dev, "no end tag in resource structure\n"); pnpbios_parse_resource_option_data()
434 int len, tag; pnpbios_parse_compatible_ids() local
444 /* determine the type of tag */ pnpbios_parse_compatible_ids()
445 if (p[0] & LARGE_TAG) { /* large tag */ pnpbios_parse_compatible_ids()
447 tag = p[0]; pnpbios_parse_compatible_ids()
448 } else { /* small tag */ pnpbios_parse_compatible_ids()
450 tag = ((p[0] >> 3) & 0x0f); pnpbios_parse_compatible_ids()
453 switch (tag) { pnpbios_parse_compatible_ids()
477 default: /* an unknown tag */ pnpbios_parse_compatible_ids()
479 dev_err(&dev->dev, "unknown tag %#x length %d\n", pnpbios_parse_compatible_ids()
480 tag, len); pnpbios_parse_compatible_ids()
484 /* continue to the next tag */ pnpbios_parse_compatible_ids()
491 dev_err(&dev->dev, "no end tag in resource structure\n"); pnpbios_parse_compatible_ids()
662 unsigned int len, tag; pnpbios_encode_allocated_resource_data() local
670 /* determine the type of tag */ pnpbios_encode_allocated_resource_data()
671 if (p[0] & LARGE_TAG) { /* large tag */ pnpbios_encode_allocated_resource_data()
673 tag = p[0]; pnpbios_encode_allocated_resource_data()
674 } else { /* small tag */ pnpbios_encode_allocated_resource_data()
676 tag = ((p[0] >> 3) & 0x0f); pnpbios_encode_allocated_resource_data()
679 switch (tag) { pnpbios_encode_allocated_resource_data()
746 default: /* an unknown tag */ pnpbios_encode_allocated_resource_data()
748 dev_err(&dev->dev, "unknown tag %#x length %d\n", pnpbios_encode_allocated_resource_data()
749 tag, len); pnpbios_encode_allocated_resource_data()
753 /* continue to the next tag */ pnpbios_encode_allocated_resource_data()
760 dev_err(&dev->dev, "no end tag in resource structure\n"); pnpbios_encode_allocated_resource_data()
/linux-4.1.27/drivers/ata/
H A Dsata_dwc_460ex.c79 u32 fptagr; /* 1st party DMA tag */
211 static void sata_dwc_bmdma_start_by_tag(struct ata_queued_cmd *qc, u8 tag);
216 static void sata_dwc_clear_dmacr(struct sata_dwc_device_port *hsdevp, u8 tag);
276 u8 tag = 0; dma_dwc_xfer_done() local
282 tag = ap->link.active_tag; dma_dwc_xfer_done()
290 sata_dwc_clear_dmacr(hsdevp, tag); dma_dwc_xfer_done()
292 if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_NONE) { dma_dwc_xfer_done()
293 dev_err(ap->dev, "DMA not pending tag=0x%02x pending=%d\n", dma_dwc_xfer_done()
294 tag, hsdevp->dma_pending[tag]); dma_dwc_xfer_done()
397 static u32 qcmd_tag_to_mask(u8 tag) qcmd_tag_to_mask() argument
399 return 0x00000001 << (tag & 0x1f); qcmd_tag_to_mask()
411 u8 status, tag; sata_dwc_error_intr() local
418 tag = ap->link.active_tag; sata_dwc_error_intr()
423 hsdevp->dma_pending[tag], hsdevp->cmd_issued[tag]); sata_dwc_error_intr()
438 qc = ata_qc_from_tag(ap, tag); sata_dwc_error_intr()
461 u8 status, tag; sata_dwc_isr() local
489 tag = (u8)(in_le32(&hsdev->sata_dwc_regs->fptagr)); sata_dwc_isr()
490 dev_dbg(ap->dev, "%s: NEWFP tag=%d\n", __func__, tag); sata_dwc_isr()
491 if (hsdevp->cmd_issued[tag] != SATA_DWC_CMD_ISSUED_PEND) sata_dwc_isr()
492 dev_warn(ap->dev, "CMD tag=%d not pending?\n", tag); sata_dwc_isr()
494 host_pvt.sata_dwc_sactive_issued |= qcmd_tag_to_mask(tag); sata_dwc_isr()
496 qc = ata_qc_from_tag(ap, tag); sata_dwc_isr()
498 * Start FP DMA for NCQ command. At this point the tag is the sata_dwc_isr()
499 * active tag. It is the tag that matches the command about to sata_dwc_isr()
502 qc->ap->link.active_tag = tag; sata_dwc_isr()
503 sata_dwc_bmdma_start_by_tag(qc, tag); sata_dwc_isr()
514 tag = 0; sata_dwc_isr()
516 tag = ap->link.active_tag; sata_dwc_isr()
517 qc = ata_qc_from_tag(ap, tag); sata_dwc_isr()
530 qc->ap->link.active_tag = tag; sata_dwc_isr()
531 hsdevp->cmd_issued[tag] = SATA_DWC_CMD_ISSUED_NOT; sata_dwc_isr()
551 if (hsdevp->dma_pending[tag] == \ sata_dwc_isr()
556 hsdevp->dma_pending[tag]); sata_dwc_isr()
596 "Bad tag mask? sactive=0x%08x (host_pvt.sata_dwc_sactive_issued)=0x%08x tag_mask=0x%08x\n", sata_dwc_isr()
604 tag = 0; sata_dwc_isr()
609 tag++; sata_dwc_isr()
614 qc = ata_qc_from_tag(ap, tag); sata_dwc_isr()
617 qc->ap->link.active_tag = tag; sata_dwc_isr()
618 hsdevp->cmd_issued[tag] = SATA_DWC_CMD_ISSUED_NOT; sata_dwc_isr()
634 if (hsdevp->dma_pending[tag] == \ sata_dwc_isr()
672 static void sata_dwc_clear_dmacr(struct sata_dwc_device_port *hsdevp, u8 tag) sata_dwc_clear_dmacr() argument
676 if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_RX) { sata_dwc_clear_dmacr()
680 } else if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_TX) { sata_dwc_clear_dmacr()
690 "%s DMA protocol RX and TX DMA not pending tag=0x%02x pending=%d dmacr: 0x%08x\n", sata_dwc_clear_dmacr()
691 __func__, tag, hsdevp->dma_pending[tag], sata_dwc_clear_dmacr()
703 u8 tag = 0; sata_dwc_dma_xfer_complete() local
705 tag = ap->link.active_tag; sata_dwc_dma_xfer_complete()
706 qc = ata_qc_from_tag(ap, tag); sata_dwc_dma_xfer_complete()
713 if (tag > 0) { sata_dwc_dma_xfer_complete()
715 "%s tag=%u cmd=0x%02x dma dir=%s proto=%s dmacr=0x%08x\n", sata_dwc_dma_xfer_complete()
716 __func__, qc->tag, qc->tf.command, sata_dwc_dma_xfer_complete()
724 if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_NONE) { sata_dwc_dma_xfer_complete()
731 hsdevp->dma_pending[tag] = SATA_DWC_DMA_PENDING_NONE; sata_dwc_dma_xfer_complete()
744 u8 tag = qc->tag; sata_dwc_qc_complete() local
749 if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_TX) sata_dwc_qc_complete()
751 else if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_RX) sata_dwc_qc_complete()
758 mask = (~(qcmd_tag_to_mask(tag))); sata_dwc_qc_complete()
918 * arguments : ata_port *ap, ata_taskfile *tf, u8 tag, u32 cmd_issued
920 * This function keeps track of individual command tag ids and calls
925 u8 tag, u32 cmd_issued) sata_dwc_exec_command_by_tag()
930 dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__, tf->command, sata_dwc_exec_command_by_tag()
931 ata_get_cmd_descript(tf->command), tag); sata_dwc_exec_command_by_tag()
934 hsdevp->cmd_issued[tag] = cmd_issued; sata_dwc_exec_command_by_tag()
946 static void sata_dwc_bmdma_setup_by_tag(struct ata_queued_cmd *qc, u8 tag) sata_dwc_bmdma_setup_by_tag() argument
948 sata_dwc_exec_command_by_tag(qc->ap, &qc->tf, tag, sata_dwc_bmdma_setup_by_tag()
954 u8 tag = qc->tag; sata_dwc_bmdma_setup() local
957 dev_dbg(qc->ap->dev, "%s: ap->link.sactive=0x%08x tag=%d\n", sata_dwc_bmdma_setup()
958 __func__, qc->ap->link.sactive, tag); sata_dwc_bmdma_setup()
960 tag = 0; sata_dwc_bmdma_setup()
962 sata_dwc_bmdma_setup_by_tag(qc, tag); sata_dwc_bmdma_setup()
965 static void sata_dwc_bmdma_start_by_tag(struct ata_queued_cmd *qc, u8 tag) sata_dwc_bmdma_start_by_tag() argument
972 struct dma_async_tx_descriptor *desc = hsdevp->desc[tag]; sata_dwc_bmdma_start_by_tag()
975 if (hsdevp->cmd_issued[tag] != SATA_DWC_CMD_ISSUED_NOT) { sata_dwc_bmdma_start_by_tag()
978 hsdevp->dma_pending[tag] = SATA_DWC_DMA_PENDING_TX; sata_dwc_bmdma_start_by_tag()
980 hsdevp->dma_pending[tag] = SATA_DWC_DMA_PENDING_RX; sata_dwc_bmdma_start_by_tag()
983 "%s: Command not pending cmd_issued=%d (tag=%d) DMA NOT started\n", sata_dwc_bmdma_start_by_tag()
984 __func__, hsdevp->cmd_issued[tag], tag); sata_dwc_bmdma_start_by_tag()
989 "%s qc=%p tag: %x cmd: 0x%02x dma_dir: %s start_dma? %x\n", sata_dwc_bmdma_start_by_tag()
990 __func__, qc, tag, qc->tf.command, sata_dwc_bmdma_start_by_tag()
1016 u8 tag = qc->tag; sata_dwc_bmdma_start() local
1019 dev_dbg(qc->ap->dev, "%s: ap->link.sactive=0x%08x tag=%d\n", sata_dwc_bmdma_start()
1020 __func__, qc->ap->link.sactive, tag); sata_dwc_bmdma_start()
1022 tag = 0; sata_dwc_bmdma_start()
1025 sata_dwc_bmdma_start_by_tag(qc, tag); sata_dwc_bmdma_start()
1030 * arguments : ata_queued_cmd *qc, u8 tag
1032 * qc_prep for a particular queued command based on tag
1034 static void sata_dwc_qc_prep_by_tag(struct ata_queued_cmd *qc, u8 tag) sata_dwc_qc_prep_by_tag() argument
1050 hsdevp->desc[tag] = desc; sata_dwc_qc_prep_by_tag()
1056 u8 tag = qc->tag; sata_dwc_qc_issue() local
1060 if (qc->tag > 0 || ap->link.sactive > 1) sata_dwc_qc_issue()
1062 "%s ap id=%d cmd(0x%02x)=%s qc tag=%d prot=%s ap active_tag=0x%08x ap sactive=0x%08x\n", sata_dwc_qc_issue()
1065 qc->tag, get_prot_descript(qc->tf.protocol), sata_dwc_qc_issue()
1070 tag = 0; sata_dwc_qc_issue()
1071 sata_dwc_qc_prep_by_tag(qc, tag); sata_dwc_qc_issue()
1075 sactive |= (0x00000001 << tag); sata_dwc_qc_issue()
1079 "%s: tag=%d ap->link.sactive = 0x%08x sactive=0x%08x\n", sata_dwc_qc_issue()
1080 __func__, tag, qc->ap->link.sactive, sactive); sata_dwc_qc_issue()
1083 sata_dwc_exec_command_by_tag(ap, &qc->tf, qc->tag, sata_dwc_qc_issue()
1104 if (qc->tag > 0) sata_dwc_qc_prep()
1105 dev_info(qc->ap->dev, "%s: qc->tag=%d ap->active_tag=0x%08x\n", sata_dwc_qc_prep()
1106 __func__, qc->tag, qc->ap->link.active_tag); sata_dwc_qc_prep()
923 sata_dwc_exec_command_by_tag(struct ata_port *ap, struct ata_taskfile *tf, u8 tag, u32 cmd_issued) sata_dwc_exec_command_by_tag() argument
H A Dsata_fsl.c392 static inline unsigned int sata_fsl_tag(unsigned int tag, sata_fsl_tag() argument
395 /* We let libATA core do actual (queue) tag allocation */ sata_fsl_tag()
397 /* all non NCQ/queued commands should have tag#0 */ sata_fsl_tag()
398 if (ata_tag_internal(tag)) { sata_fsl_tag()
399 DPRINTK("mapping internal cmds to tag#0\n"); sata_fsl_tag()
403 if (unlikely(tag >= SATA_FSL_QUEUE_DEPTH)) { sata_fsl_tag()
404 DPRINTK("tag %d invalid : out of range\n", tag); sata_fsl_tag()
408 if (unlikely((ioread32(hcr_base + CQ)) & (1 << tag))) { sata_fsl_tag()
409 DPRINTK("tag %d invalid : in use!!\n", tag); sata_fsl_tag()
413 return tag; sata_fsl_tag()
417 unsigned int tag, u32 desc_info, sata_fsl_setup_cmd_hdr_entry()
424 tag * SATA_FSL_CMD_DESC_SIZE; sata_fsl_setup_cmd_hdr_entry()
428 pp->cmdslot[tag].cda = cpu_to_le32(cmd_descriptor_address); sata_fsl_setup_cmd_hdr_entry()
429 pp->cmdslot[tag].prde_fis_len = sata_fsl_setup_cmd_hdr_entry()
431 pp->cmdslot[tag].ttl = cpu_to_le32(data_xfer_len & ~0x03); sata_fsl_setup_cmd_hdr_entry()
432 pp->cmdslot[tag].desc_info = cpu_to_le32(desc_info | (tag & 0x1F)); sata_fsl_setup_cmd_hdr_entry()
435 pp->cmdslot[tag].cda, sata_fsl_setup_cmd_hdr_entry()
436 pp->cmdslot[tag].prde_fis_len, sata_fsl_setup_cmd_hdr_entry()
437 pp->cmdslot[tag].ttl, pp->cmdslot[tag].desc_info); sata_fsl_setup_cmd_hdr_entry()
521 unsigned int tag = sata_fsl_tag(qc->tag, hcr_base); sata_fsl_qc_prep() local
528 cd = (struct command_desc *)pp->cmdentry + tag; sata_fsl_qc_prep()
529 cd_paddr = pp->cmdentry_paddr + tag * SATA_FSL_CMD_DESC_SIZE; sata_fsl_qc_prep()
556 sata_fsl_setup_cmd_hdr_entry(pp, tag, desc_info, ttl_dwords, sata_fsl_qc_prep()
568 unsigned int tag = sata_fsl_tag(qc->tag, hcr_base); sata_fsl_qc_issue() local
578 iowrite32(1 << tag, CQ + hcr_base); sata_fsl_qc_issue()
580 VPRINTK("xx_qc_issue called, tag=%d, CQ=0x%x, CA=0x%x\n", sata_fsl_qc_issue()
581 tag, ioread32(CQ + hcr_base), ioread32(CA + hcr_base)); sata_fsl_qc_issue()
597 unsigned int tag = sata_fsl_tag(qc->tag, hcr_base); sata_fsl_qc_fill_rtf() local
600 cd = pp->cmdentry + tag; sata_fsl_qc_fill_rtf()
1219 u32 tag; sata_fsl_host_intr() local
1231 for (tag = 0; tag < ATA_MAX_QUEUE; tag++) { sata_fsl_host_intr()
1232 qc = ata_qc_from_tag(ap, tag); sata_fsl_host_intr()
1288 ("completing ncq cmd,tag=%d,CC=0x%x,CA=0x%x\n", sata_fsl_host_intr()
416 sata_fsl_setup_cmd_hdr_entry(struct sata_fsl_port_priv *pp, unsigned int tag, u32 desc_info, u32 data_xfer_len, u8 num_prde, u8 fis_len) sata_fsl_setup_cmd_hdr_entry() argument
H A Dsata_nv.c232 u8 tag; /* 4 */ member in struct:nv_adma_cpb
263 unsigned int tag[ATA_MAX_QUEUE]; member in struct:defer_queue
1177 * one for each command tag nv_adma_port_start()
1359 &pp->aprd[NV_ADMA_SGTBL_LEN * qc->tag + (si-5)]; nv_adma_fill_sg()
1363 cpb->next_aprd = cpu_to_le64(((u64)(pp->aprd_dma + NV_ADMA_SGTBL_SZ * qc->tag))); nv_adma_fill_sg()
1388 struct nv_adma_cpb *cpb = &pp->cpb[qc->tag]; nv_adma_qc_prep()
1406 cpb->tag = qc->tag; nv_adma_qc_prep()
1458 /* write append register, command tag in lower 8 bits nv_adma_qc_issue()
1469 writew(qc->tag, mmio + NV_ADMA_APPEND); nv_adma_qc_issue()
1471 DPRINTK("Issued tag %u\n", qc->tag); nv_adma_qc_issue()
1733 dq->defer_bits |= (1 << qc->tag); nv_swncq_qc_to_dq()
1734 dq->tag[dq->tail++ & (ATA_MAX_QUEUE - 1)] = qc->tag; nv_swncq_qc_to_dq()
1741 unsigned int tag; nv_swncq_qc_from_dq() local
1746 tag = dq->tag[dq->head & (ATA_MAX_QUEUE - 1)]; nv_swncq_qc_from_dq()
1747 dq->tag[dq->head++ & (ATA_MAX_QUEUE - 1)] = ATA_TAG_POISON; nv_swncq_qc_from_dq()
1748 WARN_ON(!(dq->defer_bits & (1 << tag))); nv_swncq_qc_from_dq()
1749 dq->defer_bits &= ~(1 << tag); nv_swncq_qc_from_dq()
1751 return ata_qc_from_tag(ap, tag); nv_swncq_qc_from_dq()
1814 ata_port_err(ap, "tag : dhfis dmafis sdbfis sactive\n"); nv_swncq_ncq_stop()
1825 "tag 0x%x: %01x %01x %01x %01x %s\n", i, nv_swncq_ncq_stop()
1830 (err ? "error! tag doesn't exit" : " ")); nv_swncq_ncq_stop()
2013 prd = pp->prd + ATA_MAX_PRD * qc->tag; nv_swncq_fill_sg()
2051 writel((1 << qc->tag), pp->sactive_block); nv_swncq_issue_atacmd()
2052 pp->last_issue_tag = qc->tag; nv_swncq_issue_atacmd()
2053 pp->dhfis_bits &= ~(1 << qc->tag); nv_swncq_issue_atacmd()
2054 pp->dmafis_bits &= ~(1 << qc->tag); nv_swncq_issue_atacmd()
2055 pp->qc_active |= (0x1 << qc->tag); nv_swncq_issue_atacmd()
2060 DPRINTK("Issued tag %u\n", qc->tag); nv_swncq_issue_atacmd()
2184 u32 tag; nv_swncq_tag() local
2186 tag = readb(pp->tag_block) >> 2; nv_swncq_tag()
2187 return (tag & 0x1f); nv_swncq_tag()
2195 u32 tag; nv_swncq_dmafis() local
2199 tag = nv_swncq_tag(ap); nv_swncq_dmafis()
2201 DPRINTK("dma setup tag 0x%x\n", tag); nv_swncq_dmafis()
2202 qc = ata_qc_from_tag(ap, tag); nv_swncq_dmafis()
2210 iowrite32(pp->prd_dma + ATA_PRD_TBL_SZ * qc->tag, nv_swncq_dmafis()
/linux-4.1.27/arch/ia64/kernel/
H A Dparavirt_patch.c55 paravirt_get_bundle(unsigned long tag) paravirt_get_bundle() argument
57 return (bundle_t *)(tag & ~3UL); paravirt_get_bundle()
61 paravirt_get_slot(unsigned long tag) paravirt_get_slot() argument
63 return tag & 3UL; paravirt_get_slot()
78 paravirt_get_next_tag(unsigned long tag) paravirt_get_next_tag() argument
80 unsigned long slot = paravirt_get_slot(tag); paravirt_get_next_tag()
85 return tag + 1; paravirt_get_next_tag()
87 bundle_t *bundle = paravirt_get_bundle(tag); paravirt_get_next_tag()
122 paravirt_read_inst(unsigned long tag) paravirt_read_inst() argument
124 bundle_t *bundle = paravirt_get_bundle(tag); paravirt_read_inst()
125 unsigned long slot = paravirt_get_slot(tag); paravirt_read_inst()
160 paravirt_write_inst(unsigned long tag, ia64_inst_t inst) paravirt_write_inst() argument
162 bundle_t *bundle = paravirt_get_bundle(tag); paravirt_write_inst()
163 unsigned long slot = paravirt_get_slot(tag); paravirt_write_inst()
312 unsigned long tag; fill_nop_inst() local
316 for (tag = stag; tag < etag; tag = paravirt_get_next_tag(tag)) fill_nop_inst()
317 paravirt_write_inst(tag, nop_inst); fill_nop_inst()
332 unsigned long tag; paravirt_patch_apply_inst() local
336 tag = (*pv_init_ops.patch_inst)(p->stag, p->etag, p->type); paravirt_patch_apply_inst()
337 if (tag == p->stag) paravirt_patch_apply_inst()
340 fill_nop_inst(tag, p->etag); paravirt_patch_apply_inst()
378 paravirt_patch_reloc_brl(unsigned long tag, const void *target) paravirt_patch_reloc_brl() argument
380 unsigned long tag_op = paravirt_get_next_tag(tag); paravirt_patch_reloc_brl()
381 unsigned long tag_imm = tag; paravirt_patch_reloc_brl()
382 bundle_t *bundle = paravirt_get_bundle(tag); paravirt_patch_reloc_brl()
393 BUG_ON(paravirt_get_slot(tag) != 1); /* MLX */ paravirt_patch_reloc_brl()
428 paravirt_patch_reloc_br(unsigned long tag, const void *target) paravirt_patch_reloc_br() argument
430 bundle_t *bundle = paravirt_get_bundle(tag); paravirt_patch_reloc_br()
431 ia64_inst_t inst = paravirt_read_inst(tag); paravirt_patch_reloc_br()
446 paravirt_write_inst(tag, inst); paravirt_patch_reloc_br()
451 unsigned long tag, unsigned long type, __paravirt_patch_apply_branch()
458 paravirt_patch_reloc_br(tag, entries[i].entry); __paravirt_patch_apply_branch()
476 (*pv_init_ops.patch_branch)(p->tag, p->type); paravirt_patch_apply_branch()
450 __paravirt_patch_apply_branch( unsigned long tag, unsigned long type, const struct paravirt_patch_branch_target *entries, unsigned int nr_entries) __paravirt_patch_apply_branch() argument
/linux-4.1.27/arch/avr32/include/asm/
H A Dsetup.h17 /* Magic number indicating that a tag table is present */
41 u32 tag; member in struct:tag_header
103 struct tag { struct
116 u32 tag; member in struct:tagtable
117 int (*parse)(struct tag *);
121 #define __tagtable(tag, fn) \
122 static struct tagtable __tagtable_##fn __tag = { tag, fn }
124 #define tag_member_present(tag,member) \
125 ((unsigned long)(&((struct tag *)0L)->member + 1) \
126 <= (tag)->hdr.size * 4)
128 #define tag_next(t) ((struct tag *)((u32 *)(t) + (t)->hdr.size))
134 extern struct tag *bootloader_tags;
/linux-4.1.27/arch/mips/include/asm/octeon/
H A Dcvmx-pow.h38 * - Requesting a POW operation with an active tag switch in
40 * - Waiting for a tag switch to complete for an excessively
43 * - Illegal tag switches from NULL_NULL.
44 * - Illegal tag switches from NULL.
67 /* Tag ordering is maintained, and at most one PP has the tag */
70 * The work queue entry from the order - NEVER tag switch from
74 /* A tag switch to NULL, and there is no space reserved in POW
75 * - NEVER tag switch to NULL_NULL
76 * - NEVER tag switch from NULL_NULL
93 * POW tag operations. These are used in the data stored to the POW.
97 * switch the tag (only) for this PP
98 * - the previous tag should be non-NULL in this case
99 * - tag switch response required
100 * - fields used: op, type, tag
104 * switch the tag for this PP, with full information
105 * - this should be used when the previous tag is NULL
106 * - tag switch response required
107 * - fields used: address, op, grp, type, tag
111 * switch the tag (and/or group) for this PP and de-schedule
112 * - OK to keep the tag the same and only change the group
113 * - fields used: op, no_sched, grp, type, tag
123 * - fields used: address, op, qos, grp, type, tag
208 * The type of the tag. type is used for everything
215 * The actual tag. tag is used for everything except
220 uint64_t tag:32; member in struct:__anon2001::__anon2002
222 uint64_t tag:32;
292 * If set and get_cur is set, return reverse tag-list
293 * pointer rather than forward tag-list pointer.
303 * tag/type.
348 * tag/type (no effect when get_des set).
505 * for the original tag. */
544 * This is the tag type when pend_switch or
549 * - this is the tag when pend_switch or (pend_desched
583 * for the original tag.
653 * Points to the next POW entry in the tag list when
661 * tag list entered on SWTAG_FULL).
665 * Set when this POW entry is at the head of its tag
671 * Set when this POW entry is at the tail of its tag
677 * The tag type attached to the core (updated when new
678 * tag list entered on SWTAG, SWTAG_FULL, or
683 * The tag attached to the core (updated when new tag
687 uint64_t tag:32; member in struct:__anon2009::__anon2013
689 uint64_t tag:32;
707 * Points to the prior POW entry in the tag list when
717 * tag list entered on SWTAG_FULL).
720 /* Set when this POW entry is at the head of its tag
726 * Set when this POW entry is at the tail of its tag
732 * The tag type attached to the core (updated when new
733 * tag list entered on SWTAG, SWTAG_FULL, or
738 * The tag attached to the core (updated when new tag
742 uint64_t tag:32; member in struct:__anon2009::__anon2014
744 uint64_t tag:32;
763 * Points to the next POW entry in the tag list when
771 * tag list entered on SWTAG_FULL).
775 * The wqp attached to the core (updated when new tag
796 * Points to the prior POW entry in the tag list when
806 * tag list entered on SWTAG_FULL).
810 * The wqp attached to the core (updated when new tag
839 * Set when this POW entry is at the tail of its tag
844 /* The tag type of the POW entry. */
846 /* The tag of the POW entry. */
847 uint64_t tag:32; member in struct:__anon2009::__anon2017
849 uint64_t tag:32;
890 * The next entry in the tag list connected to the
898 /* There is a pending tag switch */
901 * The next tag type for the new tag list when
906 * The next tag for the new tag list when pend_switch
1251 * Get the POW tag for this core. This returns the current
1252 * tag type, tag, group, and POW entry index associated with
1253 * this core. Index is only valid if the tag type isn't NULL_NULL.
1254 * If a tag switch is pending this routine returns the tag before
1255 * the tag switch, not after.
1257 * Returns Current tag
1276 result.s.tag = load_resp.s_sstatus2.tag; cvmx_pow_get_current_tag()
1307 * Print a warning if a tag switch is pending for this core
1309 * @function: Function name checking for a pending tag switch
1316 pr_warn("%s called with tag switch in progress\n", function); __cvmx_pow_warn_if_pending_switch()
1320 * Waits for a tag switch to complete by polling the completion bit.
1342 * This function does NOT wait for previous tag switches to complete,
1343 * so the caller must ensure that there is not a pending tag switch.
1376 * This function waits for any previous tag switch to complete before
1398 * This function waits for any previous tag switch to complete before
1428 * previous tag switches to complete, so the caller must ensure that
1429 * there is not a pending tag switch.
1458 * tag switch to complete before requesting the new work.
1517 * Starts a tag switch to the provided tag value and tag type.
1518 * Completion for the tag switch must be checked for separately. This
1519 * function does NOT update the work queue entry in dram to match tag
1521 * are important to the application. This tag switch command must not
1522 * be used for switches to NULL, as the tag switch pending bit will be
1525 * NOTE: This should not be used when switching from a NULL tag. Use
1529 * previous tag switch has completed.
1531 * @tag: new tag value
1532 * @tag_type: new tag type (ordered or atomic)
1534 static inline void cvmx_pow_tag_sw_nocheck(uint32_t tag, cvmx_pow_tag_sw_nocheck() argument
1545 pr_warn("%s called with NULL_NULL tag\n", __func__); cvmx_pow_tag_sw_nocheck()
1547 pr_warn("%s called with NULL tag\n", __func__); cvmx_pow_tag_sw_nocheck()
1549 && (current_tag.s.tag == tag)) cvmx_pow_tag_sw_nocheck()
1550 pr_warn("%s called to perform a tag switch to the same tag\n", cvmx_pow_tag_sw_nocheck()
1553 pr_warn("%s called to perform a tag switch to NULL. Use cvmx_pow_tag_sw_null() instead\n", cvmx_pow_tag_sw_nocheck()
1561 * responsibility to keep track of the current tag value if cvmx_pow_tag_sw_nocheck()
1567 tag_req.s.tag = tag; cvmx_pow_tag_sw_nocheck()
1581 * Starts a tag switch to the provided tag value and tag type.
1582 * Completion for the tag switch must be checked for separately. This
1583 * function does NOT update the work queue entry in dram to match tag
1585 * are important to the application. This tag switch command must not
1586 * be used for switches to NULL, as the tag switch pending bit will be
1589 * NOTE: This should not be used when switching from a NULL tag. Use
1592 * This function waits for any previous tag switch to complete, and also
1593 * displays an error on tag switches to NULL.
1595 * @tag: new tag value
1596 * @tag_type: new tag type (ordered or atomic)
1598 static inline void cvmx_pow_tag_sw(uint32_t tag, cvmx_pow_tag_sw() argument
1608 * responsibility to keep track of the current tag value if cvmx_pow_tag_sw()
1613 * Ensure that there is not a pending tag switch, as a tag cvmx_pow_tag_sw()
1618 cvmx_pow_tag_sw_nocheck(tag, tag_type); cvmx_pow_tag_sw()
1622 * Starts a tag switch to the provided tag value and tag type.
1623 * Completion for the tag switch must be checked for separately. This
1624 * function does NOT update the work queue entry in dram to match tag
1626 * are important to the application. This tag switch command must not
1627 * be used for switches to NULL, as the tag switch pending bit will be
1630 * This function must be used for tag switches from NULL.
1633 * previous tag switch has completed.
1637 * @tag: tag value to be assigned to work queue entry
1638 * @tag_type: type of tag
1641 static inline void cvmx_pow_tag_sw_full_nocheck(cvmx_wqe_t *wqp, uint32_t tag, cvmx_pow_tag_sw_full_nocheck() argument
1653 pr_warn("%s called with NULL_NULL tag\n", __func__); cvmx_pow_tag_sw_full_nocheck()
1655 && (current_tag.s.tag == tag)) cvmx_pow_tag_sw_full_nocheck()
1656 pr_warn("%s called to perform a tag switch to the same tag\n", cvmx_pow_tag_sw_full_nocheck()
1659 pr_warn("%s called to perform a tag switch to NULL. Use cvmx_pow_tag_sw_null() instead\n", cvmx_pow_tag_sw_full_nocheck()
1672 * responsibility to keep track of the current tag value if cvmx_pow_tag_sw_full_nocheck()
1678 tag_req.s.tag = tag; cvmx_pow_tag_sw_full_nocheck()
1696 * Starts a tag switch to the provided tag value and tag type.
1697 * Completion for the tag switch must be checked for separately. This
1698 * function does NOT update the work queue entry in dram to match tag
1700 * are important to the application. This tag switch command must not
1701 * be used for switches to NULL, as the tag switch pending bit will be
1704 * This function must be used for tag switches from NULL.
1706 * This function waits for any pending tag switches to complete
1707 * before requesting the tag switch.
1711 * @tag: tag value to be assigned to work queue entry
1712 * @tag_type: type of tag
1715 static inline void cvmx_pow_tag_sw_full(cvmx_wqe_t *wqp, uint32_t tag, cvmx_pow_tag_sw_full() argument
1723 * Ensure that there is not a pending tag switch, as a tag cvmx_pow_tag_sw_full()
1728 cvmx_pow_tag_sw_full_nocheck(wqp, tag, tag_type, group); cvmx_pow_tag_sw_full()
1732 * Switch to a NULL tag, which ends any ordering or
1736 * This function does NOT wait for previous tag switches to complete,
1737 * so the caller must ensure that any previous tag switches have completed.
1749 pr_warn("%s called with NULL_NULL tag\n", __func__); cvmx_pow_tag_sw_null_nocheck()
1751 pr_warn("%s called when we already have a NULL tag\n", cvmx_pow_tag_sw_null_nocheck()
1770 * Switch to a NULL tag, which ends any ordering or
1774 * This function waits for any pending tag switches to complete
1783 * Ensure that there is not a pending tag switch, as a tag cvmx_pow_tag_sw_null()
1796 * tag provided is for the work queue entry submitted, and is
1797 * unrelated to the tag that the core currently holds.
1801 * @tag: tag value to be assigned to work queue entry
1802 * @tag_type: type of tag
1806 static inline void cvmx_pow_work_submit(cvmx_wqe_t *wqp, uint32_t tag, cvmx_pow_work_submit() argument
1814 wqp->tag = tag; cvmx_pow_work_submit()
1821 tag_req.s.tag = tag; cvmx_pow_work_submit()
1911 * Performs a tag switch and then an immediate deschedule. This completes
1915 * This function does NOT wait for any prior tag switches to complete, so the
1923 * the head of the FIFO associated with the given tag. This
1925 * tag as an ATOMIC tag. Note that in the SWTAG_DESCH
1926 * case (to an ORDERED tag), the HW will do the switch
1934 * same tag.
1937 * DE-SCHEDULE. If an ORDERED tag is what was really desired,
1938 * SW can choose to immediately switch to an ORDERED tag
1939 * after the work (that has an ATOMIC tag) is re-scheduled.
1940 * Note that since there are never any tag switches pending
1944 * @tag: New tag value
1945 * @tag_type: New tag type
1952 uint32_t tag, cvmx_pow_tag_sw_desched_nocheck()
1965 pr_warn("%s called with NULL_NULL tag\n", __func__); cvmx_pow_tag_sw_desched_nocheck()
1967 pr_warn("%s called with NULL tag. Deschedule not allowed from NULL state\n", cvmx_pow_tag_sw_desched_nocheck()
1971 pr_warn("%s called where neither the before or after tag is ATOMIC\n", cvmx_pow_tag_sw_desched_nocheck()
1977 tag_req.s.tag = tag; cvmx_pow_tag_sw_desched_nocheck()
1994 * Performs a tag switch and then an immediate deschedule. This completes
1998 * This function waits for any prior tag switches to complete, so the
1999 * calling code may call this function with a pending tag switch.
2006 * the head of the FIFO associated with the given tag. This
2008 * tag as an ATOMIC tag. Note that in the SWTAG_DESCH
2009 * case (to an ORDERED tag), the HW will do the switch
2017 * same tag.
2020 * DE-SCHEDULE. If an ORDERED tag is what was really desired,
2021 * SW can choose to immediately switch to an ORDERED tag
2022 * after the work (that has an ATOMIC tag) is re-scheduled.
2023 * Note that since there are never any tag switches pending
2027 * @tag: New tag value
2028 * @tag_type: New tag type
2034 static inline void cvmx_pow_tag_sw_desched(uint32_t tag, cvmx_pow_tag_sw_desched() argument
2044 * Ensure that there is not a pending tag switch, as a tag cvmx_pow_tag_sw_desched()
2049 cvmx_pow_tag_sw_desched_nocheck(tag, tag_type, group, no_sched); cvmx_pow_tag_sw_desched()
2069 pr_warn("%s called with NULL_NULL tag\n", __func__); cvmx_pow_desched()
2071 pr_warn("%s called with NULL tag. Deschedule not expected from NULL state\n", cvmx_pow_desched()
2094 * Define usage of bits within the 32 bit tag values.
2098 * Number of bits of the tag used by software. The SW bits are always
2101 * tag are reserved for software, and the low 24 are set by the IPD
2107 /* Below is the list of values for the top 8 bits of the tag. */
2114 * - the upper 8 bits (bits 23 - 16 of the tag) define a subgroup
2116 * - the lower 16 bits (bits 15 - 0 of the tag) define are the value
2124 /* Mask for the value portion of the tag */
2129 /* End of executive tag subgroup definitions */
2137 * This function creates a 32 bit tag value from the two values provided.
2157 * Extracts the bits allocated for software use from the tag
2159 * @tag: 32 bit tag value
2161 * Returns N bit software tag value, where N is configurable with the
2164 static inline uint32_t cvmx_pow_tag_get_sw_bits(uint64_t tag) cvmx_pow_tag_get_sw_bits() argument
2166 return (tag >> (32 - CVMX_TAG_SW_BITS)) & cvmx_pow_tag_get_sw_bits()
2172 * Extracts the bits allocated for hardware use from the tag
2174 * @tag: 32 bit tag value
2176 * Returns (32 - N) bit software tag value, where N is configurable
2179 static inline uint32_t cvmx_pow_tag_get_hw_bits(uint64_t tag) cvmx_pow_tag_get_hw_bits() argument
2181 return tag & cvmx_build_mask(32 - CVMX_TAG_SW_BITS); cvmx_pow_tag_get_hw_bits()
1951 cvmx_pow_tag_sw_desched_nocheck( uint32_t tag, enum cvmx_pow_tag_type tag_type, uint64_t group, uint64_t no_sched) cvmx_pow_tag_sw_desched_nocheck() argument
H A Dcvmx-pip.h275 /* POW input tag type */
277 /* POW input tag */
278 uint64_t tag:32; member in struct:__anon1989::__anon1990
479 * Clear all bits in a tag mask. This should be called on
482 * tag generation.
484 * @mask_index: Which tag mask to clear (0..3)
497 * Sets a range of bits in the tag mask. The tag mask is used
501 * @mask_index: Which tag mask to modify (0..3)
506 * bytes to include the the tag, with bit offset X selecting
/linux-4.1.27/drivers/s390/scsi/
H A Dzfcp_dbf.c65 * @tag: tag indicating which kind of unsolicited status has been received
68 void zfcp_dbf_hba_fsf_res(char *tag, struct zfcp_fsf_req *req) zfcp_dbf_hba_fsf_res() argument
79 memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); zfcp_dbf_hba_fsf_res()
106 * @tag: tag indicating which kind of unsolicited status has been received
109 void zfcp_dbf_hba_fsf_uss(char *tag, struct zfcp_fsf_req *req) zfcp_dbf_hba_fsf_uss() argument
119 memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); zfcp_dbf_hba_fsf_uss()
149 * @tag: tag indicating which kind of unsolicited status has been received
152 void zfcp_dbf_hba_bit_err(char *tag, struct zfcp_fsf_req *req) zfcp_dbf_hba_bit_err() argument
162 memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); zfcp_dbf_hba_bit_err()
214 void zfcp_dbf_hba_basic(char *tag, struct zfcp_adapter *adapter) zfcp_dbf_hba_basic() argument
223 memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); zfcp_dbf_hba_basic()
249 * @tag: identifier for event
258 void zfcp_dbf_rec_trig(char *tag, struct zfcp_adapter *adapter, zfcp_dbf_rec_trig() argument
271 memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); zfcp_dbf_rec_trig()
290 * @tag: identifier for event
293 void zfcp_dbf_rec_run(char *tag, struct zfcp_erp_action *erp) zfcp_dbf_rec_run() argument
303 memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); zfcp_dbf_rec_run()
324 void zfcp_dbf_san(char *tag, struct zfcp_dbf *dbf, void *data, u8 id, u16 len, zfcp_dbf_san() argument
339 memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); zfcp_dbf_san()
347 * @tag: identifier for event
351 void zfcp_dbf_san_req(char *tag, struct zfcp_fsf_req *fsf, u32 d_id) zfcp_dbf_san_req() argument
358 zfcp_dbf_san(tag, dbf, sg_virt(ct_els->req), ZFCP_DBF_SAN_REQ, length, zfcp_dbf_san_req()
364 * @tag: identifier for event
367 void zfcp_dbf_san_res(char *tag, struct zfcp_fsf_req *fsf) zfcp_dbf_san_res() argument
374 zfcp_dbf_san(tag, dbf, sg_virt(ct_els->resp), ZFCP_DBF_SAN_RES, length, zfcp_dbf_san_res()
380 * @tag: identifier for event
383 void zfcp_dbf_san_in_els(char *tag, struct zfcp_fsf_req *fsf) zfcp_dbf_san_in_els() argument
392 zfcp_dbf_san(tag, dbf, srb->payload.data, ZFCP_DBF_SAN_ELS, length, zfcp_dbf_san_in_els()
398 * @tag: identifier for event
402 void zfcp_dbf_scsi(char *tag, struct scsi_cmnd *sc, struct zfcp_fsf_req *fsf) zfcp_dbf_scsi() argument
415 memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); zfcp_dbf_scsi()
H A Dzfcp_dbf.h62 * @tag: identifier string specifying the location of initiation
74 char tag[ZFCP_DBF_TAG_LEN]; member in struct:zfcp_dbf_rec
101 * @tag: identifier string specifying the location of initiation
108 char tag[ZFCP_DBF_TAG_LEN]; member in struct:zfcp_dbf_san
163 * @tag: identifier string specifying the location of initiation
173 char tag[ZFCP_DBF_TAG_LEN]; member in struct:zfcp_dbf_hba
197 * @tag: identifier string specifying the location of initiation
212 char tag[ZFCP_DBF_TAG_LEN]; member in struct:zfcp_dbf_scsi
279 void zfcp_dbf_hba_fsf_resp(char *tag, int level, struct zfcp_fsf_req *req) zfcp_dbf_hba_fsf_resp() argument
282 zfcp_dbf_hba_fsf_res(tag, req); zfcp_dbf_hba_fsf_resp()
314 void _zfcp_dbf_scsi(char *tag, int level, struct scsi_cmnd *scmd, _zfcp_dbf_scsi() argument
321 zfcp_dbf_scsi(tag, scmd, req); _zfcp_dbf_scsi()
352 * @tag: tag indicating success or failure of abort operation
357 void zfcp_dbf_scsi_abort(char *tag, struct scsi_cmnd *scmd, zfcp_dbf_scsi_abort() argument
360 _zfcp_dbf_scsi(tag, 1, scmd, fsf_req); zfcp_dbf_scsi_abort()
365 * @tag: tag indicating success or failure of reset operation
370 void zfcp_dbf_scsi_devreset(char *tag, struct scsi_cmnd *scmnd, u8 flag) zfcp_dbf_scsi_devreset() argument
379 memcpy(&tmp_tag[3], tag, 4); zfcp_dbf_scsi_devreset()
H A Dzfcp_ccw.c46 * @tag: s390dbf trace record tag
48 static int zfcp_ccw_activate(struct ccw_device *cdev, int clear, char *tag) zfcp_ccw_activate() argument
58 tag); zfcp_ccw_activate()
200 * @tag: s390dbf trace record tag
205 static int zfcp_ccw_offline_sync(struct ccw_device *cdev, int set, char *tag) zfcp_ccw_offline_sync() argument
213 zfcp_erp_adapter_shutdown(adapter, 0, tag); zfcp_ccw_offline_sync()
/linux-4.1.27/arch/sparc/include/asm/
H A Dspitfire.h79 static inline void spitfire_put_dcache_tag(unsigned long addr, unsigned long tag) spitfire_put_dcache_tag() argument
84 : "r" (tag), "r" (addr), "i" (ASI_DCACHE_TAG)); spitfire_put_dcache_tag()
93 static inline void spitfire_put_icache_tag(unsigned long addr, unsigned long tag) spitfire_put_icache_tag() argument
98 : "r" (tag), "r" (addr), "i" (ASI_IC_TAG)); spitfire_put_icache_tag()
117 unsigned long tag; spitfire_get_dtlb_tag() local
120 : "=r" (tag) spitfire_get_dtlb_tag()
122 return tag; spitfire_get_dtlb_tag()
150 unsigned long tag; spitfire_get_itlb_tag() local
153 : "=r" (tag) spitfire_get_itlb_tag()
155 return tag; spitfire_get_itlb_tag()
242 unsigned long tag; cheetah_get_ldtlb_tag() local
245 : "=r" (tag) cheetah_get_ldtlb_tag()
249 return tag; cheetah_get_ldtlb_tag()
254 unsigned long tag; cheetah_get_litlb_tag() local
257 : "=r" (tag) cheetah_get_litlb_tag()
261 return tag; cheetah_get_litlb_tag()
298 unsigned long tag; cheetah_get_dtlb_tag() local
301 : "=r" (tag) cheetah_get_dtlb_tag()
303 return tag; cheetah_get_dtlb_tag()
331 unsigned long tag; cheetah_get_itlb_tag() local
334 : "=r" (tag) cheetah_get_itlb_tag()
336 return tag; cheetah_get_itlb_tag()
H A Dcache.h2 * and direct tag/data line access.
H A Dmmu_64.h66 unsigned long tag; member in struct:tsb
70 void __tsb_insert(unsigned long ent, unsigned long tag, unsigned long pte);
71 void tsb_flush(unsigned long ent, unsigned long tag);
H A Dvio.h42 struct vio_msg_tag tag; member in struct:vio_rdx
47 struct vio_msg_tag tag; member in struct:vio_ver_info
61 struct vio_msg_tag tag; member in struct:vio_dring_register
75 struct vio_msg_tag tag; member in struct:vio_dring_unregister
88 struct vio_msg_tag tag; member in struct:vio_dring_data
119 struct vio_msg_tag tag; member in struct:vio_disk_attr_info
212 struct vio_msg_tag tag; member in struct:vio_net_attr_info
236 struct vio_msg_tag tag; member in struct:vio_net_mcast_info
/linux-4.1.27/arch/arm/mach-clps711x/
H A Dboard-p720t.c298 fixup_p720t(struct tag *tag, char **cmdline) fixup_p720t() argument
303 if (tag->hdr.tag != ATAG_CORE) { fixup_p720t()
304 tag->hdr.tag = ATAG_CORE; fixup_p720t()
305 tag->hdr.size = tag_size(tag_core); fixup_p720t()
306 tag->u.core.flags = 0; fixup_p720t()
307 tag->u.core.pagesize = PAGE_SIZE; fixup_p720t()
308 tag->u.core.rootdev = 0x0100; fixup_p720t()
310 tag = tag_next(tag); fixup_p720t()
311 tag->hdr.tag = ATAG_MEM; fixup_p720t()
312 tag->hdr.size = tag_size(tag_mem32); fixup_p720t()
313 tag->u.mem.size = 4096; fixup_p720t()
314 tag->u.mem.start = PHYS_OFFSET; fixup_p720t()
316 tag = tag_next(tag); fixup_p720t()
317 tag->hdr.tag = ATAG_NONE; fixup_p720t()
318 tag->hdr.size = 0; fixup_p720t()
/linux-4.1.27/arch/avr32/kernel/
H A Dsetup.c305 static int __init parse_tag_core(struct tag *tag) parse_tag_core() argument
307 if (tag->hdr.size > 2) { parse_tag_core()
308 if ((tag->u.core.flags & 1) == 0) parse_tag_core()
310 ROOT_DEV = new_decode_dev(tag->u.core.rootdev); parse_tag_core()
316 static int __init parse_tag_mem(struct tag *tag) parse_tag_mem() argument
325 if (tag->u.mem_range.size == 0) parse_tag_mem()
328 start = tag->u.mem_range.addr; parse_tag_mem()
329 end = tag->u.mem_range.addr + tag->u.mem_range.size - 1; parse_tag_mem()
336 static int __init parse_tag_rdimg(struct tag *tag) parse_tag_rdimg() argument
339 struct tag_mem_range *mem = &tag->u.mem_range; parse_tag_rdimg()
367 static int __init parse_tag_rsvd_mem(struct tag *tag) parse_tag_rsvd_mem() argument
369 struct tag_mem_range *mem = &tag->u.mem_range; parse_tag_rsvd_mem()
376 static int __init parse_tag_cmdline(struct tag *tag) parse_tag_cmdline() argument
378 strlcpy(boot_command_line, tag->u.cmdline.cmdline, COMMAND_LINE_SIZE); parse_tag_cmdline()
383 static int __init parse_tag_clock(struct tag *tag) parse_tag_clock() argument
400 static int __init parse_tag_boardinfo(struct tag *tag) parse_tag_boardinfo() argument
402 board_number = tag->u.boardinfo.board_number; parse_tag_boardinfo()
409 * Scan the tag table for this tag, and call its parse function. The
410 * tag table is built by the linker from all the __tagtable
413 static int __init parse_tag(struct tag *tag) parse_tag() argument
419 if (tag->hdr.tag == t->tag) { parse_tag()
420 t->parse(tag); parse_tag()
430 static void __init parse_tags(struct tag *t) parse_tags()
432 for (; t->hdr.tag != ATAG_NONE; t = tag_next(t)) parse_tags()
435 "Ignoring unrecognised tag 0x%08x\n", parse_tags()
436 t->hdr.tag); parse_tags()
/linux-4.1.27/arch/powerpc/xmon/
H A Dspu-dis.c99 enum spu_insns tag; print_insn_spu() local
111 tag = (enum spu_insns)(index - spu_opcodes); print_insn_spu()
113 if (tag == M_BI || tag == M_BISL || tag == M_IRET || tag == M_BISLED print_insn_spu()
114 || tag == M_BIHNZ || tag == M_BIHZ || tag == M_BINZ || tag == M_BIZ print_insn_spu()
115 || tag == M_SYNC || tag == M_HBR) print_insn_spu()
119 printf(tag == M_SYNC ? "c" : "p"); print_insn_spu()
/linux-4.1.27/arch/arm/boot/bootp/
H A Dinit.S40 ldr r10, [r9, #4] @ get first tag
43 * If we didn't find a valid tag list, create a dummy ATAG_CORE entry.
50 * find the end of the tag list, and then add an INITRD tag on the end.
51 * If there is already an INITRD tag, then we ignore it; the last INITRD
52 * tag takes precedence.
54 taglist: ldr r10, [r9, #0] @ tag length
55 teq r10, #0 @ last tag (zero length)?
59 mov r5, #4 @ Size of initrd tag (4 words)
/linux-4.1.27/include/linux/usb/
H A Duas.h11 __be16 tag; member in struct:iu
48 __be16 tag; member in struct:command_iu
60 __be16 tag; member in struct:task_mgmt_iu
74 __be16 tag; member in struct:sense_iu
85 __be16 tag; member in struct:response_iu
/linux-4.1.27/fs/cifs/
H A Dasn1.c151 asn1_tag_decode(struct asn1_ctx *ctx, unsigned int *tag) asn1_tag_decode() argument
155 *tag = 0; asn1_tag_decode()
160 *tag <<= 7; asn1_tag_decode()
161 *tag |= ch & 0x7F; asn1_tag_decode()
168 unsigned int *cls, unsigned int *con, unsigned int *tag) asn1_id_decode()
177 *tag = (ch & 0x1F); asn1_id_decode()
179 if (*tag == 0x1F) { asn1_id_decode()
180 if (!asn1_tag_decode(ctx, tag)) asn1_id_decode()
225 unsigned int *cls, unsigned int *con, unsigned int *tag) asn1_header_decode()
230 if (!asn1_id_decode(ctx, cls, con, tag)) asn1_header_decode()
501 unsigned int cls, con, tag, oidlen, rc; decode_negTokenInit() local
508 if (asn1_header_decode(&ctx, &end, &cls, &con, &tag) == 0) { decode_negTokenInit()
512 || (tag != ASN1_EOC)) { decode_negTokenInit()
513 cifs_dbg(FYI, "cls = %d con = %d tag = %d\n", cls, con, tag); decode_negTokenInit()
518 rc = asn1_header_decode(&ctx, &end, &cls, &con, &tag); decode_negTokenInit()
520 if ((tag == ASN1_OJI) && (con == ASN1_PRI) && decode_negTokenInit()
539 if (asn1_header_decode(&ctx, &end, &cls, &con, &tag) == 0) { decode_negTokenInit()
543 || (tag != ASN1_EOC)) { decode_negTokenInit()
544 cifs_dbg(FYI, "cls = %d con = %d tag = %d end = %p (%d) exit 0\n", decode_negTokenInit()
545 cls, con, tag, end, *end); decode_negTokenInit()
550 if (asn1_header_decode(&ctx, &end, &cls, &con, &tag) == 0) { decode_negTokenInit()
554 || (tag != ASN1_SEQ)) { decode_negTokenInit()
555 cifs_dbg(FYI, "cls = %d con = %d tag = %d end = %p (%d) exit 1\n", decode_negTokenInit()
556 cls, con, tag, end, *end); decode_negTokenInit()
561 if (asn1_header_decode(&ctx, &end, &cls, &con, &tag) == 0) { decode_negTokenInit()
565 || (tag != ASN1_EOC)) { decode_negTokenInit()
566 cifs_dbg(FYI, "cls = %d con = %d tag = %d end = %p (%d) exit 0\n", decode_negTokenInit()
567 cls, con, tag, end, *end); decode_negTokenInit()
573 (&ctx, &sequence_end, &cls, &con, &tag) == 0) { decode_negTokenInit()
577 || (tag != ASN1_SEQ)) { decode_negTokenInit()
578 cifs_dbg(FYI, "cls = %d con = %d tag = %d end = %p (%d) exit 1\n", decode_negTokenInit()
579 cls, con, tag, end, *end); decode_negTokenInit()
585 rc = asn1_header_decode(&ctx, &end, &cls, &con, &tag); decode_negTokenInit()
590 if ((tag == ASN1_OJI) && (con == ASN1_PRI)) { decode_negTokenInit()
167 asn1_id_decode(struct asn1_ctx *ctx, unsigned int *cls, unsigned int *con, unsigned int *tag) asn1_id_decode() argument
223 asn1_header_decode(struct asn1_ctx *ctx, unsigned char **eoc, unsigned int *cls, unsigned int *con, unsigned int *tag) asn1_header_decode() argument
/linux-4.1.27/lib/
H A Dradix-tree.c87 static inline void tag_set(struct radix_tree_node *node, unsigned int tag, tag_set() argument
90 __set_bit(offset, node->tags[tag]); tag_set()
93 static inline void tag_clear(struct radix_tree_node *node, unsigned int tag, tag_clear() argument
96 __clear_bit(offset, node->tags[tag]); tag_clear()
99 static inline int tag_get(struct radix_tree_node *node, unsigned int tag, tag_get() argument
102 return test_bit(offset, node->tags[tag]); tag_get()
105 static inline void root_tag_set(struct radix_tree_root *root, unsigned int tag) root_tag_set() argument
107 root->gfp_mask |= (__force gfp_t)(1 << (tag + __GFP_BITS_SHIFT)); root_tag_set()
110 static inline void root_tag_clear(struct radix_tree_root *root, unsigned int tag) root_tag_clear() argument
112 root->gfp_mask &= (__force gfp_t)~(1 << (tag + __GFP_BITS_SHIFT)); root_tag_clear()
120 static inline int root_tag_get(struct radix_tree_root *root, unsigned int tag) root_tag_get() argument
122 return (__force unsigned)root->gfp_mask & (1 << (tag + __GFP_BITS_SHIFT)); root_tag_get()
126 * Returns 1 if any slot in the node has this tag set.
129 static inline int any_tag_set(struct radix_tree_node *node, unsigned int tag) any_tag_set() argument
133 if (node->tags[tag][idx]) any_tag_set()
326 int tag; radix_tree_extend() local
343 /* Propagate the aggregated tag info into the new root */ radix_tree_extend()
344 for (tag = 0; tag < RADIX_TREE_MAX_TAGS; tag++) { radix_tree_extend()
345 if (root_tag_get(root, tag)) radix_tree_extend()
346 tag_set(node, tag, 0); radix_tree_extend()
575 * radix_tree_tag_set - set a tag on a radix tree node
578 * @tag: tag index
580 * Set the search tag (which must be < RADIX_TREE_MAX_TAGS)
584 * Returns the address of the tagged item. Setting a tag on a not-present
588 unsigned long index, unsigned int tag) radix_tree_tag_set()
603 if (!tag_get(slot, tag, offset)) radix_tree_tag_set()
604 tag_set(slot, tag, offset); radix_tree_tag_set()
611 /* set the root's tag bit */ radix_tree_tag_set()
612 if (slot && !root_tag_get(root, tag)) radix_tree_tag_set()
613 root_tag_set(root, tag); radix_tree_tag_set()
620 * radix_tree_tag_clear - clear a tag on a radix tree node
623 * @tag: tag index
625 * Clear the search tag (which must be < RADIX_TREE_MAX_TAGS)
627 * this causes the leaf node to have no tags set then clear the tag in the
634 unsigned long index, unsigned int tag) radix_tree_tag_clear()
662 if (!tag_get(node, tag, offset)) radix_tree_tag_clear()
664 tag_clear(node, tag, offset); radix_tree_tag_clear()
665 if (any_tag_set(node, tag)) radix_tree_tag_clear()
673 /* clear the root's tag bit */ radix_tree_tag_clear()
674 if (root_tag_get(root, tag)) radix_tree_tag_clear()
675 root_tag_clear(root, tag); radix_tree_tag_clear()
683 * radix_tree_tag_get - get a tag on a radix tree node
686 * @tag: tag index (< RADIX_TREE_MAX_TAGS)
690 * 0: tag not present or not set
691 * 1: tag set
694 * the RCU lock is held, unless tag modification and node deletion are excluded
698 unsigned long index, unsigned int tag) radix_tree_tag_get()
703 /* check the root's tag bit */ radix_tree_tag_get()
704 if (!root_tag_get(root, tag)) radix_tree_tag_get()
728 if (!tag_get(node, tag, offset)) radix_tree_tag_get()
744 * @flags: RADIX_TREE_ITER_* flags and tag index
750 unsigned shift, tag = flags & RADIX_TREE_ITER_TAG_MASK; radix_tree_next_chunk() local
754 if ((flags & RADIX_TREE_ITER_TAGGED) && !root_tag_get(root, tag)) radix_tree_next_chunk()
794 !test_bit(offset, node->tags[tag]) : radix_tree_next_chunk()
802 node->tags[tag], radix_tree_next_chunk()
834 /* Construct iter->tags bit-mask from node->tags[tag] array */ radix_tree_next_chunk()
840 iter->tags = node->tags[tag][tag_long] >> tag_bit; radix_tree_next_chunk()
845 iter->tags |= node->tags[tag][tag_long + 1] << radix_tree_next_chunk()
858 * tag if item has another tag set
862 * @nr_to_tag: maximum number items to tag
863 * @iftag: tag index to test
864 * @settag: tag index to set if tested tag is set
876 * can lead to problems with later tag operations (e.g. livelocks on lookups).
878 * The function returns number of leaves where the tag was set and sets
930 /* tag the leaf */ radix_tree_range_tag_if_tagged()
940 /* stop if we find a node with the tag already set */ radix_tree_range_tag_if_tagged()
949 * Since all of this slot's ancestors now have the tag set radix_tree_range_tag_if_tagged()
975 * We need not to tag the root tag if there is no tag which is set with radix_tree_range_tag_if_tagged()
1076 * based on a tag
1081 * @tag: the tag index (< RADIX_TREE_MAX_TAGS)
1084 * have the tag indexed by @tag set. Places the items at *@results and
1090 unsigned int tag) radix_tree_gang_lookup_tag()
1099 radix_tree_for_each_tagged(slot, root, &iter, first_index, tag) { radix_tree_gang_lookup_tag()
1117 * radix tree based on a tag
1122 * @tag: the tag index (< RADIX_TREE_MAX_TAGS)
1125 * have the tag indexed by @tag set. Places the slots at *@results and
1131 unsigned int tag) radix_tree_gang_lookup_tag_slot()
1140 radix_tree_for_each_tagged(slot, root, &iter, first_index, tag) { radix_tree_gang_lookup_tag_slot()
1299 * also results in a stale slot). So tag the slot as indirect radix_tree_shrink()
1378 int tag; radix_tree_delete_item() local
1399 for (tag = 0; tag < RADIX_TREE_MAX_TAGS; tag++) { radix_tree_delete_item()
1400 if (tag_get(node, tag, offset)) radix_tree_delete_item()
1401 radix_tree_tag_clear(root, index, tag); radix_tree_delete_item()
1431 * @tag: tag to test
1433 int radix_tree_tagged(struct radix_tree_root *root, unsigned int tag) radix_tree_tagged() argument
1435 return root_tag_get(root, tag); radix_tree_tagged()
587 radix_tree_tag_set(struct radix_tree_root *root, unsigned long index, unsigned int tag) radix_tree_tag_set() argument
633 radix_tree_tag_clear(struct radix_tree_root *root, unsigned long index, unsigned int tag) radix_tree_tag_clear() argument
697 radix_tree_tag_get(struct radix_tree_root *root, unsigned long index, unsigned int tag) radix_tree_tag_get() argument
1088 radix_tree_gang_lookup_tag(struct radix_tree_root *root, void **results, unsigned long first_index, unsigned int max_items, unsigned int tag) radix_tree_gang_lookup_tag() argument
1129 radix_tree_gang_lookup_tag_slot(struct radix_tree_root *root, void ***results, unsigned long first_index, unsigned int max_items, unsigned int tag) radix_tree_gang_lookup_tag_slot() argument
H A Dasn1_decoder.c59 unsigned char tag, tmp; asn1_find_indefinite_length() local
70 /* Extract a tag from the data */ asn1_find_indefinite_length()
71 tag = data[dp++]; asn1_find_indefinite_length()
72 if (tag == 0) { asn1_find_indefinite_length()
84 if (unlikely((tag & 0x1f) == ASN1_LONG_TAG)) { asn1_find_indefinite_length()
101 if (unlikely((tag & ASN1_CONS_BIT) == ASN1_PRIM << 5)) asn1_find_indefinite_length()
172 unsigned char tag = 0, csp = 0, jsp = 0, optag = 0, hdr = 0; asn1_ber_decoder() local
180 #define FLAG_CONS 0x20 /* Corresponds to CONS bit in the opcode tag asn1_ber_decoder()
204 /* If this command is meant to match a tag, then do that before asn1_ber_decoder()
221 /* Extract a tag from the data */ asn1_ber_decoder()
224 tag = data[dp++]; asn1_ber_decoder()
225 if (unlikely((tag & 0x1f) == ASN1_LONG_TAG)) asn1_ber_decoder()
229 pr_debug("- any %02x\n", tag); asn1_ber_decoder()
231 /* Extract the tag from the machine asn1_ber_decoder()
239 /* Determine whether the tag matched */ asn1_ber_decoder()
240 tmp = optag ^ tag; asn1_ber_decoder()
242 pr_debug("- match? %02x %02x %02x\n", tag, optag, tmp); asn1_ber_decoder()
259 if (unlikely(!(tag & ASN1_CONS_BIT))) asn1_ber_decoder()
298 tag, len, flags & FLAG_CONS ? " CONS" : ""); asn1_ber_decoder()
306 ret = actions[machine[pc + 1]](context, hdr, tag, data + dp, len); asn1_ber_decoder()
314 ret = actions[machine[pc + 2]](context, hdr, tag, data + dp, len); asn1_ber_decoder()
426 ret = actions[machine[pc + 1]](context, hdr, tag, data + tdp, len); asn1_ber_decoder()
478 errmsg = "Unexpected tag"; asn1_ber_decoder()
481 errmsg = "Long tag not supported"; asn1_ber_decoder()
484 errmsg, pc, dp, optag, tag, len); asn1_ber_decoder()
H A Dpercpu_ida.c32 * Even though this is percpu, we need a lock for tag stealing by remote
116 int tag = -ENOSPC; alloc_local_tag() local
120 tag = tags->freelist[--tags->nr_free]; alloc_local_tag()
123 return tag; alloc_local_tag()
127 * percpu_ida_alloc - allocate a tag
131 * Returns a tag - an integer in the range [0..nr_tags) (passed to
149 int tag; percpu_ida_alloc() local
155 tag = alloc_local_tag(tags); percpu_ida_alloc()
156 if (likely(tag >= 0)) { percpu_ida_alloc()
158 return tag; percpu_ida_alloc()
180 tag = tags->freelist[--tags->nr_free]; percpu_ida_alloc()
189 if (tag >= 0 || state == TASK_RUNNING) percpu_ida_alloc()
193 tag = -ERESTARTSYS; percpu_ida_alloc()
205 return tag; percpu_ida_alloc()
210 * percpu_ida_free - free a tag
211 * @pool: pool @tag was allocated from
212 * @tag: a tag previously allocated with percpu_ida_alloc()
216 void percpu_ida_free(struct percpu_ida *pool, unsigned tag) percpu_ida_free() argument
222 BUG_ON(tag >= pool->nr_tags); percpu_ida_free()
228 tags->freelist[tags->nr_free++] = tag; percpu_ida_free()
261 * percpu_ida_destroy - release a tag pool's resources
275 * percpu_ida_init - initialize a percpu tag pool
281 * preallocated array of tag structures.
/linux-4.1.27/drivers/staging/rtl8192e/
H A Drtl819x_BAProc.c83 u8 *tag = NULL; rtllib_ADDBA() local
112 tag = (u8 *)skb_put(skb, 9); rtllib_ADDBA()
113 *tag++ = ACT_CAT_BA; rtllib_ADDBA()
114 *tag++ = type; rtllib_ADDBA()
115 *tag++ = pBA->DialogToken; rtllib_ADDBA()
120 put_unaligned_le16(StatusCode, tag); rtllib_ADDBA()
121 tag += 2; rtllib_ADDBA()
124 put_unaligned_le16(pBA->BaParamSet.shortData, tag); rtllib_ADDBA()
125 tag += 2; rtllib_ADDBA()
127 put_unaligned_le16(pBA->BaTimeoutValue, tag); rtllib_ADDBA()
128 tag += 2; rtllib_ADDBA()
131 memcpy(tag, (u8 *)&(pBA->BaStartSeqCtrl), 2); rtllib_ADDBA()
132 tag += 2; rtllib_ADDBA()
146 u8 *tag = NULL; rtllib_DELBA() local
175 tag = (u8 *)skb_put(skb, 6); rtllib_DELBA()
177 *tag++ = ACT_CAT_BA; rtllib_DELBA()
178 *tag++ = ACT_DELBA; rtllib_DELBA()
181 put_unaligned_le16(DelbaParamSet.shortData, tag); rtllib_DELBA()
182 tag += 2; rtllib_DELBA()
184 put_unaligned_le16(ReasonCode, tag); rtllib_DELBA()
185 tag += 2; rtllib_DELBA()
241 u8 *dst = NULL, *pDialogToken = NULL, *tag = NULL; rtllib_rx_ADDBAReq() local
259 tag = (u8 *)req; rtllib_rx_ADDBAReq()
261 tag += sizeof(struct rtllib_hdr_3addr); rtllib_rx_ADDBAReq()
262 pDialogToken = tag + 2; rtllib_rx_ADDBAReq()
263 pBaParamSet = (union ba_param_set *)(tag + 3); rtllib_rx_ADDBAReq()
264 pBaTimeoutVal = (u16 *)(tag + 5); rtllib_rx_ADDBAReq()
330 u8 *dst = NULL, *pDialogToken = NULL, *tag = NULL; rtllib_rx_ADDBARsp() local
343 tag = (u8 *)rsp; rtllib_rx_ADDBARsp()
345 tag += sizeof(struct rtllib_hdr_3addr); rtllib_rx_ADDBARsp()
346 pDialogToken = tag + 2; rtllib_rx_ADDBARsp()
347 pStatusCode = (u16 *)(tag + 3); rtllib_rx_ADDBARsp()
348 pBaParamSet = (union ba_param_set *)(tag + 5); rtllib_rx_ADDBARsp()
349 pBaTimeoutVal = (u16 *)(tag + 7); rtllib_rx_ADDBARsp()
H A Drtllib_softmac.c36 * tag and the EXTENDED RATE MFIE tag if needed.
37 * It encludes two bytes per tag for the tag itself and its len
53 /* place the MFIE rate, tag to the memory (double) pointed.
55 * it points after the new MFIE tag added.
59 u8 *tag = *tag_p; rtllib_MFIE_Brate() local
62 *tag++ = MFIE_TYPE_RATES; rtllib_MFIE_Brate()
63 *tag++ = 4; rtllib_MFIE_Brate()
64 *tag++ = RTLLIB_BASIC_RATE_MASK | RTLLIB_CCK_RATE_1MB; rtllib_MFIE_Brate()
65 *tag++ = RTLLIB_BASIC_RATE_MASK | RTLLIB_CCK_RATE_2MB; rtllib_MFIE_Brate()
66 *tag++ = RTLLIB_BASIC_RATE_MASK | RTLLIB_CCK_RATE_5MB; rtllib_MFIE_Brate()
67 *tag++ = RTLLIB_BASIC_RATE_MASK | RTLLIB_CCK_RATE_11MB; rtllib_MFIE_Brate()
73 *tag_p = tag; rtllib_MFIE_Brate()
78 u8 *tag = *tag_p; rtllib_MFIE_Grate() local
81 *tag++ = MFIE_TYPE_RATES_EX; rtllib_MFIE_Grate()
82 *tag++ = 8; rtllib_MFIE_Grate()
83 *tag++ = RTLLIB_BASIC_RATE_MASK | RTLLIB_OFDM_RATE_6MB; rtllib_MFIE_Grate()
84 *tag++ = RTLLIB_BASIC_RATE_MASK | RTLLIB_OFDM_RATE_9MB; rtllib_MFIE_Grate()
85 *tag++ = RTLLIB_BASIC_RATE_MASK | RTLLIB_OFDM_RATE_12MB; rtllib_MFIE_Grate()
86 *tag++ = RTLLIB_BASIC_RATE_MASK | RTLLIB_OFDM_RATE_18MB; rtllib_MFIE_Grate()
87 *tag++ = RTLLIB_BASIC_RATE_MASK | RTLLIB_OFDM_RATE_24MB; rtllib_MFIE_Grate()
88 *tag++ = RTLLIB_BASIC_RATE_MASK | RTLLIB_OFDM_RATE_36MB; rtllib_MFIE_Grate()
89 *tag++ = RTLLIB_BASIC_RATE_MASK | RTLLIB_OFDM_RATE_48MB; rtllib_MFIE_Grate()
90 *tag++ = RTLLIB_BASIC_RATE_MASK | RTLLIB_OFDM_RATE_54MB; rtllib_MFIE_Grate()
95 *tag_p = tag; rtllib_MFIE_Grate()
100 u8 *tag = *tag_p; rtllib_WMM_Info() local
102 *tag++ = MFIE_TYPE_GENERIC; rtllib_WMM_Info()
103 *tag++ = 7; rtllib_WMM_Info()
104 *tag++ = 0x00; rtllib_WMM_Info()
105 *tag++ = 0x50; rtllib_WMM_Info()
106 *tag++ = 0xf2; rtllib_WMM_Info()
107 *tag++ = 0x02; rtllib_WMM_Info()
108 *tag++ = 0x00; rtllib_WMM_Info()
109 *tag++ = 0x01; rtllib_WMM_Info()
110 *tag++ = MAX_SP_Len; rtllib_WMM_Info()
111 *tag_p = tag; rtllib_WMM_Info()
116 u8 *tag = *tag_p; rtllib_TURBO_Info() local
118 *tag++ = MFIE_TYPE_GENERIC; rtllib_TURBO_Info()
119 *tag++ = 7; rtllib_TURBO_Info()
120 *tag++ = 0x00; rtllib_TURBO_Info()
121 *tag++ = 0xe0; rtllib_TURBO_Info()
122 *tag++ = 0x4c; rtllib_TURBO_Info()
123 *tag++ = 0x01; rtllib_TURBO_Info()
124 *tag++ = 0x02; rtllib_TURBO_Info()
125 *tag++ = 0x11; rtllib_TURBO_Info()
126 *tag++ = 0x00; rtllib_TURBO_Info()
128 *tag_p = tag; rtllib_TURBO_Info()
352 u8 *tag; rtllib_probe_req() local
377 tag = (u8 *) skb_put(skb, len + 2 + rate_len); rtllib_probe_req()
379 *tag++ = MFIE_TYPE_SSID; rtllib_probe_req()
380 *tag++ = len; rtllib_probe_req()
381 memcpy(tag, ieee->current_network.ssid, len); rtllib_probe_req()
382 tag += len; rtllib_probe_req()
384 rtllib_MFIE_Brate(ieee, &tag); rtllib_probe_req()
385 rtllib_MFIE_Grate(ieee, &tag); rtllib_probe_req()
836 u8 *tag; rtllib_probe_resp() local
938 tag = (u8 *) beacon_buf->info_element[0].data; rtllib_probe_resp()
940 memcpy(tag, ssid, ssid_len); rtllib_probe_resp()
942 tag += ssid_len; rtllib_probe_resp()
944 *(tag++) = MFIE_TYPE_RATES; rtllib_probe_resp()
945 *(tag++) = rate_len-2; rtllib_probe_resp()
946 memcpy(tag, ieee->current_network.rates, rate_len-2); rtllib_probe_resp()
947 tag += rate_len-2; rtllib_probe_resp()
949 *(tag++) = MFIE_TYPE_DS_SET; rtllib_probe_resp()
950 *(tag++) = 1; rtllib_probe_resp()
951 *(tag++) = ieee->current_network.channel; rtllib_probe_resp()
955 *(tag++) = MFIE_TYPE_IBSS_SET; rtllib_probe_resp()
956 *(tag++) = 2; rtllib_probe_resp()
958 memcpy((u8 *)tag, (u8 *)&val16, 2); rtllib_probe_resp()
959 tag += 2; rtllib_probe_resp()
963 *(tag++) = MFIE_TYPE_ERP; rtllib_probe_resp()
964 *(tag++) = 1; rtllib_probe_resp()
965 *(tag++) = erpinfo_content; rtllib_probe_resp()
968 *(tag++) = MFIE_TYPE_RATES_EX; rtllib_probe_resp()
969 *(tag++) = rate_ex_len-2; rtllib_probe_resp()
970 memcpy(tag, ieee->current_network.rates_ex, rate_ex_len-2); rtllib_probe_resp()
971 tag += rate_ex_len-2; rtllib_probe_resp()
977 memcpy(tag, ieee->wpa_ie, ieee->wpa_ie_len); rtllib_probe_resp()
978 tag += ieee->wpa_ie_len; rtllib_probe_resp()
986 u8 *tag; rtllib_assoc_resp() local
1035 tag = (u8 *) skb_put(skb, rate_len); rtllib_assoc_resp()
1036 rtllib_MFIE_Brate(ieee, &tag); rtllib_assoc_resp()
1037 rtllib_MFIE_Grate(ieee, &tag); rtllib_assoc_resp()
1173 u8 *tag, *ies; rtllib_association_req() local
1290 tag = skb_put(skb, beacon->ssid_len); rtllib_association_req()
1291 memcpy(tag, beacon->ssid, beacon->ssid_len); rtllib_association_req()
1293 tag = skb_put(skb, rate_len); rtllib_association_req()
1296 *tag++ = MFIE_TYPE_RATES; rtllib_association_req()
1297 *tag++ = beacon->rates_len; rtllib_association_req()
1299 *tag++ = beacon->rates[i]; rtllib_association_req()
1303 *tag++ = MFIE_TYPE_RATES_EX; rtllib_association_req()
1304 *tag++ = beacon->rates_ex_len; rtllib_association_req()
1306 *tag++ = beacon->rates_ex[i]; rtllib_association_req()
1322 tag = skb_put(skb, ckip_ie_len); rtllib_association_req()
1323 *tag++ = MFIE_TYPE_AIRONET; rtllib_association_req()
1324 *tag++ = osCcxAironetIE.Length; rtllib_association_req()
1325 memcpy(tag, osCcxAironetIE.Octet, osCcxAironetIE.Length); rtllib_association_req()
1326 tag += osCcxAironetIE.Length; rtllib_association_req()
1336 tag = skb_put(skb, ccxrm_ie_len); rtllib_association_req()
1337 *tag++ = MFIE_TYPE_GENERIC; rtllib_association_req()
1338 *tag++ = osCcxRmCap.Length; rtllib_association_req()
1339 memcpy(tag, osCcxRmCap.Octet, osCcxRmCap.Length); rtllib_association_req()
1340 tag += osCcxRmCap.Length; rtllib_association_req()
1350 tag = skb_put(skb, cxvernum_ie_len); rtllib_association_req()
1351 *tag++ = MFIE_TYPE_GENERIC; rtllib_association_req()
1352 *tag++ = osCcxVerNum.Length; rtllib_association_req()
1353 memcpy(tag, osCcxVerNum.Octet, osCcxVerNum.Length); rtllib_association_req()
1354 tag += osCcxVerNum.Length; rtllib_association_req()
1358 tag = skb_put(skb, ht_cap_len); rtllib_association_req()
1359 *tag++ = MFIE_TYPE_HT_CAP; rtllib_association_req()
1360 *tag++ = ht_cap_len - 2; rtllib_association_req()
1361 memcpy(tag, ht_cap_buf, ht_cap_len - 2); rtllib_association_req()
1362 tag += ht_cap_len - 2; rtllib_association_req()
1367 tag = skb_put(skb, ieee->wpa_ie_len); rtllib_association_req()
1368 memcpy(tag, ieee->wpa_ie, ieee->wpa_ie_len); rtllib_association_req()
1371 tag = skb_put(skb, 18); rtllib_association_req()
1372 *tag = 1; rtllib_association_req()
1373 *(tag + 1) = 0; rtllib_association_req()
1374 memcpy((tag + 2), &ieee->PMKIDList[PMKCacheIdx].PMKID, rtllib_association_req()
1379 tag = skb_put(skb, wmm_info_len); rtllib_association_req()
1380 rtllib_WMM_Info(ieee, &tag); rtllib_association_req()
1384 tag = skb_put(skb, wps_ie_len); rtllib_association_req()
1385 memcpy(tag, ieee->wps_ie, wps_ie_len); rtllib_association_req()
1388 tag = skb_put(skb, turbo_info_len); rtllib_association_req()
1390 rtllib_TURBO_Info(ieee, &tag); rtllib_association_req()
1394 tag = skb_put(skb, ht_cap_len); rtllib_association_req()
1395 *tag++ = MFIE_TYPE_GENERIC; rtllib_association_req()
1396 *tag++ = ht_cap_len - 2; rtllib_association_req()
1397 memcpy(tag, ht_cap_buf, ht_cap_len - 2); rtllib_association_req()
1398 tag += ht_cap_len - 2; rtllib_association_req()
1402 tag = skb_put(skb, realtek_ie_len); rtllib_association_req()
1403 *tag++ = MFIE_TYPE_GENERIC; rtllib_association_req()
1404 *tag++ = realtek_ie_len - 2; rtllib_association_req()
1405 memcpy(tag, realtek_ie_buf, realtek_ie_len - 2); rtllib_association_req()
1842 u8 *tag; probe_rq_parse() local
1863 tag = skb->data + sizeof(struct rtllib_hdr_3addr); probe_rq_parse()
1865 while (tag + 1 < skbend) { probe_rq_parse()
1866 if (*tag == 0) { probe_rq_parse()
1867 ssid = tag + 2; probe_rq_parse()
1868 ssidlen = *(tag + 1); probe_rq_parse()
1871 tag++; /* point to the len field */ probe_rq_parse()
1872 tag = tag + *(tag); /* point to the last data byte of the tag */ probe_rq_parse()
1873 tag++; /* point to the next tag */ probe_rq_parse()
/linux-4.1.27/fs/udf/
H A Dmisc.c136 crclen = sizeof(struct extendedAttrHeaderDesc) - sizeof(struct tag); udf_add_extendedattr()
139 sizeof(struct tag), crclen)); udf_add_extendedattr()
204 struct tag *tag_p; udf_read_tagged()
219 tag_p = (struct tag *)(bh->b_data); udf_read_tagged()
224 udf_debug("location mismatch block %u, tag %u != %u\n", udf_read_tagged()
229 /* Verify the tag checksum */ udf_read_tagged()
232 udf_err(sb, "tag checksum failed, block %u: 0x%02x != 0x%02x\n", udf_read_tagged()
237 /* Verify the tag version */ udf_read_tagged()
240 udf_err(sb, "tag version 0x%04x != 0x0002 || 0x0003, block %u\n", udf_read_tagged()
246 if (le16_to_cpu(tag_p->descCRCLength) + sizeof(struct tag) > sb->s_blocksize || udf_read_tagged()
248 bh->b_data + sizeof(struct tag), udf_read_tagged()
270 struct tag *tptr = (struct tag *)data; udf_update_tag()
271 length -= sizeof(struct tag); udf_update_tag()
274 tptr->descCRC = cpu_to_le16(crc_itu_t(0, data + sizeof(struct tag), length)); udf_update_tag()
281 struct tag *tptr = (struct tag *)data; udf_new_tag()
289 u8 udf_tag_checksum(const struct tag *t) udf_tag_checksum()
294 for (i = 0; i < sizeof(struct tag); ++i) udf_tag_checksum()
H A Decma_167.h160 struct tag { struct
193 struct tag descTag;
222 struct tag descTag;
230 struct tag descTag;
238 struct tag descTag;
246 struct tag descTag;
281 struct tag descTag;
325 struct tag descTag;
333 struct tag descTag;
339 struct tag descTag;
418 struct tag descTag;
451 struct tag descTag;
471 struct tag descTag;
531 struct tag descTag;
538 struct tag descTag;
544 struct tag descTag;
607 struct tag descTag;
715 struct tag descTag;
723 struct tag descTag;
731 struct tag descTag;
768 struct tag descTag;
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/
H A Dgpio.h27 int (*find)(struct nvkm_gpio *, int idx, u8 tag, u8 line,
29 int (*set)(struct nvkm_gpio *, int idx, u8 tag, u8 line, int state);
30 int (*get)(struct nvkm_gpio *, int idx, u8 tag, u8 line);
/linux-4.1.27/net/dsa/
H A Dtag_brcm.c2 * Broadcom tag support
17 /* This tag length is 4 bytes, older ones were 6 bytes, we do not
23 * because the tag is placed after the MAC Source Address, which does
33 /* 1st byte in the tag */
36 /* 2nd byte in the tag */
39 /* 3rd byte in the tag */
45 /* 2nd byte in the tag */
48 /* 3rd byte in the tag */
76 /* Build the tag after the MAC Source Address */ brcm_tag_xmit()
79 /* Set the ingress opcode, traffic class, tag enforcment is brcm_tag_xmit()
123 /* skb->data points to the EtherType, the tag is right before it */ brcm_tag_rcv()
142 /* Remove Broadcom tag and update checksum */ brcm_tag_rcv()
H A Dtag_edsa.c28 * Convert the outermost 802.1q tag to a DSA tag and prepend edsa_xmit()
30 * a DSA ethertype plus DSA tag between the addresses and the edsa_xmit()
41 * Construct tagged FROM_CPU DSA tag from 802.1q tag. edsa_xmit()
66 * Construct untagged FROM_CPU DSA tag. edsa_xmit()
136 * If the 'tagged' bit is set, convert the DSA tag to a 802.1q edsa_rcv()
137 * tag and delete the ethertype part. If the 'tagged' bit is edsa_rcv()
138 * clear, delete the ethertype and the DSA tag parts. edsa_rcv()
179 * Remove DSA tag and update checksum. edsa_rcv()
H A Dtag_dsa.c27 * Convert the outermost 802.1q tag to a DSA tag for tagged dsa_xmit()
28 * packets, or insert a DSA tag between the addresses and dsa_xmit()
36 * Construct tagged FROM_CPU DSA tag from 802.1q tag. dsa_xmit()
57 * Construct untagged FROM_CPU DSA tag. dsa_xmit()
160 * Remove DSA tag and update checksum. dsa_rcv()
/linux-4.1.27/fs/xfs/
H A Dxfs_error.c68 xfs_warn(mp, "error tag #%d on", error_tag); xfs_errortag_add()
75 xfs_warn(mp, "Turned on XFS error tag #%d", xfs_errortag_add()
87 xfs_warn(mp, "error tag overflow, too many turned on"); xfs_errortag_add()
106 xfs_warn(mp, "Clearing XFS error tag #%d", xfs_errortag_clearall()
125 const char *tag, xfs_error_report()
135 tag, linenum, filename, ra); xfs_error_report()
143 const char *tag, xfs_corruption_error()
153 xfs_error_report(tag, level, mp, filename, linenum, ra); xfs_corruption_error()
124 xfs_error_report( const char *tag, int level, struct xfs_mount *mp, const char *filename, int linenum, inst_t *ra) xfs_error_report() argument
142 xfs_corruption_error( const char *tag, int level, struct xfs_mount *mp, void *p, const char *filename, int linenum, inst_t *ra) xfs_corruption_error() argument
H A Dxfs_error.h23 extern void xfs_error_report(const char *tag, int level, struct xfs_mount *mp,
25 extern void xfs_corruption_error(const char *tag, int level,
68 * but each tag should have its own unique number
126 #define XFS_TEST_ERROR(expr, mp, tag, rf) \
128 xfs_error_test((tag), (mp)->m_fixedfsid, "expr", __LINE__, __FILE__, \
134 #define XFS_TEST_ERROR(expr, mp, tag, rf) (expr)
135 #define xfs_errortag_add(tag, mp) (ENOSYS)
/linux-4.1.27/arch/arm/include/asm/
H A Dsetup.h21 #define __tagtable(tag, fn) \
22 static const struct tagtable __tagtable_##fn __tag = { tag, fn }
H A Dmodule.h37 /* Add instruction set architecture tag to distinguish ARM/Thumb kernels */
/linux-4.1.27/arch/arm/include/uapi/asm/
H A Dsetup.h26 __u32 tag; member in struct:tag_header
146 struct tag { struct
172 __u32 tag; member in struct:tagtable
173 int (*parse)(const struct tag *);
176 #define tag_member_present(tag,member) \
177 ((unsigned long)(&((struct tag *)0L)->member + 1) \
178 <= (tag)->hdr.size * 4)
180 #define tag_next(t) ((struct tag *)((__u32 *)(t) + (t)->hdr.size))
/linux-4.1.27/arch/xtensa/kernel/
H A Dsetup.c95 * the kernel. The first tag must be a BP_TAG_FIRST tag for the list
97 * BP_TAG_LAST tag.
101 u32 tag; member in struct:tagtable
105 #define __tagtable(tag, fn) static tagtable_t __tagtable_##fn \
106 __attribute__((used, section(".taglist"))) = { tag, fn }
108 /* parse current tag */
110 static int __init parse_tag_mem(const bp_tag_t *tag) parse_tag_mem() argument
112 struct bp_meminfo *mi = (struct bp_meminfo *)(tag->data); parse_tag_mem()
124 static int __init parse_tag_initrd(const bp_tag_t* tag) parse_tag_initrd() argument
126 struct bp_meminfo *mi = (struct bp_meminfo *)(tag->data); parse_tag_initrd()
138 static int __init parse_tag_fdt(const bp_tag_t *tag) parse_tag_fdt() argument
140 dtb_start = __va(tag->data[0]); parse_tag_fdt()
150 static int __init parse_tag_cmdline(const bp_tag_t* tag) parse_tag_cmdline() argument
152 strlcpy(command_line, (char *)(tag->data), COMMAND_LINE_SIZE); parse_tag_cmdline()
158 static int __init parse_bootparam(const bp_tag_t* tag) parse_bootparam() argument
163 /* Boot parameters must start with a BP_TAG_FIRST tag. */ parse_bootparam()
165 if (tag->id != BP_TAG_FIRST) { parse_bootparam()
170 tag = (bp_tag_t*)((unsigned long)tag + sizeof(bp_tag_t) + tag->size); parse_bootparam()
174 while (tag != NULL && tag->id != BP_TAG_LAST) { parse_bootparam()
176 if (tag->id == t->tag) { parse_bootparam()
177 t->parse(tag); parse_bootparam()
182 printk(KERN_WARNING "Ignoring tag " parse_bootparam()
183 "0x%08x\n", tag->id); parse_bootparam()
184 tag = (bp_tag_t*)((unsigned long)(tag + 1) + tag->size); parse_bootparam()
/linux-4.1.27/drivers/scsi/be2iscsi/
H A Dbe_mgmt.c164 unsigned int tag = 0; be_cmd_modify_eq_delay() local
168 tag = alloc_mcc_tag(phba); be_cmd_modify_eq_delay()
169 if (!tag) { be_cmd_modify_eq_delay()
171 return tag; be_cmd_modify_eq_delay()
177 wrb->tag0 |= tag; be_cmd_modify_eq_delay()
192 return tag; be_cmd_modify_eq_delay()
212 unsigned int tag = 0; mgmt_reopen_session() local
219 tag = alloc_mcc_tag(phba); mgmt_reopen_session()
220 if (!tag) { mgmt_reopen_session()
222 return tag; mgmt_reopen_session()
227 wrb->tag0 |= tag; mgmt_reopen_session()
239 return tag; mgmt_reopen_session()
247 unsigned int tag = 0; mgmt_get_boot_target() local
254 tag = alloc_mcc_tag(phba); mgmt_get_boot_target()
255 if (!tag) { mgmt_get_boot_target()
257 return tag; mgmt_get_boot_target()
262 wrb->tag0 |= tag; mgmt_get_boot_target()
270 return tag; mgmt_get_boot_target()
279 unsigned int tag = 0; mgmt_get_session_info() local
289 tag = alloc_mcc_tag(phba); mgmt_get_session_info()
290 if (!tag) { mgmt_get_session_info()
292 return tag; mgmt_get_session_info()
300 wrb->tag0 |= tag; mgmt_get_session_info()
303 wrb->tag0 |= tag; mgmt_get_session_info()
315 return tag; mgmt_get_session_info()
489 unsigned int tag = 0; mgmt_vendor_specific_fw_cmd() local
528 tag = alloc_mcc_tag(phba); mgmt_vendor_specific_fw_cmd()
529 if (!tag) { mgmt_vendor_specific_fw_cmd()
531 return tag; mgmt_vendor_specific_fw_cmd()
541 wrb->tag0 |= tag; mgmt_vendor_specific_fw_cmd()
546 return tag; mgmt_vendor_specific_fw_cmd()
593 unsigned int i, tag = 0; mgmt_invalidate_icds() local
596 tag = alloc_mcc_tag(phba); mgmt_invalidate_icds()
597 if (!tag) { mgmt_invalidate_icds()
599 return tag; mgmt_invalidate_icds()
606 wrb->tag0 |= tag; mgmt_invalidate_icds()
626 return tag; mgmt_invalidate_icds()
638 unsigned int tag = 0; mgmt_invalidate_connection() local
641 tag = alloc_mcc_tag(phba); mgmt_invalidate_connection()
642 if (!tag) { mgmt_invalidate_connection()
644 return tag; mgmt_invalidate_connection()
647 wrb->tag0 |= tag; mgmt_invalidate_connection()
663 return tag; mgmt_invalidate_connection()
672 unsigned int tag = 0; mgmt_upload_connection() local
675 tag = alloc_mcc_tag(phba); mgmt_upload_connection()
676 if (!tag) { mgmt_upload_connection()
678 return tag; mgmt_upload_connection()
682 wrb->tag0 |= tag; mgmt_upload_connection()
691 return tag; mgmt_upload_connection()
720 unsigned int tag = 0; mgmt_open_connection() local
736 tag = alloc_mcc_tag(phba); mgmt_open_connection()
737 if (!tag) { mgmt_open_connection()
739 return tag; mgmt_open_connection()
746 wrb->tag0 |= tag; mgmt_open_connection()
777 free_mcc_tag(&phba->ctrl, tag); mgmt_open_connection()
806 return tag; mgmt_open_connection()
852 unsigned int tag; mgmt_exec_nonemb_cmd() local
856 tag = alloc_mcc_tag(phba); mgmt_exec_nonemb_cmd()
857 if (!tag) { mgmt_exec_nonemb_cmd()
864 wrb->tag0 |= tag; mgmt_exec_nonemb_cmd()
875 rc = beiscsi_mccq_compl(phba, tag, NULL, nonemb_cmd); mgmt_exec_nonemb_cmd()
1248 unsigned int tag = 0; be_cmd_get_initname() local
1254 tag = alloc_mcc_tag(phba); be_cmd_get_initname()
1255 if (!tag) { be_cmd_get_initname()
1257 return tag; be_cmd_get_initname()
1262 wrb->tag0 |= tag; be_cmd_get_initname()
1270 return tag; be_cmd_get_initname()
1275 unsigned int tag = 0; be_cmd_get_port_speed() local
1281 tag = alloc_mcc_tag(phba); be_cmd_get_port_speed()
1282 if (!tag) { be_cmd_get_port_speed()
1284 return tag; be_cmd_get_port_speed()
1289 wrb->tag0 |= tag; be_cmd_get_port_speed()
1297 return tag; be_cmd_get_port_speed()
1319 unsigned int tag; be_mgmt_get_boot_shandle() local
1325 tag = mgmt_get_boot_target(phba); be_mgmt_get_boot_shandle()
1326 if (!tag) { be_mgmt_get_boot_shandle()
1333 rc = beiscsi_mccq_compl(phba, tag, &wrb, NULL); be_mgmt_get_boot_shandle()
1358 tag = mgmt_reopen_session(phba, BE_REOPEN_BOOT_SESSIONS, be_mgmt_get_boot_shandle()
1360 if (!tag) { be_mgmt_get_boot_shandle()
1367 rc = beiscsi_mccq_compl(phba, tag, NULL, NULL); be_mgmt_get_boot_shandle()
1386 * @vlan_tag: VLAN tag
1399 unsigned int tag; mgmt_set_vlan() local
1401 tag = be_cmd_set_vlan(phba, vlan_tag); mgmt_set_vlan()
1402 if (!tag) { mgmt_set_vlan()
1409 rc = beiscsi_mccq_compl(phba, tag, NULL, NULL); mgmt_set_vlan()
H A Dbe_cmds.c119 unsigned int tag = 0; alloc_mcc_tag() local
122 tag = phba->ctrl.mcc_tag[phba->ctrl.mcc_alloc_index]; alloc_mcc_tag()
124 phba->ctrl.mcc_numtag[tag] = 0; alloc_mcc_tag()
126 if (tag) { alloc_mcc_tag()
133 return tag; alloc_mcc_tag()
139 * @tag: Tag for the MBX Command
150 uint32_t tag, struct be_mcc_wrb **wrb, beiscsi_mccq_compl()
162 free_mcc_tag(&phba->ctrl, tag); beiscsi_mccq_compl()
168 phba->ctrl.ptag_state[tag].tag_state = MCC_TAG_STATE_RUNNING; beiscsi_mccq_compl()
173 phba->ctrl.mcc_wait[tag], beiscsi_mccq_compl()
174 phba->ctrl.mcc_numtag[tag], beiscsi_mccq_compl()
182 phba->ctrl.ptag_state[tag].tag_state = MCC_TAG_STATE_TIMEOUT; beiscsi_mccq_compl()
186 tag_mem = &phba->ctrl.ptag_state[tag].tag_mem_state; beiscsi_mccq_compl()
203 phba->ctrl.ptag_state[tag].tag_state = MCC_TAG_STATE_COMPLETED; beiscsi_mccq_compl()
207 mcc_tag_response = phba->ctrl.mcc_numtag[tag]; beiscsi_mccq_compl()
253 free_mcc_tag(&phba->ctrl, tag); beiscsi_mccq_compl()
258 void free_mcc_tag(struct be_ctrl_info *ctrl, unsigned int tag) free_mcc_tag() argument
261 tag = tag & 0x000000FF; free_mcc_tag()
262 ctrl->mcc_tag[ctrl->mcc_free_index] = tag; free_mcc_tag()
357 unsigned short tag; be_mcc_compl_process_isr() local
363 /* The ctrl.mcc_numtag[tag] is filled with be_mcc_compl_process_isr()
367 tag = (compl->tag0 & 0x000000FF); be_mcc_compl_process_isr()
371 ctrl->mcc_numtag[tag] = 0x80000000; be_mcc_compl_process_isr()
372 ctrl->mcc_numtag[tag] |= (compl->tag0 & 0x00FF0000); be_mcc_compl_process_isr()
373 ctrl->mcc_numtag[tag] |= (extd_status & 0x000000FF) << 8; be_mcc_compl_process_isr()
374 ctrl->mcc_numtag[tag] |= (compl_status & 0x000000FF); be_mcc_compl_process_isr()
376 if (ctrl->ptag_state[tag].tag_state == MCC_TAG_STATE_RUNNING) { be_mcc_compl_process_isr()
377 wake_up_interruptible(&ctrl->mcc_wait[tag]); be_mcc_compl_process_isr()
378 } else if (ctrl->ptag_state[tag].tag_state == MCC_TAG_STATE_TIMEOUT) { be_mcc_compl_process_isr()
380 tag_mem = &ctrl->ptag_state[tag].tag_mem_state; be_mcc_compl_process_isr()
392 /* Change tag state */ be_mcc_compl_process_isr()
394 ctrl->ptag_state[tag].tag_state = MCC_TAG_STATE_COMPLETED; be_mcc_compl_process_isr()
398 free_mcc_tag(ctrl, tag); be_mcc_compl_process_isr()
1416 unsigned int tag = 0; be_cmd_set_vlan() local
1422 tag = alloc_mcc_tag(phba); be_cmd_set_vlan()
1423 if (!tag) { be_cmd_set_vlan()
1425 return tag; be_cmd_set_vlan()
1430 wrb->tag0 |= tag; be_cmd_set_vlan()
1442 return tag; be_cmd_set_vlan()
149 beiscsi_mccq_compl(struct beiscsi_hba *phba, uint32_t tag, struct be_mcc_wrb **wrb, struct be_dma_mem *mbx_cmd_mem) beiscsi_mccq_compl() argument
H A Dbe_iscsi.c721 unsigned int tag; beiscsi_get_initname() local
725 tag = be_cmd_get_initname(phba); beiscsi_get_initname()
726 if (!tag) { beiscsi_get_initname()
733 rc = beiscsi_mccq_compl(phba, tag, &wrb, NULL); beiscsi_get_initname()
769 unsigned int tag; beiscsi_get_port_speed() local
775 tag = be_cmd_get_port_speed(phba); beiscsi_get_port_speed()
776 if (!tag) { beiscsi_get_port_speed()
782 rc = beiscsi_mccq_compl(phba, tag, &wrb, NULL); beiscsi_get_port_speed()
1109 unsigned int tag, req_memsize; beiscsi_open_conn() local
1150 tag = mgmt_open_connection(phba, dst_addr, beiscsi_ep, &nonemb_cmd); beiscsi_open_conn()
1151 if (tag <= 0) { beiscsi_open_conn()
1162 ret = beiscsi_mccq_compl(phba, tag, NULL, &nonemb_cmd); beiscsi_open_conn()
1309 unsigned int tag; beiscsi_close_conn() local
1312 tag = mgmt_upload_connection(phba, beiscsi_ep->ep_cid, flag); beiscsi_close_conn()
1313 if (!tag) { beiscsi_close_conn()
1321 ret = beiscsi_mccq_compl(phba, tag, NULL, NULL); beiscsi_close_conn()
1360 unsigned int tag; beiscsi_ep_disconnect() local
1386 tag = mgmt_invalidate_connection(phba, beiscsi_ep, beiscsi_ep_disconnect()
1390 if (!tag) { beiscsi_ep_disconnect()
1396 beiscsi_mccq_compl(phba, tag, NULL, NULL); beiscsi_ep_disconnect()
/linux-4.1.27/arch/sparc/include/uapi/asm/
H A Dsiginfo.h22 #define EMT_TAGOVF (__SI_FAULT|1) /* tag overflow */
H A Dasi.h167 #define ASI_PCACHE_TAG 0x32 /* (III) PCache tag RAM diag */
168 #define ASI_PCACHE_SNOOP_TAG 0x33 /* (III) PCache snoop tag RAM diag */
172 #define ASI_WCACHE_TAG 0x3a /* (III) WCache tag RAM diag */
173 #define ASI_WCACHE_SNOOP_TAG 0x3b /* (III) WCache snoop tag RAM diag */
187 #define ASI_DCACHE_SNOOP_TAG 0x44 /* (III) DCache snoop tag RAM diag */
191 #define ASI_DCACHE_TAG 0x47 /* Dcache tag/valid ram diag access*/
201 #define ASI_EC_TAG_DATA 0x4e /* E-cache tag/valid ram diag acc */
207 #define ASI_ITLB_TAG_READ 0x56 /* Insn-MMU TLB tag read reg */
215 #define ASI_DTLB_TAG_READ 0x5e /* Data-MMU TLB tag read reg */
222 #define ASI_IC_TAG 0x67 /* Insn cache tag/valid ram diag */
223 #define ASI_IC_STAG 0x68 /* (III) Insn cache snoop tag ram */
/linux-4.1.27/arch/tile/kernel/
H A Dsmp.c47 static void __send_IPI_many(HV_Recipient *recip, int nrecip, int tag) __send_IPI_many() argument
52 (HV_VirtAddr)&tag, sizeof(tag)); __send_IPI_many()
63 void send_IPI_single(int cpu, int tag) send_IPI_single() argument
70 __send_IPI_many(&recip, 1, tag); send_IPI_single()
73 void send_IPI_many(const struct cpumask *mask, int tag) send_IPI_many() argument
87 __send_IPI_many(recip, nrecip, tag);
90 void send_IPI_allbutself(int tag) send_IPI_allbutself() argument
95 send_IPI_many(&mask, tag); send_IPI_allbutself()
134 void evaluate_message(int tag) evaluate_message() argument
136 switch (tag) { evaluate_message()
158 panic("Unknown IPI message tag %d", tag); evaluate_message()
225 int tag = MSG_TAG_CALL_FUNCTION_SINGLE; ipi_init() local
232 if (hv_send_message(&recip, 1, (HV_VirtAddr)&tag, sizeof(tag)) == 1) ipi_init()
H A Dmessaging.c82 int tag; hv_message_intr() local
87 tag = message[0]; hv_message_intr()
91 panic("Received IPI message %d in UP mode", tag); hv_message_intr()
/linux-4.1.27/arch/mn10300/proc-mn103e010/include/proc/
H A Dcache.h22 #define L1_CACHE_TAG_VALID 0x00000001 /* cache tag valid bit */
23 #define L1_CACHE_TAG_DIRTY 0x00000008 /* data cache tag dirty bit */
24 #define L1_CACHE_TAG_ENTRY 0x00000ff0 /* cache tag entry address mask */
25 #define L1_CACHE_TAG_ADDRESS 0xfffff000 /* cache tag line address mask */
/linux-4.1.27/arch/mn10300/proc-mn2ws0050/include/proc/
H A Dcache.h28 #define L1_CACHE_TAG_VALID 0x00000001 /* cache tag valid bit */
29 #define L1_CACHE_TAG_DIRTY 0x00000008 /* data cache tag dirty bit */
30 #define L1_CACHE_TAG_ENTRY 0x00000fe0 /* cache tag entry address mask */
31 #define L1_CACHE_TAG_ADDRESS 0xfffff000 /* cache tag line address mask */
/linux-4.1.27/arch/cris/arch-v32/mm/
H A Dl2cache.c21 /* Flush the tag memory */ l2cache_init()
/linux-4.1.27/drivers/media/usb/as102/
H A Das10x_cmd_cfg.c27 * @tag: context tag
32 int as10x_cmd_get_context(struct as10x_bus_adapter_t *adap, uint16_t tag, as10x_cmd_get_context() argument
47 pcmd->body.context.req.tag = cpu_to_le16(tag); as10x_cmd_get_context()
83 * @tag: context tag
88 int as10x_cmd_set_context(struct as10x_bus_adapter_t *adap, uint16_t tag, as10x_cmd_set_context() argument
105 pcmd->body.context.req.tag = cpu_to_le16(tag); as10x_cmd_set_context()
/linux-4.1.27/arch/sparc/kernel/
H A Dds.c69 struct ds_msg_tag tag; member in struct:ds_ver_req
74 struct ds_msg_tag tag; member in struct:ds_ver_ack
79 struct ds_msg_tag tag; member in struct:ds_ver_nack
84 struct ds_msg_tag tag; member in struct:ds_reg_req
92 struct ds_msg_tag tag; member in struct:ds_reg_ack
98 struct ds_msg_tag tag; member in struct:ds_reg_nack
104 struct ds_msg_tag tag; member in struct:ds_unreg_req
109 struct ds_msg_tag tag; member in struct:ds_unreg_ack
114 struct ds_msg_tag tag; member in struct:ds_unreg_nack
119 struct ds_msg_tag tag; member in struct:ds_data
124 struct ds_msg_tag tag; member in struct:ds_data_nack
297 pkt.data.tag.type = DS_DATA; md_update_data()
298 pkt.data.tag.len = sizeof(pkt) - sizeof(struct ds_msg_tag); md_update_data()
335 pkt.data.tag.type = DS_DATA; domain_shutdown_data()
336 pkt.data.tag.len = sizeof(pkt) - sizeof(struct ds_msg_tag); domain_shutdown_data()
375 pkt.data.tag.type = DS_DATA; domain_panic_data()
376 pkt.data.tag.len = sizeof(pkt) - sizeof(struct ds_msg_tag); domain_panic_data()
424 struct dr_cpu_tag *tag = (struct dr_cpu_tag *) (data + 1); __dr_cpu_send_error() local
427 struct dr_cpu_tag tag; __dr_cpu_send_error() member in struct:__anon2728
432 pkt.data.tag.type = DS_DATA; __dr_cpu_send_error()
434 pkt.tag.req_num = tag->req_num; __dr_cpu_send_error()
435 pkt.tag.type = DR_CPU_ERROR; __dr_cpu_send_error()
436 pkt.tag.num_records = 0; __dr_cpu_send_error()
441 pkt.data.tag.len = msg_len - sizeof(struct ds_msg_tag); __dr_cpu_send_error()
489 struct dr_cpu_tag *tag; dr_cpu_init_response() local
492 tag = (struct dr_cpu_tag *) (resp + 1); dr_cpu_init_response()
493 ent = (struct dr_cpu_resp_entry *) (tag + 1); dr_cpu_init_response()
495 resp->tag.type = DS_DATA; dr_cpu_init_response()
496 resp->tag.len = resp_len - sizeof(struct ds_msg_tag); dr_cpu_init_response()
498 tag->req_num = req_num; dr_cpu_init_response()
499 tag->type = DR_CPU_OK; dr_cpu_init_response()
500 tag->num_records = ncpus; dr_cpu_init_response()
516 struct dr_cpu_tag *tag; dr_cpu_mark() local
519 tag = (struct dr_cpu_tag *) (resp + 1); dr_cpu_mark()
520 ent = (struct dr_cpu_resp_entry *) (tag + 1); dr_cpu_mark()
632 struct dr_cpu_tag *tag = (struct dr_cpu_tag *) (data + 1); dr_cpu_data() local
633 u32 *cpu_list = (u32 *) (tag + 1); dr_cpu_data()
634 u64 req_num = tag->req_num; dr_cpu_data()
639 switch (tag->type) { dr_cpu_data()
650 purge_dups(cpu_list, tag->num_records); dr_cpu_data()
653 for (i = 0; i < tag->num_records; i++) { dr_cpu_data()
661 if (tag->type == DR_CPU_CONFIGURE) dr_cpu_data()
794 pkt.header.data.tag.type = DS_DATA; ldom_set_var()
807 pkt.header.data.tag.len = msg_len - sizeof(struct ds_msg_tag); ldom_set_var()
906 pbuf.req.tag.type = DS_REG_REQ; register_services()
907 pbuf.req.tag.len = (msg_len - sizeof(struct ds_msg_tag)); register_services()
970 .tag = { __send_ds_nack()
1068 req.tag.type = DS_INIT_REQ; ds_up()
1069 req.tag.len = sizeof(req) - sizeof(struct ds_msg_tag); ds_up()
1121 struct ds_msg_tag *tag; ds_event() local
1123 err = ldc_read(lp, dp->rcv_buf, sizeof(*tag)); ds_event()
1133 tag = dp->rcv_buf; ds_event()
1134 err = ldc_read(lp, tag + 1, tag->len); ds_event()
1141 if (err < tag->len) ds_event()
1144 if (tag->type < DS_DATA) ds_event()
1148 sizeof(*tag) + err); ds_event()
H A Dviohs.c33 struct vio_msg_tag *tag, int len) send_ctrl()
35 tag->sid = vio_send_sid(vio); send_ctrl()
36 return vio_ldc_send(vio, tag, len); send_ctrl()
39 static void init_tag(struct vio_msg_tag *tag, u8 type, u8 stype, u16 stype_env) init_tag() argument
41 tag->type = type; init_tag()
42 tag->stype = stype; init_tag()
43 tag->stype_env = stype_env; init_tag()
53 init_tag(&pkt.tag, VIO_TYPE_CTRL, VIO_SUBTYPE_INFO, VIO_VER_INFO); send_version()
61 return send_ctrl(vio, &pkt.tag, sizeof(pkt)); send_version()
186 init_tag(&u.pkt.tag, VIO_TYPE_CTRL, VIO_SUBTYPE_INFO, VIO_DRING_REG); send_dreg()
207 return send_ctrl(vio, &u.pkt.tag, sizeof(u)); send_dreg()
216 init_tag(&pkt.tag, VIO_TYPE_CTRL, VIO_SUBTYPE_INFO, VIO_RDX); send_rdx()
220 return send_ctrl(vio, &pkt.tag, sizeof(pkt)); send_rdx()
261 vio->_peer_sid = pkt->tag.sid; process_ver_info()
264 pkt->tag.stype = VIO_SUBTYPE_NACK; process_ver_info()
268 err = send_ctrl(vio, &pkt->tag, sizeof(*pkt)); process_ver_info()
270 pkt->tag.stype = VIO_SUBTYPE_NACK; process_ver_info()
275 err = send_ctrl(vio, &pkt->tag, sizeof(*pkt)); process_ver_info()
284 pkt->tag.stype = VIO_SUBTYPE_ACK; process_ver_info()
287 err = send_ctrl(vio, &pkt->tag, sizeof(*pkt)); process_ver_info()
308 pkt->tag.stype = VIO_SUBTYPE_NACK; process_ver_ack()
309 (void) send_ctrl(vio, &pkt->tag, sizeof(*pkt)); process_ver_ack()
354 switch (pkt->tag.stype) { process_ver()
460 pkt->tag.stype = VIO_SUBTYPE_ACK; process_dreg_info()
471 if (send_ctrl(vio, &pkt->tag, len) < 0) process_dreg_info()
479 pkt->tag.stype = VIO_SUBTYPE_NACK; process_dreg_info()
481 (void) send_ctrl(vio, &pkt->tag, sizeof(*pkt)); process_dreg_info()
531 switch (pkt->tag.stype) { process_dreg()
571 pkt->tag.stype = VIO_SUBTYPE_ACK; process_rdx_info()
573 if (send_ctrl(vio, &pkt->tag, sizeof(*pkt)) < 0) process_rdx_info()
603 switch (pkt->tag.stype) { process_rdx()
620 struct vio_msg_tag *tag = pkt; vio_control_pkt_engine() local
624 switch (tag->stype_env) { vio_control_pkt_engine()
696 viodbg(DATA, "BAD SID tag->sid[%08x] peer_sid[%08x] local_sid[%08x]\n", vio_validate_sid()
32 send_ctrl(struct vio_driver_state *vio, struct vio_msg_tag *tag, int len) send_ctrl() argument
H A Diommu_common.h32 * This is the hardwired shift in the iotlb tag/data parts.
H A Dentry.h194 /*0x38*/u64 dcache_tag; /* D-cache tag/valid */
201 /*0x98*/u64 icache_tag; /* I-cache phys tag */
204 /*0xb0*/u64 icache_upper; /* I-cache upper-tag */
205 /*0xb8*/u64 icache_lower; /* I-cache lower-tag */
210 /*0xe8*/u64 ecache_tag; /* E-cache tag/state */
/linux-4.1.27/arch/mips/cavium-octeon/executive/
H A Dcvmx-l2c.c315 uint64_t tag = addr >> shift; cvmx_l2c_lock_line() local
328 if (l2c_tadx_tag.s.valid && l2c_tadx_tag.s.tag == tag) cvmx_l2c_lock_line()
458 union cvmx_l2c_tag tag; cvmx_l2c_unlock_line() local
471 tag = cvmx_l2c_get_tag(assoc, index); cvmx_l2c_unlock_line()
473 if (tag.s.V && (tag.s.addr == tag_addr)) { cvmx_l2c_unlock_line()
475 return tag.s.L; cvmx_l2c_unlock_line()
480 union cvmx_l2c_tag tag; cvmx_l2c_unlock_line() local
485 /* Compute portion of address that is stored in tag */ cvmx_l2c_unlock_line()
488 tag = cvmx_l2c_get_tag(assoc, index); cvmx_l2c_unlock_line()
490 if (tag.s.V && (tag.s.addr == tag_addr)) { cvmx_l2c_unlock_line()
492 return tag.s.L; cvmx_l2c_unlock_line()
516 * Internal l2c tag types. These are converted to a generic structure
613 * Function to read a L2C tag. This code make the current core
617 * @assoc: Association (way) of the tag to dump
620 * Returns The Octeon model specific tag structure. This is
668 "ld %[tag_val], 0(%[tag_addr])\n\t" /* Read L2C tag data */ __read_l2_tag()
685 union cvmx_l2c_tag tag; cvmx_l2c_get_tag() local
686 tag.u64 = 0; cvmx_l2c_get_tag()
690 return tag; cvmx_l2c_get_tag()
695 return tag; cvmx_l2c_get_tag()
703 * Use L2 cache Index load tag cache instruction, as cvmx_l2c_get_tag()
704 * hardware loads the virtual tag for the L2 cache cvmx_l2c_get_tag()
712 tag.s.V = l2c_tadx_tag.s.valid; cvmx_l2c_get_tag()
713 tag.s.D = l2c_tadx_tag.s.dirty; cvmx_l2c_get_tag()
714 tag.s.L = l2c_tadx_tag.s.lock; cvmx_l2c_get_tag()
715 tag.s.U = l2c_tadx_tag.s.use; cvmx_l2c_get_tag()
716 tag.s.addr = l2c_tadx_tag.s.tag; cvmx_l2c_get_tag()
723 * Convert all tag structure types to generic version, cvmx_l2c_get_tag()
727 tag.s.V = tmp_tag.cn58xx.V; cvmx_l2c_get_tag()
728 tag.s.D = tmp_tag.cn58xx.D; cvmx_l2c_get_tag()
729 tag.s.L = tmp_tag.cn58xx.L; cvmx_l2c_get_tag()
730 tag.s.U = tmp_tag.cn58xx.U; cvmx_l2c_get_tag()
731 tag.s.addr = tmp_tag.cn58xx.addr; cvmx_l2c_get_tag()
733 tag.s.V = tmp_tag.cn38xx.V; cvmx_l2c_get_tag()
734 tag.s.D = tmp_tag.cn38xx.D; cvmx_l2c_get_tag()
735 tag.s.L = tmp_tag.cn38xx.L; cvmx_l2c_get_tag()
736 tag.s.U = tmp_tag.cn38xx.U; cvmx_l2c_get_tag()
737 tag.s.addr = tmp_tag.cn38xx.addr; cvmx_l2c_get_tag()
739 tag.s.V = tmp_tag.cn31xx.V; cvmx_l2c_get_tag()
740 tag.s.D = tmp_tag.cn31xx.D; cvmx_l2c_get_tag()
741 tag.s.L = tmp_tag.cn31xx.L; cvmx_l2c_get_tag()
742 tag.s.U = tmp_tag.cn31xx.U; cvmx_l2c_get_tag()
743 tag.s.addr = tmp_tag.cn31xx.addr; cvmx_l2c_get_tag()
745 tag.s.V = tmp_tag.cn30xx.V; cvmx_l2c_get_tag()
746 tag.s.D = tmp_tag.cn30xx.D; cvmx_l2c_get_tag()
747 tag.s.L = tmp_tag.cn30xx.L; cvmx_l2c_get_tag()
748 tag.s.U = tmp_tag.cn30xx.U; cvmx_l2c_get_tag()
749 tag.s.addr = tmp_tag.cn30xx.addr; cvmx_l2c_get_tag()
751 tag.s.V = tmp_tag.cn50xx.V; cvmx_l2c_get_tag()
752 tag.s.D = tmp_tag.cn50xx.D; cvmx_l2c_get_tag()
753 tag.s.L = tmp_tag.cn50xx.L; cvmx_l2c_get_tag()
754 tag.s.U = tmp_tag.cn50xx.U; cvmx_l2c_get_tag()
755 tag.s.addr = tmp_tag.cn50xx.addr; cvmx_l2c_get_tag()
760 return tag; cvmx_l2c_get_tag()
/linux-4.1.27/include/uapi/linux/
H A Dchio.h122 char cge_pvoltag[36]; /* primary volume tag */
123 char cge_avoltag[36]; /* alternate volume tag */
131 #define CGE_PVOLTAG 0x10 /* primary volume tag available */
132 #define CGE_AVOLTAG 0x20 /* alternate volume tag available */
137 * set volume tag
142 char csv_voltag[36]; /* volume tag */
145 #define CSV_PVOLTAG 0x01 /* primary volume tag */
146 #define CSV_AVOLTAG 0x02 /* alternate volume tag */
147 #define CSV_CLEARTAG 0x04 /* clear volume tag */
H A Dvirtio_9p.h38 /* length of the tag name */
40 /* non-NULL terminated tag name */
41 __u8 tag[0]; member in struct:virtio_9p_config
H A Dbsg.h29 __u64 request_tag; /* [i] {SCSI: task tag (only if flagged)} */
59 __u64 generated_tag; /* [o] {SCSI: transport generated task tag} */
H A Dagpgart.h92 int key; /* tag of allocation */
102 int key; /* tag of allocation */
107 int key; /* tag of allocation */
/linux-4.1.27/crypto/asymmetric_keys/
H A Dpkcs7_parser.c164 unsigned char tag, pkcs7_note_OID()
183 unsigned char tag, pkcs7_sig_note_digest_algo()
212 unsigned char tag, pkcs7_sig_note_pkey_algo()
232 unsigned char tag, pkcs7_extract_cert()
238 if (tag != ((ASN1_UNIV << 6) | ASN1_CONS_BIT | ASN1_SEQ)) { pkcs7_extract_cert()
239 pr_debug("Cert began with tag %02x at %lu\n", pkcs7_extract_cert()
240 tag, (unsigned long)ctx - ctx->data); pkcs7_extract_cert()
272 unsigned char tag, pkcs7_note_certificate_list()
277 pr_devel("Got cert list (%02x)\n", tag); pkcs7_note_certificate_list()
291 unsigned char tag, pkcs7_note_data()
309 unsigned char tag, pkcs7_sig_note_authenticated_attr()
314 pr_devel("AuthAttr: %02x %zu [%*ph]\n", tag, vlen, (unsigned)vlen, value); pkcs7_sig_note_authenticated_attr()
318 if (tag != ASN1_OTS) pkcs7_sig_note_authenticated_attr()
332 unsigned char tag, pkcs7_sig_note_set_of_authattrs()
347 unsigned char tag, pkcs7_sig_note_serial()
360 unsigned char tag, pkcs7_sig_note_issuer()
373 unsigned char tag, pkcs7_sig_note_signature()
394 unsigned char tag, pkcs7_note_signed_info()
163 pkcs7_note_OID(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) pkcs7_note_OID() argument
182 pkcs7_sig_note_digest_algo(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) pkcs7_sig_note_digest_algo() argument
211 pkcs7_sig_note_pkey_algo(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) pkcs7_sig_note_pkey_algo() argument
231 pkcs7_extract_cert(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) pkcs7_extract_cert() argument
271 pkcs7_note_certificate_list(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) pkcs7_note_certificate_list() argument
290 pkcs7_note_data(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) pkcs7_note_data() argument
308 pkcs7_sig_note_authenticated_attr(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) pkcs7_sig_note_authenticated_attr() argument
331 pkcs7_sig_note_set_of_authattrs(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) pkcs7_sig_note_set_of_authattrs() argument
346 pkcs7_sig_note_serial(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) pkcs7_sig_note_serial() argument
359 pkcs7_sig_note_issuer(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) pkcs7_sig_note_issuer() argument
372 pkcs7_sig_note_signature(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) pkcs7_sig_note_signature() argument
393 pkcs7_note_signed_info(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) pkcs7_note_signed_info() argument
H A Dx509_cert_parser.c140 unsigned char tag, x509_note_OID()
160 unsigned char tag, x509_note_tbs_certificate()
166 hdrlen, tag, (unsigned long)value - ctx->data, vlen); x509_note_tbs_certificate()
177 unsigned char tag, x509_note_pkey_algo()
229 unsigned char tag, x509_note_signature()
251 unsigned char tag, x509_note_serial()
264 unsigned char tag, x509_extract_name_segment()
293 unsigned char tag, x509_fabricate_name()
368 unsigned char tag, x509_note_issuer()
374 return x509_fabricate_name(ctx, hdrlen, tag, &ctx->cert->issuer, vlen); x509_note_issuer()
378 unsigned char tag, x509_note_subject()
384 return x509_fabricate_name(ctx, hdrlen, tag, &ctx->cert->subject, vlen); x509_note_subject()
391 unsigned char tag, x509_extract_key_data()
411 unsigned char tag, rsa_extract_mpi()
430 /* The keyIdentifier in AuthorityKeyIdentifier SEQUENCE is tag(CONT,PRIM,0) */
437 unsigned char tag, x509_process_extension()
481 * @tag: The object tag
496 unsigned char tag, x509_decode_time()
507 if (tag == ASN1_UNITIM) { x509_decode_time()
516 } else if (tag == ASN1_GENTIM) { x509_decode_time()
560 pr_debug("Got unsupported time [tag %02x]: '%*phN'\n", x509_decode_time()
561 tag, (int)vlen, value); x509_decode_time()
564 pr_debug("Got invalid time [tag %02x]: '%*phN'\n", x509_decode_time()
565 tag, (int)vlen, value); x509_decode_time()
571 unsigned char tag, x509_note_not_before()
575 return x509_decode_time(&ctx->cert->valid_from, hdrlen, tag, value, vlen); x509_note_not_before()
579 unsigned char tag, x509_note_not_after()
583 return x509_decode_time(&ctx->cert->valid_to, hdrlen, tag, value, vlen); x509_note_not_after()
590 unsigned char tag, x509_akid_note_kid()
615 unsigned char tag, x509_akid_note_name()
631 unsigned char tag, x509_akid_note_serial()
139 x509_note_OID(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) x509_note_OID() argument
159 x509_note_tbs_certificate(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) x509_note_tbs_certificate() argument
176 x509_note_pkey_algo(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) x509_note_pkey_algo() argument
228 x509_note_signature(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) x509_note_signature() argument
250 x509_note_serial(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) x509_note_serial() argument
263 x509_extract_name_segment(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) x509_extract_name_segment() argument
292 x509_fabricate_name(struct x509_parse_context *ctx, size_t hdrlen, unsigned char tag, char **_name, size_t vlen) x509_fabricate_name() argument
367 x509_note_issuer(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) x509_note_issuer() argument
377 x509_note_subject(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) x509_note_subject() argument
390 x509_extract_key_data(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) x509_extract_key_data() argument
410 rsa_extract_mpi(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) rsa_extract_mpi() argument
436 x509_process_extension(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) x509_process_extension() argument
495 x509_decode_time(time64_t *_t, size_t hdrlen, unsigned char tag, const unsigned char *value, size_t vlen) x509_decode_time() argument
570 x509_note_not_before(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) x509_note_not_before() argument
578 x509_note_not_after(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) x509_note_not_after() argument
589 x509_akid_note_kid(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) x509_akid_note_kid() argument
614 x509_akid_note_name(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) x509_akid_note_name() argument
630 x509_akid_note_serial(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) x509_akid_note_serial() argument
H A Dmscode_parser.c47 unsigned char tag, mscode_note_content_type()
79 unsigned char tag, mscode_note_digest_algo()
118 unsigned char tag, mscode_note_digest()
46 mscode_note_content_type(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) mscode_note_content_type() argument
78 mscode_note_digest_algo(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) mscode_note_digest_algo() argument
117 mscode_note_digest(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) mscode_note_digest() argument
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_softmac.c40 * tag and the EXTENDED RATE MFIE tag if needed.
41 * It encludes two bytes per tag for the tag itself and its len
57 /* pleace the MFIE rate, tag to the memory (double) poined.
59 * it points after the new MFIE tag added.
63 u8 *tag = *tag_p; ieee80211_MFIE_Brate() local
66 *tag++ = MFIE_TYPE_RATES; ieee80211_MFIE_Brate()
67 *tag++ = 4; ieee80211_MFIE_Brate()
68 *tag++ = IEEE80211_BASIC_RATE_MASK | IEEE80211_CCK_RATE_1MB; ieee80211_MFIE_Brate()
69 *tag++ = IEEE80211_BASIC_RATE_MASK | IEEE80211_CCK_RATE_2MB; ieee80211_MFIE_Brate()
70 *tag++ = IEEE80211_BASIC_RATE_MASK | IEEE80211_CCK_RATE_5MB; ieee80211_MFIE_Brate()
71 *tag++ = IEEE80211_BASIC_RATE_MASK | IEEE80211_CCK_RATE_11MB; ieee80211_MFIE_Brate()
75 *tag_p = tag; ieee80211_MFIE_Brate()
80 u8 *tag = *tag_p; ieee80211_MFIE_Grate() local
84 *tag++ = MFIE_TYPE_RATES_EX; ieee80211_MFIE_Grate()
85 *tag++ = 8; ieee80211_MFIE_Grate()
86 *tag++ = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_6MB; ieee80211_MFIE_Grate()
87 *tag++ = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_9MB; ieee80211_MFIE_Grate()
88 *tag++ = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_12MB; ieee80211_MFIE_Grate()
89 *tag++ = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_18MB; ieee80211_MFIE_Grate()
90 *tag++ = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_24MB; ieee80211_MFIE_Grate()
91 *tag++ = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_36MB; ieee80211_MFIE_Grate()
92 *tag++ = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_48MB; ieee80211_MFIE_Grate()
93 *tag++ = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_54MB; ieee80211_MFIE_Grate()
98 *tag_p = tag; ieee80211_MFIE_Grate()
104 u8 *tag = *tag_p; ieee80211_WMM_Info() local
106 *tag++ = MFIE_TYPE_GENERIC; //0 ieee80211_WMM_Info()
107 *tag++ = 7; ieee80211_WMM_Info()
108 *tag++ = 0x00; ieee80211_WMM_Info()
109 *tag++ = 0x50; ieee80211_WMM_Info()
110 *tag++ = 0xf2; ieee80211_WMM_Info()
111 *tag++ = 0x02;//5 ieee80211_WMM_Info()
112 *tag++ = 0x00; ieee80211_WMM_Info()
113 *tag++ = 0x01; ieee80211_WMM_Info()
116 *tag++ = 0x0f|MAX_SP_Len; ieee80211_WMM_Info()
118 *tag++ = MAX_SP_Len; ieee80211_WMM_Info()
121 *tag++ = MAX_SP_Len; ieee80211_WMM_Info()
123 *tag_p = tag; ieee80211_WMM_Info()
129 u8 *tag = *tag_p; ieee80211_TURBO_Info() local
131 *tag++ = MFIE_TYPE_GENERIC; //0 ieee80211_TURBO_Info()
132 *tag++ = 7; ieee80211_TURBO_Info()
133 *tag++ = 0x00; ieee80211_TURBO_Info()
134 *tag++ = 0xe0; ieee80211_TURBO_Info()
135 *tag++ = 0x4c; ieee80211_TURBO_Info()
136 *tag++ = 0x01;//5 ieee80211_TURBO_Info()
137 *tag++ = 0x02; ieee80211_TURBO_Info()
138 *tag++ = 0x11; ieee80211_TURBO_Info()
139 *tag++ = 0x00; ieee80211_TURBO_Info()
141 *tag_p = tag; ieee80211_TURBO_Info()
327 u8 *tag; ieee80211_probe_req() local
350 tag = (u8 *) skb_put(skb,len+2+rate_len); ieee80211_probe_req()
352 *tag++ = MFIE_TYPE_SSID; ieee80211_probe_req()
353 *tag++ = len; ieee80211_probe_req()
354 memcpy(tag, ieee->current_network.ssid, len); ieee80211_probe_req()
355 tag += len; ieee80211_probe_req()
357 ieee80211_MFIE_Brate(ieee,&tag); ieee80211_probe_req()
358 ieee80211_MFIE_Grate(ieee,&tag); ieee80211_probe_req()
692 u8 *tag; ieee80211_probe_resp() local
791 tag = (u8 *) beacon_buf->info_element[0].data; ieee80211_probe_resp()
793 memcpy(tag, ssid, ssid_len); ieee80211_probe_resp()
795 tag += ssid_len; ieee80211_probe_resp()
797 *(tag++) = MFIE_TYPE_RATES; ieee80211_probe_resp()
798 *(tag++) = rate_len-2; ieee80211_probe_resp()
799 memcpy(tag, ieee->current_network.rates, rate_len-2); ieee80211_probe_resp()
800 tag+=rate_len-2; ieee80211_probe_resp()
802 *(tag++) = MFIE_TYPE_DS_SET; ieee80211_probe_resp()
803 *(tag++) = 1; ieee80211_probe_resp()
804 *(tag++) = ieee->current_network.channel; ieee80211_probe_resp()
807 *(tag++) = MFIE_TYPE_IBSS_SET; ieee80211_probe_resp()
808 *(tag++) = 2; ieee80211_probe_resp()
811 (u8 *)tag); ieee80211_probe_resp()
812 tag+=2; ieee80211_probe_resp()
816 *(tag++) = MFIE_TYPE_ERP; ieee80211_probe_resp()
817 *(tag++) = 1; ieee80211_probe_resp()
818 *(tag++) = erpinfo_content; ieee80211_probe_resp()
821 *(tag++) = MFIE_TYPE_RATES_EX; ieee80211_probe_resp()
822 *(tag++) = rate_ex_len-2; ieee80211_probe_resp()
823 memcpy(tag, ieee->current_network.rates_ex, rate_ex_len-2); ieee80211_probe_resp()
824 tag+=rate_ex_len-2; ieee80211_probe_resp()
833 memcpy(tag, ieee->wpa_ie, ieee->wpa_ie_len); ieee80211_probe_resp()
834 tag += wpa_ie_len; ieee80211_probe_resp()
846 u8 *tag; ieee80211_assoc_resp() local
890 tag = (u8 *) skb_put(skb, rate_len); ieee80211_assoc_resp()
892 ieee80211_MFIE_Brate(ieee, &tag); ieee80211_assoc_resp()
893 ieee80211_MFIE_Grate(ieee, &tag); ieee80211_assoc_resp()
989 u8 *tag;//,*rsn_ie; ieee80211_association_req() local
1111 tag = skb_put(skb, beacon->ssid_len); ieee80211_association_req()
1112 memcpy(tag, beacon->ssid, beacon->ssid_len); ieee80211_association_req()
1114 tag = skb_put(skb, rate_len); ieee80211_association_req()
1116 ieee80211_MFIE_Brate(ieee, &tag); ieee80211_association_req()
1117 ieee80211_MFIE_Grate(ieee, &tag); ieee80211_association_req()
1137 tag = skb_put(skb, ckip_ie_len); ieee80211_association_req()
1138 *tag++ = MFIE_TYPE_AIRONET; ieee80211_association_req()
1139 *tag++ = osCcxAironetIE.Length; ieee80211_association_req()
1140 memcpy(tag, osCcxAironetIE.Octet, osCcxAironetIE.Length); ieee80211_association_req()
1141 tag += osCcxAironetIE.Length; ieee80211_association_req()
1151 tag = skb_put(skb, ccxrm_ie_len); ieee80211_association_req()
1152 *tag++ = MFIE_TYPE_GENERIC; ieee80211_association_req()
1153 *tag++ = osCcxRmCap.Length; ieee80211_association_req()
1154 memcpy(tag, osCcxRmCap.Octet, osCcxRmCap.Length); ieee80211_association_req()
1155 tag += osCcxRmCap.Length; ieee80211_association_req()
1164 tag = skb_put(skb, cxvernum_ie_len); ieee80211_association_req()
1165 *tag++ = MFIE_TYPE_GENERIC; ieee80211_association_req()
1166 *tag++ = osCcxVerNum.Length; ieee80211_association_req()
1167 memcpy(tag, osCcxVerNum.Octet, osCcxVerNum.Length); ieee80211_association_req()
1168 tag += osCcxVerNum.Length; ieee80211_association_req()
1174 tag = skb_put(skb, ht_cap_len); ieee80211_association_req()
1175 *tag++ = MFIE_TYPE_HT_CAP; ieee80211_association_req()
1176 *tag++ = ht_cap_len - 2; ieee80211_association_req()
1177 memcpy(tag, ht_cap_buf,ht_cap_len -2); ieee80211_association_req()
1178 tag += ht_cap_len -2; ieee80211_association_req()
1184 tag = skb_put(skb, wpa_ie_len); ieee80211_association_req()
1186 memcpy(tag, ieee->wpa_ie, ieee->wpa_ie_len); ieee80211_association_req()
1189 tag = skb_put(skb, wmm_info_len); ieee80211_association_req()
1191 ieee80211_WMM_Info(ieee, &tag); ieee80211_association_req()
1194 tag = skb_put(skb, turbo_info_len); ieee80211_association_req()
1196 ieee80211_TURBO_Info(ieee, &tag); ieee80211_association_req()
1203 tag = skb_put(skb, ht_cap_len); ieee80211_association_req()
1204 *tag++ = MFIE_TYPE_GENERIC; ieee80211_association_req()
1205 *tag++ = ht_cap_len - 2; ieee80211_association_req()
1206 memcpy(tag, ht_cap_buf, ht_cap_len - 2); ieee80211_association_req()
1207 tag += ht_cap_len -2; ieee80211_association_req()
1211 tag = skb_put(skb, realtek_ie_len); ieee80211_association_req()
1212 *tag++ = MFIE_TYPE_GENERIC; ieee80211_association_req()
1213 *tag++ = realtek_ie_len - 2; ieee80211_association_req()
1214 memcpy(tag, realtek_ie_buf,realtek_ie_len -2 ); ieee80211_association_req()
1586 u8 *tag; probe_rq_parse() local
1601 tag = skb->data + sizeof (struct ieee80211_hdr_3addr ); probe_rq_parse()
1603 while (tag+1 < skbend){ probe_rq_parse()
1604 if (*tag == 0) { probe_rq_parse()
1605 ssid = tag+2; probe_rq_parse()
1606 ssidlen = *(tag+1); probe_rq_parse()
1609 tag++; /* point to the len field */ probe_rq_parse()
1610 tag = tag + *(tag); /* point to the last data byte of the tag */ probe_rq_parse()
1611 tag++; /* point to the next tag */ probe_rq_parse()
H A Drtl819x_BAProc.c114 u8 *tag = NULL; ieee80211_ADDBA() local
142 //tag += sizeof( struct ieee80211_hdr_3addr); //move to action field ieee80211_ADDBA()
143 tag = (u8 *)skb_put(skb, 9); ieee80211_ADDBA()
144 *tag ++= ACT_CAT_BA; ieee80211_ADDBA()
145 *tag ++= type; ieee80211_ADDBA()
147 *tag ++= pBA->DialogToken; ieee80211_ADDBA()
154 put_unaligned_le16(StatusCode, tag); ieee80211_ADDBA()
155 tag += 2; ieee80211_ADDBA()
159 put_unaligned_le16(pBA->BaParamSet.shortData, tag); ieee80211_ADDBA()
160 tag += 2; ieee80211_ADDBA()
163 put_unaligned_le16(pBA->BaTimeoutValue, tag); ieee80211_ADDBA()
164 tag += 2; ieee80211_ADDBA()
169 memcpy(tag, (u8 *)&(pBA->BaStartSeqCtrl), 2); ieee80211_ADDBA()
170 tag += 2; ieee80211_ADDBA()
199 u8 *tag = NULL; ieee80211_DELBA() local
227 tag = (u8 *)skb_put(skb, 6); ieee80211_DELBA()
229 *tag ++= ACT_CAT_BA; ieee80211_DELBA()
230 *tag ++= ACT_DELBA; ieee80211_DELBA()
234 put_unaligned_le16(DelbaParamSet.shortData, tag); ieee80211_DELBA()
235 tag += 2; ieee80211_DELBA()
238 put_unaligned_le16(ReasonCode, tag); ieee80211_DELBA()
239 tag += 2; ieee80211_DELBA()
338 u8 *dst = NULL, *pDialogToken = NULL, *tag = NULL; ieee80211_rx_ADDBAReq() local
356 tag = (u8 *)req; ieee80211_rx_ADDBAReq()
358 tag += sizeof(struct ieee80211_hdr_3addr); ieee80211_rx_ADDBAReq()
359 pDialogToken = tag + 2; //category+action ieee80211_rx_ADDBAReq()
360 pBaParamSet = (PBA_PARAM_SET)(tag + 3); //+DialogToken ieee80211_rx_ADDBAReq()
361 pBaTimeoutVal = (u16 *)(tag + 5); ieee80211_rx_ADDBAReq()
441 u8 *dst = NULL, *pDialogToken = NULL, *tag = NULL; ieee80211_rx_ADDBARsp() local
454 tag = (u8 *)rsp; ieee80211_rx_ADDBARsp()
456 tag += sizeof(struct ieee80211_hdr_3addr); ieee80211_rx_ADDBARsp()
457 pDialogToken = tag + 2; ieee80211_rx_ADDBARsp()
458 pStatusCode = (u16 *)(tag + 3); ieee80211_rx_ADDBARsp()
459 pBaParamSet = (PBA_PARAM_SET)(tag + 5); ieee80211_rx_ADDBARsp()
460 pBaTimeoutVal = (u16 *)(tag + 7); ieee80211_rx_ADDBARsp()
/linux-4.1.27/drivers/dma/ioat/
H A Ddca.c37 * Bit 7 of a tag map entry is the "valid" bit, if it is set then bits 0:6
38 * contain the bit number of the APIC ID to map into the DCA tag. If the valid
39 * bit is not set, then the value must be 0 or 1 and defines the bit in the tag.
49 /* expected tag map bytes for I/OAT ver.2 */
56 /* verify if tag map matches expected values */ dca2_tag_map_valid()
68 * I/OAT device. Software needs direct support for their tag mappings.
201 u8 entry, tag; ioat_dca_get_tag() local
203 tag = 0; ioat_dca_get_tag()
214 tag |= (value << i); ioat_dca_get_tag()
216 return tag; ioat_dca_get_tag()
297 /* copy over the APIC ID to DCA tag mapping */ ioat_dca_init()
376 u8 tag; ioat2_dca_get_tag() local
378 tag = ioat_dca_get_tag(dca, dev, cpu); ioat2_dca_get_tag()
379 tag = (~tag) & 0x1F; ioat2_dca_get_tag()
380 return tag; ioat2_dca_get_tag()
459 /* copy out the APIC to DCA tag map */ ioat2_dca_init()
552 u8 tag; ioat3_dca_get_tag() local
558 tag = 0; ioat3_dca_get_tag()
573 tag |= (value << i); ioat3_dca_get_tag()
576 return tag; ioat3_dca_get_tag()
607 * If the tag map is not programmed by the BIOS the default is: dca3_tag_map_invalid()
611 * 0x1F and 0x00. 0x00 is an invalid DCA tag so we know that dca3_tag_map_invalid()
680 /* copy out the APIC to DCA tag map */ ioat3_dca_init()
/linux-4.1.27/drivers/scsi/bfa/
H A Dbfi_ms.h352 __be16 fcxp_tag; /* driver request tag */
354 __be16 vf_id; /* vsan tag if applicable */
359 u8 lp_fwtag; /* lport tag */
372 __be16 fcxp_tag; /* send request tag */
392 u16 buf_tag; /* buffer tag */
399 u16 buf_tag; /* buffer tag */
512 lp_fwtag:8; /* local port tag */
676 __be16 io_tag; /* I/O tag */
698 * io-tag can be reused.
701 * - io-tag can be reused.
705 * - io-tag cannot be reused yet.
709 * - io-tag cannot be reused yet.
713 * - io-tag cannot be reused yet.
718 * this IO with a different IO tag
719 * - io-tag cannot be used yet.
725 * - io-tag cannot be used yet.
733 * - io-tag can be reused.
740 * - io-tag can be reused.
742 * BFI_IOIM_STS_RES_FREE : Firmware has completed using io-tag
744 * - io-tag can be reused.
750 * - io-tag cannot be used yet.
753 * CRC err or Ref Tag err or App tag err.
754 * - io-tag can be reused.
758 * - io-tag can be reused.
762 * - io-tag can be reused.
781 __be16 io_tag; /* completed IO tag */
784 u8 reuse_io_tag; /* IO tag can be reused */
785 u16 abort_tag; /* host abort request tag */
796 __be16 io_tag; /* I/O tag */
797 u16 abort_tag; /* unique request tag */
815 __be16 tsk_tag; /* task management tag */
825 __be16 tsk_tag; /* task management tag */
843 BFI_TSKIM_STS_UTAG = 12, /* unknown tag for request */
848 __be16 tsk_tag; /* task mgmt cmnd tag */
/linux-4.1.27/drivers/media/common/
H A Dtveeprom.c450 ** tuner type: tag [00].05 or [0a].01 (index into hauppauge_tuner) tveeprom_hauppauge_analog()
451 ** tuner fmts: tag [00].04 or [0a].00 (bitmask index into tveeprom_hauppauge_analog()
453 ** radio: tag [00].{last} or [0e].00 (bitmask. bit2=FM) tveeprom_hauppauge_analog()
454 ** audio proc: tag [02].01 or [05].00 (mask with 0x7f) tveeprom_hauppauge_analog()
455 ** decoder proc: tag [09].01) tveeprom_hauppauge_analog()
458 ** model: tag [00].07-08 or [06].00-01 tveeprom_hauppauge_analog()
459 ** revision: tag [00].09-0b or [06].04-06 tveeprom_hauppauge_analog()
460 ** serial#: tag [01].05-07 or [04].04-06 tveeprom_hauppauge_analog()
465 int i, j, len, done, beenhere, tag, start; tveeprom_hauppauge_analog() local
527 /* process by tag */ tveeprom_hauppauge_analog()
528 tag = eeprom_data[i]; tveeprom_hauppauge_analog()
529 switch (tag) { tveeprom_hauppauge_analog()
531 /* tag: 'Comprehensive' */ tveeprom_hauppauge_analog()
535 /* old style tag, don't know how to detect tveeprom_hauppauge_analog()
547 /* tag: 'SerialID' */ tveeprom_hauppauge_analog()
555 /* tag 'AudioInfo' tveeprom_hauppauge_analog()
566 /* case 0x03: tag 'EEInfo' */ tveeprom_hauppauge_analog()
569 /* tag 'SerialID2' */ tveeprom_hauppauge_analog()
588 /* tag 'Audio2' tveeprom_hauppauge_analog()
601 /* tag 'ModelRev' */ tveeprom_hauppauge_analog()
614 /* tag 'Details': according to Hauppauge not interesting tveeprom_hauppauge_analog()
618 /* there is no tag 0x08 defined */ tveeprom_hauppauge_analog()
621 /* tag 'Video' */ tveeprom_hauppauge_analog()
626 /* tag 'Tuner' */ tveeprom_hauppauge_analog()
642 /* tag 'Inputs': according to Hauppauge this is specific tveeprom_hauppauge_analog()
647 /* case 0x0c: tag 'Balun' */ tveeprom_hauppauge_analog()
648 /* case 0x0d: tag 'Teletext' */ tveeprom_hauppauge_analog()
651 /* tag: 'Radio' */ tveeprom_hauppauge_analog()
656 /* tag 'IRInfo' */ tveeprom_hauppauge_analog()
660 /* case 0x10: tag 'VBIInfo' */ tveeprom_hauppauge_analog()
661 /* case 0x11: tag 'QCInfo' */ tveeprom_hauppauge_analog()
662 /* case 0x12: tag 'InfoBits' */ tveeprom_hauppauge_analog()
665 tveeprom_dbg("Not sure what to do with tag [%02x]\n", tveeprom_hauppauge_analog()
666 tag); tveeprom_hauppauge_analog()
/linux-4.1.27/drivers/scsi/
H A Dscsi_logging.c79 const char *name, int tag) sdev_format_header()
90 if (tag >= 0) sdev_format_header()
92 "tag#%d ", tag); sdev_format_header()
137 scmd->request->tag); scmd_printk()
234 scmd_name(cmd), cmd->request->tag); scsi_print_command()
260 cmd->request->tag); scsi_print_command()
339 scsi_log_dump_sense(const struct scsi_device *sdev, const char *name, int tag, scsi_log_dump_sense() argument
355 name, tag); scsi_log_dump_sense()
366 int tag, const struct scsi_sense_hdr *sshdr) scsi_log_print_sense_hdr()
374 off = sdev_format_header(logbuf, logbuf_len, name, tag); scsi_log_print_sense_hdr()
382 off = sdev_format_header(logbuf, logbuf_len, name, tag); scsi_log_print_sense_hdr()
390 scsi_log_print_sense(const struct scsi_device *sdev, const char *name, int tag, scsi_log_print_sense() argument
396 scsi_log_print_sense_hdr(sdev, name, tag, &sshdr); scsi_log_print_sense()
398 scsi_log_dump_sense(sdev, name, tag, sense_buffer, sense_len); scsi_log_print_sense()
423 scsi_log_print_sense(cmd->device, scmd_name(cmd), cmd->request->tag, scsi_print_sense()
442 scmd_name(cmd), cmd->request->tag); scsi_print_result()
78 sdev_format_header(char *logbuf, size_t logbuf_len, const char *name, int tag) sdev_format_header() argument
365 scsi_log_print_sense_hdr(const struct scsi_device *sdev, const char *name, int tag, const struct scsi_sense_hdr *sshdr) scsi_log_print_sense_hdr() argument
H A Dstex.c216 __le16 tag; member in struct:req_msg
228 __le16 tag; member in struct:status_msg
503 stex_send_cmd(struct st_hba *hba, struct req_msg *req, u16 tag) stex_send_cmd() argument
505 req->tag = cpu_to_le16(tag); stex_send_cmd()
507 hba->ccb[tag].req = req; stex_send_cmd()
516 stex_ss_send_cmd(struct st_hba *hba, struct req_msg *req, u16 tag) stex_ss_send_cmd() argument
522 req->tag = cpu_to_le16(tag); stex_ss_send_cmd()
524 hba->ccb[tag].req = req; stex_ss_send_cmd()
527 cmd = hba->ccb[tag].cmd; stex_ss_send_cmd()
534 addr += (hba->ccb[tag].sg_count+4)/11; stex_ss_send_cmd()
563 u16 tag; stex_queuecommand_lck() local
650 tag = cmd->request->tag; stex_queuecommand_lck()
652 if (unlikely(tag >= host->can_queue)) stex_queuecommand_lck()
670 hba->ccb[tag].cmd = cmd; stex_queuecommand_lck()
671 hba->ccb[tag].sense_bufflen = SCSI_SENSE_BUFFERSIZE; stex_queuecommand_lck()
672 hba->ccb[tag].sense_buffer = cmd->sense_buffer; stex_queuecommand_lck()
674 if (!hba->map_sg(hba, req, &hba->ccb[tag])) { stex_queuecommand_lck()
675 hba->ccb[tag].sg_count = 0; stex_queuecommand_lck()
679 hba->send(hba, req, tag); stex_queuecommand_lck()
757 u16 tag; stex_mu_intr() local
787 tag = le16_to_cpu(resp->tag); stex_mu_intr()
788 if (unlikely(tag >= hba->host->can_queue)) { stex_mu_intr()
790 "(%s): invalid tag\n", pci_name(hba->pdev)); stex_mu_intr()
795 ccb = &hba->ccb[tag]; stex_mu_intr()
874 u16 tag; stex_ss_mu_intr() local
892 tag = (u16)value; stex_ss_mu_intr()
893 if (unlikely(tag >= hba->host->can_queue)) { stex_ss_mu_intr()
895 "(%s): invalid tag\n", pci_name(hba->pdev)); stex_ss_mu_intr()
900 ccb = &hba->ccb[tag]; stex_ss_mu_intr()
1141 u16 tag = cmd->request->tag; stex_abort() local
1151 if (tag < host->can_queue && stex_abort()
1152 hba->ccb[tag].req && hba->ccb[tag].cmd == cmd) stex_abort()
1153 hba->wait_ccb = &hba->ccb[tag]; stex_abort()
1272 u16 tag; stex_do_reset() local
1307 for (tag = 0; tag < hba->host->can_queue; tag++) { stex_do_reset()
1308 ccb = &hba->ccb[tag]; stex_do_reset()
1709 u16 tag = 0; stex_hba_stop() local
1730 hba->ccb[tag].cmd = NULL; stex_hba_stop()
1731 hba->ccb[tag].sg_count = 0; stex_hba_stop()
1732 hba->ccb[tag].sense_bufflen = 0; stex_hba_stop()
1733 hba->ccb[tag].sense_buffer = NULL; stex_hba_stop()
1734 hba->ccb[tag].req_type = PASSTHRU_REQ_TYPE; stex_hba_stop()
1736 hba->send(hba, req, tag); stex_hba_stop()
1740 while (hba->ccb[tag].req_type & PASSTHRU_REQ_TYPE) { stex_hba_stop()
1742 hba->ccb[tag].req_type = 0; stex_hba_stop()
H A Dps3rom.c142 atapi_cmnd.arglen, &dev->tag); ps3rom_atapi_request()
182 sectors, 0, dev->bounce_lpar, &dev->tag); ps3rom_read_request()
205 sectors, 0, dev->bounce_lpar, &dev->tag); ps3rom_write_request()
281 u64 tag, status; ps3rom_interrupt() local
284 res = lv1_storage_get_async_status(dev->sbd.dev_id, &tag, &status); ps3rom_interrupt()
291 if (tag != dev->tag) ps3rom_interrupt()
293 "%s:%u: tag mismatch, got %llx, expected %llx\n", ps3rom_interrupt()
294 __func__, __LINE__, tag, dev->tag); ps3rom_interrupt()
H A Dhptiop.c48 static void hptiop_finish_scsi_req(struct hptiop_hba *hba, u32 tag,
50 static void hptiop_host_request_callback_itl(struct hptiop_hba *hba, u32 tag);
51 static void hptiop_iop_request_callback_itl(struct hptiop_hba *hba, u32 tag);
85 static void hptiop_request_callback_itl(struct hptiop_hba *hba, u32 tag) hptiop_request_callback_itl() argument
87 if (tag & IOPMU_QUEUE_ADDR_HOST_BIT) hptiop_request_callback_itl()
89 tag & ~IOPMU_QUEUE_ADDR_HOST_BIT); hptiop_request_callback_itl()
91 hptiop_iop_request_callback_itl(hba, tag); hptiop_request_callback_itl()
183 static void hptiop_request_callback_mv(struct hptiop_hba *hba, u64 tag) hptiop_request_callback_mv() argument
185 u32 req_type = (tag >> 5) & 0x7; hptiop_request_callback_mv()
188 dprintk("hptiop_request_callback_mv: tag=%llx\n", tag); hptiop_request_callback_mv()
190 BUG_ON((tag & MVIOP_MU_QUEUE_REQUEST_RETURN_CONTEXT) == 0); hptiop_request_callback_mv()
199 req = hba->reqs[tag >> 8].req_virt; hptiop_request_callback_mv()
200 if (likely(tag & MVIOP_MU_QUEUE_REQUEST_RESULT_BIT)) hptiop_request_callback_mv()
203 hptiop_finish_scsi_req(hba, tag>>8, req); hptiop_request_callback_mv()
228 u64 tag; iop_intr_mv() local
230 while ((tag = mv_outbound_read(hba->u.mv.mu))) iop_intr_mv()
231 hptiop_request_callback_mv(hba, tag); iop_intr_mv()
724 static void hptiop_finish_scsi_req(struct hptiop_hba *hba, u32 tag, hptiop_finish_scsi_req() argument
730 "result=%d, context=0x%x tag=%d\n", hptiop_finish_scsi_req()
732 req->header.context, tag); hptiop_finish_scsi_req()
737 scp = hba->reqs[tag].scp; hptiop_finish_scsi_req()
784 free_req(hba, &hba->reqs[tag]); hptiop_finish_scsi_req()
790 u32 tag; hptiop_host_request_callback_itl() local
793 tag = _tag & ~IOPMU_QUEUE_REQUEST_RESULT_BIT; hptiop_host_request_callback_itl()
794 req = hba->reqs[tag].req_virt; hptiop_host_request_callback_itl()
798 tag = _tag; hptiop_host_request_callback_itl()
799 req = hba->reqs[tag].req_virt; hptiop_host_request_callback_itl()
802 hptiop_finish_scsi_req(hba, tag, req); hptiop_host_request_callback_itl()
805 void hptiop_iop_request_callback_itl(struct hptiop_hba *hba, u32 tag) hptiop_iop_request_callback_itl() argument
812 ((unsigned long)hba->u.itl.iop + tag); hptiop_iop_request_callback_itl()
814 "result=%d, context=0x%x tag=%d\n", hptiop_iop_request_callback_itl()
816 readl(&req->context), tag); hptiop_iop_request_callback_itl()
841 writel(tag, &hba->u.itl.iop->outbound_queue); hptiop_iop_request_callback_itl()
H A Dsd_dif.c88 sd_printk(KERN_NOTICE, sdkp, "DIF application tag size %u\n", sd_dif_config_host()
101 * reference tag is seeded in the CDB. This gives us the potential to
107 * Type 3 does not have a reference tag so no remapping is required.
156 * Remap physical sector values in the reference tag to the virtual
/linux-4.1.27/arch/powerpc/kernel/
H A Ddbell.c25 unsigned long tag = mfspr(SPRN_DOORBELL_CPUTAG) & PPC_DBELL_TAG_MASK; doorbell_setup_this_cpu() local
27 smp_muxed_ipi_set_data(smp_processor_id(), tag); doorbell_setup_this_cpu() local
/linux-4.1.27/net/ipv4/netfilter/
H A Dnf_nat_snmp_basic.c172 static unsigned char asn1_tag_decode(struct asn1_ctx *ctx, unsigned int *tag) asn1_tag_decode() argument
176 *tag = 0; asn1_tag_decode()
182 *tag <<= 7; asn1_tag_decode()
183 *tag |= ch & 0x7F; asn1_tag_decode()
191 unsigned int *tag) asn1_id_decode()
200 *tag = (ch & 0x1F); asn1_id_decode()
202 if (*tag == 0x1F) { asn1_id_decode()
203 if (!asn1_tag_decode(ctx, tag)) asn1_id_decode()
250 unsigned int *tag) asn1_header_decode()
254 if (!asn1_id_decode(ctx, cls, con, tag)) asn1_header_decode()
628 unsigned int tag; member in struct:snmp_cnv
653 static unsigned char snmp_tag_cls2syntax(unsigned int tag, snmp_tag_cls2syntax() argument
662 if (cnv->tag == tag && cnv->class == cls) { snmp_tag_cls2syntax()
674 unsigned int cls, con, tag, len, idlen; snmp_object_decode() local
684 if (!asn1_header_decode(ctx, &eoc, &cls, &con, &tag)) snmp_object_decode()
687 if (cls != ASN1_UNI || con != ASN1_CON || tag != ASN1_SEQ) snmp_object_decode()
690 if (!asn1_header_decode(ctx, &end, &cls, &con, &tag)) snmp_object_decode()
693 if (cls != ASN1_UNI || con != ASN1_PRI || tag != ASN1_OJI) snmp_object_decode()
699 if (!asn1_header_decode(ctx, &end, &cls, &con, &tag)) { snmp_object_decode()
710 if (!snmp_tag_cls2syntax(tag, cls, &type)) { snmp_object_decode()
833 unsigned int cls, con, tag; snmp_request_decode() local
836 if (!asn1_header_decode(ctx, &end, &cls, &con, &tag)) snmp_request_decode()
839 if (cls != ASN1_UNI || con != ASN1_PRI || tag != ASN1_INT) snmp_request_decode()
845 if (!asn1_header_decode(ctx, &end, &cls, &con, &tag)) snmp_request_decode()
848 if (cls != ASN1_UNI || con != ASN1_PRI || tag != ASN1_INT) snmp_request_decode()
854 if (!asn1_header_decode(ctx, &end, &cls, &con, &tag)) snmp_request_decode()
857 if (cls != ASN1_UNI || con != ASN1_PRI || tag != ASN1_INT) snmp_request_decode()
928 unsigned int cls, con, tag, len; snmp_trap_decode() local
931 if (!asn1_header_decode(ctx, &end, &cls, &con, &tag)) snmp_trap_decode()
934 if (cls != ASN1_UNI || con != ASN1_PRI || tag != ASN1_OJI) snmp_trap_decode()
940 if (!asn1_header_decode(ctx, &end, &cls, &con, &tag)) snmp_trap_decode()
943 if (!((cls == ASN1_APL && con == ASN1_PRI && tag == SNMP_IPA) || snmp_trap_decode()
944 (cls == ASN1_UNI && con == ASN1_PRI && tag == ASN1_OTS))) snmp_trap_decode()
956 if (!asn1_header_decode(ctx, &end, &cls, &con, &tag)) snmp_trap_decode()
959 if (cls != ASN1_UNI || con != ASN1_PRI || tag != ASN1_INT) snmp_trap_decode()
965 if (!asn1_header_decode(ctx, &end, &cls, &con, &tag)) snmp_trap_decode()
968 if (cls != ASN1_UNI || con != ASN1_PRI || tag != ASN1_INT) snmp_trap_decode()
974 if (!asn1_header_decode(ctx, &end, &cls, &con, &tag)) snmp_trap_decode()
977 if (!((cls == ASN1_APL && con == ASN1_PRI && tag == SNMP_TIT) || snmp_trap_decode()
978 (cls == ASN1_UNI && con == ASN1_PRI && tag == ASN1_INT))) snmp_trap_decode()
1023 unsigned int cls, con, tag, vers, pdutype; snmp_parse_mangle() local
1036 if (!asn1_header_decode(&ctx, &eoc, &cls, &con, &tag)) snmp_parse_mangle()
1038 if (cls != ASN1_UNI || con != ASN1_CON || tag != ASN1_SEQ) snmp_parse_mangle()
1044 if (!asn1_header_decode(&ctx, &end, &cls, &con, &tag)) snmp_parse_mangle()
1046 if (cls != ASN1_UNI || con != ASN1_PRI || tag != ASN1_INT) snmp_parse_mangle()
1058 if (!asn1_header_decode (&ctx, &end, &cls, &con, &tag)) snmp_parse_mangle()
1060 if (cls != ASN1_UNI || con != ASN1_PRI || tag != ASN1_OTS) snmp_parse_mangle()
1130 if (!asn1_header_decode(&ctx, &eoc, &cls, &con, &tag)) snmp_parse_mangle()
1133 if (cls != ASN1_UNI || con != ASN1_CON || tag != ASN1_SEQ) snmp_parse_mangle()
188 asn1_id_decode(struct asn1_ctx *ctx, unsigned int *cls, unsigned int *con, unsigned int *tag) asn1_id_decode() argument
246 asn1_header_decode(struct asn1_ctx *ctx, unsigned char **eoc, unsigned int *cls, unsigned int *con, unsigned int *tag) asn1_header_decode() argument
/linux-4.1.27/drivers/char/
H A Dps3flash.c39 int tag; /* Start sector of buffer, -1 if invalid */ member in struct:ps3flash_private
65 if (!priv->dirty || priv->tag < 0) ps3flash_writeback()
68 res = ps3flash_read_write_sectors(dev, priv->tag, 1); ps3flash_writeback()
81 if (start_sector == priv->tag) ps3flash_fetch()
88 priv->tag = -1; ps3flash_fetch()
94 priv->tag = start_sector; ps3flash_fetch()
211 else if (sector != priv->tag) ps3flash_write()
231 priv->tag = sector; ps3flash_write()
303 u64 tag, status; ps3flash_interrupt() local
305 res = lv1_storage_get_async_status(dev->sbd.dev_id, &tag, &status); ps3flash_interrupt()
307 if (tag != dev->tag) ps3flash_interrupt()
309 "%s:%u: tag mismatch, got %llx, expected %llx\n", ps3flash_interrupt()
310 __func__, __LINE__, tag, dev->tag); ps3flash_interrupt()
384 priv->tag = -1; ps3flash_probe()
/linux-4.1.27/arch/xtensa/include/asm/
H A Dbootparam.h27 #define BP_TAG_FIRST 0x7B0B /* first tag with a version number */
28 #define BP_TAG_LAST 0x7E0B /* last tag */
35 unsigned short id; /* tag id */
/linux-4.1.27/arch/avr32/boot/u-boot/
H A Dhead.S19 * r11 points to a tag table providing information about
48 /* Check if the boot loader actually provided a tag table */
54 * Save the tag table address for later use. This must be done
/linux-4.1.27/drivers/scsi/pm8001/
H A Dpm8001_sas.c45 * pm8001_find_tag - from sas task to find out tag that belongs to this task
47 * @tag: the found tag associated with the task
49 static int pm8001_find_tag(struct sas_task *task, u32 *tag) pm8001_find_tag() argument
54 *tag = ccb->ccb_tag; pm8001_find_tag()
61 * pm8001_tag_free - free the no more needed tag
63 * @tag: the found tag associated with the task
65 void pm8001_tag_free(struct pm8001_hba_info *pm8001_ha, u32 tag) pm8001_tag_free() argument
68 clear_bit(tag, bitmap); pm8001_tag_free()
72 * pm8001_tag_alloc - allocate a empty tag for task used.
74 * @tag_out: the found empty tag .
78 unsigned int tag; pm8001_tag_alloc() local
83 tag = find_first_zero_bit(bitmap, pm8001_ha->tags_num); pm8001_tag_alloc()
84 if (tag >= pm8001_ha->tags_num) { pm8001_tag_alloc()
88 set_bit(tag, bitmap); pm8001_tag_alloc()
90 *tag_out = tag; pm8001_tag_alloc()
278 u32 pm8001_get_ncq_tag(struct sas_task *task, u32 *tag) pm8001_get_ncq_tag() argument
284 *tag = qc->tag; pm8001_get_ncq_tag()
362 u32 tag = 0xdeadbeef, rc, n_elem = 0; pm8001_task_exec() local
398 rc = pm8001_tag_alloc(pm8001_ha, &tag); pm8001_task_exec()
401 ccb = &pm8001_ha->ccb_info[tag]; pm8001_task_exec()
420 ccb->ccb_tag = tag; pm8001_task_exec()
461 pm8001_tag_free(pm8001_ha, tag); pm8001_task_exec()
907 u32 tag; pm8001_open_reject_retry() local
921 tag = ccb->ccb_tag; pm8001_open_reject_retry()
922 if (!tag || (tag == 0xFFFFFFFF)) pm8001_open_reject_retry()
944 pm8001_ccb_task_free(pm8001_ha, task, ccb, tag); pm8001_open_reject_retry()
948 pm8001_ccb_task_free(pm8001_ha, task, ccb, tag); pm8001_open_reject_retry()
1099 u32 tag = 0xdeadbeef; pm8001_query_task() local
1114 rc = pm8001_find_tag(task, &tag); pm8001_query_task()
1124 tmf_task.tag_of_task_to_be_managed = tag; pm8001_query_task()
1150 u32 tag = 0xdeadbeef; pm8001_abort_task() local
1175 rc = pm8001_find_tag(task, &tag); pm8001_abort_task()
1177 printk(KERN_INFO "No such tag in %s\n", __func__); pm8001_abort_task()
1185 tmf_task.tag_of_task_to_be_managed = tag; pm8001_abort_task()
1188 pm8001_dev->sas_device, 0, tag); pm8001_abort_task()
1194 rc = pm8001_find_tag(task, &tag); pm8001_abort_task()
1196 printk(KERN_INFO "No such tag in %s\n", __func__); pm8001_abort_task()
1201 pm8001_dev->sas_device, 0, tag); pm8001_abort_task()
1207 rc = pm8001_find_tag(task, &tag); pm8001_abort_task()
1209 printk(KERN_INFO "No such tag in %s\n", __func__); pm8001_abort_task()
1214 pm8001_dev->sas_device, 0, tag); pm8001_abort_task()
H A Dpm80xx_hwi.h248 __le32 tag; member in struct:phy_start_req
260 __le32 tag; member in struct:phy_stop_req
310 __le32 tag; member in struct:sata_completion_resp
345 __le32 tag; member in struct:reg_dev_req
361 __le32 tag; member in struct:dereg_dev_req
371 __le32 tag; member in struct:dev_reg_resp
382 __le32 tag; member in struct:local_phy_ctl_req
392 __le32 tag; member in struct:local_phy_ctl_resp
407 __le32 tag; member in struct:port_ctl_req
419 __le32 tag; member in struct:hw_event_ack_req
431 __le32 tag; member in struct:phy_start_resp
442 __le32 tag; member in struct:phy_stop_resp
453 __le32 tag; member in struct:ssp_completion_resp
468 __le32 tag; member in struct:sata_event_resp
491 __le32 tag; member in struct:ssp_event_resp
526 __le32 tag; member in struct:smp_req
553 __le32 tag; member in struct:smp_completion_resp
564 __le32 tag; member in struct:task_abort_req
581 __le32 tag; member in struct:task_abort_resp
592 __le32 tag; member in struct:sas_diag_start_end_req
602 __le32 tag; member in struct:sas_diag_execute_req
619 __le32 tag; member in struct:set_dev_state_req
632 __le32 tag; member in struct:sata_start_req
666 __le32 tag; member in struct:ssp_ini_tm_start_req
695 __le32 tag; member in struct:ssp_ini_io_start_req
707 /* user defined tag mask for enc I/O */
730 __le32 tag; member in struct:ssp_dif_enc_io_req
766 __le32 tag; member in struct:fw_flash_Update_req
785 __le32 tag; member in struct:fw_flash_Update_resp
795 __le32 tag; member in struct:get_nvm_data_req
806 __le32 tag; member in struct:set_nvm_data_req
821 __le32 tag; member in struct:set_ctrl_cfg_req
831 __le32 tag; member in struct:get_ctrl_cfg_req
842 __le32 tag; member in struct:kek_mgmt_req
854 __le32 tag; member in struct:dek_mgmt_req
869 __le32 tag; member in struct:set_phy_profile_req
879 __le32 tag; member in struct:get_phy_profile_req
889 __le32 tag; member in struct:ext_flash_partition_req
917 __le32 tag; member in struct:get_nvm_data_resp
929 __le32 tag; member in struct:sas_diag_start_end_resp
940 __le32 tag; member in struct:sas_diag_execute_resp
953 __le32 tag; member in struct:set_dev_state_resp
966 __le32 tag; member in struct:set_ctrl_cfg_resp
973 __le32 tag; member in struct:get_ctrl_cfg_resp
980 __le32 tag; member in struct:kek_mgmt_resp
988 __le32 tag; member in struct:dek_mgmt_resp
997 __le32 tag; member in struct:get_phy_profile_resp
1004 __le32 tag; member in struct:flash_op_ext_resp
1013 __le32 tag; member in struct:set_phy_profile_resp
1186 * The key tag supplied in the encryption IOMB does not match with
H A Dpm8001_hwi.c1517 u32 tag; pm8001_work_fn() local
1539 tag = ccb->ccb_tag; pm8001_work_fn()
1540 if ((tag != 0xFFFFFFFF) && (ccb->task == t)) pm8001_work_fn()
1564 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); pm8001_work_fn()
1568 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); pm8001_work_fn()
1577 u32 tag; pm8001_work_fn() local
1620 tag = ccb->ccb_tag; pm8001_work_fn()
1621 if ((tag != 0xFFFFFFFF) && (ccb->task == t)) pm8001_work_fn()
1751 task_abort.tag = cpu_to_le32(ccb_tag); pm8001_send_abort_all()
1785 pm8001_printk("cannot allocate tag !!!\n")); pm8001_send_read_log()
1821 sata_cmd.tag = cpu_to_le32(ccb_tag); pm8001_send_read_log()
1853 u32 tag; mpi_ssp_completion() local
1860 tag = le32_to_cpu(psspPayload->tag); mpi_ssp_completion()
1861 ccb = &pm8001_ha->ccb_info[tag]; mpi_ssp_completion()
2087 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_ssp_completion()
2090 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_ssp_completion()
2107 u32 tag = le32_to_cpu(psspPayload->tag); mpi_ssp_event() local
2111 ccb = &pm8001_ha->ccb_info[tag]; mpi_ssp_event()
2275 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_ssp_event()
2278 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_ssp_event()
2292 u32 tag; mpi_sata_completion() local
2307 tag = le32_to_cpu(psataPayload->tag); mpi_sata_completion()
2309 if (!tag) { mpi_sata_completion()
2311 pm8001_printk("tag null\n")); mpi_sata_completion()
2314 ccb = &pm8001_ha->ccb_info[tag]; mpi_sata_completion()
2401 /* Free the tag */ mpi_sata_completion()
2402 pm8001_tag_free(pm8001_ha, tag); mpi_sata_completion()
2512 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_completion()
2528 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_completion()
2552 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_completion()
2615 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_completion()
2635 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_completion()
2663 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_sata_completion()
2666 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_completion()
2680 u32 tag = le32_to_cpu(psataPayload->tag); mpi_sata_event() local
2685 ccb = &pm8001_ha->ccb_info[tag]; mpi_sata_event()
2708 ccb = &pm8001_ha->ccb_info[tag]; mpi_sata_event()
2718 "port_id:0x%x, device_id:0x%x, tag:0x%x, event:0x%x\n", mpi_sata_event()
2719 port_id, dev_id, tag, event)); mpi_sata_event()
2775 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_event()
2883 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_sata_event()
2886 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_event()
2899 u32 tag; mpi_smp_completion() local
2906 tag = le32_to_cpu(psmpPayload->tag); mpi_smp_completion()
2908 ccb = &pm8001_ha->ccb_info[tag]; mpi_smp_completion()
3083 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_smp_completion()
3086 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_smp_completion()
3097 u32 tag = le32_to_cpu(pPayload->tag); pm8001_mpi_set_dev_state_resp() local
3098 struct pm8001_ccb_info *ccb = &pm8001_ha->ccb_info[tag]; pm8001_mpi_set_dev_state_resp()
3110 pm8001_tag_free(pm8001_ha, tag); pm8001_mpi_set_dev_state_resp()
3117 u32 tag = le32_to_cpu(pPayload->tag); pm8001_mpi_set_nvmd_resp() local
3118 struct pm8001_ccb_info *ccb = &pm8001_ha->ccb_info[tag]; pm8001_mpi_set_nvmd_resp()
3129 pm8001_tag_free(pm8001_ha, tag); pm8001_mpi_set_nvmd_resp()
3138 u32 tag = le32_to_cpu(pPayload->tag); pm8001_mpi_get_nvmd_resp() local
3139 struct pm8001_ccb_info *ccb = &pm8001_ha->ccb_info[tag]; pm8001_mpi_get_nvmd_resp()
3194 pm8001_tag_free(pm8001_ha, tag); pm8001_mpi_get_nvmd_resp()
3335 payload.tag = cpu_to_le32(1); pm8001_hw_event_ack_req()
3554 htag = le32_to_cpu(registerRespPayload->tag); pm8001_mpi_reg_resp()
3633 u32 tag = le32_to_cpu(ppayload->tag); pm8001_mpi_fw_flash_update_resp() local
3634 struct pm8001_ccb_info *ccb = &pm8001_ha->ccb_info[tag]; pm8001_mpi_fw_flash_update_resp()
3681 pm8001_tag_free(pm8001_ha, tag); pm8001_mpi_fw_flash_update_resp()
3708 u32 tag, scp; pm8001_mpi_task_abort_resp() local
3716 tag = le32_to_cpu(pPayload->tag); pm8001_mpi_task_abort_resp()
3717 if (!tag) { pm8001_mpi_task_abort_resp()
3724 ccb = &pm8001_ha->ccb_info[tag]; pm8001_mpi_task_abort_resp()
3737 "tag = 0x%x, scp= 0x%x\n", status, tag, scp)); pm8001_mpi_task_abort_resp()
3754 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); pm8001_mpi_task_abort_resp()
3758 pm8001_tag_free(pm8001_ha, tag); pm8001_mpi_task_abort_resp()
4209 psmp_cmd->tag = hTag; build_smp_cmd()
4257 smp_cmd.tag = cpu_to_le32(ccb->ccb_tag); pm8001_chip_smp_req()
4266 build_smp_cmd(pm8001_dev->device_id, smp_cmd.tag, &smp_cmd); pm8001_chip_smp_req()
4295 u32 tag = ccb->ccb_tag; pm8001_chip_ssp_io_req() local
4307 ssp_cmd.tag = cpu_to_le32(tag); pm8001_chip_ssp_io_req()
4346 u32 tag = ccb->ccb_tag; pm8001_chip_sata_req() local
4380 sata_cmd.tag = cpu_to_le32(tag); pm8001_chip_sata_req()
4434 pm8001_ccb_task_free(pm8001_ha, task, ccb, tag); pm8001_chip_sata_req()
4439 ccb, tag); pm8001_chip_sata_req()
4461 u32 tag = 0x01; pm8001_chip_phy_start_req() local
4465 payload.tag = cpu_to_le32(tag); pm8001_chip_phy_start_req()
4496 u32 tag = 0x01; pm8001_chip_phy_stop_req() local
4500 payload.tag = cpu_to_le32(tag); pm8001_chip_phy_stop_req()
4517 int rc, tag = 0xdeadbeef; pm8001_chip_reg_dev_req() local
4527 rc = pm8001_tag_alloc(pm8001_ha, &tag); pm8001_chip_reg_dev_req()
4530 ccb = &pm8001_ha->ccb_info[tag]; pm8001_chip_reg_dev_req()
4532 ccb->ccb_tag = tag; pm8001_chip_reg_dev_req()
4533 payload.tag = cpu_to_le32(tag); pm8001_chip_reg_dev_req()
4578 payload.tag = cpu_to_le32(1); pm8001_chip_dereg_dev_req()
4602 payload.tag = cpu_to_le32(1); pm8001_chip_phy_ctl_req()
4649 task_abort.tag = cpu_to_le32(cmd_tag); send_task_abort()
4653 task_abort.tag = cpu_to_le32(cmd_tag); send_task_abort()
4670 pm8001_printk("cmd_tag = %x, abort task tag = 0x%x", pm8001_chip_abort_task()
4708 sspTMCmd.tag = cpu_to_le32(ccb->ccb_tag); pm8001_chip_ssp_tm_req()
4722 u32 tag; pm8001_chip_get_nvmd_req() local
4737 rc = pm8001_tag_alloc(pm8001_ha, &tag); pm8001_chip_get_nvmd_req()
4742 ccb = &pm8001_ha->ccb_info[tag]; pm8001_chip_get_nvmd_req()
4743 ccb->ccb_tag = tag; pm8001_chip_get_nvmd_req()
4745 nvmd_req.tag = cpu_to_le32(tag); pm8001_chip_get_nvmd_req()
4805 pm8001_tag_free(pm8001_ha, tag); pm8001_chip_get_nvmd_req()
4816 u32 tag; pm8001_chip_set_nvmd_req() local
4832 rc = pm8001_tag_alloc(pm8001_ha, &tag); pm8001_chip_set_nvmd_req()
4837 ccb = &pm8001_ha->ccb_info[tag]; pm8001_chip_set_nvmd_req()
4839 ccb->ccb_tag = tag; pm8001_chip_set_nvmd_req()
4840 nvmd_req.tag = cpu_to_le32(tag); pm8001_chip_set_nvmd_req()
4889 pm8001_tag_free(pm8001_ha, tag); pm8001_chip_set_nvmd_req()
4901 void *fw_flash_updata_info, u32 tag) pm8001_chip_fw_flash_update_build()
4912 payload.tag = cpu_to_le32(tag); pm8001_chip_fw_flash_update_build()
4933 u32 tag; pm8001_chip_fw_flash_update_req() local
4954 rc = pm8001_tag_alloc(pm8001_ha, &tag); pm8001_chip_fw_flash_update_req()
4959 ccb = &pm8001_ha->ccb_info[tag]; pm8001_chip_fw_flash_update_req()
4961 ccb->ccb_tag = tag; pm8001_chip_fw_flash_update_req()
4963 tag); pm8001_chip_fw_flash_update_req()
5053 u32 tag; pm8001_chip_set_dev_state_req() local
5056 rc = pm8001_tag_alloc(pm8001_ha, &tag); pm8001_chip_set_dev_state_req()
5059 ccb = &pm8001_ha->ccb_info[tag]; pm8001_chip_set_dev_state_req()
5060 ccb->ccb_tag = tag; pm8001_chip_set_dev_state_req()
5063 payload.tag = cpu_to_le32(tag); pm8001_chip_set_dev_state_req()
5078 u32 tag; pm8001_chip_sas_re_initialization() local
5081 rc = pm8001_tag_alloc(pm8001_ha, &tag); pm8001_chip_sas_re_initialization()
5084 ccb = &pm8001_ha->ccb_info[tag]; pm8001_chip_sas_re_initialization()
5085 ccb->ccb_tag = tag; pm8001_chip_sas_re_initialization()
5087 payload.tag = cpu_to_le32(tag); pm8001_chip_sas_re_initialization()
5093 pm8001_tag_free(pm8001_ha, tag); pm8001_chip_sas_re_initialization()
4900 pm8001_chip_fw_flash_update_build(struct pm8001_hba_info *pm8001_ha, void *fw_flash_updata_info, u32 tag) pm8001_chip_fw_flash_update_build() argument
H A Dpm8001_hwi.h158 __le32 tag; member in struct:phy_start_req
170 __le32 tag; member in struct:phy_stop_req
221 __le32 tag; member in struct:sata_completion_resp
247 __le32 tag; member in struct:reg_dev_req
264 __le32 tag; member in struct:dereg_dev_req
276 __le32 tag; member in struct:dev_reg_resp
288 __le32 tag; member in struct:local_phy_ctl_req
299 __le32 tag; member in struct:local_phy_ctl_resp
315 __le32 tag; member in struct:port_ctl_req
329 __le32 tag; member in struct:hw_event_ack_req
342 __le32 tag; member in struct:ssp_completion_resp
359 __le32 tag; member in struct:sata_event_resp
372 __le32 tag; member in struct:ssp_event_resp
397 __le32 tag; member in struct:smp_req
423 __le32 tag; member in struct:smp_completion_resp
434 __le32 tag; member in struct:task_abort_req
451 __le32 tag; member in struct:task_abort_resp
463 __le32 tag; member in struct:sas_diag_start_end_req
474 __le32 tag; member in struct:sas_diag_execute_req
492 __le32 tag; member in struct:set_dev_state_req
503 __le32 tag; member in struct:sas_re_initialization_req
524 __le32 tag; member in struct:sata_start_req
542 __le32 tag; member in struct:ssp_ini_tm_start_req
572 __le32 tag; member in struct:ssp_ini_io_start_req
589 __le32 tag; member in struct:fw_flash_Update_req
608 __le32 tag; member in struct:fw_flash_Update_resp
619 __le32 tag; member in struct:get_nvm_data_req
631 __le32 tag; member in struct:set_nvm_data_req
658 __le32 tag; member in struct:get_nvm_data_resp
671 __le32 tag; member in struct:sas_diag_start_end_resp
683 __le32 tag; member in struct:sas_diag_execute_resp
697 __le32 tag; member in struct:set_dev_state_resp
H A Dpm80xx_hwi.c844 u32 tag; pm80xx_set_thermal_config() local
848 rc = pm8001_tag_alloc(pm8001_ha, &tag); pm80xx_set_thermal_config()
853 payload.tag = cpu_to_le32(tag); pm80xx_set_thermal_config()
860 pm8001_tag_free(pm8001_ha, tag); pm80xx_set_thermal_config()
877 u32 tag; pm80xx_set_sas_protocol_timer_config() local
883 rc = pm8001_tag_alloc(pm8001_ha, &tag); pm80xx_set_sas_protocol_timer_config()
889 payload.tag = cpu_to_le32(tag); pm80xx_set_sas_protocol_timer_config()
942 pm8001_tag_free(pm8001_ha, tag); pm80xx_set_sas_protocol_timer_config()
1047 u32 tag; pm80xx_encrypt_update() local
1051 rc = pm8001_tag_alloc(pm8001_ha, &tag); pm80xx_encrypt_update()
1056 payload.tag = cpu_to_le32(tag); pm80xx_encrypt_update()
1065 pm8001_tag_free(pm8001_ha, tag); pm80xx_encrypt_update()
1405 task_abort.tag = cpu_to_le32(ccb_tag); pm80xx_send_abort_all()
1440 pm8001_printk("cannot allocate tag !!!\n")); pm80xx_send_read_log()
1477 sata_cmd.tag = cpu_to_le32(ccb_tag); pm80xx_send_read_log()
1509 u32 tag; mpi_ssp_completion() local
1516 tag = le32_to_cpu(psspPayload->tag); mpi_ssp_completion()
1517 ccb = &pm8001_ha->ccb_info[tag]; mpi_ssp_completion()
1748 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_ssp_completion()
1751 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_ssp_completion()
1768 u32 tag = le32_to_cpu(psspPayload->tag); mpi_ssp_event() local
1771 ccb = &pm8001_ha->ccb_info[tag]; mpi_ssp_event()
1781 pm8001_printk("port_id:0x%x, tag:0x%x, event:0x%x\n", mpi_ssp_event()
1782 port_id, tag, event)); mpi_ssp_event()
1945 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_ssp_event()
1948 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_ssp_event()
1962 u32 tag; mpi_sata_completion() local
1976 tag = le32_to_cpu(psataPayload->tag); mpi_sata_completion()
1978 if (!tag) { mpi_sata_completion()
1980 pm8001_printk("tag null\n")); mpi_sata_completion()
1983 ccb = &pm8001_ha->ccb_info[tag]; mpi_sata_completion()
2071 /* Free the tag */ mpi_sata_completion()
2072 pm8001_tag_free(pm8001_ha, tag); mpi_sata_completion()
2186 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_completion()
2202 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_completion()
2224 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_completion()
2287 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_completion()
2307 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_completion()
2335 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_sata_completion()
2338 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_completion()
2352 u32 tag = le32_to_cpu(psataPayload->tag); mpi_sata_event() local
2357 ccb = &pm8001_ha->ccb_info[tag]; mpi_sata_event()
2389 pm8001_printk("port_id:0x%x, tag:0x%x, event:0x%x\n", mpi_sata_event()
2390 port_id, tag, event)); mpi_sata_event()
2450 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_event()
2571 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_sata_event()
2574 pm8001_ccb_task_free_done(pm8001_ha, t, ccb, tag); mpi_sata_event()
2587 u32 tag; mpi_smp_completion() local
2595 tag = le32_to_cpu(psmpPayload->tag); mpi_smp_completion()
2597 ccb = &pm8001_ha->ccb_info[tag]; mpi_smp_completion()
2792 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_smp_completion()
2795 pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); mpi_smp_completion()
2821 payload.tag = cpu_to_le32(1); pm80xx_hw_event_ack_req()
3708 psmp_cmd->tag = hTag; build_smp_cmd()
3764 smp_cmd.tag = cpu_to_le32(ccb->ccb_tag); pm80xx_chip_smp_req()
3831 build_smp_cmd(pm8001_dev->device_id, smp_cmd.tag, pm80xx_chip_smp_req()
3893 u32 tag = ccb->ccb_tag; pm80xx_chip_ssp_io_req() local
3910 ssp_cmd.tag = cpu_to_le32(tag); pm80xx_chip_ssp_io_req()
4052 u32 tag = ccb->ccb_tag; pm80xx_chip_sata_req() local
4090 sata_cmd.tag = cpu_to_le32(tag); pm80xx_chip_sata_req()
4270 pm8001_ccb_task_free(pm8001_ha, task, ccb, tag); pm80xx_chip_sata_req()
4276 ccb, tag); pm80xx_chip_sata_req()
4299 u32 tag = 0x01; pm80xx_chip_phy_start_req() local
4303 payload.tag = cpu_to_le32(tag); pm80xx_chip_phy_start_req()
4354 u32 tag = 0x01; pm80xx_chip_phy_stop_req() local
4358 payload.tag = cpu_to_le32(tag); pm80xx_chip_phy_stop_req()
4375 int rc, tag = 0xdeadbeef; pm80xx_chip_reg_dev_req() local
4385 rc = pm8001_tag_alloc(pm8001_ha, &tag); pm80xx_chip_reg_dev_req()
4388 ccb = &pm8001_ha->ccb_info[tag]; pm80xx_chip_reg_dev_req()
4390 ccb->ccb_tag = tag; pm80xx_chip_reg_dev_req()
4391 payload.tag = cpu_to_le32(tag); pm80xx_chip_reg_dev_req()
4428 pm8001_tag_free(pm8001_ha, tag); pm80xx_chip_reg_dev_req()
4449 payload.tag = cpu_to_le32(1); pm80xx_chip_phy_ctl_req()
4487 u32 tag , i, j = 0; mpi_set_phy_profile_req() local
4494 rc = pm8001_tag_alloc(pm8001_ha, &tag); mpi_set_phy_profile_req()
4496 PM8001_FAIL_DBG(pm8001_ha, pm8001_printk("Invalid tag\n")); mpi_set_phy_profile_req()
4498 payload.tag = cpu_to_le32(tag); mpi_set_phy_profile_req()
4509 pm8001_tag_free(pm8001_ha, tag); mpi_set_phy_profile_req()
/linux-4.1.27/drivers/scsi/arm/
H A Dqueue.h67 * Function: struct scsi_cmnd *queue_remove_tgtluntag (queue, target, lun, tag)
68 * Purpose : remove a SCSI command from the queue for a specified target/lun/tag
72 * tag - tag on device
76 int lun, int tag);
H A Dqueue.c201 * Function: struct scsi_cmnd *queue_remove_tgtluntag (queue, target, lun, tag)
202 * Purpose : remove a SCSI command from the queue for a specified target/lun/tag
206 * tag - tag on device
210 int tag) queue_remove_tgtluntag()
220 q->SCpnt->tag == tag) { queue_remove_tgtluntag()
209 queue_remove_tgtluntag(Queue_t *queue, int target, int lun, int tag) queue_remove_tgtluntag() argument
/linux-4.1.27/arch/mips/include/asm/mach-bcm63xx/
H A Dbcm963xx_tag.h15 #define RSASIG_LEN 20 /* Length of RSA Signature in tag */
16 #define TAGINFO1_LEN 30 /* Length of vendor information field1 in tag */
17 #define FLASHLAYOUTVER_LEN 4 /* Length of Flash Layout Version String tag */
18 #define TAGINFO2_LEN 16 /* Length of vendor information field2 in tag */
40 /* 0-3: Version of the image tag */
/linux-4.1.27/arch/mips/rb532/
H A Dprom.c57 static inline int match_tag(char *arg, const char *tag) match_tag() argument
59 return strncmp(arg, tag, strlen(tag)) == 0; match_tag()
62 static inline unsigned long tag2ul(char *arg, const char *tag) tag2ul() argument
66 num = arg + strlen(tag); tag2ul()
/linux-4.1.27/arch/arm/mach-rpc/include/mach/
H A Duncompress.h118 struct tag *t = (struct tag *)params; arch_decomp_setup()
121 if (t->hdr.tag == ATAG_CORE) arch_decomp_setup()
125 if (t->hdr.tag == ATAG_VIDEOTEXT) arch_decomp_setup()
135 if (t->hdr.tag == ATAG_MEM) arch_decomp_setup()
/linux-4.1.27/arch/arm/mach-rpc/
H A Driscpc.c44 static int __init parse_tag_acorn(const struct tag *tag) parse_tag_acorn() argument
46 memc_ctrl_reg = tag->u.acorn.memc_control_reg; parse_tag_acorn()
47 number_mfm_drives = tag->u.acorn.adfsdrives; parse_tag_acorn()
49 switch (tag->u.acorn.vram_pages) { parse_tag_acorn()
/linux-4.1.27/net/ipv4/
H A Dcipso_ipv4.c5 * draft-ietf-cipso-ipsecurity-01.txt with additional tag types as found in
89 /* Restricted bitmap (tag #1) flags */
105 /* Base length of the restrictive category bitmap tag (tag #1). */
108 /* Base length of the enumerated category tag (tag #2). */
111 /* Base length of the ranged categories bitmap tag (tag #5). */
113 /* The maximum number of category ranges permitted in the ranged category tag
114 * (tag #5). You may note that the IETF draft states that the maximum number
120 /* Base length of the local tag (non-standard tag).
230 * The CIPSO tag hashing function. Returns a 32-bit hash value.
1235 * @len: the total tag length in bytes, not including this header
1252 * cipso_v4_gentag_rbm - Generate a CIPSO restricted bitmap tag (type #1)
1259 * Generate a CIPSO option using the restricted bitmap tag, tag type #1. The
1262 * the tag on success, negative values on failure.
1309 * cipso_v4_parsetag_rbm - Parse a CIPSO restricted bitmap tag
1311 * @tag: the CIPSO tag
1315 * Parse a CIPSO restricted bitmap tag (tag type #1) and return the security
1321 const unsigned char *tag, cipso_v4_parsetag_rbm()
1325 u8 tag_len = tag[1]; cipso_v4_parsetag_rbm()
1328 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level); cipso_v4_parsetag_rbm()
1336 &tag[4], cipso_v4_parsetag_rbm()
1351 * cipso_v4_gentag_enum - Generate a CIPSO enumerated tag (type #2)
1358 * Generate a CIPSO option using the enumerated tag, tag type #2. Returns the
1359 * size of the tag on success, negative values on failure.
1400 * cipso_v4_parsetag_enum - Parse a CIPSO enumerated tag
1402 * @tag: the CIPSO tag
1406 * Parse a CIPSO enumerated tag (tag type #2) and return the security
1412 const unsigned char *tag, cipso_v4_parsetag_enum()
1416 u8 tag_len = tag[1]; cipso_v4_parsetag_enum()
1419 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level); cipso_v4_parsetag_enum()
1427 &tag[4], cipso_v4_parsetag_enum()
1442 * cipso_v4_gentag_rng - Generate a CIPSO ranged tag (type #5)
1449 * Generate a CIPSO option using the ranged tag, tag type #5. Returns the
1450 * size of the tag on success, negative values on failure.
1491 * cipso_v4_parsetag_rng - Parse a CIPSO ranged tag
1493 * @tag: the CIPSO tag
1497 * Parse a CIPSO ranged tag (tag type #5) and return the security attributes
1502 const unsigned char *tag, cipso_v4_parsetag_rng()
1506 u8 tag_len = tag[1]; cipso_v4_parsetag_rng()
1509 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level); cipso_v4_parsetag_rng()
1517 &tag[4], cipso_v4_parsetag_rng()
1532 * cipso_v4_gentag_loc - Generate a CIPSO local tag (non-standard)
1539 * Generate a CIPSO option using the local tag. Returns the size of the tag
1559 * cipso_v4_parsetag_loc - Parse a CIPSO local tag
1561 * @tag: the CIPSO tag
1565 * Parse a CIPSO local tag and return the security attributes in @secattr.
1570 const unsigned char *tag, cipso_v4_parsetag_loc()
1573 secattr->attr.secid = *(u32 *)&tag[2]; cipso_v4_parsetag_loc()
1628 unsigned char *tag; cipso_v4_validate() local
1651 tag = opt + opt_iter; cipso_v4_validate()
1653 for (tag_iter = 0; doi_def->tags[tag_iter] != tag[0];) cipso_v4_validate()
1660 tag_len = tag[1]; cipso_v4_validate()
1666 switch (tag[0]) { cipso_v4_validate()
1682 tag[3]) < 0) { cipso_v4_validate()
1688 &tag[4], cipso_v4_validate()
1702 tag[3]) < 0) { cipso_v4_validate()
1708 &tag[4], cipso_v4_validate()
1721 tag[3]) < 0) { cipso_v4_validate()
1727 &tag[4], cipso_v4_validate()
1734 /* This is a non-standard tag that we only allow for cipso_v4_validate()
1753 tag += tag_len; cipso_v4_validate()
1825 /* XXX - This code assumes only one tag per CIPSO option which isn't cipso_v4_genopt()
2162 /* XXX - This code assumes only one tag per CIPSO option which isn't cipso_v4_getattr()
1320 cipso_v4_parsetag_rbm(const struct cipso_v4_doi *doi_def, const unsigned char *tag, struct netlbl_lsm_secattr *secattr) cipso_v4_parsetag_rbm() argument
1411 cipso_v4_parsetag_enum(const struct cipso_v4_doi *doi_def, const unsigned char *tag, struct netlbl_lsm_secattr *secattr) cipso_v4_parsetag_enum() argument
1501 cipso_v4_parsetag_rng(const struct cipso_v4_doi *doi_def, const unsigned char *tag, struct netlbl_lsm_secattr *secattr) cipso_v4_parsetag_rng() argument
1569 cipso_v4_parsetag_loc(const struct cipso_v4_doi *doi_def, const unsigned char *tag, struct netlbl_lsm_secattr *secattr) cipso_v4_parsetag_loc() argument
/linux-4.1.27/drivers/scsi/fnic/
H A Dfnic_scsi.c109 u32 hash = sc->request->tag & (FNIC_IO_LOCKS - 1); fnic_io_lock_hash()
115 int tag) fnic_io_lock_tag()
117 return &fnic->io_req_lock[tag & (FNIC_IO_LOCKS - 1)]; fnic_io_lock_tag()
383 fnic_queue_wq_copy_desc_icmnd_16(wq, sc->request->tag, fnic_queue_wq_copy_desc()
390 /* scsi pri and tag */ fnic_queue_wq_copy_desc()
479 sc->request->tag, sc, 0, sc->cmnd[0], fnic_queuecommand_lck()
539 sc->request->tag, sc, 0, 0, 0, fnic_queuecommand_lck()
571 sc->request->tag, sc, io_req, fnic_queuecommand_lck()
596 struct fcpio_tag tag; fnic_fcpio_fw_reset_cmpl_handler() local
601 fcpio_header_dec(&desc->hdr, &type, &hdr_status, &tag); fnic_fcpio_fw_reset_cmpl_handler()
679 struct fcpio_tag tag; fnic_fcpio_flogi_reg_cmpl_handler() local
683 fcpio_header_dec(&desc->hdr, &type, &hdr_status, &tag); fnic_fcpio_flogi_reg_cmpl_handler()
789 struct fcpio_tag tag; fnic_fcpio_icmnd_cmpl_handler() local
802 fcpio_header_dec(&desc->hdr, &type, &hdr_status, &tag); fnic_fcpio_icmnd_cmpl_handler()
803 fcpio_tag_id_dec(&tag, &id); fnic_fcpio_icmnd_cmpl_handler()
808 "Tag out of range tag %x hdr status = %s\n", fnic_fcpio_icmnd_cmpl_handler()
819 "hdr status = %s tag = 0x%x desc = 0x%p\n", fnic_fcpio_icmnd_cmpl_handler()
842 "hdr status = %s tag = 0x%x sc 0x%p\n", fnic_fcpio_icmnd_cmpl_handler()
874 "hdr status = %s tag = 0x%x sc = 0x%p\n", fnic_fcpio_icmnd_cmpl_handler()
1008 struct fcpio_tag tag; fnic_fcpio_itmf_cmpl_handler() local
1020 fcpio_header_dec(&desc->hdr, &type, &hdr_status, &tag); fnic_fcpio_itmf_cmpl_handler()
1021 fcpio_tag_id_dec(&tag, &id); fnic_fcpio_itmf_cmpl_handler()
1025 "Tag out of range tag %x hdr status = %s\n", fnic_fcpio_itmf_cmpl_handler()
1035 "itmf_cmpl sc is null - hdr status = %s tag = 0x%x\n", fnic_fcpio_itmf_cmpl_handler()
1049 "hdr status = %s tag = 0x%x sc 0x%p\n", fnic_fcpio_itmf_cmpl_handler()
1196 "Unexpected itmf io state %s tag %x\n", fnic_fcpio_itmf_cmpl_handler()
1372 /* get the tag reference */ fnic_wq_copy_cleanup_handler()
1373 fcpio_tag_id_dec(&desc->hdr.tag, &id); fnic_wq_copy_cleanup_handler()
1422 static inline int fnic_queue_abort_io_req(struct fnic *fnic, int tag, fnic_queue_abort_io_req() argument
1453 fnic_queue_wq_copy_desc_itmf(wq, tag | FNIC_TAG_ABORT, fnic_queue_abort_io_req()
1454 0, task_req, tag, fc_lun, io_req->port_id, fnic_queue_abort_io_req()
1471 int tag; fnic_rport_exch_reset() local
1491 for (tag = 0; tag < fnic->fnic_max_tag_id; tag++) { fnic_rport_exch_reset()
1492 abt_tag = tag; fnic_rport_exch_reset()
1493 io_lock = fnic_io_lock_tag(fnic, tag); fnic_rport_exch_reset()
1495 sc = scsi_host_find_tag(fnic->lport->host, tag); fnic_rport_exch_reset()
1535 "IO not yet issued %p tag 0x%x flags " fnic_rport_exch_reset()
1537 sc, tag, CMD_FLAGS(sc), CMD_STATE(sc)); fnic_rport_exch_reset()
1544 abt_tag = (tag | FNIC_TAG_DEV_RST); fnic_rport_exch_reset()
1591 int tag; fnic_terminate_rport_io() local
1636 for (tag = 0; tag < fnic->fnic_max_tag_id; tag++) { fnic_terminate_rport_io()
1637 abt_tag = tag; fnic_terminate_rport_io()
1638 io_lock = fnic_io_lock_tag(fnic, tag); fnic_terminate_rport_io()
1640 sc = scsi_host_find_tag(fnic->lport->host, tag); fnic_terminate_rport_io()
1684 "IO not yet issued %p tag 0x%x flags " fnic_terminate_rport_io()
1686 sc, tag, CMD_FLAGS(sc), CMD_STATE(sc)); fnic_terminate_rport_io()
1693 abt_tag = (tag | FNIC_TAG_DEV_RST); fnic_terminate_rport_io()
1759 int tag; fnic_abort_cmd() local
1774 tag = sc->request->tag; fnic_abort_cmd()
1778 rport->port_id, sc->device->lun, tag, CMD_FLAGS(sc)); fnic_abort_cmd()
1840 if (fnic_queue_abort_io_req(fnic, sc->request->tag, task_req, fnic_abort_cmd()
1931 sc->request->tag, sc, fnic_abort_cmd()
1981 fnic_queue_wq_copy_desc_itmf(wq, sc->request->tag | FNIC_TAG_DEV_RST, fnic_queue_dr_io_req()
2008 int tag, abt_tag; fnic_clean_pending_aborts() local
2019 for (tag = 0; tag < fnic->fnic_max_tag_id; tag++) { fnic_clean_pending_aborts()
2020 io_lock = fnic_io_lock_tag(fnic, tag); fnic_clean_pending_aborts()
2022 sc = scsi_host_find_tag(fnic->lport->host, tag); fnic_clean_pending_aborts()
2076 abt_tag = tag; fnic_clean_pending_aborts()
2152 * Allocates tagid from host's tag list
2158 int tag, ret = SCSI_NO_TAG; fnic_scsi_host_start_tag() local
2167 tag = find_next_zero_bit(bqt->tag_map, bqt->max_depth, 1); fnic_scsi_host_start_tag()
2168 if (tag >= bqt->max_depth) { fnic_scsi_host_start_tag()
2172 } while (test_and_set_bit(tag, bqt->tag_map)); fnic_scsi_host_start_tag()
2174 bqt->tag_index[tag] = sc->request; fnic_scsi_host_start_tag()
2175 sc->request->tag = tag; fnic_scsi_host_start_tag()
2176 sc->tag = tag; fnic_scsi_host_start_tag()
2180 ret = tag; fnic_scsi_host_start_tag()
2188 * frees tag allocated by fnic_scsi_host_start_tag.
2194 int tag = sc->request->tag; fnic_scsi_host_end_tag() local
2196 if (tag == SCSI_NO_TAG) fnic_scsi_host_end_tag()
2199 BUG_ON(!bqt || !bqt->tag_index[tag]); fnic_scsi_host_end_tag()
2203 bqt->tag_index[tag] = NULL; fnic_scsi_host_end_tag()
2204 clear_bit(tag, bqt->tag_map); fnic_scsi_host_end_tag()
2228 int tag = 0; fnic_device_reset() local
2259 /* Allocate tag if not present */ fnic_device_reset()
2261 tag = sc->request->tag; fnic_device_reset()
2262 if (unlikely(tag < 0)) { fnic_device_reset()
2266 * don't have a tag allocated to them. The below fnic_device_reset()
2279 tag = fnic_scsi_host_start_tag(fnic, sc); fnic_device_reset()
2280 if (unlikely(tag == SCSI_NO_TAG)) fnic_device_reset()
2307 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, "TAG %x\n", tag); fnic_device_reset()
2336 "io_req is null tag 0x%x sc 0x%p\n", tag, sc); fnic_device_reset()
2366 tag | FNIC_TAG_DEV_RST, fnic_device_reset()
2379 "tag 0x%x sc 0x%p\n", tag, sc); fnic_device_reset()
2447 sc->request->tag, sc, fnic_device_reset()
2454 /* free tag if it is allocated */ fnic_device_reset()
2660 * walks through tag map to check if there is any IOs pending,if there is one,
2667 int tag; fnic_is_abts_pending() local
2679 for (tag = 0; tag < fnic->fnic_max_tag_id; tag++) { fnic_is_abts_pending()
2680 sc = scsi_host_find_tag(fnic->lport->host, tag); fnic_is_abts_pending()
114 fnic_io_lock_tag(struct fnic *fnic, int tag) fnic_io_lock_tag() argument
H A Dfcpio.h117 * The header command tag. All host requests will use the "tag" field
118 * to mark commands with a unique tag. When the firmware responds to
119 * a host request, it will copy the tag field into the response.
122 * of the tag field will be the target command and target task management
137 fcpio_tag_id_enc(struct fcpio_tag *tag, u32 id) fcpio_tag_id_enc() argument
139 tag->u.req_id = id; fcpio_tag_id_enc()
143 fcpio_tag_id_dec(struct fcpio_tag *tag, u32 *id) fcpio_tag_id_dec() argument
145 *id = tag->u.req_id; fcpio_tag_id_dec()
149 fcpio_tag_exid_enc(struct fcpio_tag *tag, u16 ox_id, u16 rx_id) fcpio_tag_exid_enc() argument
151 tag->u.ex_id.rx_id = rx_id; fcpio_tag_exid_enc()
152 tag->u.ex_id.ox_id = ox_id; fcpio_tag_exid_enc()
156 fcpio_tag_exid_dec(struct fcpio_tag *tag, u16 *ox_id, u16 *rx_id) fcpio_tag_exid_dec() argument
158 *rx_id = tag->u.ex_id.rx_id; fcpio_tag_exid_dec()
159 *ox_id = tag->u.ex_id.ox_id; fcpio_tag_exid_dec()
170 struct fcpio_tag tag; /* header tag */ member in struct:fcpio_header
176 struct fcpio_tag tag) fcpio_header_enc()
181 hdr->tag = tag; fcpio_header_enc()
187 struct fcpio_tag *tag) fcpio_header_dec()
191 *tag = hdr->tag; fcpio_header_dec()
285 u32 t_tag; /* header tag of fcpio to be aborted */
174 fcpio_header_enc(struct fcpio_header *hdr, u8 type, u8 status, struct fcpio_tag tag) fcpio_header_enc() argument
185 fcpio_header_dec(struct fcpio_header *hdr, u8 *type, u8 *status, struct fcpio_tag *tag) fcpio_header_dec() argument
H A Dfnic_res.h96 desc->hdr.tag.u.req_id = req_id; /* id for this request */ fnic_queue_wq_copy_desc_icmnd_16()
135 desc->hdr.tag.u.req_id = req_id; /* id for this request */ fnic_queue_wq_copy_desc_itmf()
139 desc->u.itmf.t_tag = tm_id; /* tag of fcpio to be aborted */ fnic_queue_wq_copy_desc_itmf()
159 desc->hdr.tag.u.req_id = req_id; /* id for this request */ fnic_queue_wq_copy_desc_flogi_reg()
179 desc->hdr.tag.u.req_id = req_id; /* id for this request */ fnic_queue_wq_copy_desc_fip_reg()
201 desc->hdr.tag.u.req_id = req_id; /* id for this request */ fnic_queue_wq_copy_desc_fw_reset()
215 desc->hdr.tag.u.req_id = req_id; /* id for this request */ fnic_queue_wq_copy_desc_lunmap()
/linux-4.1.27/drivers/iommu/
H A Damd_iommu_v2.c52 struct pri_queue pri[PRI_QUEUE_SIZE]; /* PRI tag states */
85 u16 tag; member in struct:fault
435 u16 tag, int status) set_pri_tag_status()
440 pasid_state->pri[tag].status = status; set_pri_tag_status()
446 u16 tag) finish_pri_tag()
451 if (atomic_dec_and_test(&pasid_state->pri[tag].inflight) && finish_pri_tag()
452 pasid_state->pri[tag].finish) { finish_pri_tag()
454 pasid_state->pri[tag].status, tag); finish_pri_tag()
455 pasid_state->pri[tag].finish = false; finish_pri_tag()
456 pasid_state->pri[tag].status = PPR_SUCCESS; finish_pri_tag()
466 set_pri_tag_status(fault->state, fault->tag, PPR_INVALID); handle_fault_error()
476 set_pri_tag_status(fault->state, fault->tag, PPR_SUCCESS); handle_fault_error()
479 set_pri_tag_status(fault->state, fault->tag, PPR_INVALID); handle_fault_error()
482 set_pri_tag_status(fault->state, fault->tag, PPR_FAILURE); handle_fault_error()
529 finish_pri_tag(fault->dev_state, fault->state, fault->tag); do_fault()
544 u16 tag; ppr_notifier() local
548 tag = iommu_fault->tag & 0x1ff; ppr_notifier()
549 finish = (iommu_fault->tag >> 9) & 1; ppr_notifier()
560 PPR_INVALID, tag); ppr_notifier()
565 atomic_inc(&pasid_state->pri[tag].inflight); ppr_notifier()
567 pasid_state->pri[tag].finish = true; ppr_notifier()
573 finish_pri_tag(dev_state, pasid_state, tag); ppr_notifier()
580 fault->tag = tag; ppr_notifier()
434 set_pri_tag_status(struct pasid_state *pasid_state, u16 tag, int status) set_pri_tag_status() argument
444 finish_pri_tag(struct device_state *dev_state, struct pasid_state *pasid_state, u16 tag) finish_pri_tag() argument
/linux-4.1.27/arch/mips/sgi-ip22/
H A Dip28-berr.c69 #define tag cache_tags.tags[0] save_cache_tags() macro
71 tag[0].lo = read_c0_taglo(); /* PA[35:18], VA[13:12] */ save_cache_tags()
72 tag[0].hi = read_c0_taghi(); /* PA[39:36] */ save_cache_tags()
74 tag[1].lo = read_c0_taglo(); /* PA[35:18], VA[13:12] */ save_cache_tags()
75 tag[1].hi = read_c0_taghi(); /* PA[39:36] */ save_cache_tags()
76 #undef tag save_cache_tags() macro
86 #define tag cache_tags.tagd[i] save_cache_tags() macro
89 tag[0].lo = read_c0_taglo(); /* PA[35:12] */ save_cache_tags()
90 tag[0].hi = read_c0_taghi(); /* PA[39:36] */ save_cache_tags()
92 tag[1].lo = read_c0_taglo(); /* PA[35:12] */ save_cache_tags()
93 tag[1].hi = read_c0_taghi(); /* PA[39:36] */ save_cache_tags()
95 #undef tag save_cache_tags() macro
102 #define tag cache_tags.tagi[i] save_cache_tags() macro
105 tag[0].lo = read_c0_taglo(); /* PA[35:12] */ save_cache_tags()
106 tag[0].hi = read_c0_taghi(); /* PA[39:36] */ save_cache_tags()
108 tag[1].lo = read_c0_taglo(); /* PA[35:12] */ save_cache_tags()
109 tag[1].hi = read_c0_taghi(); /* PA[39:36] */ save_cache_tags()
111 #undef tag save_cache_tags() macro
/linux-4.1.27/arch/x86/vdso/
H A Dvdso2c.h55 typeof(dyn[i].d_tag) tag = GET_LE(&dyn[i].d_tag); go()
56 if (tag == DT_REL || tag == DT_RELSZ || tag == DT_RELA || go()
57 tag == DT_RELENT || tag == DT_TEXTREL) go()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dnv35.c34 if (!nvkm_mm_head(&pfb->tags, 0, 1, tags, tags, 1, &tile->tag)) { nv35_fb_tile_comp()
37 tile->zcomp |= ((tile->tag->offset ) >> 6); nv35_fb_tile_comp()
38 tile->zcomp |= ((tile->tag->offset + tags - 1) >> 6) << 13; nv35_fb_tile_comp()
H A Dnv36.c34 if (!nvkm_mm_head(&pfb->tags, 0, 1, tags, tags, 1, &tile->tag)) { nv36_fb_tile_comp()
37 tile->zcomp |= ((tile->tag->offset ) >> 6); nv36_fb_tile_comp()
38 tile->zcomp |= ((tile->tag->offset + tags - 1) >> 6) << 14; nv36_fb_tile_comp()
H A Dnv40.c35 !nvkm_mm_head(&pfb->tags, 0, 1, tags, tags, 1, &tile->tag)) { nv40_fb_tile_comp()
37 tile->zcomp |= ((tile->tag->offset ) >> 8); nv40_fb_tile_comp()
38 tile->zcomp |= ((tile->tag->offset + tags - 1) >> 8) << 13; nv40_fb_tile_comp()
H A Dnv20.c47 if (!nvkm_mm_head(&pfb->tags, 0, 1, tags, tags, 1, &tile->tag)) { nv20_fb_tile_comp()
50 tile->zcomp |= tile->tag->offset; nv20_fb_tile_comp()
65 nvkm_mm_free(&pfb->tags, &tile->tag); nv20_fb_tile_fini()
H A Dnv25.c34 if (!nvkm_mm_head(&pfb->tags, 0, 1, tags, tags, 1, &tile->tag)) { nv25_fb_tile_comp()
37 tile->zcomp |= tile->tag->offset; nv25_fb_tile_comp()
/linux-4.1.27/sound/pci/hda/
H A Dhda_jack.h32 unsigned char tag; /* unsol event tag */ member in struct:hda_jack_tbl
52 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, unsigned char tag);
/linux-4.1.27/include/linux/
H A Dasn1_ber_bytecode.h22 unsigned char tag, /* In case of ANY type */
32 /* The tag-matching ops come first and the odd-numbered slots
57 /* Everything before here will want a tag from the data */
H A Dagpgart.h72 int key; /* tag of allocation */
82 int key; /* tag of allocation */
87 int key; /* tag of allocation */
H A Dif_vlan.h285 * __vlan_insert_tag - regular VLAN tag inserting
286 * @skb: skbuff to tag
290 * Inserts the VLAN tag into @skb as part of the payload
319 * vlan_insert_tag - regular VLAN tag inserting
320 * @skb: skbuff to tag
324 * Inserts the VLAN tag into @skb as part of the payload
346 * vlan_insert_tag_set_proto - regular VLAN tag inserting
347 * @skb: skbuff to tag
351 * Inserts the VLAN tag into @skb as part of the payload
368 * __vlan_hwaccel_push_inside - pushes vlan tag to the payload
369 * @skb: skbuff to tag
371 * Pushes the VLAN tag from @skb->vlan_tci inside to the payload.
385 * vlan_hwaccel_push_inside - pushes vlan tag to the payload
386 * @skb: skbuff to tag
388 * Checks is tag is present in @skb->vlan_tci and if it is, it pushes the
389 * VLAN tag from @skb->vlan_tci inside to the payload.
403 * @skb: skbuff to tag
H A Dradix-tree.h40 * Indirect pointer in fact is also used to tag the last pointer of a node
284 unsigned long index, unsigned int tag);
286 unsigned long index, unsigned int tag);
288 unsigned long index, unsigned int tag);
292 unsigned int tag);
296 unsigned int tag);
301 int radix_tree_tagged(struct radix_tree_root *root, unsigned int tag);
314 * @tags: bit-mask for tag-iterating
321 * radix tree tag.
329 #define RADIX_TREE_ITER_TAG_MASK 0x00FF /* tag index in lower byte */
361 * @flags: RADIX_TREE_ITER_* flags and tag index
452 * @flags: RADIX_TREE_ITER_* and tag index
512 * @tag: tag index
516 #define radix_tree_for_each_tagged(slot, root, iter, start, tag) \
519 RADIX_TREE_ITER_TAGGED | tag)) ; \
/linux-4.1.27/drivers/block/
H A Dnull_blk.c18 unsigned int tag; member in struct:nullb_cmd
150 static void put_tag(struct nullb_queue *nq, unsigned int tag) put_tag() argument
152 clear_bit_unlock(tag, nq->tag_map); put_tag()
160 unsigned int tag; get_tag() local
163 tag = find_first_zero_bit(nq->tag_map, nq->queue_depth); get_tag()
164 if (tag >= nq->queue_depth) get_tag()
166 } while (test_and_set_bit_lock(tag, nq->tag_map)); get_tag()
168 return tag; get_tag()
173 put_tag(cmd->nq, cmd->tag); free_cmd()
179 unsigned int tag; __alloc_cmd() local
181 tag = get_tag(nq); __alloc_cmd()
182 if (tag != -1U) { __alloc_cmd()
183 cmd = &nq->cmds[tag]; __alloc_cmd()
184 cmd->tag = tag; __alloc_cmd()
444 cmd->tag = -1U; setup_commands()
H A Dps3disk.c152 dev->bounce_lpar, &dev->tag); ps3disk_submit_request_sg()
156 dev->bounce_lpar, &dev->tag); ps3disk_submit_request_sg()
179 0, &dev->tag); ps3disk_submit_flush_request()
232 u64 tag, status; ps3disk_interrupt() local
235 res = lv1_storage_get_async_status(dev->sbd.dev_id, &tag, &status); ps3disk_interrupt()
237 if (tag != dev->tag) ps3disk_interrupt()
239 "%s:%u: tag mismatch, got %llx, expected %llx\n", ps3disk_interrupt()
240 __func__, __LINE__, tag, dev->tag); ps3disk_interrupt()
/linux-4.1.27/drivers/block/rsxx/
H A Ddma.c48 u8 tag; member in struct:hw_status
62 u8 tag; member in struct:hw_cmd
139 int tag, set_tracker_dma()
142 trackers->list[tag].dma = dma; set_tracker_dma()
146 int tag) get_tracker_dma()
148 return trackers->list[tag].dma; get_tracker_dma()
153 int tag; pop_tracker() local
156 tag = trackers->head; pop_tracker()
157 if (tag != -1) { pop_tracker()
158 trackers->head = trackers->list[tag].next_tag; pop_tracker()
159 trackers->list[tag].next_tag = -1; pop_tracker()
163 return tag; pop_tracker()
166 static void push_tracker(struct dma_tracker_list *trackers, int tag) push_tracker() argument
169 trackers->list[tag].next_tag = trackers->head; push_tracker()
170 trackers->head = tag; push_tracker()
171 trackers->list[tag].dma = NULL; push_tracker()
399 int tag; rsxx_issue_dmas() local
418 tag = pop_tracker(ctrl->trackers); rsxx_issue_dmas()
419 if (tag == -1) rsxx_issue_dmas()
434 push_tracker(ctrl->trackers, tag); rsxx_issue_dmas()
458 push_tracker(ctrl->trackers, tag); rsxx_issue_dmas()
464 set_tracker_dma(ctrl->trackers, tag, dma); rsxx_issue_dmas()
466 hw_cmd_buf[ctrl->cmd.idx].tag = tag; rsxx_issue_dmas()
479 "Issue DMA%d(laddr %d tag %d) to idx %d\n", rsxx_issue_dmas()
480 ctrl->id, dma->laddr, tag, ctrl->cmd.idx); rsxx_issue_dmas() local
514 u8 tag; rsxx_dma_done() local
530 * reordering the following status-buffer tag & status read rsxx_dma_done()
537 tag = hw_st_buf[ctrl->status.idx].tag; rsxx_dma_done()
539 dma = get_tracker_dma(ctrl->trackers, tag); rsxx_dma_done()
546 "No tracker for tag %d " rsxx_dma_done()
548 tag, ctrl->status.idx, ctrl->id); rsxx_dma_done()
554 "(laddr x%x tag %d st: x%x cnt: x%04x) from idx %d.\n", rsxx_dma_done()
555 ctrl->id, dma->laddr, tag, status, count, rsxx_dma_done() local
568 push_tracker(ctrl->trackers, tag); rsxx_dma_done()
138 set_tracker_dma(struct dma_tracker_list *trackers, int tag, struct rsxx_dma *dma) set_tracker_dma() argument
145 get_tracker_dma(struct dma_tracker_list *trackers, int tag) get_tracker_dma() argument
/linux-4.1.27/arch/ia64/include/asm/
H A Dparavirt_patch.h84 unsigned long tag;
95 unsigned long tag, unsigned long type,
100 paravirt_patch_reloc_br(unsigned long tag, const void *target);
103 paravirt_patch_reloc_brl(unsigned long tag, const void *target);
/linux-4.1.27/arch/m68k/mvme147/
H A Dconfig.c58 uint16_t tag = be16_to_cpu(bi->tag); mvme147_parse_bootinfo() local
59 if (tag == BI_VME_TYPE || tag == BI_VME_BRDINFO) mvme147_parse_bootinfo()
/linux-4.1.27/scripts/genksyms/
H A Dgenksyms.c189 (defn = sym->defn) && defn->tag == SYM_NORMAL && is_unknown_symbol()
191 (defn = defn->next) && defn->tag == SYM_NORMAL && is_unknown_symbol()
193 (defn = defn->next) && defn->tag == SYM_NORMAL && is_unknown_symbol()
356 newnode->tag = SYM_NORMAL; mk_node()
385 newnode->tag = node->tag; copy_node()
409 if (a->tag != b->tag || strcmp(a->string, b->string)) equal_list()
425 .tag = SYM_NORMAL }; read_node()
455 node.tag = n; read_node()
475 if (sym && sym->tag == SYM_NORMAL && read_reference()
484 if (def && def->tag == SYM_NORMAL && read_reference()
495 subsym = add_reference_symbol(xstrdup(sym->string), sym->tag, read_reference()
504 if (symbol_types[list->tag].n) { print_node()
505 putc(symbol_types[list->tag].n, f); print_node()
567 switch (cur->tag) { expand_and_crc_sym()
577 subsym = find_symbol(cur->string, cur->tag, 0); expand_and_crc_sym()
594 subsym = find_symbol(cur->string, cur->tag, 0); expand_and_crc_sym()
599 symbol_types[cur->tag].name, expand_and_crc_sym()
602 (symbol_types[cur->tag].name), expand_and_crc_sym()
608 add_symbol(cur->string, cur->tag, n, 0); expand_and_crc_sym()
613 symbol_types[cur->tag].name, expand_and_crc_sym()
617 crc = partial_crc32(symbol_types[cur->tag].name, expand_and_crc_sym()
H A Dparse.y64 (*ident)->tag = type;
68 r = copy_node(i); r->tag = type;
230 { remove_node($1); (*$2)->tag = SYM_STRUCT; $$ = $2; }
232 { remove_node($1); (*$2)->tag = SYM_UNION; $$ = $2; }
234 { remove_node($1); (*$2)->tag = SYM_ENUM; $$ = $2; }
264 | TYPE { (*$1)->tag = SYM_TYPEDEF; $$ = $1; }
/linux-4.1.27/scripts/
H A Dasn1_compiler.c664 uint8_t tag; member in struct:element
840 element->tag = token_to_tag[cursor->token_type]; parse_type()
843 /* Extract the tag value if one given */ parse_type()
865 fprintf(stderr, "%s:%d: Unrecognised tag class token '%*.*s'\n", parse_type()
874 fprintf(stderr, "%s:%d: Missing tag number '%*.*s'\n", parse_type()
880 element->tag &= ~0x1f; parse_type()
881 element->tag |= strtoul(cursor->value, &p, 10); parse_type()
922 element->tag = token_to_tag[cursor->token_type]; parse_type()
1194 static void render_element(FILE *out, struct element *e, struct element *tag);
1377 static void render_element(FILE *out, struct element *e, struct element *tag) render_element() argument
1384 (tag && tag->flags & ELEMENT_SKIPPABLE)) render_element()
1399 (tag && tag->flags & ELEMENT_CONDITIONAL)) ? "COND_" : ""; render_element()
1429 if (e->class == ASN1_UNIV && e->method == ASN1_PRIM && e->tag == 0) render_element()
1444 /* Render the tag */ render_element()
1445 if (!tag) render_element()
1446 tag = e; render_element()
1447 if (tag->class == ASN1_UNIV && render_element()
1448 tag->tag != 14 && render_element()
1449 tag->tag != 15 && render_element()
1450 tag->tag != 31) render_element()
1452 asn1_classes[tag->class], render_element()
1453 asn1_methods[tag->method | e->method], render_element()
1454 asn1_universal_tags[tag->tag]); render_element()
1457 asn1_classes[tag->class], render_element()
1458 asn1_methods[tag->method | e->method], render_element()
1459 tag->tag); render_element()
1460 tag = NULL; render_element()
1466 render_element(out, e->type->type->element, tag); render_element()
H A Dsetlocalversion64 # If we don't have a tag at all we print -g{commitish}.
91 tag=`printf '%s' "$hgid" | cut -d' ' -f2`
92 if [ -z "$tag" -o "$tag" = tip ]; then
166 # looks at signed or annotated tags - git tag -a/-s) and
H A Dsign-file129 my ($tag, $len) = unpack("CC", substr(${$cursor->[2]}, $cursor->[0], 2));
131 if ($expected_tag != -1 && $tag != $expected_tag) {
134 die $x509, ": ", $cursor->[0], ": ASN.1 unexpected tag (", $tag,
141 die $x509, ": ", $cursor->[0], ": ASN.1 long tag\n"
142 if (($tag & 0x1f) == 0x1f);
171 my $ret = [ $tag, [ $cursor->[0], $len, $cursor->[2] ] ];
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
H A Dbase.c44 nvkm_gpio_find(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, nvkm_gpio_find() argument
51 if (line == 0xff && tag == 0xff) nvkm_gpio_find()
54 data = dcb_gpio_match(bios, idx, tag, line, &ver, &len, func); nvkm_gpio_find()
60 if (tag == DCB_GPIO_TVDAC0) { nvkm_gpio_find()
75 nvkm_gpio_set(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, int state) nvkm_gpio_set() argument
80 ret = nvkm_gpio_find(gpio, idx, tag, line, &func); nvkm_gpio_set()
91 nvkm_gpio_get(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line) nvkm_gpio_get() argument
96 ret = nvkm_gpio_find(gpio, idx, tag, line, &func); nvkm_gpio_get()
/linux-4.1.27/arch/s390/include/asm/
H A Ddebug.h124 debug_int_event(debug_info_t* id, int level, unsigned int tag) debug_int_event() argument
126 unsigned int t=tag; debug_int_event()
133 debug_long_event (debug_info_t* id, int level, unsigned long tag) debug_long_event() argument
135 unsigned long t=tag; debug_long_event()
179 debug_int_exception(debug_info_t* id, int level, unsigned int tag) debug_int_exception() argument
181 unsigned int t=tag; debug_int_exception()
188 debug_long_exception (debug_info_t* id, int level, unsigned long tag) debug_long_exception() argument
190 unsigned long t=tag; debug_long_exception()
/linux-4.1.27/arch/powerpc/include/asm/
H A Ddbell.h65 static inline void ppc_msgsnd(enum ppc_dbell type, u32 flags, u32 tag) ppc_msgsnd() argument
68 (tag & 0x07ffffff); ppc_msgsnd()
/linux-4.1.27/arch/m68k/kernel/
H A Dbootinfo_proc.c36 size_t size = sizeof(bi->tag); save_bootinfo()
38 while (be16_to_cpu(bi->tag) != BI_LAST) { save_bootinfo()
/linux-4.1.27/arch/arm/mach-orion5x/
H A Dcommon.h67 struct tag;
68 extern void __init tag_fixup_mem32(struct tag *, char **);
/linux-4.1.27/net/ieee802154/6lowpan/
H A D6lowpan_i.h10 u16 tag; member in struct:lowpan_create_arg
21 u16 tag; member in struct:lowpan_frag_queue
/linux-4.1.27/scripts/dtc/libfdt/
H A Dfdt.c96 uint32_t tag; fdt_next_tag() local
104 tag = fdt32_to_cpu(*tagp); fdt_next_tag()
108 switch (tag) { fdt_next_tag()
140 return tag; fdt_next_tag()
164 uint32_t tag; fdt_next_node() local
172 tag = fdt_next_tag(fdt, offset, &nextoffset); fdt_next_node()
174 switch (tag) { fdt_next_node()
196 } while (tag != FDT_BEGIN_NODE); fdt_next_node()
H A Dfdt.h31 uint32_t tag; member in struct:fdt_node_header
36 uint32_t tag; member in struct:fdt_property
/linux-4.1.27/arch/avr32/boards/hammerhead/
H A Dsetup.c45 struct tag *bootloader_tags __initdata;
115 static int __init parse_tag_ethernet(struct tag *tag) parse_tag_ethernet() argument
117 int i = tag->u.ethernet.mac_index; parse_tag_ethernet()
120 memcpy(hw_addr[i].addr, tag->u.ethernet.hw_address, parse_tag_ethernet()
/linux-4.1.27/arch/avr32/boards/merisc/
H A Dsetup.c43 struct tag *bootloader_tags __initdata;
106 static int __init parse_tag_ethernet(struct tag *tag) parse_tag_ethernet() argument
110 i = tag->u.ethernet.mac_index; parse_tag_ethernet()
112 memcpy(hw_addr[i].addr, tag->u.ethernet.hw_address, parse_tag_ethernet()
/linux-4.1.27/arch/avr32/boards/mimc200/
H A Dsetup.c44 struct tag *bootloader_tags __initdata;
129 static int __init parse_tag_ethernet(struct tag *tag) parse_tag_ethernet() argument
133 i = tag->u.ethernet.mac_index; parse_tag_ethernet()
135 memcpy(hw_addr[i].addr, tag->u.ethernet.hw_address, parse_tag_ethernet()
/linux-4.1.27/arch/alpha/kernel/
H A Derr_ev6.c67 printk("%s Dcache tag parity error on probe\n", ev6_parse_mbox()
70 printk("%s Dcache tag parity error - pipe 0\n", ev6_parse_mbox()
73 printk("%s Dcache tag parity error - pipe 1\n", ev6_parse_mbox()
140 printk("%s Bcache tag parity error\n", err_print_prefix); ev6_parse_cbox()
145 printk("%s Dcache tag parity error\n", err_print_prefix); ev6_parse_cbox()
/linux-4.1.27/arch/arm/boot/compressed/
H A Datags_to_fdt.c110 struct tag *atag = atag_list; atags_to_fdt()
126 if (atag->hdr.tag != ATAG_CORE || atags_to_fdt()
137 if (atag->hdr.tag == ATAG_CMDLINE) { for_each_tag()
150 } else if (atag->hdr.tag == ATAG_MEM) { for_each_tag()
174 } else if (atag->hdr.tag == ATAG_INITRD2) { for_each_tag()
/linux-4.1.27/net/9p/
H A Dclient.c220 * p9_tag_alloc - lookup/allocate a request by tag
221 * @c: client session to lookup tag within
222 * @tag: numeric id for transaction
235 p9_tag_alloc(struct p9_client *c, u16 tag, unsigned int max_size) p9_tag_alloc() argument
242 /* This looks up the original request by tag so we know which p9_tag_alloc()
244 tag++; p9_tag_alloc()
246 if (tag >= c->max_tag) { p9_tag_alloc()
249 while (tag >= c->max_tag) { p9_tag_alloc()
250 row = (tag / P9_ROW_MAXTAG); p9_tag_alloc()
255 pr_err("Couldn't grow tag array\n"); p9_tag_alloc()
267 row = tag / P9_ROW_MAXTAG; p9_tag_alloc()
268 col = tag % P9_ROW_MAXTAG; p9_tag_alloc()
288 req->tc->tag = tag-1; p9_tag_alloc()
294 pr_err("Couldn't grow tag array\n"); p9_tag_alloc()
304 * p9_tag_lookup - lookup a request by tag
305 * @c: client session to lookup tag within
306 * @tag: numeric id for transaction
310 struct p9_req_t *p9_tag_lookup(struct p9_client *c, u16 tag) p9_tag_lookup() argument
314 /* This looks up the original request by tag so we know which p9_tag_lookup()
316 tag++; p9_tag_lookup()
318 if(tag >= c->max_tag) p9_tag_lookup()
321 row = tag / P9_ROW_MAXTAG; p9_tag_lookup()
322 col = tag % P9_ROW_MAXTAG; p9_tag_lookup()
345 err = p9_idpool_get(c->tagpool); /* reserve tag 0 */ p9_tag_init()
371 "Attempting to cleanup non-free tag %d,%d\n", p9_tag_cleanup()
380 p9_idpool_put(0, c->tagpool); /* free reserved tag 0 */ p9_tag_cleanup()
405 int tag = r->tc->tag; p9_free_req() local
406 p9_debug(P9_DEBUG_MUX, "clnt %p req %p tag: %d\n", c, r, tag); p9_free_req()
409 if (tag != P9_NOTAG && p9_idpool_check(tag, c->tagpool)) p9_free_req()
410 p9_idpool_put(tag, c->tagpool); p9_free_req()
421 p9_debug(P9_DEBUG_MUX, " tag %d\n", req->tc->tag); p9_client_cb()
431 p9_debug(P9_DEBUG_MUX, "wakeup: %d\n", req->tc->tag); p9_client_cb()
440 * @tag: tag of packet
445 p9_parse_header(struct p9_fcall *pdu, int32_t *size, int8_t *type, int16_t *tag, p9_parse_header() argument
464 pdu->tag = r_tag; p9_parse_header()
466 p9_debug(P9_DEBUG_9P, "<<< size=%d type: %d tag: %d\n", p9_parse_header()
467 pdu->size, pdu->id, pdu->tag); p9_parse_header()
471 if (tag) p9_parse_header()
472 *tag = r_tag; p9_parse_header()
656 p9_debug(P9_DEBUG_9P, ">>> TFLUSH tag %d\n", oldtag); p9_client_flush()
678 int tag, err; p9_client_prepare_req() local
691 tag = P9_NOTAG; p9_client_prepare_req()
693 tag = p9_idpool_get(c->tagpool); p9_client_prepare_req()
694 if (tag < 0) p9_client_prepare_req()
698 req = p9_tag_alloc(c, tag, req_size); p9_client_prepare_req()
703 p9pdu_prepare(req->tc, tag, type); p9_client_prepare_req()
708 trace_9p_client_req(c, type, tag); p9_client_prepare_req()
793 trace_9p_client_res(c, type, req->rc->tag, err); p9_client_rpc()
874 trace_9p_client_res(c, type, req->rc->tag, err); p9_client_zc_rpc()
H A Dtrans_virtio.c96 * tag name to identify a mount Non-null terminated
98 char *tag; member in struct:virtio_chan
165 p9_debug(P9_DEBUG_TRANS, ": lookup tag %d\n", rc->tag); req_done()
166 req = p9_tag_lookup(chan->client, rc->tag); req_done()
528 memcpy(buf, chan->tag, chan->tag_len); p9_mount_tag_show()
547 char *tag; p9_virtio_probe() local
584 tag = kmalloc(tag_len, GFP_KERNEL); p9_virtio_probe()
585 if (!tag) { p9_virtio_probe()
590 virtio_cread_bytes(vdev, offsetof(struct virtio_9p_config, tag), p9_virtio_probe()
591 tag, tag_len); p9_virtio_probe()
592 chan->tag = tag; p9_virtio_probe()
620 kfree(tag); p9_virtio_probe()
652 if (!strncmp(devname, chan->tag, chan->tag_len) && p9_virtio_create()
711 kfree(chan->tag); p9_virtio_remove()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
H A Dwmi-tlv.c69 int (*iter)(struct ath10k *ar, u16 tag, u16 len, ath10k_wmi_tlv_iter()
87 tlv_tag = __le16_to_cpu(tlv->tag); ath10k_wmi_tlv_iter()
94 "wmi tlv parse failure of tag %hhu at byte %zd (%zu bytes left, %hhu expected)\n", ath10k_wmi_tlv_iter()
103 "wmi tlv parse failure of tag %hhu at byte %zd (%hhu bytes is less than min length %zu)\n", ath10k_wmi_tlv_iter()
120 static int ath10k_wmi_tlv_iter_parse(struct ath10k *ar, u16 tag, u16 len, ath10k_wmi_tlv_iter_parse() argument
125 if (tag < WMI_TLV_TAG_MAX) ath10k_wmi_tlv_iter_parse()
126 tb[tag] = ptr; ath10k_wmi_tlv_iter_parse()
608 static int ath10k_wmi_tlv_swba_tim_parse(struct ath10k *ar, u16 tag, u16 len, ath10k_wmi_tlv_swba_tim_parse() argument
613 if (tag != WMI_TLV_TAG_STRUCT_TIM_INFO) ath10k_wmi_tlv_swba_tim_parse()
623 static int ath10k_wmi_tlv_swba_noa_parse(struct ath10k *ar, u16 tag, u16 len, ath10k_wmi_tlv_swba_noa_parse() argument
628 if (tag != WMI_TLV_TAG_STRUCT_P2P_NOA_INFO) ath10k_wmi_tlv_swba_noa_parse()
638 static int ath10k_wmi_tlv_swba_parse(struct ath10k *ar, u16 tag, u16 len, ath10k_wmi_tlv_swba_parse() argument
644 switch (tag) { ath10k_wmi_tlv_swba_parse()
749 ath10k_wmi_tlv_parse_mem_reqs(struct ath10k *ar, u16 tag, u16 len, ath10k_wmi_tlv_parse_mem_reqs() argument
755 if (tag != WMI_TLV_TAG_STRUCT_WLAN_HOST_MEM_REQ) ath10k_wmi_tlv_parse_mem_reqs()
1027 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_SUSPEND_CMD); ath10k_wmi_tlv_op_gen_pdev_suspend()
1048 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_RESUME_CMD); ath10k_wmi_tlv_op_gen_pdev_resume()
1072 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_SET_REGDOMAIN_CMD); ath10k_wmi_tlv_op_gen_pdev_set_rd()
1098 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_SET_PARAM_CMD); ath10k_wmi_tlv_op_gen_pdev_set_param()
1130 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_INIT_CMD); ath10k_wmi_tlv_op_gen_init()
1137 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_RESOURCE_CONFIG); ath10k_wmi_tlv_op_gen_init()
1144 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); ath10k_wmi_tlv_op_gen_init()
1246 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_START_SCAN_CMD); ath10k_wmi_tlv_op_gen_start_scan()
1267 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_UINT32); ath10k_wmi_tlv_op_gen_start_scan()
1277 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_FIXED_STRUCT); ath10k_wmi_tlv_op_gen_start_scan()
1289 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_FIXED_STRUCT); ath10k_wmi_tlv_op_gen_start_scan()
1299 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); ath10k_wmi_tlv_op_gen_start_scan()
1336 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_STOP_SCAN_CMD); ath10k_wmi_tlv_op_gen_stop_scan()
1364 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_CREATE_CMD); ath10k_wmi_tlv_op_gen_vdev_create()
1388 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_DELETE_CMD); ath10k_wmi_tlv_op_gen_vdev_delete()
1433 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_START_REQUEST_CMD); ath10k_wmi_tlv_op_gen_vdev_start()
1453 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_CHANNEL); ath10k_wmi_tlv_op_gen_vdev_start()
1462 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); ath10k_wmi_tlv_op_gen_vdev_start()
1489 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_STOP_CMD); ath10k_wmi_tlv_op_gen_vdev_stop()
1512 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_UP_CMD); ath10k_wmi_tlv_op_gen_vdev_up()
1535 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_DOWN_CMD); ath10k_wmi_tlv_op_gen_vdev_down()
1557 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_SET_PARAM_CMD); ath10k_wmi_tlv_op_gen_vdev_set_param()
1591 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_INSTALL_KEY_CMD); ath10k_wmi_tlv_op_gen_vdev_install_key()
1609 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); ath10k_wmi_tlv_op_gen_vdev_install_key()
1628 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_STA_UAPSD_AUTO_TRIG_PARAM); ath10k_wmi_tlv_put_uapsd_ac()
1670 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_STA_UAPSD_AUTO_TRIG_CMD); ath10k_wmi_tlv_op_gen_vdev_sta_uapsd()
1681 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); ath10k_wmi_tlv_op_gen_vdev_sta_uapsd()
1700 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_WMM_PARAMS); ath10k_wmi_tlv_put_wmm()
1725 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_SET_WMM_PARAMS_CMD); ath10k_wmi_tlv_op_gen_vdev_wmm_conf()
1758 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_STA_KEEPALIVE_CMD); ath10k_wmi_tlv_op_gen_sta_keepalive()
1770 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_STA_KEEPALVE_ARP_RESPONSE); ath10k_wmi_tlv_op_gen_sta_keepalive()
1796 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PEER_CREATE_CMD); ath10k_wmi_tlv_op_gen_peer_create()
1820 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PEER_DELETE_CMD); ath10k_wmi_tlv_op_gen_peer_delete()
1843 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PEER_FLUSH_TIDS_CMD); ath10k_wmi_tlv_op_gen_peer_flush()
1869 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PEER_SET_PARAM_CMD); ath10k_wmi_tlv_op_gen_peer_set_param()
1912 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PEER_ASSOC_COMPLETE_CMD); ath10k_wmi_tlv_op_gen_peer_assoc()
1937 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); ath10k_wmi_tlv_op_gen_peer_assoc()
1946 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); ath10k_wmi_tlv_op_gen_peer_assoc()
1955 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VHT_RATE_SET); ath10k_wmi_tlv_op_gen_peer_assoc()
1984 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_STA_POWERSAVE_MODE_CMD); ath10k_wmi_tlv_op_gen_set_psmode()
2008 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_STA_POWERSAVE_PARAM_CMD); ath10k_wmi_tlv_op_gen_set_sta_ps()
2035 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_AP_PS_PEER_CMD); ath10k_wmi_tlv_op_gen_set_ap_ps()
2070 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_SCAN_CHAN_LIST_CMD); ath10k_wmi_tlv_op_gen_scan_chan_list()
2079 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); ath10k_wmi_tlv_op_gen_scan_chan_list()
2087 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_CHANNEL); ath10k_wmi_tlv_op_gen_scan_chan_list()
2125 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_BCN_SEND_FROM_HOST_CMD); ath10k_wmi_tlv_op_gen_beacon_dma()
2165 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_SET_WMM_PARAMS_CMD); ath10k_wmi_tlv_op_gen_pdev_set_wmm()
2195 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_REQUEST_STATS_CMD); ath10k_wmi_tlv_op_gen_request_stats()
2218 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_FORCE_FW_HANG_CMD); ath10k_wmi_tlv_op_gen_force_fw_hang()
2257 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_DEBUG_LOG_CONFIG_CMD); ath10k_wmi_tlv_op_gen_dbglog_cfg()
2267 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_UINT32); ath10k_wmi_tlv_op_gen_dbglog_cfg()
2295 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_PKTLOG_ENABLE_CMD); ath10k_wmi_tlv_op_gen_pktlog_enable()
2324 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_PKTLOG_DISABLE_CMD); ath10k_wmi_tlv_op_gen_pktlog_disable()
2360 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_BCN_TMPL_CMD); ath10k_wmi_tlv_op_gen_bcn_tmpl()
2376 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_BCN_PRB_INFO); ath10k_wmi_tlv_op_gen_bcn_tmpl()
2388 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); ath10k_wmi_tlv_op_gen_bcn_tmpl()
2419 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PRB_TMPL_CMD); ath10k_wmi_tlv_op_gen_prb_tmpl()
2429 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_BCN_PRB_INFO); ath10k_wmi_tlv_op_gen_prb_tmpl()
2439 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); ath10k_wmi_tlv_op_gen_prb_tmpl()
2466 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_P2P_GO_SET_BEACON_IE); ath10k_wmi_tlv_op_gen_p2p_go_bcn_ie()
2476 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); ath10k_wmi_tlv_op_gen_p2p_go_bcn_ie()
68 ath10k_wmi_tlv_iter(struct ath10k *ar, const void *ptr, size_t len, int (*iter)(struct ath10k *ar, u16 tag, u16 len, const void *ptr, void *data), void *data) ath10k_wmi_tlv_iter() argument
/linux-4.1.27/drivers/android/
H A Dbinder_trace.h46 TP_PROTO(const char *tag),
47 TP_ARGS(tag),
49 __field(const char *, tag)
52 __entry->tag = tag;
54 TP_printk("tag=%s", __entry->tag)
/linux-4.1.27/fs/cachefiles/
H A Dbind.c68 /* make sure we have copies of the tag and dirname strings */ cachefiles_daemon_bind()
69 if (!cache->tag) { cachefiles_daemon_bind()
70 /* the tag string is released by the fops->release() cachefiles_daemon_bind()
72 cache->tag = kstrdup("CacheFiles", GFP_KERNEL); cachefiles_daemon_bind()
73 if (!cache->tag) cachefiles_daemon_bind()
223 ret = fscache_add_cache(&cache->cache, &fsdef->fscache, cache->tag); cachefiles_daemon_add_cache()
274 kfree(cache->tag); cachefiles_daemon_unbind()
H A Ddaemon.c79 { "tag", cachefiles_daemon_tag },
524 * set the cache tag
525 * - command: "tag <name>"
529 char *tag; cachefiles_daemon_tag() local
534 pr_err("Empty tag specified\n"); cachefiles_daemon_tag()
538 if (cache->tag) cachefiles_daemon_tag()
541 tag = kstrdup(args, GFP_KERNEL); cachefiles_daemon_tag()
542 if (!tag) cachefiles_daemon_tag()
545 cache->tag = tag; cachefiles_daemon_tag()
/linux-4.1.27/drivers/scsi/mvsas/
H A Dmv_sas.c28 static int mvs_find_tag(struct mvs_info *mvi, struct sas_task *task, u32 *tag) mvs_find_tag() argument
33 *tag = slot->slot_tag; mvs_find_tag()
39 void mvs_tag_clear(struct mvs_info *mvi, u32 tag) mvs_tag_clear() argument
42 clear_bit(tag, bitmap); mvs_tag_clear()
45 void mvs_tag_free(struct mvs_info *mvi, u32 tag) mvs_tag_free() argument
47 mvs_tag_clear(mvi, tag); mvs_tag_free()
50 void mvs_tag_set(struct mvs_info *mvi, unsigned int tag) mvs_tag_set() argument
53 set_bit(tag, bitmap); mvs_tag_set()
58 unsigned int index, tag; mvs_tag_alloc() local
62 tag = index; mvs_tag_alloc()
63 if (tag >= mvi->tags_num) mvs_tag_alloc()
65 mvs_tag_set(mvi, tag); mvs_tag_alloc()
66 *tag_out = tag; mvs_tag_alloc()
327 u32 req_len, resp_len, tag = tei->tag; mvs_task_prep_smp() local
332 struct mvs_slot_info *slot = &mvi->slot_info[tag]; mvs_task_prep_smp()
397 TXQ_MODE_I | tag | mvs_task_prep_smp()
402 hdr->tags = cpu_to_le32(tag); mvs_task_prep_smp()
426 static u32 mvs_get_ncq_tag(struct sas_task *task, u32 *tag) mvs_get_ncq_tag() argument
433 *tag = qc->tag; mvs_get_ncq_tag()
451 u32 tag = tei->tag, hdr_tag; mvs_task_prep_ata() local
464 slot = &mvi->slot_info[tag]; mvs_task_prep_ata()
466 del_q = TXQ_MODE_I | tag | mvs_task_prep_ata()
489 hdr_tag = tag; mvs_task_prep_ata()
584 u32 resp_len, req_len, i, tag = tei->tag; mvs_task_prep_ssp() local
588 slot = &mvi->slot_info[tag]; mvs_task_prep_ssp()
594 mvi->tx[mvi->tx_prod] = cpu_to_le32(TXQ_MODE_I | tag | mvs_task_prep_ssp()
609 hdr->tags = cpu_to_le32(tag); mvs_task_prep_ssp()
677 ssp_hdr->tag = cpu_to_be16(tag); mvs_task_prep_ssp()
715 u32 tag = 0xdeadbeef, n_elem = 0; mvs_task_prep() local
780 rc = mvs_tag_alloc(mvi, &tag); mvs_task_prep()
784 slot = &mvi->slot_info[tag]; mvs_task_prep()
788 slot->slot_tag = tag; mvs_task_prep()
796 tei.hdr = &mvi->slot[tag]; mvs_task_prep()
797 tei.tag = tag; mvs_task_prep()
840 mvs_tag_free(mvi, tag); mvs_task_prep()
1441 u32 tag; mvs_query_task() local
1453 rc = mvs_find_tag(mvi, task, &tag); mvs_query_task()
1460 tmf_task.tag_of_task_to_be_managed = cpu_to_le16(tag); mvs_query_task()
1486 u32 tag; mvs_abort_task() local
1507 rc = mvs_find_tag(mvi, task, &tag); mvs_abort_task()
1509 mv_printk("No such tag in %s\n", __func__); mvs_abort_task()
1515 tmf_task.tag_of_task_to_be_managed = cpu_to_le16(tag); mvs_abort_task()
1864 mv_printk("Release slot [%x] tag[%x], task [%p]:\n", mvs_do_release_task()
/linux-4.1.27/drivers/net/wireless/ti/wl12xx/
H A Dscan.h93 u8 tag; member in struct:wl1271_cmd_sched_scan_config
119 u8 tag; member in struct:wl1271_cmd_sched_scan_start
127 u8 tag; member in struct:wl1271_cmd_sched_scan_stop
/linux-4.1.27/drivers/block/mtip32xx/
H A Dmtip32xx.h60 /* Macro to extract the tag bit number from a tag value. */
61 #define MTIP_TAG_BIT(tag) (tag & 0x1F)
64 * Macro to extract the tag index from a tag value. The index
66 * on the tag value.
68 #define MTIP_TAG_INDEX(tag) (tag >> 5)
82 /* Internal command tag. */
106 * Per-tag bitfield size in longs.
336 int tag,
/linux-4.1.27/arch/arm/mach-pxa/
H A Dcolibri-pxa3xx.c44 * If the bootloader passed in a serial boot tag, which contains a colibri_pxa3xx_init_eth()
58 printk(KERN_INFO "%s(): taking MAC from serial boot tag\n", colibri_pxa3xx_init_eth()
62 printk(KERN_INFO "%s(): no valid serial boot tag found, " colibri_pxa3xx_init_eth()
/linux-4.1.27/drivers/media/pci/ngene/
H A Dngene-cards.c409 u16 Addr = MICNG_EE_START, Length, tag = 0; ReadEEProm() local
415 tag = (EETag[0] << 8) | EETag[1]; ReadEEProm()
416 if (tag == MICNG_EETAG_END0 || tag == MICNG_EETAG_END1) ReadEEProm()
418 if (tag == Tag) ReadEEProm()
425 tag, EETag[2]); ReadEEProm()
451 u16 tag = 0; WriteEEProm() local
457 tag = (EETag[0] << 8) | EETag[1]; WriteEEProm()
458 if (tag == MICNG_EETAG_END0 || tag == MICNG_EETAG_END1) WriteEEProm()
460 if (tag == Tag) WriteEEProm()
467 tag, EETag[2]); WriteEEProm()
507 static int eeprom_read_ushort(struct i2c_adapter *adapter, u16 tag, u16 *data) eeprom_read_ushort() argument
513 stat = ReadEEProm(adapter, tag, 2, buf, &len); eeprom_read_ushort()
523 static int eeprom_write_ushort(struct i2c_adapter *adapter, u16 tag, u16 data) eeprom_write_ushort() argument
530 stat = WriteEEProm(adapter, tag, 2, buf); eeprom_write_ushort()
/linux-4.1.27/arch/tile/include/asm/
H A Dmodule.h31 /* We don't really support no-SMP so tag if someone tries. */
H A Dsmp.h32 void send_IPI_many(const struct cpumask *mask, int tag);
35 void send_IPI_allbutself(int tag);
38 void send_IPI_single(int dest, int tag);
41 void evaluate_message(int tag);
/linux-4.1.27/drivers/bcma/
H A Dscan.h8 #define SCAN_ER_TAGX 0x00000006 /* we have to ignore 0x8 bit when checking tag for SCAN_ER_TAG_ADDR */
/linux-4.1.27/arch/mips/kernel/
H A Dspram.c51 /* enable SPRAM tag access */ ispram_store_tag()
71 /* enable SPRAM tag access */ ispram_load_tag()
88 /* enable SPRAM tag access */ dspram_store_tag()
161 /* reread the tag */ probe_spram()
/linux-4.1.27/arch/powerpc/boot/
H A Dplanetcore.h37 * on the EA tag.
/linux-4.1.27/security/selinux/ss/
H A Dsidtab.h49 void sidtab_hash_eval(struct sidtab *h, char *tag);
/linux-4.1.27/tools/thermal/tmon/
H A DMakefile46 git tag v$(VERSION)
/linux-4.1.27/drivers/media/usb/gspca/
H A Dkinect.c56 __le16 tag; member in struct:cam_hdr
152 chdr->tag = cpu_to_le16(sd->cam_tag); send_cmd()
158 PDEBUG(D_USBO, "Control cmd=%04x tag=%04x len=%04x: %d", cmd, send_cmd()
186 if (rhdr->tag != chdr->tag) { send_cmd()
187 pr_err("send_cmd: Bad tag %04x != %04x\n", send_cmd()
188 rhdr->tag, chdr->tag); send_cmd()
/linux-4.1.27/arch/mips/include/asm/fw/arc/
H A Dhinv.h103 unsigned char c_lsize; /* line size in bytes/tag */
107 unsigned char c_lsize; /* line size in bytes/tag */
/linux-4.1.27/drivers/usb/gadget/legacy/
H A Dtcm_usb_gadget.h43 /* SAS port target portal group tag for TCM */
87 u16 tag; member in struct:usbg_cmd
/linux-4.1.27/arch/sh/include/cpu-sh5/cpu/
H A Dcache.h62 * |<--- tag (19 bits) --->|
70 * A cache line is identified by a tag + set but OCACHETAG/ICACHETAG
/linux-4.1.27/arch/arm/include/asm/mach/
H A Darch.h16 struct tag;
52 void (*fixup)(struct tag *, char **);
/linux-4.1.27/arch/m68k/fpsp040/
H A Dget_op.S18 | number(s) is normalized and the operand type tag is updated.
21 | operand type tag is updated.
49 | res_func sees the denorm tag and converts the denorm to a
233 | ;L_SCR1{7:5} = operand tag
241 moveb L_SCR1(%a6),DTAG(%a6) |write the new tag & fpte15
261 | ;L_SCR1{7:5} = operand tag
269 moveb L_SCR1(%a6),STAG(%a6) |write the new tag & ete15
301 moveb L_SCR1(%a6),STAG(%a6) |put tag into source tag reg - d0
324 btstb #7,DTAG(%a6) |check dest tag for unnorm or denorm
376 | Normalizes unnormalized numbers, sets tag to norm or denorm, sets unfl
381 | set tag = norm
386 | tag = denorm
388 | tag = norm
393 | tag = denorm
396 | tag = norm
405 | L_SCR1{7:5} = operand tag (000 = norm, 100 = denorm)
430 | ;tag), since this routine doesn't
448 orw #dnrm_tag,L_SCR1(%a6) |set denorm tag
460 orb #norm_tag,L_SCR1(%a6) |set tag to norm
463 orb #dnrm_tag,L_SCR1(%a6) |set tag to denorm
473 orb #norm_tag,L_SCR1(%a6) |set tag to norm
476 orb #dnrm_tag,L_SCR1(%a6) |set tag to denorm
621 |tag (stag)
/linux-4.1.27/fs/jbd2/
H A Drecovery.c204 journal_block_tag_t * tag; count_tags() local
214 tag = (journal_block_tag_t *) tagp; count_tags()
218 if (!(tag->t_flags & cpu_to_be16(JBD2_FLAG_SAME_UUID))) count_tags()
221 if (tag->t_flags & cpu_to_be16(JBD2_FLAG_LAST_TAG)) count_tags()
342 journal_block_tag_t *tag) read_tag_block()
344 unsigned long long block = be32_to_cpu(tag->t_blocknr); read_tag_block()
346 block |= (u64)be32_to_cpu(tag->t_blocknr_high) << 32; read_tag_block()
400 static int jbd2_block_tag_csum_verify(journal_t *j, journal_block_tag_t *tag, jbd2_block_tag_csum_verify() argument
403 journal_block_tag3_t *tag3 = (journal_block_tag3_t *)tag; jbd2_block_tag_csum_verify()
417 return tag->t_checksum == cpu_to_be16(csum32); jbd2_block_tag_csum_verify()
462 journal_block_tag_t * tag; do_one_pass() local
568 tag = (journal_block_tag_t *) tagp; do_one_pass()
569 flags = be16_to_cpu(tag->t_flags); do_one_pass()
587 tag); do_one_pass()
602 journal, tag, obh->b_data, do_one_pass()
341 read_tag_block(journal_t *journal, journal_block_tag_t *tag) read_tag_block() argument
/linux-4.1.27/drivers/input/tablet/
H A Dgtco.c209 __u8 tag; parse_hid_report_descriptor() local
257 /* What we do depends on the tag type */ parse_hid_report_descriptor()
258 tag = PREF_TAG(prefix); parse_hid_report_descriptor()
263 switch (tag) { parse_hid_report_descriptor()
267 * The INPUT MAIN tag signifies this is parse_hid_report_descriptor()
387 indentstr, tag, maintype, size, globtype, data); parse_hid_report_descriptor()
392 indentstr, tag, maintype, size, globtype, data16); parse_hid_report_descriptor()
397 indentstr, tag, maintype, size, globtype, data32); parse_hid_report_descriptor()
403 switch (tag) { parse_hid_report_descriptor()
406 * First time we hit the global usage tag, parse_hid_report_descriptor()
462 /* Check to make sure we have a good tag number parse_hid_report_descriptor()
464 if (tag < TAG_GLOB_MAX) { parse_hid_report_descriptor()
468 indentstr, globtype, tag, size, data); parse_hid_report_descriptor()
469 globalval[tag] = data; parse_hid_report_descriptor()
474 indentstr, globtype, tag, size, data16); parse_hid_report_descriptor()
475 globalval[tag] = data16; parse_hid_report_descriptor()
480 indentstr, globtype, tag, size, data32); parse_hid_report_descriptor()
481 globalval[tag] = data32; parse_hid_report_descriptor()
486 indentstr, tag, size); parse_hid_report_descriptor()
491 switch (tag) { parse_hid_report_descriptor()
514 indentstr, tag, globtype, size, data); parse_hid_report_descriptor()
519 indentstr, tag, globtype, size, data16); parse_hid_report_descriptor()
524 indentstr, tag, globtype, size, data32); parse_hid_report_descriptor()
/linux-4.1.27/drivers/scsi/aic94xx/
H A Daic94xx_tmf.c63 __be16 tag; member in struct:tasklet_completion_status
71 .tag = 0, \
241 scb->clear_nexus.ssp_task.tag = tascb->tag; asd_clear_nexus_tag()
305 ascb->tag = *(__be16 *)(edb->vaddr+4); asd_get_tmf_resp_tasklet()
312 ascb->tag = fh->tag; asd_get_tmf_resp_tasklet()
336 tcs->tag = ascb->tag; asd_tmf_tasklet_complete()
464 scb->abort_task.ssp_task.tag = cpu_to_be16(0xFFFF); asd_abort_task()
481 tascb->tag = tcs.tag; asd_abort_task()
535 case TF_TMF_TAG_FREE: /* the tag is in the free list */ asd_abort_task()
639 case TF_TMF_TAG_FREE: /* the tag is in the free list */ asd_initiate_ssp_tmf()
/linux-4.1.27/drivers/scsi/isci/
H A Dtask.c131 u16 tag; isci_task_execute_task() local
136 tag = isci_alloc_tag(ihost); isci_task_execute_task()
147 } else if (!io_ready || tag == SCI_CONTROLLER_INVALID_IO_TAG) { isci_task_execute_task()
169 status = isci_request_execute(ihost, idev, task, tag); isci_task_execute_task()
201 if (status != SCI_SUCCESS && tag != SCI_CONTROLLER_INVALID_IO_TAG) { isci_task_execute_task()
206 isci_tci_free(ihost, ISCI_TAG_TCI(tag)); isci_task_execute_task()
216 u16 tag, struct isci_tmf *isci_tmf) isci_task_request_build()
228 ireq = isci_tmf_request_from_tag(ihost, isci_tmf, tag); isci_task_request_build()
233 status = sci_task_request_construct(ihost, idev, tag, isci_task_request_build()
266 u16 tag; isci_task_execute_tmf() local
269 tag = isci_alloc_tag(ihost); isci_task_execute_tmf()
272 if (tag == SCI_CONTROLLER_INVALID_IO_TAG) isci_task_execute_tmf()
295 ireq = isci_task_request_build(ihost, idev, tag, tmf); isci_task_execute_tmf()
351 isci_tci_free(ihost, ISCI_TAG_TCI(tag)); isci_task_execute_tmf()
214 isci_task_request_build(struct isci_host *ihost, struct isci_remote_device *idev, u16 tag, struct isci_tmf *isci_tmf) isci_task_request_build() argument
/linux-4.1.27/drivers/net/ethernet/sun/
H A Dsunvnet.c96 pkt.tag.type = VIO_TYPE_CTRL; vnet_send_attr()
97 pkt.tag.stype = VIO_SUBTYPE_INFO; vnet_send_attr()
98 pkt.tag.stype_env = VIO_ATTR_INFO; vnet_send_attr()
99 pkt.tag.sid = vio_send_sid(vio); vnet_send_attr()
162 pkt->tag.sid = vio_send_sid(vio); handle_attr_info()
217 pkt->tag.stype = VIO_SUBTYPE_NACK; handle_attr_info()
232 pkt->tag.stype = VIO_SUBTYPE_ACK; handle_attr_info()
259 switch (pkt->tag.stype) { vnet_handle_attr()
430 .tag = { vnet_send_ack()
597 pkt->tag.stype_env, pkt->seq, dr->rcv_nxt); vnet_rx()
599 if (unlikely(pkt->tag.stype_env != VIO_DRING_DATA)) vnet_rx()
641 if (unlikely(pkt->tag.stype_env != VIO_DRING_DATA)) vnet_ack()
690 if (pkt->tag.stype != VIO_SUBTYPE_ACK) handle_mcast()
693 pkt->tag.type, handle_mcast()
694 pkt->tag.stype, handle_mcast()
695 pkt->tag.stype_env, handle_mcast()
696 pkt->tag.sid); handle_mcast()
761 struct vio_msg_tag tag; vnet_event_napi() member in union:__anon7357
771 pkt->tag.type = VIO_TYPE_DATA; vnet_event_napi()
772 pkt->tag.stype = VIO_SUBTYPE_INFO; vnet_event_napi()
773 pkt->tag.stype_env = VIO_DRING_DATA; vnet_event_napi()
788 msgbuf.tag.type, vnet_event_napi()
789 msgbuf.tag.stype, vnet_event_napi()
790 msgbuf.tag.stype_env, vnet_event_napi()
791 msgbuf.tag.sid); vnet_event_napi()
792 err = vio_validate_sid(vio, &msgbuf.tag); vnet_event_napi()
796 if (likely(msgbuf.tag.type == VIO_TYPE_DATA)) { vnet_event_napi()
797 if (msgbuf.tag.stype == VIO_SUBTYPE_INFO) { vnet_event_napi()
811 } else if (msgbuf.tag.stype == VIO_SUBTYPE_ACK) { vnet_event_napi()
815 } else if (msgbuf.tag.stype == VIO_SUBTYPE_NACK) { vnet_event_napi()
818 } else if (msgbuf.tag.type == VIO_TYPE_CTRL) { vnet_event_napi()
819 if (msgbuf.tag.stype_env == VNET_MCAST_INFO) vnet_event_napi()
865 .tag = { __vnet_tx_trigger()
1521 info.tag.type = VIO_TYPE_CTRL; __send_mc_list()
1522 info.tag.stype = VIO_SUBTYPE_INFO; __send_mc_list()
1523 info.tag.stype_env = VNET_MCAST_INFO; __send_mc_list()
1524 info.tag.sid = vio_send_sid(&port->vio); __send_mc_list()
/linux-4.1.27/drivers/scsi/cxgbi/
H A Dlibcxgbi.h119 unsigned int tag; member in struct:cxgbi_gather_list
603 static inline int cxgbi_is_ddp_tag(struct cxgbi_tag_format *tformat, u32 tag) cxgbi_is_ddp_tag() argument
605 return !(tag & (1 << (tformat->rsvd_bits + tformat->rsvd_shift - 1))); cxgbi_is_ddp_tag()
649 u32 tag) cxgbi_tag_rsvd_bits()
651 if (cxgbi_is_ddp_tag(tformat, tag)) cxgbi_tag_rsvd_bits()
652 return (tag >> tformat->rsvd_shift) & tformat->rsvd_mask; cxgbi_tag_rsvd_bits()
658 u32 tag) cxgbi_tag_nonrsvd_bits()
663 if (cxgbi_is_ddp_tag(tformat, tag)) { cxgbi_tag_nonrsvd_bits()
664 v1 = tag & ((1 << tformat->rsvd_shift) - 1); cxgbi_tag_nonrsvd_bits()
665 v2 = (tag >> (shift + 1)) << tformat->rsvd_shift; cxgbi_tag_nonrsvd_bits()
668 tag &= ~(1 << shift); cxgbi_tag_nonrsvd_bits()
669 v1 = tag & mask; cxgbi_tag_nonrsvd_bits()
670 v2 = (tag >> 1) & ~mask; cxgbi_tag_nonrsvd_bits()
648 cxgbi_tag_rsvd_bits(struct cxgbi_tag_format *tformat, u32 tag) cxgbi_tag_rsvd_bits() argument
657 cxgbi_tag_nonrsvd_bits(struct cxgbi_tag_format *tformat, u32 tag) cxgbi_tag_nonrsvd_bits() argument
/linux-4.1.27/arch/x86/kernel/
H A Di387.c417 * FPU tag word conversions.
446 u32 tag; twd_fxsr_to_i387() local
456 tag = FP_EXP_TAG_SPECIAL; twd_fxsr_to_i387()
463 tag = FP_EXP_TAG_ZERO; twd_fxsr_to_i387()
465 tag = FP_EXP_TAG_SPECIAL; twd_fxsr_to_i387()
469 tag = FP_EXP_TAG_VALID; twd_fxsr_to_i387()
471 tag = FP_EXP_TAG_SPECIAL; twd_fxsr_to_i387()
475 tag = FP_EXP_TAG_EMPTY; twd_fxsr_to_i387()
477 ret |= tag << (2 * i); twd_fxsr_to_i387()
/linux-4.1.27/arch/x86/um/
H A Dsignal.c20 * FPU tag word conversions.
41 unsigned long tag; twd_fxsr_to_i387() local
53 tag = 2; /* Special */ twd_fxsr_to_i387()
60 tag = 1; /* Zero */ twd_fxsr_to_i387()
62 tag = 2; /* Special */ twd_fxsr_to_i387()
67 tag = 0; /* Valid */ twd_fxsr_to_i387()
69 tag = 2; /* Special */ twd_fxsr_to_i387()
74 tag = 3; /* Empty */ twd_fxsr_to_i387()
76 ret |= (tag << (2 * i)); twd_fxsr_to_i387()
/linux-4.1.27/drivers/char/tpm/
H A Dtpm2-cmd.c229 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS),
277 .tag = cpu_to_be16(TPM2_ST_SESSIONS),
321 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS),
378 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS),
417 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS),
449 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS),
511 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS),
623 * the reply tag.
641 if (be16_to_cpu(cmd.header.out.tag) == TPM2_ST_NO_SESSIONS) tpm2_probe()
H A Dtpm.h211 __be16 tag; member in struct:tpm_input_header
217 __be16 tag; member in struct:tpm_output_header
225 __be16 tag; member in struct:stclear_flags_t
241 __be16 tag; member in struct:tpm_version_1_2_t
262 __be16 tag; member in struct:permanent_flags_t
/linux-4.1.27/drivers/staging/rtl8712/
H A Drtl871x_pwrctrl.c117 static inline void register_task_alive(struct pwrctrl_priv *pwrctrl, uint tag) register_task_alive() argument
119 pwrctrl->alives |= tag; register_task_alive()
122 static inline void unregister_task_alive(struct pwrctrl_priv *pwrctrl, uint tag) unregister_task_alive() argument
124 if (pwrctrl->alives & tag) unregister_task_alive()
125 pwrctrl->alives ^= tag; unregister_task_alive()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Dgf100.c114 if (mem->tag) { gf100_vm_map()
116 u32 tag = mem->tag->offset + (delta >> 17); gf100_vm_map() local
117 phys |= (u64)tag << (32 + 12); gf100_vm_map()
119 ltc->tags_clear(ltc, tag, cnt); gf100_vm_map()
/linux-4.1.27/drivers/block/aoe/
H A Daoecmd.c79 getframe_deferred(struct aoedev *d, u32 tag) getframe_deferred() argument
87 if (f->tag == tag) { list_for_each_safe()
96 getframe(struct aoedev *d, u32 tag) getframe() argument
102 n = tag % NFACTIVE; getframe()
106 if (f->tag == tag) { list_for_each_safe()
117 * This driver reserves tag -1 to mean "unused frame."
140 h->tag = cpu_to_be32(host_tag); aoehdr_atainit()
313 n = f->tag % NFACTIVE; fhash()
336 f->tag = aoehdr_atainit(t->d, t, h); ata_rw_frameinit()
477 f->tag, jiffies, n, resend()
482 f->tag = n; resend()
484 h->tag = cpu_to_be32(n); resend()
532 tsince(u32 tag) tsince() argument
537 n -= tag & 0xffff; tsince()
1386 n = be32_to_cpu(get_unaligned(&h->tag)); aoecmd_ata_rsp()
1402 "%15s e%d.%d tag=%08x@%08lx s=%pm d=%pm\n", aoecmd_ata_rsp()
1406 get_unaligned_be32(&h->tag), aoecmd_ata_rsp()
1458 f->tag = aoehdr_atainit(d, t, h); aoecmd_ata_id()
/linux-4.1.27/fs/kernfs/
H A Dmount.c118 * kernfs_super_ns - determine the namespace tag of a kernfs super_block
121 * Return the namespace tag associated with kernfs super_block @sb.
137 * @ns: optional namespace tag of the mount
141 * @flags, and specify the hierarchy and namespace tag to mount via @root
217 * @ns: the namespace tag
/linux-4.1.27/arch/avr32/boards/atngw100/
H A Dsetup.c107 struct tag *bootloader_tags __initdata;
152 static int __init parse_tag_ethernet(struct tag *tag) parse_tag_ethernet() argument
156 i = tag->u.ethernet.mac_index; parse_tag_ethernet()
158 memcpy(hw_addr[i].addr, tag->u.ethernet.hw_address, parse_tag_ethernet()
/linux-4.1.27/arch/avr32/boards/favr-32/
H A Dsetup.c49 struct tag *bootloader_tags __initdata;
178 static int __init parse_tag_ethernet(struct tag *tag) parse_tag_ethernet() argument
182 i = tag->u.ethernet.mac_index; parse_tag_ethernet()
184 memcpy(hw_addr[i].addr, tag->u.ethernet.hw_address, parse_tag_ethernet()

Completed in 4873 milliseconds

123456