Lines Matching refs:xport

32 	struct rmi_transport_dev xport;
58 static int smb_block_write(struct rmi_transport_dev *xport,
62 container_of(xport, struct rmi_smb_xport, xport);
79 static int rmi_smb_get_command_code(struct rmi_transport_dev *xport,
83 container_of(xport, struct rmi_smb_xport, xport);
114 retval = smb_block_write(xport, i + 0x80, &new_map, sizeof(new_map));
136 static int rmi_smb_write_block(struct rmi_transport_dev *xport, u16 rmiaddr,
142 container_of(xport, struct rmi_smb_xport, xport);
153 retval = rmi_smb_get_command_code(xport, rmiaddr, block_len,
158 retval = smb_block_write(xport, commandcode,
174 static int smb_block_read(struct rmi_transport_dev *xport,
178 container_of(xport, struct rmi_smb_xport, xport);
189 static int rmi_smb_read_block(struct rmi_transport_dev *xport, u16 rmiaddr,
193 container_of(xport, struct rmi_smb_xport, xport);
205 retval = rmi_smb_get_command_code(xport, rmiaddr, block_len,
210 retval = smb_block_read(xport, commandcode,
245 if (rmi_smb->xport.pdata.reset_delay_ms)
246 msleep(rmi_smb->xport.pdata.reset_delay_ms);
265 static int rmi_smb_reset(struct rmi_transport_dev *xport, u16 reset_addr)
268 container_of(xport, struct rmi_smb_xport, xport);
323 rmi_smb->xport.dev = &client->dev;
324 rmi_smb->xport.pdata = *pdata;
325 rmi_smb->xport.pdata.irq = client->irq;
326 rmi_smb->xport.proto_name = "smb";
327 rmi_smb->xport.ops = &rmi_smb_ops;
337 error = rmi_register_transport_device(&rmi_smb->xport);
350 rmi_unregister_transport_device(&rmi_smb->xport);
359 ret = rmi_driver_suspend(rmi_smb->xport.rmi_dev, true);
372 ret = rmi_driver_suspend(rmi_smb->xport.rmi_dev, false);
383 struct rmi_device *rmi_dev = rmi_smb->xport.rmi_dev;
386 rmi_smb_reset(&rmi_smb->xport, 0);
390 ret = rmi_driver_resume(rmi_smb->xport.rmi_dev, true);
403 ret = rmi_driver_resume(rmi_smb->xport.rmi_dev, false);