Lines Matching +full:data +full:- +full:bits

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
20 u32 * data);
22 u32 data);
24 u16 * data);
26 u16 data);
28 u8 * data);
30 u8 data);
33 u8 hopcount, u32 offset, u32 * data);
35 u8 hopcount, u32 offset, u32 data);
37 u8 hopcount, u32 offset, u16 * data);
39 u8 hopcount, u32 offset, u16 data);
41 u8 hopcount, u32 offset, u8 * data);
43 u8 hopcount, u32 offset, u8 data);
46 * rio_local_read_config_32 - Read 32 bits from local configuration space
49 * @data: Pointer to read data into
51 * Reads 32 bits of data from the specified offset within the local
55 u32 * data) 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
64 * @data: Data to be written
66 * Writes 32 bits of data to the specified offset within the local
70 u32 data) 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
79 * @data: Pointer to read data into
81 * Reads 16 bits of data from the specified offset within the local
85 u16 * data) 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
94 * @data: Data to be written
96 * Writes 16 bits of data to the specified offset within the local
101 u16 data) 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
110 * @data: Pointer to read data into
112 * Reads 8 bits of data from the specified offset within the local
116 u8 * data) 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
125 * @data: Data to be written
127 * Writes 8 bits of data to the specified offset within the local
131 u8 data) 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
140 * @data: Pointer to read data into
142 * Reads 32 bits of data from the specified offset within the
146 u32 * data) in rio_read_config_32() argument
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
156 * @data: Data to be written
158 * Writes 32 bits of data to the specified offset within the
162 u32 data) in rio_write_config_32() argument
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
172 * @data: Pointer to read data into
174 * Reads 16 bits of data from the specified offset within the
178 u16 * data) in rio_read_config_16() argument
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
188 * @data: Data to be written
190 * Writes 16 bits of data to the specified offset within the
194 u16 data) in rio_write_config_16() argument
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
204 * @data: Pointer to read data into
206 * Reads 8 bits of data from the specified offset within the
209 static inline int rio_read_config_8(struct rio_dev *rdev, u32 offset, u8 * data) in rio_read_config_8() argument
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
219 * @data: Data to be written
221 * Writes 8 bits of data to the specified offset within the
224 static inline int rio_write_config_8(struct rio_dev *rdev, u32 offset, u8 data) in rio_write_config_8() argument
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()
231 u16 data);
234 * rio_send_doorbell - Send a doorbell message to a device
236 * @data: Doorbell message data
239 * has a 16-bit info field provided by the @data argument.
241 static inline int rio_send_doorbell(struct rio_dev *rdev, u16 data) in rio_send_doorbell() 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
301 * rio_add_outb_message - Add RIO message to an outbound mailbox 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
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
347 return mport->ops->get_inb_message(mport, mbox); in rio_get_inb_message()
373 /* Port-Write management */
399 struct rio_dma_data *data,
403 struct rio_dma_data *data,
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
437 * is set to the @data argument.
439 static inline void rio_set_drvdata(struct rio_dev *rdev, void *data) in rio_set_drvdata() argument
441 dev_set_drvdata(&rdev->dev, data); in rio_set_drvdata()