/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/ |
H A D | kvm_util.c | 23 /* Aligns x up to the next multiple of size. Size must be a power of 2. */ 24 static void *align(void *x, size_t size) in align() argument 26 size_t mask = size - 1; in align() 27 TEST_ASSERT(size != 0 && !(size & (size - 1)), in align() 28 "size not a power of 2: %lu", size); in align() 300 " guest_phys_addr: 0x%llx size: 0x%llx", in kvm_vm_restart() 638 " existing guest_paddr: 0x%lx size in vm_userspace_mem_region_add() 1075 size_t size = npages * page_size; virt_map() local 1860 vm_calc_num_guest_pages(enum vm_guest_mode mode, size_t size) vm_calc_num_guest_pages() argument [all...] |
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
H A D | elants_i2c.c | 175 const void *data, size_t size) in elants_i2c_send() 179 ret = i2c_master_send(client, data, size); in elants_i2c_send() 180 if (ret == size) in elants_i2c_send() 187 __func__, (int)size, data, ret); in elants_i2c_send() 192 static int elants_i2c_read(struct i2c_client *client, void *data, size_t size) in elants_i2c_read() argument 196 ret = i2c_master_recv(client, data, size); in elants_i2c_read() 197 if (ret == size) in elants_i2c_read() 667 fw_remark_id = get_unaligned_le16(&fw->data[fw->size - 4]); in elants_i2c_validate_remark_id() 812 n_fw_pages = fw->size / ELAN_FW_PAGESIZE; in elants_i2c_do_update_firmware() 853 if (fw->size in elants_i2c_fw_update() 174 elants_i2c_send(struct i2c_client *client, const void *data, size_t size) elants_i2c_send() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/cx25821/ |
H A D | cx25821-core.c | 539 /* IQ size */ in cx25821_sram_channel_setup_audio() 565 "cdt size", in cx25821_sram_channel_dump() 567 "iq size", in cx25821_sram_channel_dump() 627 "cdt size", in cx25821_sram_channel_dump_audio() 629 "iq size", in cx25821_sram_channel_dump_audio() 974 unsigned int size) in cx25821_riscmem_alloc() 979 if (risc->cpu && risc->size < size) { in cx25821_riscmem_alloc() 980 pci_free_consistent(pci, risc->size, risc->cpu, risc->dma); in cx25821_riscmem_alloc() 984 cpu = pci_zalloc_consistent(pci, size, in cx25821_riscmem_alloc() 972 cx25821_riscmem_alloc(struct pci_dev *pci, struct cx25821_riscmem *risc, unsigned int size) cx25821_riscmem_alloc() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/tw686x/ |
H A D | tw686x-video.c | 66 desc->size); in tw686x_buf_done() 95 pci_free_consistent(dev->pci_dev, desc->size, in tw686x_memcpy_dma_free() 121 vc->dma_descs[pb].size = len; in tw686x_memcpy_dma_alloc() 260 if (desc->size) { in tw686x_sg_dma_free() 261 pci_free_consistent(dev->pci_dev, desc->size, in tw686x_sg_dma_free() 278 if (desc->size) { in tw686x_sg_dma_alloc() 280 virt = pci_alloc_consistent(dev->pci_dev, desc->size, in tw686x_sg_dma_alloc() 324 vc->dma_descs[pb].size = sg_table_size; in tw686x_sg_setup() 567 unsigned int size = in tw686x_buf_prepare() local 570 if (vb2_plane_size(vb, 0) < size) in tw686x_buf_prepare() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/ |
H A D | i40iw_utils.c | 656 * @size: saize of buffer to print 662 u32 size) in i40iw_debug_buf() 672 for (i = 0; i < size; i += 8) in i40iw_debug_buf() 707 * @size: size of memory requested 712 u64 size, in i40iw_allocate_dma_mem() 719 mem->size = ALIGN(size, alignment); in i40iw_allocate_dma_mem() 720 mem->va = dma_alloc_coherent(&pcidev->dev, mem->size, in i40iw_allocate_dma_mem() 739 dma_free_coherent(&pcidev->dev, mem->size, in i40iw_free_dma_mem() 658 i40iw_debug_buf(struct i40iw_sc_dev *dev, enum i40iw_debug_flag mask, char *desc, u64 *buf, u32 size) i40iw_debug_buf() argument 710 i40iw_allocate_dma_mem(struct i40iw_hw *hw, struct i40iw_dma_mem *mem, u64 size, u32 alignment) i40iw_allocate_dma_mem() argument 750 i40iw_allocate_virt_mem(struct i40iw_hw *hw, struct i40iw_virt_mem *mem, u32 size) i40iw_allocate_virt_mem() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/queue/ |
H A D | tx.c | 502 tb_len = min_t(unsigned int, tso.size, data_left); in iwl_txq_gen2_build_amsdu() 554 * and the 802.11 header - dword aligned size in iwl_txq_gen2_build_tx_amsdu() 646 * and the 802.11 header - dword aligned size in iwl_txq_gen2_build_tx() 917 trans->txqs.tfd.size * txq->n_window, in iwl_txq_gen2_free_memory() 977 /* slots_num must be power-of-two size, otherwise in iwl_queue_init() 1005 /* max_tfd_queue_size must be power-of-two size, otherwise in iwl_txq_init() 1008 "Max tfd queue size must be a power of two, but is %d", in iwl_txq_init() 1099 size_t tfd_sz = trans->txqs.tfd.size * in iwl_txq_alloc() 1108 tfd_sz = trans->txqs.tfd.size * slots_num; in iwl_txq_alloc() 1163 struct iwl_txq **intxq, int size, in iwl_txq_dyn_alloc_dma() 1162 iwl_txq_dyn_alloc_dma(struct iwl_trans *trans, struct iwl_txq **intxq, int size, unsigned int timeout) iwl_txq_dyn_alloc_dma() argument 1259 iwl_txq_dyn_alloc(struct iwl_trans *trans, __le16 flags, u8 sta_id, u8 tid, int cmd_id, int size, unsigned int timeout) iwl_txq_dyn_alloc() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/ |
H A D | dp.c | 104 dma_free_coherent(ab->dev, ring->size, ring->vaddr_unaligned, in ath11k_dp_srng_cleanup() 232 ring->size = (num_entries * entry_sz) + HAL_RING_BASE_ALIGN - 1; in ath11k_dp_srng_setup() 233 ring->vaddr_unaligned = dma_alloc_coherent(ab->dev, ring->size, in ath11k_dp_srng_setup() 482 int size, in ath11k_dp_scatter_idle_link_desc_setup() 502 num_scatter_buf = DIV_ROUND_UP(size, HAL_WBM_IDLE_SCATTER_BUF_SIZE); in ath11k_dp_scatter_idle_link_desc_setup() 565 link_desc_banks[i].size, in ath11k_dp_link_desc_bank_free() 601 desc_bank[i].size = desc_sz; in ath11k_dp_link_desc_bank_alloc() 725 n_entries = (link_desc_banks[i].size - align_bytes) / in ath11k_dp_link_desc_setup() 1027 size_t size = 0; in ath11k_dp_alloc() local 1059 size in ath11k_dp_alloc() 481 ath11k_dp_scatter_idle_link_desc_setup(struct ath11k_base *ab, int size, u32 n_link_desc_bank, u32 n_link_desc, u32 last_bank_sz) ath11k_dp_scatter_idle_link_desc_setup() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wimax/i2400m/ |
H A D | fw.c | 373 * @buf_size: size of the buffer (has to be 16 bytes). It is passed 384 * -EILSEQ if the buffer doesn't have the right size. 444 * @ack_size: size of that data buffer 457 d_fnstart(8, dev, "(i2400m %p opcode %d ack %p size %zu)\n", in __i2400m_bm_ack_verify() 528 d_fnend(8, dev, "(i2400m %p opcode %d ack %p size %zu) = %d\n", in __i2400m_bm_ack_verify() 554 * @cmd_size: size of the command. Will be auto padded to the 563 * @ack_size: size of @ack, 16 aligned; you need to provide at least 589 d_fnstart(6, dev, "(i2400m %p cmd %p size %zu ack %p size %zu)\n", in i2400m_bm_cmd() 601 "addr 0x%04x size in i2400m_bm_cmd() 1191 module_id, module_vendor, date, size; i2400m_fw_hdr_check() local 1265 size_t leftover, offset, header_len, size; i2400m_fw_check() local [all...] |
/kernel/linux/linux-5.10/drivers/nvdimm/ |
H A D | region_devs.c | 226 return nd_mapping->size; in region_size() 239 static DEVICE_ATTR_RO(size); 397 * size. Of course, this value is potentially invalidated the in available_size_show() 711 nd_mapping->start, nd_mapping->size, in mappingN() 1046 if ((mapping->start | mapping->size) % PAGE_SIZE) { in nd_region_create() 1109 nd_region->mapping[i].size = mapping->size; in nd_region_create() 1286 resource_size_t start, size; member 1302 res_end = ctx->start + ctx->size; in region_conflict() 1313 resource_size_t size) in nd_region_conflict() 1312 nd_region_conflict(struct nd_region *nd_region, resource_size_t start, resource_size_t size) nd_region_conflict() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl1251/ |
H A D | main.c | 65 if (fw->size % 4) { in wl1251_fetch_firmware() 66 wl1251_error("firmware size is not multiple of 32 bits: %zu", in wl1251_fetch_firmware() 67 fw->size); in wl1251_fetch_firmware() 72 wl->fw_len = fw->size; in wl1251_fetch_firmware() 104 if (fw->size % 4) { in wl1251_fetch_nvs() 105 wl1251_error("nvs size is not multiple of 32 bits: %zu", in wl1251_fetch_nvs() 106 fw->size); in wl1251_fetch_nvs() 111 wl->nvs = kmemdup(fw->data, fw->size, GFP_KERNEL); in wl1251_fetch_nvs() 119 wl->nvs_len = fw->size; in wl1251_fetch_nvs() 541 int size; in wl1251_build_null_data() local [all...] |
/kernel/linux/linux-5.10/drivers/tee/ |
H A D | tee_core.c | 137 * @size: Size of name 145 size_t size) in uuid_v5() 176 rc = crypto_shash_update(desc, (const u8 *)name, size); in uuid_v5() 300 shm = tee_shm_alloc(ctx, data.size, TEE_SHM_MAPPED | TEE_SHM_DMA_BUF); in tee_ioctl_shm_alloc() 306 data.size = shm->size; in tee_ioctl_shm_alloc() 347 data.length = shm->size; in tee_ioctl_shm_register() 413 * Ensure offset + size does not overflow in params_from_user() 414 * offset and does not overflow the size of in params_from_user() 418 (ip.a + ip.b) > shm->size) { in params_from_user() 144 uuid_v5(uuid_t *uuid, const uuid_t *ns, const void *name, size_t size) uuid_v5() argument [all...] |
/kernel/linux/linux-5.10/drivers/target/ |
H A D | target_core_device.c | 609 pr_err("%s InitiatorName exceeds maximum size.\n", in core_dev_init_initiator_node_lun_acl() 1086 unsigned int size; in passthrough_parse_cdb() local 1118 size = get_unaligned_be16(&cdb[7]); in passthrough_parse_cdb() 1119 return target_cmd_size_check(cmd, size); in passthrough_parse_cdb() 1123 size = get_unaligned_be32(&cdb[5]); in passthrough_parse_cdb() 1124 return target_cmd_size_check(cmd, size); in passthrough_parse_cdb() 1130 size = get_unaligned_be16(&cdb[7]); in passthrough_parse_cdb() 1132 size = cmd->data_length; in passthrough_parse_cdb() 1133 return target_cmd_size_check(cmd, size); in passthrough_parse_cdb() 1138 size in passthrough_parse_cdb() [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nft_ct.c | 710 .size = NFT_EXPR_SIZE(sizeof(struct nft_ct)), 719 .size = NFT_EXPR_SIZE(sizeof(struct nft_ct)), 729 .size = NFT_EXPR_SIZE(sizeof(struct nft_ct)), 788 .size = NFT_EXPR_SIZE(0), 967 .size = sizeof(struct nft_ct_timeout_obj), 1149 .size = sizeof(struct nft_ct_helper_obj), 1168 u8 size; member 1215 priv->size = nla_get_u8(tb[NFTA_CT_EXPECT_SIZE]); in nft_ct_expect_obj_init() 1235 nla_put_u8(skb, NFTA_CT_EXPECT_SIZE, priv->size)) in nft_ct_expect_obj_dump() 1268 if (help->expecting[NF_CT_EXPECT_CLASS_DEFAULT] >= priv->size) { in nft_ct_expect_obj_eval() [all...] |
/kernel/linux/linux-5.10/samples/vfio-mdev/ |
H A D | mtty.c | 82 u32 size; member 607 if (!mdev_state->region_info[index].size) in mdev_read_base() 1047 unsigned int size = 0; in mtty_get_region_info() local 1066 size = MTTY_CONFIG_SPACE_SIZE; in mtty_get_region_info() 1069 size = MTTY_IO_BAR_SIZE; in mtty_get_region_info() 1073 size = MTTY_IO_BAR_SIZE; in mtty_get_region_info() 1076 size = 0; in mtty_get_region_info() 1080 mdev_state->region_info[bar_index].size = size; in mtty_get_region_info() 1084 region_info->size in mtty_get_region_info() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | usb.h | 412 int __usb_get_extra_descriptor(char *buffer, unsigned size, 898 * @size: how big is "buf"? 900 * Return: Length of the string (> 0) or negative if size was too small. 919 static inline int usb_make_path(struct usb_device *dev, char *buf, size_t size) in usb_make_path() argument 922 actual = snprintf(buf, size, "usb-%s-%s", dev->bus->bus_name, in usb_make_path() 924 return (actual >= (int)size) ? -1 : actual; in usb_make_path() 1400 * maximum packet size of any given endpoint. 1421 * @sg: scatter gather buffer list, the buffer size of each element in 1423 * max packet size if no_sg_constraint isn't set in 'struct usb_bus' 1428 * size fo [all...] |
/kernel/linux/linux-5.10/sound/isa/sb/ |
H A D | sb16_csp.c | 81 static int snd_sb_csp_load_user(struct snd_sb_csp * p, const unsigned char __user *buf, int size, int load_flags); 474 static inline int command_seq(struct snd_sb *chip, const unsigned char *seq, int size) in command_seq() argument 477 for (i = 0; i < size; i++) { in command_seq() 607 static int snd_sb_csp_load(struct snd_sb_csp * p, const unsigned char *buf, int size, int load_flags) in snd_sb_csp_load() argument 620 /* Send CSP low byte (size - 1) */ in snd_sb_csp_load() 621 snd_sbdsp_command(p->chip, (unsigned char)(size - 1)); in snd_sb_csp_load() 623 snd_sbdsp_command(p->chip, (unsigned char)((size - 1) >> 8)); in snd_sb_csp_load() 626 while (size--) { in snd_sb_csp_load() 673 static int snd_sb_csp_load_user(struct snd_sb_csp * p, const unsigned char __user *buf, int size, int load_flags) in snd_sb_csp_load_user() argument 678 kbuf = memdup_user(buf, size); in snd_sb_csp_load_user() [all...] |
/kernel/linux/linux-5.10/sound/pci/ |
H A D | via82xx_modem.c | 200 unsigned int size; member 262 * fragsize = period size in bytes 305 dev_err(&pci->dev, "too much table size!\n"); in build_via_table() 323 "tbl %d: at %d size %d (rest %d)\n", in build_via_table() 328 dev->idx_table[idx].size = r; in build_via_table() 560 unsigned int size, res; in calc_linear_pos() local 562 size = viadev->idx_table[idx].size; in calc_linear_pos() 563 res = viadev->idx_table[idx].offset + size - count; in calc_linear_pos() 566 if (size < coun in calc_linear_pos() [all...] |
/kernel/linux/linux-5.10/sound/soc/uniphier/ |
H A D | aio-core.c | 1121 int aiodma_rb_set_threshold(struct uniphier_aio_sub *sub, u64 size, u32 th) in aiodma_rb_set_threshold() argument 1125 if (size <= th) in aiodma_rb_set_threshold() 1138 u64 size = end - start; in aiodma_rb_set_buffer() local 1156 ret = aiodma_rb_set_threshold(sub, size, 2 * period); in aiodma_rb_set_buffer() 1187 void aiodma_rb_sync(struct uniphier_aio_sub *sub, u64 start, u64 size, in aiodma_rb_sync() argument 1195 aiodma_rb_set_threshold(sub, size, 2 * period); in aiodma_rb_sync() 1199 sub->wr_offs += size; in aiodma_rb_sync() 1207 aiodma_rb_set_threshold(sub, size, 2 * period); in aiodma_rb_sync() 1211 sub->rd_offs += size; in aiodma_rb_sync() 1218 sub->rd_total += size; in aiodma_rb_sync() [all...] |
/kernel/linux/linux-5.10/sound/usb/misc/ |
H A D | ua101.c | 118 unsigned int size; member 266 * the size of the corresponding capture packet, i.e., both playback in playback_work() 276 /* take packet size out of FIFO */ in playback_work() 384 /* append packet size to FIFO */ in capture_urb_complete() 568 * packet size FIFO to be full. in start_usb_playback() 1024 size_t size; in alloc_stream_buffers() local 1042 size = packets * stream->max_packet_bytes; in alloc_stream_buffers() 1044 usb_alloc_coherent(ua->dev, size, GFP_KERNEL, in alloc_stream_buffers() 1048 stream->buffers[i].size = size; in alloc_stream_buffers() 1079 unsigned int size = stream->buffers[b].size; alloc_stream_urbs() local [all...] |
/kernel/linux/linux-5.10/fs/afs/ |
H A D | internal.h | 54 unsigned int volnamesz; /* size of volume name */ 128 unsigned request_size; /* size of request data */ 129 unsigned reply_max; /* maximum size of reply */ 205 loff_t file_size; /* File size returned by server */ 867 * 0...PAGE_SIZE, so we reduce the resolution if the size of the page 1096 u32 size; member 1272 static inline void afs_extract_begin(struct afs_call *call, void *buf, size_t size) in afs_extract_begin() argument 1275 call->kvec[0].iov_len = size; in afs_extract_begin() 1276 iov_iter_kvec(&call->def_iter, READ, call->kvec, 1, size); in afs_extract_begin() 1289 static inline void afs_extract_discard(struct afs_call *call, size_t size) in afs_extract_discard() argument 1294 afs_extract_to_buf(struct afs_call *call, size_t size) afs_extract_to_buf() argument 1580 afs_set_i_size(struct afs_vnode *vnode, u64 size) afs_set_i_size() argument [all...] |
/kernel/linux/linux-5.10/net/bridge/ |
H A D | br_netfilter_hooks.c | 138 u8 size; member 688 err = skb_cow_head(skb, data->size); in br_nf_push_frag_xmit() 698 skb_copy_to_linear_data_offset(skb, -data->size, data->mac, data->size); in br_nf_push_frag_xmit() 778 data->size = ETH_HLEN + data->encap_size; in br_nf_dev_queue_xmit() 780 skb_copy_from_linear_data_offset(skb, -data->size, data->mac, in br_nf_dev_queue_xmit() 781 data->size); in br_nf_dev_queue_xmit() 797 data->size = ETH_HLEN + data->encap_size; in br_nf_dev_queue_xmit() 799 skb_copy_from_linear_data_offset(skb, -data->size, data->mac, in br_nf_dev_queue_xmit() 800 data->size); in br_nf_dev_queue_xmit() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_drv.h | 147 * @backup_size: Backup buffer size. Immutable. 394 * @cmd_bounce_size: Current command bounce buffer size 456 * @size: Size of the table (page-aligned). 460 unsigned long size; member 850 size_t size, struct ttm_placement *placement, 857 uint32_t size, 1099 bool vmw_cmd_describe(const void *buf, u32 *size, char const **cmd); 1304 struct drm_vmw_size size, 1334 size_t size, 1362 void vmw_dx_streamoutput_set_size(struct vmw_resource *res, u32 size); [all...] |
/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-asus.c | 248 static int asus_report_input(struct asus_drvdata *drvdat, u8 *data, int size) in asus_report_input() argument 253 if (size != drvdat->tp->report_size) in asus_report_input() 281 static int asus_e1239t_event(struct asus_drvdata *drvdat, u8 *data, int size) in asus_e1239t_event() argument 283 if (size != 3) in asus_e1239t_event() 323 struct hid_report *report, u8 *data, int size) in asus_raw_event() 328 return asus_report_battery(drvdata, data, size); in asus_raw_event() 331 return asus_report_input(drvdata, data, size); in asus_raw_event() 334 return asus_e1239t_event(drvdata, data, size); in asus_raw_event() 530 static int asus_parse_battery(struct asus_drvdata *drvdata, u8 *data, int size) in asus_parse_battery() argument 558 static int asus_report_battery(struct asus_drvdata *drvdata, u8 *data, int size) in asus_report_battery() argument 322 asus_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) asus_raw_event() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | radeon_ttm.c | 834 /* Change the size here instead of the init above so only lpfn is affected */ in radeon_ttm_init() 896 void radeon_ttm_set_active_vram_size(struct radeon_device *rdev, u64 size) in radeon_ttm_set_active_vram_size() argument 904 /* this just adjusts TTM size idea, which sets lpfn to the correct value */ in radeon_ttm_set_active_vram_size() 905 man->size = size >> PAGE_SHIFT; in radeon_ttm_set_active_vram_size() 986 size_t size, loff_t *pos) in radeon_ttm_vram_read() 992 if (size & 0x3 || *pos & 0x3) in radeon_ttm_vram_read() 995 while (size) { in radeon_ttm_vram_read() 1016 size -= 4; in radeon_ttm_vram_read() 1038 size_t size, loff_ in radeon_ttm_gtt_read() 985 radeon_ttm_vram_read(struct file *f, char __user *buf, size_t size, loff_t *pos) radeon_ttm_vram_read() argument 1037 radeon_ttm_gtt_read(struct file *f, char __user *buf, size_t size, loff_t *pos) radeon_ttm_gtt_read() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | port.c | 293 MLX5_SET(mcia_reg, in, size, 1); in mlx5_query_module_id() 357 u16 offset, u16 size, u8 *data) in mlx5_query_module_eeprom() 388 if (offset + size > MLX5_EEPROM_PAGE_LENGTH) in mlx5_query_module_eeprom() 390 size -= offset + size - MLX5_EEPROM_PAGE_LENGTH; in mlx5_query_module_eeprom() 392 size = min_t(int, size, MLX5_EEPROM_MAX_BYTES); in mlx5_query_module_eeprom() 399 MLX5_SET(mcia_reg, in, size, size); in mlx5_query_module_eeprom() 414 memcpy(data, ptr, size); in mlx5_query_module_eeprom() 356 mlx5_query_module_eeprom(struct mlx5_core_dev *dev, u16 offset, u16 size, u8 *data) mlx5_query_module_eeprom() argument [all...] |