Home
last modified time | relevance | path

Searched refs:segment (Results 1 – 25 of 448) sorted by relevance

12345678910>>...18

/openbmc/linux/drivers/scsi/
H A Dlibiscsi_tcp.c64 struct iscsi_segment *segment);
90 iscsi_tcp_segment_init_sg(struct iscsi_segment *segment, in iscsi_tcp_segment_init_sg() argument
93 segment->sg = sg; in iscsi_tcp_segment_init_sg()
94 segment->sg_offset = offset; in iscsi_tcp_segment_init_sg()
95 segment->size = min(sg->length - offset, in iscsi_tcp_segment_init_sg()
96 segment->total_size - segment->total_copied); in iscsi_tcp_segment_init_sg()
97 segment->data = NULL; in iscsi_tcp_segment_init_sg()
109 static void iscsi_tcp_segment_map(struct iscsi_segment *segment, int recv) in iscsi_tcp_segment_map() argument
113 if (segment->data != NULL || !segment->sg) in iscsi_tcp_segment_map()
116 sg = segment->sg; in iscsi_tcp_segment_map()
[all …]
H A Discsi_tcp.c150 iscsi_tcp_segment_unmap(&tcp_conn->in.segment); in iscsi_sw_tcp_recv_data()
295 struct iscsi_segment *segment) in iscsi_sw_tcp_xmit_segment() argument
302 while (!iscsi_tcp_segment_done(tcp_conn, segment, 0, r)) { in iscsi_sw_tcp_xmit_segment()
309 offset = segment->copied; in iscsi_sw_tcp_xmit_segment()
310 copy = segment->size - offset; in iscsi_sw_tcp_xmit_segment()
312 if (segment->total_copied + segment->size < segment->total_size) in iscsi_sw_tcp_xmit_segment()
318 if (!segment->data) { in iscsi_sw_tcp_xmit_segment()
321 sg = segment->sg; in iscsi_sw_tcp_xmit_segment()
322 offset += segment->sg_offset + sg->offset; in iscsi_sw_tcp_xmit_segment()
325 bvec_set_virt(&bv, segment->data + offset, copy); in iscsi_sw_tcp_xmit_segment()
[all …]
/openbmc/phosphor-mrw-tools/
H A Dgen_path_callouts.pl302 my %segment;
303 $segment{BusType} = $busType;
304 $segment{SourceUnit} = $target;
305 $segment{SourceChip} = getParentByClass($target, "CHIP");
306 if ($segment{SourceChip} eq "")
319 $segment{DestUnit} = $dest;
320 $segment{DestChip} = getParentByClass($dest, "CHIP");
323 if ($segment{DestChip} eq "")
328 $segment{DestChip} = $parent;
332 if ($segment{DestChip} eq "")
[all …]
H A DInventory.pm174 my $segment = $targetObj->getInstanceName($target);
175 $item->{OBMC_NAME} =~ s/\b$segment-\d+\b\///;
206 my ($segment) = $target =~ /\b(\w+-\d+)$/;
210 $item->{OBMC_NAME} =~ s/\b$segment\/(\w+)-\d+/$1-$pos/;
373 for my $segment (@segments) {
374 my ($s, $inst) = $segment =~ /(\w+)-(\d+)/;
389 for my $segment (keys %instanceHash) {
390 if (not exists $instanceHash{$segment}{keep}) {
392 $item->{OBMC_NAME} =~ s/$segment-\d+/$segment/;
/openbmc/linux/drivers/remoteproc/
H A Dremoteproc_coredump.c50 struct rproc_dump_segment *segment; in rproc_coredump_add_segment() local
52 segment = kzalloc(sizeof(*segment), GFP_KERNEL); in rproc_coredump_add_segment()
53 if (!segment) in rproc_coredump_add_segment()
56 segment->da = da; in rproc_coredump_add_segment()
57 segment->size = size; in rproc_coredump_add_segment()
59 list_add_tail(&segment->node, &rproc->dump_segments); in rproc_coredump_add_segment()
82 struct rproc_dump_segment *segment, in rproc_coredump_add_custom_segment() argument
87 struct rproc_dump_segment *segment; in rproc_coredump_add_custom_segment() local
89 segment = kzalloc(sizeof(*segment), GFP_KERNEL); in rproc_coredump_add_custom_segment()
90 if (!segment) in rproc_coredump_add_custom_segment()
[all …]
/openbmc/linux/fs/romfs/
H A Dstorage.c40 size_t segment; in romfs_mtd_strnlen() local
47 segment = min_t(size_t, maxlen, 16); in romfs_mtd_strnlen()
48 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strnlen()
70 size_t len, segment; in romfs_mtd_strcmp() local
78 segment = min_t(size_t, size + 1, 17); in romfs_mtd_strcmp()
79 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strcmp()
108 size_t segment; in romfs_blk_read() local
113 segment = min_t(size_t, buflen, ROMBSIZE - offset); in romfs_blk_read()
117 memcpy(buf, bh->b_data + offset, segment); in romfs_blk_read()
119 buf += segment; in romfs_blk_read()
[all …]
/openbmc/openbmc/poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/
H A Dldconfig-handle-.dynstr-located-in-separate-segment.patch4 Subject: [PATCH] ldconfig: handle .dynstr located in separate segment (bug
8 segment containing it, instead of using the load offset of the first
9 segment.
41 switch (read32(segment->p_type, be))
45 - loadaddr = read32(segment->p_vaddr, be) - read32(segment->p_offset, be);
50 error (0, 0, _("more than one dynamic segment\n"));
73 + /* Find the file offset of the segment containing the dynamic
76 + for (i = 0, segment = elf_pheader;
77 + i < read16(elf_header->e_phnum, be); i++, segment++)
79 + if (read32(segment->p_type, be) == PT_LOAD
[all …]
H A Dendian-ness_handling.patch67 for (i = 0, segment = elf_pheader;
68 - i < elf_header->e_phnum; i++, segment++)
69 + i < read16(elf_header->e_phnum, be); i++, segment++)
71 check_ptr (segment);
73 - switch (segment->p_type)
74 + switch (read32(segment->p_type, be))
78 - loadaddr = segment->p_vaddr - segment->p_offset;
79 + loadaddr = read32(segment->p_vaddr, be) - read32(segment->p_offset, be);
84 error (0, 0, _("more than one dynamic segment\n"));
86 - dynamic_addr = segment->p_offset;
[all …]
H A Dendian-ness_handling_fix.patch26 error (0, 0, _("more than one dynamic segment\n"));
28 dynamic_addr = read64(segment->p_offset, be);
29 - dynamic_size = read32(segment->p_filesz, be);
30 + dynamic_size = read64(segment->p_filesz, be);
38 - if (!*osversion && read32(segment->p_filesz, be) >= 32 && read32(segment->p_align, be) >= 4)
39 + if (!*osversion && read64(segment->p_filesz, be) >= 32 && read64(segment->p_align, be) >= 4)
42 + read64(segment->p_offset, be));
43 - Elf64_Addr size = read32(segment->p_filesz, be);
44 + Elf64_Xword size = read64(segment->p_filesz, be);
H A D32and64bit.patch31 - ElfW(Phdr) *elf_pheader, *segment;
34 + Elf32_Phdr *elf_pheader, *segment;
63 + for (i = 0, segment = elf_pheader;
64 + i < elf_header->e_phnum; i++, segment++)
66 + check_ptr (segment);
68 + switch (segment->p_type)
78 + loadaddr = segment->p_vaddr - segment->p_offset;
83 + error (0, 0, _("more than one dynamic segment\n"));
85 + dynamic_addr = segment->p_offset;
86 + dynamic_size = segment->p_filesz;
[all …]
/openbmc/linux/arch/x86/math-emu/
H A Dget_address.c123 static unsigned long vm86_segment(u_char segment, struct address *addr) in vm86_segment() argument
125 segment--; in vm86_segment()
127 if (segment > PREFIX_SS_) { in vm86_segment()
132 addr->selector = VM86_REG_(segment); in vm86_segment()
133 return (unsigned long)VM86_REG_(segment) << 4; in vm86_segment()
137 static long pm_address(u_char FPU_modrm, u_char segment, in pm_address() argument
143 segment--; in pm_address()
147 if (segment > PREFIX_SS_) { in pm_address()
153 switch (segment) { in pm_address()
159 addr->selector = PM_REG_(segment); in pm_address()
[all …]
/openbmc/linux/arch/arm64/kernel/
H A Dmachine_kexec.c50 kimage->segment[i].mem, in _kexec_image_info()
51 kimage->segment[i].mem + kimage->segment[i].memsz, in _kexec_image_info()
52 kimage->segment[i].memsz, in _kexec_image_info()
53 kimage->segment[i].memsz / PAGE_SIZE); in _kexec_image_info()
91 kimage->segment[i].mem, in kexec_segment_flush()
92 kimage->segment[i].mem + kimage->segment[i].memsz, in kexec_segment_flush()
93 kimage->segment[i].memsz, in kexec_segment_flush()
94 kimage->segment[i].memsz / PAGE_SIZE); in kexec_segment_flush()
97 (unsigned long)phys_to_virt(kimage->segment[i].mem), in kexec_segment_flush()
98 (unsigned long)phys_to_virt(kimage->segment[i].mem) + in kexec_segment_flush()
[all …]
/openbmc/linux/arch/riscv/kernel/
H A Dmachine_kexec.c37 image->segment[i].mem, in kexec_image_info()
38 image->segment[i].mem + image->segment[i].memsz); in kexec_image_info()
40 (unsigned long) image->segment[i].memsz, in kexec_image_info()
41 (unsigned long) image->segment[i].memsz / PAGE_SIZE); in kexec_image_info()
67 if (image->segment[i].memsz <= sizeof(fdt)) in machine_kexec_prepare()
71 memcpy(&fdt, image->segment[i].buf, sizeof(fdt)); in machine_kexec_prepare()
72 else if (copy_from_user(&fdt, image->segment[i].buf, sizeof(fdt))) in machine_kexec_prepare()
78 internal->fdt_addr = (unsigned long) image->segment[i].mem; in machine_kexec_prepare()
/openbmc/linux/net/sunrpc/xprtrdma/
H A Dsvc_rdma_pcl.c72 struct svc_rdma_segment *segment; in pcl_set_read_segment() local
74 segment = &chunk->ch_segments[chunk->ch_segcount]; in pcl_set_read_segment()
75 segment->rs_handle = handle; in pcl_set_read_segment()
76 segment->rs_length = length; in pcl_set_read_segment()
77 segment->rs_offset = offset; in pcl_set_read_segment()
79 trace_svcrdma_decode_rseg(&rctxt->rc_cid, chunk, segment); in pcl_set_read_segment()
204 struct svc_rdma_segment *segment; in pcl_alloc_write() local
219 segment = &chunk->ch_segments[j]; in pcl_alloc_write()
220 p = xdr_decode_rdma_segment(p, &segment->rs_handle, in pcl_alloc_write()
221 &segment->rs_length, in pcl_alloc_write()
[all …]
/openbmc/sdbusplus/tools/sdbusplus/
H A Dpath.py10 def __init__(self, segment=False, **kwargs): argument
22 if segment:
26 if not segment and self.value[0] != "/":
28 if segment and self.value[0] == "/":
31 if not segment:
44 Path(segment=True, **s) for s in kwargs.pop("segments", [])
/openbmc/linux/drivers/dma/xilinx/
H A Dxilinx_dma.c669 struct xilinx_vdma_tx_segment *segment; in xilinx_vdma_alloc_tx_segment() local
672 segment = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &phys); in xilinx_vdma_alloc_tx_segment()
673 if (!segment) in xilinx_vdma_alloc_tx_segment()
676 segment->phys = phys; in xilinx_vdma_alloc_tx_segment()
678 return segment; in xilinx_vdma_alloc_tx_segment()
690 struct xilinx_cdma_tx_segment *segment; in xilinx_cdma_alloc_tx_segment() local
693 segment = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &phys); in xilinx_cdma_alloc_tx_segment()
694 if (!segment) in xilinx_cdma_alloc_tx_segment()
697 segment->phys = phys; in xilinx_cdma_alloc_tx_segment()
699 return segment; in xilinx_cdma_alloc_tx_segment()
[all …]
/openbmc/linux/kernel/
H A Dkexec_core.c170 mstart = image->segment[i].mem; in sanity_check_segment_list()
171 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
189 mstart = image->segment[i].mem; in sanity_check_segment_list()
190 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
194 pstart = image->segment[j].mem; in sanity_check_segment_list()
195 pend = pstart + image->segment[j].memsz; in sanity_check_segment_list()
208 if (image->segment[i].bufsz > image->segment[i].memsz) in sanity_check_segment_list()
218 if (PAGE_COUNT(image->segment[i].memsz) > nr_pages / 2) in sanity_check_segment_list()
221 total_pages += PAGE_COUNT(image->segment[i].memsz); in sanity_check_segment_list()
241 mstart = image->segment[i].mem; in sanity_check_segment_list()
[all …]
/openbmc/linux/drivers/misc/eeprom/
H A Dat25.c85 size_t segment; in at25_ee_read() local
100 segment = min(bytes_left, max_chunk); in at25_ee_read()
133 t[1].len = segment; in at25_ee_read()
143 msg_offset += segment; in at25_ee_read()
144 buf += segment; in at25_ee_read()
145 bytes_left -= segment; in at25_ee_read()
229 unsigned segment; in at25_ee_write() local
262 segment = buf_size - (offset % buf_size); in at25_ee_write()
263 if (segment > count) in at25_ee_write()
264 segment = count; in at25_ee_write()
[all …]
/openbmc/linux/drivers/media/test-drivers/visl/
H A Dvisl-trace-vp8.h77 __print_array(__entry->f.segment.quant_update,
78 ARRAY_SIZE(__entry->f.segment.quant_update),
79 sizeof(__entry->f.segment.quant_update[0])),
80 __print_array(__entry->f.segment.lf_update,
81 ARRAY_SIZE(__entry->f.segment.lf_update),
82 sizeof(__entry->f.segment.lf_update[0])),
83 __print_array(__entry->f.segment.segment_probs,
84 ARRAY_SIZE(__entry->f.segment.segment_probs),
85 sizeof(__entry->f.segment.segment_probs[0])),
86 __print_flags(__entry->f.segment.flags, "|",
/openbmc/linux/arch/mips/kernel/
H A Dmachine_kexec.c46 kimage->segment[i].mem, in kexec_image_info()
47 kimage->segment[i].mem + kimage->segment[i].memsz, in kexec_image_info()
48 (unsigned long)kimage->segment[i].memsz, in kexec_image_info()
49 (unsigned long)kimage->segment[i].memsz / PAGE_SIZE); in kexec_image_info()
67 if (kimage->segment[i].memsz <= sizeof(fdt)) in uhi_machine_kexec_prepare()
70 if (copy_from_user(&fdt, kimage->segment[i].buf, sizeof(fdt))) in uhi_machine_kexec_prepare()
78 phys_to_virt((unsigned long)kimage->segment[i].mem); in uhi_machine_kexec_prepare()
/openbmc/u-boot/drivers/bios_emulator/include/x86emu/
H A Ddecode.h64 u8 fetch_data_byte_abs (uint segment, uint offset);
66 u16 fetch_data_word_abs (uint segment, uint offset);
68 u32 fetch_data_long_abs (uint segment, uint offset);
70 void store_data_byte_abs (uint segment, uint offset, u8 val);
72 void store_data_word_abs (uint segment, uint offset, u16 val);
74 void store_data_long_abs (uint segment, uint offset, u32 val);
/openbmc/linux/drivers/acpi/
H A Dpci_mcfg.c20 u16 segment; member
30 u16 segment; member
191 static int pci_mcfg_quirk_matches(struct mcfg_fixup *f, u16 segment, in pci_mcfg_quirk_matches() argument
198 f->segment == segment && in pci_mcfg_quirk_matches()
211 u16 segment = root->segment; in pci_mcfg_apply_quirks() local
217 if (pci_mcfg_quirk_matches(f, segment, bus_range)) { in pci_mcfg_apply_quirks()
238 u16 seg = root->segment; in pci_mcfg_lookup()
250 if (e->segment == seg && e->bus_start <= bus_res->start && in pci_mcfg_lookup()
300 e->segment = mptr->pci_segment; in pci_mcfg_parse()
/openbmc/u-boot/drivers/bios_emulator/x86emu/
H A Ddecode.c262 #define GET_SEGMENT(segment) in get_data_segment() argument
362 uint segment, in fetch_data_byte_abs() argument
367 x86emu_check_data_access(segment, offset); in fetch_data_byte_abs()
369 return (*sys_rdb)(((u32)segment << 4) + offset); in fetch_data_byte_abs()
383 uint segment, in fetch_data_word_abs() argument
388 x86emu_check_data_access(segment, offset); in fetch_data_word_abs()
390 return (*sys_rdw)(((u32)segment << 4) + offset); in fetch_data_word_abs()
404 uint segment, in fetch_data_long_abs() argument
409 x86emu_check_data_access(segment, offset); in fetch_data_long_abs()
411 return (*sys_rdl)(((u32)segment << 4) + offset); in fetch_data_long_abs()
[all …]
/openbmc/linux/drivers/staging/rts5208/
H A Dms.c2109 ms_card->segment = vzalloc(size);
2110 if (!ms_card->segment)
2135 block_no = ms_card->segment[seg_no].disable_count++;
2136 ms_card->segment[seg_no].defect_list[block_no] = defect_block;
2140 ms_card->segment[i].build_flag = 0;
2141 ms_card->segment[i].l2p_table = NULL;
2142 ms_card->segment[i].free_table = NULL;
2143 ms_card->segment[i].get_index = 0;
2144 ms_card->segment[i].set_index = 0;
2145 ms_card->segment[i].unused_blk_cnt = 0;
[all …]
/openbmc/linux/arch/x86/pci/
H A Dmmconfig-shared.c60 if (cfg->segment > new->segment || in list_add_sorted()
61 (cfg->segment == new->segment && in list_add_sorted()
70 static struct pci_mmcfg_region *pci_mmconfig_alloc(int segment, int start, in pci_mmconfig_alloc() argument
84 new->segment = segment; in pci_mmconfig_alloc()
93 "PCI MMCONFIG %04x [bus %02x-%02x]", segment, start, end); in pci_mmconfig_alloc()
99 struct pci_mmcfg_region *__init pci_mmconfig_add(int segment, int start, in pci_mmconfig_add() argument
104 new = pci_mmconfig_alloc(segment, start, end, addr); in pci_mmconfig_add()
113 segment, start, end, &new->res, (unsigned long)addr); in pci_mmconfig_add()
119 struct pci_mmcfg_region *pci_mmconfig_lookup(int segment, int bus) in pci_mmconfig_lookup() argument
124 if (cfg->segment == segment && in pci_mmconfig_lookup()
[all …]

12345678910>>...18