fw_msg
static void bng_re_fill_fw_msg(struct bnge_fw_msg *fw_msg, void *msg,
fw_msg->msg = msg;
fw_msg->msg_len = msg_len;
fw_msg->resp = resp;
fw_msg->resp_max_len = resp_max_len;
fw_msg->timeout = timeout;
struct bnge_fw_msg fw_msg = {};
bng_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), (void *)&resp,
rc = bnge_send_msg(aux_dev, &fw_msg);
struct bnge_fw_msg fw_msg = {};
bng_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), (void *)&resp,
rc = bnge_send_msg(aux_dev, &fw_msg);
struct bnge_fw_msg fw_msg = {};
bng_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), (void *)&resp,
rc = bnge_send_msg(aux_dev, &fw_msg);
struct bnge_fw_msg fw_msg = {};
bng_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), (void *)&resp,
rc = bnge_send_msg(aux_dev, &fw_msg);
struct bnge_fw_msg fw_msg = {};
bng_re_fill_fw_msg(&fw_msg, (void *)&ver_get_req, sizeof(ver_get_req),
rc = bnge_send_msg(aux_dev, &fw_msg);
struct bnxt_fw_msg fw_msg = {};
bnxt_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), (void *)&resp,
rc = bnxt_send_msg(en_dev, &fw_msg);
struct bnxt_fw_msg fw_msg = {};
bnxt_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), (void *)&resp,
rc = bnxt_send_msg(en_dev, &fw_msg);
static void bnxt_re_fill_fw_msg(struct bnxt_fw_msg *fw_msg, void *msg,
fw_msg->msg = msg;
fw_msg->msg_len = msg_len;
fw_msg->resp = resp;
fw_msg->resp_max_len = resp_max_len;
fw_msg->timeout = timeout;
struct bnxt_fw_msg fw_msg = {};
bnxt_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), NULL,
rc = bnxt_send_msg(en_dev, &fw_msg);
struct bnxt_fw_msg fw_msg = {};
bnxt_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), (void *)&resp,
rc = bnxt_send_msg(en_dev, &fw_msg);
struct bnxt_fw_msg fw_msg = {};
bnxt_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), NULL,
rc = bnxt_send_msg(en_dev, &fw_msg);
struct bnxt_fw_msg fw_msg = {};
bnxt_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), (void *)&resp,
rc = bnxt_send_msg(en_dev, &fw_msg);
struct bnxt_fw_msg fw_msg = {};
bnxt_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), (void *)&resp,
rc = bnxt_send_msg(en_dev, &fw_msg);
struct bnxt_fw_msg fw_msg = {};
bnxt_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), (void *)&resp,
rc = bnxt_send_msg(en_dev, &fw_msg);
struct bnxt_fw_msg fw_msg = {};
bnxt_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), (void *)&resp,
rc = bnxt_send_msg(en_dev, &fw_msg);
struct bnxt_fw_msg fw_msg = {};
bnxt_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), (void *)&resp,
rc = bnxt_send_msg(en_dev, &fw_msg);
struct bnxt_fw_msg fw_msg = {};
bnxt_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), (void *)&resp,
rc = bnxt_send_msg(en_dev, &fw_msg);
struct i2c_msg fw_msg = { .flags = 0, .buf = buf, .len = 0 };
fw_msg.addr = state->config->demod_address;
fw_msg.len = tx_size + 1;
if (__i2c_transfer(state->i2c, &fw_msg, 1) != 1) {
buf = &msg->fw_msg.frame;
buf = &msg->fw_msg.frame;
stream_cfg = &msg->fw_msg.stream;
buf = &msg->fw_msg.frame;
memset(&msg->fw_msg, 0, sizeof(msg->fw_msg));
msg = container_of(ptr, struct isys_fw_msgs, fw_msg.dummy);
static const struct fwmsg fw_msg[] = {
for (i = 0; i < ARRAY_SIZE(fw_msg); i++)
if (fw_msg[i].type == type)
return ARRAY_SIZE(fw_msg) - 1;
resp->type, fw_msg[index].msg, resp->stream_handle,
fw_msg[index].valid_ts ? ts : 0, resp->pin_id);
} fw_msg;
rc = bnge_hwrm_req_replace(bd, req, fw_msg->msg, fw_msg->msg_len);
bnge_hwrm_req_timeout(bd, req, fw_msg->timeout);
if (fw_msg->resp_max_len < resp_len)
resp_len = fw_msg->resp_max_len;
memcpy(fw_msg->resp, resp, resp_len);
int bnge_send_msg(struct bnge_auxr_dev *auxr_dev, struct bnge_fw_msg *fw_msg)
int bnge_send_msg(struct bnge_auxr_dev *adev, struct bnge_fw_msg *fw_msg);
struct bnxt_fw_msg *fw_msg)
rc = hwrm_req_replace(bp, req, fw_msg->msg, fw_msg->msg_len);
hwrm_req_timeout(bp, req, fw_msg->timeout);
if (fw_msg->resp_max_len < resp_len)
resp_len = fw_msg->resp_max_len;
memcpy(fw_msg->resp, resp, resp_len);
int bnxt_send_msg(struct bnxt_en_dev *edev, struct bnxt_fw_msg *fw_msg);
const struct cpl_fw6_msg *fw_msg = cpl;
if (fw_msg->type == FW6_TYPE_CMD_RPL)
t4vf_handle_fw_rpl(adapter, fw_msg->data);
qos_scn = (struct bfi_rport_qos_scn_s *) rp->event_arg.fw_msg;
rp->event_arg.fw_msg = msg.qos_scn_evt;
void *fw_msg; /* QoS scn event */
buf = &msg->fw_msg.frame;
buf = &msg->fw_msg.frame;
stream_cfg = &msg->fw_msg.stream;
buf = &msg->fw_msg.frame;
memset(&msg->fw_msg, 0, sizeof(msg->fw_msg));
msg = container_of(ptr, struct isys_fw_msgs, fw_msg.dummy);
} fw_msg;
struct fw_msg send_msg;
struct fw_msg recv_msg;
struct fw_msg *msg = &ctx->send_msg;
struct fw_msg *msg = &ctx->recv_msg;