Lines Matching refs:xport

32 	struct rmi_transport_dev xport;  member
58 static int smb_block_write(struct rmi_transport_dev *xport, in smb_block_write() argument
62 container_of(xport, struct rmi_smb_xport, xport); in smb_block_write()
79 static int rmi_smb_get_command_code(struct rmi_transport_dev *xport, in rmi_smb_get_command_code() argument
83 container_of(xport, struct rmi_smb_xport, xport); in rmi_smb_get_command_code()
114 retval = smb_block_write(xport, i + 0x80, &new_map, sizeof(new_map)); in rmi_smb_get_command_code()
136 static int rmi_smb_write_block(struct rmi_transport_dev *xport, u16 rmiaddr, in rmi_smb_write_block() argument
142 container_of(xport, struct rmi_smb_xport, xport); in rmi_smb_write_block()
153 retval = rmi_smb_get_command_code(xport, rmiaddr, block_len, in rmi_smb_write_block()
158 retval = smb_block_write(xport, commandcode, in rmi_smb_write_block()
174 static int smb_block_read(struct rmi_transport_dev *xport, in smb_block_read() argument
178 container_of(xport, struct rmi_smb_xport, xport); in smb_block_read()
189 static int rmi_smb_read_block(struct rmi_transport_dev *xport, u16 rmiaddr, in rmi_smb_read_block() argument
193 container_of(xport, struct rmi_smb_xport, xport); in rmi_smb_read_block()
205 retval = rmi_smb_get_command_code(xport, rmiaddr, block_len, in rmi_smb_read_block()
210 retval = smb_block_read(xport, commandcode, in rmi_smb_read_block()
248 static int rmi_smb_reset(struct rmi_transport_dev *xport, u16 reset_addr) in rmi_smb_reset() argument
251 container_of(xport, struct rmi_smb_xport, xport); in rmi_smb_reset()
309 rmi_smb->xport.dev = &client->dev; in rmi_smb_probe()
310 rmi_smb->xport.pdata = *pdata; in rmi_smb_probe()
311 rmi_smb->xport.pdata.irq = client->irq; in rmi_smb_probe()
312 rmi_smb->xport.proto_name = "smb"; in rmi_smb_probe()
313 rmi_smb->xport.ops = &rmi_smb_ops; in rmi_smb_probe()
332 error = rmi_register_transport_device(&rmi_smb->xport); in rmi_smb_probe()
345 rmi_unregister_transport_device(&rmi_smb->xport); in rmi_smb_remove()
356 ret = rmi_driver_suspend(rmi_smb->xport.rmi_dev, true); in rmi_smb_suspend()
369 ret = rmi_driver_suspend(rmi_smb->xport.rmi_dev, false); in rmi_smb_runtime_suspend()
380 struct rmi_device *rmi_dev = rmi_smb->xport.rmi_dev; in rmi_smb_resume()
383 rmi_smb_reset(&rmi_smb->xport, 0); in rmi_smb_resume()
387 ret = rmi_driver_resume(rmi_smb->xport.rmi_dev, true); in rmi_smb_resume()
400 ret = rmi_driver_resume(rmi_smb->xport.rmi_dev, false); in rmi_smb_runtime_resume()