Home
last modified time | relevance | path

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

12

/linux/drivers/scsi/
A 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()
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
280 alloc_len = get_unaligned_be32(&cdb[10]); in scsi_trace_zbc_in()
[all …]
A Dscsi_debug.c1565 u32 alloc_len, n; in resp_inquiry() local
1861 u32 alloc_len; in resp_readcap16() local
1990 if (alloc_len < 4 || alloc_len > 0xffff) { in resp_rsup_opcodes()
1997 a_len = alloc_len; in resp_rsup_opcodes()
2117 len = (offset < alloc_len) ? offset : alloc_len; in resp_rsup_opcodes()
2127 u32 alloc_len, len; in resp_rsup_tmfs() local
2134 if (alloc_len < 4) { in resp_rsup_tmfs()
2146 len = (len < alloc_len) ? len : alloc_len; in resp_rsup_tmfs()
4022 if (alloc_len < 24) in resp_get_lba_status()
4160 if (alloc_len < 4) { in resp_report_luns()
[all …]
/linux/drivers/firmware/
A 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()
A 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()
/linux/drivers/net/wireless/st/cw1200/
A Dbh.c244 size_t alloc_len; in cw1200_bh_rx_helper() local
263 alloc_len = priv->hwbus_ops->align_size( in cw1200_bh_rx_helper()
267 if (WARN_ON_ONCE(alloc_len > EFFECTIVE_BUF_SIZE)) { in cw1200_bh_rx_helper()
269 alloc_len); in cw1200_bh_rx_helper()
272 skb_rx = dev_alloc_skb(alloc_len); in cw1200_bh_rx_helper()
282 if (WARN_ON(cw1200_data_read(priv, data, alloc_len))) { in cw1200_bh_rx_helper()
283 pr_err("rx blew up, len %zu\n", alloc_len); in cw1200_bh_rx_helper()
289 ((__le16 *)data)[alloc_len / 2 - 1]); in cw1200_bh_rx_helper()
/linux/tools/lib/traceevent/plugins/
A 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()
/linux/drivers/media/platform/qcom/venus/
A 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
A Dhfi_msgs.h172 u32 alloc_len; member
193 u32 alloc_len; member
211 u32 alloc_len; member
220 u32 alloc_len; member
A Dhfi_cmds.c270 pkt->alloc_len = in_frame->alloc_len; in pkt_session_etb_decoder()
295 pkt->alloc_len = in_frame->alloc_len; in pkt_session_etb_encoder()
322 pkt->alloc_len = out_frame->alloc_len; in pkt_session_ftb()
A Dhfi.h38 u32 alloc_len; member
/linux/drivers/staging/wfx/
A Dbh.c71 size_t alloc_len; in rx_helper() local
80 alloc_len = wdev->hwbus_ops->align_size(wdev->hwbus_priv, read_len + 2); in rx_helper()
81 skb = dev_alloc_skb(alloc_len); in rx_helper()
85 if (wfx_data_read(wdev, skb->data, alloc_len)) in rx_helper()
88 piggyback = le16_to_cpup((__le16 *)(skb->data + alloc_len - 2)); in rx_helper()
/linux/fs/notify/inotify/
A Dinotify_fsnotify.c69 int alloc_len = sizeof(struct inotify_event_info); in inotify_handle_inode_event() local
74 alloc_len += len + 1; in inotify_handle_inode_event()
89 event = kmalloc(alloc_len, GFP_KERNEL_ACCOUNT | __GFP_RETRY_MAYFAIL); in inotify_handle_inode_event()
/linux/drivers/net/ethernet/
A 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()
/linux/drivers/net/ethernet/intel/i40e/
A 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()
/linux/drivers/nvme/target/
A Ddiscovery.c168 size_t alloc_len; in nvmet_execute_disc_get_log_page() local
200 alloc_len = sizeof(*hdr) + entry_size * discovery_log_entries(req); in nvmet_execute_disc_get_log_page()
201 buffer = kzalloc(alloc_len, GFP_KERNEL); in nvmet_execute_disc_get_log_page()
/linux/include/linux/ceph/
A Dbuffer.h19 size_t alloc_len; member
/linux/drivers/infiniband/hw/irdma/
A Dhmc.c488 u64 alloc_len; in irdma_add_sd_table_entry() local
493 alloc_len = IRDMA_HMC_PAGED_BP_SIZE; in irdma_add_sd_table_entry()
495 alloc_len = direct_mode_sz; in irdma_add_sd_table_entry()
498 dma_mem.size = ALIGN(alloc_len, IRDMA_HMC_PD_BP_BUF_ALIGNMENT); in irdma_add_sd_table_entry()
/linux/drivers/scsi/lpfc/
A Dlpfc_mbox.c1785 uint32_t alloc_len; in lpfc_sli4_config() local
1826 for (pagen = 0, alloc_len = 0; pagen < pcount; pagen++) { in lpfc_sli4_config()
1842 resid_len = length - alloc_len; in lpfc_sli4_config()
1846 alloc_len += SLI4_PAGE_SIZE; in lpfc_sli4_config()
1850 alloc_len = length; in lpfc_sli4_config()
1855 sli4_config->header.cfg_mhdr.payload_length = alloc_len; in lpfc_sli4_config()
1863 alloc_len - sizeof(union lpfc_sli4_cfg_shdr); in lpfc_sli4_config()
1869 return alloc_len; in lpfc_sli4_config()
2034 uint32_t alloc_len, req_len; in lpfc_sli4_mbx_read_fcf_rec() local
2048 if (alloc_len < req_len) { in lpfc_sli4_mbx_read_fcf_rec()
[all …]
/linux/net/ceph/
A Dbuffer.c27 b->alloc_len = len; in ceph_buffer_new()
/linux/drivers/net/wireless/ath/ath10k/
A 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()
A Dsdio.h130 size_t alloc_len; member
/linux/fs/jffs2/
A Dfile.c155 uint32_t alloc_len; in jffs2_write_begin() local
160 ret = jffs2_reserve_space(c, sizeof(ri), &alloc_len, in jffs2_write_begin()
/linux/tools/bpf/bpftool/
A 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()
/linux/drivers/usb/storage/
A 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()
/linux/drivers/crypto/
A Dtalitos.c1332 int src_nents, dst_nents, alloc_len, dma_len, src_len, dst_len; in talitos_edesc_alloc() local
1377 alloc_len = sizeof(struct talitos_edesc); in talitos_edesc_alloc()
1385 alloc_len += dma_len; in talitos_edesc_alloc()
1389 alloc_len += icv_stashing ? authsize : 0; in talitos_edesc_alloc()
1393 alloc_len += sizeof(struct talitos_desc); in talitos_edesc_alloc()
1394 alloc_len += ivsize; in talitos_edesc_alloc()
1396 edesc = kmalloc(alloc_len, GFP_DMA | flags); in talitos_edesc_alloc()
1400 iv = memcpy(((u8 *)edesc) + alloc_len - ivsize, iv, ivsize); in talitos_edesc_alloc()

Completed in 71 milliseconds

12