Home
last modified time | relevance | path

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

12345678

/freebsd/contrib/elftoolchain/elfcopy/
H A Dsegments.c39 static void insert_to_inseg_list(struct segment *seg, struct section *sec);
56 struct segment *seg; in add_to_inseg_list() local
74 STAILQ_FOREACH(seg, &ecp->v_seg, seg_list) { in add_to_inseg_list()
75 if (s->off < seg->off || (s->vma < seg->vaddr && !s->pseudo)) in add_to_inseg_list()
77 if (s->off + s->sz > seg->off + seg->fsz && in add_to_inseg_list()
80 if (s->vma + s->sz > seg->vaddr + seg->msz) in add_to_inseg_list()
82 if (seg->type == PT_TLS && ((s->flags & SHF_TLS) == 0)) in add_to_inseg_list()
85 insert_to_inseg_list(seg, s); in add_to_inseg_list()
86 if (seg->type == PT_LOAD) in add_to_inseg_list()
87 s->seg = seg; in add_to_inseg_list()
[all …]
/freebsd/sys/amd64/vmm/amd/
H A Dvmcb.c64 struct vmcb_segment *seg; in vmcb_segptr() local
70 seg = &state->cs; in vmcb_segptr()
74 seg = &state->ds; in vmcb_segptr()
78 seg = &state->es; in vmcb_segptr()
82 seg = &state->fs; in vmcb_segptr()
86 seg = &state->gs; in vmcb_segptr()
90 seg = &state->ss; in vmcb_segptr()
94 seg = &state->gdt; in vmcb_segptr()
98 seg = &state->idt; in vmcb_segptr()
102 seg = &state->ldt; in vmcb_segptr()
[all …]
/freebsd/sys/vm/
H A Dvm_phys.c323 struct vm_phys_seg *seg; in sysctl_vm_phys_segs() local
332 seg = &vm_phys_segs[segind]; in sysctl_vm_phys_segs()
334 (uintmax_t)seg->start); in sysctl_vm_phys_segs()
336 (uintmax_t)seg->end); in sysctl_vm_phys_segs()
337 sbuf_printf(&sbuf, "domain: %d\n", seg->domain); in sysctl_vm_phys_segs()
338 sbuf_printf(&sbuf, "free list: %p\n", seg->free_queues); in sysctl_vm_phys_segs()
420 struct vm_phys_seg *seg; in _vm_phys_create_seg() local
426 seg = &vm_phys_segs[vm_phys_nsegs++]; in _vm_phys_create_seg()
427 while (seg > vm_phys_segs && (seg - 1)->start >= end) { in _vm_phys_create_seg()
428 *seg = *(seg - 1); in _vm_phys_create_seg()
[all …]
/freebsd/sys/dev/firewire/
H A Dfwdma.h55 struct fwdma_seg seg[0]; member
64 return ((caddr_t)am->seg[offset / ssize].v_addr + (offset % ssize)); in fwdma_v_addr()
73 return (am->seg[offset / ssize].bus_addr + (offset % ssize)); in fwdma_bus_addr()
86 struct fwdma_seg *seg, *eseg; in fwdma_sync_multiseg() local
88 seg = &am->seg[am->esize * start / am->ssize]; in fwdma_sync_multiseg()
89 eseg = &am->seg[am->esize * end / am->ssize]; in fwdma_sync_multiseg()
90 for (; seg <= eseg; seg++) in fwdma_sync_multiseg()
91 bus_dmamap_sync(am->dma_tag, seg->dma_map, op); in fwdma_sync_multiseg()
97 struct fwdma_seg *seg; in fwdma_sync_multiseg_all() local
100 seg = &am->seg[0]; in fwdma_sync_multiseg_all()
[all …]
H A Dfwdma.c149 struct fwdma_seg *seg; in fwdma_malloc_multiseg() local
186 for (seg = &am->seg[0]; nseg--; seg++) { in fwdma_malloc_multiseg()
187 seg->v_addr = fwdma_malloc_size(am->dma_tag, &seg->dma_map, in fwdma_malloc_multiseg()
188 ssize, &seg->bus_addr, flag); in fwdma_malloc_multiseg()
189 if (seg->v_addr == NULL) { in fwdma_malloc_multiseg()
203 struct fwdma_seg *seg; in fwdma_free_multiseg() local
205 for (seg = &am->seg[0]; am->nseg--; seg++) { in fwdma_free_multiseg()
206 fwdma_free_size(am->dma_tag, seg->dma_map, in fwdma_free_multiseg()
207 seg->v_addr, am->ssize); in fwdma_free_multiseg()
/freebsd/tools/bus_space/
H A Dbusdma.c65 struct obj *seg[3]; member
75 } seg; member
254 struct obj *seg; in bd_md_add_seg() local
256 seg = obj_alloc(OBJ_TYPE_SEG); in bd_md_add_seg()
257 if (seg == NULL) in bd_md_add_seg()
259 seg->refcnt = 1; in bd_md_add_seg()
260 seg->parent = md; in bd_md_add_seg()
261 seg->u.seg.address = addr; in bd_md_add_seg()
262 seg->u.seg.size = size; in bd_md_add_seg()
264 md->u.md.seg[type] = seg; in bd_md_add_seg()
[all …]
/freebsd/contrib/ofed/libmlx5/
H A Dmlx5dv.h467 void mlx5dv_set_ctrl_seg(struct mlx5_wqe_ctrl_seg *seg, uint16_t pi, in mlx5dv_set_ctrl_seg() argument
472 seg->opmod_idx_opcode = htobe32(((uint32_t)opmod << 24) | ((uint32_t)pi << 8) | opcode); in mlx5dv_set_ctrl_seg()
473 seg->qpn_ds = htobe32((qp_num << 8) | ds); in mlx5dv_set_ctrl_seg()
474 seg->fm_ce_se = fm_ce_se; in mlx5dv_set_ctrl_seg()
475 seg->signature = signature; in mlx5dv_set_ctrl_seg()
482 seg->imm = imm; in mlx5dv_set_ctrl_seg()
494 void mlx5dv_x86_set_ctrl_seg(struct mlx5_wqe_ctrl_seg *seg, uint16_t pi, in mlx5dv_x86_set_ctrl_seg() argument
511 *(__m128i *) seg = _mm_shuffle_epi8(val, mask); in mlx5dv_x86_set_ctrl_seg()
535 void mlx5dv_set_dgram_seg(struct mlx5_wqe_datagram_seg *seg, in mlx5dv_set_dgram_seg() argument
545 seg->av.key.dc_key = htobe64(key); in mlx5dv_set_dgram_seg()
[all …]
H A Dqp.c273 struct mlx5_wqe_inline_seg *seg; in set_data_inl_seg() local
282 seg = wqe; in set_data_inl_seg()
283 wqe += sizeof *seg; in set_data_inl_seg()
305 seg->byte_count = htobe32(inl | MLX5_INLINE_SEG); in set_data_inl_seg()
306 *sz = align(inl + sizeof seg->byte_count, 16) / 16; in set_data_inl_seg()
423 uint32_t qpn, void **seg, int *size) in set_umr_data_seg() argument
428 } *data = *seg; in set_umr_data_seg()
437 *seg += sizeof(*data); in set_umr_data_seg()
443 uint32_t qpn, void **seg, int *size) in set_umr_mkey_seg() argument
445 struct mlx5_wqe_mkey_context_seg *mkey = *seg; in set_umr_mkey_seg()
[all …]
/freebsd/sys/dev/dpaa2/
H A Ddpaa2_buf.h46 bus_dma_segment_t seg; member
60 (__buf)->seg.ds_addr = 0; \
61 (__buf)->seg.ds_len = 0; \
84 KASSERT((__buf)->seg.ds_addr == 0, ("%s: already mapped?", __func__)); \
85 KASSERT((__buf)->seg.ds_len == 0, ("%s: already mapped?", __func__)); \
94 KASSERT((__sgt)->seg.ds_addr == 0, ("%s: S/G mapped?", __func__)); \
95 KASSERT((__sgt)->seg.ds_len == 0, ("%s: S/G mapped?", __func__)); \
108 KASSERT((__buf)->seg.ds_addr == 0, ("%s: already mapped?", __func__)); \
109 KASSERT((__buf)->seg.ds_len == 0, ("%s: already mapped?", __func__)); \
118 KASSERT((__sgt)->seg.ds_addr == 0, ("%s: S/G mapped?", __func__)); \
[all …]
/freebsd/tools/bus_space/C/
H A Dlang.c192 busdma_seg_t seg; in busdma_md_first_seg() local
194 seg = bd_md_first_seg(md, space); in busdma_md_first_seg()
195 return (seg); in busdma_md_first_seg()
199 busdma_md_next_seg(busdma_md_t md, busdma_seg_t seg) in busdma_md_next_seg() argument
202 seg = bd_md_next_seg(md, seg); in busdma_md_next_seg()
203 return (seg); in busdma_md_next_seg()
207 busdma_seg_get_addr(busdma_seg_t seg) in busdma_seg_get_addr() argument
212 error = bd_seg_get_addr(seg, &addr); in busdma_seg_get_addr()
217 busdma_seg_get_size(busdma_seg_t seg) in busdma_seg_get_size() argument
222 error = bd_seg_get_size(seg, &size); in busdma_seg_get_size()
/freebsd/sys/dev/xdma/
H A Dxdma_sg.c62 struct bus_dma_segment *seg; member
374 struct bus_dma_segment *seg; in xdma_dmamap_cb() local
378 seg = slr->seg; in xdma_dmamap_cb()
388 seg[i].ds_addr = segs[i].ds_addr; in xdma_dmamap_cb()
389 seg[i].ds_len = segs[i].ds_len; in xdma_dmamap_cb()
395 struct bus_dma_segment *seg) in _xdma_load_data_busdma() argument
411 xr->buf.map, xr->m, seg, &nsegs, BUS_DMA_NOWAIT); in _xdma_load_data_busdma()
416 slr.seg = seg; in _xdma_load_data_busdma()
442 slr.seg = seg; in _xdma_load_data_busdma()
483 struct bus_dma_segment *seg) in _xdma_load_data() argument
[all …]
/freebsd/sys/dev/ice/
H A Dice_ddp_common.c177 struct ice_generic_seg_hdr *seg; in ice_find_seg_in_pkg() local
179 seg = (struct ice_generic_seg_hdr *) in ice_find_seg_in_pkg()
182 if (LE32_TO_CPU(seg->seg_type) == seg_type) in ice_find_seg_in_pkg()
183 return seg; in ice_find_seg_in_pkg()
197 struct ice_generic_seg_hdr *seg = NULL; in ice_get_pkg_seg_by_idx() local
200 seg = (struct ice_generic_seg_hdr *) in ice_get_pkg_seg_by_idx()
204 return seg; in ice_get_pkg_seg_by_idx()
214 struct ice_generic_seg_hdr *seg; in ice_is_signing_seg_at_idx() local
217 seg = ice_get_pkg_seg_by_idx(pkg_hdr, idx); in ice_is_signing_seg_at_idx()
218 if (seg) in ice_is_signing_seg_at_idx()
240 struct ice_sign_seg *seg; ice_is_signing_seg_type_at_idx() local
520 ice_download_pkg_sig_seg(struct ice_hw * hw,struct ice_sign_seg * seg) ice_download_pkg_sig_seg() argument
547 struct ice_seg *seg; ice_download_pkg_config_seg() local
579 struct ice_sign_seg *seg; ice_dwnld_sign_and_cfg_segs() local
1051 struct ice_generic_seg_hdr *seg; ice_verify_pkg() local
1117 ice_chk_pkg_compat(struct ice_hw * hw,struct ice_pkg_hdr * ospkg,struct ice_seg ** seg) ice_chk_pkg_compat() argument
1325 struct ice_seg *seg; ice_init_pkg() local
2390 struct ice_run_time_cfg_seg *seg; ice_cfg_tx_topo() local
[all...]
H A Dice_flow.c553 * @seg: packet segment index of the field to be extracted
562 u8 seg, enum ice_flow_field fld)
571 flds = params->prof->segs[seg].fields; in ice_flow_xtract_fld()
578 prot_id = seg == 0 ? ICE_PROT_MAC_OF_OR_S : ICE_PROT_MAC_IL; in ice_flow_xtract_fld()
581 prot_id = seg == 0 ? ICE_PROT_ETYPE_OL : ICE_PROT_ETYPE_IL; in ice_flow_xtract_fld()
584 prot_id = seg == 0 ? ICE_PROT_IPV4_OF_OR_S : ICE_PROT_IPV4_IL; in ice_flow_xtract_fld()
587 prot_id = seg == 0 ? ICE_PROT_IPV6_OF_OR_S : ICE_PROT_IPV6_IL; in ice_flow_xtract_fld()
591 prot_id = seg == 0 ? ICE_PROT_IPV4_OF_OR_S : ICE_PROT_IPV4_IL; in ice_flow_xtract_fld()
603 prot_id = seg == 0 ? ICE_PROT_IPV6_OF_OR_S : ICE_PROT_IPV6_IL; in ice_flow_xtract_fld()
615 prot_id = seg in ice_flow_xtract_fld()
566 ice_flow_xtract_fld(struct ice_hw * hw,struct ice_flow_prof_params * params,u8 seg,enum ice_flow_field fld) ice_flow_xtract_fld() argument
1187 ice_flow_set_fld_ext(struct ice_flow_seg_info * seg,enum ice_flow_field fld,enum ice_flow_fld_match_type field_type,u16 val_loc,u16 mask_loc,u16 last_loc) ice_flow_set_fld_ext() argument
1224 ice_flow_set_fld(struct ice_flow_seg_info * seg,enum ice_flow_field fld,u16 val_loc,u16 mask_loc,u16 last_loc,bool range) ice_flow_set_fld() argument
1251 ice_flow_set_fld_prefix(struct ice_flow_seg_info * seg,enum ice_flow_field fld,u16 val_loc,u16 pref_loc,u8 pref_sz) ice_flow_set_fld_prefix() argument
1286 struct ice_flow_seg_info *seg; ice_flow_set_rss_seg_info() local
[all...]
/freebsd/contrib/tcpdump/
H A Dprint-token.c151 int seg; in token_print() local
188 for (seg = 0; seg < SEGMENT_COUNT(trp); seg++) in token_print()
189 ND_PRINT(" [%u:%u]", RING_NUMBER(trp, seg), in token_print()
190 BRIDGE_NUMBER(trp, seg)); in token_print()
194 for (seg = 0; seg < SEGMENT_COUNT(trp); seg++) in token_print()
196 GET_BE_U_2(trp->token_rseg[seg])); in token_print()
/freebsd/sys/i386/i386/
H A Dbios.c249 set_bios_selectors(struct bios_segments *seg, int flags) in set_bios_selectors() argument
269 ssd.ssd_base = seg->code32.base; in set_bios_selectors()
270 ssd.ssd_limit = seg->code32.limit; in set_bios_selectors()
275 ssd.ssd_base = seg->code16.base; in set_bios_selectors()
276 ssd.ssd_limit = seg->code16.limit; in set_bios_selectors()
282 ssd.ssd_base = seg->data.base; in set_bios_selectors()
283 ssd.ssd_limit = seg->data.limit; in set_bios_selectors()
288 ssd.ssd_base = seg->util.base; in set_bios_selectors()
289 ssd.ssd_limit = seg->util.limit; in set_bios_selectors()
294 ssd.ssd_base = seg in set_bios_selectors()
[all...]
/freebsd/sys/amd64/vmm/io/
H A Dppt.c229 struct pptseg *seg; in ppt_unmap_all_mmio() local
232 seg = &ppt->mmio[i]; in ppt_unmap_all_mmio()
233 if (seg->len == 0) in ppt_unmap_all_mmio()
235 (void)vm_unmap_mmio(vm, seg->gpa, seg->len); in ppt_unmap_all_mmio()
236 bzero(seg, sizeof(struct pptseg)); in ppt_unmap_all_mmio()
353 struct pptseg *seg; in ppt_is_mmio() local
360 seg = &ppt->mmio[i]; in ppt_is_mmio()
361 if (seg->len == 0) in ppt_is_mmio()
363 if (gpa >= seg->gpa && gpa < seg->gpa + seg->len) in ppt_is_mmio()
488 struct pptseg *seg; in ppt_map_mmio() local
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Dbuffer.c153 static int evbuffer_file_segment_materialize(struct evbuffer_file_segment *seg);
2967 struct evbuffer_file_segment *seg = in evbuffer_file_segment_new() local
2969 if (!seg) in evbuffer_file_segment_new()
2971 seg->refcnt = 1; in evbuffer_file_segment_new()
2972 seg->fd = fd; in evbuffer_file_segment_new()
2973 seg->flags = flags; in evbuffer_file_segment_new()
2974 seg->file_offset = offset; in evbuffer_file_segment_new()
2975 seg->cleanup_cb = NULL; in evbuffer_file_segment_new()
2976 seg->cleanup_cb_arg = NULL; in evbuffer_file_segment_new()
2994 seg->length = length; in evbuffer_file_segment_new()
[all …]
/freebsd/contrib/libevent/
H A Dbuffer.c153 static int evbuffer_file_segment_materialize(struct evbuffer_file_segment *seg);
2967 struct evbuffer_file_segment *seg = in evbuffer_file_segment_new() local
2969 if (!seg) in evbuffer_file_segment_new()
2971 seg->refcnt = 1; in evbuffer_file_segment_new()
2972 seg->fd = fd; in evbuffer_file_segment_new()
2973 seg->flags = flags; in evbuffer_file_segment_new()
2974 seg->file_offset = offset; in evbuffer_file_segment_new()
2975 seg->cleanup_cb = NULL; in evbuffer_file_segment_new()
2976 seg->cleanup_cb_arg = NULL; in evbuffer_file_segment_new()
2994 seg->length = length; in evbuffer_file_segment_new()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyInstrBulkMemory.td41 (ins i32imm_op:$seg, i32imm_op:$idx, rc:$dest,
43 (outs), (ins i32imm_op:$seg, i32imm_op:$idx),
45 "memory.init\t$seg, $idx, $dest, $offset, $size",
46 "memory.init\t$seg, $idx", 0x08>;
50 BULK_I<(outs), (ins i32imm_op:$seg), (outs), (ins i32imm_op:$seg),
52 "data.drop\t$seg", "data.drop\t$seg", 0x09>;
/freebsd/contrib/llvm-project/lld/MachO/
H A DWriter.cpp223 LCSegment(StringRef name, OutputSegment *seg) : name(name), seg(seg) {} in LCSegment() argument
227 seg->numNonHiddenSections() * sizeof(typename LP::section); in getSize()
240 c->fileoff = seg->fileOff; in writeTo()
241 c->maxprot = seg->maxProt; in writeTo()
242 c->initprot = seg->initProt; in writeTo()
244 c->vmaddr = seg->addr; in writeTo()
245 c->vmsize = seg->vmSize; in writeTo()
246 c->filesize = seg->fileSize; in writeTo()
247 c->nsects = seg->numNonHiddenSections(); in writeTo()
248 c->flags = seg->flags; in writeTo()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Driver/
H A DMultilibBuilder.cpp22 StringRef seg = Segment; in normalizePathSegment() local
26 StringRef last = llvm::sys::path::filename(seg); in normalizePathSegment()
29 seg = llvm::sys::path::parent_path(seg); in normalizePathSegment()
32 if (seg.empty() || seg == "/") { in normalizePathSegment()
38 if (seg.front() != '/') { in normalizePathSegment()
39 Segment = "/" + seg.str(); in normalizePathSegment()
41 Segment = std::string(seg); in normalizePathSegment()
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_qp.c3063 void *seg = eseg; in set_eth_seg() local
3071 seg += sizeof(struct mlx5_wqe_eth_seg); in set_eth_seg()
3092 memcpy(seg - size_of_inl_hdr_start, pdata, copysz); in set_eth_seg()
3095 seg += ALIGN(copysz - size_of_inl_hdr_start, 16); in set_eth_seg()
3100 seg = mlx5_get_send_wqe(qp, 0); in set_eth_seg()
3103 memcpy(seg, pdata, left); in set_eth_seg()
3104 seg += ALIGN(left, 16); in set_eth_seg()
3109 return seg; in set_eth_seg()
3315 static void set_reg_mkey_seg(struct mlx5_mkey_seg *seg, in set_reg_mkey_seg() argument
3321 memset(seg, 0, sizeof(*seg)); in set_reg_mkey_seg()
[all …]
/freebsd/sys/kern/
H A Dsubr_busdma_bounce.c453 int seg; in _bus_dmamap_addseg() local
472 seg = *segp; in _bus_dmamap_addseg()
473 if (seg == -1) { in _bus_dmamap_addseg()
474 seg = 0; in _bus_dmamap_addseg()
475 segs[seg].ds_addr = curaddr; in _bus_dmamap_addseg()
476 segs[seg].ds_len = sgsize; in _bus_dmamap_addseg()
478 if (curaddr == segs[seg].ds_addr + segs[seg].ds_len && in _bus_dmamap_addseg()
479 (segs[seg].ds_len + sgsize) <= dmat_maxsegsz(dmat) && in _bus_dmamap_addseg()
480 vm_addr_bound_ok(segs[seg].ds_addr, in _bus_dmamap_addseg()
481 segs[seg].ds_len + sgsize, dmat_boundary(dmat))) in _bus_dmamap_addseg()
[all …]
/freebsd/sys/xen/
H A Dblkif.h47 struct blkif_request_segment seg[BLKIF_MAX_SEGMENTS_PER_REQUEST]; member
65 struct blkif_request_segment seg[BLKIF_MAX_SEGMENTS_PER_REQUEST]; member
125 dst->seg[i] = src->seg[i]; in blkif_get_x86_32_req()
140 dst->seg[i] = src->seg[i]; in blkif_get_x86_64_req()
/freebsd/contrib/netbsd-tests/sys/uvm/
H A Dt_uvm_physseg.c371 struct uvm_physseg *seg; in ATF_TC_BODY() local
379 seg = uvm_physseg_alloc((VM_PHYSSEG_MAX - 1) * sizeof(*seg)); in ATF_TC_BODY()
380 uvm_physseg_free(seg, (VM_PHYSSEG_MAX - 1) * sizeof(struct uvm_physseg)); in ATF_TC_BODY()
386 seg = uvm_physseg_alloc(sizeof(struct uvm_physseg) - 1); in ATF_TC_BODY()
387 uvm_physseg_free(seg, sizeof(struct uvm_physseg) - 1); in ATF_TC_BODY()
389 seg = uvm_physseg_alloc(2 * VM_PHYSSEG_MAX * sizeof(struct uvm_physseg)); in ATF_TC_BODY()
391 uvm_physseg_free(seg, 2 * VM_PHYSSEG_MAX * sizeof(struct uvm_physseg)); in ATF_TC_BODY()
410 struct uvm_physseg *seg; in ATF_TC_BODY() local
411 seg = uvm_physseg_alloc(VM_PHYSSEG_MAX * sizeof(*seg)); in ATF_TC_BODY()
413 uvm_physseg_free(seg, sizeof(*seg)); in ATF_TC_BODY()
[all …]

12345678