Lines Matching +full:port +full:- +full:specific

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
19 extern int __rio_local_read_config_32(struct rio_mport *port, u32 offset,
21 extern int __rio_local_write_config_32(struct rio_mport *port, u32 offset,
23 extern int __rio_local_read_config_16(struct rio_mport *port, u32 offset,
25 extern int __rio_local_write_config_16(struct rio_mport *port, u32 offset,
27 extern int __rio_local_read_config_8(struct rio_mport *port, u32 offset,
29 extern int __rio_local_write_config_8(struct rio_mport *port, u32 offset,
32 extern int rio_mport_read_config_32(struct rio_mport *port, u16 destid,
34 extern int rio_mport_write_config_32(struct rio_mport *port, u16 destid,
36 extern int rio_mport_read_config_16(struct rio_mport *port, u16 destid,
38 extern int rio_mport_write_config_16(struct rio_mport *port, u16 destid,
40 extern int rio_mport_read_config_8(struct rio_mport *port, u16 destid,
42 extern int rio_mport_write_config_8(struct rio_mport *port, u16 destid,
46 * rio_local_read_config_32 - Read 32 bits from local configuration space
47 * @port: Master port
54 static inline int rio_local_read_config_32(struct rio_mport *port, u32 offset, in rio_local_read_config_32() argument
57 return __rio_local_read_config_32(port, offset, data); in rio_local_read_config_32()
61 * rio_local_write_config_32 - Write 32 bits to local configuration space
62 * @port: Master port
69 static inline int rio_local_write_config_32(struct rio_mport *port, u32 offset, in rio_local_write_config_32() argument
72 return __rio_local_write_config_32(port, offset, data); in rio_local_write_config_32()
76 * rio_local_read_config_16 - Read 16 bits from local configuration space
77 * @port: Master port
84 static inline int rio_local_read_config_16(struct rio_mport *port, u32 offset, in rio_local_read_config_16() argument
87 return __rio_local_read_config_16(port, offset, data); in rio_local_read_config_16()
91 * rio_local_write_config_16 - Write 16 bits to local configuration space
92 * @port: Master port
100 static inline int rio_local_write_config_16(struct rio_mport *port, u32 offset, in rio_local_write_config_16() argument
103 return __rio_local_write_config_16(port, offset, data); in rio_local_write_config_16()
107 * rio_local_read_config_8 - Read 8 bits from local configuration space
108 * @port: Master port
115 static inline int rio_local_read_config_8(struct rio_mport *port, u32 offset, in rio_local_read_config_8() argument
118 return __rio_local_read_config_8(port, offset, data); in rio_local_read_config_8()
122 * rio_local_write_config_8 - Write 8 bits to local configuration space
123 * @port: Master port
130 static inline int rio_local_write_config_8(struct rio_mport *port, u32 offset, in rio_local_write_config_8() argument
133 return __rio_local_write_config_8(port, offset, data); in rio_local_write_config_8()
137 * rio_read_config_32 - Read 32 bits from configuration space
148 return rio_mport_read_config_32(rdev->net->hport, rdev->destid, in rio_read_config_32()
149 rdev->hopcount, offset, data); in rio_read_config_32()
153 * rio_write_config_32 - Write 32 bits to configuration space
164 return rio_mport_write_config_32(rdev->net->hport, rdev->destid, in rio_write_config_32()
165 rdev->hopcount, offset, data); in rio_write_config_32()
169 * rio_read_config_16 - Read 16 bits from configuration space
180 return rio_mport_read_config_16(rdev->net->hport, rdev->destid, in rio_read_config_16()
181 rdev->hopcount, offset, data); in rio_read_config_16()
185 * rio_write_config_16 - Write 16 bits to configuration space
196 return rio_mport_write_config_16(rdev->net->hport, rdev->destid, in rio_write_config_16()
197 rdev->hopcount, offset, data); in rio_write_config_16()
201 * rio_read_config_8 - Read 8 bits from configuration space
211 return rio_mport_read_config_8(rdev->net->hport, rdev->destid, in rio_read_config_8()
212 rdev->hopcount, offset, data); in rio_read_config_8()
216 * rio_write_config_8 - Write 8 bits to configuration space
226 return rio_mport_write_config_8(rdev->net->hport, rdev->destid, in rio_write_config_8()
227 rdev->hopcount, offset, data); in rio_write_config_8()
234 * rio_send_doorbell - Send a doorbell message to a device
239 * has a 16-bit info field provided by the @data argument.
243 return rio_mport_send_doorbell(rdev->net->hport, rdev->destid, data); in rio_send_doorbell()
247 * rio_init_mbox_res - Initialize a RIO mailbox resource
259 res->start = start; in rio_init_mbox_res()
260 res->end = end; in rio_init_mbox_res()
261 res->flags = RIO_RESOURCE_MAILBOX; in rio_init_mbox_res()
265 * rio_init_dbell_res - Initialize a RIO doorbell resource
277 res->start = start; in rio_init_dbell_res()
278 res->end = end; in rio_init_dbell_res()
279 res->flags = RIO_RESOURCE_DOORBELL; in rio_init_dbell_res()
283 * RIO_DEVICE - macro used to describe a specific RIO device
288 * specific device. The assembly vendor and assembly device fields
301 * rio_add_outb_message - Add RIO message to an outbound mailbox queue
302 * @mport: RIO master port containing the outbound queue
315 return mport->ops->add_outb_message(mport, rdev, mbox, in rio_add_outb_message()
324 * rio_add_inb_buffer - Add buffer to an inbound mailbox queue
325 * @mport: Master port containing the inbound mailbox
335 return mport->ops->add_inb_buffer(mport, mbox, buffer); in rio_add_inb_buffer()
339 * rio_get_inb_message - Get A RIO message from an inbound mailbox queue
340 * @mport: Master port containing the inbound mailbox
347 return mport->ops->get_inb_message(mport, mbox); in rio_get_inb_message()
373 /* Port-Write management */
408 * rio_name - Get the unique RIO device identifier
416 return dev_name(&rdev->dev); in rio_name()
420 * rio_get_drvdata - Get RIO driver specific data
423 * Get RIO driver specific data. Returns a pointer to the
424 * driver specific data.
428 return dev_get_drvdata(&rdev->dev); in rio_get_drvdata()
432 * rio_set_drvdata - Set RIO driver specific data
434 * @data: Pointer to driver specific data
436 * Set RIO driver specific data. device struct driver data pointer
441 dev_set_drvdata(&rdev->dev, data); in rio_set_drvdata()
445 extern u16 rio_local_get_device_id(struct rio_mport *port);
446 extern void rio_local_set_device_id(struct rio_mport *port, u16 did);