Home
last modified time | relevance | path

Searched refs:size (Results 24076 - 24100 of 42738) sorted by relevance

1...<<961962963964965966967968969970>>...1710

/kernel/linux/linux-5.10/drivers/staging/media/tegra-vde/
H A Dvde.c497 size_t *size, in tegra_vde_attach_dmabuf()
510 if (dmabuf->size & (align_size - 1)) { in tegra_vde_attach_dmabuf()
512 dmabuf->size, align_size); in tegra_vde_attach_dmabuf()
516 if ((u64)offset + min_size > dmabuf->size) { in tegra_vde_attach_dmabuf()
517 dev_err(dev, "Too small dmabuf size %zu @0x%lX, should be at least %zu\n", in tegra_vde_attach_dmabuf()
518 dmabuf->size, offset, min_size); in tegra_vde_attach_dmabuf()
528 if (size) in tegra_vde_attach_dmabuf()
529 *size = dmabuf->size - offset; in tegra_vde_attach_dmabuf()
627 dev_err(dev, "Bad DPB size in tegra_vde_validate_h264_ctx()
490 tegra_vde_attach_dmabuf(struct tegra_vde *vde, int fd, unsigned long offset, size_t min_size, size_t align_size, struct dma_buf_attachment **a, dma_addr_t *addrp, size_t *size, enum dma_data_direction dma_dir) tegra_vde_attach_dmabuf() argument
[all...]
/kernel/linux/linux-6.6/drivers/mtd/
H A Dmtdswap.c1004 static unsigned int mtdswap_badblocks(struct mtd_info *mtd, uint64_t size) in mtdswap_badblocks() argument
1012 for (offset = 0; offset < size; offset += mtd->erasesize) in mtdswap_badblocks()
1068 hd->info.last_page = d->mbd_dev->size - 1; in mtdswap_auto_header()
1208 pages = d->mbd_dev->size; in mtdswap_show()
1282 pages = d->mbd_dev->size; in mtdswap_init()
1359 printk(KERN_ERR "%s: Erase size %u not multiple of PAGE_SIZE " in mtdswap_add_mtd()
1365 printk(KERN_ERR "%s: PAGE_SIZE %lu not multiple of write size" in mtdswap_add_mtd()
1380 use_size = mtd->size; in mtdswap_add_mtd()
1383 if (mtd->size > size_limit) { in mtdswap_add_mtd()
1384 printk(KERN_WARNING "%s: Device too large. Limiting size t in mtdswap_add_mtd()
[all...]
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/
H A Dnand_bbt.c279 mtd->size >> this->bbt_erase_shift, td, 0); in read_abs_bbt()
501 numblocks = mtd->size >> this->bbt_erase_shift; in create_bbt()
565 startblock = (mtd->size >> this->bbt_erase_shift) - 1; in search_bbt()
579 bbtblocks = mtd->size >> this->bbt_erase_shift; in search_bbt()
779 numblocks = (int)(mtd->size >> this->bbt_erase_shift); in write_bbt()
1143 nrblocks = (int)(mtd->size >> this->bbt_erase_shift); in mark_bbt_region()
1224 table_size = mtd->size >> this->bbt_erase_shift; in verify_bbt_descr()
1252 len = (mtd->size >> (this->bbt_erase_shift + 2)) ? : 1; in nand_scan_bbt()
/kernel/linux/linux-6.6/drivers/media/usb/pwc/
H A Dpwc-v4l.c411 int size; in pwc_vidioc_try_fmt() local
438 size = pwc_get_size(pdev, f->fmt.pix.width, f->fmt.pix.height); in pwc_vidioc_try_fmt()
440 pwc_image_sizes[size][0], in pwc_vidioc_try_fmt()
441 pwc_image_sizes[size][1], in pwc_vidioc_try_fmt()
893 PWC_DEBUG_IOCTL("ioctl(VIDIOC_G_FMT) return size %dx%d\n", in pwc_g_fmt_vid_cap()
935 int size = -1; in pwc_enum_frameintervals() local
941 size = i; in pwc_enum_frameintervals()
947 if (size < 0 || fival->pixel_format != V4L2_PIX_FMT_YUV420) in pwc_enum_frameintervals()
950 i = pwc_get_fps(pdev, fival->index, size); in pwc_enum_frameintervals()
/kernel/linux/linux-6.6/drivers/media/rc/
H A Dite-cir.c138 unsigned int next_one, next_zero, size; in ite_decode_bytes() local
145 size = length << 3; in ite_decode_bytes()
146 next_one = find_next_bit_le(ldata, size, 0); in ite_decode_bytes()
153 while (next_one < size) { in ite_decode_bytes()
154 next_zero = find_next_zero_bit_le(ldata, size, next_one + 1); in ite_decode_bytes()
159 if (next_zero < size) { in ite_decode_bytes()
160 next_one = find_next_bit_le(ldata, size, next_zero + 1); in ite_decode_bytes()
166 next_one = size; in ite_decode_bytes()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_rule.c126 /* Copy data to ste, only reduced size or control, the last 16B (mask) in dr_rule_handle_one_ste_in_update_list()
129 if (ste_info->size == DR_STE_SIZE_CTRL) in dr_rule_handle_one_ste_in_update_list()
137 ste_info->size, ste_info->offset); in dr_rule_handle_one_ste_in_update_list()
359 cur_entries = mlx5dr_icm_pool_chunk_size_to_entries(cur_htbl->chunk->size); in dr_rule_rehash_copy_htbl()
468 /* The previous table is an anchor, anchors size is always one STE */ in dr_rule_rehash_htbl()
524 new_size = mlx5dr_icm_next_higher_chunk(cur_htbl->chunk->size); in dr_rule_rehash()
527 if (new_size == cur_htbl->chunk->size) in dr_rule_rehash()
528 return NULL; /* Skip rehash, we already at the max size */ in dr_rule_rehash()
694 if (dmn->info.max_log_sw_icm_sz <= htbl->chunk->size) in dr_rule_need_enlarge_hash()
700 if (dr_get_bits_per_mask(htbl->byte_mask) * BITS_PER_BYTE <= htbl->chunk->size) in dr_rule_need_enlarge_hash()
[all...]
/kernel/linux/linux-6.6/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_fd.c32 /* PCAN-USB Pro FD rx/tx buffers size */
129 __le16 size; member
142 __le16 size; member
732 if (!rx_msg->size) { in pcan_usb_fd_decode_buf()
737 rx_msg_size = le16_to_cpu(rx_msg->size); in pcan_usb_fd_decode_buf()
796 struct sk_buff *skb, u8 *obuf, size_t *size) in pcan_usb_fd_encode_msg()
807 tx_msg->size = cpu_to_le16(tx_msg_size); in pcan_usb_fd_encode_msg()
846 /* add null size message to tag the end (messages are 32-bits aligned) in pcan_usb_fd_encode_msg()
850 tx_msg->size = 0; in pcan_usb_fd_encode_msg()
852 /* set the whole size o in pcan_usb_fd_encode_msg()
795 pcan_usb_fd_encode_msg(struct peak_usb_device *dev, struct sk_buff *skb, u8 *obuf, size_t *size) pcan_usb_fd_encode_msg() argument
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dacpi.h218 void __iomem *__acpi_map_table(unsigned long phys, unsigned long size);
219 void __acpi_unmap_table(void __iomem *map, unsigned long size);
356 unsigned int size,
703 extern int acpi_nvs_register(__u64 start, __u64 size);
913 static inline int acpi_nvs_register(__u64 start, __u64 size) in acpi_nvs_register() argument
979 char *buf, int size) in acpi_device_modalias()
1118 void arch_reserve_mem_area(acpi_physical_address addr, size_t size);
1121 size_t size) in arch_reserve_mem_area()
978 acpi_device_modalias(struct device *dev, char *buf, int size) acpi_device_modalias() argument
1120 arch_reserve_mem_area(acpi_physical_address addr, size_t size) arch_reserve_mem_area() argument
H A Dhyperv.h92 * Multiple-page buffer array; the pfn array is variable size:
167 /* Calculate the proper size of a ringbuffer, it must be page-aligned */
259 /* Make maximum size of pipe payload of 16K */
266 /* The size of the user defined data buffer for non-pipe offers. */
269 /* The size of the user defined data buffer for pipe offers. */
717 * variable-size data structure depending on the msg type itself
788 u32 size; member
813 u32 size; member
1045 /* The max size of a packet on this channel */
1103 u32 size) in set_channel_pending_send_size()
1102 set_channel_pending_send_size(struct vmbus_channel *c, u32 size) set_channel_pending_send_size() argument
[all...]
/kernel/linux/linux-6.6/fs/overlayfs/
H A Dinode.c75 * already set file size to 0. But we never passed O_TRUNC to in ovl_setattr()
245 * from size to avoid lowerdata lookup on stat(2). in ovl_getattr()
258 round_up(stat->size, stat->blksize) >> 9; in ovl_getattr()
355 const void *value, size_t size, int flags) in ovl_xattr_set()
387 err = ovl_do_setxattr(ofs, realdentry, name, value, size, in ovl_xattr_set()
405 void *value, size_t size) in ovl_xattr_get()
413 res = vfs_getxattr(mnt_idmap(realpath.mnt), realpath.dentry, name, value, size); in ovl_xattr_get()
432 ssize_t ovl_listxattr(struct dentry *dentry, char *list, size_t size) in ovl_listxattr() argument
441 res = vfs_listxattr(realdentry, list, size); in ovl_listxattr()
443 if (res <= 0 || size in ovl_listxattr()
354 ovl_xattr_set(struct dentry *dentry, struct inode *inode, const char *name, const void *value, size_t size, int flags) ovl_xattr_set() argument
404 ovl_xattr_get(struct dentry *dentry, struct inode *inode, const char *name, void *value, size_t size) ovl_xattr_get() argument
[all...]
/kernel/linux/linux-6.6/fs/
H A Dpipe.c36 * New pipe buffers will be restricted to this size while the user is exceeding
51 * The max size that a non-root user is allowed to grow the pipe. Can
52 * be set by root in /proc/sys/fs/pipe-max-size
1236 unsigned int round_pipe_size(unsigned int size) in round_pipe_size() argument
1238 if (size > (1U << 31)) in round_pipe_size()
1241 /* Minimum pipe size, as required by POSIX */ in round_pipe_size()
1242 if (size < PAGE_SIZE) in round_pipe_size()
1245 return roundup_pow_of_two(size); in round_pipe_size()
1322 * pipe size if successful, or return -ERROR on error.
1327 unsigned int nr_slots, size; in pipe_set_size() local
[all...]
/kernel/linux/linux-6.6/drivers/spi/
H A Dspi-zynqmp-gqspi.c445 * @size: Number of bytes to be copied from data to RX buffer
448 ulong data, u8 size) in zynqmp_qspi_copy_read_data()
450 memcpy(xqspi->rxbuf, &data, size); in zynqmp_qspi_copy_read_data()
451 xqspi->rxbuf += size; in zynqmp_qspi_copy_read_data()
452 xqspi->bytes_to_receive -= size; in zynqmp_qspi_copy_read_data()
613 * @size: Number of bytes to be copied from TX buffer to TX FIFO
615 static void zynqmp_qspi_filltxfifo(struct zynqmp_qspi *xqspi, int size) in zynqmp_qspi_filltxfifo() argument
619 while ((xqspi->bytes_to_transfer > 0) && (count < size) && (xqspi->txbuf)) { in zynqmp_qspi_filltxfifo()
640 * @size: Number of bytes to be copied from RX buffer to RX FIFO
642 static void zynqmp_qspi_readrxfifo(struct zynqmp_qspi *xqspi, u32 size) in zynqmp_qspi_readrxfifo() argument
447 zynqmp_qspi_copy_read_data(struct zynqmp_qspi *xqspi, ulong data, u8 size) zynqmp_qspi_copy_read_data() argument
[all...]
/kernel/linux/linux-6.6/drivers/tty/serial/
H A Dmxs-auart.c376 /* The size of the array - must be last */
535 static int mxs_auart_dma_tx(struct mxs_auart_port *s, int size) in mxs_auart_dma_tx() argument
543 pio = AUART_CTRL1_XFER_COUNT(size); in mxs_auart_dma_tx()
552 sg_init_one(sgl, s->tx_dma_buf, size); in mxs_auart_dma_tx()
577 int size; in mxs_auart_tx_chars() local
584 size = min_t(u32, UART_XMIT_SIZE - i, in mxs_auart_tx_chars()
588 memcpy(buffer + i, xmit->buf + xmit->tail, size); in mxs_auart_tx_chars()
589 xmit->tail = (xmit->tail + size) & (UART_XMIT_SIZE - 1); in mxs_auart_tx_chars()
591 i += size; in mxs_auart_tx_chars()
1188 /* Reset FIFO size (i in mxs_auart_startup()
[all...]
/kernel/linux/linux-6.6/drivers/vhost/
H A Dvringh.c664 vringh_bad("Bad ring size %u", num); in vringh_init_user()
938 vringh_bad("Bad ring size %u", num); in vringh_init_kern()
1129 u64 size; in iotlb_translate() local
1145 size = map->size - addr + map->start; in iotlb_translate()
1146 io_len = min(len - s, size); in iotlb_translate()
1162 s += size; in iotlb_translate()
1163 addr += size; in iotlb_translate()
1384 int size = num * sizeof(*dst); in putused_iotlb() local
1388 if (ret != size) in putused_iotlb()
[all...]
/kernel/linux/linux-6.6/drivers/video/fbdev/core/
H A Dfbmem.c154 char* fb_get_buffer_offset(struct fb_info *info, struct fb_pixmap *buf, u32 size) in fb_get_buffer_offset() argument
171 if (offset + size > buf->size) { in fb_get_buffer_offset()
180 buf->offset = offset + size; in fb_get_buffer_offset()
360 u32 size = width * height, i; in fb_rotate_logo_ud() local
362 out += size - 1; in fb_rotate_logo_ud()
364 for (i = size; i--; ) in fb_rotate_logo_ud()
831 pr_warn("WARNING: fbcon: Driver '%s' missed to adjust virtual screen size (%ux%u vs. %ux%u)\n", in fb_set_var()
954 fb_info->pixmap.size = FBPIXMAPSIZE; in do_register_framebuffer()
/kernel/linux/linux-6.6/drivers/video/fbdev/
H A Dgbefb.c55 * size
997 unsigned long size = vma->vm_end - vma->vm_start; in gbefb_mmap() local
1006 if (size > gbe_mem_size) in gbefb_mmap()
1008 if (offset > gbe_mem_size - size) in gbefb_mmap()
1027 if ((offset + size) < TILE_SIZE) in gbefb_mmap()
1028 phys_size = size; in gbefb_mmap()
1037 size -= phys_size; in gbefb_mmap()
1040 } while (size); in gbefb_mmap()
1066 static DEVICE_ATTR(size, S_IRUGO, gbefb_show_memsize, NULL);
/kernel/linux/linux-6.6/drivers/usb/dwc2/
H A Dhcd_queue.c370 * @size: The number of bytes in the buffer (includes space for '\0').
375 void cat_printf(char **buf, size_t *size, const char *fmt, ...) in cat_printf() argument
380 if (*size == 0) in cat_printf()
384 i = vsnprintf(*buf, *size, fmt, args); in cat_printf()
387 if (i >= *size) { in cat_printf()
388 (*buf)[*size - 1] = '\0'; in cat_printf()
389 *buf += *size; in cat_printf()
390 *size = 0; in cat_printf()
393 *size -= i; in cat_printf()
1289 * dwc2_check_max_xfer_size() - Checks that the max transfer size allowe
[all...]
/kernel/linux/linux-6.6/drivers/usb/typec/ucsi/
H A Ducsi_ccg.c1005 if (fw->size < sizeof(fw_cfg) + FW_CFG_TABLE_SIG_SIZE) in ccg_check_fw_version()
1008 memcpy((uint8_t *)&fw_cfg, fw->data + fw->size - in ccg_check_fw_version()
1109 eof = fw->data + fw->size; in do_flash()
1115 if (fw->size < sizeof(fw_cfg) + sizeof(fw_cfg_sig)) in do_flash()
1118 memcpy((uint8_t *)&fw_cfg, fw->data + fw->size - in do_flash()
1125 eof = fw->data + fw->size - sizeof(fw_cfg) - sizeof(fw_cfg_sig); in do_flash()
1128 fw->data + fw->size - sizeof(fw_cfg_sig), sizeof(fw_cfg_sig)); in do_flash()
1173 p = strnchr(fw->data, fw->size, ':'); in do_flash()
/kernel/linux/linux-6.6/drivers/char/agp/
H A Dgeneric.c90 void agp_alloc_page_array(size_t size, struct agp_memory *mem) in agp_alloc_page_array() argument
92 mem->pages = kvmalloc(size, GFP_KERNEL); in agp_alloc_page_array()
293 current_size = A_SIZE_8(temp)->size; in agp_return_size()
296 current_size = A_SIZE_16(temp)->size; in agp_return_size()
299 current_size = A_SIZE_32(temp)->size; in agp_return_size()
302 current_size = A_SIZE_LVL2(temp)->size; in agp_return_size()
305 current_size = A_SIZE_FIX(temp)->size; in agp_return_size()
1356 return values[i].size; in agp3_generic_fetch_size()
1382 /* set aperture size */ in agp3_generic_configure()
/kernel/linux/linux-6.6/arch/x86/kernel/acpi/
H A Dboot.c112 * with sanity checks for phys == 0 and size == 0.
114 void __init __iomem *__acpi_map_table(unsigned long phys, unsigned long size) in __acpi_map_table() argument
117 if (!phys || !size) in __acpi_map_table()
120 return early_memremap(phys, size); in __acpi_map_table()
123 void __init __acpi_unmap_table(void __iomem *map, unsigned long size) in __acpi_unmap_table() argument
125 if (!map || !size) in __acpi_unmap_table()
128 early_memunmap(map, size); in __acpi_unmap_table()
237 * counting disabled CPUs. This allows us to size in acpi_parse_x2apic()
278 * counting disabled CPUs. This allows us to size in acpi_parse_lapic()
1889 void __init arch_reserve_mem_area(acpi_physical_address addr, size_t size) in arch_reserve_mem_area() argument
[all...]
/kernel/linux/linux-6.6/drivers/dma/
H A Dmv_xor.c488 u32 size; in mv_xor_add_io_win() local
515 ret = mvebu_mbus_get_io_win_info(addr, &size, &target, &attr); in mv_xor_add_io_win()
520 * Mask the base addr 'addr' according to 'size' read back from the in mv_xor_add_io_win()
524 size -= 1; in mv_xor_add_io_win()
525 addr &= ~size; in mv_xor_add_io_win()
540 writel(size & 0xffff0000, base + WINDOW_SIZE(i)); in mv_xor_add_io_win()
544 xordev->win_end[i] = addr + size; in mv_xor_add_io_win()
1182 writel((cs->size - 1) & 0xffff0000, base + WINDOW_SIZE(i)); in mv_xor_conf_mbus_windows()
1186 xordev->win_end[i] = cs->base + cs->size - 1; in mv_xor_conf_mbus_windows()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dfw_tracer.c134 tracer->buff.size = TRACE_BUFFER_SIZE_BYTE; in mlx5_fw_tracer_create_log_buf()
138 get_order(tracer->buff.size)); in mlx5_fw_tracer_create_log_buf()
147 dma = dma_map_single(ddev, buff, tracer->buff.size, DMA_FROM_DEVICE); in mlx5_fw_tracer_create_log_buf()
159 free_pages((unsigned long)tracer->buff.log_buf, get_order(tracer->buff.size)); in mlx5_fw_tracer_create_log_buf()
173 dma_unmap_single(ddev, tracer->buff.dma, tracer->buff.size, DMA_FROM_DEVICE); in mlx5_fw_tracer_destroy_log_buf()
174 free_pages((unsigned long)tracer->buff.log_buf, get_order(tracer->buff.size)); in mlx5_fw_tracer_destroy_log_buf()
209 MLX5_SET64(mkc, mkc, len, tracer->buff.size); in mlx5_fw_tracer_create_mkey()
709 block_count = tracer->buff.size / TRACER_BLOCK_SIZE_BYTE; in mlx5_fw_tracer_handle_traces()
/kernel/linux/linux-6.6/drivers/media/platform/st/sti/c8sectpfe/
H A Dc8sectpfe-core.c88 int pos, num_packets, n, size; in channel_swdemux_tsklet() local
105 size = wp - rp; in channel_swdemux_tsklet()
106 num_packets = size / PACKET_SIZE; in channel_swdemux_tsklet()
111 size, in channel_swdemux_tsklet()
498 * PID buffer needs to be aligned to size of the pid table in configure_memdma_and_inputblock()
949 if (fw->size < sizeof(struct elf32_hdr)) { in c8sectpfe_elf_sanity_check()
968 if (fw->size < ehdr->e_shoff + sizeof(struct elf32_shdr)) { in c8sectpfe_elf_sanity_check()
993 if (ehdr->e_phoff > fw->size) { in c8sectpfe_elf_sanity_check()
994 dev_err(fei->dev, "Firmware size is too small\n"); in c8sectpfe_elf_sanity_check()
1080 if (phdr->p_offset + phdr->p_filesz > fw->size) { in load_slim_core_fw()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dbcmsdh.c544 brcmf_dbg(SDIO, "addr = 0x%x, size = %d\n", addr, pkt->len); in brcmf_sdiod_recv_pkt()
567 brcmf_dbg(SDIO, "addr = 0x%x, size = %d\n", in brcmf_sdiod_recv_chain()
639 brcmf_dbg(SDIO, "addr = 0x%x, size = %d\n", addr, pktq->qlen); in brcmf_sdiod_send_pkt()
665 u8 *data, uint size) in brcmf_sdiod_ramrw()
672 dsize = min_t(uint, SBSDIO_SB_OFT_ADDR_LIMIT, size); in brcmf_sdiod_ramrw()
682 if ((sdaddr + size) & SBSDIO_SBWINDOW_MASK) in brcmf_sdiod_ramrw()
685 dsize = size; in brcmf_sdiod_ramrw()
690 while (size) { in brcmf_sdiod_ramrw()
723 size -= dsize; in brcmf_sdiod_ramrw()
724 if (size) { in brcmf_sdiod_ramrw()
664 brcmf_sdiod_ramrw(struct brcmf_sdio_dev *sdiodev, bool write, u32 address, u8 *data, uint size) brcmf_sdiod_ramrw() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/
H A Deeprom_4k.c76 static u32 ath9k_dump_4k_modal_eeprom(char *buf, u32 len, u32 size, in ath9k_dump_4k_modal_eeprom() argument
85 PR_EEP("ADC Desired size", modal_hdr->adcDesiredSize); in ath9k_dump_4k_modal_eeprom()
86 PR_EEP("PGA Desired size", modal_hdr->pgaDesiredSize); in ath9k_dump_4k_modal_eeprom()
131 u8 *buf, u32 len, u32 size) in ath9k_hw_4k_dump_eeprom()
138 len += scnprintf(buf + len, size - len, in ath9k_hw_4k_dump_eeprom()
140 len = ath9k_dump_4k_modal_eeprom(buf, len, size, in ath9k_hw_4k_dump_eeprom()
169 len += scnprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress", in ath9k_hw_4k_dump_eeprom()
173 if (len > size) in ath9k_hw_4k_dump_eeprom()
174 len = size; in ath9k_hw_4k_dump_eeprom()
180 u8 *buf, u32 len, u32 size) in ath9k_hw_4k_dump_eeprom()
130 ath9k_hw_4k_dump_eeprom(struct ath_hw *ah, bool dump_base_hdr, u8 *buf, u32 len, u32 size) ath9k_hw_4k_dump_eeprom() argument
179 ath9k_hw_4k_dump_eeprom(struct ath_hw *ah, bool dump_base_hdr, u8 *buf, u32 len, u32 size) ath9k_hw_4k_dump_eeprom() argument
[all...]

Completed in 63 milliseconds

1...<<961962963964965966967968969970>>...1710