| /OK3568_Linux_fs/kernel/drivers/scsi/ |
| H A D | scsi_trace.c | 151 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 …]
|
| H A D | scsi_debug.c | 1564 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() 1896 min_t(u32, alloc_len, SDEBUG_READCAP16_ARR_SZ)); in resp_readcap16() 1984 u32 alloc_len, a_len; in resp_rsup_opcodes() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/firmware/ |
| H A D | qcom_scm-smc.c | 89 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()
|
| H A D | qcom_scm-legacy.c | 143 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()
|
| /OK3568_Linux_fs/u-boot/drivers/usb/emul/ |
| H A D | sandbox_flash.c | 58 int alloc_len; member 253 priv->alloc_len = req->cmd[4]; in handle_ufi_command() 313 priv->alloc_len = 0; in sandbox_flash_bulk() 337 len, priv->alloc_len, priv->read_len); in sandbox_flash_bulk() 348 if (priv->alloc_len && len > priv->alloc_len) in sandbox_flash_bulk() 349 len = priv->alloc_len; in sandbox_flash_bulk()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/st/cw1200/ |
| H A D | bh.c | 249 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()
|
| /OK3568_Linux_fs/kernel/tools/lib/traceevent/plugins/ |
| H A D | plugin_scsi.c | 319 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()
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/qcom/venus/ |
| H A D | hfi_cmds.h | 149 u32 alloc_len; member 165 u32 alloc_len; member 176 u32 alloc_len; member 185 u32 alloc_len; member 196 u32 alloc_len; member
|
| H A D | hfi_msgs.h | 171 u32 alloc_len; member 192 u32 alloc_len; member 210 u32 alloc_len; member 219 u32 alloc_len; member
|
| /OK3568_Linux_fs/kernel/drivers/staging/wfx/ |
| H A D | bh.c | 69 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()
|
| /OK3568_Linux_fs/kernel/fs/notify/inotify/ |
| H A D | inotify_fsnotify.c | 68 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/ |
| H A D | ec_bhf.c | 118 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_hmc.c | 31 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | dhd_pktlog.c | 462 uint32 alloc_len; in dhd_pktlog_filter_init() local 469 alloc_len = sizeof(dhd_pktlog_filter_t); in dhd_pktlog_filter_init() 470 filter = (dhd_pktlog_filter_t *)kzalloc(alloc_len, kflags); in dhd_pktlog_filter_init() 477 alloc_len = (sizeof(dhd_pktlog_filter_info_t) * size); in dhd_pktlog_filter_init() 478 filter_info = (dhd_pktlog_filter_info_t *)kzalloc(alloc_len, kflags); in dhd_pktlog_filter_init() 897 uint32 alloc_len; in dhd_pktlog_ring_change_size() local 907 alloc_len = size; in dhd_pktlog_ring_change_size() 908 if (alloc_len < MIN_PKTLOG_LEN) { in dhd_pktlog_ring_change_size() 909 alloc_len = MIN_PKTLOG_LEN; in dhd_pktlog_ring_change_size() 911 if (alloc_len > MAX_PKTLOG_LEN) { in dhd_pktlog_ring_change_size() [all …]
|
| H A D | wl_bigdata.c | 416 uint32 alloc_len; in wl_attach_ap_stainfo() local 429 alloc_len = sizeof(wl_ap_sta_info_t); in wl_attach_ap_stainfo() 430 sta_info = (wl_ap_sta_info_t *)kzalloc(alloc_len, kflags); in wl_attach_ap_stainfo() 439 alloc_len = sizeof(wl_ap_sta_data_t) * MAX_STA_INFO_AP_CNT; in wl_attach_ap_stainfo() 440 sta_data = (wl_ap_sta_data_t *)kzalloc(alloc_len, kflags); in wl_attach_ap_stainfo()
|
| H A D | dhd_debug.c | 1615 uint32 alloc_len; in dhd_dbg_attach_pkt_monitor() local 1641 alloc_len = sizeof(*tx_report); in dhd_dbg_attach_pkt_monitor() 1642 tx_report = (dhd_dbg_tx_report_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1650 alloc_len = (sizeof(*tx_pkts) * MAX_FATE_LOG_LEN); in dhd_dbg_attach_pkt_monitor() 1651 tx_pkts = (dhd_dbg_tx_info_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1666 alloc_len = sizeof(*rx_report); in dhd_dbg_attach_pkt_monitor() 1667 rx_report = (dhd_dbg_rx_report_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1675 alloc_len = (sizeof(*rx_pkts) * MAX_FATE_LOG_LEN); in dhd_dbg_attach_pkt_monitor() 1676 rx_pkts = (dhd_dbg_rx_info_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1695 alloc_len = (sizeof(*tx_pkts) * MAX_FATE_LOG_LEN); in dhd_dbg_attach_pkt_monitor() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | dhd_pktlog.c | 462 uint32 alloc_len; in dhd_pktlog_filter_init() local 469 alloc_len = sizeof(dhd_pktlog_filter_t); in dhd_pktlog_filter_init() 470 filter = (dhd_pktlog_filter_t *)kzalloc(alloc_len, kflags); in dhd_pktlog_filter_init() 477 alloc_len = (sizeof(dhd_pktlog_filter_info_t) * size); in dhd_pktlog_filter_init() 478 filter_info = (dhd_pktlog_filter_info_t *)kzalloc(alloc_len, kflags); in dhd_pktlog_filter_init() 897 uint32 alloc_len; in dhd_pktlog_ring_change_size() local 907 alloc_len = size; in dhd_pktlog_ring_change_size() 908 if (alloc_len < MIN_PKTLOG_LEN) { in dhd_pktlog_ring_change_size() 909 alloc_len = MIN_PKTLOG_LEN; in dhd_pktlog_ring_change_size() 911 if (alloc_len > MAX_PKTLOG_LEN) { in dhd_pktlog_ring_change_size() [all …]
|
| H A D | wl_bigdata.c | 416 uint32 alloc_len; in wl_attach_ap_stainfo() local 429 alloc_len = sizeof(wl_ap_sta_info_t); in wl_attach_ap_stainfo() 430 sta_info = (wl_ap_sta_info_t *)kzalloc(alloc_len, kflags); in wl_attach_ap_stainfo() 439 alloc_len = sizeof(wl_ap_sta_data_t) * MAX_STA_INFO_AP_CNT; in wl_attach_ap_stainfo() 440 sta_data = (wl_ap_sta_data_t *)kzalloc(alloc_len, kflags); in wl_attach_ap_stainfo()
|
| H A D | dhd_debug.c | 1615 uint32 alloc_len; in dhd_dbg_attach_pkt_monitor() local 1641 alloc_len = sizeof(*tx_report); in dhd_dbg_attach_pkt_monitor() 1642 tx_report = (dhd_dbg_tx_report_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1650 alloc_len = (sizeof(*tx_pkts) * MAX_FATE_LOG_LEN); in dhd_dbg_attach_pkt_monitor() 1651 tx_pkts = (dhd_dbg_tx_info_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1666 alloc_len = sizeof(*rx_report); in dhd_dbg_attach_pkt_monitor() 1667 rx_report = (dhd_dbg_rx_report_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1675 alloc_len = (sizeof(*rx_pkts) * MAX_FATE_LOG_LEN); in dhd_dbg_attach_pkt_monitor() 1676 rx_pkts = (dhd_dbg_rx_info_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1695 alloc_len = (sizeof(*tx_pkts) * MAX_FATE_LOG_LEN); in dhd_dbg_attach_pkt_monitor() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/ |
| H A D | dhd_debug.c | 1516 uint32 alloc_len; in dhd_dbg_attach_pkt_monitor() local 1543 alloc_len = sizeof(*tx_report); in dhd_dbg_attach_pkt_monitor() 1544 tx_report = (dhd_dbg_tx_report_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1552 alloc_len = (sizeof(*tx_pkts) * MAX_FATE_LOG_LEN); in dhd_dbg_attach_pkt_monitor() 1553 tx_pkts = (dhd_dbg_tx_info_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1568 alloc_len = sizeof(*rx_report); in dhd_dbg_attach_pkt_monitor() 1569 rx_report = (dhd_dbg_rx_report_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1577 alloc_len = (sizeof(*rx_pkts) * MAX_FATE_LOG_LEN); in dhd_dbg_attach_pkt_monitor() 1578 rx_pkts = (dhd_dbg_rx_info_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1597 alloc_len = (sizeof(*tx_pkts) * MAX_FATE_LOG_LEN); in dhd_dbg_attach_pkt_monitor() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/ |
| H A D | dhd_debug.c | 1516 uint32 alloc_len; in dhd_dbg_attach_pkt_monitor() local 1543 alloc_len = sizeof(*tx_report); in dhd_dbg_attach_pkt_monitor() 1544 tx_report = (dhd_dbg_tx_report_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1552 alloc_len = (sizeof(*tx_pkts) * MAX_FATE_LOG_LEN); in dhd_dbg_attach_pkt_monitor() 1553 tx_pkts = (dhd_dbg_tx_info_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1568 alloc_len = sizeof(*rx_report); in dhd_dbg_attach_pkt_monitor() 1569 rx_report = (dhd_dbg_rx_report_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1577 alloc_len = (sizeof(*rx_pkts) * MAX_FATE_LOG_LEN); in dhd_dbg_attach_pkt_monitor() 1578 rx_pkts = (dhd_dbg_rx_info_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1597 alloc_len = (sizeof(*tx_pkts) * MAX_FATE_LOG_LEN); in dhd_dbg_attach_pkt_monitor() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/infineon/ |
| H A D | dhd_debug.c | 1520 uint32 alloc_len; in dhd_dbg_attach_pkt_monitor() local 1547 alloc_len = sizeof(*tx_report); in dhd_dbg_attach_pkt_monitor() 1548 tx_report = (dhd_dbg_tx_report_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1556 alloc_len = (sizeof(*tx_pkts) * MAX_FATE_LOG_LEN); in dhd_dbg_attach_pkt_monitor() 1557 tx_pkts = (dhd_dbg_tx_info_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1572 alloc_len = sizeof(*rx_report); in dhd_dbg_attach_pkt_monitor() 1573 rx_report = (dhd_dbg_rx_report_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1581 alloc_len = (sizeof(*rx_pkts) * MAX_FATE_LOG_LEN); in dhd_dbg_attach_pkt_monitor() 1582 rx_pkts = (dhd_dbg_rx_info_t *)MALLOCZ(dhdp->osh, alloc_len); in dhd_dbg_attach_pkt_monitor() 1601 alloc_len = (sizeof(*tx_pkts) * MAX_FATE_LOG_LEN); in dhd_dbg_attach_pkt_monitor() [all …]
|
| /OK3568_Linux_fs/u-boot/tools/ |
| H A D | imximage.c | 907 size_t alloc_len; in imximage_generate() local 941 alloc_len = imximage_init_loadsize - imximage_ivt_offset; in imximage_generate() 943 if (alloc_len < header_size) { in imximage_generate() 949 imxhdr = malloc(alloc_len); in imximage_generate() 957 memset(imxhdr, 0, alloc_len); in imximage_generate() 959 tparams->header_size = alloc_len; in imximage_generate()
|
| /OK3568_Linux_fs/kernel/drivers/nvme/target/ |
| H A D | discovery.c | 167 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()
|
| /OK3568_Linux_fs/kernel/include/linux/ceph/ |
| H A D | buffer.h | 19 size_t alloc_len; member
|