Home
last modified time | relevance | path

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

123456789

/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 …]
/linux/drivers/remoteproc/
H A Dremoteproc_coredump.c50 struct rproc_dump_segment *segment; in rproc_coredump_add_segment() local
52 segment = kzalloc_obj(*segment); 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_obj(*segment); 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/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.c30 * Each WR chain handles only one R_key. Each RPC-over-RDMA segment
32 * up to one segment at a time.
749 * svc_rdma_build_read_segment - Build RDMA Read WQEs to pull one RDMA segment in svc_rdma_build_read_segment() argument
752 * @segment: co-ordinates of remote memory to be read in svc_rdma_build_read_segment()
762 const struct svc_rdma_segment *segment) in svc_rdma_build_read_segment()
770 len = segment->rs_length; in svc_rdma_build_read_segment()
801 ret = svc_rdma_rw_ctx_init(rdma, ctxt, segment->rs_offset, in svc_rdma_build_read_segment()
802 segment->rs_handle, segment->rs_length, in svc_rdma_build_read_segment()
833 const struct svc_rdma_segment *segment;
820 const struct svc_rdma_segment *segment; svc_rdma_build_read_chunk() local
983 const struct svc_rdma_segment *segment; svc_rdma_read_chunk_range() local
[all...]
/linux/drivers/dma/xilinx/
H A Dxilinx_dma.c673 struct xilinx_vdma_tx_segment *segment; in xilinx_vdma_alloc_tx_segment() local
676 segment = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &phys); in xilinx_vdma_alloc_tx_segment()
677 if (!segment) in xilinx_vdma_alloc_tx_segment()
680 segment->phys = phys; in xilinx_vdma_alloc_tx_segment()
682 return segment; in xilinx_vdma_alloc_tx_segment()
694 struct xilinx_cdma_tx_segment *segment; in xilinx_cdma_alloc_tx_segment() local
697 segment = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &phys); in xilinx_cdma_alloc_tx_segment()
698 if (!segment) in xilinx_cdma_alloc_tx_segment()
701 segment->phys = phys; in xilinx_cdma_alloc_tx_segment()
703 return segment; in xilinx_cdma_alloc_tx_segment()
[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/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.c82 unsigned int segment; member
120 entry->id.segment == quirk->segment && in do_prt_fixups()
129 entry->id.segment, entry->id.bus, in do_prt_fixups()
141 int segment = pci_domain_nr(dev->bus); in acpi_pci_irq_check_entry() local
159 entry->id.segment = segment; in acpi_pci_irq_check_entry()
192 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/include/scsi/
H A Dlibiscsi_tcp.h46 struct iscsi_segment segment; member
95 struct iscsi_segment *segment, int recv,
97 extern void iscsi_tcp_segment_unmap(struct iscsi_segment *segment);
99 extern void iscsi_segment_init_linear(struct iscsi_segment *segment,
103 iscsi_segment_seek_sg(struct iscsi_segment *segment,
/linux/arch/x86/pci/
H A Dmmconfig-shared.c61 if (cfg->segment > new->segment || in list_add_sorted()
62 (cfg->segment == new->segment && in list_add_sorted()
71 static struct pci_mmcfg_region *pci_mmconfig_alloc(int segment, int start, in pci_mmconfig_alloc() argument
85 new->segment = segment; in pci_mmconfig_alloc()
94 "PCI ECAM %04x [bus %02x-%02x]", segment, start, end); in pci_mmconfig_alloc()
100 struct pci_mmcfg_region *__init pci_mmconfig_add(int segment, int start, in pci_mmconfig_add() argument
105 new = pci_mmconfig_alloc(segment, start, end, addr); in pci_mmconfig_add()
114 &new->res, (unsigned long)addr, segment, start, end); 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 …]
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()
/linux/rust/syn/
H A Dpath.rs26 fn from(segment: T) -> Self { in from()
31 path.segments.push_value(segment.into()); in from()
341 let segment = ty.path.segments.pop().unwrap().into_value(); in parse() localVariable
342 let ident = segment.ident; in parse()
343 let generics = match segment.arguments { in parse()
367 let segment = ty.path.segments.pop().unwrap().into_value(); in parse() localVariable
369 ident: segment.ident, in parse()
370 generics: match segment.arguments { in parse()
644 .all(|segment| segment.arguments.is_none()) in is_mod_style()
740 for segment in path.segments.pairs() { in print_path()
[all …]
/linux/arch/riscv/kernel/
H A Dmachine_kexec.c41 if (image->segment[i].memsz <= sizeof(fdt)) in machine_kexec_prepare()
45 memcpy(&fdt, image->segment[i].buf, sizeof(fdt)); in machine_kexec_prepare()
46 else if (copy_from_user(&fdt, image->segment[i].buf, sizeof(fdt))) in machine_kexec_prepare()
52 internal->fdt_addr = (unsigned long) image->segment[i].mem; in machine_kexec_prepare()
/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/drivers/md/dm-pcache/
H A Dcache_segment.c11 u32 seg_id = cache_seg->segment.seg_id; in get_seg_info_addr()
42 u32 seg_id = cache_seg->segment.seg_id; in cache_seg_info_load()
68 cache_seg->segment.seg_id, ret); in cache_seg_info_load()
188 struct pcache_segment *segment = &cache_seg->segment; in cache_seg_init() local
202 pcache_segment_init(cache_dev, segment, &seg_options); in cache_seg_init()
217 memcpy_flushcache(segment->data, &pcache_empty_kset, sizeof(struct pcache_cache_kset_onmedia)); in cache_seg_init()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_buddy.c70 unsigned int *segment, in dr_buddy_find_free_seg() argument
94 *segment = seg; in dr_buddy_find_free_seg()
117 unsigned int *segment) in mlx5dr_buddy_alloc_mem() argument
141 *segment = seg; in mlx5dr_buddy_alloc_mem()
/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/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/Documentation/userspace-api/media/v4l/
H A Dext-ctrls-jpeg.rst93 - Application data segment APP\ :sub:`0`.
95 - Application data segment APP\ :sub:`1`.
97 - Comment segment.
99 - Quantization tables segment.
101 - Huffman tables segment.
/linux/Documentation/i2c/muxes/
H A Di2c-mux-gpio.rst15 ---------- ---------- Bus segment 1 - - - - -
18 | | | | Bus segment 2 | |
21 | | | | Bus segment M
25 SCL/SDA of the master I2C bus is multiplexed to bus segment 1..M

123456789