Home
last modified time | relevance | path

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

123456789

/kernel/linux/linux-5.10/arch/s390/mm/
Dextmem.c165 query_segment_type (struct dcss_segment *seg) in query_segment_type() argument
183 memcpy (qin->qname, seg->dcss_name, 8); in query_segment_type()
203 seg->vm_segtype = qout->range[0].start & 0xff; in query_segment_type()
222 seg->vm_segtype = SEG_TYPE_EWEN; in query_segment_type()
226 seg->start_addr = qout->segstart; in query_segment_type()
227 seg->end = qout->segend; in query_segment_type()
229 memcpy (seg->range, qout->range, 6*sizeof(struct qrange)); in query_segment_type()
230 seg->segcnt = qout->segcnt; in query_segment_type()
254 struct dcss_segment seg; in segment_type() local
259 dcss_mkname(name, seg.dcss_name); in segment_type()
[all …]
/kernel/liteos_a/kernel/base/vm/
Dshm.c169 STATIC inline VOID ShmSetSharedFlag(struct shmIDSource *seg) in ShmSetSharedFlag() argument
173 LOS_DL_LIST_FOR_EACH_ENTRY(page, &seg->node, LosVmPage, node) { in ShmSetSharedFlag()
178 STATIC inline VOID ShmClearSharedFlag(struct shmIDSource *seg) in ShmClearSharedFlag() argument
182 LOS_DL_LIST_FOR_EACH_ENTRY(page, &seg->node, LosVmPage, node) { in ShmClearSharedFlag()
187 STATIC VOID ShmPagesRefDec(struct shmIDSource *seg) in ShmPagesRefDec() argument
191 LOS_DL_LIST_FOR_EACH_ENTRY(page, &seg->node, LosVmPage, node) { in ShmPagesRefDec()
232 struct shmIDSource *seg = NULL; in ShmAllocSeg() local
240 seg = &IPC_SHM_SEGS[segNum]; in ShmAllocSeg()
241 count = LOS_PhysPagesAlloc(size >> PAGE_SHIFT, &seg->node); in ShmAllocSeg()
243 (VOID)LOS_PhysPagesFree(&seg->node); in ShmAllocSeg()
[all …]
Dlos_vm_phys.c60 STATIC VOID OsVmPhysLruInit(struct VmPhysSeg *seg) in OsVmPhysLruInit() argument
64 LOS_SpinInit(&seg->lruLock); in OsVmPhysLruInit()
66 LOS_SpinLockSave(&seg->lruLock, &intSave); in OsVmPhysLruInit()
68 seg->lruSize[i] = 0; in OsVmPhysLruInit()
69 LOS_ListInit(&seg->lruList[i]); in OsVmPhysLruInit()
71 LOS_SpinUnlockRestore(&seg->lruLock, intSave); in OsVmPhysLruInit()
76 struct VmPhysSeg *seg = NULL; in OsVmPhysSegCreate() local
82 seg = &g_vmPhysSeg[g_vmPhysSegNum++]; in OsVmPhysSegCreate()
83 for (; (seg > g_vmPhysSeg) && ((seg - 1)->start > (start + size)); seg--) { in OsVmPhysSegCreate()
84 *seg = *(seg - 1); in OsVmPhysSegCreate()
[all …]
Dlos_vm_dump.c485 UINT32 OsVmPhySegPagesGet(LosVmPhysSeg *seg) in OsVmPhySegPagesGet() argument
491 LOS_SpinLockSave(&seg->freeListLock, &intSave); in OsVmPhySegPagesGet()
493 segFreePages += ((1 << flindex) * seg->freeList[flindex].listCnt); in OsVmPhySegPagesGet()
495 LOS_SpinUnlockRestore(&seg->freeListLock, intSave); in OsVmPhySegPagesGet()
502 LosVmPhysSeg *seg = NULL; in OsVmPhysDump() local
512 seg = &g_vmPhysSeg[segIndex]; in OsVmPhysDump()
513 if (seg->size > 0) { in OsVmPhysDump()
514 segFreePages = OsVmPhySegPagesGet(seg); in OsVmPhysDump()
519 … PRINTK(" 0x%08x 0x%08x 0x%08x %8u \n", seg, seg->start, seg->size, segFreePages); in OsVmPhysDump()
521 totalPages += (seg->size >> PAGE_SHIFT); in OsVmPhysDump()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dwr.c35 static inline void handle_post_send_edge(struct mlx5_ib_wq *sq, void **seg, in handle_post_send_edge() argument
40 if (likely(*seg != *cur_edge)) in handle_post_send_edge()
46 *seg = mlx5_frag_buf_get_wqe(&sq->fbc, idx); in handle_post_send_edge()
59 void **seg, u32 *wqe_sz, const void *src, in memcpy_send_wqe() argument
63 size_t leftlen = *cur_edge - *seg; in memcpy_send_wqe()
67 memcpy(*seg, src, copysz); in memcpy_send_wqe()
72 *seg += stride; in memcpy_send_wqe()
74 handle_post_send_edge(sq, seg, *wqe_sz, cur_edge); in memcpy_send_wqe()
105 void **seg, int *size, void **cur_edge) in set_eth_seg() argument
107 struct mlx5_wqe_eth_seg *eseg = *seg; in set_eth_seg()
[all …]
/kernel/linux/linux-5.10/ipc/
Dmsgutil.c63 struct msg_msgseg *seg; in alloc_msg() local
68 seg = kmalloc(sizeof(*seg) + alen, GFP_KERNEL_ACCOUNT); in alloc_msg()
69 if (seg == NULL) in alloc_msg()
71 *pseg = seg; in alloc_msg()
72 seg->next = NULL; in alloc_msg()
73 pseg = &seg->next; in alloc_msg()
87 struct msg_msgseg *seg; in load_msg() local
99 for (seg = msg->next; seg != NULL; seg = seg->next) { in load_msg()
103 if (copy_from_user(seg + 1, src, alen)) in load_msg()
153 struct msg_msgseg *seg; in store_msg() local
[all …]
/kernel/linux/linux-5.10/arch/x86/kvm/
Dmtrr.c181 static u64 fixed_mtrr_seg_unit_size(int seg) in fixed_mtrr_seg_unit_size() argument
183 return 8 << fixed_seg_table[seg].range_shift; in fixed_mtrr_seg_unit_size()
186 static bool fixed_msr_to_seg_unit(u32 msr, int *seg, int *unit) in fixed_msr_to_seg_unit() argument
190 *seg = 0; in fixed_msr_to_seg_unit()
194 *seg = 1; in fixed_msr_to_seg_unit()
200 *seg = 2; in fixed_msr_to_seg_unit()
212 static void fixed_mtrr_seg_unit_range(int seg, int unit, u64 *start, u64 *end) in fixed_mtrr_seg_unit_range() argument
214 struct fixed_mtrr_segment *mtrr_seg = &fixed_seg_table[seg]; in fixed_mtrr_seg_unit_range()
215 u64 unit_size = fixed_mtrr_seg_unit_size(seg); in fixed_mtrr_seg_unit_range()
222 static int fixed_mtrr_seg_unit_range_index(int seg, int unit) in fixed_mtrr_seg_unit_range_index() argument
[all …]
/kernel/linux/linux-5.10/arch/m68k/sun3/
Dmmu_emu.c129 unsigned long seg, num; in mmu_emu_init() local
152 for(seg = bootmem_end; seg < 0x0f800000; seg += SUN3_PMEG_SIZE) { in mmu_emu_init()
153 i = sun3_get_segmap(seg); in mmu_emu_init()
158 print_pte_vaddr (seg); in mmu_emu_init()
160 sun3_put_segmap(seg, SUN3_INVALID_PMEG); in mmu_emu_init()
165 for (num=0, seg=0x0F800000; seg<0x10000000; seg+=16*PAGE_SIZE) { in mmu_emu_init()
166 if (sun3_get_segmap (seg) != SUN3_INVALID_PMEG) { in mmu_emu_init()
170 print_pte_vaddr (seg + (i*PAGE_SIZE)); in mmu_emu_init()
177 m68k_vmalloc_end = seg; in mmu_emu_init()
182 pmeg_alloc[sun3_get_segmap(seg)] = 2; in mmu_emu_init()
[all …]
/kernel/linux/linux-5.10/drivers/firmware/google/
Dmemconsole-coreboot.c45 struct seg { /* describes ring buffer segments in logical order */ in memconsole_coreboot_read() struct
48 } seg[2] = { {0}, {0} }; in memconsole_coreboot_read() local
55 seg[0] = (struct seg){.phys = cursor, .len = size - cursor}; in memconsole_coreboot_read()
56 seg[1] = (struct seg){.phys = 0, .len = cursor}; in memconsole_coreboot_read()
58 seg[0] = (struct seg){.phys = 0, .len = min(cursor, size)}; in memconsole_coreboot_read()
61 for (i = 0; i < ARRAY_SIZE(seg) && count > done; i++) { in memconsole_coreboot_read()
63 cbmem_console->body + seg[i].phys, seg[i].len); in memconsole_coreboot_read()
64 pos -= seg[i].len; in memconsole_coreboot_read()
/kernel/linux/linux-5.10/net/ipv4/
Dudp_offload.c187 static void __udpv4_gso_segment_csum(struct sk_buff *seg, in __udpv4_gso_segment_csum() argument
197 uh = udp_hdr(seg); in __udpv4_gso_segment_csum()
198 iph = ip_hdr(seg); in __udpv4_gso_segment_csum()
201 inet_proto_csum_replace4(&uh->check, seg, *oldip, *newip, in __udpv4_gso_segment_csum()
203 inet_proto_csum_replace2(&uh->check, seg, *oldport, *newport, in __udpv4_gso_segment_csum()
216 struct sk_buff *seg; in __udpv4_gso_segment_list_csum() local
220 seg = segs; in __udpv4_gso_segment_list_csum()
221 uh = udp_hdr(seg); in __udpv4_gso_segment_list_csum()
222 iph = ip_hdr(seg); in __udpv4_gso_segment_list_csum()
224 if ((udp_hdr(seg)->dest == udp_hdr(seg->next)->dest) && in __udpv4_gso_segment_list_csum()
[all …]
/kernel/linux/linux-5.10/drivers/acpi/
Dpci_mcfg.c46 #define AL_ECAM(table_id, rev, seg, ops) \ argument
47 { "AMAZON", table_id, rev, seg, MCFG_BUS_ANY, ops }
58 #define QCOM_ECAM32(seg) \ argument
59 { "QCOM ", "QDF2432 ", 1, seg, MCFG_BUS_ANY, &pci_32b_ops }
70 #define HISI_QUAD_DOM(table_id, seg, ops) \ argument
71 { "HISI ", table_id, 0, (seg) + 0, MCFG_BUS_ANY, ops }, \
72 { "HISI ", table_id, 0, (seg) + 1, MCFG_BUS_ANY, ops }, \
73 { "HISI ", table_id, 0, (seg) + 2, MCFG_BUS_ANY, ops }, \
74 { "HISI ", table_id, 0, (seg) + 3, MCFG_BUS_ANY, ops }
100 #define THUNDER_ECAM_QUIRK(rev, seg) \ argument
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_ethtool_fdir.c524 ice_fdir_set_hw_fltr_rule(struct ice_pf *pf, struct ice_flow_seg_info *seg, in ice_fdir_set_hw_fltr_rule() argument
558 if (!memcmp(old_seg, seg, sizeof(*seg))) in ice_fdir_set_hw_fltr_rule()
584 status = ice_flow_add_prof(hw, ICE_BLK_FD, ICE_FLOW_RX, prof_id, seg, in ice_fdir_set_hw_fltr_rule()
590 seg, &entry1_h); in ice_fdir_set_hw_fltr_rule()
597 seg, &entry2_h); in ice_fdir_set_hw_fltr_rule()
603 hw_prof->fdir_seg[tun] = seg; in ice_fdir_set_hw_fltr_rule()
635 ice_set_init_fdir_seg(struct ice_flow_seg_info *seg, in ice_set_init_fdir_seg() argument
641 if (!seg) in ice_set_init_fdir_seg()
664 ICE_FLOW_SET_HDRS(seg, l3_proto | l4_proto); in ice_set_init_fdir_seg()
667 ice_flow_set_fld(seg, src_addr, ICE_FLOW_FLD_OFF_INVAL, in ice_set_init_fdir_seg()
[all …]
Dice_flow.c257 static u16 ice_flow_calc_seg_sz(struct ice_flow_prof_params *params, u8 seg) in ice_flow_calc_seg_sz() argument
262 if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV4) in ice_flow_calc_seg_sz()
264 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV6) in ice_flow_calc_seg_sz()
268 if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_TCP) in ice_flow_calc_seg_sz()
270 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_UDP) in ice_flow_calc_seg_sz()
272 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_SCTP) in ice_flow_calc_seg_sz()
362 u8 seg, enum ice_flow_field fld) in ice_flow_xtract_fld() argument
370 flds = params->prof->segs[seg].fields; in ice_flow_xtract_fld()
375 prot_id = seg == 0 ? ICE_PROT_IPV4_OF_OR_S : ICE_PROT_IPV4_IL; in ice_flow_xtract_fld()
379 prot_id = seg == 0 ? ICE_PROT_IPV6_OF_OR_S : ICE_PROT_IPV6_IL; in ice_flow_xtract_fld()
[all …]
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Dtlbflush.h148 unsigned char seg; in flush_tlb_mm() local
155 seg = sun3_get_segmap(i); in flush_tlb_mm()
156 if(seg == SUN3_INVALID_PMEG) in flush_tlb_mm()
160 pmeg_alloc[seg] = 0; in flush_tlb_mm()
161 pmeg_ctx[seg] = 0; in flush_tlb_mm()
162 pmeg_vaddr[seg] = 0; in flush_tlb_mm()
196 unsigned char seg, oldctx; in flush_tlb_range() local
205 if((seg = sun3_get_segmap(start)) == SUN3_INVALID_PMEG) in flush_tlb_range()
207 if(pmeg_ctx[seg] == mm->context) { in flush_tlb_range()
208 pmeg_alloc[seg] = 0; in flush_tlb_range()
[all …]
Dsegment.h22 unsigned long seg; member
37 __asm__ ("movec %/dfc,%0":"=r" (_v.seg):); in get_fs()
45 : /* no outputs */ : "r" (val.seg) : "memory"); in set_fs()
55 #define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.c47 struct sk_buff *skb, int seg, int *len) in otx2_dma_map_skb_frag() argument
54 if (!seg) { in otx2_dma_map_skb_frag()
59 frag = &skb_shinfo(skb)->frags[seg - 1]; in otx2_dma_map_skb_frag()
69 int seg; in otx2_dma_unmap_skb_frags() local
71 for (seg = 0; seg < sg->num_segs; seg++) { in otx2_dma_unmap_skb_frags()
72 otx2_dma_unmap_page(pfvf, sg->dma_addr[seg], in otx2_dma_unmap_skb_frags()
73 sg->size[seg], DMA_TO_DEVICE); in otx2_dma_unmap_skb_frags()
194 int seg; in otx2_free_rcv_seg() local
201 for (seg = 0; seg < sg->segs; seg++, seg_addr++) in otx2_free_rcv_seg()
466 int seg, len; in otx2_sqe_add_sg() local
[all …]
/kernel/linux/linux-5.10/fs/
Dbinfmt_elf_fdpic.c744 struct elf32_fdpic_loadseg *seg; in elf_fdpic_map_file() local
760 size = sizeof(*loadmap) + nloads * sizeof(*seg); in elf_fdpic_map_file()
771 seg = loadmap->segs; in elf_fdpic_map_file()
792 seg = loadmap->segs; in elf_fdpic_map_file()
793 for (loop = loadmap->nsegs; loop > 0; loop--, seg++) { in elf_fdpic_map_file()
794 if (params->hdr.e_entry >= seg->p_vaddr && in elf_fdpic_map_file()
795 params->hdr.e_entry < seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file()
797 (params->hdr.e_entry - seg->p_vaddr) + in elf_fdpic_map_file()
798 seg->addr; in elf_fdpic_map_file()
817 seg = loadmap->segs; in elf_fdpic_map_file()
[all …]
/kernel/linux/linux-5.10/fs/nfsd/
Dflexfilelayout.c25 struct nfsd4_layout_seg *seg = &args->lg_seg; in nfsd4_ff_proc_layoutget() local
52 if (seg->iomode == IOMODE_READ) { in nfsd4_ff_proc_layoutget()
67 seg->offset = 0; in nfsd4_ff_proc_layoutget()
68 seg->length = NFS4_MAX_UINT64; in nfsd4_ff_proc_layoutget()
70 dprintk("GET: 0x%llx:0x%llx %d\n", seg->offset, seg->length, in nfsd4_ff_proc_layoutget()
71 seg->iomode); in nfsd4_ff_proc_layoutget()
75 seg->length = 0; in nfsd4_ff_proc_layoutget()
/kernel/linux/linux-5.10/net/sunrpc/xprtrdma/
Drpc_rdma.c215 rpcrdma_convert_kvec(struct kvec *vec, struct rpcrdma_mr_seg *seg, in rpcrdma_convert_kvec() argument
225 seg->mr_page = NULL; in rpcrdma_convert_kvec()
226 seg->mr_offset = base; in rpcrdma_convert_kvec()
227 seg->mr_len = min_t(u32, PAGE_SIZE - page_offset, remaining); in rpcrdma_convert_kvec()
228 remaining -= seg->mr_len; in rpcrdma_convert_kvec()
229 base += seg->mr_len; in rpcrdma_convert_kvec()
230 ++seg; in rpcrdma_convert_kvec()
234 return seg; in rpcrdma_convert_kvec()
247 struct rpcrdma_mr_seg *seg) in rpcrdma_convert_iovs() argument
255 seg = rpcrdma_convert_kvec(&xdrbuf->head[0], seg, &n); in rpcrdma_convert_iovs()
[all …]
/kernel/linux/linux-5.10/fs/cachefiles/
Dkey.c38 int loop, len, max, seg, mark, print; in cachefiles_cook_key() local
97 seg = 250; in cachefiles_cook_key()
99 if (seg <= 0) { in cachefiles_cook_key()
103 seg = 252; in cachefiles_cook_key()
116 seg = 252; in cachefiles_cook_key()
118 if (seg <= 0) { in cachefiles_cook_key()
122 seg = 252; in cachefiles_cook_key()
/kernel/linux/linux-5.10/arch/x86/kernel/
Dstep.c14 unsigned long addr, seg; in convert_ip_to_linear() local
17 seg = regs->cs; in convert_ip_to_linear()
19 addr = (addr & 0xffff) + (seg << 4); in convert_ip_to_linear()
30 if ((seg & SEGMENT_TI_MASK) == SEGMENT_LDT) { in convert_ip_to_linear()
34 seg >>= 3; in convert_ip_to_linear()
38 seg >= child->mm->context.ldt->nr_entries)) in convert_ip_to_linear()
41 desc = &child->mm->context.ldt->entries[seg]; in convert_ip_to_linear()
/kernel/linux/linux-5.10/arch/x86/pci/
Dnumachip.c18 static inline char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn) in pci_dev_base() argument
20 struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus); in pci_dev_base()
27 static int pci_mmcfg_read_numachip(unsigned int seg, unsigned int bus, in pci_mmcfg_read_numachip() argument
45 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_read_numachip()
67 static int pci_mmcfg_write_numachip(unsigned int seg, unsigned int bus, in pci_mmcfg_write_numachip() argument
81 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_write_numachip()
/kernel/linux/linux-5.10/drivers/pcmcia/
Domap_cf.c204 unsigned seg; in omap_cf_probe() local
209 seg = (int) pdev->dev.platform_data; in omap_cf_probe()
210 if (seg == 0 || seg > 3) in omap_cf_probe()
234 switch (seg) { in omap_cf_probe()
268 omap_writew(~(1 << seg), CF_CFG); in omap_cf_probe()
270 pr_info("%s: cs%d on irq %d\n", driver_name, seg, irq); in omap_cf_probe()
277 seg, omap_readl(EMIFS_CCS(seg)), omap_readl(EMIFS_ACS(seg))); in omap_cf_probe()
278 omap_writel(0x0004a1b3, EMIFS_CCS(seg)); /* synch mode 4 etc */ in omap_cf_probe()
279 omap_writel(0x00000000, EMIFS_ACS(seg)); /* OE hold/setup */ in omap_cf_probe()
/kernel/linux/linux-5.10/arch/x86/boot/
Dboot.h82 u16 seg; in ds() local
83 asm("movw %%ds,%0" : "=rm" (seg)); in ds()
84 return seg; in ds()
87 static inline void set_fs(u16 seg) in set_fs() argument
89 asm volatile("movw %0,%%fs" : : "rm" (seg)); in set_fs()
93 u16 seg; in fs() local
94 asm volatile("movw %%fs,%0" : "=rm" (seg)); in fs()
95 return seg; in fs()
98 static inline void set_gs(u16 seg) in set_gs() argument
100 asm volatile("movw %0,%%gs" : : "rm" (seg)); in set_gs()
[all …]
/kernel/linux/linux-5.10/drivers/isdn/mISDN/
Ddsp_audio.c48 int seg; in linear2alaw() local
65 for (seg = 0; seg < 8; seg++) { in linear2alaw()
66 if (pcm_val <= seg_end[seg]) in linear2alaw()
70 return ((seg << 4) | in linear2alaw()
71 ((pcm_val >> ((seg) ? (seg + 3) : 4)) & 0x0F)) ^ mask; in linear2alaw()
78 int seg; in alaw2linear() local
82 seg = (((int) alaw & 0x70) >> 4); in alaw2linear()
83 if (seg) in alaw2linear()
84 i = (i + 0x100) << (seg - 1); in alaw2linear()

123456789