Lines Matching refs:cmd
66 struct ncsi_cmd_pkt *cmd; in ncsi_cmd_handler_default() local
68 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_default()
69 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_default()
77 struct ncsi_cmd_sp_pkt *cmd; in ncsi_cmd_handler_sp() local
79 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_sp()
80 cmd->hw_arbitration = nca->bytes[0]; in ncsi_cmd_handler_sp()
81 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_sp()
89 struct ncsi_cmd_dc_pkt *cmd; in ncsi_cmd_handler_dc() local
91 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_dc()
92 cmd->ald = nca->bytes[0]; in ncsi_cmd_handler_dc()
93 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_dc()
101 struct ncsi_cmd_rc_pkt *cmd; in ncsi_cmd_handler_rc() local
103 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_rc()
104 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_rc()
112 struct ncsi_cmd_ae_pkt *cmd; in ncsi_cmd_handler_ae() local
114 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_ae()
115 cmd->mc_id = nca->bytes[0]; in ncsi_cmd_handler_ae()
116 cmd->mode = htonl(nca->dwords[1]); in ncsi_cmd_handler_ae()
117 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_ae()
125 struct ncsi_cmd_sl_pkt *cmd; in ncsi_cmd_handler_sl() local
127 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_sl()
128 cmd->mode = htonl(nca->dwords[0]); in ncsi_cmd_handler_sl()
129 cmd->oem_mode = htonl(nca->dwords[1]); in ncsi_cmd_handler_sl()
130 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_sl()
138 struct ncsi_cmd_svf_pkt *cmd; in ncsi_cmd_handler_svf() local
140 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_svf()
141 cmd->vlan = htons(nca->words[1]); in ncsi_cmd_handler_svf()
142 cmd->index = nca->bytes[6]; in ncsi_cmd_handler_svf()
143 cmd->enable = nca->bytes[7]; in ncsi_cmd_handler_svf()
144 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_svf()
152 struct ncsi_cmd_ev_pkt *cmd; in ncsi_cmd_handler_ev() local
154 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_ev()
155 cmd->mode = nca->bytes[3]; in ncsi_cmd_handler_ev()
156 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_ev()
164 struct ncsi_cmd_sma_pkt *cmd; in ncsi_cmd_handler_sma() local
167 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_sma()
169 cmd->mac[i] = nca->bytes[i]; in ncsi_cmd_handler_sma()
170 cmd->index = nca->bytes[6]; in ncsi_cmd_handler_sma()
171 cmd->at_e = nca->bytes[7]; in ncsi_cmd_handler_sma()
172 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_sma()
180 struct ncsi_cmd_ebf_pkt *cmd; in ncsi_cmd_handler_ebf() local
182 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_ebf()
183 cmd->mode = htonl(nca->dwords[0]); in ncsi_cmd_handler_ebf()
184 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_ebf()
192 struct ncsi_cmd_egmf_pkt *cmd; in ncsi_cmd_handler_egmf() local
194 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_egmf()
195 cmd->mode = htonl(nca->dwords[0]); in ncsi_cmd_handler_egmf()
196 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_egmf()
204 struct ncsi_cmd_snfc_pkt *cmd; in ncsi_cmd_handler_snfc() local
206 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_snfc()
207 cmd->mode = nca->bytes[0]; in ncsi_cmd_handler_snfc()
208 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_snfc()
216 struct ncsi_cmd_oem_pkt *cmd; in ncsi_cmd_handler_oem() local
230 cmd = skb_put_zero(skb, len); in ncsi_cmd_handler_oem()
231 unsafe_memcpy(&cmd->mfr_id, nca->data, nca->payload, in ncsi_cmd_handler_oem()
233 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_oem()
309 nr->cmd = skb; in ncsi_alloc_command()
371 ret = nch->handler(nr->cmd, nca); in ncsi_xmit_cmd()
378 eh = skb_push(nr->cmd, sizeof(*eh)); in ncsi_xmit_cmd()
399 skb_get(nr->cmd); in ncsi_xmit_cmd()
400 ret = dev_queue_xmit(nr->cmd); in ncsi_xmit_cmd()