/drivers/misc/altera-stapl/ |
D | altera-comp.c | 82 u32 i, j, data_length = 0L; in altera_shrink() local 96 data_length = data_length | ( in altera_shrink() 103 if (data_length > out_length) { in altera_shrink() 104 data_length = 0L; in altera_shrink() 105 return data_length; in altera_shrink() 109 while (i < data_length) { in altera_shrink() 114 if (i < data_length) { in altera_shrink() 133 if (i < data_length) { in altera_shrink() 141 return data_length; in altera_shrink()
|
/drivers/target/iscsi/ |
D | iscsi_target_seq_pdu_list.c | 234 unsolicited_data_length = min(cmd->se_cmd.data_length, in iscsit_determine_counts_for_list() 237 while (offset < cmd->se_cmd.data_length) { in iscsit_determine_counts_for_list() 250 if ((offset + mdsl) >= cmd->se_cmd.data_length) { in iscsit_determine_counts_for_list() 252 (cmd->se_cmd.data_length - offset); in iscsit_determine_counts_for_list() 253 offset += (cmd->se_cmd.data_length - offset); in iscsit_determine_counts_for_list() 272 if ((offset + mdsl) >= cmd->se_cmd.data_length) { in iscsit_determine_counts_for_list() 273 offset += (cmd->se_cmd.data_length - offset); in iscsit_determine_counts_for_list() 320 unsolicited_data_length = min(cmd->se_cmd.data_length, in iscsit_do_build_pdu_and_seq_lists() 323 while (offset < cmd->se_cmd.data_length) { in iscsit_do_build_pdu_and_seq_lists() 357 if ((offset + mdsl) >= cmd->se_cmd.data_length) { in iscsit_do_build_pdu_and_seq_lists() [all …]
|
D | iscsi_target_datain_values.c | 111 read_data_left = (cmd->se_cmd.data_length - read_data_done); in iscsit_set_datain_values_yes_and_yes() 210 read_data_left = (cmd->se_cmd.data_length - read_data_done); in iscsit_set_datain_values_no_and_yes() 229 cmd->se_cmd.data_length) { in iscsit_set_datain_values_no_and_yes() 230 datain->length = (cmd->se_cmd.data_length - offset); in iscsit_set_datain_values_no_and_yes() 262 if ((read_data_done + datain->length) == cmd->se_cmd.data_length) in iscsit_set_datain_values_no_and_yes() 331 read_data_left = (cmd->se_cmd.data_length - read_data_done); in iscsit_set_datain_values_yes_and_no() 342 if ((read_data_done + pdu->length) == cmd->se_cmd.data_length) { in iscsit_set_datain_values_yes_and_no() 431 read_data_left = (cmd->se_cmd.data_length - read_data_done); in iscsit_set_datain_values_no_and_no() 461 if ((read_data_done + pdu->length) == cmd->se_cmd.data_length) in iscsit_set_datain_values_no_and_no()
|
D | iscsi_target_erl0.c | 48 cmd->seq_end_offset = min(cmd->se_cmd.data_length, in iscsit_set_dataout_sequence_values() 58 cmd->seq_end_offset = (cmd->se_cmd.data_length > in iscsit_set_dataout_sequence_values() 61 conn->sess->sess_ops->MaxBurstLength) : cmd->se_cmd.data_length; in iscsit_set_dataout_sequence_values() 66 cmd->se_cmd.data_length) ? cmd->se_cmd.data_length : in iscsit_set_dataout_sequence_values() 182 if ((first_burst_len != cmd->se_cmd.data_length) && in iscsit_dataout_check_unsolicited_sequence() 188 cmd->se_cmd.data_length); in iscsit_dataout_check_unsolicited_sequence() 201 if (first_burst_len == cmd->se_cmd.data_length) { in iscsit_dataout_check_unsolicited_sequence() 204 " error.\n", cmd->init_task_tag, cmd->se_cmd.data_length); in iscsit_dataout_check_unsolicited_sequence() 295 cmd->se_cmd.data_length)) { in iscsit_dataout_check_sequence() 320 cmd->se_cmd.data_length) { in iscsit_dataout_check_sequence() [all …]
|
/drivers/scsi/esas2r/ |
D | esas2r_vda.c | 110 datalen = vi->data_length; in esas2r_process_vda_ioctl() 124 datalen = vi->data_length; in esas2r_process_vda_ioctl() 147 if (vi->data_length) { in esas2r_process_vda_ioctl() 156 payldlen = vi->data_length; in esas2r_process_vda_ioctl() 157 datalen = vi->cmd.mgt.data_length; in esas2r_process_vda_ioctl() 161 datalen = vi->data_length; in esas2r_process_vda_ioctl() 185 datalen = vi->cmd.mgt.data_length; in esas2r_process_vda_ioctl() 209 if (vi->data_length in esas2r_process_vda_ioctl() 210 || vi->cmd.cfg.data_length == 0) { in esas2r_process_vda_ioctl() 221 rq->vrq->cfg.length = cpu_to_le32(vi->cmd.cfg.data_length); in esas2r_process_vda_ioctl() [all …]
|
/drivers/media/firewire/ |
D | firedtv-ci.c | 130 int data_length; in fdtv_ca_pmt() local 135 data_length = 0; in fdtv_ca_pmt() 137 data_length = (data_length << 8) + msg->msg[data_pos++]; in fdtv_ca_pmt() 139 data_length = msg->msg[3]; in fdtv_ca_pmt() 142 return avc_ca_pmt(fdtv, &msg->msg[data_pos], data_length); in fdtv_ca_pmt()
|
/drivers/usb/serial/ |
D | symbolserial.c | 42 int data_length; in symbol_int_callback() local 69 data_length = data[0]; in symbol_int_callback() 70 if (data_length > (urb->actual_length - 1)) in symbol_int_callback() 71 data_length = urb->actual_length - 1; in symbol_int_callback() 72 tty_insert_flip_string(&port->port, &data[1], data_length); in symbol_int_callback()
|
/drivers/target/ |
D | target_core_file.c | 271 prot_size = (cmd->data_length / se_dev->dev_attrib.block_size) * in fd_do_prot_rw() 357 if (ret < 0 || ret != cmd->data_length) { in fd_do_rw() 368 if (ret < 0 || ret != cmd->data_length) { in fd_do_rw() 371 cmd->data_length); in fd_do_rw() 404 if (cmd->t_task_lba == 0 && cmd->data_length == 0) { in fd_execute_sync_cache() 409 if (cmd->data_length) in fd_execute_sync_cache() 410 end = start + cmd->data_length - 1; in fd_execute_sync_cache() 679 if (cmd->data_length > FD_MAX_BYTES) { in fd_execute_rw() 682 cmd->data_length, FD_MAX_BYTES); in fd_execute_rw() 701 u32 sectors = cmd->data_length / dev->dev_attrib.block_size; in fd_execute_rw() [all …]
|
D | target_core_transport.c | 723 if (scsi_status == SAM_STAT_GOOD && length < cmd->data_length) { in target_complete_cmd_with_length() 725 cmd->residual_count += cmd->data_length - length; in target_complete_cmd_with_length() 728 cmd->residual_count = cmd->data_length - length; in target_complete_cmd_with_length() 731 cmd->data_length = length; in target_complete_cmd_with_length() 1083 cmd->data_length = size; in target_cmd_size_check() 1084 } else if (size != cmd->data_length) { in target_cmd_size_check() 1088 cmd->data_length, size, cmd->t_task_cdb[0]); in target_cmd_size_check() 1112 if (size > cmd->data_length) { in target_cmd_size_check() 1114 cmd->residual_count = (size - cmd->data_length); in target_cmd_size_check() 1117 cmd->residual_count = (cmd->data_length - size); in target_cmd_size_check() [all …]
|
D | target_core_sbc.c | 80 memcpy(rbuf, buf, min_t(u32, sizeof(buf), cmd->data_length)); in sbc_emulate_readcapacity() 136 memcpy(rbuf, buf, min_t(u32, sizeof(buf), cmd->data_length)); in sbc_emulate_readcapacity_16() 321 buf = kmalloc(cmd->data_length, GFP_KERNEL); in xdreadwrite_callback() 333 cmd->data_length); in xdreadwrite_callback() 416 if (!cmd->data_length) in compare_and_write_callback() 428 buf = kzalloc(cmd->data_length, GFP_KERNEL); in compare_and_write_callback() 447 cmd->data_length); in compare_and_write_callback() 563 cmd->data_length = cmd->t_task_nolb * dev->dev_attrib.block_size; in sbc_compare_and_write() 680 cmd->data_length = sectors * dev->dev_attrib.block_size; in sbc_check_prot() 684 __func__, cmd->prot_type, cmd->data_length, cmd->prot_length, in sbc_check_prot() [all …]
|
D | target_core_spc.c | 757 memcpy(rbuf, buf, min_t(u32, SE_INQUIRY_BUF, cmd->data_length)); in spc_emulate_inquiry() 1097 memcpy(rbuf, buf, min_t(u32, SE_MODE_PAGE_BUF, cmd->data_length)); in spc_emulate_modesense() 1118 if (!cmd->data_length) { in spc_emulate_modeselect() 1123 if (cmd->data_length < off + 2) in spc_emulate_modeselect() 1150 if (cmd->data_length < off + length) { in spc_emulate_modeselect() 1212 memcpy(rbuf, buf, min_t(u32, sizeof(buf), cmd->data_length)); in spc_emulate_request_sense() 1226 if (cmd->data_length < 16) { in spc_emulate_report_luns() 1228 cmd->data_length); in spc_emulate_report_luns() 1258 if ((offset + 8) > cmd->data_length) in spc_emulate_report_luns() 1329 *size = cmd->data_length; in spc_parse_cdb() [all …]
|
D | target_core_alua.c | 74 if (cmd->data_length < 4) { in target_emulate_report_referrals() 76 " small\n", cmd->data_length); in target_emulate_report_referrals() 99 if (cmd->data_length > off) in target_emulate_report_referrals() 102 if (cmd->data_length > off) in target_emulate_report_referrals() 112 if (cmd->data_length > off) in target_emulate_report_referrals() 115 if (cmd->data_length > off) in target_emulate_report_referrals() 118 if (cmd->data_length > off) in target_emulate_report_referrals() 124 if (cmd->data_length > desc_num) in target_emulate_report_referrals() 165 if (cmd->data_length < off) { in target_emulate_report_target_port_groups() 167 " small for %s header\n", cmd->data_length, in target_emulate_report_target_port_groups() [all …]
|
D | target_core_pr.c | 1475 if (cmd->data_length < 28) { in core_scsi3_decode_spec_i_port() 1477 " length too small: %u\n", cmd->data_length); in core_scsi3_decode_spec_i_port() 1498 if ((tpdl + 28) != cmd->data_length) { in core_scsi3_decode_spec_i_port() 1501 cmd->data_length); in core_scsi3_decode_spec_i_port() 1599 dest_tpg->se_tpg_tfo->get_fabric_name(), cmd->data_length, in core_scsi3_decode_spec_i_port() 3135 if ((tid_len + 24) != cmd->data_length) { in core_scsi3_emulate_pro_register_and_move() 3138 cmd->data_length); in core_scsi3_emulate_pro_register_and_move() 3509 if (cmd->data_length < 24) { in target_scsi3_emulate_pr_out() 3511 " length too small: %u\n", cmd->data_length); in target_scsi3_emulate_pr_out() 3569 (cmd->data_length != 24)) { in target_scsi3_emulate_pr_out() [all …]
|
/drivers/hid/ |
D | hid-cp2112.c | 399 u8 command, u8 *data, u8 data_length) in cp2112_write_read_req() argument 404 || data_length > sizeof(report->target_address) - 1) in cp2112_write_read_req() 410 report->target_address_length = data_length + 1; in cp2112_write_read_req() 412 memcpy(&report->target_address[1], data, data_length); in cp2112_write_read_req() 413 return data_length + 6; in cp2112_write_read_req() 417 u8 data_length) in cp2112_write_req() argument 421 if (data_length > sizeof(report->data) - 1) in cp2112_write_req() 426 report->length = data_length + 1; in cp2112_write_req() 428 memcpy(&report->data[1], data, data_length); in cp2112_write_req() 429 return data_length + 4; in cp2112_write_req() [all …]
|
/drivers/scsi/ |
D | libiscsi_tcp.c | 534 u32 data_length; in iscsi_tcp_r2t_rsp() local 561 data_length = be32_to_cpu(rhdr->data_length); in iscsi_tcp_r2t_rsp() 562 if (data_length == 0) { in iscsi_tcp_r2t_rsp() 568 if (data_length > session->max_burst) in iscsi_tcp_r2t_rsp() 571 data_length, session->max_burst); in iscsi_tcp_r2t_rsp() 574 if (data_offset + data_length > scsi_out(task->sc)->length) { in iscsi_tcp_r2t_rsp() 577 "and total length %d\n", data_length, in iscsi_tcp_r2t_rsp() 593 r2t->data_length = data_length; in iscsi_tcp_r2t_rsp() 979 task->itt, task->imm_count, task->unsol_r2t.data_length); in iscsi_tcp_task_init() 1001 if (r2t->data_length <= r2t->sent) { in iscsi_tcp_get_curr_r2t()
|
/drivers/target/tcm_fc/ |
D | tfc_io.c | 93 remaining = se_cmd->data_length; in ft_queue_data_in() 287 if (rel_off >= se_cmd->data_length) in ft_recv_write_data() 289 if (frame_len + rel_off > se_cmd->data_length) in ft_recv_write_data() 290 frame_len = se_cmd->data_length - rel_off; in ft_recv_write_data() 336 if (cmd->write_data_len == se_cmd->data_length) { in ft_recv_write_data()
|
/drivers/isdn/hardware/eicon/ |
D | os_pri.c | 615 a->xdi_mbox.data_length = sizeof(dword); in diva_pri_cmd_card_proc() 617 diva_os_malloc(0, a->xdi_mbox.data_length); in diva_pri_cmd_card_proc() 627 a->xdi_mbox.data_length = sizeof(dword); in diva_pri_cmd_card_proc() 629 diva_os_malloc(0, a->xdi_mbox.data_length); in diva_pri_cmd_card_proc() 639 a->xdi_mbox.data_length = sizeof(dword) * 9; in diva_pri_cmd_card_proc() 641 diva_os_malloc(0, a->xdi_mbox.data_length); in diva_pri_cmd_card_proc() 695 a->xdi_mbox.data_length = sizeof(dword); in diva_pri_cmd_card_proc() 697 diva_os_malloc(0, a->xdi_mbox.data_length); in diva_pri_cmd_card_proc() 723 (a->xdi_mbox.data_length = in diva_pri_cmd_card_proc() 726 (a->xdi_mbox.data_length + in diva_pri_cmd_card_proc() [all …]
|
D | os_4bri.c | 640 a->xdi_mbox.data_length = sizeof(dword); in diva_4bri_cmd_card_proc() 642 diva_os_malloc(0, a->xdi_mbox.data_length); in diva_4bri_cmd_card_proc() 652 a->xdi_mbox.data_length = sizeof(dword); in diva_4bri_cmd_card_proc() 654 diva_os_malloc(0, a->xdi_mbox.data_length); in diva_4bri_cmd_card_proc() 668 a->xdi_mbox.data_length = sizeof(dword) * 9; in diva_4bri_cmd_card_proc() 670 diva_os_malloc(0, a->xdi_mbox.data_length); in diva_4bri_cmd_card_proc() 687 a->xdi_mbox.data_length = sizeof(dword); in diva_4bri_cmd_card_proc() 689 diva_os_malloc(0, a->xdi_mbox.data_length); in diva_4bri_cmd_card_proc() 780 (a->xdi_mbox.data_length = in diva_4bri_cmd_card_proc() 783 (a->xdi_mbox.data_length + in diva_4bri_cmd_card_proc() [all …]
|
D | um_xdi.h | 36 dword data_length; member 65 dword data_length; member
|
D | debug_if.h | 41 dword data_length; member 53 int diva_get_driver_info(dword id, byte *data, int data_length);
|
D | os_bri.c | 409 a->xdi_mbox.data_length = sizeof(dword); in diva_bri_cmd_card_proc() 411 diva_os_malloc(0, a->xdi_mbox.data_length); in diva_bri_cmd_card_proc() 421 a->xdi_mbox.data_length = sizeof(dword); in diva_bri_cmd_card_proc() 423 diva_os_malloc(0, a->xdi_mbox.data_length); in diva_bri_cmd_card_proc() 433 a->xdi_mbox.data_length = sizeof(dword) * 9; in diva_bri_cmd_card_proc() 435 diva_os_malloc(0, a->xdi_mbox.data_length); in diva_bri_cmd_card_proc() 450 a->xdi_mbox.data_length = sizeof(dword); in diva_bri_cmd_card_proc() 452 diva_os_malloc(0, a->xdi_mbox.data_length); in diva_bri_cmd_card_proc()
|
/drivers/net/wireless/rt2x00/ |
D | rt2x00mac.c | 37 unsigned int data_length; in rt2x00mac_tx_rts_cts() local 41 data_length = sizeof(struct ieee80211_cts); in rt2x00mac_tx_rts_cts() 43 data_length = sizeof(struct ieee80211_rts); in rt2x00mac_tx_rts_cts() 45 skb = dev_alloc_skb(data_length + rt2x00dev->hw->extra_tx_headroom); in rt2x00mac_tx_rts_cts() 52 skb_put(skb, data_length); in rt2x00mac_tx_rts_cts() 80 data_length += rt2x00crypto_tx_overhead(rt2x00dev, skb); in rt2x00mac_tx_rts_cts() 84 frag_skb->data, data_length, tx_info, in rt2x00mac_tx_rts_cts() 88 frag_skb->data, data_length, tx_info, in rt2x00mac_tx_rts_cts()
|
/drivers/firewire/ |
D | core-transaction.c | 641 int tcode, ext_tcode, data_length; in fw_get_response_length() local 654 data_length = HEADER_GET_DATA_LENGTH(r->request_header[3]); in fw_get_response_length() 655 return data_length; in fw_get_response_length() 659 data_length = HEADER_GET_DATA_LENGTH(r->request_header[3]); in fw_get_response_length() 663 return data_length; in fw_get_response_length() 665 return data_length / 2; in fw_get_response_length() 944 size_t data_length; in fw_core_handle_response() local 981 data_length = 4; in fw_core_handle_response() 986 data_length = 0; in fw_core_handle_response() 992 data_length = HEADER_GET_DATA_LENGTH(p->header[3]); in fw_core_handle_response() [all …]
|
/drivers/usb/image/ |
D | microtek.c | 191 … 0x%x data-length = 0x%x sent = 0x%x\n",transfer->status,(int)context->data_length, (int)transfer-… 442 if ( context->data_length != transfer->actual_length ) { in mts_data_done() 443 scsi_set_resid(context->srb, context->data_length - in mts_data_done() 479 context->data_length, in mts_command_done() 485 context->data_length, in mts_command_done() 544 desc->context.data_length = 0; in mts_build_transfer_context() 549 desc->context.data_length = sg[0].length; in mts_build_transfer_context()
|
/drivers/scsi/bnx2i/ |
D | 57xx_iscsi_hsi.h | 341 u32 data_length; member 391 u32 data_length; member 814 u32 data_length; member 927 u32 data_length; member 999 u32 data_length; member 1111 u32 data_length; member 1168 u32 data_length; member 1246 u32 data_length; member 1284 u32 data_length; member 1347 u32 data_length; member [all …]
|