Lines Matching defs:hcmd

2474 	DPRINTFN(10, ("Sending PHY-DB hcmd of type %d, of length %d\n",
2564 struct iwm_host_cmd hcmd = {
2572 hcmd.data[0] = cmd;
2573 hcmd.len[0] = sizeof(*cmd);
2574 err = iwm_send_cmd(sc, &hcmd);
2578 pkt = hcmd.resp_pkt;
2596 iwm_free_resp(sc, &hcmd);
4479 iwm_send_cmd(struct iwm_softc *sc, struct iwm_host_cmd *hcmd)
4494 code = hcmd->id;
4495 async = hcmd->flags & IWM_CMD_ASYNC;
4498 for (i = 0, paylen = 0; i < __arraycount(hcmd->len); i++) {
4499 paylen += hcmd->len[i];
4503 hcmd->resp_pkt = NULL;
4504 if (hcmd->flags & IWM_CMD_WANT_RESP) {
4507 KASSERT(hcmd->resp_pkt_len >= sizeof(struct iwm_rx_packet));
4508 KASSERT(hcmd->resp_pkt_len <= IWM_CMD_RESP_MAX);
4511 resp_buf = kmem_zalloc(hcmd->resp_pkt_len, KM_NOSLEEP);
4515 sc->sc_cmd_resp_len[idx] = hcmd->resp_pkt_len;
4594 for (i = 0, off = 0; i < __arraycount(hcmd->data); i++) {
4595 if (hcmd->len[i] == 0)
4597 memcpy(data + off, hcmd->data[i], hcmd->len[i]);
4598 off += hcmd->len[i];
4656 hcmd->resp_pkt = (void *)sc->sc_cmd_resp_pkt[idx];
4735 iwm_free_resp(struct iwm_softc *sc, struct iwm_host_cmd *hcmd)
4737 KASSERT(hcmd != NULL);
4738 KASSERT((hcmd->flags & IWM_CMD_WANT_RESP) == IWM_CMD_WANT_RESP);
4739 if (hcmd->resp_pkt != NULL) {
4740 KASSERT(hcmd->resp_pkt_len > 0);
4741 kmem_free(hcmd->resp_pkt, hcmd->resp_pkt_len);
4743 hcmd->resp_pkt = NULL;
5762 struct iwm_host_cmd hcmd = {
5780 hcmd.len[0] = (uint16_t)req_len;
5781 hcmd.data[0] = (void *)req;
5856 err = iwm_send_cmd(sc, &hcmd);
5869 struct iwm_host_cmd hcmd = {
5929 hcmd.data[0] = scan_config;
5930 hcmd.len[0] = cmd_size;
5932 err = iwm_send_cmd(sc, &hcmd);
5997 struct iwm_host_cmd hcmd = {
6019 hcmd.len[0] = (uint16_t)req_len;
6020 hcmd.data[0] = (void *)req;
6105 err = iwm_send_cmd(sc, &hcmd);
7490 struct iwm_host_cmd hcmd = {
7516 hcmd.len[0] = sizeof(struct iwm_mcc_update_cmd);
7518 hcmd.len[0] = sizeof(struct iwm_mcc_update_cmd_v1);
7520 err = iwm_send_cmd(sc, &hcmd);
7524 pkt = hcmd.resp_pkt;
7560 iwm_free_resp(sc, &hcmd);
8105 uint32_t hcmd; /* last host command header */
8260 device_printf(sc->sc_dev, "%08X | hcmd\n", t.hcmd);