/kernel/linux/linux-6.6/drivers/staging/media/ipu3/ |
H A D | ipu3.c | 25 * pre-allocated buffer size for IMGU dummy buffers. Those 83 size_t size; in imgu_dummybufs_preallocate() local 87 size = css_queue_buf_size_map[i]; in imgu_dummybufs_preallocate() 93 if (i == IMGU_QUEUE_MASTER || size == 0) in imgu_dummybufs_preallocate() 97 &imgu_pipe->queues[i].dmap, size)) { in imgu_dummybufs_preallocate() 111 size_t size; in imgu_dummybufs_init() local 132 size = meta->buffersize; in imgu_dummybufs_init() 134 size = mpix->plane_fmt[0].sizeimage; in imgu_dummybufs_init() 138 size)) { in imgu_dummybufs_init()
|
/kernel/linux/linux-6.6/drivers/tty/serial/ |
H A D | serial_txx9.c | 587 /* byte size and parity */ in serial_txx9_set_termios() 700 unsigned int size = TXX9_REGION_SIZE; in serial_txx9_request_resource() local 708 if (!request_mem_region(up->mapbase, size, "serial_txx9")) { in serial_txx9_request_resource() 714 up->membase = ioremap(up->mapbase, size); in serial_txx9_request_resource() 716 release_mem_region(up->mapbase, size); in serial_txx9_request_resource() 723 if (!request_region(up->iobase, size, "serial_txx9")) in serial_txx9_request_resource() 732 unsigned int size = TXX9_REGION_SIZE; in serial_txx9_release_resource() local 744 release_mem_region(up->mapbase, size); in serial_txx9_release_resource() 748 release_region(up->iobase, size); in serial_txx9_release_resource()
|
/kernel/linux/linux-6.6/drivers/remoteproc/ |
H A D | qcom_q6v5_pas.c | 110 void *dest, size_t offset, size_t size) in adsp_segment_dump() 116 if (total_offset < 0 || total_offset + size > adsp->mem_size) { in adsp_segment_dump() 118 "invalid copy request for segment %pad with offset %zu and size %zu)\n", in adsp_segment_dump() 119 &segment->da, offset, size); in adsp_segment_dump() 120 memset(dest, 0xff, size); in adsp_segment_dump() 124 memcpy_fromio(dest, adsp->mem_region + total_offset, size); in adsp_segment_dump() 555 adsp->mem_size = rmem->size; in adsp_alloc_memory_region() 580 adsp->dtb_mem_size = rmem->size; in adsp_alloc_memory_region() 614 adsp->region_assign_size = rmem->size; in adsp_assign_memory_region() 109 adsp_segment_dump(struct rproc *rproc, struct rproc_dump_segment *segment, void *dest, size_t offset, size_t size) adsp_segment_dump() argument
|
/kernel/linux/linux-6.6/drivers/comedi/drivers/ |
H A D | vmk80xx.c | 222 size_t size; in vmk80xx_reset_device() local 225 size = usb_endpoint_maxp(devpriv->ep_tx); in vmk80xx_reset_device() 226 memset(devpriv->usb_tx_buf, 0, size); in vmk80xx_reset_device() 680 size_t size; in vmk80xx_alloc_usb_buffers() local 682 size = max(usb_endpoint_maxp(devpriv->ep_rx), MIN_BUF_SIZE); in vmk80xx_alloc_usb_buffers() 683 devpriv->usb_rx_buf = kzalloc(size, GFP_KERNEL); in vmk80xx_alloc_usb_buffers() 687 size = max(usb_endpoint_maxp(devpriv->ep_tx), MIN_BUF_SIZE); in vmk80xx_alloc_usb_buffers() 688 devpriv->usb_tx_buf = kzalloc(size, GFP_KERNEL); in vmk80xx_alloc_usb_buffers()
|
/kernel/linux/linux-6.6/drivers/cxl/core/ |
H A D | memdev.c | 89 __ATTR(size, 0444, ram_size_show, NULL); 102 __ATTR(size, 0444, pmem_size_show, NULL); 809 u32 size) in cxl_fw_prepare() 814 if (!size) in cxl_fw_prepare() 817 mds->fw.oneshot = struct_size(transfer, data, size) < in cxl_fw_prepare() 834 u32 offset, u32 size, u32 *written) in cxl_fw_write() 856 * Pick transfer size based on mds->payload_size @size must bw 128-byte in cxl_fw_write() 861 cur_size = min_t(size_t, size, mds->payload_size - sizeof(*transfer)); in cxl_fw_write() 863 remaining = size in cxl_fw_write() 808 cxl_fw_prepare(struct fw_upload *fwl, const u8 *data, u32 size) cxl_fw_prepare() argument 833 cxl_fw_write(struct fw_upload *fwl, const u8 *data, u32 offset, u32 size, u32 *written) cxl_fw_write() argument [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/ |
H A D | user_exp_rcv.c | 227 * RcvArray group size to produce the number of full groups 376 grp->size - grp->used); in hfi1_user_exp_rcv_setup() 387 if (grp->used == grp->size) in hfi1_user_exp_rcv_setup() 594 * 1. The max buffer size is MAX_EXPECTED_BUFFER. in find_phys_blocks() 595 * If the total set size is bigger than that in find_phys_blocks() 597 * 2. The buffer size has to be a power of two. If in find_phys_blocks() 599 * 2 and program that size. in find_phys_blocks() 652 * -EINVAL if the requested count is larger than the size of the group, 668 /* Count should never be larger than the group size */ in program_rcvarray() 669 if (count > grp->size) in program_rcvarray() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/ |
H A D | mr.c | 418 u64 iova, u64 size, u32 access, int npages, in mlx4_mr_alloc_reserved() 422 mr->size = size; in mlx4_mr_alloc_reserved() 527 int mlx4_mr_alloc(struct mlx4_dev *dev, u32 pd, u64 iova, u64 size, u32 access, in mlx4_mr_alloc() argument 537 err = mlx4_mr_alloc_reserved(dev, index, pd, iova, size, in mlx4_mr_alloc() 590 u64 iova, u64 size, int npages, in mlx4_mr_rereg_mem_write() 600 mpt_entry->length = cpu_to_be64(size); in mlx4_mr_rereg_mem_write() 650 mpt_entry->length = cpu_to_be64(mr->size); in mlx4_mr_enable() 417 mlx4_mr_alloc_reserved(struct mlx4_dev *dev, u32 mridx, u32 pd, u64 iova, u64 size, u32 access, int npages, int page_shift, struct mlx4_mr *mr) mlx4_mr_alloc_reserved() argument 589 mlx4_mr_rereg_mem_write(struct mlx4_dev *dev, struct mlx4_mr *mr, u64 iova, u64 size, int npages, int page_shift, struct mlx4_mpt_entry *mpt_entry) mlx4_mr_rereg_mem_write() argument
|
/kernel/linux/linux-6.6/drivers/net/hamradio/ |
H A D | mkiss.c | 117 static unsigned short calc_crc_flex(unsigned char *cp, int size) in calc_crc_flex() argument 121 while (size--) in calc_crc_flex() 127 static int check_crc_flex(unsigned char *cp, int size) in check_crc_flex() argument 131 if (size < 3) in check_crc_flex() 134 while (size--) in check_crc_flex() 143 static int check_crc_16(unsigned char *cp, int size) in check_crc_16() argument 147 if (size < 3) in check_crc_16() 150 crc = crc16(0, cp, size); in check_crc_16()
|
/kernel/linux/linux-6.6/drivers/net/wan/ |
H A D | hd64570.c | 686 /* Round RAM size to 32 bits, fill from end to start */ in sca_detect_ram() 688 u32 size = winsize(card); in sca_detect_ram() local 690 openwin(card, (i - 4) / size); /* select last window */ in sca_detect_ram() 694 if ((i + 4) % size == 0) in sca_detect_ram() 695 openwin(card, i / size); in sca_detect_ram() 696 writel(i ^ 0x12345678, rambase + i % size); in sca_detect_ram() 700 if (i % size == 0) in sca_detect_ram() 701 openwin(card, i / size); in sca_detect_ram() 703 if (readl(rambase + i % size) != (i ^ 0x12345678)) in sca_detect_ram()
|
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | firmware.c | 209 size_t size; in brcmf_init_nvram_parser() local 213 /* Limit size to MAX_NVRAM_SIZE, some files contain lot of comment */ in brcmf_init_nvram_parser() 215 size = BRCMF_FW_MAX_NVRAM_SIZE; in brcmf_init_nvram_parser() 217 size = data_len; in brcmf_init_nvram_parser() 219 size += strlen(BRCMF_FW_DEFAULT_BOARDREV) + 1; in brcmf_init_nvram_parser() 220 size += BRCMF_FW_MACADDR_LEN + 1; in brcmf_init_nvram_parser() 222 size += 1 + 3 + sizeof(u32); in brcmf_init_nvram_parser() 223 nvp->nvram = kzalloc(size, GFP_KERNEL); in brcmf_init_nvram_parser() 555 data_len = fw->size; in brcmf_fw_request_nvram_done()
|
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-trans.h | 76 * size and some flags. 89 * 13-00: RX frame size 132 * size of the largest command we send to uCode, except for commands that 369 int size; member 373 { .arr = x, .size = ARRAY_SIZE(x) } 402 * @rx_buf_size: RX buffer size needed for A-MSDUs 403 * if unset 4k will be the RX buffer size 603 int size, unsigned int queue_wdg_timeout); 732 * @size: size o 737 int size; global() member 887 size_t size; global() member 1022 u16 size; global() member 1340 iwl_trans_txq_alloc(struct iwl_trans *trans, u32 flags, u32 sta_mask, u8 tid, int size, unsigned int wdg_timeout) iwl_trans_txq_alloc() argument [all...] |
/kernel/linux/linux-6.6/drivers/nvdimm/ |
H A D | pfn_devs.c | 243 /* no size to convey if the pfn instance is disabled */ in size_show() 250 static DEVICE_ATTR_RO(size); 382 * re-enable the namespace with correct size so that we can access in nd_pfn_clear_memmap_errors() 515 "init failed, page size mismatch %d\n", in nd_pfn_validate() 523 "init failed, struct page size mismatch %d\n", in nd_pfn_validate() 591 dev_err(&nd_pfn->dev, "pfn array size exceeds capacity of %s\n", in nd_pfn_validate() 731 resource_size_t start, size; in nd_pfn_init() local 769 size = resource_size(&nsio->res); in nd_pfn_init() 770 npfns = PHYS_PFN(size - SZ_8K); in nd_pfn_init() 784 end_trunc = start + size in nd_pfn_init() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw88/ |
H A D | usb.c | 436 unsigned int desclen, headsize, size; in rtw_usb_write_data() local 440 size = pkt_info->tx_pkt_size; in rtw_usb_write_data() 445 skb = dev_alloc_skb(headsize + size); in rtw_usb_write_data() 450 skb_put_data(skb, buf, size); in rtw_usb_write_data() 465 u32 size) in rtw_usb_write_data_rsvd_page() 470 pkt_info.tx_pkt_size = size; in rtw_usb_write_data_rsvd_page() 477 static int rtw_usb_write_data_h2c(struct rtw_dev *rtwdev, u8 *buf, u32 size) in rtw_usb_write_data_h2c() argument 481 pkt_info.tx_pkt_size = size; in rtw_usb_write_data_h2c() 464 rtw_usb_write_data_rsvd_page(struct rtw_dev *rtwdev, u8 *buf, u32 size) rtw_usb_write_data_rsvd_page() argument
|
/kernel/linux/linux-6.6/drivers/net/wireless/st/cw1200/ |
H A D | wsm.h | 1395 size_t size = __le32_to_cpu(ft->num) * in wsm_set_beacon_filter_table() local 1399 return wsm_write_mib(priv, WSM_MIB_ID_BEACON_FILTER_TABLE, ft, size); in wsm_set_beacon_filter_table() 1550 size_t size = 4 + arg->num * sizeof(struct wsm_tx_rate_retry_policy); in wsm_set_tx_rate_retry_policy() local 1552 size); in wsm_set_tx_rate_retry_policy() 1570 size_t size = sizeof(struct wsm_ether_type_filter_hdr) + in wsm_set_ether_type_filter() local 1573 arg, size); in wsm_set_ether_type_filter() 1591 size_t size = sizeof(struct wsm_udp_port_filter_hdr) + in wsm_set_udp_port_filter() local 1594 arg, size); in wsm_set_udp_port_filter()
|
/kernel/linux/linux-6.6/drivers/of/ |
H A D | overlay.c | 291 * Properties "#address-cells" and "#size-cells" are not updated if they 327 } else if (!of_prop_cmp(prop->name, "#size-cells")) { in add_changeset_property() 329 pr_err("ERROR: changing value of #size-cells is not allowed in %pOF\n", in add_changeset_property() 412 int ret = 0, size; in add_changeset_node() local 432 phandle = __of_get_property(node, "phandle", &size); in add_changeset_node() 433 if (phandle && (size == 4)) in add_changeset_node() 994 u32 size; in of_overlay_fdt_apply() local 1010 size = fdt_totalsize(overlay_fdt); in of_overlay_fdt_apply() 1011 if (overlay_fdt_size < size) in of_overlay_fdt_apply() 1040 new_fdt = kmalloc(size in of_overlay_fdt_apply() [all...] |
/kernel/linux/linux-6.6/drivers/pci/controller/dwc/ |
H A D | pcie-designware-ep.c | 188 u64 pci_addr, size_t size) in dw_pcie_ep_outbound_atu() 201 phys_addr, pci_addr, size); in dw_pcie_ep_outbound_atu() 233 size_t size = epf_bar->size; in dw_pcie_ep_set_bar() local 257 dw_pcie_writel_dbi2(pci, reg, lower_32_bits(size - 1)); in dw_pcie_ep_set_bar() 261 dw_pcie_writel_dbi2(pci, reg + 4, upper_32_bits(size - 1)); in dw_pcie_ep_set_bar() 304 phys_addr_t addr, u64 pci_addr, size_t size) in dw_pcie_ep_map_addr() 310 ret = dw_pcie_ep_outbound_atu(ep, func_no, addr, pci_addr, size); in dw_pcie_ep_map_addr() 676 * size in the range from 1 MB to 512 GB. Advertise support in dw_pcie_ep_init_complete() 677 * for 1 MB BAR size onl in dw_pcie_ep_init_complete() 186 dw_pcie_ep_outbound_atu(struct dw_pcie_ep *ep, u8 func_no, phys_addr_t phys_addr, u64 pci_addr, size_t size) dw_pcie_ep_outbound_atu() argument 303 dw_pcie_ep_map_addr(struct pci_epc *epc, u8 func_no, u8 vfunc_no, phys_addr_t addr, u64 pci_addr, size_t size) dw_pcie_ep_map_addr() argument [all...] |
/kernel/linux/linux-6.6/drivers/pci/ |
H A D | xen-pcifront.c | 176 int where, int size, u32 *val) in pcifront_bus_read() 185 .size = size, in pcifront_bus_read() 191 "read dev=%04x:%02x:%02x.%d - offset %x size %d\n", in pcifront_bus_read() 193 PCI_FUNC(devfn), where, size); in pcifront_bus_read() 213 int where, int size, u32 val) in pcifront_bus_write() 221 .size = size, in pcifront_bus_write() 228 "write dev=%04x:%02x:%02x.%d - offset %x size %d val %x\n", in pcifront_bus_write() 230 PCI_SLOT(devfn), PCI_FUNC(devfn), where, size, va in pcifront_bus_write() 175 pcifront_bus_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) pcifront_bus_read() argument 212 pcifront_bus_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) pcifront_bus_write() argument [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | sev-shared.c | 345 * entries is the enabled XSAVE area size advertised via EBX. 349 * base/legacy XSAVE area size (XCR0=1 or XCR0=3), and then calculate the 350 * XSAVE area size using subfunctions 2 through 64, as documented in APM 353 * Since base/legacy XSAVE area size is documented as 0x240, use that value 354 * directly rather than relying on the base size in the CPUID table. 356 * Return: XSAVE area size on success, 0 otherwise. 411 * to the base/legacy XSAVE area size (XCR0=1 or XCR0=3, XSS=0). in snp_cpuid_get_validated_func() 488 * The PPR and APM aren't clear on what size should be in snp_cpuid_postprocess() 726 size_t size; in vc_ioio_exitinfo() local 791 size in vc_ioio_exitinfo() 1078 unsigned int size; pvalidate_pages() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/cxgb4/ |
H A D | iw_cxgb4.h | 205 return (int)(rdev->lldi.vr->stag.size >> 5); in c4iw_num_stags() 919 return infop->vr->ocq.size > 0; in ocqp_supported() 999 u32 c4iw_rqtpool_alloc(struct c4iw_rdev *rdev, int size); 1000 void c4iw_rqtpool_free(struct c4iw_rdev *rdev, u32 addr, int size); 1001 u32 c4iw_pblpool_alloc(struct c4iw_rdev *rdev, int size); 1002 void c4iw_pblpool_free(struct c4iw_rdev *rdev, u32 addr, int size); 1003 u32 c4iw_ocqp_pool_alloc(struct c4iw_rdev *rdev, int size); 1004 void c4iw_ocqp_pool_free(struct c4iw_rdev *rdev, u32 addr, int size);
|
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | radeon_uvd.c | 186 bo_size = RADEON_GPU_PAGE_ALIGN(rdev->uvd_fw->size + 8) + in radeon_uvd_init() 285 unsigned size; in radeon_uvd_resume() local 291 memcpy_toio((void __iomem *)rdev->uvd.cpu_addr, rdev->uvd_fw->data, rdev->uvd_fw->size); in radeon_uvd_resume() 293 size = radeon_bo_size(rdev->uvd.vcpu_bo); in radeon_uvd_resume() 294 size -= rdev->uvd_fw->size; in radeon_uvd_resume() 297 ptr += rdev->uvd_fw->size; in radeon_uvd_resume() 299 memset_io((void __iomem *)ptr, 0, size); in radeon_uvd_resume() 499 /* it's a create msg, calc image size (width * height) */ in radeon_uvd_cs_msg()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | head.c | 234 int size; in nv50_head_atomic_check_lut() local 238 size = drm_color_lut_size(ilut); in nv50_head_atomic_check_lut() 239 if (!head->func->ilut_check(size)) { in nv50_head_atomic_check_lut() 240 NV_ATOMIC(drm, "Invalid size %d for degamma on [CRTC:%d:%s]\n", in nv50_head_atomic_check_lut() 241 size, crtc->base.id, crtc->name); in nv50_head_atomic_check_lut() 266 size = 0; in nv50_head_atomic_check_lut() 268 size = drm_color_lut_size(olut); in nv50_head_atomic_check_lut() 271 if (!head->func->olut(head, asyh, size)) { in nv50_head_atomic_check_lut() 272 NV_ATOMIC(drm, "Invalid size %d for gamma on [CRTC:%d:%s]\n", in nv50_head_atomic_check_lut() 273 size, crt in nv50_head_atomic_check_lut() [all...] |
/kernel/linux/linux-6.6/drivers/input/rmi4/ |
H A D | rmi_f11.c | 41 * size and layout of the control registers for a given sensor can be determined 45 * its touch data and other interesting stuff. The size and layout of a 50 * we need to use that data to compute the size of the control and data 54 * directly generate the input events, but their size, location and contents 330 * @x_sensor_size_mm: size of the sensor in millimeters on the X axis. 331 * @y_sensor_size_mm: size of the sensor in millimeters on the Y axis. 595 struct rmi_2d_sensor *sensor, int size) in rmi_f11_finger_handler() 605 if (abs_size > size) in rmi_f11_finger_handler() 606 abs_fingers = size / RMI_F11_ABS_BYTES; in rmi_f11_finger_handler() 645 if ((abs_size + sensor->nbr_fingers * RMI_F11_REL_BYTES) > size) in rmi_f11_finger_handler() 594 rmi_f11_finger_handler(struct f11_data *f11, struct rmi_2d_sensor *sensor, int size) rmi_f11_finger_handler() argument [all...] |
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | libbpf.h | 52 LIBBPF_API int libbpf_strerror(int err, char *buf, size_t size); 113 /* size of this struct, for forward/backward compatibility */ 119 * name and will override default "<addr>-<buf-size>" name; 453 /* size of this struct, for forward/backward compatibility */ 488 /* size of this struct, for forward/backward compatibility */ 511 /* size of this struct, for forward/backward compatibility */ 534 /* size of this struct, for forward/backward compatibility */ 585 /* size of this struct, for forward/backward compatibility */ 631 /* size of this struct, for forward/backward compatibility */ 696 /* size o [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | s390-cpumsf.c | 21 * up to 256 entries describing offset and size of the AUXTRACE data in the 44 * the offset and size of a CPU's auxtrace data. During auxtrace processing 55 * filled with data (offset/size pairs) and the auxtrace_heap is populated. 359 /* Test a sample data block. It must be 4KB or a multiple thereof in size and 364 * basic set entry size and diagnostic set entry size. 380 if (len & (S390_CPUMSF_PAGESZ - 1)) /* Illegal size */ in s390_cpumsf_validate() 443 ". ... s390 AUX data: size %zu bytes\n", in s390_cpumsf_dump() 448 pr_err("Invalid AUX trace data block size:%zu" in s390_cpumsf_dump() 534 event.sample.header.size in s390_cpumsf_make_event() [all...] |
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/drm/ |
H A D | i915_drm.h | 381 int size; member 390 int size; member 414 __u64 size; member 422 __u64 size; member 429 __u64 size; member 436 __u64 size; member 721 __u32 size; member 866 __u16 size; member
|