/linux/drivers/misc/altera-stapl/ |
H A D | altera-comp.c | 68 u32 i, j, data_length = 0L; in altera_shrink() local 82 data_length = data_length | ( in altera_shrink() 89 if (data_length > out_length) { in altera_shrink() 90 data_length = 0L; in altera_shrink() 91 return data_length; in altera_shrink() 95 while (i < data_length) { in altera_shrink() 100 if (i < data_length) { in altera_shrink() 119 if (i < data_length) { in altera_shrink() 127 return data_length; in altera_shrink()
|
/linux/drivers/firewire/ |
H A D | packet-serdes-test.c | 51 u64 offset, unsigned int data_length, in serialize_async_header_block_request() argument 56 async_header_set_data_length(header, data_length); in serialize_async_header_block_request() 84 unsigned int rcode, unsigned int data_length, in serialize_async_header_block_response() argument 89 async_header_set_data_length(header, data_length); in serialize_async_header_block_response() 131 unsigned int *data_length, in deserialize_async_header_block_request() argument 136 *data_length = async_header_get_data_length(header); in deserialize_async_header_block_request() 163 unsigned int *rcode, unsigned int *data_length, in deserialize_async_header_block_response() argument 167 *data_length = async_header_get_data_length(header); in deserialize_async_header_block_response() 171 static void serialize_isoc_header(u32 *header, unsigned int data_length, unsigned int tag, in serialize_isoc_header() argument 174 isoc_header_set_data_length(header, data_length); in serialize_isoc_header() [all …]
|
H A D | core-transaction.c | 670 int tcode, ext_tcode, data_length; in fw_get_response_length() local 683 data_length = async_header_get_data_length(r->request_header); in fw_get_response_length() 684 return data_length; in fw_get_response_length() 688 data_length = async_header_get_data_length(r->request_header); in fw_get_response_length() 692 return data_length; in fw_get_response_length() 694 return data_length / 2; in fw_get_response_length() 844 unsigned int data_length = 0; in fw_send_response() local 855 data_length = fw_get_response_length(request); in fw_send_response() 858 fw_fill_response(&request->response, request->request_header, rcode, data, data_length); in fw_send_response() 866 data ? data_length / 4 : 0); in fw_send_response() [all …]
|
H A D | packet-header-definitions.h | 157 unsigned int data_length) in async_header_set_data_length() argument 160 …header[3] |= (((u32)data_length) << ASYNC_HEADER_Q3_DATA_LENGTH_SHIFT) & ASYNC_HEADER_Q3_DATA_LENG… in async_header_set_data_length() 206 static inline void isoc_header_set_data_length(u32 *header, unsigned int data_length) in isoc_header_set_data_length() argument 209 *header |= (((u32)data_length) << ISOC_HEADER_DATA_LENGTH_SHIFT) & ISOC_HEADER_DATA_LENGTH_MASK; in isoc_header_set_data_length()
|
H A D | ohci-serdes-test.c | 88 unsigned int data_length = ohci1394_it_data_get_data_length(expected); in test_it_data_serdes() local 95 KUNIT_EXPECT_EQ(test, 0x0230, data_length); in test_it_data_serdes() 102 ohci1394_it_data_set_data_length(quadlets, data_length); in test_it_data_serdes()
|
/linux/drivers/target/iscsi/ |
H A D | iscsi_target_seq_pdu_list.c | 224 unsolicited_data_length = min(cmd->se_cmd.data_length, in iscsit_determine_counts_for_list() 227 while (offset < cmd->se_cmd.data_length) { in iscsit_determine_counts_for_list() 240 if ((offset + mdsl) >= cmd->se_cmd.data_length) { in iscsit_determine_counts_for_list() 242 (cmd->se_cmd.data_length - offset); in iscsit_determine_counts_for_list() 243 offset += (cmd->se_cmd.data_length - offset); in iscsit_determine_counts_for_list() 262 if ((offset + mdsl) >= cmd->se_cmd.data_length) { in iscsit_determine_counts_for_list() 263 offset += (cmd->se_cmd.data_length - offset); in iscsit_determine_counts_for_list() 310 unsolicited_data_length = min(cmd->se_cmd.data_length, in iscsit_do_build_pdu_and_seq_lists() 313 while (offset < cmd->se_cmd.data_length) { in iscsit_do_build_pdu_and_seq_lists() 347 if ((offset + mdsl) >= cmd->se_cmd.data_length) { in iscsit_do_build_pdu_and_seq_lists() [all …]
|
H A D | iscsi_target_erl0.c | 41 cmd->seq_end_offset = min(cmd->se_cmd.data_length, in iscsit_set_dataout_sequence_values() 51 cmd->seq_end_offset = (cmd->se_cmd.data_length > in iscsit_set_dataout_sequence_values() 54 conn->sess->sess_ops->MaxBurstLength) : cmd->se_cmd.data_length; in iscsit_set_dataout_sequence_values() 59 cmd->se_cmd.data_length) ? cmd->se_cmd.data_length : in iscsit_set_dataout_sequence_values() 175 if ((first_burst_len != cmd->se_cmd.data_length) && in iscsit_dataout_check_unsolicited_sequence() 181 cmd->se_cmd.data_length); in iscsit_dataout_check_unsolicited_sequence() 194 if (first_burst_len == cmd->se_cmd.data_length) { in iscsit_dataout_check_unsolicited_sequence() 197 " error.\n", cmd->init_task_tag, cmd->se_cmd.data_length); in iscsit_dataout_check_unsolicited_sequence() 288 cmd->se_cmd.data_length)) { in iscsit_dataout_check_sequence() 313 cmd->se_cmd.data_length) { in iscsit_dataout_check_sequence() [all …]
|
H A D | iscsi_target_datain_values.c | 103 read_data_left = (cmd->se_cmd.data_length - read_data_done); in iscsit_set_datain_values_yes_and_yes() 202 read_data_left = (cmd->se_cmd.data_length - read_data_done); in iscsit_set_datain_values_no_and_yes() 221 cmd->se_cmd.data_length) { in iscsit_set_datain_values_no_and_yes() 222 datain->length = (cmd->se_cmd.data_length - offset); in iscsit_set_datain_values_no_and_yes() 254 if ((read_data_done + datain->length) == cmd->se_cmd.data_length) in iscsit_set_datain_values_no_and_yes() 323 read_data_left = (cmd->se_cmd.data_length - read_data_done); in iscsit_set_datain_values_yes_and_no() 334 if ((read_data_done + pdu->length) == cmd->se_cmd.data_length) { in iscsit_set_datain_values_yes_and_no() 423 read_data_left = (cmd->se_cmd.data_length - read_data_done); in iscsit_set_datain_values_no_and_no() 453 if ((read_data_done + pdu->length) == cmd->se_cmd.data_length) in iscsit_set_datain_values_no_and_no()
|
/linux/include/trace/events/ |
H A D | target.h | 142 __field( unsigned int, data_length ) 153 __entry->data_length = cmd->data_length; 160 TP_printk("%s -> LUN %03u tag %#llx %s data_length %6u CDB %s (TA:%s C:%02x)", 163 __entry->data_length, __print_hex(__entry->cdb, 16), 179 __field( unsigned int, data_length ) 193 __entry->data_length = cmd->data_length; 204 TP_printk("%s <- LUN %03u tag %#llx status %s (sense len %d%s%s) %s data_length %6u CDB %s (TA:%s C:%02x)", 211 __entry->data_length, __print_he [all...] |
/linux/drivers/scsi/esas2r/ |
H A 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 …]
|
/linux/drivers/media/firewire/ |
H A D | firedtv-ci.c | 126 int data_length; in fdtv_ca_pmt() local 131 data_length = 0; in fdtv_ca_pmt() 133 data_length = (data_length << 8) + msg->msg[data_pos++]; in fdtv_ca_pmt() 135 data_length = msg->msg[3]; in fdtv_ca_pmt() 137 if (data_length > sizeof(msg->msg) - data_pos) in fdtv_ca_pmt() 140 return avc_ca_pmt(fdtv, &msg->msg[data_pos], data_length); in fdtv_ca_pmt()
|
/linux/drivers/target/ |
H A D | target_core_file.c | 314 u32 sgl_nents, u32 data_length, int is_write) in fd_do_rw() argument 341 if (ret < 0 || ret != data_length) { in fd_do_rw() 353 if (ret < 0 || ret != data_length) { in fd_do_rw() 356 data_length); in fd_do_rw() 364 } else if (ret != data_length) { in fd_do_rw() 371 if (ret < data_length) in fd_do_rw() 372 ret += iov_iter_zero(data_length - ret, &iter); in fd_do_rw() 401 if (cmd->t_task_lba == 0 && cmd->data_length == 0) { in fd_execute_sync_cache() 406 if (cmd->data_length) in fd_execute_sync_cache() 407 end = start + cmd->data_length - 1; in fd_execute_sync_cache() [all …]
|
H A D | target_core_transport.c | 958 if (length < cmd->data_length) { in target_set_cmd_data_length() 960 cmd->residual_count += cmd->data_length - length; in target_set_cmd_data_length() 963 cmd->residual_count = cmd->data_length - length; in target_set_cmd_data_length() 966 cmd->data_length = length; in target_set_cmd_data_length() 1338 if (cmd->data_length > mtl) { in target_check_max_data_sg_nents() 1357 cmd->residual_count = (cmd->data_length - mtl); in target_check_max_data_sg_nents() 1359 cmd->data_length = mtl; in target_check_max_data_sg_nents() 1391 cmd->data_length = size; in target_cmd_size_check() 1392 } else if (size != cmd->data_length) { in target_cmd_size_check() 1396 cmd->data_length, size, cmd->t_task_cdb[0]); in target_cmd_size_check() [all …]
|
/linux/drivers/usb/serial/ |
H A D | symbolserial.c | 40 int data_length; in symbol_int_callback() local 67 data_length = data[0]; in symbol_int_callback() 68 if (data_length > (urb->actual_length - 1)) in symbol_int_callback() 69 data_length = urb->actual_length - 1; in symbol_int_callback() 70 tty_insert_flip_string(&port->port, &data[1], data_length); in symbol_int_callback()
|
/linux/tools/firewire/ |
H A D | nosy-dump.h | 107 uint32_t data_length:16; member 114 uint32_t data_length:16; member 129 uint32_t data_length:16; member 151 uint32_t data_length:16; member
|
/linux/drivers/hwmon/occ/ |
H A D | p8_i2c.c | 119 u16 data_length; in p8_i2c_occ_send_cmd() local 196 data_length = get_unaligned_be16(&or->data_length); in p8_i2c_occ_send_cmd() 197 if ((data_length + 7) > resp_len) in p8_i2c_occ_send_cmd() 201 for (i = 8; i < data_length + 7; i += 8) { in p8_i2c_occ_send_cmd()
|
/linux/drivers/fsi/ |
H A D | fsi-occ.c | 64 __be16 data_length; member 144 size_t rlen, data_length; in occ_write() local 172 data_length = (cmd[2] << 8) + cmd[3]; in occ_write() 173 if (data_length > OCC_CMD_DATA_BYTES) { in occ_write() 180 rc = fsi_occ_submit(client->occ->dev, cmd, data_length + 6, cmd, in occ_write() 234 u16 data_length) in occ_verify_checksum() argument 237 u16 checksum_resp = get_unaligned_be16(&resp->data[data_length]); in occ_verify_checksum() 244 checksum += (data_length >> 8) + (data_length & 0xFF); in occ_verify_checksum() 246 for (i = 0; i < data_length; ++i) in occ_verify_checksum() 555 get_unaligned_be16(&resp->data_length); in fsi_occ_submit()
|
/linux/drivers/staging/media/atomisp/i2c/ |
H A D | atomisp-mt9m114.c | 54 mt9m114_read_reg(struct i2c_client *client, u16 data_length, u32 reg, u32 *val) in mt9m114_read_reg() argument 65 if (data_length != MISENSOR_8BIT && data_length != MISENSOR_16BIT in mt9m114_read_reg() 66 && data_length != MISENSOR_32BIT) { in mt9m114_read_reg() 81 msg[1].len = data_length; in mt9m114_read_reg() 90 if (data_length == MISENSOR_8BIT) in mt9m114_read_reg() 92 else if (data_length == MISENSOR_16BIT) in mt9m114_read_reg() 106 mt9m114_write_reg(struct i2c_client *client, u16 data_length, u16 reg, u32 val) in mt9m114_write_reg() argument 119 if (data_length != MISENSOR_8BIT && data_length != MISENSOR_16BIT in mt9m114_write_reg() 120 && data_length != MISENSOR_32BIT) { in mt9m114_write_reg() 130 msg.len = 2 + data_length; in mt9m114_write_reg() [all …]
|
H A D | atomisp-ov2722.c | 40 u16 data_length, u16 reg, u16 *val) in ov2722_read_reg() argument 52 if (data_length != OV2722_8BIT && data_length != OV2722_16BIT && in ov2722_read_reg() 53 data_length != OV2722_32BIT) { in ov2722_read_reg() 71 msg[1].len = data_length; in ov2722_read_reg() 86 if (data_length == OV2722_8BIT) in ov2722_read_reg() 88 else if (data_length == OV2722_16BIT) in ov2722_read_reg() 111 static int ov2722_write_reg(struct i2c_client *client, u16 data_length, in ov2722_write_reg() argument 117 const u16 len = data_length + sizeof(u16); /* 16-bit address + data */ in ov2722_write_reg() 119 if (data_length != OV2722_8BIT && data_length != OV2722_16BIT) { in ov2722_write_reg() 128 if (data_length == OV2722_8BIT) { in ov2722_write_reg()
|
/linux/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_target.c | 341 u32 data_length) in cxgbit_map_skb() argument 344 u32 padding = ((-data_length) & 3); in cxgbit_map_skb() 358 while (data_length && (i < nr_frags)) { in cxgbit_map_skb() 359 u32 cur_len = min_t(u32, data_length, sg->length - page_off); in cxgbit_map_skb() 370 data_length -= cur_len; in cxgbit_map_skb() 376 if (data_length) in cxgbit_map_skb() 400 u32 data_length = cmd->se_cmd.data_length; in cxgbit_tx_datain_iso() local 408 while (data_length) { in cxgbit_tx_datain_iso() 409 num_pdu = (data_length + mrdsl - 1) / mrdsl; in cxgbit_tx_datain_iso() 414 if (plen > data_length) in cxgbit_tx_datain_iso() [all …]
|
/linux/drivers/target/tcm_fc/ |
H A D | tfc_io.c | 74 remaining = se_cmd->data_length; in ft_queue_data_in() 266 if (rel_off >= se_cmd->data_length) in ft_recv_write_data() 268 if (frame_len + rel_off > se_cmd->data_length) in ft_recv_write_data() 269 frame_len = se_cmd->data_length - rel_off; in ft_recv_write_data() 315 if (cmd->write_data_len == se_cmd->data_length) { in ft_recv_write_data()
|
/linux/drivers/hid/ |
H A D | hid-cp2112.c | 454 u8 command, u8 *data, u8 data_length) in cp2112_write_read_req() argument 459 || data_length > sizeof(report->target_address) - 1) in cp2112_write_read_req() 465 report->target_address_length = data_length + 1; in cp2112_write_read_req() 467 memcpy(&report->target_address[1], data, data_length); in cp2112_write_read_req() 468 return data_length + 6; in cp2112_write_read_req() 472 u8 data_length) in cp2112_write_req() argument 476 if (data_length > sizeof(report->data) - 1) in cp2112_write_req() 481 report->length = data_length + 1; in cp2112_write_req() 483 memcpy(&report->data[1], data, data_length); in cp2112_write_req() 484 return data_length + 4; in cp2112_write_req() [all …]
|
/linux/fs/smb/server/ |
H A D | smb2misc.c | 212 unsigned int data_length; /* the length of the variable length data area */ in smb2_calc_size() local 235 ret = smb2_get_data_area_len(&offset, &data_length, hdr); in smb2_calc_size() 238 ksmbd_debug(SMB, "SMB2 data length %u offset %u\n", data_length, in smb2_calc_size() 241 if (data_length > 0) { in smb2_calc_size() 255 *len = offset + data_length; in smb2_calc_size()
|
/linux/drivers/scsi/ |
H A D | libiscsi_tcp.c | 537 u32 data_length; in iscsi_tcp_r2t_rsp() local 598 data_length = be32_to_cpu(rhdr->data_length); in iscsi_tcp_r2t_rsp() 599 if (data_length == 0) { in iscsi_tcp_r2t_rsp() 606 if (data_length > session->max_burst) in iscsi_tcp_r2t_rsp() 609 data_length, session->max_burst); in iscsi_tcp_r2t_rsp() 612 if (data_offset + data_length > task->sc->sdb.length) { in iscsi_tcp_r2t_rsp() 615 "and total length %d\n", data_length, in iscsi_tcp_r2t_rsp() 633 r2t->data_length = data_length; in iscsi_tcp_r2t_rsp() 1015 task->itt, task->imm_count, task->unsol_r2t.data_length); in iscsi_tcp_task_init() 1037 if (r2t->data_length <= r2t->sent) { in iscsi_tcp_get_curr_r2t()
|
/linux/sound/soc/bcm/ |
H A D | bcm2835-i2s.c | 334 unsigned int data_length, data_delay, framesync_length; in bcm2835_i2s_hw_params() local 355 data_length = params_width(params); in bcm2835_i2s_hw_params() 383 if (data_length > slot_width) in bcm2835_i2s_hw_params() 433 if (data_length >= 24) in bcm2835_i2s_hw_params() 436 format |= BCM2835_I2S_CHWID((data_length-8)&0xf); in bcm2835_i2s_hw_params() 478 data_delay = slot_width - data_length; in bcm2835_i2s_hw_params() 527 if (data_length <= 16) { in bcm2835_i2s_hw_params() 599 frame_length, framesync_length, data_length); in bcm2835_i2s_hw_params()
|