Home
last modified time | relevance | path

Searched refs:alloc_len (Results 1 – 25 of 37) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/scsi/
Dscsi_trace.c151 u32 alloc_len; in scsi_trace_service_action_in() local
166 alloc_len = get_unaligned_be32(&cdb[10]); in scsi_trace_service_action_in()
168 trace_seq_printf(p, "%s lba=%llu alloc_len=%u", cmd, lba, alloc_len); in scsi_trace_service_action_in()
180 u32 alloc_len; in scsi_trace_maintenance_in() local
212 alloc_len = get_unaligned_be32(&cdb[6]); in scsi_trace_maintenance_in()
214 trace_seq_printf(p, "%s alloc_len=%u", cmd, alloc_len); in scsi_trace_maintenance_in()
226 u32 alloc_len; in scsi_trace_maintenance_out() local
252 alloc_len = get_unaligned_be32(&cdb[6]); in scsi_trace_maintenance_out()
254 trace_seq_printf(p, "%s alloc_len=%u", cmd, alloc_len); in scsi_trace_maintenance_out()
267 u32 alloc_len; in scsi_trace_zbc_in() local
[all …]
Dscsi_debug.c1564 u32 alloc_len, n; in resp_inquiry() local
1568 alloc_len = get_unaligned_be16(cmd + 3); in resp_inquiry()
1680 len = min_t(u32, get_unaligned_be16(arr + 2) + 4, alloc_len); in resp_inquiry()
1718 min_t(u32, alloc_len, SDEBUG_LONG_INQ_SZ)); in resp_inquiry()
1733 u32 alloc_len = cmd[4]; in resp_requests() local
1778 return fill_from_dev_buffer(scp, arr, min_t(u32, len, alloc_len)); in resp_requests()
1860 u32 alloc_len; in resp_readcap16() local
1862 alloc_len = get_unaligned_be32(cmd + 10); in resp_readcap16()
1889 min_t(u32, alloc_len, SDEBUG_READCAP16_ARR_SZ)); in resp_readcap16()
1977 u32 alloc_len, a_len; in resp_rsup_opcodes() local
[all …]
/kernel/linux/linux-5.10/drivers/firmware/
Dqcom_scm-smc.c89 size_t alloc_len; in __scm_smc_call() local
107 alloc_len = SCM_SMC_N_EXT_ARGS * sizeof(u64); in __scm_smc_call()
108 args_virt = kzalloc(PAGE_ALIGN(alloc_len), flag); in __scm_smc_call()
127 args_phys = dma_map_single(dev, args_virt, alloc_len, in __scm_smc_call()
141 dma_unmap_single(dev, args_phys, alloc_len, DMA_TO_DEVICE); in __scm_smc_call()
Dqcom_scm-legacy.c143 size_t alloc_len = sizeof(*cmd) + cmd_len + sizeof(*rsp) + resp_len; in scm_legacy_call() local
148 cmd = kzalloc(PAGE_ALIGN(alloc_len), GFP_KERNEL); in scm_legacy_call()
152 cmd->len = cpu_to_le32(alloc_len); in scm_legacy_call()
163 cmd_phys = dma_map_single(dev, cmd, alloc_len, DMA_TO_DEVICE); in scm_legacy_call()
196 dma_unmap_single(dev, cmd_phys, alloc_len, DMA_TO_DEVICE); in scm_legacy_call()
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/
Dhfi_cmds.h149 u32 alloc_len; member
165 u32 alloc_len; member
176 u32 alloc_len; member
185 u32 alloc_len; member
196 u32 alloc_len; member
Dhfi_msgs.h171 u32 alloc_len; member
192 u32 alloc_len; member
210 u32 alloc_len; member
219 u32 alloc_len; member
Dhfi_cmds.c269 pkt->alloc_len = in_frame->alloc_len; in pkt_session_etb_decoder()
294 pkt->alloc_len = in_frame->alloc_len; in pkt_session_etb_encoder()
321 pkt->alloc_len = out_frame->alloc_len; in pkt_session_ftb()
Dhfi.h38 u32 alloc_len; member
/kernel/linux/linux-5.10/tools/lib/traceevent/plugins/
Dplugin_scsi.c319 u32 alloc_len = 0; in scsi_trace_service_action_in() local
341 alloc_len |= (cdb[10] << 24); in scsi_trace_service_action_in()
342 alloc_len |= (cdb[11] << 16); in scsi_trace_service_action_in()
343 alloc_len |= (cdb[12] << 8); in scsi_trace_service_action_in()
344 alloc_len |= cdb[13]; in scsi_trace_service_action_in()
347 (unsigned long long)lba, alloc_len); in scsi_trace_service_action_in()
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/
Dbh.c249 size_t alloc_len; in cw1200_bh_rx_helper() local
268 alloc_len = priv->hwbus_ops->align_size( in cw1200_bh_rx_helper()
272 if (WARN_ON_ONCE(alloc_len > EFFECTIVE_BUF_SIZE)) { in cw1200_bh_rx_helper()
274 alloc_len); in cw1200_bh_rx_helper()
277 skb_rx = dev_alloc_skb(alloc_len); in cw1200_bh_rx_helper()
287 if (WARN_ON(cw1200_data_read(priv, data, alloc_len))) { in cw1200_bh_rx_helper()
288 pr_err("rx blew up, len %zu\n", alloc_len); in cw1200_bh_rx_helper()
294 ((__le16 *)data)[alloc_len / 2 - 1]); in cw1200_bh_rx_helper()
/kernel/linux/linux-5.10/fs/notify/inotify/
Dinotify_fsnotify.c68 int alloc_len = sizeof(struct inotify_event_info); in inotify_handle_inode_event() local
73 alloc_len += len + 1; in inotify_handle_inode_event()
88 event = kmalloc(alloc_len, GFP_KERNEL_ACCOUNT | __GFP_RETRY_MAYFAIL); in inotify_handle_inode_event()
/kernel/linux/linux-5.10/drivers/staging/wfx/
Dbh.c69 size_t alloc_len; in rx_helper() local
78 alloc_len = wdev->hwbus_ops->align_size(wdev->hwbus_priv, read_len + 2); in rx_helper()
79 skb = dev_alloc_skb(alloc_len); in rx_helper()
83 if (wfx_data_read(wdev, skb->data, alloc_len)) in rx_helper()
86 piggyback = le16_to_cpup((__le16 *)(skb->data + alloc_len - 2)); in rx_helper()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_hmc.c31 u64 alloc_len; in i40e_add_sd_table_entry() local
49 alloc_len = I40E_HMC_PAGED_BP_SIZE; in i40e_add_sd_table_entry()
52 alloc_len = direct_mode_sz; in i40e_add_sd_table_entry()
56 ret_code = i40e_allocate_dma_mem(hw, &mem, mem_type, alloc_len, in i40e_add_sd_table_entry()
/kernel/linux/linux-5.10/drivers/net/ethernet/
Dec_bhf.c118 size_t alloc_len; member
339 buf->alloc_len = 2 * buf->len; in ec_bhf_alloc_dma_mem()
341 buf->alloc = dma_alloc_coherent(dev, buf->alloc_len, &buf->alloc_phys, in ec_bhf_alloc_dma_mem()
426 dma_free_coherent(dev, priv->rx_buf.alloc_len, priv->rx_buf.alloc, in ec_bhf_open()
427 priv->rx_buf.alloc_len); in ec_bhf_open()
443 dma_free_coherent(dev, priv->tx_buf.alloc_len, in ec_bhf_stop()
445 dma_free_coherent(dev, priv->rx_buf.alloc_len, in ec_bhf_stop()
/kernel/linux/linux-5.10/include/linux/ceph/
Dbuffer.h19 size_t alloc_len; member
/kernel/linux/linux-5.10/drivers/nvme/target/
Ddiscovery.c167 size_t alloc_len; in nvmet_execute_disc_get_log_page() local
198 alloc_len = sizeof(*hdr) + entry_size * discovery_log_entries(req); in nvmet_execute_disc_get_log_page()
199 buffer = kzalloc(alloc_len, GFP_KERNEL); in nvmet_execute_disc_get_log_page()
/kernel/linux/linux-5.10/net/ceph/
Dbuffer.c27 b->alloc_len = len; in ceph_buffer_new()
/kernel/linux/linux-5.10/drivers/scsi/lpfc/
Dlpfc_mbox.c1783 uint32_t alloc_len; in lpfc_sli4_config() local
1824 for (pagen = 0, alloc_len = 0; pagen < pcount; pagen++) { in lpfc_sli4_config()
1840 resid_len = length - alloc_len; in lpfc_sli4_config()
1844 alloc_len += SLI4_PAGE_SIZE; in lpfc_sli4_config()
1848 alloc_len = length; in lpfc_sli4_config()
1853 sli4_config->header.cfg_mhdr.payload_length = alloc_len; in lpfc_sli4_config()
1861 alloc_len - sizeof(union lpfc_sli4_cfg_shdr); in lpfc_sli4_config()
1867 return alloc_len; in lpfc_sli4_config()
2032 uint32_t alloc_len, req_len; in lpfc_sli4_mbx_read_fcf_rec() local
2042 alloc_len = lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_FCOE, in lpfc_sli4_mbx_read_fcf_rec()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/
Di40iw_hmc.c554 u64 alloc_len; in i40iw_add_sd_table_entry() local
559 alloc_len = I40IW_HMC_PAGED_BP_SIZE; in i40iw_add_sd_table_entry()
561 alloc_len = direct_mode_sz; in i40iw_add_sd_table_entry()
564 ret_code = i40iw_allocate_dma_mem(hw, &mem, alloc_len, in i40iw_add_sd_table_entry()
/kernel/linux/linux-5.10/fs/jffs2/
Dfile.c150 uint32_t alloc_len; in jffs2_write_begin() local
155 ret = jffs2_reserve_space(c, sizeof(ri), &alloc_len, in jffs2_write_begin()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
Dsdio.h130 size_t alloc_len; member
Dsdio.c49 pkt->alloc_len = 0; in ath10k_sdio_mbox_free_rx_pkt()
64 pkt->alloc_len = full_len; in ath10k_sdio_mbox_alloc_rx_pkt()
484 pkt->alloc_len = 0; in ath10k_sdio_mbox_rx_process_packets()
634 if (!ar_sdio->rx_pkts[i].alloc_len) in ath10k_sdio_mbox_rx_alloc()
651 skb->data, pkt->alloc_len); in ath10k_sdio_mbox_rx_fetch()
658 if (pkt->act_len > pkt->alloc_len) { in ath10k_sdio_mbox_rx_fetch()
683 virt_pkt_len += ar_sdio->rx_pkts[i].alloc_len; in ath10k_sdio_mbox_rx_fetch_bundle()
704 if (pkt->act_len > pkt->alloc_len) { in ath10k_sdio_mbox_rx_fetch_bundle()
710 pkt_offset += pkt->alloc_len; in ath10k_sdio_mbox_rx_fetch_bundle()
/kernel/linux/linux-5.10/tools/bpf/bpftool/
Dstruct_ops.c102 static struct bpf_map_info *map_info_alloc(__u32 *alloc_len) in map_info_alloc() argument
113 *alloc_len = map_info_alloc_len; in map_info_alloc()
/kernel/linux/linux-5.10/drivers/usb/storage/
Dsddr09.c1200 int numblocks, alloc_len, alloc_blocks; in sddr09_read_map() local
1223 alloc_len = (alloc_blocks << CONTROL_SHIFT); in sddr09_read_map()
1224 buffer = kmalloc(alloc_len, GFP_NOIO); in sddr09_read_map()
1229 buffer_end = buffer + alloc_len; in sddr09_read_map()
/kernel/linux/linux-5.10/drivers/crypto/
Dtalitos.c1331 int src_nents, dst_nents, alloc_len, dma_len, src_len, dst_len; in talitos_edesc_alloc() local
1376 alloc_len = sizeof(struct talitos_edesc); in talitos_edesc_alloc()
1384 alloc_len += dma_len; in talitos_edesc_alloc()
1388 alloc_len += icv_stashing ? authsize : 0; in talitos_edesc_alloc()
1392 alloc_len += sizeof(struct talitos_desc); in talitos_edesc_alloc()
1393 alloc_len += ivsize; in talitos_edesc_alloc()
1395 edesc = kmalloc(alloc_len, GFP_DMA | flags); in talitos_edesc_alloc()
1399 iv = memcpy(((u8 *)edesc) + alloc_len - ivsize, iv, ivsize); in talitos_edesc_alloc()

12