/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_mgmt.c | 119 u16 msg_len, enum hinic_mod_type mod, in prepare_header() argument 126 return HINIC_MSG_HEADER_SET(msg_len, MSG_LEN) | in prepare_header() 147 static void prepare_mgmt_cmd(u8 *mgmt_cmd, u64 *header, u8 *msg, u16 msg_len) in prepare_mgmt_cmd() argument 155 memcpy(mgmt_cmd, msg, msg_len); in prepare_mgmt_cmd() 167 u16 msg_len = MGMT_MSG_RSVD_FOR_DEV + sizeof(u64) + msg_data_len; in mgmt_msg_len() local 169 if (msg_len > MGMT_MSG_LEN_MIN) in mgmt_msg_len() 170 msg_len = MGMT_MSG_LEN_MIN + in mgmt_msg_len() 171 ALIGN((msg_len - MGMT_MSG_LEN_MIN), in mgmt_msg_len() 174 msg_len = MGMT_MSG_LEN_MIN; in mgmt_msg_len() 176 return msg_len; in mgmt_msg_len() [all …]
|
/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() 318 u.init->msg_len = cpu_to_le32(sizeof *u.init); in generic_rndis_bind() 429 u.set->msg_len = cpu_to_le32(4 + sizeof *u.set); in generic_rndis_bind() 449 u.halt->msg_len = cpu_to_le32(sizeof *u.halt); in generic_rndis_bind() 474 halt->msg_len = cpu_to_le32(sizeof *halt); in rndis_unbind() [all …]
|
/drivers/dma/ |
D | bcm-sba-raid.c | 652 dma_addr_t msg_offset, size_t msg_len, in sba_fillup_memcpy_msg() argument 663 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_memcpy_msg() 674 cmdsp->data_len = msg_len; in sba_fillup_memcpy_msg() 680 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_memcpy_msg() 699 cmdsp->data_len = msg_len; in sba_fillup_memcpy_msg() 771 dma_addr_t msg_offset, size_t msg_len, in sba_fillup_xor_msg() argument 783 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_xor_msg() 794 cmdsp->data_len = msg_len; in sba_fillup_xor_msg() 801 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_xor_msg() 812 cmdsp->data_len = msg_len; in sba_fillup_xor_msg() [all …]
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_msg.c | 149 unsigned long msg_len = strlen(msg); in vmw_port_hb_out() local 159 msg_len, si, di, in vmw_port_hb_out() 170 while (msg_len && (HIGH_WORD(ecx) & MESSAGE_STATUS_SUCCESS)) { in vmw_port_hb_out() 171 unsigned int bytes = min_t(size_t, msg_len, 4); in vmw_port_hb_out() 175 msg_len -= bytes; in vmw_port_hb_out() 258 size_t msg_len = strlen(msg); in vmw_send_msg() local 269 msg_len, si, di, in vmw_send_msg() 308 size_t *msg_len) in vmw_recv_msg() argument 316 *msg_len = 0; in vmw_recv_msg() 393 *msg_len = reply_len; in vmw_recv_msg()
|
/drivers/i2c/busses/ |
D | i2c-altera.c | 77 size_t msg_len; member 187 if (idev->msg_len == 1) in altr_i2c_transfer() 189 if (idev->msg_len > 0) in altr_i2c_transfer() 200 int bytes_to_transfer = min(rx_fifo_avail, idev->msg_len); in altr_i2c_empty_rx_fifo() 204 idev->msg_len--; in altr_i2c_empty_rx_fifo() 217 int bytes_to_transfer = min(tx_fifo_avail, idev->msg_len); in altr_i2c_fill_tx_fifo() 218 int ret = idev->msg_len - bytes_to_transfer; in altr_i2c_fill_tx_fifo() 222 idev->msg_len--; in altr_i2c_fill_tx_fifo() 277 if (!idev->msg_len) in altr_i2c_isr() 282 if (idev->msg_len > 0) in altr_i2c_isr() [all …]
|
D | i2c-hix5hd2.c | 86 unsigned int msg_len; member 201 if (priv->msg_len == 1) { in hix5hd2_read_handle() 204 } else if (priv->msg_len > 1) { in hix5hd2_read_handle() 216 if (priv->msg_len > 0) { in hix5hd2_write_handle() 236 priv->msg_len--; in hix5hd2_rw_preprocess() 239 __func__, priv->state, priv->msg_len); in hix5hd2_rw_preprocess() 271 if (priv->msg_len > 0) { in hix5hd2_i2c_irq() 324 priv->msg_len = priv->msg->len; in hix5hd2_i2c_xfer_msg()
|
D | i2c-xlp9xx.c | 96 u32 msg_len; member 174 len = max_t(u32, priv->msg_len, len + 4); in xlp9xx_i2c_update_rlen() 211 priv->msg_len = 0; in xlp9xx_i2c_drain_rx_fifo() 221 priv->msg_len = rlen + 1; in xlp9xx_i2c_drain_rx_fifo() 253 if ((status & XLP9XX_I2C_INTEN_SADDR) && (priv->msg_len == 0)) in xlp9xx_i2c_isr() 332 priv->msg_buf_remaining = priv->msg_len = msg->len; in xlp9xx_i2c_xfer_msg() 420 if (!priv->msg_len) in xlp9xx_i2c_xfer_msg() 422 msg->len = priv->msg_len; in xlp9xx_i2c_xfer_msg()
|
D | i2c-sirf.c | 74 u32 msg_len; /* Message length */ member 108 while (((siic->finished_len + i) < siic->msg_len) in i2c_sirfsoc_queue_cmd() 112 (siic->msg_len - 1)) && siic->last) in i2c_sirfsoc_queue_cmd() 122 && (siic->finished_len < siic->msg_len)) { in i2c_sirfsoc_queue_cmd() 124 if ((siic->finished_len == (siic->msg_len - 1)) in i2c_sirfsoc_queue_cmd() 169 if (siic->finished_len == siic->msg_len) in i2c_sirfsoc_irq() 247 siic->msg_len = msgs[i].len; in i2c_sirfsoc_xfer()
|
/drivers/char/ipmi/ |
D | ipmi_bt_sm.c | 249 int i, msg_len; in bt_get_result() local 251 msg_len = bt->read_count - 2; /* account for length & seq */ in bt_get_result() 252 if (msg_len < 3 || msg_len > IPMI_MAX_MSG_LENGTH) { in bt_get_result() 254 msg_len = 3; in bt_get_result() 258 if (length < msg_len || bt->truncated) { in bt_get_result() 260 msg_len = 3; in bt_get_result() 262 memcpy(data + 2, bt->read_data + 4, msg_len - 2); in bt_get_result() 265 dev_dbg(bt->io->dev, "result %d bytes:", msg_len); in bt_get_result() 266 for (i = 0; i < msg_len; i++) in bt_get_result() 270 return msg_len; in bt_get_result()
|
D | ipmb_dev_int.c | 119 u8 rq_sa, netf_rq_lun, msg_len; in ipmb_write() local 143 msg_len = msg[IPMB_MSG_LEN_IDX] - SMBUS_MSG_HEADER_LENGTH; in ipmb_write() 144 if (msg_len > I2C_SMBUS_BLOCK_MAX) in ipmb_write() 145 msg_len = I2C_SMBUS_BLOCK_MAX; in ipmb_write() 147 data.block[0] = msg_len; in ipmb_write() 148 memcpy(&data.block[1], msg + SMBUS_MSG_IDX_OFFSET, msg_len); in ipmb_write()
|
/drivers/net/hyperv/ |
D | rndis_filter.c | 81 u32 msg_len) in get_rndis_request() argument 96 rndis_msg->msg_len = msg_len; in get_rndis_request() 137 rndis_msg->msg_len, in dump_rndis_message() 152 rndis_msg->msg_len, in dump_rndis_message() 169 rndis_msg->msg_len, in dump_rndis_message() 181 rndis_msg->msg_len, in dump_rndis_message() 189 rndis_msg->msg_len, in dump_rndis_message() 198 rndis_msg->msg_len); in dump_rndis_message() 214 packet->total_data_buflen = req->request_msg.msg_len; in rndis_filter_send_request() 219 pb[0].len = req->request_msg.msg_len; in rndis_filter_send_request() [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/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() 631 msg_len = cn->len; in w1_cn_callback() 632 while (msg_len && !err) { in w1_cn_callback() 637 if (msg->len + sizeof(struct w1_netlink_msg) > msg_len) { in w1_cn_callback() 699 msg_len -= sizeof(struct w1_netlink_msg) + msg->len; in w1_cn_callback()
|
/drivers/s390/crypto/ |
D | zcrypt_msgtype50.c | 55 unsigned short msg_len; member 215 meb1->header.msg_len = sizeof(*meb1); in ICAMEX_msg_to_type50MEX_msg() 226 meb2->header.msg_len = sizeof(*meb2); in ICAMEX_msg_to_type50MEX_msg() 237 meb3->header.msg_len = sizeof(*meb3); in ICAMEX_msg_to_type50MEX_msg() 283 crb1->header.msg_len = sizeof(*crb1); in ICACRT_msg_to_type50CRT_msg() 297 crb2->header.msg_len = sizeof(*crb2); in ICACRT_msg_to_type50CRT_msg() 312 crb3->header.msg_len = sizeof(*crb3); in ICACRT_msg_to_type50CRT_msg()
|
/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_mbx.c | 83 const u8 *msg_data, u8 msg_len, bool need_resp, in hclgevf_send_mbx_msg() argument 93 if (msg_len > (HCLGE_MBX_MAX_MSG_SIZE - 2)) { in hclgevf_send_mbx_msg() 96 msg_len, HCLGE_MBX_MAX_MSG_SIZE); in hclgevf_send_mbx_msg() 106 memcpy(&req->msg[2], msg_data, msg_len); in hclgevf_send_mbx_msg()
|
/drivers/net/ethernet/hisilicon/hns3/ |
D | hclge_mbx.h | 91 u8 msg_len; member 101 u8 msg_len; member
|
/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/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()
|
D | cx24110.c | 405 if (cmd->msg_len < 3 || cmd->msg_len > 6) in cx24110_send_diseqc_msg() 408 for (i = 0; i < cmd->msg_len; i++) in cx24110_send_diseqc_msg() 419 cx24110_writereg(state, 0x76, ((rv & 0x90) | 0x40) | ((cmd->msg_len-3) & 3)); in cx24110_send_diseqc_msg()
|
/drivers/input/keyboard/ |
D | applespi.c | 753 u16 msg_len; in applespi_send_cmd_msg() local 777 msg_len = sizeof(message->tp_info_command); in applespi_send_cmd_msg() 790 msg_len = sizeof(message->init_mt_command); in applespi_send_cmd_msg() 803 msg_len = sizeof(message->capsl_command); in applespi_send_cmd_msg() 817 msg_len = sizeof(message->bl_command); in applespi_send_cmd_msg() 836 packet->length = cpu_to_le16(MSG_HEADER_SIZE + msg_len); in applespi_send_cmd_msg() 840 message->length = cpu_to_le16(msg_len - 2); in applespi_send_cmd_msg() 845 put_unaligned_le16(crc, &message->data[msg_len - 2]); in applespi_send_cmd_msg() 1399 unsigned int msg_len; in applespi_got_data() local 1468 msg_len = applespi->saved_msg_len; in applespi_got_data() [all …]
|
/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() 1600 unsigned long msg_len; in ibmvmc_recv_msg() local 1618 msg_len = be32_to_cpu(crq->var3.msg_len); in ibmvmc_recv_msg() 1657 rc = h_copy_rdma(msg_len, in ibmvmc_recv_msg() 1664 (unsigned int)msg_len, (unsigned int)buffer_id, in ibmvmc_recv_msg() 1666 buffer->msg_len = msg_len; in ibmvmc_recv_msg()
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_mbx.c | 41 resp_pf_to_vf->msg_len = vf_to_pf_req->msg_len; in hclge_gen_resp_to_vf() 59 static int hclge_send_mbx_msg(struct hclge_vport *vport, u8 *msg, u16 msg_len, in hclge_send_mbx_msg() argument 72 resp_pf_to_vf->msg_len = msg_len; in hclge_send_mbx_msg() 75 memcpy(&resp_pf_to_vf->msg[1], msg, msg_len); in hclge_send_mbx_msg()
|
/drivers/media/usb/dvb-usb/ |
D | vp702x-fe.c | 220 if (m->msg_len > 4) in vp702x_fe_send_diseqc_msg() 227 cmd[2] = m->msg_len; in vp702x_fe_send_diseqc_msg() 228 memcpy(&cmd[3], m->msg, m->msg_len); in vp702x_fe_send_diseqc_msg()
|
/drivers/staging/vc04_services/bcm2835-camera/ |
D | mmal-vchiq.c | 149 u32 msg_len; member 229 struct mmal_msg *msg, u32 msg_len) in event_to_host_cb() argument 440 struct mmal_msg *msg, u32 msg_len) in buffer_to_host_cb() argument 446 __func__, instance, msg, msg_len); in buffer_to_host_cb() 543 u32 msg_len; in service_callback() local 556 &msg_len, VCHI_FLAGS_NONE, &msg_handle); in service_callback() 562 DBG_DUMP_MSG(msg, msg_len, "<<< reply message"); in service_callback() 571 event_to_host_cb(instance, msg, msg_len); in service_callback() 577 buffer_to_host_cb(instance, msg, msg_len); in service_callback() 601 msg_context->u.sync.msg_len = msg_len; in service_callback()
|