/drivers/net/can/usb/etas_es58x/ |
D | es581_4.c | 36 return get_unaligned_le16(&urb_cmd->es581_4_urb_cmd.msg_len); in es581_4_get_msg_len() 46 u16 msg_len; in es581_4_echo_msg() local 52 msg_len = get_unaligned_le16(&es581_4_urb_cmd->msg_len) - in es581_4_echo_msg() 55 bulk_echo_msg->echo_msg, msg_len); in es581_4_echo_msg() 97 u16 msg_len) in es581_4_rx_can_msg() argument 104 msg_len); in es581_4_rx_can_msg() 180 u16 msg_len = get_unaligned_le16(&es581_4_urb_cmd->msg_len); in es581_4_rx_cmd_ret_u32() local 184 es581_4_urb_cmd->rx_cmd_ret, msg_len); in es581_4_rx_cmd_ret_u32() 204 u16 msg_len = get_unaligned_le16(&es581_4_urb_cmd->msg_len); in es581_4_tx_ack_msg() local 208 ret = es58x_check_msg_len(es58x_dev->dev, *tx_ack_msg, msg_len); in es581_4_tx_ack_msg() [all …]
|
D | es58x_fd.c | 58 return get_unaligned_le16(&urb_cmd->es58x_fd_urb_cmd.msg_len); in es58x_fd_get_msg_len() 68 u16 msg_len = get_unaligned_le16(&es58x_fd_urb_cmd->msg_len); in es58x_fd_echo_msg() local 77 msg_len); in es58x_fd_echo_msg() 103 u16 rx_can_msg_buf_len = get_unaligned_le16(&es58x_fd_urb_cmd->msg_len); in es58x_fd_rx_can_msg() 172 u16 msg_len = get_unaligned_le16(&es58x_fd_urb_cmd->msg_len); in es58x_fd_rx_event_msg() local 177 ret = es58x_check_msg_len(es58x_dev->dev, *rx_event_msg, msg_len); in es58x_fd_rx_event_msg() 191 u16 msg_len = get_unaligned_le16(&es58x_fd_urb_cmd->msg_len); in es58x_fd_rx_cmd_ret_u32() local 195 es58x_fd_urb_cmd->rx_cmd_ret_le32, msg_len); in es58x_fd_rx_cmd_ret_u32() 208 u16 msg_len = get_unaligned_le16(&es58x_fd_urb_cmd->msg_len); in es58x_fd_tx_ack_msg() local 212 ret = es58x_check_msg_len(es58x_dev->dev, *tx_ack_msg, msg_len); in es58x_fd_tx_ack_msg() [all …]
|
D | es58x_core.h | 505 size_t actual_len, size_t msg_len, in __es58x_msg_num_element() argument 509 size_t expected_num_elem = msg_len / elem_len; in __es58x_msg_num_element() 598 u16 msg_len) in es58x_get_urb_cmd_len() argument 600 return es58x_dev->param->urb_cmd_header_len + msg_len + sizeof(u16); in es58x_get_urb_cmd_len()
|
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_mgmt.c | 127 u16 msg_len, enum hinic_mod_type mod, in prepare_header() argument 134 return HINIC_MSG_HEADER_SET(msg_len, MSG_LEN) | in prepare_header() 155 static void prepare_mgmt_cmd(u8 *mgmt_cmd, u64 *header, u8 *msg, u16 msg_len) in prepare_mgmt_cmd() argument 163 memcpy(mgmt_cmd, msg, msg_len); in prepare_mgmt_cmd() 175 u16 msg_len = MGMT_MSG_RSVD_FOR_DEV + sizeof(u64) + msg_data_len; in mgmt_msg_len() local 177 if (msg_len > MGMT_MSG_LEN_MIN) in mgmt_msg_len() 178 msg_len = MGMT_MSG_LEN_MIN + in mgmt_msg_len() 179 ALIGN((msg_len - MGMT_MSG_LEN_MIN), in mgmt_msg_len() 182 msg_len = MGMT_MSG_LEN_MIN; in mgmt_msg_len() 184 return msg_len; in mgmt_msg_len() [all …]
|
D | hinic_hw_mgmt.h | 116 u16 msg_len; member 152 u16 msg_len; member
|
/drivers/net/usb/ |
D | rndis_host.c | 99 u32 xid = 0, msg_len, request_id, msg_type, rsp, in rndis_command() local 121 buf, le32_to_cpu(buf->msg_len), in rndis_command() 152 msg_len = le32_to_cpu(buf->msg_len); in rndis_command() 179 msg->msg_len = cpu_to_le32(sizeof *msg); in rndis_command() 197 le32_to_cpu(buf->msg_type), msg_len); in rndis_command() 244 u.get->msg_len = cpu_to_le32(sizeof *u.get + in_len); in rndis_query() 319 u.init->msg_len = cpu_to_le32(sizeof *u.init); in generic_rndis_bind() 427 u.set->msg_len = cpu_to_le32(4 + sizeof *u.set); in generic_rndis_bind() 447 u.halt->msg_len = cpu_to_le32(sizeof *u.halt); in generic_rndis_bind() 482 halt->msg_len = cpu_to_le32(sizeof *halt); in rndis_unbind() [all …]
|
/drivers/net/hyperv/ |
D | rndis_filter.c | 83 u32 msg_len) in get_rndis_request() argument 98 rndis_msg->msg_len = msg_len; in get_rndis_request() 136 if (rndis_msg->msg_len - RNDIS_HEADER_SIZE >= sizeof(struct rndis_packet)) { in dump_rndis_message() 142 rndis_msg->msg_len, in dump_rndis_message() 154 if (rndis_msg->msg_len - RNDIS_HEADER_SIZE >= in dump_rndis_message() 162 rndis_msg->msg_len, in dump_rndis_message() 175 if (rndis_msg->msg_len - RNDIS_HEADER_SIZE >= in dump_rndis_message() 182 rndis_msg->msg_len, in dump_rndis_message() 191 if (rndis_msg->msg_len - RNDIS_HEADER_SIZE + sizeof(struct rndis_set_complete)) { in dump_rndis_message() 196 rndis_msg->msg_len, in dump_rndis_message() [all …]
|
D | netvsc_trace.h | 51 __field( u32, msg_len ) 58 __entry->msg_len = msg->msg_len; 62 show_rndis_type(__entry->msg_type), __entry->msg_len)
|
/drivers/i2c/busses/ |
D | i2c-microchip-corei2c.c | 115 u16 msg_len; member 204 if (idev->msg_len > 0) { in mchp_corei2c_empty_rx() 206 idev->msg_len--; in mchp_corei2c_empty_rx() 209 if (idev->msg_len <= 1) { in mchp_corei2c_empty_rx() 218 if (idev->msg_len > 0) in mchp_corei2c_fill_tx() 220 idev->msg_len--; in mchp_corei2c_fill_tx() 241 if (idev->msg_len == 0) in mchp_corei2c_handle_isr() 250 if (idev->msg_len > 0) in mchp_corei2c_handle_isr() 263 if (idev->msg_len == 1u) { in mchp_corei2c_handle_isr() 270 if (idev->msg_len < 1u) in mchp_corei2c_handle_isr() [all …]
|
D | i2c-altera.c | 77 size_t msg_len; member 182 if (idev->msg_len == 1) in altr_i2c_transfer() 184 if (idev->msg_len > 0) in altr_i2c_transfer() 195 int bytes_to_transfer = min(rx_fifo_avail, idev->msg_len); in altr_i2c_empty_rx_fifo() 199 idev->msg_len--; in altr_i2c_empty_rx_fifo() 211 int bytes_to_transfer = min(tx_fifo_avail, idev->msg_len); in altr_i2c_fill_tx_fifo() 212 int ret = idev->msg_len - bytes_to_transfer; in altr_i2c_fill_tx_fifo() 216 idev->msg_len--; in altr_i2c_fill_tx_fifo() 272 if (!idev->msg_len) in altr_i2c_isr() 277 if (idev->msg_len > 0) in altr_i2c_isr() [all …]
|
D | i2c-hix5hd2.c | 84 unsigned int msg_len; member 199 if (priv->msg_len == 1) { in hix5hd2_read_handle() 202 } else if (priv->msg_len > 1) { in hix5hd2_read_handle() 214 if (priv->msg_len > 0) { in hix5hd2_write_handle() 234 priv->msg_len--; in hix5hd2_rw_preprocess() 237 __func__, priv->state, priv->msg_len); in hix5hd2_rw_preprocess() 269 if (priv->msg_len > 0) { in hix5hd2_i2c_irq() 322 priv->msg_len = priv->msg->len; in hix5hd2_i2c_xfer_msg()
|
D | i2c-xlp9xx.c | 94 u32 msg_len; member 172 len = max_t(u32, priv->msg_len, len + 4); in xlp9xx_i2c_update_rlen() 209 priv->msg_len = 0; in xlp9xx_i2c_drain_rx_fifo() 219 priv->msg_len = rlen + 1; in xlp9xx_i2c_drain_rx_fifo() 251 if ((status & XLP9XX_I2C_INTEN_SADDR) && (priv->msg_len == 0)) in xlp9xx_i2c_isr() 330 priv->msg_buf_remaining = priv->msg_len = msg->len; in xlp9xx_i2c_xfer_msg() 418 if (!priv->msg_len) in xlp9xx_i2c_xfer_msg() 420 msg->len = priv->msg_len; in xlp9xx_i2c_xfer_msg()
|
/drivers/dma/ |
D | bcm-sba-raid.c | 642 dma_addr_t msg_offset, size_t msg_len, in sba_fillup_memcpy_msg() argument 653 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_memcpy_msg() 664 cmdsp->data_len = msg_len; in sba_fillup_memcpy_msg() 670 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_memcpy_msg() 689 cmdsp->data_len = msg_len; in sba_fillup_memcpy_msg() 761 dma_addr_t msg_offset, size_t msg_len, in sba_fillup_xor_msg() argument 773 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_xor_msg() 784 cmdsp->data_len = msg_len; in sba_fillup_xor_msg() 791 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_xor_msg() 802 cmdsp->data_len = msg_len; in sba_fillup_xor_msg() [all …]
|
/drivers/crypto/qat/qat_common/ |
D | adf_pfvf_vf_proto.c | 227 unsigned int msg_len; in adf_send_vf2pf_blkmsg_req() local 275 msg_len = ADF_PFVF_BLKMSG_HEADER_SIZE + buffer[ADF_PFVF_BLKMSG_LEN_BYTE]; in adf_send_vf2pf_blkmsg_req() 276 msg_len = min(*buffer_len, msg_len); in adf_send_vf2pf_blkmsg_req() 279 for (index = ADF_PFVF_BLKMSG_HEADER_SIZE; index < msg_len; index++) { in adf_send_vf2pf_blkmsg_req() 286 ret = adf_vf2pf_blkmsg_get_crc(accel_dev, type, msg_len, &remote_crc); in adf_send_vf2pf_blkmsg_req() 290 local_crc = adf_pfvf_calc_blkmsg_crc(buffer, msg_len); in adf_send_vf2pf_blkmsg_req() 298 *buffer_len = msg_len; in adf_send_vf2pf_blkmsg_req()
|
/drivers/char/ipmi/ |
D | ipmi_bt_sm.c | 251 int i, msg_len; in bt_get_result() local 253 msg_len = bt->read_count - 2; /* account for length & seq */ in bt_get_result() 254 if (msg_len < 3 || msg_len > IPMI_MAX_MSG_LENGTH) { in bt_get_result() 256 msg_len = 3; in bt_get_result() 260 if (length < msg_len || bt->truncated) { in bt_get_result() 262 msg_len = 3; in bt_get_result() 264 memcpy(data + 2, bt->read_data + 4, msg_len - 2); in bt_get_result() 267 dev_dbg(bt->io->dev, "result %d bytes:", msg_len); in bt_get_result() 268 for (i = 0; i < msg_len; i++) in bt_get_result() 272 return msg_len; in bt_get_result()
|
/drivers/net/wireless/silabs/wfx/ |
D | traces.h | 166 __field(int, msg_len) 176 __entry->msg_len = le16_to_cpu(hif->len); 192 __entry->buf_len = min_t(int, __entry->msg_len, sizeof(__entry->buf)) 204 __entry->msg_len > sizeof(__entry->buf) ? " ..." : "", 205 __entry->msg_len 242 __field(int, msg_len) 250 __entry->msg_len = len; 251 __entry->buf_len = min_t(int, sizeof(__entry->buf), __entry->msg_len); 262 __entry->msg_len > sizeof(__entry->buf) ? " ..." : "", 263 __entry->msg_len
|
/drivers/w1/ |
D | w1_netlink.c | 540 u16 msg_len; in w1_cn_callback() local 560 msg_len = cn->len; in w1_cn_callback() 561 while (msg_len && !err) { in w1_cn_callback() 562 if (msg->len + sizeof(struct w1_netlink_msg) > msg_len) { in w1_cn_callback() 575 msg_len -= sizeof(struct w1_netlink_msg) + msg->len; in w1_cn_callback() 632 msg_len = cn->len; in w1_cn_callback() 633 while (msg_len && !err) { in w1_cn_callback() 638 if (msg->len + sizeof(struct w1_netlink_msg) > msg_len) { in w1_cn_callback() 700 msg_len -= sizeof(struct w1_netlink_msg) + msg->len; in w1_cn_callback()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_hwrm.c | 469 u32 msg_len = ctx->req_len; in __hwrm_send() local 486 if (msg_len > BNXT_HWRM_MAX_REQ_LEN && in __hwrm_send() 487 msg_len > bp->hwrm_max_ext_req_len) { in __hwrm_send() 512 msg_len > BNXT_HWRM_MAX_REQ_LEN) { in __hwrm_send() 516 short_input.size = cpu_to_le16(msg_len); in __hwrm_send() 520 msg_len = sizeof(short_input); in __hwrm_send() 529 __iowrite32_copy(bp->bar0 + bar_offset, data, msg_len / 4); in __hwrm_send() 531 for (i = msg_len; i < max_req_len; i += 4) in __hwrm_send()
|
/drivers/s390/crypto/ |
D | zcrypt_msgtype50.c | 55 unsigned short msg_len; member 213 meb1->header.msg_len = sizeof(*meb1); in ICAMEX_msg_to_type50MEX_msg() 224 meb2->header.msg_len = sizeof(*meb2); in ICAMEX_msg_to_type50MEX_msg() 235 meb3->header.msg_len = sizeof(*meb3); in ICAMEX_msg_to_type50MEX_msg() 288 crb1->header.msg_len = sizeof(*crb1); in ICACRT_msg_to_type50CRT_msg() 302 crb2->header.msg_len = sizeof(*crb2); in ICACRT_msg_to_type50CRT_msg() 317 crb3->header.msg_len = sizeof(*crb3); in ICACRT_msg_to_type50CRT_msg()
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_msg.c | 160 unsigned long msg_len = strlen(msg); in vmw_port_hb_out() local 172 msg_len, si, di, in vmw_port_hb_out() 183 while (msg_len && (HIGH_WORD(ecx) & MESSAGE_STATUS_SUCCESS)) { in vmw_port_hb_out() 184 unsigned int bytes = min_t(size_t, msg_len, 4); in vmw_port_hb_out() 188 msg_len -= bytes; in vmw_port_hb_out() 273 size_t msg_len = strlen(msg); in vmw_send_msg() local 284 msg_len, si, di, in vmw_send_msg() 323 size_t *msg_len) in vmw_recv_msg() argument 331 *msg_len = 0; in vmw_recv_msg() 408 *msg_len = reply_len; in vmw_recv_msg()
|
/drivers/input/keyboard/ |
D | applespi.c | 769 u16 msg_len; in applespi_send_cmd_msg() local 801 msg_len = sizeof(message->tp_info_command); in applespi_send_cmd_msg() 814 msg_len = sizeof(message->init_mt_command); in applespi_send_cmd_msg() 827 msg_len = sizeof(message->capsl_command); in applespi_send_cmd_msg() 841 msg_len = sizeof(message->bl_command); in applespi_send_cmd_msg() 860 packet->length = cpu_to_le16(MSG_HEADER_SIZE + msg_len); in applespi_send_cmd_msg() 864 message->length = cpu_to_le16(msg_len - 2); in applespi_send_cmd_msg() 869 put_unaligned_le16(crc, &message->data[msg_len - 2]); in applespi_send_cmd_msg() 1423 unsigned int msg_len; in applespi_got_data() local 1492 msg_len = applespi->saved_msg_len; in applespi_got_data() [all …]
|
/drivers/media/dvb-frontends/ |
D | tda10071.c | 193 dev_dbg(&client->dev, "msg_len=%d\n", diseqc_cmd->msg_len); in tda10071_diseqc_send_master_cmd() 195 if (diseqc_cmd->msg_len < 3 || diseqc_cmd->msg_len > 6) { in tda10071_diseqc_send_master_cmd() 226 cmd.args[6] = diseqc_cmd->msg_len; in tda10071_diseqc_send_master_cmd() 227 memcpy(&cmd.args[7], diseqc_cmd->msg, diseqc_cmd->msg_len); in tda10071_diseqc_send_master_cmd() 228 cmd.len = 7 + diseqc_cmd->msg_len; in tda10071_diseqc_send_master_cmd() 276 reply->msg_len = uitmp & 0x1f; /* [4:0] */ in tda10071_diseqc_recv_slave_reply() 277 if (reply->msg_len > sizeof(reply->msg)) in tda10071_diseqc_recv_slave_reply() 278 reply->msg_len = sizeof(reply->msg); /* truncate API max */ in tda10071_diseqc_recv_slave_reply() 289 reply->msg_len); in tda10071_diseqc_recv_slave_reply()
|
/drivers/media/usb/ttusb-dec/ |
D | ttusbdecfe.c | 145 if (cmd->msg_len > sizeof(b) - 4) in ttusbdecfe_dvbs_diseqc_send_master_cmd() 148 memcpy(&b[4], cmd->msg, cmd->msg_len); in ttusbdecfe_dvbs_diseqc_send_master_cmd() 151 sizeof(b) - (6 - cmd->msg_len), b, in ttusbdecfe_dvbs_diseqc_send_master_cmd()
|
/drivers/misc/ |
D | ibmvmc.h | 96 u32 msg_len; member 147 __be32 msg_len; member
|
D | ibmvmc.c | 779 struct ibmvmc_hmc *hmc, int msg_len) in ibmvmc_send_msg() argument 786 rc = h_copy_rdma(msg_len, in ibmvmc_send_msg() 804 crq_msg.var3.msg_len = cpu_to_be32(msg_len); in ibmvmc_send_msg() 979 nbytes = min_t(size_t, nbytes, buffer->msg_len); in ibmvmc_read() 1602 unsigned long msg_len; in ibmvmc_recv_msg() local 1620 msg_len = be32_to_cpu(crq->var3.msg_len); in ibmvmc_recv_msg() 1659 rc = h_copy_rdma(msg_len, in ibmvmc_recv_msg() 1666 (unsigned int)msg_len, (unsigned int)buffer_id, in ibmvmc_recv_msg() 1668 buffer->msg_len = msg_len; in ibmvmc_recv_msg()
|