/linux/drivers/scsi/ |
A D | libiscsi_tcp.c | 96 segment->total_size - segment->total_copied); in iscsi_tcp_segment_init_sg() 113 if (segment->data != NULL || !segment->sg) in iscsi_tcp_segment_map() 143 segment->data = segment->sg_mapped + sg->offset + segment->sg_offset; in iscsi_tcp_segment_map() 198 segment->copied, copied, segment->size, in iscsi_tcp_segment_done() 210 segment->copied + segment->sg_offset + in iscsi_tcp_segment_done() 220 if (segment->copied < segment->size) { in iscsi_tcp_segment_done() 225 segment->total_copied += segment->copied; in iscsi_tcp_segment_done() 252 segment->data = segment->padbuf; in iscsi_tcp_segment_done() 348 memset(segment, 0, sizeof(*segment)); in __iscsi_segment_init() 953 BUG_ON(segment->copied >= segment->size); in iscsi_tcp_recv_skb() [all …]
|
A D | iscsi_tcp.c | 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() 312 struct iscsi_segment *segment = &tcp_sw_conn->out.segment; in iscsi_sw_tcp_xmit() local 333 if (segment->total_copied >= segment->total_size) { in iscsi_sw_tcp_xmit() 334 if (segment->done != NULL) { in iscsi_sw_tcp_xmit() 335 rc = segment->done(tcp_conn, segment); in iscsi_sw_tcp_xmit() 363 struct iscsi_segment *segment = &tcp_sw_conn->out.segment; in iscsi_sw_tcp_xmit_qlen() local [all …]
|
/linux/drivers/remoteproc/ |
A D | remoteproc_coredump.c | 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() 88 segment = kzalloc(sizeof(*segment), GFP_KERNEL); in rproc_coredump_add_custom_segment() 89 if (!segment) in rproc_coredump_add_custom_segment() 92 segment->da = da; in rproc_coredump_add_custom_segment() 93 segment->size = size; in rproc_coredump_add_custom_segment() 142 return segment; in rproc_coredump_find_segment() 158 if (segment->dump) { in rproc_copy_segment() [all …]
|
/linux/fs/romfs/ |
A D | storage.c | 40 size_t segment; in romfs_mtd_strnlen() local 108 size_t segment; in romfs_blk_read() local 119 buf += segment; in romfs_blk_read() 121 pos += segment; in romfs_blk_read() 136 size_t segment; in romfs_blk_strnlen() local 152 pos += segment; in romfs_blk_strnlen() 153 n += segment; in romfs_blk_strnlen() 168 size_t segment; in romfs_blk_strcmp() local 180 size -= segment; in romfs_blk_strcmp() 181 pos += segment; in romfs_blk_strcmp() [all …]
|
/linux/arch/x86/math-emu/ |
A D | get_address.c | 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() 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() 357 addr_modes.override.segment = PREFIX_SS_; in FPU_get_address_16() 362 addr_modes.override.segment = PREFIX_SS_; in FPU_get_address_16() [all …]
|
/linux/arch/arm64/kernel/ |
A D | machine_kexec.c | 49 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() 98 kimage->segment[i].memsz); in kexec_segment_flush() 339 addr < (kexec_crash_image->segment[i].mem + in crash_is_nosave() [all …]
|
/linux/drivers/dma/xilinx/ |
A D | xilinx_dma.c | 643 if (!segment) in xilinx_vdma_alloc_tx_segment() 648 return segment; in xilinx_vdma_alloc_tx_segment() 664 if (!segment) in xilinx_cdma_alloc_tx_segment() 669 return segment; in xilinx_cdma_alloc_tx_segment() 693 if (!segment) in xilinx_axidma_alloc_tx_segment() 696 return segment; in xilinx_axidma_alloc_tx_segment() 765 segment) in xilinx_mcdma_free_tx_segment() 780 dma_pool_free(chan->desc_pool, segment, segment->phys); in xilinx_cdma_free_tx_segment() 791 dma_pool_free(chan->desc_pool, segment, segment->phys); in xilinx_vdma_free_tx_segment() 2031 if (!segment) in xilinx_vdma_dma_prep_interleaved() [all …]
|
/linux/kernel/ |
A D | kexec_core.c | 210 if (image->segment[i].bufsz > image->segment[i].memsz) in sanity_check_segment_list() 793 kbuf = segment->kbuf; in kimage_load_normal_segment() 795 buf = segment->buf; in kimage_load_normal_segment() 796 ubytes = segment->bufsz; in kimage_load_normal_segment() 797 mbytes = segment->memsz; in kimage_load_normal_segment() 798 maddr = segment->mem; in kimage_load_normal_segment() 866 kbuf = segment->kbuf; in kimage_load_crash_segment() 868 buf = segment->buf; in kimage_load_crash_segment() 869 ubytes = segment->bufsz; in kimage_load_crash_segment() 870 mbytes = segment->memsz; in kimage_load_crash_segment() [all …]
|
/linux/net/sunrpc/xprtrdma/ |
A 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() 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() 222 &segment->rs_offset); in pcl_alloc_write() [all …]
|
A D | svc_rdma_recvfrom.c | 591 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() 626 pcl_for_each_segment(segment, chunk) { in svc_rdma_get_inv_rkey() [all …]
|
A D | svc_rdma_rw.c | 712 len = segment->rs_length; in svc_rdma_build_read_segment() 745 segment->rs_handle, DMA_FROM_DEVICE); in svc_rdma_build_read_segment() 773 const struct svc_rdma_segment *segment; in svc_rdma_build_read_chunk() local 777 pcl_for_each_segment(segment, chunk) { in svc_rdma_build_read_chunk() 781 info->ri_totalbytes += segment->rs_length; in svc_rdma_build_read_chunk() 974 const struct svc_rdma_segment *segment; in svc_rdma_read_chunk_range() local 978 pcl_for_each_segment(segment, chunk) { in svc_rdma_read_chunk_range() 981 if (offset > segment->rs_length) { in svc_rdma_read_chunk_range() 982 offset -= segment->rs_length; in svc_rdma_read_chunk_range() 986 dummy.rs_handle = segment->rs_handle; in svc_rdma_read_chunk_range() [all …]
|
/linux/arch/riscv/kernel/ |
A D | machine_kexec.c | 35 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() 68 if (copy_from_user(&fdt, image->segment[i].buf, sizeof(fdt))) in machine_kexec_prepare() 74 internal->fdt_addr = (unsigned long) image->segment[i].mem; in machine_kexec_prepare()
|
/linux/arch/mips/kernel/ |
A D | machine_kexec.c | 46 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/drivers/acpi/ |
A D | pci_mcfg.c | 20 u16 segment; member 30 u16 segment; member 178 static int pci_mcfg_quirk_matches(struct mcfg_fixup *f, u16 segment, in pci_mcfg_quirk_matches() argument 185 f->segment == segment && in pci_mcfg_quirk_matches() 198 u16 segment = root->segment; in pci_mcfg_apply_quirks() local 204 if (pci_mcfg_quirk_matches(f, segment, bus_range)) { in pci_mcfg_apply_quirks() 225 u16 seg = root->segment; in pci_mcfg_lookup() 237 if (e->segment == seg && e->bus_start <= bus_res->start && in pci_mcfg_lookup() 287 e->segment = mptr->pci_segment; in pci_mcfg_parse()
|
A 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/arch/x86/pci/ |
A D | mmconfig-shared.c | 59 if (cfg->segment > new->segment || in list_add_sorted() 60 (cfg->segment == new->segment && in list_add_sorted() 83 new->segment = segment; in pci_mmconfig_alloc() 92 "PCI MMCONFIG %04x [bus %02x-%02x]", segment, start, end); in pci_mmconfig_alloc() 103 new = pci_mmconfig_alloc(segment, start, end, addr); in pci_mmconfig_add() 123 if (cfg->segment == segment && in pci_mmconfig_lookup() 481 cfg->segment, cfg->start_bus, cfg->end_bus); in is_mmconf_reserved() 492 cfg->segment, cfg->start_bus, cfg->end_bus, in is_mmconf_reserved() 646 if (cfg->segment) in __pci_mmcfg_init() 742 cfg->segment, cfg->start_bus, cfg->end_bus); in pci_mmconfig_insert() [all …]
|
/linux/drivers/staging/rts5208/ |
A D | ms.c | 2109 if (!ms_card->segment) 2164 if (!ms_card->segment) 2167 segment = &ms_card->segment[seg_no]; 2184 segment = &ms_card->segment[seg_no]; 2196 segment = &ms_card->segment[seg_no]; 2198 segment->free_table[segment->set_index++] = phy_blk; 2211 segment = &ms_card->segment[seg_no]; 2216 phy_blk = segment->free_table[segment->get_index]; 2217 segment->free_table[segment->get_index++] = 0xFFFF; 2240 segment = &ms_card->segment[seg_no]; [all …]
|
/linux/arch/parisc/kernel/ |
A D | kexec.c | 25 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/include/scsi/ |
A 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/Documentation/ABI/testing/ |
A 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 135 full segment. 147 Show write time of the last segment in 154 Show write time of the last segment in seconds. 193 Show number of blocks in segment. [all …]
|
/linux/drivers/misc/eeprom/ |
A D | at25.c | 217 unsigned segment; in at25_ee_write() local 250 segment = buf_size - (offset % buf_size); in at25_ee_write() 251 if (segment > count) in at25_ee_write() 252 segment = count; in at25_ee_write() 253 memcpy(cp, buf, segment); in at25_ee_write() 255 segment + at25->addrlen + 1); in at25_ee_write() 257 segment, offset, status); in at25_ee_write() 285 segment, offset, in at25_ee_write() 292 off += segment; in at25_ee_write() 293 buf += segment; in at25_ee_write() [all …]
|
/linux/drivers/media/i2c/ |
A D | ad9389b.c | 786 int segment, u8 *buf) in ad9389b_dbg_dump_edid() argument 840 ed.segment = ad9389b_rd(sd, 0xc4); in ad9389b_edid_handler() 983 if ((segment + 1) * 2 <= blocks) in edid_verify_crc() 999 if (segment) in edid_verify_header() 1013 int segment; in ad9389b_check_edid_status() local 1022 segment = ad9389b_rd(sd, 0xc4); in ad9389b_check_edid_status() 1023 if (segment >= EDID_MAX_SEGM) { in ad9389b_check_edid_status() 1031 if (segment == 0) { in ad9389b_check_edid_status() 1036 if (!edid_verify_crc(sd, segment) || in ad9389b_check_edid_status() 1045 state->edid.segments = segment + 1; in ad9389b_check_edid_status() [all …]
|
/linux/drivers/staging/media/sunxi/cedrus/ |
A 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() 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() 789 reg |= VE_VP8_SEGMENT2(slice->segment.lf_update[2]); in cedrus_vp8_setup() 790 reg |= VE_VP8_SEGMENT1(slice->segment.lf_update[1]); in cedrus_vp8_setup() [all …]
|
/linux/Documentation/networking/ |
A D | tls-offload.rst | 141 to be possible device has to keep small amount of segment-to-segment state. 235 Whenever an out of order segment is detected the driver requests 258 the new record will start on a segment boundary (like it does when 269 :alt: reorder of non-header segment 272 Reorder of non-header segment 277 In above case segment 1 is received and decrypted successfully. 294 :alt: reorder of header segment 297 Reorder of segment with a TLS header 300 Device can only detect that segment 4 also contains a TLS header 325 segment boundary. [all …]
|
/linux/arch/ia64/include/asm/ |
A D | pci.h | 16 __u16 segment; /* PCI Segment number */ member 49 int segment; member 57 #define pci_domain_nr(busdev) (PCI_CONTROLLER(busdev)->segment)
|