Home
last modified time | relevance | path

Searched refs:data_len (Results 1 – 25 of 128) sorted by relevance

123456

/linux-4.19.296/drivers/i2c/busses/
Di2c-dln2.c74 u8 *data, u16 data_len) in dln2_i2c_write() argument
93 tx->buf_len = cpu_to_le16(data_len); in dln2_i2c_write()
94 memcpy(tx->buf, data, data_len); in dln2_i2c_write()
96 len = sizeof(*tx) + data_len - DLN2_I2C_MAX_XFER_SIZE; in dln2_i2c_write()
101 return data_len; in dln2_i2c_write()
105 u16 data_len) in dln2_i2c_read() argument
127 tx.buf_len = cpu_to_le16(data_len); in dln2_i2c_read()
133 if (rx_len < sizeof(rx->buf_len) + data_len) in dln2_i2c_read()
135 if (le16_to_cpu(rx->buf_len) != data_len) in dln2_i2c_read()
138 memcpy(data, rx->buf, data_len); in dln2_i2c_read()
[all …]
Di2c-mlxcpld.c78 u8 data_len; member
243 priv->xfer.data_len = comm_len - priv->xfer.addr_width; in mlxcpld_i2c_set_transf_data()
246 priv->xfer.data_len = comm_len; in mlxcpld_i2c_set_transf_data()
317 return (priv->xfer.addr_width + priv->xfer.data_len); in mlxcpld_i2c_wait_for_tc()
345 datalen = priv->xfer.data_len; in mlxcpld_i2c_wait_for_tc()
367 &priv->xfer.data_len, 1); in mlxcpld_i2c_xfer_msg()
Di2c-qup.c196 int data_len; member
504 qup->blk.data_len = msg->len; in qup_i2c_set_blk_data()
510 int data_len; in qup_i2c_get_data_len() local
512 if (qup->blk.data_len > qup->blk_xfer_limit) in qup_i2c_get_data_len()
513 data_len = qup->blk_xfer_limit; in qup_i2c_get_data_len()
515 data_len = qup->blk.data_len; in qup_i2c_get_data_len()
517 return data_len; in qup_i2c_get_data_len()
552 int data_len; in qup_i2c_set_tags() local
583 data_len = qup_i2c_get_data_len(qup); in qup_i2c_set_tags()
586 if (data_len == QUP_READ_LIMIT) in qup_i2c_set_tags()
[all …]
/linux-4.19.296/crypto/asymmetric_keys/
Dmscode_parser.c24 int mscode_parse(void *_ctx, const void *content_data, size_t data_len, in mscode_parse() argument
30 data_len += asn1hdrlen; in mscode_parse()
31 pr_devel("Data: %zu [%*ph]\n", data_len, (unsigned)(data_len), in mscode_parse()
34 return asn1_ber_decoder(&mscode_decoder, ctx, content_data, data_len); in mscode_parse()
/linux-4.19.296/include/linux/
Dipmi_smi.h181 unsigned int data_len, in ipmi_demangle_device_id() argument
184 if (data_len < 7) in ipmi_demangle_device_id()
194 data_len--; in ipmi_demangle_device_id()
202 if (data_len >= 11) { in ipmi_demangle_device_id()
210 if (data_len >= 15) { in ipmi_demangle_device_id()
/linux-4.19.296/drivers/nvmem/
Drave-sp-eeprom.c159 size_t data_len) in rave_sp_eeprom_page_access() argument
172 if (WARN_ON(data_len > sizeof(page.data) - page_offset)) in rave_sp_eeprom_page_access()
180 if (data_len < RAVE_SP_EEPROM_PAGE_SIZE) { in rave_sp_eeprom_page_access()
187 memcpy(&page.data[page_offset], data, data_len); in rave_sp_eeprom_page_access()
199 memcpy(data, &page.data[page_offset], data_len); in rave_sp_eeprom_page_access()
223 unsigned int data_len) in rave_sp_eeprom_access() argument
233 residue = data_len; in rave_sp_eeprom_access()
/linux-4.19.296/drivers/media/usb/dvb-usb-v2/
Dce6230.c54 buf = kmalloc(req->data_len, GFP_KERNEL); in ce6230_ctrl_msg()
62 memcpy(buf, req->data, req->data_len); in ce6230_ctrl_msg()
72 buf, req->data_len, CE6230_USB_TIMEOUT); in ce6230_ctrl_msg()
75 buf, req->data_len); in ce6230_ctrl_msg()
85 memcpy(req->data, buf, req->data_len); in ce6230_ctrl_msg()
121 req.data_len = msg[i+1].len; in ce6230_i2c_master_xfer()
141 req.data_len = msg[i].len-1; in ce6230_i2c_master_xfer()
148 req.data_len = msg[i].len; in ce6230_i2c_master_xfer()
/linux-4.19.296/drivers/char/ipmi/
Dipmi_devintf.c160 msg.data_len = req->msg.data_len; in handle_send_req()
173 if (req->msg.data_len > IPMI_MAX_MSG_LENGTH) { in handle_send_req()
180 req->msg.data_len)) { in handle_send_req()
185 msg.data_len = 0; in handle_send_req()
251 if (msg->msg.data_len > 0) { in handle_recv()
252 if (rsp->msg.data_len < msg->msg.data_len) { in handle_recv()
255 msg->msg.data_len = rsp->msg.data_len; in handle_recv()
262 msg->msg.data_len)) { in handle_recv()
266 rsp->msg.data_len = msg->msg.data_len; in handle_recv()
268 rsp->msg.data_len = 0; in handle_recv()
[all …]
Dipmi_poweroff.c200 send_msg.data_len = 3; in pps_poweroff_atca()
232 send_msg.data_len = sizeof(data); in ipmi_atca_detect()
274 send_msg.data_len = sizeof(data); in ipmi_poweroff_atca()
345 send_msg.data_len = 0; in ipmi_poweroff_cpi1()
360 send_msg.data_len = 0; in ipmi_poweroff_cpi1()
383 send_msg.data_len = 1; in ipmi_poweroff_cpi1()
395 send_msg.data_len = 1; in ipmi_poweroff_cpi1()
409 send_msg.data_len = 1; in ipmi_poweroff_cpi1()
498 send_msg.data_len = sizeof(data); in ipmi_poweroff_chassis()
592 send_msg.data_len = 0; in ipmi_po_new_smi()
[all …]
Dkcs_bmc.c278 size_t data_len; in kcs_bmc_read() local
290 data_len = kcs_bmc->data_in_idx; in kcs_bmc_read()
291 memcpy(kcs_bmc->kbuffer, kcs_bmc->data_in, data_len); in kcs_bmc_read()
300 if (count < data_len) { in kcs_bmc_read()
302 kcs_bmc->channel, data_len); in kcs_bmc_read()
312 if (copy_to_user(buf, kcs_bmc->kbuffer, data_len)) { in kcs_bmc_read()
317 ret = data_len; in kcs_bmc_read()
/linux-4.19.296/include/uapi/linux/
Dtipc_config.h400 void *data, __u16 data_len) in TCM_SET() argument
405 msg_len = TCM_LENGTH(data_len); in TCM_SET()
410 if (data_len && data) { in TCM_SET()
411 memcpy(TCM_DATA(msg), data, data_len); in TCM_SET()
412 memset(TCM_DATA(msg) + data_len, 0, TCM_SPACE(data_len) - msg_len); in TCM_SET()
414 return TCM_SPACE(data_len); in TCM_SET()
Dipmi.h137 unsigned short data_len; member
144 unsigned short data_len; member
/linux-4.19.296/drivers/thunderbolt/
Dproperty.c309 bool recurse, size_t *data_len) in tb_property_dir_length() argument
326 property->value.dir, recurse, data_len); in tb_property_dir_length()
329 if (data_len) in tb_property_dir_length()
330 *data_len += 1; in tb_property_dir_length()
335 if (data_len) in tb_property_dir_length()
336 *data_len += property->length; in tb_property_dir_length()
353 size_t dir_len, data_len = 0; in __tb_property_format_dir() local
401 dir_len = tb_property_dir_length(dir, false, &data_len); in __tb_property_format_dir()
403 dir_end = start_offset + data_len + dir_len; in __tb_property_format_dir()
493 size_t dir_len, data_len = 0; in tb_property_format_dir() local
[all …]
/linux-4.19.296/fs/ubifs/
Dxattr.c107 .dirtied_ino_d = ALIGN(host_ui->data_len, 8) }; in create_xattr()
152 ui->data_len = size; in create_xattr()
217 .dirtied_ino_d = ALIGN(size, 8) + ALIGN(host_ui->data_len, 8) }; in change_xattr()
219 ubifs_assert(c, ui->data_len == inode->i_size); in change_xattr()
233 old_size = ui->data_len; in change_xattr()
234 ui->data_len = size; in change_xattr()
377 ubifs_assert(c, inode->i_size == ui->data_len); in ubifs_xattr_get()
378 ubifs_assert(c, ubifs_inode(host)->xattr_size > ui->data_len); in ubifs_xattr_get()
383 if (ui->data_len > size) { in ubifs_xattr_get()
388 memcpy(buf, ui->data, ui->data_len); in ubifs_xattr_get()
[all …]
Djournal.c450 int data_len = 0, last_reference = !inode->i_nlink; in pack_inode() local
469 ino->data_len = cpu_to_le32(ui->data_len); in pack_inode()
480 memcpy(ino->data, ui->data, ui->data_len); in pack_inode()
481 data_len = ui->data_len; in pack_inode()
484 ubifs_prep_grp_node(c, ino, UBIFS_INO_NODE_SZ + data_len, last); in pack_inode()
564 ilen += ui->data_len; in ubifs_jnl_update()
573 len += host_ui->data_len; in ubifs_jnl_update()
660 UBIFS_INO_NODE_SZ + host_ui->data_len); in ubifs_jnl_update()
820 len += ui->data_len; in ubifs_jnl_write_inode()
962 ubifs_assert(c, ubifs_inode(fst_dir)->data_len == 0); in ubifs_jnl_xrename()
[all …]
/linux-4.19.296/include/trace/events/
Dnet.h30 __field( unsigned int, data_len )
50 __entry->data_len = skb->data_len;
65 __entry->data_len,
160 __field( unsigned int, data_len )
186 __entry->data_len = skb->data_len;
200 __entry->data_len, __entry->truesize,
/linux-4.19.296/fs/
Dbinfmt_flat.c440 u32 text_len, data_len, bss_len, stack_len, full_data, flags; in load_flat_file() local
454 data_len = ntohl(hdr->data_end) - ntohl(hdr->data_start); in load_flat_file()
464 full_data = data_len + relocs * sizeof(unsigned long); in load_flat_file()
501 if ((text_len | data_len | bss_len | stack_len | full_data) >> 28) { in load_flat_file()
530 if (data_len + bss_len > rlim) { in load_flat_file()
575 len = data_len + extra + MAX_SHARED_LIBS * sizeof(unsigned long); in load_flat_file()
594 data_len + bss_len + stack_len, datapos); in load_flat_file()
621 len = text_len + data_len + extra + MAX_SHARED_LIBS * sizeof(u32); in load_flat_file()
712 vm_munmap(textpos, text_len + data_len + extra + in load_flat_file()
727 current->mm->end_data = datapos + data_len; in load_flat_file()
[all …]
/linux-4.19.296/drivers/media/usb/gspca/
Djl2005bcd.c316 int data_len; /* size to use for the next read. */ in jl2005c_dostream() local
368 data_len = bytes_left > JL2005C_MAX_TRANSFER ? in jl2005c_dostream()
372 buffer, data_len, &act_len, in jl2005c_dostream()
374 if (ret < 0 || act_len < data_len) in jl2005c_dostream()
378 data_len, bytes_left); in jl2005c_dostream()
379 bytes_left -= data_len; in jl2005c_dostream()
386 buffer, data_len); in jl2005c_dostream()
/linux-4.19.296/drivers/i2c/
Di2c-core-acpi.c471 u8 cmd, u8 *data, u8 data_len) in acpi_gsb_i2c_read_bytes() argument
478 buffer = kzalloc(data_len, GFP_KERNEL); in acpi_gsb_i2c_read_bytes()
489 msgs[1].len = data_len; in acpi_gsb_i2c_read_bytes()
497 data_len, client->addr, cmd, ret); in acpi_gsb_i2c_read_bytes()
500 data_len, client->addr, cmd, ret); in acpi_gsb_i2c_read_bytes()
503 memcpy(data, buffer, data_len); in acpi_gsb_i2c_read_bytes()
514 u8 cmd, u8 *data, u8 data_len) in acpi_gsb_i2c_write_bytes() argument
521 buffer = kzalloc(data_len + 1, GFP_KERNEL); in acpi_gsb_i2c_write_bytes()
526 memcpy(buffer + 1, data, data_len); in acpi_gsb_i2c_write_bytes()
530 msgs[0].len = data_len + 1; in acpi_gsb_i2c_write_bytes()
/linux-4.19.296/fs/btrfs/
Dprops.c196 u32 data_len = btrfs_dir_data_len(leaf, di); in iterate_object_props() local
200 this_len = sizeof(*di) + name_len + data_len; in iterate_object_props()
226 if (data_len > value_buf_len) { in iterate_object_props()
228 value_buf_len = data_len; in iterate_object_props()
229 value_buf = kmalloc(data_len, GFP_NOFS); in iterate_object_props()
235 read_extent_buffer(leaf, value_buf, data_ptr, data_len); in iterate_object_props()
237 iterator(ctx, handler, value_buf, data_len); in iterate_object_props()
/linux-4.19.296/drivers/memstick/host/
Dtifm_ms.c196 length = host->req->data_len - host->block_pos; in tifm_ms_transfer_data()
216 p_cnt = host->req->data_len - host->block_pos; in tifm_ms_transfer_data()
258 unsigned int data_len, cmd, sys_param; in tifm_ms_issue_cmd() local
271 data_len = host->req->sg.length; in tifm_ms_issue_cmd()
272 if (!is_power_of_2(data_len)) in tifm_ms_issue_cmd()
275 data_len = host->req->data_len; in tifm_ms_issue_cmd()
292 data_len = sg_dma_len(&host->req->sg); in tifm_ms_issue_cmd()
294 writel(ilog2(data_len) - 2, in tifm_ms_issue_cmd()
332 cmd |= data_len; in tifm_ms_issue_cmd()
Djmb38x_ms.c314 length = host->req->data_len - host->block_pos; in jmb38x_ms_transfer_data()
332 p_cnt = host->req->data_len - host->block_pos; in jmb38x_ms_transfer_data()
372 unsigned int data_len, cmd, t_val; in jmb38x_ms_issue_cmd() local
409 data_len = host->req->sg.length; in jmb38x_ms_issue_cmd()
411 data_len = host->req->data_len; in jmb38x_ms_issue_cmd()
415 if (data_len <= 8) { in jmb38x_ms_issue_cmd()
418 cmd |= data_len & 0xf; in jmb38x_ms_issue_cmd()
430 data_len = sg_dma_len(&host->req->sg); in jmb38x_ms_issue_cmd()
434 | (data_len & BLOCK_SIZE_MASK), in jmb38x_ms_issue_cmd()
439 | (data_len & BLOCK_SIZE_MASK), in jmb38x_ms_issue_cmd()
[all …]
/linux-4.19.296/fs/ecryptfs/
Dmessaging.c247 msg_size = (sizeof(*msg) + msg->data_len); in ecryptfs_process_response()
273 ecryptfs_send_message_locked(char *data, int data_len, u8 msg_type, in ecryptfs_send_message_locked() argument
295 rc = ecryptfs_send_miscdev(data, data_len, *msg_ctx, msg_type, 0, in ecryptfs_send_message_locked()
314 int ecryptfs_send_message(char *data, int data_len, in ecryptfs_send_message() argument
320 rc = ecryptfs_send_message_locked(data, data_len, ECRYPTFS_MSG_REQUEST, in ecryptfs_send_message()
/linux-4.19.296/drivers/base/
Ddevcoredump.c233 size_t data_len) in devcd_read_from_sgtable() argument
237 if (offset > data_len) in devcd_read_from_sgtable()
240 if (offset + buf_len > data_len) in devcd_read_from_sgtable()
241 buf_len = data_len - offset; in devcd_read_from_sgtable()
/linux-4.19.296/drivers/hid/i2c-hid/
Di2c-hid-core.c221 unsigned char *buf_recv, int data_len) in __i2c_hid_command() argument
255 if (data_len > 0) { in __i2c_hid_command()
259 msg[1].len = data_len; in __i2c_hid_command()
270 if (data_len > 0) in __i2c_hid_command()
294 unsigned char *buf_recv, int data_len) in i2c_hid_command() argument
297 buf_recv, data_len); in i2c_hid_command()
301 u8 reportID, unsigned char *buf_recv, int data_len) in i2c_hid_get_report() argument
320 reportType, args, args_len, buf_recv, data_len); in i2c_hid_get_report()
340 u8 reportID, unsigned char *buf, size_t data_len, bool use_data) in i2c_hid_set_or_send_report() argument
355 if (data_len > ihid->bufsize) in i2c_hid_set_or_send_report()
[all …]

123456