Home
last modified time | relevance | path

Searched refs:slice (Results 1 – 25 of 105) sorted by relevance

12345

/linux-6.1.9/drivers/staging/media/sunxi/cedrus/
Dcedrus_vp8.c526 const struct v4l2_ctrl_vp8_frame *slice) in cedrus_read_header() argument
530 if (V4L2_VP8_FRAME_IS_KEY_FRAME(slice)) { in cedrus_read_header()
554 if (!V4L2_VP8_FRAME_IS_KEY_FRAME(slice)) in cedrus_read_header()
559 if (!V4L2_VP8_FRAME_IS_KEY_FRAME(slice)) in cedrus_read_header()
569 if (!V4L2_VP8_FRAME_IS_KEY_FRAME(slice)) { in cedrus_read_header()
594 static void cedrus_vp8_update_probs(const struct v4l2_ctrl_vp8_frame *slice, in cedrus_vp8_update_probs() argument
599 memcpy(&prob_table[0x1008], slice->entropy.y_mode_probs, in cedrus_vp8_update_probs()
600 sizeof(slice->entropy.y_mode_probs)); in cedrus_vp8_update_probs()
601 memcpy(&prob_table[0x1010], slice->entropy.uv_mode_probs, in cedrus_vp8_update_probs()
602 sizeof(slice->entropy.uv_mode_probs)); in cedrus_vp8_update_probs()
[all …]
Dcedrus_h264.c217 const struct v4l2_ctrl_h264_slice_params *slice = run->h264.slice_params; in cedrus_write_ref_list0() local
220 slice->ref_pic_list0, in cedrus_write_ref_list0()
221 slice->num_ref_idx_l0_active_minus1 + 1, in cedrus_write_ref_list0()
228 const struct v4l2_ctrl_h264_slice_params *slice = run->h264.slice_params; in cedrus_write_ref_list1() local
231 slice->ref_pic_list1, in cedrus_write_ref_list1()
232 slice->num_ref_idx_l1_active_minus1 + 1, in cedrus_write_ref_list1()
325 const struct v4l2_ctrl_h264_slice_params *slice = run->h264.slice_params; in cedrus_set_params() local
369 cedrus_skip_bits(dev, slice->header_bit_size); in cedrus_set_params()
371 if (V4L2_H264_CTRL_PRED_WEIGHTS_REQUIRED(pps, slice)) in cedrus_set_params()
374 if ((slice->slice_type == V4L2_H264_SLICE_TYPE_P) || in cedrus_set_params()
[all …]
/linux-6.1.9/sound/pci/au88x0/
Dau88x0_a3d.c26 a3d_addrA(a->slice, a->source, A3D_A_HrtfTrackTC), HrtfTrack); in a3dsrc_SetTimeConsts()
28 a3d_addrA(a->slice, a->source, A3D_A_ITDTrackTC), ItdTrack); in a3dsrc_SetTimeConsts()
30 a3d_addrA(a->slice, a->source, A3D_A_GainTrackTC), GTrack); in a3dsrc_SetTimeConsts()
32 a3d_addrA(a->slice, a->source, A3D_A_CoeffTrackTC), CTrack); in a3dsrc_SetTimeConsts()
52 a3d_addrB(a->slice, a->source, A3D_B_A21Target), in a3dsrc_SetAtmosTarget()
55 a3d_addrB(a->slice, a->source, A3D_B_B10Target), in a3dsrc_SetAtmosTarget()
58 a3d_addrB(a->slice, a->source, A3D_B_B2Target), c); in a3dsrc_SetAtmosTarget()
67 a3d_addrB(a->slice, a->source, A3D_B_A12Current), in a3dsrc_SetAtmosCurrent()
70 a3d_addrB(a->slice, a->source, A3D_B_B01Current), in a3dsrc_SetAtmosCurrent()
73 a3d_addrB(a->slice, a->source, A3D_B_B2Current), c); in a3dsrc_SetAtmosCurrent()
[all …]
Dau88x0_a3d.h38 unsigned int slice; /* this_08 */ member
106 #define a3d_addrA(slice,source,reg) (((slice)<<0xd)+((source)*0x3A4)+(reg)) argument
107 #define a3d_addrB(slice,source,reg) (((slice)<<0xd)+((source)*0x2C8)+(reg)) argument
108 #define a3d_addrS(slice,reg) (((slice)<<0xd)+(reg)) argument
/linux-6.1.9/drivers/misc/eeprom/
Dmax6875.c54 static void max6875_update_slice(struct i2c_client *client, int slice) in max6875_update_slice() argument
60 if (slice >= USER_EEPROM_SLICES) in max6875_update_slice()
65 buf = &data->data[slice << SLICE_BITS]; in max6875_update_slice()
67 if (!(data->valid & (1 << slice)) || in max6875_update_slice()
68 time_after(jiffies, data->last_updated[slice])) { in max6875_update_slice()
70 dev_dbg(&client->dev, "Starting update of slice %u\n", slice); in max6875_update_slice()
72 data->valid &= ~(1 << slice); in max6875_update_slice()
74 addr = USER_EEPROM_BASE + (slice << SLICE_BITS); in max6875_update_slice()
99 data->last_updated[slice] = jiffies; in max6875_update_slice()
100 data->valid |= (1 << slice); in max6875_update_slice()
[all …]
Deeprom.c42 static void eeprom_update_client(struct i2c_client *client, u8 slice) in eeprom_update_client() argument
49 if (!(data->valid & (1 << slice)) || in eeprom_update_client()
50 time_after(jiffies, data->last_updated[slice] + 300 * HZ)) { in eeprom_update_client()
51 dev_dbg(&client->dev, "Starting eeprom update, slice %u\n", slice); in eeprom_update_client()
54 for (i = slice << 5; i < (slice + 1) << 5; i += 32) in eeprom_update_client()
60 for (i = slice << 5; i < (slice + 1) << 5; i += 2) { in eeprom_update_client()
68 data->last_updated[slice] = jiffies; in eeprom_update_client()
69 data->valid |= (1 << slice); in eeprom_update_client()
81 u8 slice; in eeprom_read() local
84 for (slice = off >> 5; slice <= (off + count - 1) >> 5; slice++) in eeprom_read()
[all …]
/linux-6.1.9/arch/mips/sgi-ip27/
Dip27-nmi.c37 void install_cpu_nmi_handler(int slice) in install_cpu_nmi_handler() argument
41 nmi_addr = (nmi_t *)NMI_ADDR(get_nasid(), slice); in install_cpu_nmi_handler()
56 void nmi_cpu_eframe_save(nasid_t nasid, int slice) in nmi_cpu_eframe_save() argument
64 slice * IP27_NMI_KREGS_CPU_SIZE); in nmi_cpu_eframe_save()
66 pr_emerg("NMI nasid %d: slice %d\n", nasid, slice); in nmi_cpu_eframe_save()
132 void nmi_dump_hub_irq(nasid_t nasid, int slice) in nmi_dump_hub_irq() argument
136 if (slice == 0) { /* Slice A */ in nmi_dump_hub_irq()
158 int slice; in nmi_node_eframe_save() local
164 for (slice = 0; slice < NODE_NUM_CPUS(slice); slice++) { in nmi_node_eframe_save()
165 nmi_cpu_eframe_save(nasid, slice); in nmi_node_eframe_save()
[all …]
Dip27-timer.c33 int slice = cputoslice(cpu); in rt_next_event() local
38 LOCAL_HUB_S(PI_RT_COMPARE_A + PI_COUNT_OFFSET * slice, cnt); in rt_next_event()
50 int slice = cputoslice(cpu); in hub_rt_counter_handler() local
55 LOCAL_HUB_S(PI_RT_PEND_A + PI_COUNT_OFFSET * slice, 0); in hub_rt_counter_handler()
/linux-6.1.9/block/partitions/
Dsysv68.c43 struct slice { struct
56 struct slice *slice; in sysv68_partition() local
79 slice = (struct slice *)data; in sysv68_partition()
80 for (i = 0; i < slices; i++, slice++) { in sysv68_partition()
83 if (be32_to_cpu(slice->nblocks)) { in sysv68_partition()
85 be32_to_cpu(slice->blkoff), in sysv68_partition()
86 be32_to_cpu(slice->nblocks)); in sysv68_partition()
/linux-6.1.9/arch/mips/include/asm/sn/
Daddrs.h278 #define EX_HANDLER_OFFSET(slice) ((slice) << 16) argument
279 #define EX_HANDLER_ADDR(nasid, slice) \ argument
280 PHYS_TO_K0(NODE_OFFSET(nasid) | EX_HANDLER_OFFSET(slice))
283 #define EX_FRAME_OFFSET(slice) ((slice) << 16 | 0x400) argument
284 #define EX_FRAME_ADDR(nasid, slice) \ argument
285 PHYS_TO_K0(NODE_OFFSET(nasid) | EX_FRAME_OFFSET(slice))
332 #define LAUNCH_OFFSET(nasid, slice) \ argument
334 KLD_LAUNCH(nasid)->stride * (slice))
335 #define LAUNCH_ADDR(nasid, slice) \ argument
336 TO_NODE_UNCAC((nasid), LAUNCH_OFFSET(nasid, slice))
[all …]
/linux-6.1.9/drivers/gpu/drm/omapdrm/
Dtcm.h222 static inline void tcm_slice(struct tcm_area *parent, struct tcm_area *slice) in tcm_slice() argument
224 *slice = *parent; in tcm_slice()
227 if (slice->tcm && !slice->is2d && in tcm_slice()
228 slice->p0.y != slice->p1.y && in tcm_slice()
229 (slice->p0.x || (slice->p1.x != slice->tcm->width - 1))) { in tcm_slice()
231 slice->p1.x = slice->tcm->width - 1; in tcm_slice()
232 slice->p1.y = (slice->p0.x) ? slice->p0.y : slice->p1.y - 1; in tcm_slice()
235 parent->p0.y = slice->p1.y + 1; in tcm_slice()
/linux-6.1.9/rust/alloc/
Dslice.rs106 pub use core::slice::range;
108 pub use core::slice::ArrayChunks;
110 pub use core::slice::ArrayChunksMut;
112 pub use core::slice::ArrayWindows;
114 pub use core::slice::EscapeAscii;
116 pub use core::slice::SliceIndex;
118 pub use core::slice::{from_mut, from_ref};
120 pub use core::slice::{from_raw_parts, from_raw_parts_mut};
122 pub use core::slice::{Chunks, Windows};
124 pub use core::slice::{ChunksExact, ChunksExactMut};
[all …]
/linux-6.1.9/drivers/hid/surface-hid/
Dsurface_hid.c45 struct surface_hid_buffer_slice *slice; in ssam_hid_get_descriptor() local
70 slice = (struct surface_hid_buffer_slice *)buffer; in ssam_hid_get_descriptor()
71 slice->entry = entry; in ssam_hid_get_descriptor()
72 slice->end = 0; in ssam_hid_get_descriptor()
77 while (!slice->end && offset < len) { in ssam_hid_get_descriptor()
78 put_unaligned_le32(offset, &slice->offset); in ssam_hid_get_descriptor()
79 put_unaligned_le32(length, &slice->length); in ssam_hid_get_descriptor()
84 sizeof(*slice)); in ssam_hid_get_descriptor()
88 offset = get_unaligned_le32(&slice->offset); in ssam_hid_get_descriptor()
89 length = get_unaligned_le32(&slice->length); in ssam_hid_get_descriptor()
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_sysfs.c69 int slice = (int)(uintptr_t)attr->private; in i915_l3_read() local
81 if (i915->l3_parity.remap_info[slice]) in i915_l3_read()
83 i915->l3_parity.remap_info[slice] + offset / sizeof(u32), in i915_l3_read()
97 int slice = (int)(uintptr_t)attr->private; in i915_l3_write() local
115 if (i915->l3_parity.remap_info[slice]) { in i915_l3_write()
117 remap_info = i915->l3_parity.remap_info[slice]; in i915_l3_write()
119 i915->l3_parity.remap_info[slice] = remap_info; in i915_l3_write()
127 ctx->remap_slice |= BIT(slice); in i915_l3_write()
/linux-6.1.9/drivers/gpu/drm/i915/gt/
Dintel_gt_regs.h45 #define GEN8_MCR_SLICE(slice) (((slice) & 3) << 26) argument
50 #define GEN11_MCR_SLICE(slice) (((slice) & 0xf) << 27) argument
404 #define GEN9_IZ_HASHING_MASK(slice) (0x3 << ((slice) * 2)) argument
405 #define GEN9_IZ_HASHING(slice, val) ((val) << ((slice) * 2)) argument
460 #define GEN9_SLICE_PGCTL_ACK(slice) _MMIO(0x804c + (slice) * 0x4) argument
461 #define GEN10_SLICE_PGCTL_ACK(slice) _MMIO(0x804c + ((slice) / 3) * 0x34 + \ argument
462 ((slice) % 3) * 0x4)
465 #define GEN10_PGCTL_VALID_SS_MASK(slice) ((slice) == 0 ? 0x7F : 0x1F) argument
467 #define GEN9_SS01_EU_PGCTL_ACK(slice) _MMIO(0x805c + (slice) * 0x8) argument
468 #define GEN10_SS01_EU_PGCTL_ACK(slice) _MMIO(0x805c + ((slice) / 3) * 0x30 + \ argument
[all …]
Dintel_sseu.h122 intel_sseu_has_subslice(const struct sseu_dev_info *sseu, int slice, in intel_sseu_has_subslice() argument
125 if (slice >= sseu->max_slices || in intel_sseu_has_subslice()
132 return sseu->subslice_mask.hsw[slice] & BIT(subslice); in intel_sseu_has_subslice()
156 intel_sseu_get_hsw_subslices(const struct sseu_dev_info *sseu, u8 slice);
/linux-6.1.9/drivers/misc/cxl/
Dmain.c66 ctx->afu->adapter->adapter_num, ctx->afu->slice, ctx->pe); in _cxl_slbia()
81 int card, slice, id; in cxl_slbia_core() local
89 for (slice = 0; slice < adapter->slices; slice++) { in cxl_slbia_core()
90 afu = adapter->afu[slice]; in cxl_slbia_core()
244 struct cxl_afu *cxl_alloc_afu(struct cxl *adapter, int slice) in cxl_alloc_afu() argument
254 afu->slice = slice; in cxl_alloc_afu()
Dtrace.h76 __entry->afu = ctx->afu->slice;
105 __entry->afu = ctx->afu->slice;
145 __entry->afu = ctx->afu->slice;
178 __entry->afu = ctx->afu->slice;
212 __entry->afu = ctx->afu->slice;
243 __entry->afu = ctx->afu->slice;
270 __entry->afu = ctx->afu->slice;
299 __entry->afu = ctx->afu->slice;
331 __entry->afu = ctx->afu->slice;
360 __entry->afu = ctx->afu->slice;
[all …]
/linux-6.1.9/drivers/hte/
Dhte-tegra194.c106 int slice; member
256 if (m[eid].slice == NV_AON_SLICE_INVALID) in tegra_hte_map_to_line_id()
259 *mapped = (m[eid].slice << 5) + m[eid].bit_index; in tegra_hte_map_to_line_id()
341 u32 slice, sl_bit_shift, line_bit, val, reg; in tegra_hte_en_dis_common() local
358 slice = line_id >> sl_bit_shift; in tegra_hte_en_dis_common()
360 reg = (slice << sl_bit_shift) + HTE_SLICE0_TETEN; in tegra_hte_en_dis_common()
362 spin_lock(&gs->sl[slice].s_lock); in tegra_hte_en_dis_common()
364 if (test_bit(HTE_SUSPEND, &gs->sl[slice].flags)) { in tegra_hte_en_dis_common()
365 spin_unlock(&gs->sl[slice].s_lock); in tegra_hte_en_dis_common()
377 spin_unlock(&gs->sl[slice].s_lock); in tegra_hte_en_dis_common()
[all …]
/linux-6.1.9/arch/powerpc/mm/book3s64/
Dslice.c97 static int slice_low_has_vma(struct mm_struct *mm, unsigned long slice) in slice_low_has_vma() argument
99 return !slice_area_is_free(mm, slice << SLICE_LOW_SHIFT, in slice_low_has_vma()
103 static int slice_high_has_vma(struct mm_struct *mm, unsigned long slice) in slice_high_has_vma() argument
105 unsigned long start = slice << SLICE_HIGH_SHIFT; in slice_high_has_vma()
265 unsigned long slice; in slice_scan_available() local
267 slice = GET_LOW_SLICE_INDEX(addr); in slice_scan_available()
268 *boundary_addr = (slice + end) << SLICE_LOW_SHIFT; in slice_scan_available()
269 return !!(available->low_slices & (1u << slice)); in slice_scan_available()
271 slice = GET_HIGH_SLICE_INDEX(addr); in slice_scan_available()
272 *boundary_addr = (slice + end) ? in slice_scan_available()
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/soc/imx/
Dfsl,imx93-src.yaml46 - const: fsl,imx93-src-slice
53 - description: mix slice register region
54 - description: mem slice register region
90 compatible = "fsl,imx93-src-slice";
/linux-6.1.9/tools/perf/scripts/python/
Dsched-migration.py234 slice = TimeSlice(ts, TimeSlice(-1, None))
236 slice = self.data[-1].next(ts)
237 return slice
282 def update_rectangle_cpu(self, slice, cpu): argument
283 rq = slice.rqs[cpu]
285 if slice.total_load != 0:
286 load_rate = rq.load() / float(slice.total_load)
295 if cpu in slice.event_cpus:
298 self.root_win.paint_rectangle_zone(cpu, color, top_color, slice.start, slice.end)
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_bw.c780 enum dbuf_slice slice; in intel_bw_state_changed() local
782 for_each_dbuf_slice(i915, slice) { in intel_bw_state_changed()
783 if (old_crtc_bw->max_bw[slice] != new_crtc_bw->max_bw[slice] || in intel_bw_state_changed()
784 old_crtc_bw->active_planes[slice] != new_crtc_bw->active_planes[slice]) in intel_bw_state_changed()
804 enum dbuf_slice slice; in skl_plane_calc_dbuf_bw() local
810 for_each_dbuf_slice_in_mask(i915, slice, dbuf_mask) { in skl_plane_calc_dbuf_bw()
811 crtc_bw->max_bw[slice] = max(crtc_bw->max_bw[slice], data_rate); in skl_plane_calc_dbuf_bw()
812 crtc_bw->active_planes[slice] |= BIT(plane_id); in skl_plane_calc_dbuf_bw()
854 enum dbuf_slice slice; in intel_bw_dbuf_min_cdclk() local
856 for_each_dbuf_slice(i915, slice) { in intel_bw_dbuf_min_cdclk()
[all …]
/linux-6.1.9/fs/erofs/
Dxattr.c192 unsigned int value_sz, processed, slice; in xattr_foreach() local
240 slice = min_t(unsigned int, EROFS_BLKSIZ - it->ofs, in xattr_foreach()
244 err = op->name(it, processed, it->kaddr + it->ofs, slice); in xattr_foreach()
250 it->ofs += slice; in xattr_foreach()
251 processed += slice; in xattr_foreach()
275 slice = min_t(unsigned int, EROFS_BLKSIZ - it->ofs, in xattr_foreach()
277 op->value(it, processed, it->kaddr + it->ofs, slice); in xattr_foreach()
278 it->ofs += slice; in xattr_foreach()
279 processed += slice; in xattr_foreach()
/linux-6.1.9/rust/alloc/vec/
Dmod.rs72 use core::slice::{self, SliceIndex};
1877 let Range { start, end } = slice::range(range, ..len); in drain()
1884 let range_slice = slice::from_raw_parts_mut(self.as_mut_ptr().add(start), end - start); in drain()
2084 unsafe { slice::from_raw_parts_mut(me.as_mut_ptr(), me.len) } in leak()
2122 slice::from_raw_parts_mut( in spare_capacity_mut()
2208 let initialized = slice::from_raw_parts_mut(ptr, self.len); in split_at_spare_mut_with_len()
2209 let spare = slice::from_raw_parts_mut(spare_ptr, spare_len); in split_at_spare_mut_with_len()
2304 let range = slice::range(src, ..self.len()); in extend_from_within()
2522 unsafe { slice::from_raw_parts(self.as_ptr(), self.len) } in deref()
2529 unsafe { slice::from_raw_parts_mut(self.as_mut_ptr(), self.len) } in deref_mut()
[all …]

12345