Home
last modified time | relevance | path

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

12345678910>>...12

/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 …]
/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 …]
/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 …]
/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 …]
/linux/kernel/
H A Dkexec_core.c131 mstart = image->segment[i].mem; in sanity_check_segment_list()
132 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
144 * easy explanation as one segment stops on another. in sanity_check_segment_list()
150 mstart = image->segment[i].mem; in sanity_check_segment_list()
151 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
155 pstart = image->segment[j].mem; in sanity_check_segment_list()
156 pend = pstart + image->segment[j].memsz; in sanity_check_segment_list()
169 if (image->segment[i].bufsz > image->segment[i].memsz) in sanity_check_segment_list()
179 if (PAGE_COUNT(image->segment[ in sanity_check_segment_list()
710 kimage_load_normal_segment(struct kimage * image,struct kexec_segment * segment) kimage_load_normal_segment() argument
781 kimage_load_crash_segment(struct kimage * image,struct kexec_segment * segment) kimage_load_crash_segment() argument
852 kimage_load_segment(struct kimage * image,struct kexec_segment * segment) kimage_load_segment() argument
[all...]
/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 …]
H A Dsvc_rdma_rw.c733 const struct svc_rdma_segment *segment) in svc_rdma_build_read_segment() argument
742 len = segment->rs_length; in svc_rdma_build_read_segment()
772 ret = svc_rdma_rw_ctx_init(rdma, ctxt, segment->rs_offset, in svc_rdma_build_read_segment()
773 segment->rs_handle, DMA_FROM_DEVICE); in svc_rdma_build_read_segment()
803 const struct svc_rdma_segment *segment; in svc_rdma_build_read_chunk() local
807 pcl_for_each_segment(segment, chunk) { in svc_rdma_build_read_chunk()
808 ret = svc_rdma_build_read_segment(rqstp, head, segment); in svc_rdma_build_read_chunk()
811 head->rc_readbytes += segment->rs_length; in svc_rdma_build_read_chunk()
963 const struct svc_rdma_segment *segment; in svc_rdma_read_chunk_range() local
967 pcl_for_each_segment(segment, chunk) { in svc_rdma_read_chunk_range()
[all …]
/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, "|",
/linux/arch/mips/kernel/
H A Dmachine_kexec.c47 kimage->segment[i].mem, in kexec_image_info()
48 kimage->segment[i].mem + kimage->segment[i].memsz, in kexec_image_info()
49 (unsigned long)kimage->segment[i].memsz, in kexec_image_info()
50 (unsigned long)kimage->segment[i].memsz / PAGE_SIZE); in kexec_image_info()
68 if (kimage->segment[i].memsz <= sizeof(fdt)) in uhi_machine_kexec_prepare()
71 if (copy_from_user(&fdt, kimage->segment[i].buf, sizeof(fdt))) in uhi_machine_kexec_prepare()
79 phys_to_virt((unsigned long)kimage->segment[i].mem); in uhi_machine_kexec_prepare()
/linux/Documentation/core-api/
H A Dfolio_queue.rst24 The folio_queue struct forms a single segment in a segmented list of folios
37 segments on either side of the segment being accessed. Whilst this is a
41 Each segment in the list also stores:
62 A segment should be initialised by calling::
66 with a pointer to the segment to be initialised. Note that this will not
74 Folios can be set in the next unused slot in a segment struct by calling one
123 Information may be retrieved about a particular segment with the following
132 The first function returns the maximum capacity of a segment. It must not be
135 segment has been filled to capacity.
138 segment. These are more about indicating how many slots in the array have been
[all …]
/linux/drivers/acpi/
H A Dpci_mcfg.c20 u16 segment; member
30 u16 segment; member
203 static int pci_mcfg_quirk_matches(struct mcfg_fixup *f, u16 segment, in pci_mcfg_quirk_matches() argument
210 f->segment == segment && in pci_mcfg_quirk_matches()
223 u16 segment = root->segment; in pci_mcfg_apply_quirks() local
229 if (pci_mcfg_quirk_matches(f, segment, bus_range)) { in pci_mcfg_apply_quirks()
250 u16 seg = root->segment; in pci_mcfg_lookup()
262 if (e->segment == seg && e->bus_start <= bus_res->start && in pci_mcfg_lookup()
312 e->segment = mptr->pci_segment; in pci_mcfg_parse()
H A Dpci_irq.c81 unsigned int segment; member
119 entry->id.segment == quirk->segment && in do_prt_fixups()
128 entry->id.segment, entry->id.bus, in do_prt_fixups()
140 int segment = pci_domain_nr(dev->bus); in acpi_pci_irq_check_entry() local
158 entry->id.segment = segment; in acpi_pci_irq_check_entry()
191 entry->id.segment, entry->id.bus, entry->id.device, in acpi_pci_irq_check_entry()
/linux/arch/parisc/kernel/
H A Dkexec.c27 kimage->segment[n].mem, in kexec_show_segment_info()
28 kimage->segment[n].mem + kimage->segment[n].memsz, in kexec_show_segment_info()
29 (unsigned long)kimage->segment[n].memsz, in kexec_show_segment_info()
30 (unsigned long)kimage->segment[n].memsz / PAGE_SIZE); in kexec_show_segment_info()
/linux/arch/loongarch/kernel/
H A Dmachine_kexec.c54 kimage->segment[i].mem, in kexec_image_info()
55 kimage->segment[i].mem + kimage->segment[i].memsz); in kexec_image_info()
57 (unsigned long)kimage->segment[i].memsz, in kexec_image_info()
58 (unsigned long)kimage->segment[i].memsz / PAGE_SIZE); in kexec_image_info()
75 if (!strncmp(bootloader, (char __user *)kimage->segment[i].buf, strlen(bootloader))) { in machine_kexec_prepare()
76 if (!copy_from_user(cmdline_ptr, kimage->segment[i].buf, COMMAND_LINE_SIZE)) in machine_kexec_prepare()
/linux/include/scsi/
H A Dlibiscsi_tcp.h47 struct iscsi_segment segment; member
96 struct iscsi_segment *segment, int recv,
98 extern void iscsi_tcp_segment_unmap(struct iscsi_segment *segment);
100 extern void iscsi_segment_init_linear(struct iscsi_segment *segment,
105 iscsi_segment_seek_sg(struct iscsi_segment *segment,
/linux/Documentation/ABI/testing/
H A Dsysfs-fs-nilfs297 Show start block number of the latest segment.
103 Show sequence value of the latest segment.
109 Show checkpoint number of the latest segment.
115 Show segment sequence counter.
121 Show index number of the latest full segment.
127 Show index number of the full segment index
134 Show offset of next partial segment in the current
135 full segment.
147 Show write time of the last segment in
154 Show write time of the last segment in seconds.
[all …]
/linux/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_vp8.c604 memcpy(&prob_table[0x1018], slice->segment.segment_probs, in cedrus_vp8_update_probs()
605 sizeof(slice->segment.segment_probs)); in cedrus_vp8_update_probs()
721 if (slice->segment.flags & V4L2_VP8_SEGMENT_FLAG_UPDATE_MAP) in cedrus_vp8_setup()
723 if (!(slice->segment.flags & V4L2_VP8_SEGMENT_FLAG_DELTA_VALUE_MODE)) in cedrus_vp8_setup()
725 if (slice->segment.flags & V4L2_VP8_SEGMENT_FLAG_ENABLED) in cedrus_vp8_setup()
779 reg |= VE_VP8_SEGMENT3(slice->segment.quant_update[3]); in cedrus_vp8_setup()
780 reg |= VE_VP8_SEGMENT2(slice->segment.quant_update[2]); in cedrus_vp8_setup()
781 reg |= VE_VP8_SEGMENT1(slice->segment.quant_update[1]); in cedrus_vp8_setup()
782 reg |= VE_VP8_SEGMENT0(slice->segment.quant_update[0]); in cedrus_vp8_setup()
786 reg |= VE_VP8_SEGMENT3(slice->segment.lf_update[3]); in cedrus_vp8_setup()
[all …]
/linux/Documentation/networking/
H A Dtls-offload.rst110 After TX state is installed, the stack guarantees that the first segment
125 inside the segment.
142 to be possible, the device has to keep a small amount of segment-to-segment
145 * partial headers (if a segment carried only a part of the TLS header)
148 authentication tag has to be written or read from the subsequent segment)
188 corresponding to the segment. Networking stack makes sure decrypted
216 Whenever an out of order segment is transmitted the driver provides
219 segment has to be passed to the device as part of the packet context,
227 (next expected segment is the one after the out of order one), or continue
228 with the previous stream state - assuming that the out of order segment
[all …]
H A Dtcp_ao.rst10 of a TCP segment using a hashing function with a password known to both peers.
118 If the segment is a SYN, then this is the first segment of a new
119 connection. Find the matching MKT for this segment, using the segment's
123 i. If there is no matching MKT, remove TCP-AO from the segment.
124 Proceed with further TCP handling of the segment.
163 1. If the MKT corresponding to the segment’s socket pair and RNextKeyID
165 segment needs to match the MKT’s SendID).
175 by TCP-AO when processing received TCP segments as discussed in the segment
184 2. If the matching MKT corresponding to the segment’s socket pair and
194 Multiple MKTs may match a single outgoing segment, e.g., when MKTs
[all …]
/linux/arch/sh/kernel/
H A Dmachine_kexec.c57 (unsigned int)image->segment[i].mem, in kexec_info()
58 (unsigned int)image->segment[i].mem + in kexec_info()
59 image->segment[i].memsz, in kexec_info()
60 (unsigned int)image->segment[i].memsz); in kexec_info()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ddp.c225 u32 segment; in i40e_ddp_is_pkg_hdr_valid() local
252 for (segment = 0; segment < pkg_hdr->segment_count; ++segment) { in i40e_ddp_is_pkg_hdr_valid()
253 u32 offset = pkg_hdr->segment_offset[segment]; in i40e_ddp_is_pkg_hdr_valid()
258 segment); in i40e_ddp_is_pkg_hdr_valid()
264 segment); in i40e_ddp_is_pkg_hdr_valid()
/linux/Documentation/userspace-api/media/v4l/
H A Dext-ctrls-jpeg.rst92 - Application data segment APP\ :sub:`0`.
94 - Application data segment APP\ :sub:`1`.
96 - Comment segment.
98 - Quantization tables segment.
100 - Huffman tables segment.
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-address.h278 #define CVMX_ADD_SEG32(segment, add) \ argument
279 (((int32_t)segment << 31) | (int32_t)(add))
291 #define CVMX_ADD_SEG(segment, add) ((((uint64_t)segment) << 62) | (add)) argument
/linux/arch/x86/pci/
H A Dpcbios.c97 unsigned short segment; member
138 unsigned short segment; member
141 .segment = __KERNEL_CS,
363 u16 segment; member
380 opt.segment = __KERNEL_DS; in pcibios_get_irq_routing_table()

12345678910>>...12