/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_erl0.c | 47 cmd->seq_end_offset = min(cmd->se_cmd.data_length, in iscsit_set_dataout_sequence_values() 57 cmd->seq_end_offset = (cmd->se_cmd.data_length > in iscsit_set_dataout_sequence_values() 60 conn->sess->sess_ops->MaxBurstLength) : cmd->se_cmd.data_length; in iscsit_set_dataout_sequence_values() 65 cmd->se_cmd.data_length) ? cmd->se_cmd.data_length : in iscsit_set_dataout_sequence_values() 181 if ((first_burst_len != cmd->se_cmd.data_length) && in iscsit_dataout_check_unsolicited_sequence() 187 cmd->se_cmd.data_length); in iscsit_dataout_check_unsolicited_sequence() 200 if (first_burst_len == cmd->se_cmd.data_length) { in iscsit_dataout_check_unsolicited_sequence() 203 " error.\n", cmd->init_task_tag, cmd->se_cmd.data_length); in iscsit_dataout_check_unsolicited_sequence() 294 cmd->se_cmd.data_length)) { in iscsit_dataout_check_sequence() 319 cmd->se_cmd.data_length) { in iscsit_dataout_check_sequence() [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()
|
/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/target/ |
D | target_core_file.c | 250 u32 sgl_nents, u32 data_length, int is_write) in fd_do_rw() argument 280 if (ret < 0 || ret != data_length) { in fd_do_rw() 292 if (ret < 0 || ret != data_length) { in fd_do_rw() 295 data_length); in fd_do_rw() 303 } else if (ret != data_length) { in fd_do_rw() 310 if (ret < data_length) in fd_do_rw() 311 ret += iov_iter_zero(data_length - ret, &iter); in fd_do_rw() 340 if (cmd->t_task_lba == 0 && cmd->data_length == 0) { in fd_execute_sync_cache() 345 if (cmd->data_length) in fd_execute_sync_cache() 346 end = start + cmd->data_length - 1; in fd_execute_sync_cache() [all …]
|
D | target_core_spc.c | 755 memcpy(rbuf, buf, min_t(u32, SE_INQUIRY_BUF, cmd->data_length)); in spc_emulate_inquiry() 1102 memcpy(rbuf, buf, min_t(u32, SE_MODE_PAGE_BUF, cmd->data_length)); in spc_emulate_modesense() 1123 if (!cmd->data_length) { in spc_emulate_modeselect() 1128 if (cmd->data_length < off + 2) in spc_emulate_modeselect() 1155 if (cmd->data_length < off + length) { in spc_emulate_modeselect() 1197 memcpy(rbuf, buf, min_t(u32, sizeof(buf), cmd->data_length)); in spc_emulate_request_sense() 1215 if (cmd->data_length && !buf) in spc_emulate_report_luns() 1236 if (offset >= cmd->data_length) in spc_emulate_report_luns() 1241 min(8u, cmd->data_length - offset)); in spc_emulate_report_luns() 1255 if (cmd->data_length > 8) in spc_emulate_report_luns() [all …]
|
D | target_core_transport.c | 786 if (scsi_status == SAM_STAT_GOOD && length < cmd->data_length) { in target_complete_cmd_with_length() 788 cmd->residual_count += cmd->data_length - length; in target_complete_cmd_with_length() 791 cmd->residual_count = cmd->data_length - length; in target_complete_cmd_with_length() 794 cmd->data_length = length; in target_complete_cmd_with_length() 1155 if (cmd->data_length > mtl) { in target_check_max_data_sg_nents() 1174 cmd->residual_count = (cmd->data_length - mtl); in target_check_max_data_sg_nents() 1176 cmd->data_length = mtl; in target_check_max_data_sg_nents() 1195 cmd->data_length = size; in target_cmd_size_check() 1196 } else if (size != cmd->data_length) { in target_cmd_size_check() 1200 cmd->data_length, size, cmd->t_task_cdb[0]); in target_cmd_size_check() [all …]
|
D | target_core_sbc.c | 84 memcpy(rbuf, buf, min_t(u32, sizeof(buf), cmd->data_length)); in sbc_emulate_readcapacity() 157 memcpy(rbuf, buf, min_t(u32, sizeof(buf), cmd->data_length)); in sbc_emulate_readcapacity_16() 401 buf = kmalloc(cmd->data_length, GFP_KERNEL); in xdreadwrite_callback() 413 cmd->data_length); in xdreadwrite_callback() 502 if (!cmd->data_length) in compare_and_write_callback() 517 buf = kzalloc(cmd->data_length, GFP_KERNEL); in compare_and_write_callback() 536 cmd->data_length); in compare_and_write_callback() 653 cmd->data_length = cmd->t_task_nolb * dev->dev_attrib.block_size; in sbc_compare_and_write() 800 cmd->data_length = sectors * dev->dev_attrib.block_size; in sbc_check_prot() 804 __func__, cmd->prot_type, cmd->data_length, cmd->prot_length, in sbc_check_prot() [all …]
|
D | target_core_user.c | 334 count = DIV_ROUND_UP(se_cmd->data_length, DATA_BLOCK_SIZE); in gather_data_area() 421 size_t data_length = round_up(se_cmd->data_length, DATA_BLOCK_SIZE); in tcmu_cmd_get_data_length() local 425 data_length += round_up(se_cmd->t_bidi_data_sg->length, in tcmu_cmd_get_data_length() 429 return data_length; in tcmu_cmd_get_data_length() 434 size_t data_length = tcmu_cmd_get_data_length(tcmu_cmd); in tcmu_cmd_get_block_cnt() local 436 return data_length / DATA_BLOCK_SIZE; in tcmu_cmd_get_block_cnt() 452 size_t data_length = tcmu_cmd_get_data_length(tcmu_cmd); in tcmu_queue_cmd_ring() local 478 data_length > udev->data_size) { in tcmu_queue_cmd_ring() 480 "cmd ring/data area\n", command_size, data_length, in tcmu_queue_cmd_ring() 486 while (!is_ring_space_avail(udev, command_size, data_length)) { in tcmu_queue_cmd_ring()
|
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() 164 if (cmd->data_length < off) { in target_emulate_report_target_port_groups() 166 " small for %s header\n", cmd->data_length, in target_emulate_report_target_port_groups() [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/iscsi/cxgbit/ |
D | cxgbit_target.c | 357 u32 data_length) in cxgbit_map_skb() argument 360 u32 padding = ((-data_length) & 3); in cxgbit_map_skb() 374 while (data_length && (i < nr_frags)) { in cxgbit_map_skb() 375 u32 cur_len = min_t(u32, data_length, sg->length - page_off); in cxgbit_map_skb() 386 data_length -= cur_len; in cxgbit_map_skb() 392 if (data_length) in cxgbit_map_skb() 416 u32 data_length = cmd->se_cmd.data_length; in cxgbit_tx_datain_iso() local 424 while (data_length) { in cxgbit_tx_datain_iso() 425 num_pdu = (data_length + mrdsl - 1) / mrdsl; in cxgbit_tx_datain_iso() 430 if (plen > data_length) in cxgbit_tx_datain_iso() [all …]
|
/drivers/hid/ |
D | hid-cp2112.c | 439 u8 command, u8 *data, u8 data_length) in cp2112_write_read_req() argument 444 || data_length > sizeof(report->target_address) - 1) in cp2112_write_read_req() 450 report->target_address_length = data_length + 1; in cp2112_write_read_req() 452 memcpy(&report->target_address[1], data, data_length); in cp2112_write_read_req() 453 return data_length + 6; in cp2112_write_read_req() 457 u8 data_length) in cp2112_write_req() argument 461 if (data_length > sizeof(report->data) - 1) in cp2112_write_req() 466 report->length = data_length + 1; in cp2112_write_req() 468 memcpy(&report->data[1], data, data_length); in cp2112_write_req() 469 return data_length + 4; in cp2112_write_req() [all …]
|
/drivers/target/tcm_fc/ |
D | tfc_io.c | 87 remaining = se_cmd->data_length; in ft_queue_data_in() 281 if (rel_off >= se_cmd->data_length) in ft_recv_write_data() 283 if (frame_len + rel_off > se_cmd->data_length) in ft_recv_write_data() 284 frame_len = se_cmd->data_length - rel_off; in ft_recv_write_data() 330 if (cmd->write_data_len == se_cmd->data_length) { in ft_recv_write_data()
|
/drivers/scsi/ |
D | libiscsi_tcp.c | 539 u32 data_length; in iscsi_tcp_r2t_rsp() local 566 data_length = be32_to_cpu(rhdr->data_length); in iscsi_tcp_r2t_rsp() 567 if (data_length == 0) { in iscsi_tcp_r2t_rsp() 573 if (data_length > session->max_burst) in iscsi_tcp_r2t_rsp() 576 data_length, session->max_burst); in iscsi_tcp_r2t_rsp() 579 if (data_offset + data_length > scsi_out(task->sc)->length) { in iscsi_tcp_r2t_rsp() 582 "and total length %d\n", data_length, in iscsi_tcp_r2t_rsp() 598 r2t->data_length = data_length; in iscsi_tcp_r2t_rsp() 984 task->itt, task->imm_count, task->unsol_r2t.data_length); in iscsi_tcp_task_init() 1006 if (r2t->data_length <= r2t->sent) { in iscsi_tcp_get_curr_r2t()
|
/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);
|
/drivers/net/wireless/ralink/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-… 440 if ( context->data_length != transfer->actual_length ) { in mts_data_done() 441 scsi_set_resid(context->srb, context->data_length - in mts_data_done() 477 context->data_length, in mts_command_done() 483 context->data_length, in mts_command_done() 542 desc->context.data_length = 0; in mts_build_transfer_context() 547 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 …]
|