/linux-master/drivers/mmc/host/ |
H A D | litex_mmc.c | 86 size_t buf_size; member in struct:litex_mmc_host 311 } else if (*len > host->buf_size) 312 *len = host->buf_size; 560 host->buf_size = mmc->max_req_size * 2; 561 host->buffer = dmam_alloc_coherent(dev, host->buf_size,
|
/linux-master/drivers/nvme/target/ |
H A D | auth.c | 487 u8 *buf, int buf_size) 496 if (buf_size != ctrl->dh_keysize) { 498 ctrl->cntlid, ctrl->dh_keysize, buf_size); 501 memcpy(buf, ctrl->dh_key, buf_size); 503 ctrl->cntlid, (int)buf_size, buf); 486 nvmet_auth_ctrl_exponential(struct nvmet_req *req, u8 *buf, int buf_size) argument
|
/linux-master/drivers/base/regmap/ |
H A D | regmap-debugfs.c | 306 size_t buf_size; local 312 buf_size = min(count, (sizeof(buf)-1)); 313 if (copy_from_user(buf, user_buf, buf_size)) 315 buf[buf_size] = 0; 331 return buf_size;
|
/linux-master/drivers/firmware/efi/stmm/ |
H A D | tee_stmm_efi.c | 54 size_t buf_size; local 65 buf_size = mm_hdr->message_len + sizeof(efi_guid_t) + sizeof(size_t); 67 if (dsize != buf_size) 70 shm = tee_shm_register_kernel_buf(pvt_data.ctx, comm_buf, buf_size); 83 param[0].u.memref.size = buf_size;
|
/linux-master/sound/core/ |
H A D | jack.c | 245 static int parse_mask_bits(unsigned int mask_bits, char *buf, size_t buf_size) argument 249 scnprintf(buf, buf_size, "0x%04x", mask_bits); 253 strlcat(buf, " ", buf_size); 254 strlcat(buf, jack_events_name[i], buf_size); 256 strlcat(buf, "\n", buf_size);
|
/linux-master/crypto/ |
H A D | dh.c | 465 unsigned int buf_size; local 489 buf_size = crypto_dh_key_len(¶ms); 490 buf = kmalloc(buf_size, GFP_KERNEL); 496 err = crypto_dh_encode_key(buf, buf_size, ¶ms); 500 err = crypto_kpp_set_secret(tfm_ctx->dh_tfm, buf, buf_size);
|
/linux-master/drivers/usb/atm/ |
H A D | usbatm.c | 574 const unsigned int buf_size = instance->tx_channel.buf_size; local 593 buf_size - bytes_written); 608 if (bytes_written == buf_size || (!skb && bytes_written)) { 1091 instance->tx_channel.buf_size = max(instance->tx_channel.stride, 1109 instance->rx_channel.buf_size = num_packets * maxpacket; 1117 __func__, channel->buf_size, i ? "tx" : "rx", channel); 1127 unsigned int iso_packets = usb_pipeisoc(channel->endpoint) ? channel->buf_size / channel->packet_size : 0; 1138 buffer = kzalloc(channel->buf_size, GFP_KERNEL); 1145 buffer, channel->buf_size, usbatm_complet [all...] |
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_debugfs.c | 583 int buf_size = 10240; local 593 buf = kzalloc(buf_size, GFP_KERNEL); 606 off += scnprintf(&buf[off], buf_size - 1 - off, 608 off += scnprintf(&buf[off], buf_size - 1 - off, 610 off += scnprintf(&buf[off], buf_size - 1 - off, "\nPcifunc\t\t\t"); 611 off += scnprintf(&buf[off], buf_size - 1 - off, "Table Index\t\t"); 612 off += scnprintf(&buf[off], buf_size - 1 - off, 614 off += scnprintf(&buf[off], buf_size - 1 - off, 616 off += scnprintf(&buf[off], buf_size - 1 - off, "\n"); 618 off += scnprintf(&buf[off], buf_size 702 int index, pf, vf, lf_str_size = 12, buf_size = 256; local 743 int buf_size = 2048; local [all...] |
/linux-master/drivers/infiniband/hw/hns/ |
H A D | hns_roce_qp.c | 648 int buf_size; local 655 buf_size = to_hr_hem_entries_size(hr_qp->sq.wqe_cnt, 657 if (buf_size > 0 && idx < ARRAY_SIZE(buf_attr->region)) { 658 buf_attr->region[idx].size = buf_size; 661 hr_qp->buff_size += buf_size; 666 buf_size = to_hr_hem_entries_size(hr_qp->sge.sge_cnt, 668 if (buf_size > 0 && idx < ARRAY_SIZE(buf_attr->region)) { 669 buf_attr->region[idx].size = buf_size; 672 hr_qp->buff_size += buf_size; 677 buf_size [all...] |
/linux-master/drivers/net/wireless/realtek/rtw89/ |
H A D | debug.c | 140 size_t buf_size; local 144 buf_size = min(count, sizeof(buf) - 1); 145 if (copy_from_user(buf, user_buf, buf_size)) 148 buf[buf_size] = '\0'; 217 size_t buf_size; local 221 buf_size = min(count, sizeof(buf) - 1); 222 if (copy_from_user(buf, user_buf, buf_size)) 225 buf[buf_size] = '\0'; 262 size_t buf_size; local 267 buf_size 316 size_t buf_size; local 879 size_t buf_size; local 995 size_t buf_size; local 1105 size_t buf_size; local [all...] |
/linux-master/drivers/media/rc/ |
H A D | ite-cir.c | 543 /* read up to buf_size bytes from the RX FIFO; to be called with the spinlock 545 static int it87_get_rx_bytes(struct ite_dev *dev, u8 * buf, int buf_size) argument 552 while (fifo > 0 && buf_size > 0) { 556 buf_size--; 746 /* read up to buf_size bytes from the RX FIFO; to be called with the spinlock 748 static int it8708_get_rx_bytes(struct ite_dev *dev, u8 * buf, int buf_size) argument 755 while (fifo > 0 && buf_size > 0) { 759 buf_size--; 1015 /* read up to buf_size bytes from the RX FIFO; to be called with the spinlock 1017 static int it8709_get_rx_bytes(struct ite_dev *dev, u8 * buf, int buf_size) argument [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_tx.c | 90 ring->buf_size = ALIGN(size * ring->sp_stride, MLX4_EN_PAGE_SIZE); 94 err = mlx4_alloc_hwq_res(mdev->dev, &ring->sp_wqres, ring->buf_size); 103 en_dbg(DRV, priv, "Allocated TX ring (addr:%p) - buf:%p size:%d buf_size:%d dma:%llx\n", 104 ring, ring->buf, ring->size, ring->buf_size, 151 mlx4_free_hwq_res(mdev->dev, &ring->sp_wqres, ring->buf_size); 176 mlx4_free_hwq_res(mdev->dev, &ring->sp_wqres, ring->buf_size); 197 memset(ring->buf, 0, ring->buf_size); 243 void *end = ring->buf + ring->buf_size; 283 void *end = ring->buf + ring->buf_size; 797 ring->bf.offset ^= ring->bf.buf_size; [all...] |
/linux-master/drivers/pci/hotplug/ |
H A D | cpqphp_nvram.c | 154 static u32 access_EV(u16 operation, u8 *ev_name, u8 *buffer, u32 *buf_size) argument 171 : "=c" (*buf_size), "=a" (ret_val) 172 : "a" (op), "c" (*buf_size), "S" (ev_name),
|
/linux-master/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_nvmetcp_fw_funcs.c | 76 u32 buf_size = 0; local 85 buf_size = calc_rw_task_size(task_params, task_type); 95 SET_FIELD(task_params->sqe->contlen_cdbsize, NVMETCP_WQE_CONT_LEN, buf_size);
|
/linux-master/tools/testing/selftests/filesystems/binderfs/ |
H A D | binderfs_test.c | 247 size_t buf_size) 286 ret = write_nointr(fd, buf, buf_size); 288 if (ret != buf_size) 246 write_id_mapping(enum idmap_type type, pid_t pid, const char *buf, size_t buf_size) argument
|
/linux-master/drivers/net/wireless/st/cw1200/ |
H A D | wsm.c | 186 size_t buf_size; member in struct:wsm_mib 190 size_t buf_size) 197 .buf_size = buf_size, 226 if (size > arg->buf_size) 227 size = arg->buf_size; 230 arg->buf_size = size; 241 size_t buf_size) 248 .buf_size = buf_size, 189 wsm_read_mib(struct cw1200_common *priv, u16 mib_id, void *_buf, size_t buf_size) argument 240 wsm_write_mib(struct cw1200_common *priv, u16 mib_id, void *_buf, size_t buf_size) argument [all...] |
/linux-master/drivers/net/ethernet/marvell/ |
H A D | mvneta_bm.c | 105 phys_addr = dma_map_single(&priv->pdev->dev, buf, bm_pool->buf_size, 187 new_pool->buf_size = MVNETA_RX_BUF_SIZE(new_pool->pkt_size); 246 bm_pool->buf_size, DMA_FROM_DEVICE);
|
/linux-master/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | debugfs.c | 80 size_t buf_size = min(count, sizeof(buf) - 1); \ 82 if (copy_from_user(buf, user_buf, buf_size)) \ 85 return iwl_dbgfs_##name##_write(arg, buf, buf_size); \
|
/linux-master/net/tls/ |
H A D | tls_device_fallback.c | 61 unsigned int buf_size; local 68 buf_size = TLS_HEADER_SIZE + cipher_desc->iv; 69 len = min_t(int, *in_len, buf_size);
|
/linux-master/drivers/net/ethernet/intel/idpf/ |
H A D | idpf_virtchnl.c | 1241 int err, buf_size; local 1244 buf_size = sizeof(struct virtchnl2_create_vport); 1246 adapter->vport_params_reqd[idx] = kzalloc(buf_size, 1284 xn_params.send_buf.iov_len = buf_size; 2026 int buf_size; local 2037 buf_size = struct_size(eq, chunks.chunks, num_chunks); 2039 eq = kzalloc(buf_size, GFP_KERNEL); 2052 xn_params.send_buf.iov_len = buf_size; 2207 int buf_size; local 2209 buf_size 2327 int buf_size, lut_buf_size; local 2403 int i, buf_size; local 3621 u32 entries_size, buf_size, num_entries; local [all...] |
/linux-master/drivers/media/radio/si470x/ |
H A D | radio-si470x.h | 148 unsigned int buf_size; member in struct:si470x_device
|
/linux-master/drivers/media/radio/wl128x/ |
H A D | fmdrv.h | 116 u32 buf_size; /* Size is always multiple of 3 */ member in struct:fm_rds
|
/linux-master/drivers/scsi/megaraid/ |
H A D | megaraid_ioctl.h | 240 uint32_t buf_size; member in struct:mm_dmapool
|
/linux-master/drivers/misc/vmw_vmci/ |
H A D | vmci_context.h | 95 u32 buf_size; member in struct:vmci_ctx_chkpt_buf_info
|
/linux-master/drivers/scsi/bfa/ |
H A D | bfad_bsg.h | 240 u32 buf_size; member in struct:bfa_bsg_ioc_fwstats_s 284 u32 buf_size; member in struct:bfa_bsg_port_stats_s 519 u32 buf_size; member in struct:bfa_bsg_cee_attr_s 528 u32 buf_size; member in struct:bfa_bsg_cee_stats_s
|