Lines Matching defs:write
110 u8 *virt; /* read/write virtual data, not hw */
111 u8 *write; /* writeable bits */
205 __le32 virt = 0, write = 0;
207 memcpy(&write, perm->write + offset, count);
209 if (!write)
215 if (write & virt) {
220 virt_val &= ~(write & virt);
221 virt_val |= (val & (write & virt));
227 if (write & ~virt) {
236 phys_val &= ~(write & ~virt);
237 phys_val |= (val & (write & ~virt));
324 * Default unassigned regions to raw read-write access. Some devices
342 kfree(perm->write);
344 perm->write = NULL;
351 * ignore whether a read/write exceeds the defined capability
364 perm->write = kzalloc(size, GFP_KERNEL);
365 if (!perm->virt || !perm->write) {
379 static inline void p_setb(struct perm_bits *p, int off, u8 virt, u8 write)
382 p->write[off] = write;
386 static inline void p_setw(struct perm_bits *p, int off, u16 virt, u16 write)
389 *(__le16 *)(&p->write[off]) = cpu_to_le16(write);
393 static inline void p_setd(struct perm_bits *p, int off, u32 virt, u32 write)
396 *(__le32 *)(&p->write[off]) = cpu_to_le32(write);
673 /* No harm to write */
798 * Write through to emulation. If the write includes the upper byte
847 * enable access through the pci_vpd_read/write functions
1158 /* Fixup and write configured queue size and enable to hardware */
1293 * In either case, we'll never let user write them so
1719 * use for read and write. We also allocate a virtualized config
1724 * us from allocating cfg_size buffers for virt and write for every