/linux-6.12.1/drivers/scsi/ |
D | libiscsi_tcp.c | 64 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 …]
|
D | iscsi_tcp.c | 150 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-6.12.1/drivers/remoteproc/ |
D | remoteproc_coredump.c | 50 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-6.12.1/fs/romfs/ |
D | storage.c | 40 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-6.12.1/arch/x86/math-emu/ |
D | get_address.c | 123 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-6.12.1/kernel/ |
D | kexec_core.c | 131 mstart = image->segment[i].mem; in sanity_check_segment_list() 132 mend = mstart + image->segment[i].memsz; 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[i].memsz) > nr_pages / 2) in sanity_check_segment_list() 182 total_pages += PAGE_COUNT(image->segment[i].memsz); in sanity_check_segment_list() 203 mstart = image->segment[i].mem; in sanity_check_segment_list() [all …]
|
/linux-6.12.1/net/sunrpc/xprtrdma/ |
D | svc_rdma_pcl.c | 72 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 …]
|
D | svc_rdma_recvfrom.c | 601 struct svc_rdma_segment *segment; in svc_rdma_get_inv_rkey() local 612 pcl_for_each_segment(segment, chunk) { in svc_rdma_get_inv_rkey() 614 inv_rkey = segment->rs_handle; in svc_rdma_get_inv_rkey() 615 else if (inv_rkey != segment->rs_handle) in svc_rdma_get_inv_rkey() 620 pcl_for_each_segment(segment, chunk) { in svc_rdma_get_inv_rkey() 622 inv_rkey = segment->rs_handle; in svc_rdma_get_inv_rkey() 623 else if (inv_rkey != segment->rs_handle) in svc_rdma_get_inv_rkey() 628 pcl_for_each_segment(segment, chunk) { in svc_rdma_get_inv_rkey() 630 inv_rkey = segment->rs_handle; in svc_rdma_get_inv_rkey() 631 else if (inv_rkey != segment->rs_handle) in svc_rdma_get_inv_rkey() [all …]
|
/linux-6.12.1/drivers/dma/xilinx/ |
D | xilinx_dma.c | 671 struct xilinx_vdma_tx_segment *segment; in xilinx_vdma_alloc_tx_segment() local 674 segment = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &phys); in xilinx_vdma_alloc_tx_segment() 675 if (!segment) in xilinx_vdma_alloc_tx_segment() 678 segment->phys = phys; in xilinx_vdma_alloc_tx_segment() 680 return segment; in xilinx_vdma_alloc_tx_segment() 692 struct xilinx_cdma_tx_segment *segment; in xilinx_cdma_alloc_tx_segment() local 695 segment = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &phys); in xilinx_cdma_alloc_tx_segment() 696 if (!segment) in xilinx_cdma_alloc_tx_segment() 699 segment->phys = phys; in xilinx_cdma_alloc_tx_segment() 701 return segment; in xilinx_cdma_alloc_tx_segment() [all …]
|
/linux-6.12.1/drivers/misc/eeprom/ |
D | at25.c | 85 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-6.12.1/drivers/media/test-drivers/visl/ |
D | visl-trace-vp8.h | 77 __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-6.12.1/arch/arm64/kernel/ |
D | machine_kexec.c | 77 kimage->segment[i].mem, in kexec_segment_flush() 78 kimage->segment[i].mem + kimage->segment[i].memsz, in kexec_segment_flush() 79 kimage->segment[i].memsz, in kexec_segment_flush() 80 kimage->segment[i].memsz / PAGE_SIZE); in kexec_segment_flush() 83 (unsigned long)phys_to_virt(kimage->segment[i].mem), in kexec_segment_flush() 84 (unsigned long)phys_to_virt(kimage->segment[i].mem) + in kexec_segment_flush() 85 kimage->segment[i].memsz); in kexec_segment_flush() 312 if (addr >= kexec_crash_image->segment[i].mem && in crash_is_nosave() 313 addr < (kexec_crash_image->segment[i].mem + in crash_is_nosave() 314 kexec_crash_image->segment[i].memsz)) in crash_is_nosave()
|
/linux-6.12.1/arch/mips/kernel/ |
D | machine_kexec.c | 47 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-6.12.1/Documentation/core-api/ |
D | folio_queue.rst | 24 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-6.12.1/drivers/acpi/ |
D | pci_mcfg.c | 20 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()
|
D | pci_irq.c | 81 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-6.12.1/drivers/staging/rts5208/ |
D | ms.c | 2109 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 …]
|
/linux-6.12.1/arch/x86/pci/ |
D | mmconfig-shared.c | 60 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 ECAM %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 &new->res, (unsigned long)addr, segment, start, end); 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-6.12.1/arch/parisc/kernel/ |
D | kexec.c | 27 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-6.12.1/include/scsi/ |
D | libiscsi_tcp.h | 47 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-6.12.1/arch/loongarch/kernel/ |
D | machine_kexec.c | 54 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-6.12.1/Documentation/ABI/testing/ |
D | sysfs-fs-nilfs2 | 97 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-6.12.1/drivers/staging/media/sunxi/cedrus/ |
D | cedrus_vp8.c | 604 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-6.12.1/arch/riscv/kernel/ |
D | machine_kexec.c | 41 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-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_buddy.c | 74 unsigned int *segment, in dr_buddy_find_free_seg() argument 98 *segment = seg; in dr_buddy_find_free_seg() 121 unsigned int *segment) in mlx5dr_buddy_alloc_mem() argument 145 *segment = seg; in mlx5dr_buddy_alloc_mem()
|