Home
last modified time | relevance | path

Searched refs:desc_len (Results 1 – 25 of 38) sorted by relevance

12

/drivers/scsi/
Dscsi_common.c198 int add_sen_len, add_len, desc_len, k; in scsi_sense_desc_find() local
208 for (desc_len = 0, k = 0; k < add_sen_len; k += desc_len) { in scsi_sense_desc_find()
209 descp += desc_len; in scsi_sense_desc_find()
211 desc_len = add_len + 2; in scsi_sense_desc_find()
/drivers/infiniband/core/
Dpacker.c63 int desc_len, in ib_pack() argument
69 for (i = 0; i < desc_len; ++i) { in ib_pack()
150 int desc_len, in ib_unpack() argument
156 for (i = 0; i < desc_len; ++i) { in ib_unpack()
/drivers/net/wireless/ath/ath9k/
Dinit.c231 int i, bsize, desc_len; in ath_descdma_setup() local
239 desc_len = sc->sc_ah->caps.tx_desc_len; in ath_descdma_setup()
241 desc_len = sizeof(struct ath_desc); in ath_descdma_setup()
244 if ((desc_len % 4) != 0) { in ath_descdma_setup()
246 BUG_ON((desc_len % 4) != 0); in ath_descdma_setup()
250 dd->dd_desc_len = desc_len * nbuf * ndesc; in ath_descdma_setup()
263 dma_len = ndesc_skipped * desc_len; in ath_descdma_setup()
290 for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { in ath_descdma_setup()
306 ds += (desc_len * ndesc); in ath_descdma_setup()
321 for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { in ath_descdma_setup()
[all …]
Dar9003_mac.c32 u8 desc_len; in ar9003_set_txdesc() local
34 desc_len = ((AR_SREV_9462(ah) || AR_SREV_9565(ah)) ? 0x18 : 0x17); in ar9003_set_txdesc()
39 (i->qcu << AR_TxQcuNum_S) | desc_len; in ar9003_set_txdesc()
/drivers/net/ethernet/chelsio/cxgb/
Dsge.c1164 unsigned int *desc_len, in write_large_page_tx_descs() argument
1172 while (*desc_len > SGE_TX_DESC_MAX_PLEN) { in write_large_page_tx_descs()
1173 *desc_len -= SGE_TX_DESC_MAX_PLEN; in write_large_page_tx_descs()
1175 *gen, nfrags == 0 && *desc_len == 0); in write_large_page_tx_descs()
1179 if (*desc_len) { in write_large_page_tx_descs()
1207 unsigned int i, flags, first_desc_len, desc_len, in write_tx_descs() local
1217 desc_len = skb_headlen(skb); in write_tx_descs()
1220 V_CMD_EOP(nfrags == 0 && desc_len <= SGE_TX_DESC_MAX_PLEN) | in write_tx_descs()
1222 first_desc_len = (desc_len <= SGE_TX_DESC_MAX_PLEN) ? in write_tx_descs()
1223 desc_len : SGE_TX_DESC_MAX_PLEN; in write_tx_descs()
[all …]
/drivers/crypto/caam/
Ddesc_constr.h16 #define PRINT_POS do { printk(KERN_DEBUG "%02d: %s\n", desc_len(desc),\
33 static inline int desc_len(u32 *desc) in desc_len() function
40 return desc_len(desc) * CAAM_CMD_SZ; in desc_bytes()
45 return desc + desc_len(desc); in desc_end()
171 *jump_cmd = *jump_cmd | (desc_len(desc) - (jump_cmd - desc)); in APPEND_CMD_RET()
177 *move_cmd = *move_cmd | ((desc_len(desc) << (MOVE_OFFSET_SHIFT + 2)) & in set_move_tgt_here()
Dcaamhash.c851 sh_len = desc_len(sh_desc); in ahash_update_ctx()
931 sh_len = desc_len(sh_desc); in ahash_final_ctx()
1017 sh_len = desc_len(sh_desc); in ahash_finup_ctx()
1104 sh_len = desc_len(sh_desc); in ahash_digest()
1173 sh_len = desc_len(sh_desc); in ahash_final_no_ctx()
1270 sh_len = desc_len(sh_desc); in ahash_update_no_ctx()
1357 sh_len = desc_len(sh_desc); in ahash_finup_no_ctx()
1476 sh_len = desc_len(sh_desc); in ahash_update_first()
Dctrl.c130 for (i = 0; i < desc_len(desc); i++) in run_descriptor_deco0()
138 if (desc_len(desc) >= 4) in run_descriptor_deco0()
Dcaamrng.c226 int sh_len = desc_len(ctx->sh_desc); in rng_create_job_desc()
/drivers/target/
Dtarget_core_xcopy.c318 unsigned short desc_len; in target_xcopy_parse_segdesc_02() local
320 desc_len = get_unaligned_be16(&desc[2]); in target_xcopy_parse_segdesc_02()
321 if (desc_len != 0x18) { in target_xcopy_parse_segdesc_02()
323 " %hu\n", desc_len); in target_xcopy_parse_segdesc_02()
330 desc_len, xop->stdi, xop->dtdi, dc); in target_xcopy_parse_segdesc_02()
Dtarget_core_pr.c3945 int exp_desc_len, desc_len; in core_scsi3_pri_read_full_status() local
4062 desc_len = target_get_pr_transport_id(se_nacl, pr_reg, in core_scsi3_pri_read_full_status()
4068 if (desc_len < 0) in core_scsi3_pri_read_full_status()
4073 buf[off++] = ((desc_len >> 24) & 0xff); in core_scsi3_pri_read_full_status()
4074 buf[off++] = ((desc_len >> 16) & 0xff); in core_scsi3_pri_read_full_status()
4075 buf[off++] = ((desc_len >> 8) & 0xff); in core_scsi3_pri_read_full_status()
4076 buf[off++] = (desc_len & 0xff); in core_scsi3_pri_read_full_status()
4084 add_desc_len = (24 + desc_len); in core_scsi3_pri_read_full_status()
4086 off += desc_len; in core_scsi3_pri_read_full_status()
/drivers/net/wireless/rt2x00/
Drt2x00debug.c181 data_len -= skbdesc->desc_len; in rt2x00debug_dump_frame()
183 skbcopy = alloc_skb(sizeof(*dump_hdr) + skbdesc->desc_len + data_len, in rt2x00debug_dump_frame()
193 dump_hdr->desc_length = cpu_to_le32(skbdesc->desc_len); in rt2x00debug_dump_frame()
205 memcpy(skb_put(skbcopy, skbdesc->desc_len), skbdesc->desc, in rt2x00debug_dump_frame()
206 skbdesc->desc_len); in rt2x00debug_dump_frame()
Drt2x00mmio.c80 skbdesc->desc_len = entry->queue->desc_size; in rt2x00mmio_rxdone()
Drt2x00queue.h110 u8 desc_len; member
Drt2800usb.c526 skbdesc->desc_len = TXINFO_DESC_SIZE + entry->queue->winfo_size; in rt2800usb_write_tx_desc()
697 memcpy(skbdesc->desc, rxi, skbdesc->desc_len); in rt2800usb_fill_rxdone()
Drt2800mmio.c98 skbdesc->desc_len = TXD_DESC_SIZE; in rt2800mmio_write_tx_desc()
Drt2x00usb.c350 skbdesc->desc_len = entry->queue->desc_size; in rt2x00usb_work_rxdone()
/drivers/spi/
Dspi-mxs.c179 const int desc_len = vmalloced_buf ? PAGE_SIZE : SG_MAXLEN; in mxs_spi_txrx_dma() local
180 const int sgs = DIV_ROUND_UP(len, desc_len); in mxs_spi_txrx_dma()
211 min = min(len, desc_len); in mxs_spi_txrx_dma()
Dspi.c700 int desc_len; in spi_map_buf() local
708 desc_len = PAGE_SIZE; in spi_map_buf()
709 sgs = DIV_ROUND_UP(len + offset_in_page(buf), desc_len); in spi_map_buf()
711 desc_len = master->max_dma_len; in spi_map_buf()
712 sgs = DIV_ROUND_UP(len, desc_len); in spi_map_buf()
727 min = min_t(size_t, desc_len, in spi_map_buf()
738 min = min_t(size_t, len, desc_len); in spi_map_buf()
/drivers/gpu/drm/
Ddrm_ioc32.c83 u32 desc_len; /**< Length of desc buffer */ member
106 || __put_user(v32.desc_len, &version->desc_len) in compat_drm_version()
121 || __get_user(v32.desc_len, &version->desc_len)) in compat_drm_version()
/drivers/net/ethernet/emulex/benet/
Dbe_cmds.c3601 hdr->desc_len = hdr->desc_len ? : RESOURCE_DESC_SIZE_V0; in be_get_nic_desc()
3602 hdr = (void *)hdr + hdr->desc_len; in be_get_nic_desc()
3632 hdr->desc_len = hdr->desc_len ? : RESOURCE_DESC_SIZE_V0; in be_get_pcie_desc()
3633 hdr = (void *)hdr + hdr->desc_len; in be_get_pcie_desc()
3647 hdr->desc_len = hdr->desc_len ? : RESOURCE_DESC_SIZE_V0; in be_get_port_desc()
3648 hdr = (void *)hdr + hdr->desc_len; in be_get_port_desc()
3891 nic_desc.hdr.desc_len = RESOURCE_DESC_SIZE_V0; in be_cmd_config_qos()
3898 nic_desc.hdr.desc_len = RESOURCE_DESC_SIZE_V1; in be_cmd_config_qos()
3905 nic_desc.hdr.desc_len, in be_cmd_config_qos()
3985 desc.pcie.hdr.desc_len = RESOURCE_DESC_SIZE_V1; in be_cmd_set_sriov_config()
[all …]
/drivers/mmc/host/
Ddw_mmc.c475 unsigned int desc_len; in dw_mci_translate_sglist() local
489 desc_len = (length <= DW_MCI_DESC_DATA_LENGTH) ? in dw_mci_translate_sglist()
492 length -= desc_len; in dw_mci_translate_sglist()
502 IDMAC_64ADDR_SET_BUFFER1_SIZE(desc, desc_len); in dw_mci_translate_sglist()
509 mem_addr += desc_len; in dw_mci_translate_sglist()
534 desc_len = (length <= DW_MCI_DESC_DATA_LENGTH) ? in dw_mci_translate_sglist()
537 length -= desc_len; in dw_mci_translate_sglist()
548 IDMAC_SET_BUFFER1_SIZE(desc, desc_len); in dw_mci_translate_sglist()
554 mem_addr += desc_len; in dw_mci_translate_sglist()
/drivers/usb/gadget/function/
Df_accessory.c471 int id, int desc_len) in acc_hid_new() argument
478 hdev->report_desc = kzalloc(desc_len, GFP_ATOMIC); in acc_hid_new()
485 hdev->report_desc_len = desc_len; in acc_hid_new()
/drivers/ata/
Dlibata-eh.c189 ehi->desc_len += vscnprintf(ehi->desc + ehi->desc_len, in __ata_ehi_pushv_desc()
190 ATA_EH_DESC_LEN - ehi->desc_len, in __ata_ehi_pushv_desc()
228 if (ehi->desc_len) in ata_ehi_push_desc()
248 ehi->desc_len = 0; in ata_ehi_clear_desc()
270 if (ap->link.eh_info.desc_len) in ata_port_desc()
/drivers/net/wireless/ath/ath5k/
Dbase.c863 ah->desc_len = sizeof(struct ath5k_desc) * in ath5k_desc_alloc()
866 ah->desc = dma_alloc_coherent(ah->dev, ah->desc_len, in ath5k_desc_alloc()
876 ds, ah->desc_len, (unsigned long long)ah->desc_daddr); in ath5k_desc_alloc()
912 dma_free_coherent(ah->dev, ah->desc_len, ah->desc, ah->desc_daddr); in ath5k_desc_alloc()
961 dma_free_coherent(ah->dev, ah->desc_len, ah->desc, ah->desc_daddr); in ath5k_desc_free()

12