Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 671) sorted by relevance

12345678910>>...27

/dflybsd-src/contrib/gcc-4.7/libiberty/
H A Dpex-common.c56 struct pex_obj *obj; in pex_init_common() local
58 obj = XNEW (struct pex_obj); in pex_init_common()
59 obj->flags = flags; in pex_init_common()
60 obj->pname = pname; in pex_init_common()
61 obj->tempbase = tempbase; in pex_init_common()
62 obj->next_input = STDIN_FILE_NO; in pex_init_common()
63 obj->next_input_name = NULL; in pex_init_common()
64 obj->next_input_name_allocated = 0; in pex_init_common()
65 obj->stderr_pipe = -1; in pex_init_common()
66 obj->count = 0; in pex_init_common()
[all …]
/dflybsd-src/contrib/binutils-2.27/libiberty/
H A Dpex-common.c56 struct pex_obj *obj; in pex_init_common() local
58 obj = XNEW (struct pex_obj); in pex_init_common()
59 obj->flags = flags; in pex_init_common()
60 obj->pname = pname; in pex_init_common()
61 obj->tempbase = tempbase; in pex_init_common()
62 obj->next_input = STDIN_FILE_NO; in pex_init_common()
63 obj->next_input_name = NULL; in pex_init_common()
64 obj->next_input_name_allocated = 0; in pex_init_common()
65 obj->stderr_pipe = -1; in pex_init_common()
66 obj->count = 0; in pex_init_common()
[all …]
/dflybsd-src/contrib/gdb-7/libiberty/
H A Dpex-common.c56 struct pex_obj *obj; in pex_init_common() local
58 obj = XNEW (struct pex_obj); in pex_init_common()
59 obj->flags = flags; in pex_init_common()
60 obj->pname = pname; in pex_init_common()
61 obj->tempbase = tempbase; in pex_init_common()
62 obj->next_input = STDIN_FILE_NO; in pex_init_common()
63 obj->next_input_name = NULL; in pex_init_common()
64 obj->next_input_name_allocated = 0; in pex_init_common()
65 obj->stderr_pipe = -1; in pex_init_common()
66 obj->count = 0; in pex_init_common()
[all …]
/dflybsd-src/contrib/binutils-2.34/libiberty/
H A Dpex-common.c56 struct pex_obj *obj; in pex_init_common() local
58 obj = XNEW (struct pex_obj); in pex_init_common()
59 obj->flags = flags; in pex_init_common()
60 obj->pname = pname; in pex_init_common()
61 obj->tempbase = tempbase; in pex_init_common()
62 obj->next_input = STDIN_FILE_NO; in pex_init_common()
63 obj->next_input_name = NULL; in pex_init_common()
64 obj->next_input_name_allocated = 0; in pex_init_common()
65 obj->stderr_pipe = -1; in pex_init_common()
66 obj->count = 0; in pex_init_common()
[all …]
/dflybsd-src/contrib/gcc-8.0/libiberty/
H A Dpex-common.c56 struct pex_obj *obj; in pex_init_common() local
58 obj = XNEW (struct pex_obj); in pex_init_common()
59 obj->flags = flags; in pex_init_common()
60 obj->pname = pname; in pex_init_common()
61 obj->tempbase = tempbase; in pex_init_common()
62 obj->next_input = STDIN_FILE_NO; in pex_init_common()
63 obj->next_input_name = NULL; in pex_init_common()
64 obj->next_input_name_allocated = 0; in pex_init_common()
65 obj->stderr_pipe = -1; in pex_init_common()
66 obj->count = 0; in pex_init_common()
[all …]
/dflybsd-src/contrib/dialog/
H A Dprogressbox.c39 DIALOG_CALLBACK obj; member
52 free_obj(MY_OBJ * obj) in free_obj() argument
54 dlg_del_window(obj->obj.win); in free_obj()
55 free(obj->prompt); in free_obj()
57 while (obj->wrote) { in free_obj()
58 WROTE *wrote = obj->wrote; in free_obj()
59 obj->wrote = wrote->link; in free_obj()
64 free(obj); in free_obj()
69 restart_obj(MY_OBJ * obj) in restart_obj() argument
71 free(obj->prompt); in restart_obj()
[all …]
H A Dtextbox.c34 DIALOG_CALLBACK obj; member
53 lseek_obj(MY_OBJ * obj, long offset, int mode) in lseek_obj() argument
56 if ((fpos = (long) lseek(obj->fd, (off_t) offset, mode)) == -1) { in lseek_obj()
74 ftell_obj(MY_OBJ * obj) in ftell_obj() argument
76 return lseek_obj(obj, 0L, SEEK_CUR); in ftell_obj()
80 lseek_set(MY_OBJ * obj, long offset) in lseek_set() argument
82 long actual = lseek_obj(obj, offset, SEEK_SET); in lseek_set()
91 lseek_end(MY_OBJ * obj, long offset) in lseek_end() argument
93 long actual = lseek_obj(obj, offset, SEEK_END); in lseek_end()
96 obj->file_size = actual; in lseek_end()
[all …]
H A Dguage.c37 DIALOG_CALLBACK obj; /* has to be first in struct */ member
52 valid(MY_OBJ * obj) in valid() argument
58 if (list == obj) { in valid()
68 delink(MY_OBJ * obj) in delink() argument
73 if (p == obj) { in delink()
117 repaint_text(MY_OBJ * obj) in repaint_text() argument
119 WINDOW *dialog = obj->obj.win; in repaint_text()
125 dlg_draw_box2(dialog, 0, 0, obj->height, obj->width, dialog_attr, in repaint_text()
128 dlg_draw_title(dialog, obj->title); in repaint_text()
132 dlg_print_autowrap(dialog, obj->prompt, obj->height, obj->width); in repaint_text()
[all …]
H A Dtailbox.c31 DIALOG_CALLBACK obj; member
44 get_line(MY_OBJ * obj) in get_line() argument
46 FILE *fp = obj->obj.input; in get_line()
47 int col = -(obj->hscroll); in get_line()
56 - ((col + obj->hscroll) % dialog_state.tab_len); in get_line()
59 obj->line[col] = ' '; in get_line()
64 obj->line[col] = (char) ch; in get_line()
74 obj->line[col] = '\0'; in get_line()
76 return obj->line; in get_line()
83 print_line(MY_OBJ * obj, WINDOW *win, int row, int width) in print_line() argument
[all …]
/dflybsd-src/games/rogue/
H A Dobject.c167 object *obj; in put_objects() local
180 obj = gr_object(); in put_objects()
181 rand_place(obj); in put_objects()
219 object *obj; in plant_gold() local
221 obj = alloc_object(); in plant_gold()
222 obj->row = row; obj->col = col; in plant_gold()
223 obj->what_is = GOLD; in plant_gold()
224 obj->quantity = get_rand((2 * cur_level), (16 * cur_level)); in plant_gold()
226 obj->quantity += obj->quantity / 2; in plant_gold()
229 add_to_pack(obj, &level_objects, 0); in plant_gold()
[all …]
H A Dpack.c59 add_to_pack(object *obj, object *pack, int condense) in add_to_pack() argument
64 if ((op = check_duplicate(obj, pack)) != NULL) { in add_to_pack()
65 free_object(obj); in add_to_pack()
68 obj->ichar = next_avail_ichar(); in add_to_pack()
72 pack->next_object = obj; in add_to_pack()
79 op->next_object = obj; in add_to_pack()
81 obj->next_object = 0; in add_to_pack()
82 return(obj); in add_to_pack()
86 take_from_pack(object *obj, object *pack) in take_from_pack() argument
88 while (pack->next_object != obj) { in take_from_pack()
[all …]
/dflybsd-src/games/hack/
H A Dhack.do.c73 static int drop(struct obj *);
74 static void dropy(struct obj *);
83 drop(struct obj *obj) in drop() argument
85 if (!obj) in drop()
87 if (obj->olet == '$') { /* pseudo object */ in drop()
88 long amount = OGOLD(obj); in drop()
99 free(obj); in drop()
102 if (obj->owornmask & (W_ARMOR | W_RING)) { in drop()
106 if (obj == uwep) { in drop()
111 setuwep((struct obj *) 0); in drop()
[all …]
H A Dhack.invent.c77 static char *xprname(struct obj *, char);
79 static int merged(struct obj *, struct obj *, int);
82 assigninvlet(struct obj *otmp) in assigninvlet()
86 struct obj *obj; in assigninvlet() local
90 for (obj = invent; obj; obj = obj->nobj) in assigninvlet()
91 if (obj != otmp) { in assigninvlet()
92 i = obj->invlet; in assigninvlet()
116 struct obj *
117 addinv(struct obj *obj) in addinv() argument
119 struct obj *otmp; in addinv()
[all …]
H A Dhack.apply.c69 static void use_camera(struct obj *);
70 static int in_ice_box(struct obj *);
71 static int ck_ice_box(struct obj *);
72 static int out_ice_box(struct obj *);
73 static void use_ice_box(struct obj *);
75 static void use_whistle(struct obj *);
76 static void use_magic_whistle(struct obj *);
78 static int use_pick_axe(struct obj *);
83 struct obj *obj; in doapply() local
86 obj = getobj("(", "use or apply"); in doapply()
[all …]
H A Dextern.h81 void dropx(struct obj *);
89 struct obj *splitobj(struct obj *, int);
98 void docall(struct obj *);
108 int armoroff(struct obj *);
111 void ringoff(struct obj *);
114 struct obj *some_armor(void);
124 int tamedog(struct monst *, struct obj *);
132 int poisonous(struct obj *);
160 boolean hmon(struct monst *, struct obj *, int);
164 struct obj *addinv(struct obj *);
[all …]
H A Dhack.shk.c72 static struct bill_x *onbill(struct obj *);
75 static struct obj *bp_to_obj(struct bill_x *);
76 static int getprice(struct obj *);
83 struct obj *billobjs = 0;
85 obfree(struct obj *obj, struct obj *merge) in obfree() argument
87 free(obj); in obfree()
98 addtobill(struct obj *obj) in addtobill() argument
102 subfrombill(struct obj *obj) in subfrombill() argument
106 splitbill(struct obj *o1, struct obj *o2) in splitbill()
128 shkcatch(struct obj *obj) in shkcatch() argument
[all …]
/dflybsd-src/sys/dev/drm/
H A Ddrm_gem.c190 struct drm_gem_object *obj, size_t size) in drm_gem_object_init() argument
194 drm_gem_private_object_init(dev, obj, size); in drm_gem_object_init()
199 obj->filp = filp; in drm_gem_object_init()
216 struct drm_gem_object *obj, size_t size) in drm_gem_private_object_init() argument
220 obj->dev = dev; in drm_gem_private_object_init()
221 obj->filp = NULL; in drm_gem_private_object_init()
223 kref_init(&obj->refcount); in drm_gem_private_object_init()
224 obj->handle_count = 0; in drm_gem_private_object_init()
225 obj->size = size; in drm_gem_private_object_init()
226 drm_vma_node_reset(&obj->vma_node); in drm_gem_private_object_init()
[all …]
H A Ddrm_mode_object.c34 int __drm_mode_object_add(struct drm_device *dev, struct drm_mode_object *obj, in __drm_mode_object_add() argument
41 ret = idr_alloc(&dev->mode_config.crtc_idr, register_obj ? obj : NULL, 1, 0, GFP_KERNEL); in __drm_mode_object_add()
47 obj->id = ret; in __drm_mode_object_add()
48 obj->type = obj_type; in __drm_mode_object_add()
50 obj->free_cb = obj_free_cb; in __drm_mode_object_add()
51 kref_init(&obj->refcount); in __drm_mode_object_add()
72 struct drm_mode_object *obj, uint32_t obj_type) in drm_mode_object_add() argument
74 return __drm_mode_object_add(dev, obj, obj_type, true, NULL); in drm_mode_object_add()
78 struct drm_mode_object *obj) in drm_mode_object_register() argument
81 idr_replace(&dev->mode_config.crtc_idr, obj, obj->id); in drm_mode_object_register()
[all …]
/dflybsd-src/libexec/rtld-elf/
H A Drtld.c95 static int do_search_info(const Obj_Entry *obj, int, struct dl_serinfo *);
128 static int relocate_object(Obj_Entry *obj, bool bind_now, Obj_Entry *rtldobj,
162 static void rtld_fill_dl_phdr_info(const Obj_Entry *obj,
345 Obj_Entry *obj; in _rtld() local
584 for (obj = obj_list; obj != NULL; obj = obj->next) { in _rtld()
585 if (obj->z_interpose && obj != obj_main) { in _rtld()
586 objlist_put_after(&list_main, last_interposer, obj); in _rtld()
587 last_interposer = obj; in _rtld()
589 objlist_push_tail(&list_main, obj); in _rtld()
591 obj->refcount++; in _rtld()
[all …]
H A Ddebug.c63 Obj_Entry *obj; in dump_relocations() local
65 for (obj = obj0; obj != NULL; obj = obj->next) { in dump_relocations()
66 dump_obj_relocations(obj); in dump_relocations()
71 dump_obj_relocations (Obj_Entry *obj) in dump_obj_relocations() argument
74 rtld_printf("Object \"%s\", relocbase %p\n", obj->path, obj->relocbase); in dump_obj_relocations()
76 if (obj->relsize) { in dump_obj_relocations()
78 (obj->relsize / sizeof(Elf_Rel))); in dump_obj_relocations()
79 dump_Elf_Rel(obj, obj->rel, obj->relsize); in dump_obj_relocations()
82 if (obj->relasize) { in dump_obj_relocations()
84 (obj->relasize / sizeof(Elf_Rela))); in dump_obj_relocations()
[all …]
/dflybsd-src/sys/dev/drm/i915/
H A Di915_gem.c58 static bool cpu_write_needs_clflush(struct drm_i915_gem_object *obj) in cpu_write_needs_clflush() argument
60 if (obj->cache_dirty) in cpu_write_needs_clflush()
63 if (!(obj->cache_coherent & I915_BO_CACHE_COHERENT_FOR_WRITE)) in cpu_write_needs_clflush()
66 return obj->pin_global; /* currently in use by HW, keep flushed */ in cpu_write_needs_clflush()
172 static int i915_gem_object_get_pages_phys(struct drm_i915_gem_object *obj) in i915_gem_object_get_pages_phys() argument
175 struct address_space *mapping = obj->base.filp->f_mapping; in i915_gem_object_get_pages_phys()
177 vm_object_t vm_obj = obj->base.filp; in i915_gem_object_get_pages_phys()
186 if (WARN_ON(i915_gem_object_needs_bit17_swizzle(obj))) in i915_gem_object_get_pages_phys()
193 phys = drm_pci_alloc(obj->base.dev, in i915_gem_object_get_pages_phys()
194 roundup_pow_of_two(obj->base.size), in i915_gem_object_get_pages_phys()
[all …]
H A Di915_gem_object.h303 struct drm_i915_gem_object *obj; in i915_gem_object_lookup() local
306 obj = i915_gem_object_lookup_rcu(file, handle); in i915_gem_object_lookup()
307 if (obj && !kref_get_unless_zero(&obj->base.refcount)) in i915_gem_object_lookup()
308 obj = NULL; in i915_gem_object_lookup()
311 return obj; in i915_gem_object_lookup()
316 i915_gem_object_get(struct drm_i915_gem_object *obj) in i915_gem_object_get() argument
318 drm_gem_object_reference(&obj->base); in i915_gem_object_get()
319 return obj; in i915_gem_object_get()
324 i915_gem_object_put(struct drm_i915_gem_object *obj) in i915_gem_object_put() argument
326 __drm_gem_object_unreference(&obj->base); in i915_gem_object_put()
[all …]
H A Di915_gem_dmabuf.c42 struct drm_i915_gem_object *obj = dma_buf_to_obj(attachment->dmabuf); in i915_gem_map_dma_buf() local
47 ret = i915_gem_object_pin_pages(obj); in i915_gem_map_dma_buf()
58 ret = sg_alloc_table(st, obj->mm.pages->nents, GFP_KERNEL); in i915_gem_map_dma_buf()
62 src = obj->mm.pages->sgl; in i915_gem_map_dma_buf()
64 for (i = 0; i < obj->mm.pages->nents; i++) { in i915_gem_map_dma_buf()
82 i915_gem_object_unpin_pages(obj); in i915_gem_map_dma_buf()
91 struct drm_i915_gem_object *obj = dma_buf_to_obj(attachment->dmabuf); in i915_gem_unmap_dma_buf() local
97 i915_gem_object_unpin_pages(obj); in i915_gem_unmap_dma_buf()
102 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); in i915_gem_dmabuf_vmap() local
104 return i915_gem_object_pin_map(obj, I915_MAP_WB); in i915_gem_dmabuf_vmap()
[all …]
H A Di915_gem_userptr.c58 struct drm_i915_gem_object *obj; member
68 struct drm_i915_gem_object *obj = mo->obj; in cancel_userptr() local
72 mutex_lock(&obj->mm.lock); in cancel_userptr()
73 active = fetch_and_zero(&obj->userptr.work); in cancel_userptr()
74 mutex_unlock(&obj->mm.lock); in cancel_userptr()
78 i915_gem_object_wait(obj, I915_WAIT_ALL, MAX_SCHEDULE_TIMEOUT, NULL); in cancel_userptr()
80 mutex_lock(&obj->base.dev->struct_mutex); in cancel_userptr()
83 if (i915_gem_object_unbind(obj) == 0) in cancel_userptr()
84 __i915_gem_object_put_pages(obj, I915_MM_NORMAL); in cancel_userptr()
85 WARN_ONCE(i915_gem_object_has_pages(obj), in cancel_userptr()
[all …]
/dflybsd-src/sys/dev/drm/include/linux/
H A Dreservation.h82 #define reservation_object_held(obj) lockdep_is_held(&(obj)->lock.base) argument
83 #define reservation_object_assert_held(obj) \ argument
84 lockdep_assert_held(&(obj)->lock.base)
91 reservation_object_init(struct reservation_object *obj) in reservation_object_init() argument
93 ww_mutex_init(&obj->lock, &reservation_ww_class); in reservation_object_init()
95 __seqcount_init(&obj->seq, reservation_seqcount_string, &reservation_seqcount_class); in reservation_object_init()
96 RCU_INIT_POINTER(obj->fence, NULL); in reservation_object_init()
97 RCU_INIT_POINTER(obj->fence_excl, NULL); in reservation_object_init()
98 obj->staged = NULL; in reservation_object_init()
106 reservation_object_fini(struct reservation_object *obj) in reservation_object_fini() argument
[all …]

12345678910>>...27