Home
last modified time | relevance | path

Searched refs:pcmd (Results 1 – 25 of 37) sorted by relevance

12

/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_dcb.c274 const struct fw_port_cmd *pcmd) in cxgb4_dcb_handle_fw_update() argument
276 const union fw_port_dcb *fwdcb = &pcmd->u.dcb; in cxgb4_dcb_handle_fw_update()
277 int port = FW_PORT_CMD_PORTID_G(be32_to_cpu(pcmd->op_to_portid)); in cxgb4_dcb_handle_fw_update()
281 int dcb_type = pcmd->u.dcb.pgid.type; in cxgb4_dcb_handle_fw_update()
289 ((pcmd->u.dcb.control.all_syncd_pkd & in cxgb4_dcb_handle_fw_update()
297 pcmd->u.dcb.control.dcb_version_to_app_state)); in cxgb4_dcb_handle_fw_update()
442 struct fw_port_cmd pcmd; in cxgb4_getpgtccfg() local
450 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg()
452 INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg()
454 pcmd.u.dcb.pgid.type = FW_PORT_DCB_TYPE_PGID; in cxgb4_getpgtccfg()
[all …]
Dcxgb4_dcb.h39 FW_LEN16(pcmd)); \
/drivers/staging/rtl8712/
Drtl8712_cmd.c122 struct cmd_obj *pcmd = (struct cmd_obj *)pbuf; in read_bbreg_hdl() local
124 r8712_free_cmd_obj(pcmd); in read_bbreg_hdl()
130 void (*pcmd_callback)(struct _adapter *dev, struct cmd_obj *pcmd); in write_bbreg_hdl()
131 struct cmd_obj *pcmd = (struct cmd_obj *)pbuf; in write_bbreg_hdl() local
133 pcmd_callback = cmd_callback[pcmd->cmdcode].callback; in write_bbreg_hdl()
135 r8712_free_cmd_obj(pcmd); in write_bbreg_hdl()
137 pcmd_callback(padapter, pcmd); in write_bbreg_hdl()
144 void (*pcmd_callback)(struct _adapter *dev, struct cmd_obj *pcmd); in read_rfreg_hdl()
145 struct cmd_obj *pcmd = (struct cmd_obj *)pbuf; in read_rfreg_hdl() local
147 if (pcmd->rsp && pcmd->rspsz > 0) in read_rfreg_hdl()
[all …]
Drtl871x_cmd.c159 void r8712_free_cmd_obj(struct cmd_obj *pcmd) in r8712_free_cmd_obj() argument
161 if ((pcmd->cmdcode != _JoinBss_CMD_) && in r8712_free_cmd_obj()
162 (pcmd->cmdcode != _CreateBss_CMD_)) in r8712_free_cmd_obj()
163 kfree(pcmd->parmbuf); in r8712_free_cmd_obj()
164 if (pcmd->rsp) { in r8712_free_cmd_obj()
165 if (pcmd->rspsz != 0) in r8712_free_cmd_obj()
166 kfree(pcmd->rsp); in r8712_free_cmd_obj()
168 kfree(pcmd); in r8712_free_cmd_obj()
298 struct cmd_obj *pcmd) in r8712_getbbrfreg_cmdrsp_callback() argument
300 kfree(pcmd->parmbuf); in r8712_getbbrfreg_cmdrsp_callback()
[all …]
Drtl871x_cmd.h72 #define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) \ argument
74 INIT_LIST_HEAD(&pcmd->list);\
75 pcmd->cmdcode = code;\
76 pcmd->parmbuf = (u8 *)(pparm);\
77 pcmd->cmdsz = sizeof(*pparm);\
78 pcmd->rsp = NULL;\
79 pcmd->rspsz = 0;\
85 void r8712_free_cmd_obj(struct cmd_obj *pcmd);
738 struct cmd_obj *pcmd);
740 struct cmd_obj *pcmd);
[all …]
Drtl871x_mlme.c1148 struct cmd_obj *pcmd; in r8712_set_auth() local
1151 pcmd = kmalloc(sizeof(*pcmd), GFP_ATOMIC); in r8712_set_auth()
1152 if (!pcmd) in r8712_set_auth()
1157 kfree(pcmd); in r8712_set_auth()
1161 pcmd->cmdcode = _SetAuth_CMD_; in r8712_set_auth()
1162 pcmd->parmbuf = (unsigned char *)psetauthparm; in r8712_set_auth()
1163 pcmd->cmdsz = sizeof(struct setauth_parm); in r8712_set_auth()
1164 pcmd->rsp = NULL; in r8712_set_auth()
1165 pcmd->rspsz = 0; in r8712_set_auth()
1166 INIT_LIST_HEAD(&pcmd->list); in r8712_set_auth()
[all …]
Drtl871x_mp.c264 struct cmd_obj *pcmd = NULL; in r8712_SetChannel() local
268 pcmd = kmalloc(sizeof(*pcmd), GFP_ATOMIC); in r8712_SetChannel()
269 if (!pcmd) in r8712_SetChannel()
273 kfree(pcmd); in r8712_SetChannel()
277 init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code); in r8712_SetChannel()
278 r8712_enqueue_cmd(pcmdpriv, pcmd); in r8712_SetChannel()
/drivers/media/usb/as102/
Das10x_cmd_stream.c22 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_add_PID_filter() local
24 pcmd = adap->cmd; in as10x_cmd_add_PID_filter()
28 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_add_PID_filter()
29 sizeof(pcmd->body.add_pid_filter.req)); in as10x_cmd_add_PID_filter()
32 pcmd->body.add_pid_filter.req.proc_id = in as10x_cmd_add_PID_filter()
34 pcmd->body.add_pid_filter.req.pid = cpu_to_le16(filter->pid); in as10x_cmd_add_PID_filter()
35 pcmd->body.add_pid_filter.req.stream_type = filter->type; in as10x_cmd_add_PID_filter()
38 pcmd->body.add_pid_filter.req.idx = filter->idx; in as10x_cmd_add_PID_filter()
40 pcmd->body.add_pid_filter.req.idx = 0xFF; in as10x_cmd_add_PID_filter()
44 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd, in as10x_cmd_add_PID_filter()
[all …]
Das10x_cmd_cfg.c27 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_get_context() local
29 pcmd = adap->cmd; in as10x_cmd_get_context()
33 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_get_context()
34 sizeof(pcmd->body.context.req)); in as10x_cmd_get_context()
37 pcmd->body.context.req.proc_id = cpu_to_le16(CONTROL_PROC_CONTEXT); in as10x_cmd_get_context()
38 pcmd->body.context.req.tag = cpu_to_le16(tag); in as10x_cmd_get_context()
39 pcmd->body.context.req.type = cpu_to_le16(GET_CONTEXT_DATA); in as10x_cmd_get_context()
44 (uint8_t *) pcmd, in as10x_cmd_get_context()
45 sizeof(pcmd->body.context.req) in as10x_cmd_get_context()
83 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_set_context() local
[all …]
Das10x_cmd.c21 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_turn_on() local
23 pcmd = adap->cmd; in as10x_cmd_turn_on()
27 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_turn_on()
28 sizeof(pcmd->body.turn_on.req)); in as10x_cmd_turn_on()
31 pcmd->body.turn_on.req.proc_id = cpu_to_le16(CONTROL_PROC_TURNON); in as10x_cmd_turn_on()
35 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd, in as10x_cmd_turn_on()
36 sizeof(pcmd->body.turn_on.req) + in as10x_cmd_turn_on()
62 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_turn_off() local
64 pcmd = adap->cmd; in as10x_cmd_turn_off()
68 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_turn_off()
[all …]
/drivers/staging/rtl8723bs/core/
Drtw_cmd.c347 void rtw_free_cmd_obj(struct cmd_obj *pcmd) in rtw_free_cmd_obj() argument
349 if ((pcmd->cmdcode != _JoinBss_CMD_) && in rtw_free_cmd_obj()
350 (pcmd->cmdcode != _CreateBss_CMD_)) { in rtw_free_cmd_obj()
352 kfree(pcmd->parmbuf); in rtw_free_cmd_obj()
355 if (pcmd->rsp) { in rtw_free_cmd_obj()
356 if (pcmd->rspsz != 0) { in rtw_free_cmd_obj()
358 kfree(pcmd->rsp); in rtw_free_cmd_obj()
363 kfree(pcmd); in rtw_free_cmd_obj()
381 struct cmd_obj *pcmd; in rtw_cmd_thread() local
384 void (*pcmd_callback)(struct adapter *dev, struct cmd_obj *pcmd); in rtw_cmd_thread()
[all …]
Drtw_mlme.c1890 struct cmd_obj *pcmd; in rtw_set_auth() local
1895 pcmd = rtw_zmalloc(sizeof(struct cmd_obj)); in rtw_set_auth()
1896 if (!pcmd) { in rtw_set_auth()
1903 kfree(pcmd); in rtw_set_auth()
1910 pcmd->cmdcode = _SetAuth_CMD_; in rtw_set_auth()
1911 pcmd->parmbuf = (unsigned char *)psetauthparm; in rtw_set_auth()
1912 pcmd->cmdsz = (sizeof(struct setauth_parm)); in rtw_set_auth()
1913 pcmd->rsp = NULL; in rtw_set_auth()
1914 pcmd->rspsz = 0; in rtw_set_auth()
1916 INIT_LIST_HEAD(&pcmd->list); in rtw_set_auth()
[all …]
Drtw_ap.c1308 struct cmd_obj *pcmd; in rtw_ap_set_key() local
1313 pcmd = rtw_zmalloc(sizeof(struct cmd_obj)); in rtw_ap_set_key()
1314 if (!pcmd) { in rtw_ap_set_key()
1320 kfree(pcmd); in rtw_ap_set_key()
1349 pcmd->cmdcode = _SetKey_CMD_; in rtw_ap_set_key()
1350 pcmd->parmbuf = (u8 *)psetkeyparm; in rtw_ap_set_key()
1351 pcmd->cmdsz = (sizeof(struct setkey_parm)); in rtw_ap_set_key()
1352 pcmd->rsp = NULL; in rtw_ap_set_key()
1353 pcmd->rspsz = 0; in rtw_ap_set_key()
1355 INIT_LIST_HEAD(&pcmd->list); in rtw_ap_set_key()
[all …]
/drivers/staging/r8188eu/core/
Drtw_cmd.c232 void rtw_free_cmd_obj(struct cmd_obj *pcmd) in rtw_free_cmd_obj() argument
235 if ((pcmd->cmdcode != _JoinBss_CMD_) && (pcmd->cmdcode != _CreateBss_CMD_)) { in rtw_free_cmd_obj()
237 kfree(pcmd->parmbuf); in rtw_free_cmd_obj()
240 if (pcmd->rsp) { in rtw_free_cmd_obj()
241 if (pcmd->rspsz != 0) { in rtw_free_cmd_obj()
243 kfree(pcmd->rsp); in rtw_free_cmd_obj()
248 kfree(pcmd); in rtw_free_cmd_obj()
255 struct cmd_obj *pcmd; in rtw_cmd_thread() local
258 void (*pcmd_callback)(struct adapter *dev, struct cmd_obj *pcmd); in rtw_cmd_thread()
287 pcmd = rtw_dequeue_cmd(pcmdpriv); in rtw_cmd_thread()
[all …]
Drtw_mlme.c1641 struct cmd_obj *pcmd; in rtw_set_auth() local
1646 pcmd = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL); in rtw_set_auth()
1647 if (!pcmd) { in rtw_set_auth()
1654 kfree(pcmd); in rtw_set_auth()
1660 pcmd->cmdcode = _SetAuth_CMD_; in rtw_set_auth()
1661 pcmd->parmbuf = (unsigned char *)psetauthparm; in rtw_set_auth()
1662 pcmd->cmdsz = (sizeof(struct setauth_parm)); in rtw_set_auth()
1663 pcmd->rsp = NULL; in rtw_set_auth()
1664 pcmd->rspsz = 0; in rtw_set_auth()
1665 INIT_LIST_HEAD(&pcmd->list); in rtw_set_auth()
[all …]
/drivers/staging/rtl8723bs/include/
Drtw_cmd.h73 #define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) \ argument
75 INIT_LIST_HEAD(&pcmd->list);\
76 pcmd->cmdcode = code;\
77 pcmd->parmbuf = (u8 *)(pparm);\
78 pcmd->cmdsz = sizeof(*pparm);\
79 pcmd->rsp = NULL;\
80 pcmd->rspsz = 0;\
83 #define init_h2fwcmd_w_parm_no_parm_rsp(pcmd, code) \ argument
85 INIT_LIST_HEAD(&pcmd->list);\
86 pcmd->cmdcode = code;\
[all …]
/drivers/scsi/lpfc/
Dlpfc_els.c170 struct lpfc_dmabuf *pcmd, *prsp, *pbuflist; in lpfc_prep_els_iocb() local
217 pcmd = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_prep_els_iocb()
218 if (pcmd) in lpfc_prep_els_iocb()
219 pcmd->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &pcmd->phys); in lpfc_prep_els_iocb()
220 if (!pcmd || !pcmd->virt) in lpfc_prep_els_iocb()
223 INIT_LIST_HEAD(&pcmd->list); in lpfc_prep_els_iocb()
298 bpl->addrLow = le32_to_cpu(putPaddrLow(pcmd->phys)); in lpfc_prep_els_iocb()
299 bpl->addrHigh = le32_to_cpu(putPaddrHigh(pcmd->phys)); in lpfc_prep_els_iocb()
313 elsiocb->context2 = pcmd; in lpfc_prep_els_iocb()
320 list_add(&prsp->list, &pcmd->list); in lpfc_prep_els_iocb()
[all …]
Dlpfc_nportdisc.c171 struct lpfc_dmabuf *pcmd, *prsp; in lpfc_check_elscmpl_iocb() local
177 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_check_elscmpl_iocb()
182 if (pcmd) { in lpfc_check_elscmpl_iocb()
183 prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, in lpfc_check_elscmpl_iocb()
324 struct lpfc_dmabuf *pcmd; in lpfc_rcv_plogi() local
339 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_rcv_plogi()
340 lp = (uint32_t *) pcmd->virt; in lpfc_rcv_plogi()
684 struct lpfc_dmabuf *pcmd; in lpfc_rcv_padisc() local
693 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_rcv_padisc()
694 lp = (uint32_t *) pcmd->virt; in lpfc_rcv_padisc()
[all …]
/drivers/staging/r8188eu/include/
Drtw_cmd.h62 #define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) \ argument
64 INIT_LIST_HEAD(&pcmd->list);\
65 pcmd->cmdcode = code;\
66 pcmd->parmbuf = (u8 *)(pparm);\
67 pcmd->cmdsz = sizeof(*pparm);\
68 pcmd->rsp = NULL;\
69 pcmd->rspsz = 0;\
83 void rtw_free_cmd_obj(struct cmd_obj *pcmd);
802 void rtw_survey_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd);
803 void rtw_disassoc_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd);
[all …]
/drivers/scsi/arcmsr/
Darcmsr_hba.c1309 struct scsi_cmnd *pcmd = ccb->pcmd; in arcmsr_pci_unmap_dma() local
1311 scsi_dma_unmap(pcmd); in arcmsr_pci_unmap_dma()
1317 struct scsi_cmnd *pcmd = ccb->pcmd; in arcmsr_ccb_complete() local
1325 pcmd->scsi_done(pcmd); in arcmsr_ccb_complete()
1330 struct scsi_cmnd *pcmd = ccb->pcmd; in arcmsr_report_sense_info() local
1332 pcmd->result = (DID_OK << 16) | SAM_STAT_CHECK_CONDITION; in arcmsr_report_sense_info()
1333 if (pcmd->sense_buffer) { in arcmsr_report_sense_info()
1336 memcpy_and_pad(pcmd->sense_buffer, in arcmsr_report_sense_info()
1342 sensebuffer = (struct SENSE_DATA *)pcmd->sense_buffer; in arcmsr_report_sense_info()
1394 id = ccb->pcmd->device->id; in arcmsr_report_ccb_state()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8723com/
Dphy_common.c255 struct swchnlcmd *pcmd; in rtl8723_phy_set_sw_chnl_cmdarray() local
265 pcmd = cmdtable + cmdtableidx; in rtl8723_phy_set_sw_chnl_cmdarray()
266 pcmd->cmdid = cmdid; in rtl8723_phy_set_sw_chnl_cmdarray()
267 pcmd->para1 = para1; in rtl8723_phy_set_sw_chnl_cmdarray()
268 pcmd->para2 = para2; in rtl8723_phy_set_sw_chnl_cmdarray()
269 pcmd->msdelay = msdelay; in rtl8723_phy_set_sw_chnl_cmdarray()
/drivers/scsi/bfa/
Dbfad_bsg.c408 bfad_iocmd_port_cfg_bbcr(struct bfad_s *bfad, unsigned int cmd, void *pcmd) in bfad_iocmd_port_cfg_bbcr() argument
411 (struct bfa_bsg_bbcr_enable_s *)pcmd; in bfad_iocmd_port_cfg_bbcr()
431 bfad_iocmd_port_get_bbcr_attr(struct bfad_s *bfad, void *pcmd) in bfad_iocmd_port_get_bbcr_attr() argument
433 struct bfa_bsg_bbcr_attr_s *iocmd = (struct bfa_bsg_bbcr_attr_s *) pcmd; in bfad_iocmd_port_get_bbcr_attr()
911 bfad_iocmd_qos_set_bw(struct bfad_s *bfad, void *pcmd) in bfad_iocmd_qos_set_bw() argument
913 struct bfa_bsg_qos_bw_s *iocmd = (struct bfa_bsg_qos_bw_s *)pcmd; in bfad_iocmd_qos_set_bw()
924 bfad_iocmd_ratelim(struct bfad_s *bfad, unsigned int cmd, void *pcmd) in bfad_iocmd_ratelim() argument
926 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_ratelim()
953 bfad_iocmd_ratelim_speed(struct bfad_s *bfad, unsigned int cmd, void *pcmd) in bfad_iocmd_ratelim_speed() argument
955 struct bfa_bsg_trl_speed_s *iocmd = (struct bfa_bsg_trl_speed_s *)pcmd; in bfad_iocmd_ratelim_speed()
[all …]
/drivers/scsi/csiostor/
Dcsio_mb.c1408 struct fw_port_cmd *pcmd; in csio_mb_fwevt_handler() local
1416 pcmd = (struct fw_port_cmd *)cmd; in csio_mb_fwevt_handler()
1418 ntohl(pcmd->op_to_portid)); in csio_mb_fwevt_handler()
1420 ntohl(pcmd->action_to_len16)); in csio_mb_fwevt_handler()
1429 link_status = ntohl(pcmd->u.info.lstatus_to_modtype); in csio_mb_fwevt_handler()
1437 ntohl(pcmd->u.info32.lstatus32_to_cbllen32); in csio_mb_fwevt_handler()
1439 linkattr = ntohl(pcmd->u.info32.linkattr32); in csio_mb_fwevt_handler()
/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dphy.c294 struct swchnlcmd *pcmd; in _rtl92s_phy_set_sw_chnl_cmdarray() local
304 pcmd = cmdtable + cmdtableidx; in _rtl92s_phy_set_sw_chnl_cmdarray()
305 pcmd->cmdid = cmdid; in _rtl92s_phy_set_sw_chnl_cmdarray()
306 pcmd->para1 = para1; in _rtl92s_phy_set_sw_chnl_cmdarray()
307 pcmd->para2 = para2; in _rtl92s_phy_set_sw_chnl_cmdarray()
308 pcmd->msdelay = msdelay; in _rtl92s_phy_set_sw_chnl_cmdarray()
/drivers/net/wireless/realtek/rtlwifi/rtl8192c/
Dphy_common.c759 struct swchnlcmd *pcmd; in _rtl92c_phy_set_sw_chnl_cmdarray() local
769 pcmd = cmdtable + cmdtableidx; in _rtl92c_phy_set_sw_chnl_cmdarray()
770 pcmd->cmdid = cmdid; in _rtl92c_phy_set_sw_chnl_cmdarray()
771 pcmd->para1 = para1; in _rtl92c_phy_set_sw_chnl_cmdarray()
772 pcmd->para2 = para2; in _rtl92c_phy_set_sw_chnl_cmdarray()
773 pcmd->msdelay = msdelay; in _rtl92c_phy_set_sw_chnl_cmdarray()

12