/drivers/uwb/ |
H A D | scan.c | 54 * USB from the stack. The reply event is copied from an stage buffer, 63 struct uwb_rc_evt_confirm reply; local 75 reply.rceb.bEventType = UWB_RC_CET_GENERAL; 76 reply.rceb.wEvent = UWB_RC_CMD_SCAN; 78 &reply.rceb, sizeof(reply)); 81 if (reply.bResultCode != UWB_RC_RES_SUCCESS) { 84 uwb_rc_strerror(reply.bResultCode), reply.bResultCode);
|
H A D | address.c | 52 * @reply: Pointer to reply buffer (can be stack allocated) 61 struct uwb_rc_evt_dev_addr_mgmt *reply) 82 reply->rceb.bEventType = UWB_RC_CET_GENERAL; 83 reply->rceb.wEvent = UWB_RC_CMD_DEV_ADDR_MGMT; 86 &reply->rceb, sizeof(*reply)); 89 if (result < sizeof(*reply)) { 92 "%d vs %zu bytes needed\n", result, sizeof(*reply)); 94 } else if (reply 59 uwb_rc_dev_addr_mgmt(struct uwb_rc *rc, u8 bmOperationType, const u8 *baAddr, struct uwb_rc_evt_dev_addr_mgmt *reply) argument 131 struct uwb_rc_evt_dev_addr_mgmt reply; local [all...] |
H A D | ie.c | 115 struct uwb_rceb *reply = NULL; local 126 &reply); 131 get_ie = container_of(reply, struct uwb_rc_evt_get_ie, rceb); 159 struct uwb_rc_evt_set_ie reply; local 161 reply.rceb.bEventType = UWB_RC_CET_GENERAL; 162 reply.rceb.wEvent = UWB_RC_CMD_SET_IE; 165 &reply.rceb, sizeof(reply)); 168 else if (result != sizeof(reply)) { 169 dev_err(dev, "SET-IE: not enough data to decode reply " [all...] |
H A D | reset.c | 119 struct uwb_rceb *reply; member in struct:uwb_rc_cmd_done_params 124 struct uwb_rceb *reply, ssize_t reply_size) 129 if (p->reply) 132 p->reply = kmalloc(reply_size, GFP_ATOMIC); 134 if (p->reply) 135 memcpy(p->reply, reply, reply_size); 153 * @reply: Pointer to where to store the reply 154 * @reply_size: @reply' 123 uwb_rc_cmd_done(struct uwb_rc *rc, void *arg, struct uwb_rceb *reply, ssize_t reply_size) argument 170 __uwb_rc_cmd(struct uwb_rc *rc, const char *cmd_name, struct uwb_rccb *cmd, size_t cmd_size, struct uwb_rceb *reply, size_t reply_size, u8 expected_type, u16 expected_event, struct uwb_rceb **preply) argument 226 uwb_rc_cmd(struct uwb_rc *rc, const char *cmd_name, struct uwb_rccb *cmd, size_t cmd_size, struct uwb_rceb *reply, size_t reply_size) argument 293 struct uwb_rc_evt_confirm reply; local [all...] |
/drivers/infiniband/hw/amso1100/ |
H A D | c2_cm.c | 110 * Send WR to adapter. NOTE: There is no synch reply from 135 struct c2wr_ep_listen_create_rep *reply; local 176 * Wait for reply from adapter 183 * Process reply 185 reply = 187 if (!reply) { 192 if ((err = c2_errno(reply)) != 0) 198 cm_id->provider_data = (void*)(unsigned long) reply->ep_handle; 203 vq_repbuf_free(c2dev, reply); 209 vq_repbuf_free(c2dev, reply); 221 struct c2wr_ep_listen_destroy_rep *reply; local 290 struct c2wr_cr_accept_rep *reply; /* VQ Reply msg ptr. */ local 394 struct c2wr_cr_reject_rep *reply; local [all...] |
H A D | c2_vq.c | 44 * adapter has replied, and a copy of the verb reply work request. 47 * in the verbs reply message. The function handle_vq() in the interrupt 49 * 1) append a copy of the verbs reply message 50 * 2) mark that the reply is ready 51 * 3) wake up the kernel verbs handler blocked awaiting the reply. 57 * until the adapter's reply can be processed. The reason we need this is 59 * the verbs work request message, and reflected back in the reply message. 61 * kernel verb handler that is blocked awaiting the verb reply. 64 * getting the reply, then we don't need these refcnts. 69 * does not reply 257 vq_repbuf_free(struct c2_dev *c2dev, void *reply) argument [all...] |
H A D | c2_mm.c | 43 * Wait for the adapter's reply on the last one. 57 struct c2wr_nsmr_pbl_rep *reply; /* reply ptr */ local 81 * Only the last PBL message will generate a reply from the verbs, 83 * handler blocked awaiting this reply. 96 * vq request struct cuz we're gonna wait for a reply. 110 * wait for the reply. 148 * Now wait for the reply... 156 * Process reply 158 reply 181 struct c2wr_nsmr_register_rep *reply; local 320 struct c2wr_stag_dealloc_rep *reply; /* WR reply */ local [all...] |
H A D | c2_rnic.c | 127 struct c2wr_rnic_query_rep *reply; local 150 reply = 152 if (!reply) 155 err = c2_errno(reply); 160 ((u64)be32_to_cpu(reply->fw_ver_major) << 32) | 161 ((be32_to_cpu(reply->fw_ver_minor) & 0xFFFF) << 16) | 162 (be32_to_cpu(reply->fw_ver_patch) & 0xFFFF); 166 props->vendor_id = be32_to_cpu(reply->vendor_id); 167 props->vendor_part_id = be32_to_cpu(reply->part_number); 168 props->hw_ver = be32_to_cpu(reply 216 struct c2wr_rnic_setconfig_rep *reply; local 278 struct c2wr_rnic_setconfig_rep *reply; local 341 struct c2wr_rnic_open_rep *reply; local 395 struct c2wr_rnic_close_rep *reply; local [all...] |
H A D | c2_cq.c | 290 struct c2wr_cq_create_rep *reply; local 339 reply = (struct c2wr_cq_create_rep *) (unsigned long) (vq_req->reply_msg); 340 if (!reply) { 345 if ((err = c2_errno(reply)) != 0) 348 cq->adapter_handle = reply->cq_handle; 349 cq->mq.index = be32_to_cpu(reply->mq_index); 351 peer_pa = c2dev->pa + be32_to_cpu(reply->adapter_shared); 358 vq_repbuf_free(c2dev, reply); 375 vq_repbuf_free(c2dev, reply); 391 struct c2wr_cq_destroy_rep *reply; local [all...] |
/drivers/uwb/i1480/dfu/ |
H A D | dfu.c | 89 * @returns size of the reply data filled in i1480->evt_buf or < 0 errno 96 struct uwb_rceb *reply = i1480->evt_buf; local 98 u16 expected_event = reply->wEvent; 99 u8 expected_type = reply->bEventType; 122 dev_err(i1480->dev, "%s: command reply reception failed: %zd\n",
|
H A D | phy.c | 56 struct i1480_evt_confirm *reply = i1480->evt_buf; local 64 reply->rceb.bEventType = i1480_CET_VS1; 65 reply->rceb.wEvent = i1480_CMD_MPI_WRITE; 66 result = i1480_cmd(i1480, "MPI-WRITE", sizeof(*cmd) + size, sizeof(*reply)); 69 if (reply->bResultCode != UWB_RC_RES_SUCCESS) { 71 reply->bResultCode); 94 * We use the i1480->cmd_buf for the command, i1480->evt_buf for the reply. 96 * As the reply has to fit in 512 bytes (i1480->evt_buffer), the max amount 97 * of values we can read is (512 - sizeof(*reply)) / 3 104 struct i1480_evt_mpi_read *reply local [all...] |
/drivers/staging/usbip/userspace/src/ |
H A D | usbip_attach.c | 113 struct op_import_reply reply; local 117 memset(&reply, 0, sizeof(reply)); 136 /* recieve a reply */ 143 rc = usbip_net_recv(sockfd, (void *) &reply, sizeof(reply)); 149 PACK_OP_IMPORT_REPLY(0, &reply); 151 /* check the reply */ 152 if (strncmp(reply.udev.busid, busid, SYSFS_BUS_ID_SIZE)) { 153 err("recv different busid %s", reply [all...] |
H A D | usbip_list.c | 52 struct op_devlist_reply reply; local 71 memset(&reply, 0, sizeof(reply)); 72 rc = usbip_net_recv(sockfd, &reply, sizeof(reply)); 77 PACK_OP_DEVLIST_REPLY(0, &reply); 78 dbg("exportable devices: %d\n", reply.ndev); 80 if (reply.ndev == 0) { 89 for (i = 0; i < reply.ndev; i++) {
|
H A D | usbipd.c | 77 struct op_common reply; local 85 memset(&reply, 0, sizeof(reply)); 147 struct op_devlist_reply reply; local 151 reply.ndev = 0; 155 reply.ndev += 1; 157 info("exportable devices: %d", reply.ndev); 164 PACK_OP_DEVLIST_REPLY(1, &reply); 166 rc = usbip_net_send(connfd, &reply, sizeof(reply)); [all...] |
/drivers/media/dvb/firewire/ |
H A D | firedtv-ci.c | 79 struct ca_msg *reply = arg; local 81 return avc_ca_app_info(fdtv, reply->msg, &reply->length); 86 struct ca_msg *reply = arg; local 88 return avc_ca_info(fdtv, reply->msg, &reply->length); 93 struct ca_msg *reply = arg; local 95 return avc_ca_get_mmi(fdtv, reply->msg, &reply->length);
|
/drivers/media/dvb/dvb-usb/ |
H A D | ec168.c | 308 u8 reply; local 309 struct ec168_req req = {GET_CONFIG, 0, 1, sizeof(reply), &reply}; 316 deb_info("%s: reply:%02x\n", __func__, reply); 318 if (reply == 0x01)
|
/drivers/net/usb/ |
H A D | cx82310_eth.c | 61 * - optionally wait for the reply 62 * - optionally read some data from the reply 64 static int cx82310_cmd(struct usbnet *dev, enum cx82310_cmd cmd, bool reply, argument 88 if (reply) { 89 /* wait for reply, retry if it's empty */ 96 "reply receive error %d\n", ret); 103 dev_err(&dev->udev->dev, "no reply to command %#x\n", 110 "got reply to command %#x, expected: %#x\n",
|
H A D | rndis_host.c | 173 "rndis reply status %08x\n", 178 "rndis reply id %d expected %d\n", 226 * specified by @in_len. If @reply_len is not set to -1 then the reply 240 void **reply, int *reply_len) 275 *reply = (unsigned char *) &u.get_c->request_id + off; 238 rndis_query(struct usbnet *dev, struct usb_interface *intf, void *buf, __le32 oid, u32 in_len, void **reply, int *reply_len) argument
|
/drivers/s390/crypto/ |
H A D | zcrypt_api.h | 111 struct ap_message reply; /* Per-device reply structure. */ member in struct:zcrypt_device
|
H A D | zcrypt_cex2a.c | 243 * Copy results from a type 80 reply message back to user space. 246 * @reply: reply AP message. 253 struct ap_message *reply, 257 struct type80_hdr *t80h = reply->message; 269 data = reply->message + t80h->len - outputdatalength; 276 struct ap_message *reply, 281 switch (((unsigned char *) reply->message)[1]) { 284 return convert_error(zdev, reply); 286 return convert_type80(zdev, reply, 252 convert_type80(struct zcrypt_device *zdev, struct ap_message *reply, char __user *outputdata, unsigned int outputdatalength) argument 275 convert_response(struct zcrypt_device *zdev, struct ap_message *reply, char __user *outputdata, unsigned int outputdatalength) argument 302 zcrypt_cex2a_receive(struct ap_device *ap_dev, struct ap_message *msg, struct ap_message *reply) argument [all...] |
H A D | zcrypt_error.h | 36 * Error reply messages are of two types: 41 * Request reply messages are of three known types: 51 unsigned char reply_code; /* reply code */ 91 struct ap_message *reply) 93 struct error_hdr *ehdr = reply->message; 90 convert_error(struct zcrypt_device *zdev, struct ap_message *reply) argument
|
H A D | zcrypt_pcica.c | 187 * Copy results from a type 84 reply message back to user space. 190 * @reply: reply AP message. 197 struct ap_message *reply, 201 struct type84_hdr *t84h = reply->message; 210 data = reply->message + t84h->len - outputdatalength; 217 struct ap_message *reply, 222 switch (((unsigned char *) reply->message)[1]) { 225 return convert_error(zdev, reply); 227 return convert_type84(zdev, reply, 196 convert_type84(struct zcrypt_device *zdev, struct ap_message *reply, char __user *outputdata, unsigned int outputdatalength) argument 216 convert_response(struct zcrypt_device *zdev, struct ap_message *reply, char __user *outputdata, unsigned int outputdatalength) argument 243 zcrypt_pcica_receive(struct ap_device *ap_dev, struct ap_message *msg, struct ap_message *reply) argument [all...] |
H A D | zcrypt_pcicc.c | 59 #define PCICC_MAX_RESPONSE_SIZE 0x710 /* max size type86 v1 reply */ 299 * Copy results from a type 86 reply message back to user space. 302 * @reply: reply AP message. 318 struct ap_message *reply, 357 struct type86_reply *msg = reply->message; 413 struct ap_message *reply, 417 struct type86_reply *msg = reply->message; 423 return convert_error(zdev, reply); 426 return convert_error(zdev, reply); 317 convert_type86(struct zcrypt_device *zdev, struct ap_message *reply, char __user *outputdata, unsigned int outputdatalength) argument 412 convert_response(struct zcrypt_device *zdev, struct ap_message *reply, char __user *outputdata, unsigned int outputdatalength) argument 445 zcrypt_pcicc_receive(struct ap_device *ap_dev, struct ap_message *msg, struct ap_message *reply) argument [all...] |
/drivers/scsi/aacraid/ |
H A D | commctrl.c | 473 struct aac_srb_reply* reply; local 803 reply = (struct aac_srb_reply *) fib_data(srbfib); 804 if(copy_to_user(user_reply,reply,sizeof(struct aac_srb_reply))){ 805 dprintk((KERN_DEBUG"aacraid: Could not copy reply to user\n"));
|
/drivers/usb/storage/ |
H A D | datafab.c | 232 unsigned char *reply = us->iobuf; local 298 result = datafab_bulk_read(us, reply, 2); 302 if (reply[0] != 0x50 && reply[1] != 0) { 305 reply[0], reply[1]); 399 unsigned char *reply; local 412 reply = kmalloc(512, GFP_NOIO); 413 if (!reply) 426 rc = datafab_bulk_read(us, reply, 51 [all...] |