Home
last modified time | relevance | path

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

1234567891011

/Linux-v6.6/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 …]
/Linux-v6.6/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 …]
/Linux-v6.6/drivers/infiniband/hw/mlx5/
Dwr.c55 void **seg, int *size, void **cur_edge) in set_eth_seg() argument
57 struct mlx5_wqe_eth_seg *eseg = *seg; in set_eth_seg()
85 *seg += stride; in set_eth_seg()
88 handle_post_send_edge(&qp->sq, seg, *size, cur_edge); in set_eth_seg()
91 mlx5r_memcpy_send_wqe(&qp->sq, cur_edge, seg, size, in set_eth_seg()
98 *seg += sizeof(struct mlx5_wqe_eth_seg); in set_eth_seg()
189 static void set_reg_mkey_seg(struct mlx5_mkey_seg *seg, in set_reg_mkey_seg() argument
195 memset(seg, 0, sizeof(*seg)); in set_reg_mkey_seg()
198 seg->log2_page_size = ilog2(mr->ibmr.page_size); in set_reg_mkey_seg()
203 seg->flags = get_umr_flags(access) | mr->access_mode; in set_reg_mkey_seg()
[all …]
Dwr.h51 static inline void handle_post_send_edge(struct mlx5_ib_wq *sq, void **seg, in handle_post_send_edge() argument
56 if (likely(*seg != *cur_edge)) in handle_post_send_edge()
62 *seg = mlx5_frag_buf_get_wqe(&sq->fbc, idx); in handle_post_send_edge()
75 void **seg, u32 *wqe_sz, in mlx5r_memcpy_send_wqe() argument
79 size_t leftlen = *cur_edge - *seg; in mlx5r_memcpy_send_wqe()
83 memcpy(*seg, src, copysz); in mlx5r_memcpy_send_wqe()
88 *seg += stride; in mlx5r_memcpy_send_wqe()
90 handle_post_send_edge(sq, seg, *wqe_sz, cur_edge); in mlx5r_memcpy_send_wqe()
95 int mlx5r_begin_wqe(struct mlx5_ib_qp *qp, void **seg,
100 void *seg, u8 size, void *cur_edge, unsigned int idx,
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_buddy.c77 unsigned int seg, order_iter, m; in dr_buddy_find_free_seg() local
85 seg = find_first_bit(buddy->bitmap[order_iter], m); in dr_buddy_find_free_seg()
87 if (WARN(seg >= m, in dr_buddy_find_free_seg()
98 *segment = seg; in dr_buddy_find_free_seg()
123 unsigned int seg, order_iter; in mlx5dr_buddy_alloc_mem() local
126 err = dr_buddy_find_free_seg(buddy, order, &seg, &order_iter); in mlx5dr_buddy_alloc_mem()
130 bitmap_clear(buddy->bitmap[order_iter], seg, 1); in mlx5dr_buddy_alloc_mem()
139 seg <<= 1; in mlx5dr_buddy_alloc_mem()
140 bitmap_set(buddy->bitmap[order_iter], seg ^ 1, 1); in mlx5dr_buddy_alloc_mem()
144 seg <<= order; in mlx5dr_buddy_alloc_mem()
[all …]
/Linux-v6.6/tools/testing/selftests/sgx/
Dload.c106 static bool encl_ioc_add_pages(struct encl *encl, struct encl_segment *seg) in encl_ioc_add_pages() argument
113 secinfo.flags = seg->flags; in encl_ioc_add_pages()
115 ioc.src = (uint64_t)seg->src; in encl_ioc_add_pages()
116 ioc.offset = seg->offset; in encl_ioc_add_pages()
117 ioc.length = seg->size; in encl_ioc_add_pages()
119 if (seg->measure) in encl_ioc_add_pages()
177 struct encl_segment *seg; in encl_load() local
250 seg = &encl->segment_tbl[j]; in encl_load()
270 seg->prot = PROT_READ | PROT_WRITE; in encl_load()
271 seg->flags = SGX_PAGE_TYPE_TCS << 8; in encl_load()
[all …]
/Linux-v6.6/arch/x86/kvm/
Dmtrr.c189 static u64 fixed_mtrr_seg_unit_size(int seg) in fixed_mtrr_seg_unit_size() argument
191 return 8 << fixed_seg_table[seg].range_shift; in fixed_mtrr_seg_unit_size()
194 static bool fixed_msr_to_seg_unit(u32 msr, int *seg, int *unit) in fixed_msr_to_seg_unit() argument
198 *seg = 0; in fixed_msr_to_seg_unit()
202 *seg = 1; in fixed_msr_to_seg_unit()
208 *seg = 2; in fixed_msr_to_seg_unit()
220 static void fixed_mtrr_seg_unit_range(int seg, int unit, u64 *start, u64 *end) in fixed_mtrr_seg_unit_range() argument
222 struct fixed_mtrr_segment *mtrr_seg = &fixed_seg_table[seg]; in fixed_mtrr_seg_unit_range()
223 u64 unit_size = fixed_mtrr_seg_unit_size(seg); in fixed_mtrr_seg_unit_range()
230 static int fixed_mtrr_seg_unit_range_index(int seg, int unit) in fixed_mtrr_seg_unit_range_index() argument
[all …]
/Linux-v6.6/arch/m68k/sun3/
Dmmu_emu.c128 unsigned long seg, num; in mmu_emu_init() local
151 for(seg = bootmem_end; seg < 0x0f800000; seg += SUN3_PMEG_SIZE) { in mmu_emu_init()
152 i = sun3_get_segmap(seg); in mmu_emu_init()
157 print_pte_vaddr (seg); in mmu_emu_init()
159 sun3_put_segmap(seg, SUN3_INVALID_PMEG); in mmu_emu_init()
164 for (num=0, seg=0x0F800000; seg<0x10000000; seg+=16*PAGE_SIZE) { in mmu_emu_init()
165 if (sun3_get_segmap (seg) != SUN3_INVALID_PMEG) { in mmu_emu_init()
169 print_pte_vaddr (seg + (i*PAGE_SIZE)); in mmu_emu_init()
176 m68k_vmalloc_end = seg; in mmu_emu_init()
181 pmeg_alloc[sun3_get_segmap(seg)] = 2; in mmu_emu_init()
[all …]
/Linux-v6.6/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()
/Linux-v6.6/net/ipv4/
Dudp_offload.c192 static void __udpv4_gso_segment_csum(struct sk_buff *seg, in __udpv4_gso_segment_csum() argument
202 uh = udp_hdr(seg); in __udpv4_gso_segment_csum()
203 iph = ip_hdr(seg); in __udpv4_gso_segment_csum()
206 inet_proto_csum_replace4(&uh->check, seg, *oldip, *newip, in __udpv4_gso_segment_csum()
208 inet_proto_csum_replace2(&uh->check, seg, *oldport, *newport, in __udpv4_gso_segment_csum()
221 struct sk_buff *seg; in __udpv4_gso_segment_list_csum() local
225 seg = segs; in __udpv4_gso_segment_list_csum()
226 uh = udp_hdr(seg); in __udpv4_gso_segment_list_csum()
227 iph = ip_hdr(seg); in __udpv4_gso_segment_list_csum()
229 if ((udp_hdr(seg)->dest == udp_hdr(seg->next)->dest) && in __udpv4_gso_segment_list_csum()
[all …]
/Linux-v6.6/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 …]
/Linux-v6.6/drivers/usb/cdns3/
Dcdnsp-mem.c34 struct cdnsp_segment *seg; in cdnsp_segment_alloc() local
38 seg = kzalloc(sizeof(*seg), flags); in cdnsp_segment_alloc()
39 if (!seg) in cdnsp_segment_alloc()
42 seg->trbs = dma_pool_zalloc(pdev->segment_pool, flags, &dma); in cdnsp_segment_alloc()
43 if (!seg->trbs) { in cdnsp_segment_alloc()
44 kfree(seg); in cdnsp_segment_alloc()
49 seg->bounce_buf = kzalloc(max_packet, flags | GFP_DMA); in cdnsp_segment_alloc()
50 if (!seg->bounce_buf) in cdnsp_segment_alloc()
57 seg->trbs[i].link.control |= cpu_to_le32(TRB_CYCLE); in cdnsp_segment_alloc()
59 seg->dma = dma; in cdnsp_segment_alloc()
[all …]
/Linux-v6.6/arch/m68k/include/asm/
Dtlbflush.h143 unsigned char seg; in flush_tlb_mm() local
150 seg = sun3_get_segmap(i); in flush_tlb_mm()
151 if(seg == SUN3_INVALID_PMEG) in flush_tlb_mm()
155 pmeg_alloc[seg] = 0; in flush_tlb_mm()
156 pmeg_ctx[seg] = 0; in flush_tlb_mm()
157 pmeg_vaddr[seg] = 0; in flush_tlb_mm()
191 unsigned char seg, oldctx; in flush_tlb_range() local
200 if((seg = sun3_get_segmap(start)) == SUN3_INVALID_PMEG) in flush_tlb_range()
202 if(pmeg_ctx[seg] == mm->context) { in flush_tlb_range()
203 pmeg_alloc[seg] = 0; in flush_tlb_range()
[all …]
/Linux-v6.6/tools/lib/bpf/
Dusdt.c405 struct elf_seg *seg; in parse_elf_segs() local
432 seg = *segs + *seg_cnt; in parse_elf_segs()
435 seg->start = phdr.p_vaddr; in parse_elf_segs()
436 seg->end = phdr.p_vaddr + phdr.p_memsz; in parse_elf_segs()
437 seg->offset = phdr.p_offset; in parse_elf_segs()
438 seg->is_exec = phdr.p_flags & PF_X; in parse_elf_segs()
454 struct elf_seg *seg; in parse_vma_segs() local
517 seg = *segs + *seg_cnt; in parse_vma_segs()
520 seg->start = seg_start; in parse_vma_segs()
521 seg->end = seg_end; in parse_vma_segs()
[all …]
/Linux-v6.6/drivers/auxdisplay/
Dht16k33.c105 struct ht16k33_seg seg; member
146 memcpy(buf, &priv->seg.map, priv->seg.map_size); in map_seg_show()
147 return priv->seg.map_size; in map_seg_show()
155 if (cnt != priv->seg.map_size) in map_seg_store()
158 memcpy(&priv->seg.map, buf, cnt); in map_seg_store()
447 seg.linedisp); in ht16k33_linedisp_update()
456 struct ht16k33_seg *seg = &priv->seg; in ht16k33_seg7_update() local
457 char *s = seg->curr; in ht16k33_seg7_update()
460 buf[0] = map_to_seg7(&seg->map.seg7, *s++); in ht16k33_seg7_update()
462 buf[2] = map_to_seg7(&seg->map.seg7, *s++); in ht16k33_seg7_update()
[all …]
/Linux-v6.6/drivers/net/ethernet/intel/ice/
Dice_ethtool_fdir.c621 ice_fdir_set_hw_fltr_rule(struct ice_pf *pf, struct ice_flow_seg_info *seg, in ice_fdir_set_hw_fltr_rule() argument
656 if (!memcmp(old_seg, seg, sizeof(*seg))) in ice_fdir_set_hw_fltr_rule()
682 err = ice_flow_add_prof(hw, ICE_BLK_FD, ICE_FLOW_RX, prof_id, seg, in ice_fdir_set_hw_fltr_rule()
688 seg, &entry1_h); in ice_fdir_set_hw_fltr_rule()
693 seg, &entry2_h); in ice_fdir_set_hw_fltr_rule()
697 hw_prof->fdir_seg[tun] = seg; in ice_fdir_set_hw_fltr_rule()
716 ICE_FLOW_PRIO_NORMAL, seg, in ice_fdir_set_hw_fltr_rule()
781 ice_set_init_fdir_seg(struct ice_flow_seg_info *seg, in ice_set_init_fdir_seg() argument
787 if (!seg) in ice_set_init_fdir_seg()
810 ICE_FLOW_SET_HDRS(seg, l3_proto | l4_proto); in ice_set_init_fdir_seg()
[all …]
Dice_flow.c662 static u16 ice_flow_calc_seg_sz(struct ice_flow_prof_params *params, u8 seg) in ice_flow_calc_seg_sz() argument
667 sz = (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_VLAN) ? in ice_flow_calc_seg_sz()
671 if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV4) in ice_flow_calc_seg_sz()
673 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV6) in ice_flow_calc_seg_sz()
675 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_ARP) in ice_flow_calc_seg_sz()
677 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK) in ice_flow_calc_seg_sz()
682 if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_ICMP) in ice_flow_calc_seg_sz()
684 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_TCP) in ice_flow_calc_seg_sz()
686 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_UDP) in ice_flow_calc_seg_sz()
688 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_SCTP) in ice_flow_calc_seg_sz()
[all …]
/Linux-v6.6/fs/
Dbinfmt_elf_fdpic.c747 struct elf_fdpic_loadseg *seg; in elf_fdpic_map_file() local
790 seg = loadmap->segs; in elf_fdpic_map_file()
791 for (loop = loadmap->nsegs; loop > 0; loop--, seg++) { in elf_fdpic_map_file()
792 if (params->hdr.e_entry >= seg->p_vaddr && in elf_fdpic_map_file()
793 params->hdr.e_entry < seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file()
795 (params->hdr.e_entry - seg->p_vaddr) + in elf_fdpic_map_file()
796 seg->addr; in elf_fdpic_map_file()
815 seg = loadmap->segs; in elf_fdpic_map_file()
816 for (loop = loadmap->nsegs; loop > 0; loop--, seg++) { in elf_fdpic_map_file()
817 if (phdr->p_vaddr >= seg->p_vaddr && in elf_fdpic_map_file()
[all …]
/Linux-v6.6/fs/nfsd/
Dflexfilelayout.c26 struct nfsd4_layout_seg *seg = &args->lg_seg; in nfsd4_ff_proc_layoutget() local
53 if (seg->iomode == IOMODE_READ) { in nfsd4_ff_proc_layoutget()
68 seg->offset = 0; in nfsd4_ff_proc_layoutget()
69 seg->length = NFS4_MAX_UINT64; in nfsd4_ff_proc_layoutget()
71 dprintk("GET: 0x%llx:0x%llx %d\n", seg->offset, seg->length, in nfsd4_ff_proc_layoutget()
72 seg->iomode); in nfsd4_ff_proc_layoutget()
76 seg->length = 0; in nfsd4_ff_proc_layoutget()
/Linux-v6.6/arch/x86/boot/
Dboot.h49 u16 seg; in ds() local
50 asm("movw %%ds,%0" : "=rm" (seg)); in ds()
51 return seg; in ds()
54 static inline void set_fs(u16 seg) in set_fs() argument
56 asm volatile("movw %0,%%fs" : : "rm" (seg)); in set_fs()
60 u16 seg; in fs() local
61 asm volatile("movw %%fs,%0" : "=rm" (seg)); in fs()
62 return seg; in fs()
65 static inline void set_gs(u16 seg) in set_gs() argument
67 asm volatile("movw %0,%%gs" : : "rm" (seg)); in set_gs()
[all …]
/Linux-v6.6/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.c84 struct sk_buff *skb, int seg, int *len) in otx2_dma_map_skb_frag() argument
91 if (!seg) { in otx2_dma_map_skb_frag()
96 frag = &skb_shinfo(skb)->frags[seg - 1]; in otx2_dma_map_skb_frag()
106 int seg; in otx2_dma_unmap_skb_frags() local
108 for (seg = 0; seg < sg->num_segs; seg++) { in otx2_dma_unmap_skb_frags()
109 otx2_dma_unmap_page(pfvf, sg->dma_addr[seg], in otx2_dma_unmap_skb_frags()
110 sg->size[seg], DMA_TO_DEVICE); in otx2_dma_unmap_skb_frags()
260 int seg; in otx2_free_rcv_seg() local
267 for (seg = 0; seg < sg->segs; seg++, seg_addr++) in otx2_free_rcv_seg()
349 int seg; in otx2_rcv_pkt_handler() local
[all …]
/Linux-v6.6/arch/x86/pci/
Dnumachip.c19 static inline char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn) in pci_dev_base() argument
21 struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus); in pci_dev_base()
28 static int pci_mmcfg_read_numachip(unsigned int seg, unsigned int bus, in pci_mmcfg_read_numachip() argument
46 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_read_numachip()
68 static int pci_mmcfg_write_numachip(unsigned int seg, unsigned int bus, in pci_mmcfg_write_numachip() argument
82 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_write_numachip()
/Linux-v6.6/net/sunrpc/xprtrdma/
Drpc_rdma.c209 rpcrdma_convert_kvec(struct kvec *vec, struct rpcrdma_mr_seg *seg, in rpcrdma_convert_kvec() argument
212 seg->mr_page = virt_to_page(vec->iov_base); in rpcrdma_convert_kvec()
213 seg->mr_offset = offset_in_page(vec->iov_base); in rpcrdma_convert_kvec()
214 seg->mr_len = vec->iov_len; in rpcrdma_convert_kvec()
215 ++seg; in rpcrdma_convert_kvec()
217 return seg; in rpcrdma_convert_kvec()
230 struct rpcrdma_mr_seg *seg) in rpcrdma_convert_iovs() argument
238 seg = rpcrdma_convert_kvec(&xdrbuf->head[0], seg, &n); in rpcrdma_convert_iovs()
244 seg->mr_page = *ppages; in rpcrdma_convert_iovs()
245 seg->mr_offset = page_base; in rpcrdma_convert_iovs()
[all …]
/Linux-v6.6/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()
/Linux-v6.6/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()

1234567891011