/drivers/staging/rtl8712/ |
D | rtl8712_cmd.c | 130 void (*pcmd_callback)(struct _adapter *dev, struct cmd_obj *pcmd); in read_macreg_hdl() 131 struct cmd_obj *pcmd = (struct cmd_obj *)pbuf; in read_macreg_hdl() local 134 pcmd_callback = cmd_callback[pcmd->cmdcode].callback; in read_macreg_hdl() 136 r8712_free_cmd_obj(pcmd); in read_macreg_hdl() 138 pcmd_callback(padapter, pcmd); in read_macreg_hdl() 144 void (*pcmd_callback)(struct _adapter *dev, struct cmd_obj *pcmd); in write_macreg_hdl() 145 struct cmd_obj *pcmd = (struct cmd_obj *)pbuf; in write_macreg_hdl() local 148 pcmd_callback = cmd_callback[pcmd->cmdcode].callback; in write_macreg_hdl() 150 r8712_free_cmd_obj(pcmd); in write_macreg_hdl() 152 pcmd_callback(padapter, pcmd); in write_macreg_hdl() [all …]
|
D | rtl871x_cmd.c | 204 void r8712_free_cmd_obj(struct cmd_obj *pcmd) in r8712_free_cmd_obj() argument 206 if ((pcmd->cmdcode != _JoinBss_CMD_) && in r8712_free_cmd_obj() 207 (pcmd->cmdcode != _CreateBss_CMD_)) in r8712_free_cmd_obj() 208 kfree((unsigned char *)pcmd->parmbuf); in r8712_free_cmd_obj() 209 if (pcmd->rsp != NULL) { in r8712_free_cmd_obj() 210 if (pcmd->rspsz != 0) in r8712_free_cmd_obj() 211 kfree((unsigned char *)pcmd->rsp); in r8712_free_cmd_obj() 213 kfree((unsigned char *)pcmd); in r8712_free_cmd_obj() 428 struct cmd_obj *pcmd) in r8712_getbbrfreg_cmdrsp_callback() argument 430 kfree(pcmd->parmbuf); in r8712_getbbrfreg_cmdrsp_callback() [all …]
|
D | rtl871x_cmd.h | 84 #define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) \ argument 86 INIT_LIST_HEAD(&pcmd->list);\ 87 pcmd->cmdcode = code;\ 88 pcmd->parmbuf = (u8 *)(pparm);\ 89 pcmd->cmdsz = sizeof(*pparm);\ 90 pcmd->rsp = NULL;\ 91 pcmd->rspsz = 0;\ 97 void r8712_free_cmd_obj(struct cmd_obj *pcmd); 764 struct cmd_obj *pcmd); 766 struct cmd_obj *pcmd); [all …]
|
D | rtl871x_mlme.c | 1212 struct cmd_obj *pcmd; in r8712_set_auth() local 1215 pcmd = kmalloc(sizeof(*pcmd), GFP_ATOMIC); in r8712_set_auth() 1216 if (pcmd == NULL) in r8712_set_auth() 1221 kfree((unsigned char *)pcmd); in r8712_set_auth() 1225 pcmd->cmdcode = _SetAuth_CMD_; in r8712_set_auth() 1226 pcmd->parmbuf = (unsigned char *)psetauthparm; in r8712_set_auth() 1227 pcmd->cmdsz = sizeof(struct setauth_parm); in r8712_set_auth() 1228 pcmd->rsp = NULL; in r8712_set_auth() 1229 pcmd->rspsz = 0; in r8712_set_auth() 1230 INIT_LIST_HEAD(&pcmd->list); in r8712_set_auth() [all …]
|
D | rtl871x_mp.c | 279 struct cmd_obj *pcmd = NULL; in r8712_SetChannel() local 283 pcmd = kmalloc(sizeof(*pcmd), GFP_ATOMIC); in r8712_SetChannel() 284 if (pcmd == NULL) in r8712_SetChannel() 288 kfree(pcmd); in r8712_SetChannel() 292 init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code); in r8712_SetChannel() 293 r8712_enqueue_cmd(pcmdpriv, pcmd); in r8712_SetChannel()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_dcb.c | 243 const struct fw_port_cmd *pcmd) in cxgb4_dcb_handle_fw_update() argument 245 const union fw_port_dcb *fwdcb = &pcmd->u.dcb; in cxgb4_dcb_handle_fw_update() 246 int port = FW_PORT_CMD_PORTID_GET(be32_to_cpu(pcmd->op_to_portid)); in cxgb4_dcb_handle_fw_update() 250 int dcb_type = pcmd->u.dcb.pgid.type; in cxgb4_dcb_handle_fw_update() 258 ((pcmd->u.dcb.control.all_syncd_pkd & in cxgb4_dcb_handle_fw_update() 266 pcmd->u.dcb.control.dcb_version_to_app_state)); in cxgb4_dcb_handle_fw_update() 411 struct fw_port_cmd pcmd; in cxgb4_getpgtccfg() local 419 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg() 421 INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg() 423 pcmd.u.dcb.pgid.type = FW_PORT_DCB_TYPE_PGID; in cxgb4_getpgtccfg() [all …]
|
D | cxgb4_dcb.h | 51 FW_LEN16(pcmd)); \
|
/drivers/media/usb/as102/ |
D | as10x_cmd_stream.c | 31 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_add_PID_filter() local 33 pcmd = adap->cmd; in as10x_cmd_add_PID_filter() 37 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_add_PID_filter() 38 sizeof(pcmd->body.add_pid_filter.req)); in as10x_cmd_add_PID_filter() 41 pcmd->body.add_pid_filter.req.proc_id = in as10x_cmd_add_PID_filter() 43 pcmd->body.add_pid_filter.req.pid = cpu_to_le16(filter->pid); in as10x_cmd_add_PID_filter() 44 pcmd->body.add_pid_filter.req.stream_type = filter->type; in as10x_cmd_add_PID_filter() 47 pcmd->body.add_pid_filter.req.idx = filter->idx; in as10x_cmd_add_PID_filter() 49 pcmd->body.add_pid_filter.req.idx = 0xFF; in as10x_cmd_add_PID_filter() 53 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd, in as10x_cmd_add_PID_filter() [all …]
|
D | as10x_cmd_cfg.c | 36 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_get_context() local 38 pcmd = adap->cmd; in as10x_cmd_get_context() 42 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_get_context() 43 sizeof(pcmd->body.context.req)); in as10x_cmd_get_context() 46 pcmd->body.context.req.proc_id = cpu_to_le16(CONTROL_PROC_CONTEXT); in as10x_cmd_get_context() 47 pcmd->body.context.req.tag = cpu_to_le16(tag); in as10x_cmd_get_context() 48 pcmd->body.context.req.type = cpu_to_le16(GET_CONTEXT_DATA); in as10x_cmd_get_context() 53 (uint8_t *) pcmd, in as10x_cmd_get_context() 54 sizeof(pcmd->body.context.req) in as10x_cmd_get_context() 92 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_set_context() local [all …]
|
D | as10x_cmd.c | 30 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_turn_on() local 32 pcmd = adap->cmd; in as10x_cmd_turn_on() 36 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_turn_on() 37 sizeof(pcmd->body.turn_on.req)); in as10x_cmd_turn_on() 40 pcmd->body.turn_on.req.proc_id = cpu_to_le16(CONTROL_PROC_TURNON); in as10x_cmd_turn_on() 44 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd, in as10x_cmd_turn_on() 45 sizeof(pcmd->body.turn_on.req) + in as10x_cmd_turn_on() 71 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_turn_off() local 73 pcmd = adap->cmd; in as10x_cmd_turn_off() 77 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_turn_off() [all …]
|
/drivers/staging/rtl8188eu/core/ |
D | rtw_cmd.c | 144 void rtw_free_cmd_obj(struct cmd_obj *pcmd) in rtw_free_cmd_obj() argument 147 if ((pcmd->cmdcode != _JoinBss_CMD_) && (pcmd->cmdcode != _CreateBss_CMD_)) { in rtw_free_cmd_obj() 149 kfree(pcmd->parmbuf); in rtw_free_cmd_obj() 152 if (pcmd->rsp != NULL) { in rtw_free_cmd_obj() 153 if (pcmd->rspsz != 0) { in rtw_free_cmd_obj() 155 kfree(pcmd->rsp); in rtw_free_cmd_obj() 160 kfree(pcmd); in rtw_free_cmd_obj() 167 struct cmd_obj *pcmd; in rtw_cmd_thread() local 169 void (*pcmd_callback)(struct adapter *dev, struct cmd_obj *pcmd); in rtw_cmd_thread() 198 pcmd = rtw_dequeue_cmd(&pcmdpriv->cmd_queue); in rtw_cmd_thread() [all …]
|
D | rtw_mlme.c | 1581 struct cmd_obj *pcmd; in rtw_set_auth() local 1586 pcmd = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL); in rtw_set_auth() 1587 if (pcmd == NULL) { in rtw_set_auth() 1594 kfree(pcmd); in rtw_set_auth() 1600 pcmd->cmdcode = _SetAuth_CMD_; in rtw_set_auth() 1601 pcmd->parmbuf = (unsigned char *)psetauthparm; in rtw_set_auth() 1602 pcmd->cmdsz = (sizeof(struct setauth_parm)); in rtw_set_auth() 1603 pcmd->rsp = NULL; in rtw_set_auth() 1604 pcmd->rspsz = 0; in rtw_set_auth() 1605 INIT_LIST_HEAD(&pcmd->list); in rtw_set_auth() [all …]
|
/drivers/staging/rtl8723au/core/ |
D | rtw_cmd.c | 253 void rtw_free_cmd_obj23a(struct cmd_obj *pcmd) in rtw_free_cmd_obj23a() argument 256 if (pcmd->cmdcode != _JoinBss_CMD_ && in rtw_free_cmd_obj23a() 257 pcmd->cmdcode != _CreateBss_CMD_) { in rtw_free_cmd_obj23a() 259 kfree(pcmd->parmbuf); in rtw_free_cmd_obj23a() 262 if (pcmd->rsp) { in rtw_free_cmd_obj23a() 263 if (pcmd->rspsz != 0) { in rtw_free_cmd_obj23a() 265 kfree(pcmd->rsp); in rtw_free_cmd_obj23a() 269 kfree(pcmd); in rtw_free_cmd_obj23a() 275 void (*pcmd_callback)(struct rtw_adapter *dev, struct cmd_obj *pcmd); in rtw_cmd_work() 277 struct cmd_obj *pcmd = container_of(work, struct cmd_obj, work); in rtw_cmd_work() local [all …]
|
D | rtw_mlme.c | 1772 struct cmd_obj *pcmd; in rtw_set_auth23a() local 1777 pcmd = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL); in rtw_set_auth23a() 1778 if (!pcmd) { in rtw_set_auth23a() 1785 kfree(pcmd); in rtw_set_auth23a() 1792 pcmd->cmdcode = _SetAuth_CMD_; in rtw_set_auth23a() 1793 pcmd->parmbuf = (unsigned char *)psetauthparm; in rtw_set_auth23a() 1794 pcmd->cmdsz = (sizeof(struct setauth_parm)); in rtw_set_auth23a() 1795 pcmd->rsp = NULL; in rtw_set_auth23a() 1796 pcmd->rspsz = 0; in rtw_set_auth23a() 1802 res = rtw_enqueue_cmd23a(pcmdpriv, pcmd); in rtw_set_auth23a() [all …]
|
/drivers/scsi/lpfc/ |
D | lpfc_els.c | 157 struct lpfc_dmabuf *pcmd, *prsp, *pbuflist; in lpfc_prep_els_iocb() local 204 pcmd = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_prep_els_iocb() 205 if (pcmd) in lpfc_prep_els_iocb() 206 pcmd->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &pcmd->phys); in lpfc_prep_els_iocb() 207 if (!pcmd || !pcmd->virt) in lpfc_prep_els_iocb() 210 INIT_LIST_HEAD(&pcmd->list); in lpfc_prep_els_iocb() 283 bpl->addrLow = le32_to_cpu(putPaddrLow(pcmd->phys)); in lpfc_prep_els_iocb() 284 bpl->addrHigh = le32_to_cpu(putPaddrHigh(pcmd->phys)); in lpfc_prep_els_iocb() 302 elsiocb->context2 = pcmd; in lpfc_prep_els_iocb() 309 list_add(&prsp->list, &pcmd->list); in lpfc_prep_els_iocb() [all …]
|
D | lpfc_nportdisc.c | 167 struct lpfc_dmabuf *pcmd, *prsp; in lpfc_check_elscmpl_iocb() local 173 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_check_elscmpl_iocb() 178 if (pcmd) { in lpfc_check_elscmpl_iocb() 179 prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, in lpfc_check_elscmpl_iocb() 278 struct lpfc_dmabuf *pcmd; in lpfc_rcv_plogi() local 314 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_rcv_plogi() 315 lp = (uint32_t *) pcmd->virt; in lpfc_rcv_plogi() 519 struct lpfc_dmabuf *pcmd; in lpfc_rcv_padisc() local 528 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_rcv_padisc() 529 lp = (uint32_t *) pcmd->virt; in lpfc_rcv_padisc() [all …]
|
/drivers/scsi/ |
D | tmscsim.c | 442 struct scsi_cmnd *pcmd = pSRB->pcmd; in dc390_pci_map() local 444 dc390_cmd_scp_t* cmdp = ((dc390_cmd_scp_t*)(&pcmd->SCp)); in dc390_pci_map() 448 …pSRB->pSegmentList = dc390_sg_build_single(&pSRB->Segmentx, pcmd->sense_buffer, SCSI_SENSE_BUFFERS… in dc390_pci_map() 456 …DEBUG1(printk("%s(): Mapped sense buffer %p at %x\n", __func__, pcmd->sense_buffer, cmdp->saved_dm… in dc390_pci_map() 458 } else if (scsi_sg_count(pcmd)) { in dc390_pci_map() 461 nseg = scsi_dma_map(pcmd); in dc390_pci_map() 463 pSRB->pSegmentList = scsi_sglist(pcmd); in dc390_pci_map() 470 __func__, scsi_sglist(pcmd), nseg, scsi_sg_count(pcmd))); in dc390_pci_map() 481 struct scsi_cmnd *pcmd = pSRB->pcmd; in dc390_pci_unmap() local 483 DEBUG1(dc390_cmd_scp_t* cmdp = ((dc390_cmd_scp_t*)(&pcmd->SCp))); in dc390_pci_unmap() [all …]
|
/drivers/staging/rtl8188eu/include/ |
D | rtw_cmd.h | 54 #define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) \ argument 56 INIT_LIST_HEAD(&pcmd->list);\ 57 pcmd->cmdcode = code;\ 58 pcmd->parmbuf = (u8 *)(pparm);\ 59 pcmd->cmdsz = sizeof(*pparm);\ 60 pcmd->rsp = NULL;\ 61 pcmd->rspsz = 0;\ 66 void rtw_free_cmd_obj(struct cmd_obj *pcmd); 368 void rtw_survey_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd); 369 void rtw_disassoc_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd); [all …]
|
/drivers/staging/rtl8723au/include/ |
D | rtw_cmd.h | 60 #define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) \ argument 62 pcmd->cmdcode = code;\ 63 pcmd->parmbuf = (u8 *)(pparm);\ 64 pcmd->cmdsz = sizeof (*pparm);\ 65 pcmd->rsp = NULL;\ 66 pcmd->rspsz = 0;\ 95 void rtw_free_cmd_obj23a(struct cmd_obj *pcmd); 727 void rtw_survey_cmd_callback23a(struct rtw_adapter *padapter, struct cmd_obj *pcmd); 728 void rtw_disassoc_cmd23a_callback(struct rtw_adapter *padapter, struct cmd_obj *pcmd); 729 void rtw_joinbss_cmd23a_callback(struct rtw_adapter *padapter, struct cmd_obj *pcmd); [all …]
|
/drivers/scsi/arcmsr/ |
D | arcmsr_hba.c | 968 struct scsi_cmnd *pcmd = ccb->pcmd; in arcmsr_pci_unmap_dma() local 970 scsi_dma_unmap(pcmd); in arcmsr_pci_unmap_dma() 976 struct scsi_cmnd *pcmd = ccb->pcmd; in arcmsr_ccb_complete() local 984 pcmd->scsi_done(pcmd); in arcmsr_ccb_complete() 990 struct scsi_cmnd *pcmd = ccb->pcmd; in arcmsr_report_sense_info() local 991 struct SENSE_DATA *sensebuffer = (struct SENSE_DATA *)pcmd->sense_buffer; in arcmsr_report_sense_info() 992 pcmd->result = DID_OK << 16; in arcmsr_report_sense_info() 1042 id = ccb->pcmd->device->id; in arcmsr_report_ccb_state() 1043 lun = ccb->pcmd->device->lun; in arcmsr_report_ccb_state() 1047 ccb->pcmd->result = DID_OK << 16; in arcmsr_report_ccb_state() [all …]
|
/drivers/net/wireless/rtlwifi/rtl8723com/ |
D | phy_common.c | 283 struct swchnlcmd *pcmd; in rtl8723_phy_set_sw_chnl_cmdarray() local 293 pcmd = cmdtable + cmdtableidx; in rtl8723_phy_set_sw_chnl_cmdarray() 294 pcmd->cmdid = cmdid; in rtl8723_phy_set_sw_chnl_cmdarray() 295 pcmd->para1 = para1; in rtl8723_phy_set_sw_chnl_cmdarray() 296 pcmd->para2 = para2; in rtl8723_phy_set_sw_chnl_cmdarray() 297 pcmd->msdelay = msdelay; in rtl8723_phy_set_sw_chnl_cmdarray()
|
/drivers/misc/ |
D | ioc4.c | 285 uint32_t pcmd; in ioc4_probe() local 351 pci_read_config_dword(idd->idd_pdev, PCI_COMMAND, &pcmd); in ioc4_probe() 353 pcmd | PCI_COMMAND_PARITY | PCI_COMMAND_SERR); in ioc4_probe()
|
/drivers/scsi/bfa/ |
D | bfad_bsg.c | 415 bfad_iocmd_port_cfg_bbcr(struct bfad_s *bfad, unsigned int cmd, void *pcmd) in bfad_iocmd_port_cfg_bbcr() argument 418 (struct bfa_bsg_bbcr_enable_s *)pcmd; in bfad_iocmd_port_cfg_bbcr() 438 bfad_iocmd_port_get_bbcr_attr(struct bfad_s *bfad, void *pcmd) in bfad_iocmd_port_get_bbcr_attr() argument 440 struct bfa_bsg_bbcr_attr_s *iocmd = (struct bfa_bsg_bbcr_attr_s *) pcmd; in bfad_iocmd_port_get_bbcr_attr() 918 bfad_iocmd_qos_set_bw(struct bfad_s *bfad, void *pcmd) in bfad_iocmd_qos_set_bw() argument 920 struct bfa_bsg_qos_bw_s *iocmd = (struct bfa_bsg_qos_bw_s *)pcmd; in bfad_iocmd_qos_set_bw() 931 bfad_iocmd_ratelim(struct bfad_s *bfad, unsigned int cmd, void *pcmd) in bfad_iocmd_ratelim() argument 933 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_ratelim() 960 bfad_iocmd_ratelim_speed(struct bfad_s *bfad, unsigned int cmd, void *pcmd) in bfad_iocmd_ratelim_speed() argument 962 struct bfa_bsg_trl_speed_s *iocmd = (struct bfa_bsg_trl_speed_s *)pcmd; in bfad_iocmd_ratelim_speed() [all …]
|
/drivers/net/wireless/rtlwifi/rtl8192se/ |
D | phy.c | 334 struct swchnlcmd *pcmd; in _rtl92s_phy_set_sw_chnl_cmdarray() local 344 pcmd = cmdtable + cmdtableidx; in _rtl92s_phy_set_sw_chnl_cmdarray() 345 pcmd->cmdid = cmdid; in _rtl92s_phy_set_sw_chnl_cmdarray() 346 pcmd->para1 = para1; in _rtl92s_phy_set_sw_chnl_cmdarray() 347 pcmd->para2 = para2; in _rtl92s_phy_set_sw_chnl_cmdarray() 348 pcmd->msdelay = msdelay; in _rtl92s_phy_set_sw_chnl_cmdarray()
|
/drivers/sn/ |
D | ioc3.c | 607 uint32_t pcmd; in ioc3_probe() local 690 pci_read_config_dword(pdev, PCI_COMMAND, &pcmd); in ioc3_probe() 692 pcmd | PCI_COMMAND_MEMORY | in ioc3_probe()
|