Home
last modified time | relevance | path

Searched refs:usize (Results 1 – 21 of 21) sorted by relevance

/drivers/gpu/drm/
A Ddrm_panic_qr.rs33 struct Version(usize);
381 len: usize,
417 offset: usize,
454 ec_size: usize,
493 fn push(&mut self, offset: &mut usize, bits: (u16, usize)) { in push() argument
541 fn error_code_for_blocks(&mut self, offset: usize, size: usize, ec_offset: usize) { in error_code_for_blocks() argument
591 offset: usize,
668 let off = y as usize * self.stride as usize + x as usize / 8; in set()
676 let off = y as usize * self.stride as usize + x as usize / 8; in xor()
924 data_len: usize, in drm_panic_qr_generate() argument
[all …]
/drivers/gpu/nova-core/
A Dvbios.rs15 const ROM_OFFSET: usize = 0x300000;
17 const BIOS_MAX_SCAN_LEN: usize = 0x100000;
19 const BIOS_READ_AHEAD_SIZE: usize = 1024;
43 current_offset: usize,
90 fn read_more_at_offset(&mut self, offset: usize, len: usize) -> Result { in read_more_at_offset() argument
110 offset: usize, in read_bios_image_at_offset() argument
111 len: usize, in read_bios_image_at_offset() argument
338 self.image_len as usize * 512 in image_size_bytes()
695 bit_offset: usize,
730 falcon_ucode_offset: usize,
[all …]
A Dfirmware.rs86 pub(crate) fn size(&self) -> usize { in size() argument
90 ((self.hdr & HDR_SIZE_MASK) >> HDR_SIZE_SHIFT) as usize in size()
125 sig_base_img: usize, in patch_signature() argument
153 pub(crate) struct ModInfoBuilder<const N: usize>(firmware::ModInfoBuilder<N>);
155 impl<const N: usize> ModInfoBuilder<N> {
A Dfalcon.rs280 const BASE: usize;
443 fw.dma_handle_with_offset(load_offsets.src_start as usize)?, in dma_wr()
477 for pos in (0..load_offsets.len).step_by(DMA_LEN as usize) { in dma_wr()
A Dutil.rs6 pub(crate) const fn to_lowercase_bytes<const N: usize>(s: &str) -> [u8; N] { in to_lowercase_bytes()
A Ddma.rs17 pub(crate) fn new(dev: &device::Device<device::Bound>, len: usize) -> Result<Self> { in new()
A Ddriver.rs14 const BAR0_SIZE: usize = SZ_16M;
/drivers/acpi/apei/
A Derst-dbg.c83 size_t usize, loff_t *off) in erst_dbg_read() argument
140 if (len > usize) in erst_dbg_read()
153 size_t usize, loff_t *off) in erst_dbg_write() argument
161 if (usize > ERST_DBG_RECORD_LEN_MAX) { in erst_dbg_write()
168 if (usize > erst_dbg_buf_len) { in erst_dbg_write()
171 p = kmalloc(usize, GFP_KERNEL); in erst_dbg_write()
176 erst_dbg_buf_len = usize; in erst_dbg_write()
178 rc = copy_from_user(erst_dbg_buf, ubuf, usize); in erst_dbg_write()
185 if (rcd->record_length != usize) in erst_dbg_write()
192 return rc < 0 ? rc : usize; in erst_dbg_write()
/drivers/gpu/nova-core/regs/
A Dmacros.rs147 pub(crate) const OFFSET: usize = $offset;
337 pub(crate) fn alter<const SIZE: usize, T, F>(
355 pub(crate) fn read<const SIZE: usize, T>(
357 base: usize,
365 pub(crate) fn write<const SIZE: usize, T>(
368 base: usize,
376 pub(crate) fn alter<const SIZE: usize, T, F>(
378 base: usize,
391 base: usize,
402 base: usize,
[all …]
/drivers/gpu/nova-core/firmware/
A Dfwsec.rs122 const BCRT30_RSA3K_SIG_SIZE: usize = 384;
158 offset: usize, in transmute() argument
163 if (fw.start_ptr() as usize + offset) % align_of::<T>() != 0 { in transmute()
181 offset: usize, in transmute_mut() argument
186 if (fw.start_ptr_mut() as usize + offset) % align_of::<T>() != 0 { in transmute_mut()
260 let hdr_offset = (desc.imem_load_size + desc.interface_offset) as usize; in new_fwsec()
269 for i in 0..hdr.entry_count as usize { in new_fwsec()
275 hdr_offset + hdr.header_size as usize + i * hdr.entry_size as usize in new_fwsec()
287 (desc.imem_load_size + app.dmem_base) as usize, in new_fwsec()
348 let sig_base_img = (desc.imem_load_size + desc.pkc_data_offset) as usize; in new()
[all …]
/drivers/gpu/drm/nova/
A Dgem.rs20 fn new(_dev: &NovaDevice, _size: usize) -> impl PinInit<Self, Error> { in new()
31 pub(crate) fn new(dev: &NovaDevice, size: usize) -> Result<ARef<gem::Object<Self>>> { in new()
/drivers/pci/pcie/
A Daer_inject.c487 size_t usize, loff_t *off) in aer_inject_write() argument
494 if (usize < offsetof(struct aer_error_inj, domain) || in aer_inject_write()
495 usize > sizeof(einj)) in aer_inject_write()
499 if (copy_from_user(&einj, ubuf, usize)) in aer_inject_write()
503 return ret ? ret : usize; in aer_inject_write()
/drivers/gpu/nova-core/falcon/
A Dsec2.rs9 const BASE: usize = 0x00840000;
A Dgsp.rs13 const BASE: usize = 0x00110000;
/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
A Dramgf100.c501 u64 total = 0, lcomm = ~0, lower, ubase, usize; in gf100_ram_ctor() local
520 usize = total - lower; in gf100_ram_ctor()
523 nvkm_debug(subdev, "Upper: %4lld MiB @ %010llx\n", usize >> 20, ubase); in gf100_ram_ctor()
550 (usize - rsvd_tail) >> NVKM_RAM_MM_SHIFT, 1); in gf100_ram_ctor()
/drivers/xen/
A Dmcelog.c107 size_t usize, loff_t *off) in xen_mce_chrdev_read() argument
119 if (*off != 0 || usize < XEN_MCE_LOG_LEN*sizeof(struct xen_mce)) in xen_mce_chrdev_read()
/drivers/gpu/nova-core/falcon/hal/
A Dga102.rs70 bar.read32(reg_fuse_base + ((ucode_id - 1) as usize * core::mem::size_of::<u32>())); in signature_reg_fuse_version_ga102()
/drivers/gpu/drm/amd/amdkfd/
A Dkfd_chardev.c3251 unsigned int usize, asize; in kfd_ioctl() local
3264 usize = asize = _IOC_SIZE(cmd); in kfd_ioctl()
3325 if (asize > usize) in kfd_ioctl()
3326 memset(kdata + usize, 0, asize - usize); in kfd_ioctl()
3330 if (copy_from_user(kdata, (void __user *)arg, usize) != 0) { in kfd_ioctl()
3335 memset(kdata, 0, usize); in kfd_ioctl()
3341 if (copy_to_user((void __user *)arg, kdata, usize) != 0) in kfd_ioctl()
/drivers/accel/habanalabs/common/
A Dhabanalabs_ioctl.c1234 unsigned int usize, asize; in _hl_ioctl() local
1249 usize = asize = _IOC_SIZE(cmd); in _hl_ioctl()
1268 if (copy_from_user(kdata, (void __user *)arg, usize)) { in _hl_ioctl()
1276 if ((cmd & IOC_OUT) && copy_to_user((void __user *)arg, kdata, usize)) in _hl_ioctl()
/drivers/crypto/intel/qat/qat_common/
A Dqat_hal.c1238 int usize = 0; in qat_hal_concat_micro_code() local
1244 usize = ARRAY_SIZE(inst_4b); in qat_hal_concat_micro_code()
1246 for (i = 0; i < usize; i++) in qat_hal_concat_micro_code()
/drivers/media/platform/chips-media/coda/
A Dcoda-common.c1654 unsigned int max_w, max_h, usize, csize; in set_default_params() local
1660 usize = max_w * max_h * 3 / 2; in set_default_params()
1661 csize = coda_estimate_sizeimage(ctx, usize, max_w, max_h); in set_default_params()
1687 ctx->q_data[V4L2_M2M_SRC].sizeimage = usize; in set_default_params()
1694 ctx->q_data[V4L2_M2M_DST].sizeimage = usize; in set_default_params()

Completed in 47 milliseconds