/drivers/uwb/i1480/dfu/ |
D | phy.c | 56 struct i1480_evt_confirm *reply = i1480->evt_buf; in i1480_mpi_write() local 64 reply->rceb.bEventType = i1480_CET_VS1; in i1480_mpi_write() 65 reply->rceb.wEvent = i1480_CMD_MPI_WRITE; in i1480_mpi_write() 66 result = i1480_cmd(i1480, "MPI-WRITE", sizeof(*cmd) + size, sizeof(*reply)); in i1480_mpi_write() 69 if (reply->bResultCode != UWB_RC_RES_SUCCESS) { in i1480_mpi_write() 71 reply->bResultCode); in i1480_mpi_write() 104 struct i1480_evt_mpi_read *reply = i1480->evt_buf; in i1480_mpi_read() local 110 BUG_ON(size > (i1480->buf_size - sizeof(*reply)) / 3); in i1480_mpi_read() 119 reply->rceb.bEventType = i1480_CET_VS1; in i1480_mpi_read() 120 reply->rceb.wEvent = i1480_CMD_MPI_READ; in i1480_mpi_read() [all …]
|
/drivers/uwb/ |
D | reset.c | 120 struct uwb_rceb *reply; member 125 struct uwb_rceb *reply, ssize_t reply_size) in uwb_rc_cmd_done() argument 130 if (p->reply) in uwb_rc_cmd_done() 133 p->reply = kmalloc(reply_size, GFP_ATOMIC); in uwb_rc_cmd_done() 135 if (p->reply) in uwb_rc_cmd_done() 136 memcpy(p->reply, reply, reply_size); in uwb_rc_cmd_done() 173 struct uwb_rceb *reply, size_t reply_size, in __uwb_rc_cmd() argument 182 params.reply = reply; in __uwb_rc_cmd() 194 *preply = params.reply; in __uwb_rc_cmd() 229 struct uwb_rceb *reply, size_t reply_size) in uwb_rc_cmd() argument [all …]
|
D | ie.c | 115 struct uwb_rceb *reply = NULL; in uwb_rc_get_ie() local 126 &reply); in uwb_rc_get_ie() 131 get_ie = container_of(reply, struct uwb_rc_evt_get_ie, rceb); in uwb_rc_get_ie() 159 struct uwb_rc_evt_set_ie reply; in uwb_rc_set_ie() local 161 reply.rceb.bEventType = UWB_RC_CET_GENERAL; in uwb_rc_set_ie() 162 reply.rceb.wEvent = UWB_RC_CMD_SET_IE; in uwb_rc_set_ie() 165 &reply.rceb, sizeof(reply)); in uwb_rc_set_ie() 168 else if (result != sizeof(reply)) { in uwb_rc_set_ie() 171 result, sizeof(reply)); in uwb_rc_set_ie() 173 } else if (reply.bResultCode != UWB_RC_RES_SUCCESS) { in uwb_rc_set_ie() [all …]
|
D | scan.c | 63 struct uwb_rc_evt_confirm reply; in uwb_rc_scan() local 75 reply.rceb.bEventType = UWB_RC_CET_GENERAL; in uwb_rc_scan() 76 reply.rceb.wEvent = UWB_RC_CMD_SCAN; in uwb_rc_scan() 78 &reply.rceb, sizeof(reply)); in uwb_rc_scan() 81 if (reply.bResultCode != UWB_RC_RES_SUCCESS) { in uwb_rc_scan() 84 uwb_rc_strerror(reply.bResultCode), reply.bResultCode); in uwb_rc_scan()
|
D | address.c | 61 struct uwb_rc_evt_dev_addr_mgmt *reply) in uwb_rc_dev_addr_mgmt() argument 82 reply->rceb.bEventType = UWB_RC_CET_GENERAL; in uwb_rc_dev_addr_mgmt() 83 reply->rceb.wEvent = UWB_RC_CMD_DEV_ADDR_MGMT; in uwb_rc_dev_addr_mgmt() 86 &reply->rceb, sizeof(*reply)); in uwb_rc_dev_addr_mgmt() 89 if (result < sizeof(*reply)) { in uwb_rc_dev_addr_mgmt() 92 "%d vs %zu bytes needed\n", result, sizeof(*reply)); in uwb_rc_dev_addr_mgmt() 94 } else if (reply->bResultCode != UWB_RC_RES_SUCCESS) { in uwb_rc_dev_addr_mgmt() 97 uwb_rc_strerror(reply->bResultCode), in uwb_rc_dev_addr_mgmt() 98 reply->bResultCode); in uwb_rc_dev_addr_mgmt() 131 struct uwb_rc_evt_dev_addr_mgmt reply; in uwb_rc_addr_set() local [all …]
|
D | beacon.c | 47 struct uwb_rc_evt_confirm reply; in uwb_rc_start_beacon() local 56 reply.rceb.bEventType = UWB_RC_CET_GENERAL; in uwb_rc_start_beacon() 57 reply.rceb.wEvent = UWB_RC_CMD_START_BEACON; in uwb_rc_start_beacon() 59 &reply.rceb, sizeof(reply)); in uwb_rc_start_beacon() 62 if (reply.bResultCode != UWB_RC_RES_SUCCESS) { in uwb_rc_start_beacon() 65 uwb_rc_strerror(reply.bResultCode), reply.bResultCode); in uwb_rc_start_beacon() 77 struct uwb_rc_evt_confirm reply; in uwb_rc_stop_beacon() local 84 reply.rceb.bEventType = UWB_RC_CET_GENERAL; in uwb_rc_stop_beacon() 85 reply.rceb.wEvent = UWB_RC_CMD_STOP_BEACON; in uwb_rc_stop_beacon() 87 &reply.rceb, sizeof(reply)); in uwb_rc_stop_beacon() [all …]
|
/drivers/infiniband/hw/amso1100/ |
D | c2_rnic.c | 127 struct c2wr_rnic_query_rep *reply; in c2_rnic_query() local 150 reply = in c2_rnic_query() 152 if (!reply) in c2_rnic_query() 155 err = c2_errno(reply); in c2_rnic_query() 160 ((u64)be32_to_cpu(reply->fw_ver_major) << 32) | in c2_rnic_query() 161 ((be32_to_cpu(reply->fw_ver_minor) & 0xFFFF) << 16) | in c2_rnic_query() 162 (be32_to_cpu(reply->fw_ver_patch) & 0xFFFF); in c2_rnic_query() 166 props->vendor_id = be32_to_cpu(reply->vendor_id); in c2_rnic_query() 167 props->vendor_part_id = be32_to_cpu(reply->part_number); in c2_rnic_query() 168 props->hw_ver = be32_to_cpu(reply->hw_version); in c2_rnic_query() [all …]
|
D | c2_cm.c | 135 struct c2wr_ep_listen_create_rep *reply; in c2_llp_service_create() local 185 reply = in c2_llp_service_create() 187 if (!reply) { in c2_llp_service_create() 192 if ((err = c2_errno(reply)) != 0) in c2_llp_service_create() 198 cm_id->provider_data = (void*)(unsigned long) reply->ep_handle; in c2_llp_service_create() 203 vq_repbuf_free(c2dev, reply); in c2_llp_service_create() 209 vq_repbuf_free(c2dev, reply); in c2_llp_service_create() 221 struct c2wr_ep_listen_destroy_rep *reply; in c2_llp_service_destroy() local 268 reply=(struct c2wr_ep_listen_destroy_rep *)(unsigned long)vq_req->reply_msg; in c2_llp_service_destroy() 269 if (!reply) { in c2_llp_service_destroy() [all …]
|
D | c2_mm.c | 57 struct c2wr_nsmr_pbl_rep *reply; /* reply ptr */ in send_pbl_messages() local 158 reply = (struct c2wr_nsmr_pbl_rep *) (unsigned long) vq_req->reply_msg; in send_pbl_messages() 159 if (!reply) { in send_pbl_messages() 164 err = c2_errno(reply); in send_pbl_messages() 166 vq_repbuf_free(c2dev, reply); in send_pbl_messages() 181 struct c2wr_nsmr_register_rep *reply; in c2_nsmr_register_phys_kern() local 270 reply = in c2_nsmr_register_phys_kern() 272 if (!reply) { in c2_nsmr_register_phys_kern() 276 if ((err = c2_errno(reply))) { in c2_nsmr_register_phys_kern() 280 mr->ibmr.lkey = mr->ibmr.rkey = be32_to_cpu(reply->stag_index); in c2_nsmr_register_phys_kern() [all …]
|
D | c2_qp.c | 138 struct c2wr_qp_modify_rep *reply; in c2_qp_modify() local 217 reply = (struct c2wr_qp_modify_rep *) (unsigned long) vq_req->reply_msg; in c2_qp_modify() 218 if (!reply) { in c2_qp_modify() 223 err = c2_errno(reply); in c2_qp_modify() 242 vq_repbuf_free(c2dev, reply); in c2_qp_modify() 257 struct c2wr_qp_modify_rep *reply; in c2_qp_set_read_limits() local 288 reply = (struct c2wr_qp_modify_rep *) (unsigned long) in c2_qp_set_read_limits() 290 if (!reply) { in c2_qp_set_read_limits() 295 err = c2_errno(reply); in c2_qp_set_read_limits() 296 vq_repbuf_free(c2dev, reply); in c2_qp_set_read_limits() [all …]
|
D | c2_cq.c | 290 struct c2wr_cq_create_rep *reply; in c2_init_cq() local 339 reply = (struct c2wr_cq_create_rep *) (unsigned long) (vq_req->reply_msg); in c2_init_cq() 340 if (!reply) { in c2_init_cq() 345 if ((err = c2_errno(reply)) != 0) in c2_init_cq() 348 cq->adapter_handle = reply->cq_handle; in c2_init_cq() 349 cq->mq.index = be32_to_cpu(reply->mq_index); in c2_init_cq() 351 peer_pa = c2dev->pa + be32_to_cpu(reply->adapter_shared); in c2_init_cq() 358 vq_repbuf_free(c2dev, reply); in c2_init_cq() 375 vq_repbuf_free(c2dev, reply); in c2_init_cq() 391 struct c2wr_cq_destroy_rep *reply; in c2_free_cq() local [all …]
|
/drivers/s390/crypto/ |
D | zcrypt_msgtype6.c | 381 struct ap_message *reply, in convert_type86_ica() argument 420 struct type86x_reply *msg = reply->message; in convert_type86_ica() 485 struct ap_message *reply, in convert_type86_xcrb() argument 488 struct type86_fmt2_msg *msg = reply->message; in convert_type86_xcrb() 489 char *data = reply->message; in convert_type86_xcrb() 507 struct ap_message *reply, in convert_type86_rng() argument 514 } __packed * msg = reply->message; in convert_type86_rng() 515 char *data = reply->message; in convert_type86_rng() 524 struct ap_message *reply, in convert_response_ica() argument 528 struct type86x_reply *msg = reply->message; in convert_response_ica() [all …]
|
D | zcrypt_pcixcc.c | 172 char *reply; in zcrypt_pcixcc_mcl() local 175 reply = (void *) get_zeroed_page(GFP_KERNEL); in zcrypt_pcixcc_mcl() 176 if (!reply) in zcrypt_pcixcc_mcl() 186 rc = ap_recv(ap_dev->qid, &psmid, reply, 4096); in zcrypt_pcixcc_mcl() 197 cprbx = (struct CPRBX *) (reply + 48); in zcrypt_pcixcc_mcl() 203 free_page((unsigned long) reply); in zcrypt_pcixcc_mcl() 222 } __attribute__((packed)) *reply; in zcrypt_pcixcc_rng_supported() local 250 reply = ap_msg.message; in zcrypt_pcixcc_rng_supported() 251 if (reply->cprbx.ccp_rtcode == 0 && reply->cprbx.ccp_rscode == 0) in zcrypt_pcixcc_rng_supported() 330 ap_dev->reply = &zdev->reply; in zcrypt_pcixcc_probe()
|
D | zcrypt_pcica.c | 192 struct ap_message *reply, in convert_type84() argument 196 struct type84_hdr *t84h = reply->message; in convert_type84() 205 data = reply->message + t84h->len - outputdatalength; in convert_type84() 212 struct ap_message *reply, in convert_response() argument 217 switch (((unsigned char *) reply->message)[1]) { in convert_response() 220 return convert_error(zdev, reply); in convert_response() 222 return convert_type84(zdev, reply, in convert_response() 240 struct ap_message *reply) in zcrypt_pcica_receive() argument 250 if (IS_ERR(reply)) { in zcrypt_pcica_receive() 254 t84h = reply->message; in zcrypt_pcica_receive() [all …]
|
D | zcrypt_pcicc.c | 313 struct ap_message *reply, in convert_type86() argument 352 struct type86_reply *msg = reply->message; in convert_type86() 408 struct ap_message *reply, in convert_response() argument 412 struct type86_reply *msg = reply->message; in convert_response() 418 return convert_error(zdev, reply); in convert_response() 421 return convert_error(zdev, reply); in convert_response() 423 return convert_type86(zdev, reply, in convert_response() 442 struct ap_message *reply) in zcrypt_pcicc_receive() argument 452 if (IS_ERR(reply)) { in zcrypt_pcicc_receive() 456 t86r = reply->message; in zcrypt_pcicc_receive() [all …]
|
/drivers/staging/usbip/userspace/src/ |
D | usbip_attach.c | 124 struct op_import_reply reply; in query_import_device() local 128 memset(&reply, 0, sizeof(reply)); in query_import_device() 154 rc = usbip_net_recv(sockfd, (void *) &reply, sizeof(reply)); in query_import_device() 160 PACK_OP_IMPORT_REPLY(0, &reply); in query_import_device() 163 if (strncmp(reply.udev.busid, busid, SYSFS_BUS_ID_SIZE)) { in query_import_device() 164 err("recv different busid %s", reply.udev.busid); in query_import_device() 169 return import_device(sockfd, &reply.udev); in query_import_device()
|
D | usbip_list.c | 52 struct op_devlist_reply reply; in get_exported_devices() local 71 memset(&reply, 0, sizeof(reply)); in get_exported_devices() 72 rc = usbip_net_recv(sockfd, &reply, sizeof(reply)); in get_exported_devices() 77 PACK_OP_DEVLIST_REPLY(0, &reply); in get_exported_devices() 78 dbg("exportable devices: %d\n", reply.ndev); in get_exported_devices() 80 if (reply.ndev == 0) { in get_exported_devices() 89 for (i = 0; i < reply.ndev; i++) { in get_exported_devices()
|
/drivers/usb/gadget/ |
D | f_mass_storage.c | 1832 int reply = -EINVAL; in do_scsi_command() local 1854 reply = check_command(common, 6, DATA_DIR_TO_HOST, in do_scsi_command() 1857 if (reply == 0) in do_scsi_command() 1858 reply = do_inquiry(common, bh); in do_scsi_command() 1863 reply = check_command(common, 6, DATA_DIR_FROM_HOST, in do_scsi_command() 1866 if (reply == 0) in do_scsi_command() 1867 reply = do_mode_select(common, bh); in do_scsi_command() 1873 reply = check_command(common, 10, DATA_DIR_FROM_HOST, in do_scsi_command() 1876 if (reply == 0) in do_scsi_command() 1877 reply = do_mode_select(common, bh); in do_scsi_command() [all …]
|
/drivers/macintosh/ |
D | via-pmu68k.c | 290 req->reply[0] = ADB_RET_OK; in pmu_send_request() 304 req->reply[0] = CUDA_PACKET; in pmu_send_request() 305 req->reply[1] = 0; in pmu_send_request() 306 req->reply[2] = CUDA_GET_TIME; in pmu_send_request() 317 req->reply[0] = CUDA_PACKET; in pmu_send_request() 318 req->reply[1] = 0; in pmu_send_request() 319 req->reply[2] = CUDA_SET_TIME; in pmu_send_request() 330 req->reply[0] = CUDA_PACKET; in pmu_send_request() 331 req->reply[1] = 0; in pmu_send_request() 332 req->reply[2] = CUDA_GET_PRAM; in pmu_send_request() [all …]
|
D | via-pmu.c | 567 pmu_version = req.reply[0]; in init_pmu() 575 if (req.reply[1] & PMU_PWR_WAKEUP_AC_INSERT) in init_pmu() 605 req.reply[0], PMU_PWR_WAKEUP_AC_INSERT); in pmu_set_server_mode() 609 req.reply[0], PMU_PWR_WAKEUP_AC_INSERT); in pmu_set_server_mode() 644 if (req->reply[0] & 0x01) in done_battery_state_ohare() 661 if (req->reply[0] & 0x04) { in done_battery_state_ohare() 663 if (req->reply[0] & 0x02) in done_battery_state_ohare() 665 vb = (req->reply[1] << 8) | req->reply[2]; in done_battery_state_ohare() 667 amperage = req->reply[5]; in done_battery_state_ohare() 668 if ((req->reply[0] & 0x01) == 0) { in done_battery_state_ohare() [all …]
|
/drivers/media/firewire/ |
D | firedtv-ci.c | 79 struct ca_msg *reply = arg; in fdtv_ca_app_info() local 81 return avc_ca_app_info(fdtv, reply->msg, &reply->length); in fdtv_ca_app_info() 86 struct ca_msg *reply = arg; in fdtv_ca_info() local 88 return avc_ca_info(fdtv, reply->msg, &reply->length); in fdtv_ca_info() 93 struct ca_msg *reply = arg; in fdtv_ca_get_mmi() local 95 return avc_ca_get_mmi(fdtv, reply->msg, &reply->length); in fdtv_ca_get_mmi()
|
/drivers/scsi/qla2xxx/ |
D | qla_bsg.c | 21 bsg_job->reply->result = res; in qla2x00_bsg_job_done() 148 bsg_job->reply->result = DID_OK; in qla24xx_proc_fcp_prio_cfg_cmd() 151 bsg_job->reply->result = (DID_ERROR << 16); in qla24xx_proc_fcp_prio_cfg_cmd() 163 bsg_job->reply->result = DID_OK; in qla24xx_proc_fcp_prio_cfg_cmd() 166 bsg_job->reply->result = (DID_ERROR << 16); in qla24xx_proc_fcp_prio_cfg_cmd() 176 bsg_job->reply->result = (DID_ERROR << 16); in qla24xx_proc_fcp_prio_cfg_cmd() 180 bsg_job->reply->result = DID_OK; in qla24xx_proc_fcp_prio_cfg_cmd() 181 bsg_job->reply->reply_payload_rcv_len = in qla24xx_proc_fcp_prio_cfg_cmd() 192 bsg_job->reply->result = (DID_ERROR << 16); in qla24xx_proc_fcp_prio_cfg_cmd() 203 bsg_job->reply->result = (DID_ERROR << 16); in qla24xx_proc_fcp_prio_cfg_cmd() [all …]
|
/drivers/s390/net/ |
D | lcs.c | 777 lcs_get_reply(struct lcs_reply *reply) in lcs_get_reply() argument 779 WARN_ON(atomic_read(&reply->refcnt) <= 0); in lcs_get_reply() 780 atomic_inc(&reply->refcnt); in lcs_get_reply() 784 lcs_put_reply(struct lcs_reply *reply) in lcs_put_reply() argument 786 WARN_ON(atomic_read(&reply->refcnt) <= 0); in lcs_put_reply() 787 if (atomic_dec_and_test(&reply->refcnt)) { in lcs_put_reply() 788 kfree(reply); in lcs_put_reply() 796 struct lcs_reply *reply; in lcs_alloc_reply() local 800 reply = kzalloc(sizeof(struct lcs_reply), GFP_ATOMIC); in lcs_alloc_reply() 801 if (!reply) in lcs_alloc_reply() [all …]
|
/drivers/usb/storage/ |
D | datafab.c | 232 unsigned char *reply = us->iobuf; in datafab_write_data() local 298 result = datafab_bulk_read(us, reply, 2); in datafab_write_data() 302 if (reply[0] != 0x50 && reply[1] != 0) { in datafab_write_data() 304 reply[0], reply[1]); in datafab_write_data() 398 unsigned char *reply; in datafab_id_device() local 411 reply = kmalloc(512, GFP_NOIO); in datafab_id_device() 412 if (!reply) in datafab_id_device() 425 rc = datafab_bulk_read(us, reply, 512); in datafab_id_device() 429 info->sectors = ((u32)(reply[117]) << 24) | in datafab_id_device() 430 ((u32)(reply[116]) << 16) | in datafab_id_device() [all …]
|
/drivers/misc/mei/ |
D | nfc.c | 198 struct mei_nfc_cmd *cmd, *reply; in mei_nfc_connect() local 218 reply = kzalloc(connect_resp_length, GFP_KERNEL); in mei_nfc_connect() 219 if (!reply) { in mei_nfc_connect() 224 connect_resp = (struct mei_nfc_connect_resp *)reply->data; in mei_nfc_connect() 238 bytes_recv = __mei_cl_recv(cl, (u8 *)reply, connect_resp_length); in mei_nfc_connect() 255 kfree(reply); in mei_nfc_connect() 267 struct mei_nfc_reply *reply = NULL; in mei_nfc_if_version() local 290 reply = kzalloc(if_version_length, GFP_KERNEL); in mei_nfc_if_version() 291 if (!reply) in mei_nfc_if_version() 294 bytes_recv = __mei_cl_recv(cl, (u8 *)reply, if_version_length); in mei_nfc_if_version() [all …]
|