Home
last modified time | relevance | path

Searched refs:segments (Results 1 – 25 of 175) sorted by relevance

1234567

/linux-6.6.21/kernel/
Dkexec.c24 struct kexec_segment *segments, in kimage_alloc_init() argument
45 memcpy(image->segment, segments, nr_segments * sizeof(*segments)); in kimage_alloc_init()
88 struct kexec_segment *segments, unsigned long flags) in do_kexec_load() argument
125 ret = kimage_alloc_init(&image, entry, nr_segments, segments, flags); in do_kexec_load()
236 struct kexec_segment __user *, segments, unsigned long, flags) in SYSCALL_DEFINE4()
250 ksegments = memdup_array_user(segments, nr_segments, sizeof(ksegments[0])); in SYSCALL_DEFINE4()
263 struct compat_kexec_segment __user *, segments, in COMPAT_SYSCALL_DEFINE4() argument
286 result = copy_from_user(&in, &segments[i], sizeof(in)); in COMPAT_SYSCALL_DEFINE4()
/linux-6.6.21/rust/macros/
Dpaste.rs7 let mut segments = Vec::new(); in concat() localVariable
12 Some(TokenTree::Literal(lit)) => segments.push((lit.to_string(), lit.span())), in concat()
18 segments.push((value, ident.span())); in concat()
25 let (mut value, sp) = segments.pop().expect("expected identifier before modifier"); in concat()
39 segments.push((value, sp)); in concat()
45 let pasted: String = segments.into_iter().map(|x| x.0).collect(); in concat()
/linux-6.6.21/include/uapi/linux/
Drpl.h42 } segments; member
45 #define rpl_segaddr segments.addr
46 #define rpl_segdata segments.data
/linux-6.6.21/arch/arm/mm/
Dproc-arm940.S110 mov r1, #(CACHE_DSEGMENTS - 1) << 4 @ 4 segments
116 bcs 1b @ segments 3 to 0
160 mov r1, #(CACHE_DSEGMENTS - 1) << 4 @ 4 segments
166 bcs 1b @ segments 7 to 0
182 mov r1, #(CACHE_DSEGMENTS - 1) << 4 @ 4 segments
188 bcs 1b @ segments 7 to 0
205 mov r1, #(CACHE_DSEGMENTS - 1) << 4 @ 4 segments
211 bcs 1b @ segments 7 to 0
227 mov r1, #(CACHE_DSEGMENTS - 1) << 4 @ 4 segments
238 bcs 1b @ segments 7 to 0
Dproc-arm1020e.S142 mov r1, #(CACHE_DSEGMENTS - 1) << 5 @ 16 segments
148 bcs 1b @ segments 15 to 0
372 mov r1, #0xF @ 16 segments
383 bge 1b @ segments 15 to 0
/linux-6.6.21/Documentation/powerpc/
Dpci_iov_resource_on_powernv.rst95 * It is divided into 256 segments of equal size. A table in the chip
108 more segments.
120 has 256 segments; however, there is no table for mapping a segment
135 trick, to match to those giant segments.
144 - We cannot "group" segments in HW, so if a device ends up using more
153 PEs" that are used for the remaining M64 segments.
189 equally-sized segments. The finest granularity possible is a 256MB
190 window with 1MB segments. VF BARs that are 1MB or larger could be
196 BARs span several segments.
202 like the M32 window, but the segments can't be individually mapped to
[all …]
/linux-6.6.21/drivers/net/ethernet/sfc/
Def100_tx.c383 unsigned int segments; in __ef100_enqueue_skb() local
392 segments = skb_is_gso(skb) ? skb_shinfo(skb)->gso_segs : 0; in __ef100_enqueue_skb()
393 if (segments == 1) in __ef100_enqueue_skb()
394 segments = 0; /* Don't use TSO/GSO for a single segment. */ in __ef100_enqueue_skb()
395 if (segments && !ef100_tx_can_tso(tx_queue, skb)) { in __ef100_enqueue_skb()
448 rc = efx_tx_map_data(tx_queue, skb, segments); in __ef100_enqueue_skb()
451 ef100_tx_make_descriptors(tx_queue, skb, segments, efv); in __ef100_enqueue_skb()
489 if (segments) { in __ef100_enqueue_skb()
491 tx_queue->tso_packets += segments; in __ef100_enqueue_skb()
492 tx_queue->tx_packets += segments; in __ef100_enqueue_skb()
Dtx.c327 unsigned int segments; in __efx_enqueue_skb() local
332 segments = skb_is_gso(skb) ? skb_shinfo(skb)->gso_segs : 0; in __efx_enqueue_skb()
333 if (segments == 1) in __efx_enqueue_skb()
334 segments = 0; /* Don't use TSO for a single segment. */ in __efx_enqueue_skb()
340 if (segments) { in __efx_enqueue_skb()
379 if (!data_mapped && (efx_tx_map_data(tx_queue, skb, segments))) in __efx_enqueue_skb()
390 if (segments) { in __efx_enqueue_skb()
392 tx_queue->tso_packets += segments; in __efx_enqueue_skb()
393 tx_queue->tx_packets += segments; in __efx_enqueue_skb()
Dtx_common.c454 struct sk_buff *segments, *next; in efx_tx_tso_fallback() local
456 segments = skb_gso_segment(skb, 0); in efx_tx_tso_fallback()
457 if (IS_ERR(segments)) in efx_tx_tso_fallback()
458 return PTR_ERR(segments); in efx_tx_tso_fallback()
462 skb_list_walk_safe(segments, skb, next) { in efx_tx_tso_fallback()
/linux-6.6.21/drivers/net/ethernet/sfc/siena/
Dtx.c145 unsigned int segments; in __efx_siena_enqueue_skb() local
150 segments = skb_is_gso(skb) ? skb_shinfo(skb)->gso_segs : 0; in __efx_siena_enqueue_skb()
151 if (segments == 1) in __efx_siena_enqueue_skb()
152 segments = 0; /* Don't use TSO for a single segment. */ in __efx_siena_enqueue_skb()
158 if (segments) { in __efx_siena_enqueue_skb()
173 if (!data_mapped && (efx_siena_tx_map_data(tx_queue, skb, segments))) in __efx_siena_enqueue_skb()
Dtx_common.c435 struct sk_buff *segments, *next; in efx_siena_tx_tso_fallback() local
437 segments = skb_gso_segment(skb, 0); in efx_siena_tx_tso_fallback()
438 if (IS_ERR(segments)) in efx_siena_tx_tso_fallback()
439 return PTR_ERR(segments); in efx_siena_tx_tso_fallback()
443 skb_list_walk_safe(segments, skb, next) { in efx_siena_tx_tso_fallback()
/linux-6.6.21/block/
Dblk-integrity.c30 unsigned int segments = 0; in blk_rq_count_integrity_sg() local
46 segments++; in blk_rq_count_integrity_sg()
54 return segments; in blk_rq_count_integrity_sg()
73 unsigned int segments = 0; in blk_rq_map_integrity_sg() local
96 segments++; in blk_rq_map_integrity_sg()
106 return segments; in blk_rq_map_integrity_sg()
/linux-6.6.21/Documentation/ABI/testing/
Dsysfs-fs-nilfs2183 What: /sys/fs/nilfs2/<device>/segments/segments_number
187 Show number of segments on a volume.
189 What: /sys/fs/nilfs2/<device>/segments/blocks_per_segment
195 What: /sys/fs/nilfs2/<device>/segments/clean_segments
199 Show count of clean segments.
201 What: /sys/fs/nilfs2/<device>/segments/dirty_segments
205 Show count of dirty segments.
207 What: /sys/fs/nilfs2/<device>/segments/README
211 Describe attributes of /sys/fs/nilfs2/<device>/segments
Dsysfs-driver-jz4780-efuse6 split into segments. The driver supports read only.
7 The segments are:
/linux-6.6.21/drivers/dma/xilinx/
Dxilinx_dma.c371 struct list_head segments; member
647 seg = list_first_entry(&desc->segments, in xilinx_dma_get_metadata_ptr()
839 INIT_LIST_HEAD(&desc->segments); in xilinx_dma_alloc_tx_descriptor()
862 list_for_each_entry_safe(segment, next, &desc->segments, node) { in xilinx_dma_free_tx_descriptor()
868 &desc->segments, node) { in xilinx_dma_free_tx_descriptor()
874 &desc->segments, node) { in xilinx_dma_free_tx_descriptor()
880 &desc->segments, node) { in xilinx_dma_free_tx_descriptor()
990 list_for_each(entry, &desc->segments) { in xilinx_dma_get_residue()
1426 list_for_each_entry(segment, &desc->segments, node) { in xilinx_vdma_start_transfer()
1481 tail_segment = list_last_entry(&tail_desc->segments, in xilinx_cdma_start_transfer()
[all …]
/linux-6.6.21/drivers/char/agp/
Dfrontend.c112 seg = *(client->segments); in agp_find_seg_in_client()
129 if (client->segments != NULL) { in agp_remove_seg_from_client()
130 if (*(client->segments) != NULL) { in agp_remove_seg_from_client()
131 DBG("Freeing %p from client %p", *(client->segments), client); in agp_remove_seg_from_client()
132 kfree(*(client->segments)); in agp_remove_seg_from_client()
134 DBG("Freeing %p from client %p", client->segments, client); in agp_remove_seg_from_client()
135 kfree(client->segments); in agp_remove_seg_from_client()
136 client->segments = NULL; in agp_remove_seg_from_client()
145 prev_seg = client->segments; in agp_add_seg_to_client()
152 client->segments = seg; in agp_add_seg_to_client()
/linux-6.6.21/Documentation/i2c/muxes/
Di2c-mux-gpio.rst10 i2c-mux-gpio is an i2c mux driver providing access to I2C bus segments
34 bus, the number of bus segments to create and the GPIO pins used
37 E.G. something like this for a MUX providing 4 bus segments
/linux-6.6.21/drivers/bus/mhi/host/
Dboot.c318 int segments = DIV_ROUND_UP(alloc_size, seg_size) + 1; in mhi_alloc_bhie_table() local
328 img_info->mhi_buf = kcalloc(segments, sizeof(*img_info->mhi_buf), in mhi_alloc_bhie_table()
335 for (i = 0; i < segments; i++, mhi_buf++) { in mhi_alloc_bhie_table()
339 if (i == segments - 1) in mhi_alloc_bhie_table()
350 img_info->bhi_vec = img_info->mhi_buf[segments - 1].buf; in mhi_alloc_bhie_table()
351 img_info->entries = segments; in mhi_alloc_bhie_table()
/linux-6.6.21/drivers/scsi/mpi3mr/
Dmpi3mr_fw.c484 struct segments *segments = op_reply_q->q_segments; in mpi3mr_get_reply_desc() local
488 segments[reply_ci / op_reply_q->segment_qd].segment; in mpi3mr_get_reply_desc()
1592 struct segments *segments; in mpi3mr_free_op_req_q_segments() local
1594 segments = mrioc->req_qinfo[q_idx].q_segments; in mpi3mr_free_op_req_q_segments()
1595 if (!segments) in mpi3mr_free_op_req_q_segments()
1612 if (!segments[j].segment) in mpi3mr_free_op_req_q_segments()
1615 size, segments[j].segment, segments[j].segment_dma); in mpi3mr_free_op_req_q_segments()
1616 segments[j].segment = NULL; in mpi3mr_free_op_req_q_segments()
1636 struct segments *segments; in mpi3mr_free_op_reply_q_segments() local
1638 segments = mrioc->op_reply_qinfo[q_idx].q_segments; in mpi3mr_free_op_reply_q_segments()
[all …]
/linux-6.6.21/drivers/media/dvb-frontends/
Dmb86a20s.c1344 static u32 interpolate_value(u32 value, const struct linear_segments *segments, in interpolate_value() argument
1351 if (value >= segments[0].x) in interpolate_value()
1352 return segments[0].y; in interpolate_value()
1353 if (value < segments[len-1].x) in interpolate_value()
1354 return segments[len-1].y; in interpolate_value()
1358 if (value == segments[i].x) in interpolate_value()
1359 return segments[i].y; in interpolate_value()
1360 if (value > segments[i].x) in interpolate_value()
1365 dy = segments[i].y - segments[i - 1].y; in interpolate_value()
1366 dx = segments[i - 1].x - segments[i].x; in interpolate_value()
[all …]
/linux-6.6.21/drivers/block/xen-blkback/
Dblkback.c707 struct grant_page **pages = req->segments; in xen_blkbk_unmap_and_respond()
906 rc = xen_blkbk_map(pending_req->ring, pending_req->segments, in xen_blkbk_map_seg()
921 struct blkif_request_segment *segments = NULL; in xen_blkbk_parse_indirect() local
939 if (segments) in xen_blkbk_parse_indirect()
940 kunmap_atomic(segments); in xen_blkbk_parse_indirect()
941 segments = kmap_atomic(pages[n/SEGS_PER_INDIRECT_FRAME]->page); in xen_blkbk_parse_indirect()
945 pending_req->segments[n]->gref = segments[i].gref; in xen_blkbk_parse_indirect()
947 first_sect = READ_ONCE(segments[i].first_sect); in xen_blkbk_parse_indirect()
948 last_sect = READ_ONCE(segments[i].last_sect); in xen_blkbk_parse_indirect()
960 if (segments) in xen_blkbk_parse_indirect()
[all …]
/linux-6.6.21/drivers/gpu/drm/arm/
Dmalidp_crtc.c99 } segments[MALIDP_COEFFTAB_NUM_COEFFS] = { variable
136 delta_in = segments[i].end - segments[i].start; in malidp_generate_gamma_table()
138 out_start = drm_color_lut_extract(lut[segments[i].start].green, in malidp_generate_gamma_table()
140 out_end = drm_color_lut_extract(lut[segments[i].end].green, 12); in malidp_generate_gamma_table()
/linux-6.6.21/arch/powerpc/platforms/cell/
Diommu.c303 unsigned long segments, stab_size; in cell_iommu_setup_stab() local
305 segments = max(dbase + dsize, fbase + fsize) >> IO_SEGMENT_SHIFT; in cell_iommu_setup_stab()
308 __func__, iommu->nid, segments); in cell_iommu_setup_stab()
311 stab_size = segments * sizeof(unsigned long); in cell_iommu_setup_stab()
324 unsigned long reg, segments, pages_per_segment, ptab_size, in cell_iommu_alloc_ptab() local
328 segments = size >> IO_SEGMENT_SHIFT; in cell_iommu_alloc_ptab()
334 ptab_size = segments * pages_per_segment * sizeof(unsigned long); in cell_iommu_alloc_ptab()
365 for (i = start_seg; i < (start_seg + segments); i++) { in cell_iommu_alloc_ptab()
/linux-6.6.21/Documentation/filesystems/
Dnilfs2.rst116 segments. This ioctl is used in lssu,
121 segments. This ioctl is used by
123 cleaning operation of segments and reduce
149 NILFS_IOCTL_SET_ALLOC_RANGE Define lower limit of segments in bytes and
150 upper limit of segments in bytes. This ioctl
191 A nilfs2 volume is equally divided into a number of segments except
240 3) Segment usage file (sufile) -- Stores allocation state of segments
/linux-6.6.21/Documentation/input/devices/
Dyealink.rst73 '8' : Generic 7 segment digit with individual addressable segments
75 Reduced capability 7 segment digit, when segments are hard wired together.
76 '1' : 2 segments digit only able to produce a 1.
101 map_seg7 Read/Write, the 7 segments char set, common for all

1234567