/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/ |
H A D | eeprom_9287.c | 79 static u32 ar9287_dump_modal_eeprom(char *buf, u32 len, u32 size, in ar9287_dump_modal_eeprom() argument 92 PR_EEP("ADC Desired size", modal_hdr->adcDesiredSize); in ar9287_dump_modal_eeprom() 127 u8 *buf, u32 len, u32 size) in ath9k_hw_ar9287_dump_eeprom() 134 len += scnprintf(buf + len, size - len, in ath9k_hw_ar9287_dump_eeprom() 136 len = ar9287_dump_modal_eeprom(buf, len, size, in ath9k_hw_ar9287_dump_eeprom() 166 len += scnprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress", in ath9k_hw_ar9287_dump_eeprom() 170 if (len > size) in ath9k_hw_ar9287_dump_eeprom() 171 len = size; in ath9k_hw_ar9287_dump_eeprom() 177 u8 *buf, u32 len, u32 size) in ath9k_hw_ar9287_dump_eeprom() 126 ath9k_hw_ar9287_dump_eeprom(struct ath_hw *ah, bool dump_base_hdr, u8 *buf, u32 len, u32 size) ath9k_hw_ar9287_dump_eeprom() argument 176 ath9k_hw_ar9287_dump_eeprom(struct ath_hw *ah, bool dump_base_hdr, u8 *buf, u32 len, u32 size) ath9k_hw_ar9287_dump_eeprom() argument
|
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43/ |
H A D | radio_2057.c | 528 u16 size, i; in r2057_upload_inittabs() local 533 size = ARRAY_SIZE(r2057_rev4_init); in r2057_upload_inittabs() 538 size = ARRAY_SIZE(r2057_rev5_init); in r2057_upload_inittabs() 541 size = ARRAY_SIZE(r2057_rev7_init); in r2057_upload_inittabs() 547 size = ARRAY_SIZE(r2057_rev5a_init); in r2057_upload_inittabs() 553 size = ARRAY_SIZE(r2057_rev9_init); in r2057_upload_inittabs() 559 size = ARRAY_SIZE(r2057_rev14_init); in r2057_upload_inittabs() 567 for (i = 0; i < size; i++, table += 2) in r2057_upload_inittabs()
|
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/ |
H A D | dma.c | 47 int size; in mt76_alloc_txwi() local 49 size = L1_CACHE_ALIGN(dev->drv->txwi_size + sizeof(*t)); in mt76_alloc_txwi() 50 txwi = kzalloc(size, GFP_ATOMIC); in mt76_alloc_txwi() 694 int ret, size; in mt76_dma_alloc_queue() local 704 size = q->ndesc * sizeof(struct mt76_desc); in mt76_dma_alloc_queue() 705 q->desc = dmam_alloc_coherent(dev->dma_dev, size, &q->desc_dma, GFP_KERNEL); in mt76_dma_alloc_queue() 709 size = q->ndesc * sizeof(*q->entry); in mt76_dma_alloc_queue() 710 q->entry = devm_kzalloc(dev->dev, size, GFP_KERNEL); in mt76_dma_alloc_queue()
|
/kernel/linux/linux-6.6/drivers/net/wireless/rsi/ |
H A D | rsi_91x_sdio.c | 638 u32 *read_buf, u16 size) in rsi_sdio_master_reg_read() 674 if (size == 2) { in rsi_sdio_master_reg_read() 680 } else if (size == 1) { in rsi_sdio_master_reg_read() 701 unsigned long data, u16 size) in rsi_sdio_master_reg_write() 710 if (size == 2) { in rsi_sdio_master_reg_write() 712 } else if (size == 1) { in rsi_sdio_master_reg_write() 720 size = 4; in rsi_sdio_master_reg_write() 736 (u8 *)data_aligned, size); in rsi_sdio_master_reg_write() 802 rsi_dbg(ERR_ZONE, "%s: Pkt size is zero\n", __func__); in rsi_sdio_host_intf_read_pkt() 637 rsi_sdio_master_reg_read(struct rsi_hw *adapter, u32 addr, u32 *read_buf, u16 size) rsi_sdio_master_reg_read() argument 699 rsi_sdio_master_reg_write(struct rsi_hw *adapter, unsigned long addr, unsigned long data, u16 size) rsi_sdio_master_reg_write() argument
|
/kernel/linux/linux-6.6/drivers/perf/ |
H A D | arm_spe_pmu.c | 412 * the limit to half of the buffer size in snapshot mode in arm_spe_pmu_next_snapshot_off() 446 * 2. We used perf_aux_output_skip to consume handle->size bytes in __arm_spe_pmu_next_off() 447 * and CIRC_SPACE was used to compute the size, which always in __arm_spe_pmu_next_off() 452 * reduce handle->size to zero and end up reporting truncation. in __arm_spe_pmu_next_off() 458 delta = min(delta, handle->size); in __arm_spe_pmu_next_off() 464 if (!handle->size) in __arm_spe_pmu_next_off() 468 tail = PERF_IDX2OFF(handle->head + handle->size, buf); in __arm_spe_pmu_next_off() 489 if (handle->wakeup < (handle->head + handle->size) && head <= wakeup) in __arm_spe_pmu_next_off() 495 arm_spe_pmu_pad_buf(handle, handle->size); in __arm_spe_pmu_next_off() 555 u64 offset, size; in arm_spe_perf_aux_output_end() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/sti/ |
H A D | sti_hqvdp.c | 156 /* Min/Max size */ 853 int size; in sti_hqvdp_init() local 859 size = NB_VDP_CMD * sizeof(struct sti_hqvdp_cmd); in sti_hqvdp_init() 860 hqvdp->hqvdp_cmd = dma_alloc_wc(hqvdp->dev, size, in sti_hqvdp_init() 869 memset(hqvdp->hqvdp_cmd, 0, size); in sti_hqvdp_init() 931 if (firmware->size < sizeof(*header)) { in sti_hqvdp_start_xp70() 932 DRM_ERROR("Invalid firmware size (%zu)\n", firmware->size); in sti_hqvdp_start_xp70() 936 header->pmem_size + header->dmem_size) != firmware->size) { in sti_hqvdp_start_xp70() 940 firmware->size); in sti_hqvdp_start_xp70() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_scrn.c | 144 cmd->obj.size.width = mode->hdisplay; in vmw_sou_fifo_create() 145 cmd->obj.size.height = mode->vdisplay; in vmw_sou_fifo_create() 428 bo_params.size = new_state->crtc_w * new_state->crtc_h * 4; in vmw_sou_primary_plane_prepare_fb() 432 if (vps->bo_size == bo_params.size) { in vmw_sou_primary_plane_prepare_fb() 456 vps->bo_size = bo_params.size; in vmw_sou_primary_plane_prepare_fb() 593 blit->header.size = sizeof(blit->body) + sizeof(SVGASignedRect) * in vmw_sou_surface_pre_clip() 649 num_hits = (blit->header.size - sizeof(blit->body))/ in vmw_sou_surface_post_clip() 1007 cmd->header.size = sizeof(cmd->body) + region_size; in vmw_sou_surface_fifo_commit()
|
/kernel/linux/linux-6.6/drivers/isdn/hardware/mISDN/ |
H A D | avmfritz.c | 190 ReadFiFoISAC_V1(void *p, u8 off, u8 *data, int size) in ReadFiFoISAC_V1() argument 195 insb(fc->addr + CHIP_WINDOW, data, size); in ReadFiFoISAC_V1() 199 WriteFiFoISAC_V1(void *p, u8 off, u8 *data, int size) in WriteFiFoISAC_V1() argument 204 outsb(fc->addr + CHIP_WINDOW, data, size); in WriteFiFoISAC_V1() 226 ReadFiFoISAC_V2(void *p, u8 off, u8 *data, int size) in ReadFiFoISAC_V2() argument 232 for (i = 0; i < size; i++) in ReadFiFoISAC_V2() 237 WriteFiFoISAC_V2(void *p, u8 off, u8 *data, int size) in WriteFiFoISAC_V2() argument 243 for (i = 0; i < size; i++) in WriteFiFoISAC_V2()
|
/kernel/linux/linux-6.6/drivers/input/touchscreen/ |
H A D | sur40.c | 64 __le16 bb_size_x; /* size of bounding box */ 79 __le32 area; /* size in pixels/pressure (?) */ 95 * continue reading 16k blocks until header.size bytes read */ 99 __le32 size; /* always 0x0007e900 = 960x540 */ member 256 u8 command, u16 index, void *buffer, u16 size) in sur40_command() 261 0x00, index, buffer, size, 1000); in sur40_command() 484 dev_err(sur40->dev, "transfer size mismatch\n"); in sur40_poll() 575 if (le32_to_cpu(img->size) != sur40->pix_fmt.sizeimage) { in sur40_process_video() 576 dev_err(sur40->dev, "image size mismatch\n"); in sur40_process_video() 840 * per buffer and the size an 255 sur40_command(struct sur40_state *dev, u8 command, u16 index, void *buffer, u16 size) sur40_command() argument 870 unsigned long size = sur40->pix_fmt.sizeimage; sur40_buffer_prepare() local [all...] |
/kernel/linux/linux-6.6/sound/pci/ |
H A D | intel8x0m.c | 145 unsigned int size; member 373 if (ichdev->size == ichdev->fragsize) { in snd_intel8x0m_setup_periods() 380 bdbar[idx + 2] = cpu_to_le32(ichdev->physbuf + (ichdev->size >> 1)); in snd_intel8x0m_setup_periods() 389 bdbar[idx + 0] = cpu_to_le32(ichdev->physbuf + (((idx >> 1) * ichdev->fragsize) % ichdev->size)); in snd_intel8x0m_setup_periods() 397 ichdev->frags = ichdev->size / ichdev->fragsize; in snd_intel8x0m_setup_periods() 440 ichdev->position %= ichdev->size; in snd_intel8x0m_update() 554 if (ptr >= ichdev->size) in snd_intel8x0m_pcm_pointer() 566 ichdev->size = snd_pcm_lib_buffer_bytes(substream); in snd_intel8x0m_pcm_prepare()
|
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/x86_64/ |
H A D | processor.c | 193 "vaddr: 0x%lx page size: 0x%lx", vaddr, pg_size); in __virt_pg_map() 198 " paddr: 0x%lx page size: 0x%lx", paddr, pg_size); in __virt_pg_map() 240 "Region size not aligned: nr_bytes: 0x%lx, page size: 0x%lx", in virt_map_level() 941 int size = vm_check_cap(vcpu->vm, KVM_CAP_XSAVE2); in vcpu_save_xsave_state() local 943 if (size) { in vcpu_save_xsave_state() 944 state->xsave = malloc(size); in vcpu_save_xsave_state() 963 "Nested state size too big, %i > %zi", in vcpu_save_state() 989 state->nested.size = sizeof(state->nested_); in vcpu_save_state() 992 TEST_ASSERT(state->nested.size < in vcpu_save_state() [all...] |
/kernel/linux/linux-6.6/security/keys/ |
H A D | keyctl.c | 1856 size_t size = buflen; in keyctl_capabilities() local 1858 if (size > 0) { in keyctl_capabilities() 1859 if (size > sizeof(keyrings_capabilities)) in keyctl_capabilities() 1860 size = sizeof(keyrings_capabilities); in keyctl_capabilities() 1861 if (copy_to_user(_buffer, keyrings_capabilities, size) != 0) in keyctl_capabilities() 1863 if (size < buflen && in keyctl_capabilities() 1864 clear_user(_buffer + size, buflen - size) != 0) in keyctl_capabilities()
|
/kernel/linux/linux-6.6/kernel/trace/ |
H A D | trace.h | 78 #define __array(type, item, size) type item[size]; 82 * kernel_stack event with a fixed size caller field. But today the fix 83 * size is ignored by the kernel, and the real structure is dynamic. 85 * will be "unsigned long caller[] __counted_by(size)" 88 #define __stack_array(type, item, size, field) type item[] __counted_by(field); 91 #define __array_desc(type, container, item, size) 1150 * @size: buffer size 1156 unsigned size; member 1325 int size; global() member [all...] |
/kernel/linux/linux-6.6/net/batman-adv/ |
H A D | network-coding.c | 405 for (i = 0; i < hash->size; i++) { in batadv_nc_purge_orig_hash() 437 for (i = 0; i < hash->size; i++) { in batadv_nc_purge_paths() 491 * @size: size of the hash table 495 static u32 batadv_nc_hash_choose(const void *data, u32 size) in batadv_nc_hash_choose() argument 503 return hash % size; in batadv_nc_hash_choose() 550 index = batadv_nc_hash_choose(data, hash->size); in batadv_nc_hash_find() 683 for (i = 0; i < hash->size; i++) { in batadv_nc_process_nc_paths() 1275 idx = batadv_nc_hash_choose(&nc_path_key, hash->size); in batadv_nc_path_search() 1754 index = batadv_nc_hash_choose(&nc_path_key, hash->size); in batadv_nc_find_decoding_packet() [all...] |
/kernel/linux/linux-6.6/net/9p/ |
H A D | trans_fd.c | 247 * @len: size of receive buffer 299 p9_debug(P9_DEBUG_TRANS, "read mux %p pos %zd size: %zd = %zd\n", in p9_read_work() 317 /* Header size */ in p9_read_work() 318 m->rc.size = P9_HDRSZ; in p9_read_work() 319 err = p9_parse_header(&m->rc, &m->rc.size, NULL, NULL, 0); in p9_read_work() 327 "mux %p pkt: size: %d bytes tag: %d\n", in p9_read_work() 328 m, m->rc.size, m->rc.tag); in p9_read_work() 338 if (m->rc.size > m->rreq->rc.capacity) { in p9_read_work() 340 "requested packet size too big: %d for tag %d with capacity %zd\n", in p9_read_work() 341 m->rc.size, in p9_read_work() [all...] |
/kernel/linux/linux-6.6/kernel/sched/ |
H A D | psi.c | 163 #define WINDOW_MAX_US 10000000 /* Max window size is 10s */ 425 if (elapsed > win->size) in window_update() 430 remaining = win->size - elapsed; in window_update() 431 growth += div64_u64(win->prev_growth * remaining, win->size); in window_update() 492 if (now < t->last_event_time + t->win.size) in update_triggers() 1333 t->win.size = window_us * NSEC_PER_USEC; in psi_trigger_create() 1364 div_u64(t->win.size, UPDATES_PER_WINDOW)); in psi_trigger_create() 1422 * iff the destroying trigger had the min window size. in psi_trigger_destroy() 1424 if (group->rtpoll_min_period == div_u64(t->win.size, UPDATES_PER_WINDOW)) { in psi_trigger_destroy() 1426 period = min(period, div_u64(tmp->win.size, in psi_trigger_destroy() [all...] |
/kernel/linux/linux-6.6/sound/soc/ti/ |
H A D | omap-mcbsp.c | 527 const char *buf, size_t size) \ 541 return size; \ 576 size_t size) in dma_op_mode_store() 587 size = -EBUSY; in dma_op_mode_store() 595 return size; in dma_op_mode_store() 737 * period size in THRESHOLD mode, otherwise use McBSP threshold = 1 in omap_mcbsp_set_threshold() 761 int size; in omap_mcbsp_hwrule_min_buffersize() local 764 size = mcbsp->pdata->buffer_size; in omap_mcbsp_hwrule_min_buffersize() 766 frames.min = size / channels->min; in omap_mcbsp_hwrule_min_buffersize() 784 * This means that the size o in omap_mcbsp_dai_startup() 574 dma_op_mode_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) dma_op_mode_store() argument [all...] |
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | relo_core.c | 35 int size; in btf__resolve_size() local 38 t = btf_resolve_size(btf, t, &size); in btf__resolve_size() 41 return size; in btf__resolve_size() 77 /* not a flexible array, if not inside a struct or has non-zero size */ in is_flex_arr() 404 * - for INT, size and signedness are ignored; 709 /* remember field size for load/store mem size */ in bpf_core_calc_field_relo() 737 byte_sz = mt->size; in bpf_core_calc_field_relo() 739 /* figure out smallest int size necessary for bitfield load */ in bpf_core_calc_field_relo() 905 /* Validate if it's safe to adjust load/store memory size in bpf_core_calc_relo() [all...] |
/kernel/linux/linux-6.6/net/sunrpc/ |
H A D | sched.c | 1056 size_t size = rqst->rq_callsize + rqst->rq_rcvsize; in rpc_malloc() local 1060 size += sizeof(struct rpc_buffer); in rpc_malloc() 1061 if (size <= RPC_BUFFER_MAXSIZE) { in rpc_malloc() 1067 buf = kmalloc(size, gfp); in rpc_malloc() 1072 buf->len = size; in rpc_malloc() 1087 size_t size; in rpc_free() local 1091 size = buf->len; in rpc_free() 1093 if (size <= RPC_BUFFER_MAXSIZE) in rpc_free()
|
/test/xts/hats/hdf/usb/mtpTest/common/ |
H A D | usbfn_mtp_test.cpp | 82 size_t printLen = data.size(); in PrintVector() 159 HDF_LOGE("UsbfnMtpTest::GenerateFile fail to truncate file to size: %{public}" PRId64 "", fileSize); in GenerateFile() 238 * @tc.desc: Positive test: parameters correctly, read length less then one packet size 247 std::cout << "SUB_USB_DeviceManager_HDI_MTPPTP_0100===>use libusb in PC launch bulk-out transfer(size=" in HWTEST_F() 254 ASSERT_EQ(devData.size(), static_cast<size_t>(BULK_OUT_LESS_THEN_ONCE)); in HWTEST_F() 261 * @tc.desc: Positive test: parameters correctly, read length exactly one packet size 270 std::cout << "SUB_USB_DeviceManager_HDI_MTPPTP_0200===>use libusb in PC launch bulk-out transfer(size=" in HWTEST_F() 277 ASSERT_EQ(devData.size(), static_cast<size_t>(BULK_OUT_ONCE_MAX_SIZE)); in HWTEST_F() 284 * @tc.desc: Positive test: parameters correctly, read length more then one packet size, please read again 293 std::cout << "SUB_USB_DeviceManager_HDI_MTPPTP_0300===>use libusb in PC launch bulk-out transfer(size in HWTEST_F() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | av1dec.c | 394 uint32_t size = 0, size_bytes = 0; in get_tiles_info() local 415 size = 0; in get_tiles_info() 417 size |= bytestream2_get_byteu(&gb) << 8 * i; in get_tiles_info() 418 if (bytestream2_get_bytes_left(&gb) <= size) in get_tiles_info() 420 size++; in get_tiles_info() 422 s->tile_group_info[tile_num].tile_size = size; in get_tiles_info() 427 bytestream2_skipu(&gb, size); in get_tiles_info() 941 frame->pkt_size = pkt->size; in set_output_frame()
|
/third_party/elfutils/src/ |
H A D | ar.c | 831 size_t size; member 1159 newp->size = arhdr->ar_size; in do_oper_insert() 1301 found[cnt]->mem = elf_rawfile (newelf, &found[cnt]->size); in do_oper_insert() 1382 cur_off += (((memp->size + 1) & ~((off_t) 1)) in do_oper_insert() 1501 all->size)) in do_oper_insert() 1513 if (unlikely (write_retry (newfd, all->mem, all->size) in do_oper_insert() 1514 != (off_t) all->size)) in do_oper_insert() 1517 /* Pad the file if its size is odd. */ in do_oper_insert() 1518 if ((all->size & 1) != 0) in do_oper_insert()
|
/third_party/ffmpeg/libavdevice/ |
H A D | v4l2.c | 396 "buf_len[%d] = %d < expected frame size %d\n", in mmap_init() 513 pkt->size = 0; in mmap_read_frame() 579 pkt->size = buf.bytesused; in mmap_read_frame() 594 pkt->buf = av_buffer_create(pkt->data, pkt->size, mmap_release_buffer, in mmap_read_frame() 606 return pkt->size; in mmap_read_frame() 925 "Querying the device for the current frame size\n"); in v4l2_read_header() 936 "Setting frame size to %dx%d\n", s->width, s->height); in v4l2_read_header() 1001 return pkt->size; in v4l2_read_packet() 1045 int fd = -1, size; in v4l2_get_device_list() local 1051 size in v4l2_get_device_list() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_fillborders.c | 398 static int lerp8(int fill, int src, int pos, int size) in lerp8() argument 400 return av_clip_uint8(((fill * 256 * pos / size) + (src * 256 * (size - pos) / size)) >> 8); in lerp8() 403 static int lerp16(int fill, int src, int pos, int size, int depth) in lerp16() argument 405 return av_clip_uintp2_c(((fill * (1LL << depth) * pos / size) + (src * (1LL << depth) * (size - pos) / size)) >> depth, depth); in lerp16() 617 av_log(ctx, AV_LOG_ERROR, "Borders are bigger than input frame size.\n"); in config_input()
|
/third_party/ffmpeg/libavutil/ |
H A D | eval.c | 740 static int expr_count(AVExpr *e, unsigned *counter, int size, int type) in expr_count() argument 744 if (!e || !counter || !size) in expr_count() 748 expr_count(e->param[i], counter, size, type); in expr_count() 750 if (e->type == type && e->const_index < size) in expr_count() 756 int av_expr_count_vars(AVExpr *e, unsigned *counter, int size) in av_expr_count_vars() argument 758 return expr_count(e, counter, size, e_const); in av_expr_count_vars() 761 int av_expr_count_func(AVExpr *e, unsigned *counter, int size, int arg) in av_expr_count_func() argument 763 return expr_count(e, counter, size, ((int[]){e_const, e_func1, e_func2})[arg]); in av_expr_count_func()
|