/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_dcb.c | 14 * @buf_size: size of the buffer (in bytes) 23 u16 buf_size, u16 *local_len, u16 *remote_len, 32 if (buf_size == 0 || !buf) 40 desc.datalen = cpu_to_le16(buf_size); 42 status = ice_aq_send_cmd(hw, &desc, buf, buf_size, cd); 1529 * @buf_size: buffer size in bytes 1536 struct ice_aqc_port_ets_elem *buf, u16 buf_size, 1549 status = ice_aq_send_cmd(pi->hw, &desc, buf, buf_size, cd); 1622 * @buf_size: buffer size in bytes 1630 struct ice_aqc_port_ets_elem *buf, u16 buf_size, 22 ice_aq_get_lldp_mib(struct ice_hw *hw, u8 bridge_type, u8 mib_type, void *buf, u16 buf_size, u16 *local_len, u16 *remote_len, struct ice_sq_cd *cd) argument 1535 ice_aq_query_port_ets(struct ice_port_info *pi, struct ice_aqc_port_ets_elem *buf, u16 buf_size, struct ice_sq_cd *cd) argument 1629 ice_query_port_ets(struct ice_port_info *pi, struct ice_aqc_port_ets_elem *buf, u16 buf_size, struct ice_sq_cd *cd) argument [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_rx.c | 284 ring->buf_size = ring->size * ring->stride + TXBB_SIZE; 302 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); 354 ring->buf_size = ring->size * ring->stride; 356 memset(ring->buf, 0, ring->buf_size); 1066 int frag_size_max = 2048, buf_size = 0; local 1072 while (buf_size < eff_mtu) { 1073 int frag_stride, frag_size = eff_mtu - buf_size; 1089 buf_size += frag_size;
|
H A D | mlx4_en.h | 301 u32 buf_size; member in struct:mlx4_en_tx_ring 340 u32 buf_size; member in struct:mlx4_en_rx_ring 373 int buf_size; member in struct:mlx4_en_cq
|
/linux-master/security/integrity/ima/ |
H A D | ima_main.c | 565 size_t buf_size) 612 copied_size = min_t(size_t, iint->ima_hash->length, buf_size); 628 * @buf_size: length of the buffer 632 * If the hash is larger than buf_size, then only buf_size bytes will be copied. 641 int ima_file_hash(struct file *file, char *buf, size_t buf_size) argument 646 return __ima_inode_hash(file_inode(file), file, buf, buf_size); 655 * @buf_size: length of the buffer 659 * If the hash is larger than buf_size, then only buf_size byte 564 __ima_inode_hash(struct inode *inode, struct file *file, char *buf, size_t buf_size) argument 668 ima_inode_hash(struct inode *inode, char *buf, size_t buf_size) argument [all...] |
/linux-master/drivers/misc/vmw_vmci/ |
H A D | vmci_queue_pair.c | 2547 size_t buf_size = iov_iter_count(from); local 2564 written = (size_t) (free_space > buf_size ? buf_size : free_space); 2612 size_t buf_size = iov_iter_count(to); local 2637 read = (size_t) (buf_ready > buf_size ? buf_size : buf_ready); 3029 * @buf_size: Length of buffer. 3037 size_t buf_size, 3042 struct kvec v = {.iov_base = (void *)buf, .iov_len = buf_size}; 3047 iov_iter_kvec(&from, ITER_SOURCE, &v, 1, buf_size); 3035 vmci_qpair_enqueue(struct vmci_qp *qpair, const void *buf, size_t buf_size, int buf_type) argument 3079 vmci_qpair_dequeue(struct vmci_qp *qpair, void *buf, size_t buf_size, int buf_type) argument 3124 vmci_qpair_peek(struct vmci_qp *qpair, void *buf, size_t buf_size, int buf_type) argument [all...] |
H A D | vmci_host.c | 728 &get_info.buf_size, &cpt_buf); 729 if (get_info.result == VMCI_SUCCESS && get_info.buf_size) { 731 retval = copy_to_user(ubuf, cpt_buf, get_info.buf_size); 759 set_info.buf_size); 765 set_info.buf_size, cpt_buf);
|
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | sta.c | 2749 for (j = 0; j < reorder_buf->buf_size; j++) 2758 u16 ssn, u16 buf_size) 2771 reorder_buf->buf_size = buf_size; 2776 for (j = 0; j < reorder_buf->buf_size; j++) 2784 u16 buf_size) 2798 cmd.rx_ba_window = cpu_to_le16(buf_size); 2833 u16 buf_size, int baid) 2849 cmd.alloc.win_size = cpu_to_le16(buf_size); 2880 bool start, int tid, u16 ssn, u16 buf_size, 2756 iwl_mvm_init_reorder_buffer(struct iwl_mvm *mvm, struct iwl_mvm_baid_data *data, u16 ssn, u16 buf_size) argument 2781 iwl_mvm_fw_baid_op_sta(struct iwl_mvm *mvm, struct ieee80211_sta *sta, bool start, int tid, u16 ssn, u16 buf_size) argument 2830 iwl_mvm_fw_baid_op_cmd(struct iwl_mvm *mvm, struct ieee80211_sta *sta, bool start, int tid, u16 ssn, u16 buf_size, int baid) argument 2879 iwl_mvm_fw_baid_op(struct iwl_mvm *mvm, struct ieee80211_sta *sta, bool start, int tid, u16 ssn, u16 buf_size, int baid) argument 2892 iwl_mvm_sta_rx_agg(struct iwl_mvm *mvm, struct ieee80211_sta *sta, int tid, u16 ssn, bool start, u16 buf_size, u16 timeout) argument 3203 iwl_mvm_sta_tx_agg_oper(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_sta *sta, u16 tid, u16 buf_size, bool amsdu) argument [all...] |
/linux-master/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_opr_v6.c | 386 const struct s5p_mfc_buf_size_v6 *buf_size = dev->variant->buf_size->priv; local 395 ctx->ctx.size = buf_size->h264_dec_ctx; 404 ctx->ctx.size = buf_size->other_dec_ctx; 407 ctx->ctx.size = buf_size->h264_enc_ctx; 410 ctx->ctx.size = buf_size->hevc_enc_ctx; 415 ctx->ctx.size = buf_size->other_enc_ctx; 446 const struct s5p_mfc_buf_size_v6 *buf_size = dev->variant->buf_size->priv; local 451 dev->ctx_buf.size = buf_size 590 const struct s5p_mfc_buf_size *buf_size = dev->variant->buf_size; local [all...] |
/linux-master/lib/ |
H A D | test_firmware.c | 60 * @buf_size: size of buf to allocate when into_buf is true 103 size_t buf_size; member in struct:test_config 233 test_fw_config->buf_size = TEST_FIRMWARE_BUF_SIZE; 309 "buf_size:\t%zu\n", test_fw_config->buf_size); 548 &test_fw_config->buf_size); 559 return test_dev_config_show_size_t(buf, test_fw_config->buf_size); 879 test_fw_config->buf_size, 887 test_fw_config->buf_size);
|
/linux-master/fs/btrfs/ |
H A D | ioctl.c | 1572 u64 *buf_size, 1606 if (sizeof(sh) + item_len > *buf_size) { 1617 *buf_size = sizeof(sh) + item_len; 1622 if (sizeof(sh) + item_len + *sk_offset > *buf_size) { 1704 u64 *buf_size, 1715 if (*buf_size < sizeof(struct btrfs_ioctl_search_header)) { 1716 *buf_size = sizeof(struct btrfs_ioctl_search_header); 1746 *buf_size - sk_offset)) 1755 ret = copy_to_sk(path, &key, sk, buf_size, ubuf, 1777 u64 buf_size; local 1569 copy_to_sk(struct btrfs_path *path, struct btrfs_key *key, struct btrfs_ioctl_search_key *sk, u64 *buf_size, char __user *ubuf, unsigned long *sk_offset, int *num_found) argument 1702 search_ioctl(struct inode *inode, struct btrfs_ioctl_search_key *sk, u64 *buf_size, char __user *ubuf) argument 1807 u64 buf_size; local [all...] |
/linux-master/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_debug.c | 5329 u32 *buf_size) 5333 *buf_size = 0; 5345 return qed_grc_dump(p_hwfn, p_ptt, NULL, false, buf_size); 5382 u32 *buf_size) 5388 *buf_size = 0; 5401 idle_chk->buf_size = qed_idle_chk_dump(p_hwfn, 5406 *buf_size = idle_chk->buf_size; 5446 u32 *buf_size) 5450 *buf_size 5327 qed_dbg_grc_get_dump_buf_size(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, u32 *buf_size) argument 5380 qed_dbg_idle_chk_get_dump_buf_size(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, u32 *buf_size) argument 5444 qed_dbg_mcp_trace_get_dump_buf_size(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, u32 *buf_size) argument 5491 qed_dbg_reg_fifo_get_dump_buf_size(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, u32 *buf_size) argument 5537 qed_dbg_igu_fifo_get_dump_buf_size(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, u32 *buf_size) argument 5583 qed_dbg_protection_override_get_dump_buf_size(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, u32 *buf_size) argument 5633 qed_dbg_fw_asserts_get_dump_buf_size(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, u32 *buf_size) argument 5681 qed_dbg_ilt_get_dump_buf_size(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, u32 *buf_size) argument 6315 qed_read_from_cyclic_buf(void *buf, u32 *offset, u32 buf_size, u8 num_bytes_to_read) argument [all...] |
/linux-master/drivers/net/wireless/atmel/ |
H A D | at76c50x-usb.c | 586 union at76_hwcfg *buf, int buf_size) 591 buf, buf_size, USB_CTRL_GET_TIMEOUT); 596 union at76_hwcfg *buf, int buf_size) 601 buf, buf_size, USB_CTRL_GET_TIMEOUT); 669 int buf_size) 675 USB_RECIP_INTERFACE, mib << 8, 0, buf, buf_size, 677 if (ret >= 0 && ret != buf_size) 721 int buf_size) 725 buf_size, GFP_KERNEL); 732 cmd_buf->size = cpu_to_le16(buf_size); 585 at76_get_hw_cfg(struct usb_device *udev, union at76_hwcfg *buf, int buf_size) argument 595 at76_get_hw_cfg_intersil(struct usb_device *udev, union at76_hwcfg *buf, int buf_size) argument 668 at76_get_mib(struct usb_device *udev, u16 mib, void *buf, int buf_size) argument 720 at76_set_card_command(struct usb_device *udev, u8 cmd, void *buf, int buf_size) argument [all...] |
/linux-master/drivers/gpu/drm/tests/ |
H A D | drm_format_helper_test.c | 554 static u16 *le16buf_to_cpu(struct kunit *test, const __le16 *buf, size_t buf_size) argument 559 dst = kunit_kzalloc(test, sizeof(*dst) * buf_size, GFP_KERNEL); 563 for (n = 0; n < buf_size; n++) 569 static u32 *le32buf_to_cpu(struct kunit *test, const __le32 *buf, size_t buf_size) argument 574 dst = kunit_kzalloc(test, sizeof(*dst) * buf_size, GFP_KERNEL); 578 for (n = 0; n < buf_size; n++) 584 static __le32 *cpubuf_to_le32(struct kunit *test, const u32 *buf, size_t buf_size) argument 589 dst = kunit_kzalloc(test, sizeof(*dst) * buf_size, GFP_KERNEL); 593 for (n = 0; n < buf_size; n++)
|
/linux-master/drivers/comedi/ |
H A D | drivers.c | 646 unsigned int buf_size; local 672 buf_size = comedi_default_buf_size_kb * 1024; 673 if (buf_size > async->max_bufsize) 674 buf_size = async->max_bufsize; 676 if (comedi_buf_alloc(dev, s, buf_size) < 0) {
|
/linux-master/drivers/media/pci/cx18/ |
H A D | cx18-streams.c | 253 s->buf_size = cx->stream_buf_size[type]; 256 s->mdl_size = s->buf_size * s->bufs_per_mdl; 753 s->bufs_per_mdl = s->mdl_size / s->buf_size; 754 if (s->mdl_size % s->buf_size) 775 s->mdl_size = s->buf_size * s->bufs_per_mdl;
|
/linux-master/fs/xfs/ |
H A D | xfs_log_cil.c | 284 int buf_size; local 327 buf_size = nbytes + xlog_cil_iovec_space(niovecs); 334 buf_size > lip->li_lv_shadow->lv_size) { 343 lv = xlog_kvmalloc(buf_size); 349 lv->lv_size = buf_size;
|
/linux-master/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_device.c | 60 static int kfd_gtt_sa_init(struct kfd_dev *kfd, unsigned int buf_size, 1158 static int kfd_gtt_sa_init(struct kfd_dev *kfd, unsigned int buf_size, argument 1161 if (WARN_ON(buf_size < chunk_size)) 1163 if (WARN_ON(buf_size == 0)) 1169 kfd->gtt_sa_num_of_chunks = buf_size / chunk_size;
|
/linux-master/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_common.c | 2171 * @buf_size: length of input buffer 2179 u16 buf_size, u16 *start_seid, 2190 if (buf_size > I40E_AQ_LARGE_BUF) 2194 status = i40e_asq_send_command(hw, &desc, buf, buf_size, cmd_details); 2518 u16 buf_size; local 2521 buf_size = count * sizeof(*mv_list); 2536 if (buf_size > I40E_AQ_LARGE_BUF) 2539 return buf_size; 2558 u16 buf_size; local 2563 buf_size 2177 i40e_aq_get_switch_config(struct i40e_hw *hw, struct i40e_aqc_get_switch_config_resp *buf, u16 buf_size, u16 *start_seid, struct i40e_asq_cmd_details *cmd_details) argument 2591 u16 buf_size; local 2620 u16 buf_size; local 2668 u16 buf_size; local 2719 u16 buf_size; local [all...] |
/linux-master/tools/usb/ |
H A D | ffs-test.c | 345 size_t buf_size; member in struct:thread 381 t->buf = malloc(t->buf_size); 434 ret = t->in(t, t->buf, t->buf_size);
|
/linux-master/drivers/bluetooth/ |
H A D | btmrvl_main.c | 381 int buf_size; local 387 buf_size = ALIGN_SZ(SDIO_BLOCK_SIZE, BTSDIO_DMA_ALIGN); 388 priv->adapter->hw_regs_buf = kzalloc(buf_size, GFP_KERNEL);
|
/linux-master/drivers/gpu/drm/bridge/synopsys/ |
H A D | dw-hdmi-ahb-audio.c | 128 unsigned buf_size; member in struct:snd_dw_hdmi 257 if (offset >= dw->buf_size) 459 dw->buf_size = snd_pcm_lib_buffer_bytes(substream);
|
/linux-master/arch/powerpc/kernel/ |
H A D | rtas_flash.c | 151 unsigned int buf_size; /* Size of image buf */ member in struct:rtas_validate_flash_t 456 (u32) __pa(rtas_data_buf), args_buf->buf_size); 546 args_buf->buf_size = VALIDATE_BUF_SIZE;
|
/linux-master/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hns3_enet.h | 479 u32 buf_size; /* size for hnae_desc->addr, preset by AE */ member in struct:hns3_enet_ring 671 #define hns3_buf_size(_ring) ((_ring)->buf_size) 683 if (ring->buf_size > (PAGE_SIZE / 2))
|
/linux-master/sound/soc/amd/acp/ |
H A D | acp-i2s.c | 311 u32 val, period_bytes, reg_val, ier_val, water_val, buf_size, buf_reg; local 314 buf_size = frames_to_bytes(substream->runtime, substream->runtime->buffer_size); 371 writel(buf_size, adata->acp_base + buf_reg);
|
/linux-master/drivers/platform/x86/dell/ |
H A D | dcdbas.c | 149 unsigned long buf_size; local 152 buf_size = simple_strtoul(buf, NULL, 10); 154 /* make sure SMI data buffer is at least buf_size */ 156 ret = smi_data_buf_realloc(buf_size);
|