Home
last modified time | relevance | path

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

12345678910

/linux/arch/s390/mm/
A Dextmem.c301 seg = kmalloc(sizeof(*seg), GFP_KERNEL | GFP_DMA); in __segment_load()
322 seg->res->start = seg->start_addr; in __segment_load()
323 seg->res->end = seg->end; in __segment_load()
324 memcpy(&seg->res_name, seg->dcss_name, 8); in __segment_load()
328 seg->res->name = seg->res_name; in __segment_load()
340 rc = vmem_add_mapping(seg->start_addr, seg->end - seg->start_addr + 1); in __segment_load()
373 (void*) seg->end, segtype_string[seg->vm_segtype]); in __segment_load()
377 (void*) seg->end, segtype_string[seg->vm_segtype]); in __segment_load()
381 vmem_remove_mapping(seg->start_addr, seg->end - seg->start_addr + 1); in __segment_load()
519 vmem_remove_mapping(seg->start_addr, seg->end - seg->start_addr + 1); in segment_modify_shared()
[all …]
/linux/drivers/infiniband/hw/mlx5/
A Dwr.c72 *seg += stride; in memcpy_send_wqe()
379 memset(seg, 0, sizeof(*seg)); in set_reg_mkey_seg()
397 memset(seg, 0, sizeof(*seg)); in set_linv_mkey_seg()
407 memset(seg, 0, sizeof(*seg)); in set_reg_mkey_segment()
489 seg = *wqe; in set_data_inl_seg()
737 bsf = *seg; in set_sig_data_segment()
756 memset(seg, 0, sizeof(*seg)); in set_sig_mkey_segment()
1004 seg = PTR_ALIGN(seg, MLX5_SEND_WQE_BB); in finish_wqe()
1240 pad = *seg; in handle_qpt_ud()
1293 void *seg; in mlx5_ib_post_send() local
[all …]
/linux/ipc/
A Dmsgutil.c68 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()
99 for (seg = msg->next; seg != NULL; seg = seg->next) { in load_msg()
159 for (seg = msg->next; seg != NULL; seg = seg->next) { in store_msg()
175 seg = msg->next; in free_msg()
177 while (seg != NULL) { in free_msg()
181 kfree(seg); in free_msg()
[all …]
/linux/arch/x86/kvm/
A Dmtrr.c186 *seg = 0; in fixed_msr_to_seg_unit()
190 *seg = 1; in fixed_msr_to_seg_unit()
196 *seg = 2; in fixed_msr_to_seg_unit()
240 int seg, unit; in fixed_msr_to_range() local
251 int seg, unit; in fixed_msr_to_range_index() local
264 for (seg = 0; seg < seg_num; seg++) { in fixed_mtrr_addr_to_seg()
267 return seg; in fixed_mtrr_addr_to_seg()
458 int seg; member
480 if (seg < 0) in mtrr_lookup_fixed_start()
486 iter->seg = seg; in mtrr_lookup_fixed_start()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
A Ddr_buddy.c79 unsigned int seg, order_iter, m; in dr_buddy_find_free_seg() local
89 if (WARN(seg >= m, in dr_buddy_find_free_seg()
100 *segment = seg; in dr_buddy_find_free_seg()
125 unsigned int seg, order_iter; in mlx5dr_buddy_alloc_mem() local
141 seg <<= 1; in mlx5dr_buddy_alloc_mem()
146 seg <<= order; in mlx5dr_buddy_alloc_mem()
147 *segment = seg; in mlx5dr_buddy_alloc_mem()
153 unsigned int seg, unsigned int order) in mlx5dr_buddy_free_mem() argument
155 seg >>= order; in mlx5dr_buddy_free_mem()
163 seg >>= 1; in mlx5dr_buddy_free_mem()
[all …]
/linux/arch/m68k/sun3/
A 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()
164 for (num=0, seg=0x0F800000; seg<0x10000000; seg+=16*PAGE_SIZE) { 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()
190 for(seg = 0; seg < PAGE_OFFSET; seg += SUN3_PMEG_SIZE) in mmu_emu_init()
194 for(seg = 0; seg < 0x10000000; seg += SUN3_PMEG_SIZE) { in mmu_emu_init()
[all …]
/linux/net/ipv4/
A Dudp_offload.c200 uh = udp_hdr(seg); in __udpv4_gso_segment_csum()
223 seg = segs; in __udpv4_gso_segment_list_csum()
227 if ((udp_hdr(seg)->dest == udp_hdr(seg->next)->dest) && in __udpv4_gso_segment_list_csum()
228 (udp_hdr(seg)->source == udp_hdr(seg->next)->source) && in __udpv4_gso_segment_list_csum()
229 (ip_hdr(seg)->daddr == ip_hdr(seg->next)->daddr) && in __udpv4_gso_segment_list_csum()
230 (ip_hdr(seg)->saddr == ip_hdr(seg->next)->saddr)) in __udpv4_gso_segment_list_csum()
233 while ((seg = seg->next)) { in __udpv4_gso_segment_list_csum()
303 seg = segs; in __udp_gso_segment()
318 seg->sk = sk; in __udp_gso_segment()
322 if (!seg->next) in __udp_gso_segment()
[all …]
/linux/drivers/firmware/google/
A 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/drivers/acpi/
A Dpci_mcfg.c44 #define AL_ECAM(table_id, rev, seg, ops) \ argument
45 { "AMAZON", table_id, rev, seg, MCFG_BUS_ANY, ops }
56 #define QCOM_ECAM32(seg) \ argument
68 #define HISI_QUAD_DOM(table_id, seg, ops) \ argument
98 #define THUNDER_ECAM_QUIRK(rev, seg) \ argument
126 #define XGENE_V1_ECAM_MCFG(rev, seg) \ argument
127 {"APM ", "XGENE ", rev, seg, MCFG_BUS_ANY, \
130 #define XGENE_V2_ECAM_MCFG(rev, seg) \ argument
131 {"APM ", "XGENE ", rev, seg, MCFG_BUS_ANY, \
153 #define ALTRA_ECAM_QUIRK(rev, seg) \ argument
[all …]
/linux/tools/testing/selftests/sgx/
A Dload.c108 secinfo.flags = seg->flags; in encl_ioc_add_pages()
110 ioc.src = (uint64_t)encl->src + seg->offset; in encl_ioc_add_pages()
111 ioc.offset = seg->offset; in encl_ioc_add_pages()
112 ioc.length = seg->size; in encl_ioc_add_pages()
196 struct encl_segment *seg; in encl_load() local
201 seg = &encl->segment_tbl[j]; in encl_load()
220 seg->prot = PROT_READ | PROT_WRITE; in encl_load()
221 seg->flags = SGX_PAGE_TYPE_TCS << 8; in encl_load()
226 seg->flags = (SGX_PAGE_TYPE_REG << 8) | seg->prot; in encl_load()
291 struct encl_segment *seg = &encl->segment_tbl[i]; in encl_build() local
[all …]
/linux/drivers/net/ethernet/intel/ice/
A Dice_ethtool_fdir.c558 if (!memcmp(old_seg, seg, sizeof(*seg))) in ice_fdir_set_hw_fltr_rule()
641 if (!seg) in ice_set_init_fdir_seg()
705 seg = devm_kzalloc(dev, sizeof(*seg), GFP_KERNEL); in ice_create_init_fdir_rule()
706 if (!seg) in ice_create_init_fdir_rule()
740 memcpy(&tun_seg[1], seg, sizeof(*seg)); in ice_create_init_fdir_rule()
752 devm_kfree(dev, seg); in ice_create_init_fdir_rule()
1067 seg = devm_kzalloc(dev, sizeof(*seg), GFP_KERNEL); in ice_cfg_fdir_xtrct_seq()
1068 if (!seg) in ice_cfg_fdir_xtrct_seq()
1124 memcpy(&tun_seg[1], seg, sizeof(*seg)); in ice_cfg_fdir_xtrct_seq()
1150 memcpy(&tun_seg[1], seg, sizeof(*seg)); in ice_cfg_fdir_xtrct_seq()
[all …]
A Dice_flow.c1104 u8 seg) in ice_flow_xtract_raws() argument
1737 seg->match |= bit; in ice_flow_set_fld_ext()
1739 seg->range |= bit; in ice_flow_set_fld_ext()
1741 seg->fields[fld].type = field_type; in ice_flow_set_fld_ext()
1742 seg->fields[fld].src.val = val_loc; in ice_flow_set_fld_ext()
1801 seg->raws[seg->raws_cnt].off = off; in ice_flow_add_fld_raw()
1802 seg->raws[seg->raws_cnt].info.type = ICE_FLOW_FLD_TYPE_SIZE; in ice_flow_add_fld_raw()
1803 seg->raws[seg->raws_cnt].info.src.val = val_loc; in ice_flow_add_fld_raw()
1804 seg->raws[seg->raws_cnt].info.src.mask = mask_loc; in ice_flow_add_fld_raw()
1806 seg->raws[seg->raws_cnt].info.src.last = len; in ice_flow_add_fld_raw()
[all …]
/linux/drivers/usb/cdns3/
A Dcdnsp-mem.c38 seg = kzalloc(sizeof(*seg), flags); in cdnsp_segment_alloc()
39 if (!seg) in cdnsp_segment_alloc()
44 kfree(seg); in cdnsp_segment_alloc()
62 return seg; in cdnsp_segment_alloc()
66 kfree(seg); in cdnsp_segment_alloc()
78 kfree(seg); in cdnsp_segment_free()
92 seg = next; in cdnsp_free_segments_for_ring()
245 seg = seg->next; in cdnsp_update_stream_segment_mapping()
257 seg = seg->next; in cdnsp_update_stream_segment_mapping()
270 seg = seg->next; in cdnsp_remove_stream_mapping()
[all …]
/linux/arch/m68k/include/asm/
A 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
202 if(pmeg_ctx[seg] == mm->context) { in flush_tlb_range()
203 pmeg_alloc[seg] = 0; in flush_tlb_range()
204 pmeg_ctx[seg] = 0; in flush_tlb_range()
[all …]
/linux/fs/
A Dbinfmt_elf_fdpic.c797 params->hdr.e_entry < seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file()
800 seg->addr; in elf_fdpic_map_file()
823 seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file()
826 seg->addr + in elf_fdpic_map_file()
844 seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file()
850 seg->addr; in elf_fdpic_map_file()
877 seg = mseg + 1; in elf_fdpic_map_file()
908 seg->addr, seg->addr + seg->p_memsz - 1, in elf_fdpic_map_file()
909 seg->p_vaddr, seg->p_memsz); in elf_fdpic_map_file()
998 seg++; in elf_fdpic_map_file_constdisp_on_uclinux()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_txrx.c83 if (!seg) { in otx2_dma_map_skb_frag()
98 int seg; in otx2_dma_unmap_skb_frags() local
100 for (seg = 0; seg < sg->num_segs; seg++) { in otx2_dma_unmap_skb_frags()
253 int seg; in otx2_free_rcv_seg() local
260 for (seg = 0; seg < sg->segs; seg++, seg_addr++) in otx2_free_rcv_seg()
342 int seg; in otx2_rcv_pkt_handler() local
363 for (seg = 0; seg < sg->segs; seg++, seg_addr++) { in otx2_rcv_pkt_handler()
558 for (seg = 0; seg < num_segs; seg++) { in otx2_sqe_add_sg()
739 for (seg = 0; seg < num_segs; seg++) { in otx2_dma_map_tso_skb()
772 seg++; in otx2_tso_frag_dma_addr()
[all …]
/linux/drivers/auxdisplay/
A Dht16k33.c105 struct ht16k33_seg seg; member
146 memcpy(buf, &priv->seg.map, priv->seg.map_size); in map_seg_show()
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()
477 struct ht16k33_seg *seg = &priv->seg; in ht16k33_seg14_update() local
478 char *s = seg->curr; in ht16k33_seg14_update()
670 struct ht16k33_seg *seg = &priv->seg; in ht16k33_seg_probe() local
686 seg->map_size = sizeof(seg->map.seg7); in ht16k33_seg_probe()
693 seg->map_size = sizeof(seg->map.seg14); in ht16k33_seg_probe()
[all …]
/linux/arch/x86/boot/
A 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
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
104 u16 seg; in gs() local
105 asm volatile("movw %%gs,%0" : "=rm" (seg)); in gs()
[all …]
/linux/fs/nfsd/
A 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()
A Dblocklayout.c24 struct nfsd4_layout_seg *seg = &args->lg_seg; in nfsd4_block_proc_layoutget() local
32 if (seg->offset & (block_size - 1)) { in nfsd4_block_proc_layoutget()
47 error = sb->s_export_op->map_blocks(inode, seg->offset, seg->length, in nfsd4_block_proc_layoutget()
48 &iomap, seg->iomode != IOMODE_READ, in nfsd4_block_proc_layoutget()
63 if (seg->iomode == IOMODE_READ) in nfsd4_block_proc_layoutget()
70 if (seg->iomode & IOMODE_RW) { in nfsd4_block_proc_layoutget()
85 if (seg->iomode == IOMODE_READ) { in nfsd4_block_proc_layoutget()
102 seg->offset = iomap.offset; in nfsd4_block_proc_layoutget()
103 seg->length = iomap.length; in nfsd4_block_proc_layoutget()
109 seg->length = 0; in nfsd4_block_proc_layoutget()
[all …]
/linux/net/sunrpc/xprtrdma/
A Drpc_rdma.c219 ++seg; in rpcrdma_convert_kvec()
221 return seg; in rpcrdma_convert_kvec()
242 seg = rpcrdma_convert_kvec(&xdrbuf->head[0], seg, &n); in rpcrdma_convert_iovs()
251 len -= seg->mr_len; in rpcrdma_convert_iovs()
253 ++seg; in rpcrdma_convert_iovs()
361 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, false, &mr); in rpcrdma_encode_read_list()
362 if (IS_ERR(seg)) in rpcrdma_encode_read_list()
425 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, true, &mr); in rpcrdma_encode_write_list()
426 if (IS_ERR(seg)) in rpcrdma_encode_write_list()
503 seg = rpcrdma_mr_prepare(r_xprt, req, seg, nsegs, true, &mr); in rpcrdma_encode_reply_chunk()
[all …]
/linux/drivers/pcmcia/
A 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()
272 omap_writew(~(1 << seg), CF_CFG); in omap_cf_probe()
274 pr_info("%s: cs%d on irq %d\n", driver_name, seg, irq); in omap_cf_probe()
281 seg, omap_readl(EMIFS_CCS(seg)), omap_readl(EMIFS_ACS(seg))); in omap_cf_probe()
282 omap_writel(0x0004a1b3, EMIFS_CCS(seg)); /* synch mode 4 etc */ in omap_cf_probe()
283 omap_writel(0x00000000, EMIFS_ACS(seg)); /* OE hold/setup */ in omap_cf_probe()
/linux/fs/cachefiles/
A 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()
/linux/drivers/isdn/mISDN/
A 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/drivers/infiniband/hw/mthca/
A Dmthca_mr.c88 u32 seg; in mthca_buddy_alloc() local
96 if (seg < m) in mthca_buddy_alloc()
104 clear_bit(seg, buddy->bits[o]); in mthca_buddy_alloc()
109 seg <<= 1; in mthca_buddy_alloc()
116 seg <<= order; in mthca_buddy_alloc()
118 return seg; in mthca_buddy_alloc()
123 seg >>= order; in mthca_buddy_free()
130 seg >>= 1; in mthca_buddy_free()
195 if (seg == -1) in mthca_alloc_mtt_range()
202 seg = -1; in mthca_alloc_mtt_range()
[all …]

Completed in 56 milliseconds

12345678910