Searched refs:avail (Results 1 - 25 of 297) sorted by relevance

1234567891011>>

/linux-master/arch/x86/kernel/
H A Dresource.c28 static void remove_e820_regions(struct resource *avail) argument
33 struct resource orig = *avail;
43 resource_clip(avail, e820_start, e820_end);
44 if (orig.start != avail->start || orig.end != avail->end) {
47 if (avail->end > avail->start)
49 * Use %pa instead of %pR because "avail"
54 &avail->start, &avail
60 arch_remove_reservations(struct resource *avail) argument
[all...]
/linux-master/drivers/iio/potentiometer/
H A Dmcp4531.c38 int avail[3]; member in struct:mcp4531_cfg
78 [MCP453x_502] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 5, },
79 [MCP453x_103] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 10, },
80 [MCP453x_503] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 50, },
81 [MCP453x_104] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 100, },
82 [MCP454x_502] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 5, },
83 [MCP454x_103] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 10, },
84 [MCP454x_503] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 50, },
85 [MCP454x_104] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 100, },
86 [MCP455x_502] = { .wipers = 1, .avail
[all...]
H A Dtpl0102.c18 int avail[3]; member in struct:tpl0102_cfg
31 [CAT5140_503] = { .wipers = 1, .avail = { 0, 1, 255 }, .kohms = 50, },
32 [CAT5140_104] = { .wipers = 1, .avail = { 0, 1, 255 }, .kohms = 100, },
34 [TPL0102_104] = { .wipers = 2, .avail = { 0, 1, 255 }, .kohms = 100 },
35 [TPL0401_103] = { .wipers = 1, .avail = { 0, 1, 127 }, .kohms = 10, },
77 *val2 = data->cfg->avail[2] + 1;
93 *length = ARRAY_SIZE(data->cfg->avail);
94 *vals = data->cfg->avail;
111 if (val > data->cfg->avail[2] || val < 0)
H A Dds1803.c36 int avail[3]; member in struct:ds1803_cfg
103 .avail = { 0, 1, 255 },
111 .avail = { 0, 1, 255 },
119 .avail = { 0, 1, 255 },
127 .avail = { 0, 1, 127 },
152 *val2 = data->cfg->avail[2]; /* Max wiper position */
165 int max_pos = data->cfg->avail[2];
191 *vals = data->cfg->avail;
192 *length = ARRAY_SIZE(data->cfg->avail);
/linux-master/arch/x86/events/
H A Dprobe.c21 unsigned long avail = 0; local
58 avail |= BIT(bit);
61 return avail;
/linux-master/net/rds/
H A Dstats.c120 unsigned int avail; local
122 avail = len / sizeof(struct rds_info_counter);
124 if (avail < ARRAY_SIZE(rds_stat_names)) {
125 avail = 0;
138 avail -= ARRAY_SIZE(rds_stat_names);
142 lens->nr = rds_trans_stats_info_copy(iter, avail) +
H A Dtcp_stats.c52 unsigned int avail)
60 if (avail < ARRAY_SIZE(rds_tcp_stat_names))
51 rds_tcp_stats_info_copy(struct rds_info_iterator *iter, unsigned int avail) argument
H A Dib_stats.c85 unsigned int avail)
93 if (avail < ARRAY_SIZE(rds_ib_stat_names))
84 rds_ib_stats_info_copy(struct rds_info_iterator *iter, unsigned int avail) argument
H A Dib_ring.c99 u32 ret = 0, avail; local
101 avail = ring->w_nr - __rds_ib_ring_used(ring);
104 ring->w_alloc_ptr, avail);
106 if (val && avail) {
107 ret = min(val, avail);
H A Dtransport.c145 unsigned int avail)
161 part = trans->stats_info_copy(iter, avail);
162 avail -= min(avail, part);
144 rds_trans_stats_info_copy(struct rds_info_iterator *iter, unsigned int avail) argument
/linux-master/drivers/pci/msi/
H A Dlegacy.c54 int avail = 0; local
61 avail++;
63 return avail ? avail : ret;
/linux-master/tools/virtio/ringtest/
H A Dvirtio_ring_0_9.c55 /* we do not need to track last avail index
103 unsigned avail; local
135 avail = guest.avail_idx++;
136 ring.avail->ring[avail & (ring_size - 1)] =
137 (head | (avail & ~(ring_size - 1))) ^ 0x8000;
142 avail = (ring_size - 1) & (guest.avail_idx++);
143 ring.avail->ring[avail] = head;
148 ring.avail
[all...]
/linux-master/drivers/s390/cio/
H A Dairq.c157 iv->avail = kmalloc(size, GFP_KERNEL);
158 if (!iv->avail)
160 memset(iv->avail, 0xff, size);
187 kfree(iv->avail);
211 kfree(iv->avail);
229 if (!iv->avail || num == 0)
232 bit = find_first_bit_inv(iv->avail, iv->bits);
235 if (!test_bit_inv(bit + i, iv->avail))
240 clear_bit_inv(bit + i, iv->avail);
245 bit = find_next_bit_inv(iv->avail, i
[all...]
/linux-master/drivers/xen/xenbus/
H A Dxenbus_comms.c114 unsigned int avail; local
129 dst = get_output_chunk(cons, prod, intf->req, &avail);
130 if (avail == 0)
132 if (avail > len)
133 avail = len;
135 memcpy(dst, data, avail);
136 data += avail;
137 len -= avail;
138 bytes += avail;
142 intf->req_prod += avail;
165 unsigned int avail; local
[all...]
/linux-master/arch/mips/cavium-octeon/crypto/
H A Docteon-md5.c85 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); local
91 if (avail > len) {
92 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail),
97 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), data,
98 avail);
104 data += avail;
105 len -= avail;
/linux-master/sound/core/
H A Dcompress_offload.c181 struct snd_compr_avail *avail)
183 memset(avail, 0, sizeof(*avail));
184 snd_compr_update_tstamp(stream, &avail->tstamp);
185 /* Still need to return avail even if tstamp can't be filled in */
199 pr_debug("both pointers are same, returning full avail\n");
202 pr_debug("both pointers are same, returning no avail\n");
207 avail->avail = stream->runtime->total_bytes_available -
210 avail
180 snd_compr_calc_avail(struct snd_compr_stream *stream, struct snd_compr_avail *avail) argument
218 struct snd_compr_avail avail; local
227 size_t avail; local
283 size_t avail; local
332 size_t avail; local
388 size_t avail; local
[all...]
/linux-master/arch/powerpc/platforms/powernv/
H A Dopal-msglog.c39 uint32_t out_pos, avail; local
58 avail = be32_to_cpu(mc->obuf_size) - out_pos;
61 conbuf + out_pos, avail);
69 pos -= avail;
/linux-master/fs/squashfs/
H A Dzstd_wrapper.c93 int avail; local
100 avail = min(length, ((int)bvec->bv_len) - offset);
102 length -= avail;
104 in_buf.size = avail;
H A Dzlib_wrapper.c75 int avail; local
83 avail = min(length, ((int)bvec->bv_len) - offset);
85 length -= avail;
87 stream->avail_in = avail;
H A Dlzo_wrapper.c77 int avail = min(bytes, ((int)bvec->bv_len) - offset); local
80 memcpy(buff, data + offset, avail);
81 buff += avail;
82 bytes -= avail;
H A Dlz4_wrapper.c102 int avail = min(bytes, ((int)bvec->bv_len) - offset); local
105 memcpy(buff, data + offset, avail);
106 buff += avail;
107 bytes -= avail;
/linux-master/include/uapi/linux/
H A Dvirtio_ring.h58 /* The Guest uses this in avail->flags to advise the Host: don't interrupt me
84 * at the end of the avail ring. Host should ignore the avail->flags field. */
85 /* The Host publishes the avail index for which it expects a kick
163 vring_avail_t *avail; member in struct:vring
196 #define vring_used_event(vr) ((vr)->avail->ring[(vr)->num])
204 vr->avail = (struct vring_avail *)((char *)p + num * sizeof(struct vring_desc));
205 vr->used = (void *)(((uintptr_t)&vr->avail->ring[num] + sizeof(__virtio16)
/linux-master/arch/arm/boot/compressed/
H A Dmisc.h13 void __fortify_panic(const u8 reason, size_t avail, size_t size);
/linux-master/sound/soc/sof/
H A Dipc4-mtrace.c185 u32 avail; local
191 if (!count || count < sizeof(avail))
197 avail = 0;
198 if (copy_to_user(buffer, &avail, sizeof(avail)))
216 avail = write_ptr - read_ptr;
218 avail = log_buffer_size - read_ptr + write_ptr;
220 if (!avail)
223 if (avail > log_buffer_size)
224 avail
[all...]
/linux-master/drivers/infiniband/hw/qib/
H A Dqib_fs.c148 size_t avail; local
151 avail = dd->f_read_cntrs(dd, *ppos, NULL, &counters);
152 return simple_read_from_buffer(buf, count, ppos, counters, avail);
160 size_t avail; local
163 avail = dd->f_read_cntrs(dd, *ppos, &names, NULL);
164 return simple_read_from_buffer(buf, count, ppos, names, avail);
182 size_t avail; local
185 avail = dd->f_read_portcntrs(dd, *ppos, 0, &names, NULL);
186 return simple_read_from_buffer(buf, count, ppos, names, avail);
194 size_t avail; local
206 size_t avail; local
[all...]

Completed in 456 milliseconds

1234567891011>>