Home
last modified time | relevance | path

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

123

/linux/drivers/ufs/core/
H A Dufs_bsg.c16 static int ufs_bsg_get_query_desc_size(struct ufs_hba *hba, int *desc_len, in ufs_bsg_get_query_desc_size() argument
24 *desc_len = min_t(int, QUERY_DESC_MAX_SIZE, desc_size); in ufs_bsg_get_query_desc_size()
30 uint8_t **desc_buff, int *desc_len, in ufs_bsg_alloc_desc_buffer() argument
42 if (ufs_bsg_get_query_desc_size(hba, desc_len, qr)) { in ufs_bsg_alloc_desc_buffer()
47 if (*desc_len > job->request_payload.payload_len) { in ufs_bsg_alloc_desc_buffer()
52 descp = kzalloc(*desc_len, GFP_KERNEL); in ufs_bsg_alloc_desc_buffer()
59 *desc_len); in ufs_bsg_alloc_desc_buffer()
140 int desc_len = 0; in ufs_bsg_request() local
153 ret = ufs_bsg_alloc_desc_buffer(hba, job, &buff, &desc_len, desc_op); in ufs_bsg_request()
161 buff, &desc_len, desc_op); in ufs_bsg_request()
[all …]
/linux/drivers/nvme/host/
H A Dfc.h36 nvme_fc_format_rsp_hdr(void *buf, u8 ls_cmd, __be32 desc_len, u8 rqst_ls_cmd) in nvme_fc_format_rsp_hdr() argument
41 acc->desc_list_len = desc_len; in nvme_fc_format_rsp_hdr()
43 acc->rqst.desc_len = in nvme_fc_format_rsp_hdr()
58 rjt->rjt.desc_len = fcnvme_lsdesc_len(sizeof(struct fcnvme_lsdesc_rjt)); in nvme_fc_format_rjt()
179 discon_rqst->associd.desc_len = in nvmefc_fmt_lsreq_discon_assoc()
187 discon_rqst->discon_cmd.desc_len = in nvmefc_fmt_lsreq_discon_assoc()
206 else if (rqst->associd.desc_len != in nvmefc_vldt_lsreq_discon_assoc()
213 else if (rqst->discon_cmd.desc_len != in nvmefc_vldt_lsreq_discon_assoc()
/linux/include/linux/
H A Dnvme-fc.h157 __be32 desc_len; member
234 __be32 desc_len; member
255 __be32 desc_len; member
283 __be32 desc_len; member
295 __be32 desc_len; member
302 __be32 desc_len; member
309 __be32 desc_len; member
H A Dkey.h120 u16 desc_len; member
124 u16 desc_len;
/linux/include/uapi/scsi/fc/
H A Dfc_els.h263 __be32 desc_len; /* Length of Descriptor (in bytes). member
284 (__be32_to_cpu((tlv)->desc_len) + FC_TLV_DESC_HDR_SZ)
305 __be32 desc_len; /* Length of Descriptor (in bytes) (4). member
1010 __be32 desc_len; /* Length of Descriptor (in bytes). member
1040 __be32 desc_len; /* Length of Descriptor (in bytes). member
1056 __be32 desc_len; /* Length of Descriptor (in bytes). member
1082 __be32 desc_len; /* Length of Descriptor (in bytes). member
1103 __be32 desc_len; /* Length of Descriptor List (in bytes). member
1113 __be32 desc_len; /* Length of Descriptor (in bytes). member
1134 __be32 desc_len; /* Length of Descriptor List (in bytes). member
[all …]
/linux/drivers/scsi/
H A Dscsi_common.c251 int add_sen_len, add_len, desc_len, k; in scsi_sense_desc_find() local
261 for (desc_len = 0, k = 0; k < add_sen_len; k += desc_len) { in scsi_sense_desc_find()
262 descp += desc_len; in scsi_sense_desc_find()
264 desc_len = add_len + 2; in scsi_sense_desc_find()
/linux/security/keys/
H A Dkeyring.c171 int n, desc_len = index_key->desc_len; in hash_key_type_and_desc() local
174 acc = mult_64x32_and_fold(type, desc_len + 13); in hash_key_type_and_desc()
181 n = desc_len; in hash_key_type_and_desc()
189 desc_len -= n; in hash_key_type_and_desc()
217 size_t n = min_t(size_t, index_key->desc_len, sizeof(index_key->desc)); in key_set_index_key()
273 int desc_len = index_key->desc_len, n = sizeof(chunk); in keyring_get_key_chunk() local
287 if (desc_len <= sizeof(index_key->desc)) in keyring_get_key_chunk()
292 desc_len -= sizeof(index_key->desc); in keyring_get_key_chunk()
293 if (desc_len > n) in keyring_get_key_chunk()
294 desc_len = n; in keyring_get_key_chunk()
[all …]
H A Dpersistent.c86 index_key.desc_len = sprintf(buf, "_persistent.%u", from_kuid(ns, uid)); in key_get_persistent()
/linux/fs/smb/server/
H A Dconnection.h129 unsigned int desc_len);
133 unsigned int desc_len);
158 unsigned int desc_len);
162 unsigned int desc_len);
H A Dconnection.c245 unsigned int desc_len) in ksmbd_conn_rdma_read() argument
252 desc, desc_len); in ksmbd_conn_rdma_read()
259 unsigned int desc_len) in ksmbd_conn_rdma_write() argument
266 desc, desc_len); in ksmbd_conn_rdma_write()
H A Dxattr.h96 __u16 desc_len; member
/linux/drivers/infiniband/core/
H A Dpacker.c63 int desc_len, in ib_pack() argument
69 for (i = 0; i < desc_len; ++i) { in ib_pack()
149 int desc_len, in ib_unpack() argument
155 for (i = 0; i < desc_len; ++i) { in ib_unpack()
/linux/drivers/gpu/drm/
H A Ddrm_ioc32.c87 u32 desc_len; /* Length of desc buffer */ member
108 .desc_len = v32.desc_len, in compat_drm_version()
121 v32.desc_len = v.desc_len; in compat_drm_version()
/linux/drivers/net/ethernet/chelsio/cxgb/
H A Dsge.c1165 unsigned int *desc_len, in write_large_page_tx_descs() argument
1173 while (*desc_len > SGE_TX_DESC_MAX_PLEN) { in write_large_page_tx_descs()
1174 *desc_len -= SGE_TX_DESC_MAX_PLEN; in write_large_page_tx_descs()
1176 *gen, nfrags == 0 && *desc_len == 0); in write_large_page_tx_descs()
1180 if (*desc_len) { in write_large_page_tx_descs()
1208 unsigned int i, flags, first_desc_len, desc_len, in write_tx_descs() local
1218 desc_len = skb_headlen(skb); in write_tx_descs()
1221 V_CMD_EOP(nfrags == 0 && desc_len <= SGE_TX_DESC_MAX_PLEN) | in write_tx_descs()
1223 first_desc_len = (desc_len <= SGE_TX_DESC_MAX_PLEN) ? in write_tx_descs()
1224 desc_len : SGE_TX_DESC_MAX_PLEN; in write_tx_descs()
[all …]
/linux/tools/perf/
H A Dbuiltin-list.c172 int desc_len = -1; in default_print_event()
175 desc_len = strlen(desc); in default_print_event()
176 desc_len = asprintf(&desc_with_unit, in default_print_event()
177 desc_len > 0 && desc[desc_len - 1] != '.' in default_print_event()
182 wordwrap(fp, desc_len > 0 ? desc_with_unit : desc, 8, pager_get_columns(), 0); in default_print_event()
171 int desc_len = -1; default_print_event() local
/linux/drivers/crypto/caam/
H A Ddesc_constr.h54 #define PRINT_POS do { printk(KERN_DEBUG "%02d: %s\n", desc_len(desc),\
84 static inline int desc_len(u32 * const desc) in desc_len() function
91 return desc_len(desc) * CAAM_CMD_SZ; in desc_bytes()
96 return desc + desc_len(desc); in desc_end()
248 (desc_len(desc) - (jump_cmd - desc))); in APPEND_CMD_RET()
256 val |= (desc_len(desc) << (MOVE_OFFSET_SHIFT + 2)) & MOVE_OFFSET_MASK; in set_move_tgt_here()
/linux/drivers/target/
H A Dtarget_core_xcopy.c303 unsigned short desc_len; in target_xcopy_parse_segdesc_02() local
305 desc_len = get_unaligned_be16(&desc[2]); in target_xcopy_parse_segdesc_02()
306 if (desc_len != 0x18) { in target_xcopy_parse_segdesc_02()
308 " %hu\n", desc_len); in target_xcopy_parse_segdesc_02()
323 desc_len, xop->stdi, xop->dtdi, dc); in target_xcopy_parse_segdesc_02()
/linux/net/ceph/
H A Dcls_lock_client.c35 int desc_len = strlen(desc); in ceph_cls_lock() local
44 desc_len + sizeof(__le32) + in ceph_cls_lock()
66 ceph_encode_string(&p, end, desc, desc_len); in ceph_cls_lock()
/linux/include/rdma/
H A Dib_pack.h262 int desc_len,
267 int desc_len,
/linux/drivers/hid/surface-hid/
H A Dsurface_hid_core.c51 if (shid->hid_desc.desc_len != sizeof(shid->hid_desc)) { in surface_hid_load_hid_descriptor()
53 shid->hid_desc.desc_len, sizeof(shid->hid_desc)); in surface_hid_load_hid_descriptor()
H A Dsurface_hid_core.h27 __u8 desc_len; /* = 9 */ member
/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00debug.c153 data_len -= skbdesc->desc_len; in rt2x00debug_dump_frame()
155 skbcopy = alloc_skb(sizeof(*dump_hdr) + skbdesc->desc_len + data_len, in rt2x00debug_dump_frame()
165 dump_hdr->desc_length = cpu_to_le32(skbdesc->desc_len); in rt2x00debug_dump_frame()
178 skb_put_data(skbcopy, skbdesc->desc, skbdesc->desc_len); in rt2x00debug_dump_frame()
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_msg.c945 long desc_len; in vmw_mksstat_add_ioctl() local
1010 desc_len = strncpy_from_user(pdesc->description, u64_to_user_ptr(arg->description), in vmw_mksstat_add_ioctl()
1013 if (desc_len < 0) { in vmw_mksstat_add_ioctl()
1054 …DRM_DEV_INFO(dev->dev, "pid=%d arg.description='%.*s' id=%zu\n", current->pid, (int)desc_len, pdes… in vmw_mksstat_add_ioctl()
/linux/drivers/spi/
H A Dspi-mxs.c171 const int desc_len = vmalloced_buf ? PAGE_SIZE : SG_MAXLEN; in mxs_spi_txrx_dma() local
172 const int sgs = DIV_ROUND_UP(len, desc_len); in mxs_spi_txrx_dma()
203 min = min(len, desc_len); in mxs_spi_txrx_dma()
/linux/drivers/net/ethernet/emulex/benet/
H A Dbe_cmds.c4269 hdr->desc_len = hdr->desc_len ? : RESOURCE_DESC_SIZE_V0; in be_get_nic_desc()
4270 hdr = (void *)hdr + hdr->desc_len; in be_get_nic_desc()
4302 hdr->desc_len = hdr->desc_len ? : RESOURCE_DESC_SIZE_V0; in be_get_pcie_desc()
4303 hdr = (void *)hdr + hdr->desc_len; in be_get_pcie_desc()
4317 hdr->desc_len = hdr->desc_len ? : RESOURCE_DESC_SIZE_V0; in be_get_port_desc()
4318 hdr = (void *)hdr + hdr->desc_len; in be_get_port_desc()
4427 hdr->desc_len = hdr->desc_len ? : RESOURCE_DESC_SIZE_V0; in be_get_nic_pf_num_list()
4428 hdr = (void *)hdr + hdr->desc_len; in be_get_nic_pf_num_list()
4613 nic_desc.hdr.desc_len = RESOURCE_DESC_SIZE_V0; in be_cmd_config_qos()
4620 nic_desc.hdr.desc_len = RESOURCE_DESC_SIZE_V1; in be_cmd_config_qos()
[all …]

123