Home
last modified time | relevance | path

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

12345678910>>...14

/linux-5.19.10/drivers/scsi/
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 …]
Discsi_tcp.c153 iscsi_tcp_segment_unmap(&tcp_conn->in.segment); in iscsi_sw_tcp_data_ready()
260 struct iscsi_segment *segment) in iscsi_sw_tcp_xmit_segment() argument
267 while (!iscsi_tcp_segment_done(tcp_conn, segment, 0, r)) { in iscsi_sw_tcp_xmit_segment()
273 offset = segment->copied; in iscsi_sw_tcp_xmit_segment()
274 copy = segment->size - offset; in iscsi_sw_tcp_xmit_segment()
276 if (segment->total_copied + segment->size < segment->total_size) in iscsi_sw_tcp_xmit_segment()
280 if (!segment->data) { in iscsi_sw_tcp_xmit_segment()
281 sg = segment->sg; in iscsi_sw_tcp_xmit_segment()
282 offset += segment->sg_offset + sg->offset; in iscsi_sw_tcp_xmit_segment()
288 .iov_base = segment->data + offset, in iscsi_sw_tcp_xmit_segment()
[all …]
/linux-5.19.10/drivers/remoteproc/
Dremoteproc_coredump.c49 struct rproc_dump_segment *segment; in rproc_coredump_add_segment() local
51 segment = kzalloc(sizeof(*segment), GFP_KERNEL); in rproc_coredump_add_segment()
52 if (!segment) in rproc_coredump_add_segment()
55 segment->da = da; in rproc_coredump_add_segment()
56 segment->size = size; in rproc_coredump_add_segment()
58 list_add_tail(&segment->node, &rproc->dump_segments); in rproc_coredump_add_segment()
81 struct rproc_dump_segment *segment, in rproc_coredump_add_custom_segment() argument
86 struct rproc_dump_segment *segment; in rproc_coredump_add_custom_segment() local
88 segment = kzalloc(sizeof(*segment), GFP_KERNEL); in rproc_coredump_add_custom_segment()
89 if (!segment) in rproc_coredump_add_custom_segment()
[all …]
/linux-5.19.10/fs/romfs/
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-5.19.10/arch/x86/math-emu/
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-5.19.10/arch/arm64/kernel/
Dmachine_kexec.c49 kimage->segment[i].mem, in _kexec_image_info()
50 kimage->segment[i].mem + kimage->segment[i].memsz, in _kexec_image_info()
51 kimage->segment[i].memsz, in _kexec_image_info()
52 kimage->segment[i].memsz / PAGE_SIZE); in _kexec_image_info()
90 kimage->segment[i].mem, in kexec_segment_flush()
91 kimage->segment[i].mem + kimage->segment[i].memsz, in kexec_segment_flush()
92 kimage->segment[i].memsz, in kexec_segment_flush()
93 kimage->segment[i].memsz / PAGE_SIZE); in kexec_segment_flush()
96 (unsigned long)phys_to_virt(kimage->segment[i].mem), in kexec_segment_flush()
97 (unsigned long)phys_to_virt(kimage->segment[i].mem) + in kexec_segment_flush()
[all …]
/linux-5.19.10/arch/riscv/kernel/
Dmachine_kexec.c35 image->segment[i].mem, in kexec_image_info()
36 image->segment[i].mem + image->segment[i].memsz); in kexec_image_info()
38 (unsigned long) image->segment[i].memsz, in kexec_image_info()
39 (unsigned long) image->segment[i].memsz / PAGE_SIZE); in kexec_image_info()
65 if (image->segment[i].memsz <= sizeof(fdt)) in machine_kexec_prepare()
69 memcpy(&fdt, image->segment[i].buf, sizeof(fdt)); in machine_kexec_prepare()
70 else if (copy_from_user(&fdt, image->segment[i].buf, sizeof(fdt))) in machine_kexec_prepare()
76 internal->fdt_addr = (unsigned long) image->segment[i].mem; in machine_kexec_prepare()
/linux-5.19.10/drivers/dma/xilinx/
Dxilinx_dma.c639 struct xilinx_vdma_tx_segment *segment; in xilinx_vdma_alloc_tx_segment() local
642 segment = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &phys); in xilinx_vdma_alloc_tx_segment()
643 if (!segment) in xilinx_vdma_alloc_tx_segment()
646 segment->phys = phys; in xilinx_vdma_alloc_tx_segment()
648 return segment; in xilinx_vdma_alloc_tx_segment()
660 struct xilinx_cdma_tx_segment *segment; in xilinx_cdma_alloc_tx_segment() local
663 segment = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &phys); in xilinx_cdma_alloc_tx_segment()
664 if (!segment) in xilinx_cdma_alloc_tx_segment()
667 segment->phys = phys; in xilinx_cdma_alloc_tx_segment()
669 return segment; in xilinx_cdma_alloc_tx_segment()
[all …]
/linux-5.19.10/kernel/
Dkexec_core.c172 mstart = image->segment[i].mem; in sanity_check_segment_list()
173 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
191 mstart = image->segment[i].mem; in sanity_check_segment_list()
192 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
196 pstart = image->segment[j].mem; in sanity_check_segment_list()
197 pend = pstart + image->segment[j].memsz; in sanity_check_segment_list()
210 if (image->segment[i].bufsz > image->segment[i].memsz) in sanity_check_segment_list()
220 if (PAGE_COUNT(image->segment[i].memsz) > nr_pages / 2) in sanity_check_segment_list()
223 total_pages += PAGE_COUNT(image->segment[i].memsz); in sanity_check_segment_list()
243 mstart = image->segment[i].mem; in sanity_check_segment_list()
[all …]
/linux-5.19.10/net/sunrpc/xprtrdma/
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 …]
Dsvc_rdma_recvfrom.c591 struct svc_rdma_segment *segment; in svc_rdma_get_inv_rkey() local
602 pcl_for_each_segment(segment, chunk) { in svc_rdma_get_inv_rkey()
604 inv_rkey = segment->rs_handle; in svc_rdma_get_inv_rkey()
605 else if (inv_rkey != segment->rs_handle) in svc_rdma_get_inv_rkey()
610 pcl_for_each_segment(segment, chunk) { in svc_rdma_get_inv_rkey()
612 inv_rkey = segment->rs_handle; in svc_rdma_get_inv_rkey()
613 else if (inv_rkey != segment->rs_handle) in svc_rdma_get_inv_rkey()
618 pcl_for_each_segment(segment, chunk) { in svc_rdma_get_inv_rkey()
620 inv_rkey = segment->rs_handle; in svc_rdma_get_inv_rkey()
621 else if (inv_rkey != segment->rs_handle) in svc_rdma_get_inv_rkey()
[all …]
/linux-5.19.10/drivers/misc/eeprom/
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 …]
/linux-5.19.10/arch/mips/kernel/
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()
/linux-5.19.10/drivers/acpi/
Dpci_mcfg.c20 u16 segment; member
30 u16 segment; member
181 static int pci_mcfg_quirk_matches(struct mcfg_fixup *f, u16 segment, in pci_mcfg_quirk_matches() argument
188 f->segment == segment && in pci_mcfg_quirk_matches()
201 u16 segment = root->segment; in pci_mcfg_apply_quirks() local
207 if (pci_mcfg_quirk_matches(f, segment, bus_range)) { in pci_mcfg_apply_quirks()
228 u16 seg = root->segment; in pci_mcfg_lookup()
240 if (e->segment == seg && e->bus_start <= bus_res->start && in pci_mcfg_lookup()
290 e->segment = mptr->pci_segment; in pci_mcfg_parse()
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-5.19.10/arch/x86/pci/
Dmmconfig-shared.c59 if (cfg->segment > new->segment || in list_add_sorted()
60 (cfg->segment == new->segment && in list_add_sorted()
69 static struct pci_mmcfg_region *pci_mmconfig_alloc(int segment, int start, in pci_mmconfig_alloc() argument
83 new->segment = segment; in pci_mmconfig_alloc()
92 "PCI MMCONFIG %04x [bus %02x-%02x]", segment, start, end); in pci_mmconfig_alloc()
98 struct pci_mmcfg_region *__init pci_mmconfig_add(int segment, int start, in pci_mmconfig_add() argument
103 new = pci_mmconfig_alloc(segment, start, end, addr); in pci_mmconfig_add()
112 segment, start, end, &new->res, (unsigned long)addr); in pci_mmconfig_add()
118 struct pci_mmcfg_region *pci_mmconfig_lookup(int segment, int bus) in pci_mmconfig_lookup() argument
123 if (cfg->segment == segment && in pci_mmconfig_lookup()
[all …]
/linux-5.19.10/drivers/staging/rts5208/
Dms.c2107 ms_card->segment = vzalloc(size);
2108 if (!ms_card->segment)
2133 block_no = ms_card->segment[seg_no].disable_count++;
2134 ms_card->segment[seg_no].defect_list[block_no] = defect_block;
2138 ms_card->segment[i].build_flag = 0;
2139 ms_card->segment[i].l2p_table = NULL;
2140 ms_card->segment[i].free_table = NULL;
2141 ms_card->segment[i].get_index = 0;
2142 ms_card->segment[i].set_index = 0;
2143 ms_card->segment[i].unused_blk_cnt = 0;
[all …]
/linux-5.19.10/arch/parisc/kernel/
Dkexec.c25 kimage->segment[n].mem, in kexec_show_segment_info()
26 kimage->segment[n].mem + kimage->segment[n].memsz, in kexec_show_segment_info()
27 (unsigned long)kimage->segment[n].memsz, in kexec_show_segment_info()
28 (unsigned long)kimage->segment[n].memsz / PAGE_SIZE); in kexec_show_segment_info()
/linux-5.19.10/include/scsi/
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-5.19.10/Documentation/ABI/testing/
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-5.19.10/drivers/media/i2c/
Dad9389b.c786 int segment, u8 *buf) in ad9389b_dbg_dump_edid() argument
793 v4l2_dbg(lvl, debug, sd, "edid segment %d\n", segment); in ad9389b_dbg_dump_edid()
840 ed.segment = ad9389b_rd(sd, 0xc4); in ad9389b_edid_handler()
976 static bool edid_verify_crc(struct v4l2_subdev *sd, u32 segment) in edid_verify_crc() argument
982 if (edid_block_verify_crc(&data[segment * 256])) { in edid_verify_crc()
983 if ((segment + 1) * 2 <= blocks) in edid_verify_crc()
984 return edid_block_verify_crc(&data[segment * 256 + 128]); in edid_verify_crc()
990 static bool edid_verify_header(struct v4l2_subdev *sd, u32 segment) in edid_verify_header() argument
999 if (segment) in edid_verify_header()
1013 int segment; in ad9389b_check_edid_status() local
[all …]
/linux-5.19.10/drivers/staging/media/sunxi/cedrus/
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()
723 if (slice->segment.flags & V4L2_VP8_SEGMENT_FLAG_UPDATE_MAP) in cedrus_vp8_setup()
725 if (!(slice->segment.flags & V4L2_VP8_SEGMENT_FLAG_DELTA_VALUE_MODE)) in cedrus_vp8_setup()
727 if (slice->segment.flags & V4L2_VP8_SEGMENT_FLAG_ENABLED) in cedrus_vp8_setup()
781 reg |= VE_VP8_SEGMENT3(slice->segment.quant_update[3]); in cedrus_vp8_setup()
782 reg |= VE_VP8_SEGMENT2(slice->segment.quant_update[2]); in cedrus_vp8_setup()
783 reg |= VE_VP8_SEGMENT1(slice->segment.quant_update[1]); in cedrus_vp8_setup()
784 reg |= VE_VP8_SEGMENT0(slice->segment.quant_update[0]); in cedrus_vp8_setup()
788 reg |= VE_VP8_SEGMENT3(slice->segment.lf_update[3]); in cedrus_vp8_setup()
[all …]
/linux-5.19.10/arch/ia64/include/asm/
Dpci.h16 __u16 segment; /* PCI Segment number */ member
49 int segment; member
57 #define pci_domain_nr(busdev) (PCI_CONTROLLER(busdev)->segment)
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_buddy.c76 unsigned int *segment, in dr_buddy_find_free_seg() argument
100 *segment = seg; in dr_buddy_find_free_seg()
123 unsigned int *segment) in mlx5dr_buddy_alloc_mem() argument
147 *segment = seg; in mlx5dr_buddy_alloc_mem()
/linux-5.19.10/arch/sh/kernel/
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()

12345678910>>...14