Home
last modified time | relevance | path

Searched refs:howto (Results 1 – 25 of 196) sorted by relevance

12345678

/freebsd-11-stable/sys/kern/
HDsubr_boot.c95 int i, howto; in boot_env_to_howto() local
98 for (howto = 0, i = 0; howto_names[i].ev != NULL; i++) { in boot_env_to_howto()
101 howto |= howto_names[i].mask; in boot_env_to_howto()
104 return (howto); in boot_env_to_howto()
111 boot_howto_to_env(int howto) in boot_howto_to_env() argument
116 if (howto & howto_names[i].mask) in boot_howto_to_env()
131 int howto; in boot_parse_arg() local
147 howto |= howto_masks[sw - howto_switches]; in boot_parse_arg()
152 howto = 0; in boot_parse_arg()
157 case 'a': howto |= RB_ASKNAME; break; in boot_parse_arg()
[all …]
HDkern_shutdown.c172 static void shutdown_halt(void *junk, int howto);
173 static void shutdown_panic(void *junk, int howto);
174 static void shutdown_reset(void *junk, int howto);
244 int howto; in shutdown_nice_task_fn() local
246 howto = (uintptr_t)arg; in shutdown_nice_task_fn()
249 if (howto & RB_POWEROFF) in shutdown_nice_task_fn()
251 else if (howto & RB_HALT) in shutdown_nice_task_fn()
265 shutdown_nice(int howto) in shutdown_nice() argument
269 shutdown_nice_task.ta_context = (void *)(uintptr_t)howto; in shutdown_nice()
276 kern_reboot(howto | RB_NOSYNC); in shutdown_nice()
[all …]
/freebsd-11-stable/contrib/binutils/bfd/
HDreloc.c434 bfd_get_reloc_size (reloc_howto_type *howto) in bfd_get_reloc_size() argument
436 switch (howto->size) in bfd_get_reloc_size()
587 reloc_howto_type *howto = reloc_entry->howto; in bfd_perform_relocation() local
610 if (howto->special_function) in bfd_perform_relocation()
613 cont = howto->special_function (abfd, reloc_entry, symbol, data, in bfd_perform_relocation()
636 if ((output_bfd && ! howto->partial_inplace) in bfd_perform_relocation()
650 if (howto->pc_relative) in bfd_perform_relocation()
683 if (howto->pcrel_offset) in bfd_perform_relocation()
689 if (! howto->partial_inplace) in bfd_perform_relocation()
803 if (howto->complain_on_overflow != complain_overflow_dont in bfd_perform_relocation()
[all …]
HDcoff-i386.c111 reloc_howto_type *howto = reloc_entry->howto; local
120 if (howto->pc_relative && howto->pcrel_offset)
121 diff = -(1 << howto->size);
134 if (reloc_entry->howto->type == R_IMAGEBASE
141 x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + diff) & howto->dst_mask))
145 reloc_howto_type *howto = reloc_entry->howto; local
148 switch (howto->size)
189 static bfd_boolean in_reloc_p (abfd, howto) in in_reloc_p() argument
191 reloc_howto_type *howto;
193 return ! howto->pc_relative && howto->type != R_IMAGEBASE;
[all …]
HDcoff-x86_64.c103 reloc_howto_type *howto = reloc_entry->howto; in coff_amd64_reloc() local
112 if(howto->pc_relative && howto->pcrel_offset) in coff_amd64_reloc()
113 diff = -(1 << howto->size); in coff_amd64_reloc()
126 if (reloc_entry->howto->type == R_AMD64_IMAGEBASE in coff_amd64_reloc()
133 x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + diff) & howto->dst_mask)) in coff_amd64_reloc()
137 reloc_howto_type *howto = reloc_entry->howto; in coff_amd64_reloc() local
140 switch (howto->size) in coff_amd64_reloc()
187 in_reloc_p (bfd *abfd ATTRIBUTE_UNUSED, reloc_howto_type *howto) in in_reloc_p() argument
189 return ! howto->pc_relative && howto->type != R_AMD64_IMAGEBASE; in in_reloc_p()
446 #define SELECT_RELOC(x,howto) { x.r_type = howto->type; } argument
[all …]
HDpe-mips.c90 …x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + (diff >> howto->rightshift)) & howto->dst_… in coff_mips_reloc()
94 reloc_howto_type *howto = reloc_entry->howto; in coff_mips_reloc() local
97 switch (howto->size) in coff_mips_reloc()
140 in_reloc_p (bfd * abfd ATTRIBUTE_UNUSED, reloc_howto_type *howto) in in_reloc_p() argument
142 return ! howto->pc_relative && howto->type != MIPS_R_RVA; in in_reloc_p()
338 #define SELECT_RELOC(x, howto) { x.r_type = howto->type; } argument
345 (cache_ptr)->howto = howto_table + (dst)->r_type;
391 reloc_howto_type *howto; in coff_mips_rtype_to_howto() local
393 howto = howto_table + rel->r_type; in coff_mips_rtype_to_howto()
399 if (howto->pc_relative) in coff_mips_rtype_to_howto()
[all …]
HDcoff-rs6000.c78 #define SELECT_RELOC(internal, howto) \ argument
80 internal.r_type = howto->type; \
82 ((howto->complain_on_overflow == complain_overflow_signed \
85 | (howto->bitsize - 1)); \
1003 relent->howto = &xcoff_howto_table[internal->r_type];
1009 relent->howto = &xcoff_howto_table[0x1c];
1011 relent->howto = &xcoff_howto_table[0x1d];
1013 relent->howto = &xcoff_howto_table[0x1e];
1021 if (relent->howto->dst_mask != 0
1022 && (relent->howto->bitsize
[all …]
HDaout-arm.c145 reloc_howto_type *howto, in MY()
154 r_length = howto->size; in MY()
157 if (howto->type == 3 || howto->type == 7) in MY()
160 r_pcrel = howto->type & 4; /* PC Relative done? */ in MY()
161 r_neg = howto->type & 8; /* Negative relocation. */ in MY()
191 MY (relocatable_reloc) (reloc_howto_type *howto, in MY()
197 if (howto->type == 3) in MY()
215 else if (howto->type == 7) in MY()
287 reloc_entry->howto = &MY (howto_table)[7]; in MY()
360 cache_ptr->howto = MY_reloc_howto (abfd, bytes, r_index, r_extern, r_pcrel); in MY_swap_std_reloc_in()
[all …]
HDcoff-ppc.c364 static bfd_boolean in_reloc_p PARAMS((bfd *abfd, reloc_howto_type *howto));
966 static bfd_boolean in_reloc_p(abfd, howto) in in_reloc_p() argument
968 reloc_howto_type *howto;
971 (! howto->pc_relative)
972 && (howto->type != IMAGE_REL_PPC_ADDR32NB)
973 && (howto->type != IMAGE_REL_PPC_TOCREL16)
974 && (howto->type != IMAGE_REL_PPC_IMGLUE)
975 && (howto->type != IMAGE_REL_PPC_IFGLUE)
976 && (howto->type != IMAGE_REL_PPC_SECREL)
977 && (howto->type != IMAGE_REL_PPC_SECTION)
[all …]
HDelf32-score.c409 if (reloc_entry->howto->partial_inplace) in gprel32_with_gp()
419 if (reloc_entry->howto->partial_inplace) in gprel32_with_gp()
1750 reloc_howto_type *howto, in score_elf_add_to_rel() argument
1756 unsigned long r_type = howto->type; in score_elf_add_to_rel()
1761 addend = contents & howto->src_mask; in score_elf_add_to_rel()
1762 if (addend & ((howto->src_mask + 1) >> 1)) in score_elf_add_to_rel()
1767 mask &= ~howto->src_mask; in score_elf_add_to_rel()
1775 (((contents & howto->src_mask) & 0x3ff0000) >> 6) | ((contents & howto->src_mask) & 0x3ff); in score_elf_add_to_rel()
1778 (contents & ~howto-> in score_elf_add_to_rel()
1779 src_mask) | (((offset << 6) & howto->src_mask) & 0x3ff0000) | (offset & 0x3ff); in score_elf_add_to_rel()
[all …]
HDcoff-arm.c110 x = ((x & ~howto->dst_mask) \ in coff_arm_reloc()
111 | (((x & howto->src_mask) + diff) & howto->dst_mask)) in coff_arm_reloc()
115 reloc_howto_type *howto = reloc_entry->howto; in coff_arm_reloc() local
118 switch (howto->size) in coff_arm_reloc()
509 reloc_howto_type * howto) in in_reloc_p() argument
511 return !howto->pc_relative && howto->type != ARM_RVA32; in in_reloc_p()
516 (cache_ptr)->howto = \
531 reloc_howto_type * howto; in coff_arm_rtype_to_howto() local
536 howto = aoutarm_std_reloc_howto + rel->r_type; in coff_arm_rtype_to_howto()
567 return howto; in coff_arm_rtype_to_howto()
[all …]
HDcoff64-rs6000.c222 #define SELECT_RELOC(internal, howto) \ argument
224 internal.r_type = howto->type; \
226 ((howto->complain_on_overflow == complain_overflow_signed \
229 | (howto->bitsize - 1)); \
1101 xcoff64_reloc_type_br (input_bfd, input_section, output_bfd, rel, sym, howto, in xcoff64_reloc_type_br() argument
1108 struct reloc_howto_struct *howto;
1161 howto->complain_on_overflow = complain_overflow_dont;
1164 howto->pc_relative = TRUE;
1165 howto->src_mask &= ~3;
1166 howto->dst_mask = howto->src_mask;
[all …]
HDbout.c318 if (g->howto== &howto_reloc_callj) in b_out_squirt_out_relocs()
320 else if (g->howto == &howto_reloc_pcrel24) in b_out_squirt_out_relocs()
322 else if (g->howto == &howto_reloc_pcrel13) in b_out_squirt_out_relocs()
324 else if (g->howto == &howto_reloc_abs32code) in b_out_squirt_out_relocs()
326 else if (g->howto >= howto_align_table in b_out_squirt_out_relocs()
327 && g->howto <= (howto_align_table + ARRAY_SIZE (howto_align_table) - 1)) in b_out_squirt_out_relocs()
333 | ((g->howto - howto_align_table) << 1)); in b_out_squirt_out_relocs()
758 cache_ptr->howto = 0; in b_out_slurp_reloc_table()
815 cache_ptr->howto = &howto_align_table[(raw[7] >> length_shift) & 3]; in b_out_slurp_reloc_table()
833 if (cache_ptr->howto != 0) in b_out_slurp_reloc_table()
[all …]
HDelf32-cr16.c474 cache_ptr->howto = &cr16_elf_howto_table[r_type]; in elf_cr16_info_to_howto()
480 cr16_elf_final_link_relocate (reloc_howto_type *howto, in cr16_elf_final_link_relocate() argument
492 unsigned short r_type = howto->type; in cr16_elf_final_link_relocate()
534 if (howto->pc_relative) in cr16_elf_final_link_relocate()
548 check = Rvalue >> howto->rightshift; in cr16_elf_final_link_relocate()
553 reloc_bits = (((1 << (howto->bitsize - 1)) - 1) << 1) | 1; in cr16_elf_final_link_relocate()
562 if (howto->rightshift && (bfd_signed_vma) Rvalue < 0) in cr16_elf_final_link_relocate()
566 >> howto->rightshift)); in cr16_elf_final_link_relocate()
577 Rvalue >>= (bfd_vma) howto->rightshift; in cr16_elf_final_link_relocate()
580 Rvalue &= howto->dst_mask; in cr16_elf_final_link_relocate()
[all …]
HDxcoff-target.h25 #define SELECT_RELOC(internal, howto) \ argument
27 internal.r_type = howto->type; \
29 ((howto->complain_on_overflow == complain_overflow_signed \
32 | (howto->bitsize - 1)); \
/freebsd-11-stable/sbin/reboot/
HDreboot.c70 int ch, howto, i, fd, lflag, nflag, qflag, sverrno, Nflag; in main() local
76 howto = RB_HALT; in main()
78 howto = 0; in main()
83 howto |= RB_DUMP; in main()
93 howto |= RB_NOSYNC; in main()
100 howto |= RB_POWEROFF; in main()
106 howto |= RB_REROOT; in main()
117 if ((howto & (RB_DUMP | RB_HALT)) == (RB_DUMP | RB_HALT)) in main()
119 if (Nflag && (howto & RB_NOSYNC) != 0) in main()
121 if ((howto & RB_REROOT) != 0 && howto != RB_REROOT) in main()
[all …]
/freebsd-11-stable/stand/i386/libi386/
HDbootinfo.c43 int howto; in bi_getboothowto() local
46 howto = boot_parse_cmdline(kargs); in bi_getboothowto()
47 howto |= boot_env_to_howto(); in bi_getboothowto()
59 howto |= RB_SERIAL; in bi_getboothowto()
61 howto |= RB_MUTE; in bi_getboothowto()
64 if (vidconsole && (howto & RB_SERIAL)) in bi_getboothowto()
65 howto |= RB_MULTIPLE; in bi_getboothowto()
72 howto &= ~RB_SERIAL; in bi_getboothowto()
76 return(howto); in bi_getboothowto()
80 bi_setboothowto(int howto) in bi_setboothowto() argument
[all …]
HDbootinfo32.c151 int bootdevnr, i, howto; in bi_load32() local
155 howto = bi_getboothowto(args); in bi_load32()
221 file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto); in bi_load32()
273 *howtop = howto | RB_BOOTINFO; in bi_load32()
/freebsd-11-stable/stand/userboot/userboot/
HDbootinfo.c43 int howto; in bi_getboothowto() local
46 howto = boot_parse_cmdline(kargs); in bi_getboothowto()
47 howto |= boot_env_to_howto(); in bi_getboothowto()
59 howto |= RB_SERIAL; in bi_getboothowto()
61 howto |= RB_MUTE; in bi_getboothowto()
64 if (vidconsole && (howto & RB_SERIAL)) in bi_getboothowto()
65 howto |= RB_MULTIPLE; in bi_getboothowto()
73 howto &= ~RB_SERIAL; in bi_getboothowto()
77 return(howto); in bi_getboothowto()
81 bi_setboothowto(int howto) in bi_setboothowto() argument
[all …]
HDbootinfo32.c150 int bootdevnr, howto; in bi_load32() local
155 howto = bi_getboothowto(args); in bi_load32()
203 file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto); in bi_load32()
264 *howtop = howto | RB_BOOTINFO; in bi_load32()
/freebsd-11-stable/stand/common/
HDmetadata.c104 int howto; in md_getboothowto() local
107 howto = boot_parse_cmdline(kargs); in md_getboothowto()
108 howto |= boot_env_to_howto(); in md_getboothowto()
111 howto |= RB_SERIAL; in md_getboothowto()
114 howto |= RB_SERIAL; in md_getboothowto()
116 howto |= RB_MUTE; in md_getboothowto()
118 return(howto); in md_getboothowto()
274 int howto; in md_load_dual() local
293 howto = md_getboothowto(args); in md_load_dual()
341 file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto); in md_load_dual()
/freebsd-11-stable/contrib/binutils/ld/
HDldctor.c256 reloc_howto_type *howto; in ldctor_build_sets() local
276 howto = bfd_reloc_type_lookup (output_bfd, p->reloc); in ldctor_build_sets()
277 if (howto == NULL) in ldctor_build_sets()
291 howto = bfd_reloc_type_lookup (p->elements->section->owner, in ldctor_build_sets()
293 if (howto == NULL) in ldctor_build_sets()
303 reloc_size = bfd_get_reloc_size (howto); in ldctor_build_sets()
310 if (howto->complain_on_overflow == complain_overflow_signed) in ldctor_build_sets()
317 bfd_get_reloc_size (howto), p->h->root.string); in ldctor_build_sets()
366 lang_add_reloc (p->reloc, howto, e->section, e->name, in ldctor_build_sets()
/freebsd-11-stable/stand/efi/loader/
HDbootinfo.c73 int howto, speed, port; in bi_getboothowto() local
76 howto = boot_parse_cmdline(kargs); in bi_getboothowto()
77 howto |= boot_env_to_howto(); in bi_getboothowto()
82 howto |= RB_SERIAL; in bi_getboothowto()
84 howto |= RB_MUTE; in bi_getboothowto()
126 return (howto); in bi_getboothowto()
436 int howto; in bi_load() local
457 howto = bi_getboothowto(args); in bi_load()
506 file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto); in bi_load()
HDmain.c421 int i, j, howto; in parse_args() local
438 howto = 0; in parse_args()
441 howto |= boot_parse_arg(var); in parse_args()
444 return (howto); in parse_args()
546 int howto, i, uhowto; in main() local
594 howto = parse_args(argc, argv); in main()
595 if (!has_kbd && (howto & RB_PROBE)) in main()
596 howto |= RB_SERIAL | RB_MULTIPLE; in main()
597 howto &= ~RB_PROBE; in main()
610 if ((howto & CON_MASK) == 0) { in main()
[all …]
/freebsd-11-stable/sys/powerpc/pseries/
HDrtas_dev.c54 static void rtas_shutdown(void *arg, int howto);
155 rtas_shutdown(void *arg, int howto) in rtas_shutdown() argument
159 if (howto & RB_HALT) { in rtas_shutdown()

12345678