/kernel/linux/linux-6.6/block/ |
H A D | genhd.c | 66 * Set disk capacity and notify if the size is not currently zero and will not 69 bool set_capacity_and_notify(struct gendisk *disk, sector_t size) in set_capacity_and_notify() argument 74 set_capacity(disk, size); in set_capacity_and_notify() 81 if (size == capacity || in set_capacity_and_notify() 87 disk->disk_name, capacity, size); in set_capacity_and_notify() 93 if (!capacity || !size) in set_capacity_and_notify() 1048 static DEVICE_ATTR(size, 0444, part_size_show, NULL);
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A D | intel_display_device.c | 448 .dbuf.size = 896 - 4, /* 4 blocks for bypass path allocation */ 497 .dbuf.size = 512 - 4, /* 4 blocks for bypass path allocation */ 504 .dbuf.size = 1024 - 4, /* 4 blocks for bypass path allocation */ 512 .dbuf.size = 2048, \ 565 .dbuf.size = 2048, \ 653 .dbuf.size = 4096, \
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | ctxgm107.c | 879 gm107_grctx_generate_bundle(struct gf100_gr_chan *chan, u64 addr, u32 size) in gm107_grctx_generate_bundle() argument 882 const u32 state_limit = min(grctx->bundle_min_gpm_fifo_depth, size / 0x20); in gm107_grctx_generate_bundle() 886 gf100_grctx_patch_wr32(chan, 0x408008, 0x80000000 | (size >> 8)); in gm107_grctx_generate_bundle() 888 gf100_grctx_patch_wr32(chan, 0x418e28, 0x80000000 | (size >> 8)); in gm107_grctx_generate_bundle() 936 gm107_grctx_generate_attrib_cb(struct gf100_gr_chan *chan, u64 addr, u32 size) in gm107_grctx_generate_attrib_cb() argument 938 gf100_grctx_generate_attrib_cb(chan, addr, size); in gm107_grctx_generate_attrib_cb()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/device_include/ |
H A D | svga3d_cmd.h | 338 uint32 size; member 954 SVGA3dSize size; member 1170 SVGA3dSize size; member 1182 SVGA3dSize size; member 1198 SVGA3dSize size; member 1213 SVGA3dSize size; member
|
/kernel/linux/linux-6.6/drivers/hwtracing/ptt/ |
H A D | hisi_ptt.c | 246 size_t size; in hisi_ptt_update_aux() local 250 if (!buf || !handle->size) in hisi_ptt_update_aux() 256 * If we're going to stop, read the size of already traced data from in hisi_ptt_update_aux() 258 * the data size is always HISI_PTT_TRACE_BUF_SIZE. in hisi_ptt_update_aux() 264 size = FIELD_GET(HISI_PTT_TRACE_WR_STS_WRITE, reg); in hisi_ptt_update_aux() 266 size = HISI_PTT_TRACE_BUF_SIZE; in hisi_ptt_update_aux() 269 memcpy(buf->base + buf->pos, addr, size); in hisi_ptt_update_aux() 270 buf->pos += size; in hisi_ptt_update_aux() 641 * The FIFO size is 16 which is sufficient for almost all the cases, in hisi_ptt_notifier_call() 1039 /* If the pages size les in hisi_ptt_pmu_setup_aux() [all...] |
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | stm32-dfsdm-adc.c | 87 int (*cb)(const void *data, size_t size, void *cb_priv); 93 unsigned int buf_sz; /* Buffer size */ 811 /* Residue is size in bytes from end of buffer */ in stm32_dfsdm_adc_dma_residue() 813 unsigned int size; in stm32_dfsdm_adc_dma_residue() local 817 size = i - adc->bufi; in stm32_dfsdm_adc_dma_residue() 819 size = adc->buf_sz + i - adc->bufi; in stm32_dfsdm_adc_dma_residue() 821 return size; in stm32_dfsdm_adc_dma_residue() 921 dev_dbg(&indio_dev->dev, "size=%d watermark=%d\n", in stm32_dfsdm_adc_dma_start() 1073 * - size: size i 1077 stm32_dfsdm_get_buff_cb(struct iio_dev *iio_dev, int (*cb)(const void *data, size_t size, void *private), void *private) stm32_dfsdm_get_buff_cb() argument [all...] |
/kernel/linux/linux-6.6/drivers/input/mouse/ |
H A D | cyapa.c | 1001 int size; in cyapa_show_product_id() local 1007 size = scnprintf(buf, PAGE_SIZE, "%s\n", cyapa->product_id); in cyapa_show_product_id() 1009 return size; in cyapa_show_product_id() 1205 int size; in cyapa_show_mode() local 1212 size = scnprintf(buf, PAGE_SIZE, "gen%d %s\n", in cyapa_show_mode() 1216 return size; in cyapa_show_mode()
|
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/ |
H A D | af9013.c | 1061 /* Write firmware checksum & size */ in af9013_download_firmware() 1062 for (i = 0; i < firmware->size; i++) in af9013_download_firmware() 1067 buf[2] = (firmware->size >> 8) & 0xff; in af9013_download_firmware() 1068 buf[3] = (firmware->size >> 0) & 0xff; in af9013_download_firmware() 1075 for (rem = firmware->size; rem > 0; rem -= LEN_MAX) { in af9013_download_firmware() 1078 0x5100 + firmware->size - rem, in af9013_download_firmware() 1079 &firmware->data[firmware->size - rem], in af9013_download_firmware()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | arm-spe.c | 111 ". ... ARM SPE data: size %#zx bytes\n", in arm_spe_dump() 177 b->len = buffer->size; in arm_spe_get_trace() 315 event->sample.header.size = sizeof(struct perf_event_header); in arm_spe_prep_sample() 320 event->header.size = perf_event__sample_event_size(sample, type, 0); in arm_spe__inject_event() 978 buffer->size); in arm_spe_process_auxtrace_event() 1143 attr.size = sizeof(struct perf_event_attr); in arm_spe_synth_events() 1301 if (auxtrace_info->header.size < sizeof(struct perf_record_auxtrace_info) + in arm_spe_process_auxtrace_info()
|
/kernel/linux/linux-6.6/tools/testing/selftests/memfd/ |
H A D | memfd_test.c | 53 int size; in fd2name() local 56 size = snprintf(buf1, PATH_MAX, "/proc/self/fd/%d", fd); in fd2name() 57 if (size < 0) { in fd2name() 240 static void mfd_assert_size(int fd, size_t size) in mfd_assert_size() argument 249 } else if (st.st_size != size) { in mfd_assert_size() 250 printf("wrong file size %lld, but expected %lld\n", in mfd_assert_size() 251 (long long)st.st_size, (long long)size); in mfd_assert_size() 1579 printf("Unable to determine huge page size\n"); in main()
|
/kernel/linux/linux-6.6/security/apparmor/ |
H A D | policy.c | 523 * @n: size of @hname 597 rules->file.size = 2; in aa_alloc_null() 602 rules->policy.size = 2; in aa_alloc_null() 1031 * Returns: size of data consumed else error code on failure. 1250 return udata->size; in aa_replace_profiles() 1285 * @size: size of the name 1292 * Returns: size of data consume else error code if fails 1295 char *fqname, size_t size) in aa_remove_profiles() 1312 name = aa_splitn_fqname(fqname, size, in aa_remove_profiles() 1294 aa_remove_profiles(struct aa_ns *policy_ns, struct aa_label *subj, char *fqname, size_t size) aa_remove_profiles() argument [all...] |
/kernel/liteos_a/arch/arm/arm/src/ |
H A D | los_arch_mmu.c | 1014 .size = ROUNDUP(textEnd - textStart, MMU_DESCRIPTOR_L2_SMALL_SIZE), in OsSetKSectionAttr() 1021 .size = ROUNDUP(rodataEnd - rodataStart, MMU_DESCRIPTOR_L2_SMALL_SIZE), in OsSetKSectionAttr() 1028 .size = ROUNDUP(bssEndBoundary - ramDataStart, MMU_DESCRIPTOR_L2_SMALL_SIZE), in OsSetKSectionAttr() 1070 kernelMap->size >> MMU_DESCRIPTOR_L2_SMALL_SHIFT, kernelMap->flags); in OsSetKSectionAttr() 1071 if (status != (kernelMap->size >> MMU_DESCRIPTOR_L2_SMALL_SHIFT)) { in OsSetKSectionAttr() 1075 LOS_VmSpaceReserve(kSpace, kernelMap->size, kernelMap->virt); in OsSetKSectionAttr()
|
/kernel/liteos_a/net/lwip-2.1/porting/src/ |
H A D | sockets.c | 87 static ssize_t lwip_sendto_wrap(int s, const void *dataptr, size_t size, int flags, 89 ssize_t lwip_sendto(int s, const void *dataptr, size_t size, int flags, const struct sockaddr *to, socklen_t tolen) in lwip_sendto() argument 91 return lwip_sendto_wrap(s, dataptr, size, flags, to, tolen); in lwip_sendto() 116 ssize_t lwip_sendto2(int s, const void *dataptr, size_t size, int flags, const struct sockaddr *to, socklen_t tolen); 232 static ssize_t lwip_sendto_wrap(int s, const void *dataptr, size_t size, int flags, in lwip_sendto_wrap() argument 252 return lwip_sendto2(s, dataptr, size, flags, to, tolen); in lwip_sendto_wrap()
|
/kernel/linux/linux-6.6/sound/isa/es1688/ |
H A D | es1688_lib.c | 343 unsigned int size = snd_pcm_lib_buffer_bytes(substream); in snd_es1688_playback_prepare() local 346 chip->dma_size = size; in snd_es1688_playback_prepare() 384 snd_dma_program(chip->dma8, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); in snd_es1688_playback_prepare() 404 unsigned int size = snd_pcm_lib_buffer_bytes(substream); in snd_es1688_capture_prepare() local 407 chip->dma_size = size; in snd_es1688_capture_prepare() 441 snd_dma_program(chip->dma8, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT); in snd_es1688_capture_prepare()
|
/kernel/linux/linux-6.6/sound/pci/asihpi/ |
H A D | hpi_internal.h | 36 u32 size, /**< Size in bytes to allocate */ 77 something like size of array `msg' is negative. 275 Ethernet header size 732 /* size of hardware buffer */ 808 u32 bytes_returned; /* size of items returned */ 815 u32 cache_bytes; /* size of cache */ 988 u16 size; /* total size in bytes */ member 999 u16 size; /* total size i member 1050 u16 size; global() member 1061 u16 size; global() member 1371 u32 size; global() member [all...] |
/kernel/liteos_m/kernel/src/ |
H A D | los_task.c | 95 * @brief the size of task stack's protection area
423 UINT32 size;
in OsTaskInit() local 427 size = (g_taskMaxNum + 1) * sizeof(LosTaskCB);
in OsTaskInit() 428 g_taskCBArray = (LosTaskCB *)LOS_MemAlloc(m_aucSysMem0, size);
in OsTaskInit() 434 (VOID)memset_s(g_taskCBArray, size, 0, size);
in OsTaskInit() 586 mpuAttr.size = OS_TASK_STACK_PROTECT_SIZE;
in OsTaskStackProtect()
|
/kernel/linux/linux-6.6/sound/ppc/ |
H A D | pmac.c | 50 static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) in snd_pmac_dbdma_alloc() argument 52 unsigned int rsize = sizeof(struct dbdma_cmd) * (size + 1); in snd_pmac_dbdma_alloc() 58 rec->size = size; in snd_pmac_dbdma_alloc() 69 unsigned int rsize = sizeof(struct dbdma_cmd) * (rec->size + 1); in snd_pmac_dbdma_free() 595 runtime->hw.periods_max = rec->cmd.size - 1; in snd_pmac_pcm_open()
|
/kernel/linux/linux-6.6/drivers/scsi/aacraid/ |
H A D | src.c | 615 * @size: mapping resize request 618 static int aac_src_ioremap(struct aac_dev *dev, u32 size) in aac_src_ioremap() argument 620 if (!size) { in aac_src_ioremap() 632 dev->base = dev->regs.src.bar0 = ioremap(dev->base_start, size); in aac_src_ioremap() 646 * @size: mapping resize request 649 static int aac_srcv_ioremap(struct aac_dev *dev, u32 size) in aac_srcv_ioremap() argument 651 if (!size) { in aac_srcv_ioremap() 662 dev->base = dev->regs.src.bar0 = ioremap(dev->base_start, size); in aac_srcv_ioremap()
|
/kernel/linux/linux-6.6/drivers/scsi/esas2r/ |
H A D | esas2r_init.c | 50 mem_desc->esas2r_param = mem_desc->size + align; in esas2r_initmem_alloc() 71 memset(mem_desc->virt_addr, 0, mem_desc->size); in esas2r_initmem_alloc() 84 * means we have to use the original address (in esas2r_data) and size in esas2r_initmem_free() 86 * the difference between the requested and actual allocation size. in esas2r_initmem_free() 114 memdesc->size = sizeof(union atto_vda_req) + in alloc_vda_req() 750 "max read request size > 512B"); in esas2r_init_pci_cfg_space() 841 sgl->size = sgl_page_size; in esas2r_init_adapter_struct() 853 /* compute the size of the lists */ in esas2r_init_adapter_struct() 857 a->inbound_list_md.size = a->list_size * in esas2r_init_adapter_struct() 867 a->outbound_list_md.size in esas2r_init_adapter_struct() [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | user_namespace.c | 934 /* Only allow < page size writes at the beginning of the file */ in map_write() 1109 size_t size, loff_t *ppos) in proc_uid_map_write() 1121 return map_write(file, buf, size, ppos, CAP_SETUID, in proc_uid_map_write() 1126 size_t size, loff_t *ppos) in proc_gid_map_write() 1138 return map_write(file, buf, size, ppos, CAP_SETGID, in proc_gid_map_write() 1143 size_t size, loff_t *ppos) in proc_projid_map_write() 1156 return map_write(file, buf, size, ppos, -1, in proc_projid_map_write() 1108 proc_uid_map_write(struct file *file, const char __user *buf, size_t size, loff_t *ppos) proc_uid_map_write() argument 1125 proc_gid_map_write(struct file *file, const char __user *buf, size_t size, loff_t *ppos) proc_gid_map_write() argument 1142 proc_projid_map_write(struct file *file, const char __user *buf, size_t size, loff_t *ppos) proc_projid_map_write() argument
|
H A D | ptrace.c | 813 unsigned long size, void __user *data) in ptrace_get_rseq_configuration() 822 size = min_t(unsigned long, size, sizeof(conf)); in ptrace_get_rseq_configuration() 823 if (copy_to_user(data, &conf, size)) in ptrace_get_rseq_configuration() 915 if (!regset || (kiov->iov_len % regset->size) != 0) in ptrace_regset() 920 (__kernel_size_t) (regset->n * regset->size)); in ptrace_regset() 812 ptrace_get_rseq_configuration(struct task_struct *task, unsigned long size, void __user *data) ptrace_get_rseq_configuration() argument
|
/kernel/linux/linux-6.6/net/batman-adv/ |
H A D | distributed-arp-table.c | 170 for (i = 0; i < bat_priv->dat.hash->size; i++) { in __batadv_dat_purge() 227 * @hdr_size: size of the possible header before the ARP packet 244 * @hdr_size: size of the possible header before the ARP packet 256 * @hdr_size: size of the possible header before the ARP packet 268 * @hdr_size: size of the possible header before the ARP packet 282 * @size: size of the hash table 286 static u32 batadv_hash_dat(const void *data, u32 size) in batadv_hash_dat() argument 313 return hash % size; in batadv_hash_dat() 340 index = batadv_hash_dat(&to_find, hash->size); in batadv_dat_entry_hash_find() [all...] |
/kernel/linux/linux-6.6/sound/soc/intel/skylake/ |
H A D | skl-pcm.c | 73 size_t size) in skl_substream_alloc_pages() 1280 unsigned int size; in skl_platform_soc_new() local 1286 size = CONFIG_SND_HDA_PREALLOC_SIZE * 1024; in skl_platform_soc_new() 1287 if (size > MAX_PREALLOC_SIZE) in skl_platform_soc_new() 1288 size = MAX_PREALLOC_SIZE; in skl_platform_soc_new() 1292 size, MAX_PREALLOC_SIZE); in skl_platform_soc_new() 71 skl_substream_alloc_pages(struct hdac_bus *bus, struct snd_pcm_substream *substream, size_t size) skl_substream_alloc_pages() argument
|
/kernel/linux/linux-6.6/sound/soc/qcom/qdsp6/ |
H A D | topology.c | 215 for (sz = 0; !found && (sz < le32_to_cpu(private->size)); ) { in audioreach_get_sg_array() 221 sz = sz + le32_to_cpu(sg_array->size); in audioreach_get_sg_array() 248 for (sz = 0; !found && (sz < le32_to_cpu(private->size)); ) { in audioreach_get_cont_array() 254 sz = sz + le32_to_cpu(cont_array->size); in audioreach_get_cont_array() 281 for (sz = 0; !found && (sz < le32_to_cpu(private->size)); ) { in audioreach_get_module_array() 287 sz = sz + le32_to_cpu(mod_array->size); in audioreach_get_module_array()
|
/kernel/linux/linux-6.6/sound/soc/fsl/ |
H A D | fsl_xcvr.c | 555 * EDMA controller needs period size to be a multiple of in fsl_xcvr_startup() 746 int ret = 0, rem, off, out, page = 0, size = FSL_XCVR_REG_OFFSET; in fsl_xcvr_load_firmware() local 755 rem = fw->size; in fsl_xcvr_load_firmware() 759 dev_err(dev, "FW size %d is bigger than 16KiB.\n", rem); in fsl_xcvr_load_firmware() 774 off = page * size; in fsl_xcvr_load_firmware() 775 out = min(rem, size); in fsl_xcvr_load_firmware() 784 memset_io(xcvr->ram_addr + out, 0, size - out); in fsl_xcvr_load_firmware() 788 memset_io(xcvr->ram_addr, 0, size); in fsl_xcvr_load_firmware()
|