Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 470) sorted by relevance

12345678910>>...19

/drivers/md/bcache/
Dextents.c32 i->k = bkey_next(i->k); in sort_key_next()
34 if (i->k == i->end) in sort_key_next()
41 int64_t c = bkey_cmp(l.k, r.k); in bch_key_sort_cmp()
43 return c ? c > 0 : l.k < r.k; in bch_key_sort_cmp()
46 static bool __ptr_invalid(struct cache_set *c, const struct bkey *k) in __ptr_invalid() argument
50 for (i = 0; i < KEY_PTRS(k); i++) in __ptr_invalid()
51 if (ptr_available(c, k, i)) { in __ptr_invalid()
52 struct cache *ca = PTR_CACHE(c, k, i); in __ptr_invalid()
53 size_t bucket = PTR_BUCKET_NR(c, k, i); in __ptr_invalid()
54 size_t r = bucket_remainder(c, PTR_OFFSET(k, i)); in __ptr_invalid()
[all …]
Dbset.c21 struct bkey *k, *next; in bch_dump_bset() local
23 for (k = i->start; k < bset_bkey_last(i); k = next) { in bch_dump_bset()
24 next = bkey_next(k); in bch_dump_bset()
27 (unsigned) ((u64 *) k - i->d), i->keys); in bch_dump_bset()
30 b->ops->key_dump(b, k); in bch_dump_bset()
32 printk("%llu:%llu\n", KEY_INODE(k), KEY_OFFSET(k)); in bch_dump_bset()
35 bkey_cmp(k, b->ops->is_extents ? in bch_dump_bset()
56 struct bkey *k; in __bch_count_data() local
59 for_each_key(b, k, &iter) in __bch_count_data()
60 ret += KEY_SIZE(k); in __bch_count_data()
[all …]
Dbset.h236 static inline bool bkey_written(struct btree_keys *b, struct bkey *k) in bkey_written() argument
238 return !b->last_set_unwritten || k < b->set[b->nsets].data->start; in bkey_written()
251 #define __set_bytes(i, k) (sizeof(*(i)) + (k) * sizeof(uint64_t)) argument
254 #define __set_blocks(i, k, block_bytes) \ argument
255 DIV_ROUND_UP(__set_bytes(i, k), block_bytes)
311 struct bkey *k, *end; member
338 #define for_each_key_filter(b, k, iter, filter) \ argument
340 ((k) = bch_btree_iter_next_filter((iter), (b), filter));)
342 #define for_each_key(b, k, iter) \ argument
344 ((k) = bch_btree_iter_next(iter));)
[all …]
/drivers/block/paride/
Depat.c99 { int k, ph, a, b; in epat_read_block() local
105 for(k=0;k<count;k++) { in epat_read_block()
106 if (k == count-1) w0(0xfd); in epat_read_block()
110 buf[k] = j44(a,b); in epat_read_block()
118 for(k=0;k<count;k++) { in epat_read_block()
119 if (k == count-1) w0(0xfd); in epat_read_block()
122 buf[k] = j53(a,b); in epat_read_block()
130 for(k=0;k<count-1;k++) { in epat_read_block()
132 buf[k] = r0(); in epat_read_block()
140 for(k=0;k<count-1;k++) buf[k] = r4(); in epat_read_block()
[all …]
Depia.c138 { int k, ph, a, b; in epia_read_block() local
144 for (k=0;k<count;k++) { in epia_read_block()
147 buf[k] = j44(a,b); in epia_read_block()
156 for (k=0;k<count;k++) { in epia_read_block()
159 buf[k] = j53(a,b); in epia_read_block()
167 for (k=0;k<count;k++) { in epia_read_block()
169 buf[k] = r0(); in epia_read_block()
177 for (k=0;k<count;k++) buf[k] = r4(); in epia_read_block()
183 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in epia_read_block()
189 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in epia_read_block()
[all …]
Dfriq.c79 { int h, l, k, ph; in friq_read_block_int() local
84 for (k=0;k<count;k++) { in friq_read_block_int()
87 buf[k] = j44(l,h); in friq_read_block_int()
95 for (k=0;k<count;k++) { in friq_read_block_int()
97 buf[k] = r0(); in friq_read_block_int()
104 for (k=0;k<count-2;k++) buf[k] = r4(); in friq_read_block_int()
112 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); in friq_read_block_int()
120 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); in friq_read_block_int()
139 { int k; in friq_write_block() local
145 for (k=0;k<count;k++) { in friq_write_block()
[all …]
Dfrpw.c76 { int h, l, k, ph; in frpw_read_block_int() local
81 for (k=0;k<count;k++) { in frpw_read_block_int()
84 buf[k] = j44(l,h); in frpw_read_block_int()
92 for (k=0;k<count;k++) { in frpw_read_block_int()
94 buf[k] = r0(); in frpw_read_block_int()
101 for (k=0;k<count;k++) buf[k] = r4(); in frpw_read_block_int()
107 for (k=0;k<count-2;k++) buf[k] = r4(); in frpw_read_block_int()
115 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); in frpw_read_block_int()
123 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); in frpw_read_block_int()
142 { int k; in frpw_write_block() local
[all …]
Ddstr.c117 { int k, a, b; in dstr_read_block() local
125 case 0: for (k=0;k<count;k++) { in dstr_read_block()
128 buf[k] = j44(a,b); in dstr_read_block()
133 for (k=0;k<count;k++) { in dstr_read_block()
134 w2(0x26); buf[k] = r0(); w2(0x24); in dstr_read_block()
140 for (k=0;k<count;k++) buf[k] = r4(); in dstr_read_block()
145 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in dstr_read_block()
150 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in dstr_read_block()
159 { int k; in dstr_write_block() local
168 case 1: for (k=0;k<count;k++) { in dstr_write_block()
[all …]
Dkbic.c136 { int k, a, b; in kbic_read_block() local
141 for (k=0;k<count/2;k++) { in kbic_read_block()
144 buf[2*k] = j44(a,b); in kbic_read_block()
147 buf[2*k+1] = j44(a,b); in kbic_read_block()
153 for (k=0;k<count/4;k++) { in kbic_read_block()
156 w0(8); buf[4*k] = j53(r12w()); in kbic_read_block()
157 w0(0xb8); buf[4*k+1] = j53(r12w()); in kbic_read_block()
159 buf[4*k+3] = j53(r12w()); in kbic_read_block()
160 w0(8); buf[4*k+2] = j53(r12w()); in kbic_read_block()
166 for (k=0;k<count/2;k++) { in kbic_read_block()
[all …]
Don26.c188 { int k, a, b; in on26_read_block() local
194 for (k=0;k<count;k++) { in on26_read_block()
197 buf[k] = j44(a,b); in on26_read_block()
204 for (k=0;k<count/2;k++) { in on26_read_block()
205 w2(0x26); buf[2*k] = r0(); in on26_read_block()
206 w2(0x24); buf[2*k+1] = r0(); in on26_read_block()
214 for (k=0;k<count;k++) buf[k] = r4(); in on26_read_block()
221 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in on26_read_block()
228 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in on26_read_block()
237 { int k; in on26_write_block() local
[all …]
Dfit3.c97 { int k, a, b, c, d; in fit3_read_block() local
102 for (k=0;k<count/2;k++) { in fit3_read_block()
107 buf[2*k ] = j44(a,b); in fit3_read_block()
108 buf[2*k+1] = j44(c,d); in fit3_read_block()
115 for (k=0;k<count/2;k++) { in fit3_read_block()
118 buf[2*k ] = a; in fit3_read_block()
119 buf[2*k+1] = b; in fit3_read_block()
127 for (k=0;k<count;k++) buf[k] = r4(); in fit3_read_block()
136 { int k; in fit3_write_block() local
142 for (k=0;k<count/2;k++) { in fit3_write_block()
[all …]
Daten.c72 { int k, a, b, c, d; in aten_read_block() local
77 for (k=0;k<count/2;k++) { in aten_read_block()
81 buf[2*k] = j44(c,d); in aten_read_block()
82 buf[2*k+1] = j44(a,b); in aten_read_block()
88 for (k=0;k<count/2;k++) { in aten_read_block()
91 buf[2*k] = b; buf[2*k+1] = a; in aten_read_block()
100 { int k; in aten_write_block() local
103 for (k=0;k<count/2;k++) { in aten_write_block()
104 w0(buf[2*k+1]); w2(0xe); w2(6); in aten_write_block()
105 w0(buf[2*k]); w2(7); w2(6); in aten_write_block()
Dcomm.c151 { int k; in comm_write_block() local
157 for (k=0;k<count;k++) { in comm_write_block()
158 w2(5); w0(buf[k^1]); w2(7); in comm_write_block()
164 for (k=0;k<count;k++) w4(buf[k^1]); in comm_write_block()
168 for (k=0;k<count/2;k++) w4w(pi_swab16(buf,k)); in comm_write_block()
172 for (k=0;k<count/4;k++) w4l(pi_swab32(buf,k)); in comm_write_block()
/drivers/net/ethernet/neterion/vxge/
Dvxge-ethtool.c225 int j, k; in vxge_get_ethtool_stats() local
291 for (k = 0; k < vdev->no_of_vpath; k++) { in vxge_get_ethtool_stats()
294 vpath = &vdev->vpaths[k]; in vxge_get_ethtool_stats()
368 for (k = 0; k < vdev->max_config_port; k++) { in vxge_get_ethtool_stats()
369 *ptr++ = xmac_stats->aggr_stats[k].tx_frms; in vxge_get_ethtool_stats()
370 *ptr++ = xmac_stats->aggr_stats[k].tx_data_octets; in vxge_get_ethtool_stats()
371 *ptr++ = xmac_stats->aggr_stats[k].tx_mcast_frms; in vxge_get_ethtool_stats()
372 *ptr++ = xmac_stats->aggr_stats[k].tx_bcast_frms; in vxge_get_ethtool_stats()
373 *ptr++ = xmac_stats->aggr_stats[k].tx_discarded_frms; in vxge_get_ethtool_stats()
374 *ptr++ = xmac_stats->aggr_stats[k].tx_errored_frms; in vxge_get_ethtool_stats()
[all …]
/drivers/staging/wlan-ng/
Dp80211wep.c149 u32 i, j, k, crc, keylen; in wep_decrypt() local
193 for (k = 0; k < len; k++) { in wep_decrypt()
197 buf[k] ^= s[(s[i] + s[j]) & 0xff]; in wep_decrypt()
198 crc = wep_crc32_table[(crc ^ buf[k]) & 0xff] ^ (crc >> 8); in wep_decrypt()
208 for (k = 0; k < 4; k++) { in wep_decrypt()
212 if ((c_crc[k] ^ s[(s[i] + s[j]) & 0xff]) != icv[k]) in wep_decrypt()
213 return -(4 | (k << 4)); /* ICV mismatch */ in wep_decrypt()
223 u32 i, j, k, crc, keylen; in wep_encrypt() local
266 for (k = 0; k < len; k++) { in wep_encrypt()
267 crc = wep_crc32_table[(crc ^ buf[k]) & 0xff] ^ (crc >> 8); in wep_encrypt()
[all …]
/drivers/irqchip/
Dirq-renesas-intc-irqpin.c325 int k; in intc_irqpin_shared_irq_handler() local
327 for (k = 0; k < 8; k++) { in intc_irqpin_shared_irq_handler()
328 if (reg_source & BIT(7 - k)) { in intc_irqpin_shared_irq_handler()
329 if (BIT(k) & p->shared_irq_mask) in intc_irqpin_shared_irq_handler()
332 status |= intc_irqpin_irq_handler(irq, &p->irq[k]); in intc_irqpin_shared_irq_handler()
407 int k; in intc_irqpin_probe() local
446 for (k = 0; k < INTC_IRQPIN_REG_NR; k++) { in intc_irqpin_probe()
447 io[k] = platform_get_resource(pdev, IORESOURCE_MEM, k); in intc_irqpin_probe()
448 if (!io[k] && k < INTC_IRQPIN_REG_NR_MANDATORY) { in intc_irqpin_probe()
456 for (k = 0; k < INTC_IRQPIN_MAX; k++) { in intc_irqpin_probe()
[all …]
Dirq-renesas-irqc.c150 int k; in irqc_probe() local
180 for (k = 0; k < IRQC_IRQ_MAX; k++) { in irqc_probe()
181 irq = platform_get_resource(pdev, IORESOURCE_IRQ, k); in irqc_probe()
185 p->irq[k].p = p; in irqc_probe()
186 p->irq[k].hw_irq = k; in irqc_probe()
187 p->irq[k].requested_irq = irq->start; in irqc_probe()
190 p->number_of_irqs = k; in irqc_probe()
235 for (k = 0; k < p->number_of_irqs; k++) { in irqc_probe()
236 if (request_irq(p->irq[k].requested_irq, irqc_irq_handler, in irqc_probe()
237 0, name, &p->irq[k])) { in irqc_probe()
[all …]
/drivers/spi/
Dspi-sh-msiof.c213 int k; in sh_msiof_modify_ctr_wait() local
220 for (k = 100; k > 0; k--) { in sh_msiof_modify_ctr_wait()
227 return k > 0 ? 0 : -ETIMEDOUT; in sh_msiof_modify_ctr_wait()
258 size_t k; in sh_msiof_spi_set_clk_regs() local
263 for (k = 0; k < ARRAY_SIZE(sh_msiof_spi_div_table); k++) { in sh_msiof_spi_set_clk_regs()
264 brps = DIV_ROUND_UP(div, sh_msiof_spi_div_table[k].div); in sh_msiof_spi_set_clk_regs()
266 if (sh_msiof_spi_div_table[k].div == 1 && brps > 2) in sh_msiof_spi_set_clk_regs()
272 k = min_t(int, k, ARRAY_SIZE(sh_msiof_spi_div_table) - 1); in sh_msiof_spi_set_clk_regs()
274 scr = sh_msiof_spi_div_table[k].brdv | SCR_BRPS(brps); in sh_msiof_spi_set_clk_regs()
383 int k; in sh_msiof_spi_write_fifo_8() local
[all …]
/drivers/net/ethernet/ibm/ehea/
Dehea_ethtool.c231 int i, k, tmp; in ehea_get_ethtool_stats() local
242 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
243 tmp += port->port_res[k].p_stats.poll_receive_errors; in ehea_get_ethtool_stats()
246 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
247 tmp += port->port_res[k].p_stats.err_tcp_cksum; in ehea_get_ethtool_stats()
250 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
251 tmp += port->port_res[k].p_stats.err_ip_cksum; in ehea_get_ethtool_stats()
254 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
255 tmp += port->port_res[k].p_stats.err_frame_crc; in ehea_get_ethtool_stats()
258 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
[all …]
/drivers/clk/sunxi-ng/
Dccu_nk.c19 unsigned int *n, unsigned int *k) in ccu_nk_find_best() argument
40 *k = best_k; in ccu_nk_find_best()
69 unsigned long rate, n, k; in ccu_nk_recalc_rate() local
77 k = reg >> nk->k.shift; in ccu_nk_recalc_rate()
78 k &= (1 << nk->k.width) - 1; in ccu_nk_recalc_rate()
80 rate = parent_rate * (n + 1) * (k + 1); in ccu_nk_recalc_rate()
92 unsigned int n, k; in ccu_nk_round_rate() local
98 1 << nk->n.width, 1 << nk->k.width, in ccu_nk_round_rate()
99 &n, &k); in ccu_nk_round_rate()
101 rate = *parent_rate * n * k; in ccu_nk_round_rate()
[all …]
/drivers/scsi/
Datp870u.c124 unsigned long adrcnt, k; in atp870u_intr_handle() local
151 for (k=0; k < 1000; k++) { in atp870u_intr_handle()
199 k = dev->id[c][target_id].last_len; in atp870u_intr_handle()
200 k -= adrcnt; in atp870u_intr_handle()
201 dev->id[c][target_id].tran_len = k; in atp870u_intr_handle()
253 k = dev->id[c][target_id].last_len; in atp870u_intr_handle()
254 k -= adrcnt; in atp870u_intr_handle()
255 dev->id[c][target_id].tran_len = k; in atp870u_intr_handle()
291 k = dev->id[c][target_id].last_len; in atp870u_intr_handle()
292 k -= adrcnt; in atp870u_intr_handle()
[all …]
/drivers/input/joystick/
Dtmdc.c150 int i[2], j[2], t[2], p, k; in tmdc_read_packet() local
154 for (k = 0; k < 2; k++) { in tmdc_read_packet()
155 t[k] = gameport_time(gameport, TMDC_MAX_START); in tmdc_read_packet()
156 i[k] = j[k] = 0; in tmdc_read_packet()
168 for (k = 0, v = w, u = x; k < 2; k++, v >>= 2, u >>= 2) { in tmdc_read_packet()
170 if (t[k] <= 0 || i[k] >= TMDC_MAX_LENGTH) continue; in tmdc_read_packet()
171 t[k] = p; in tmdc_read_packet()
172 if (j[k] == 0) { /* Start bit */ in tmdc_read_packet()
173 if (~v & 1) t[k] = 0; in tmdc_read_packet()
174 data[k][i[k]] = 0; j[k]++; continue; in tmdc_read_packet()
[all …]
/drivers/sh/intc/
Dcore.c184 unsigned int i, k, smp; in register_intc_controller() local
211 for (k = 0; k < d->nr_windows; k++) { in register_intc_controller()
212 res = desc->resource + k; in register_intc_controller()
214 d->window[k].phys = res->start; in register_intc_controller()
215 d->window[k].size = resource_size(res); in register_intc_controller()
216 d->window[k].virt = ioremap_nocache(res->start, in register_intc_controller()
218 if (!d->window[k].virt) in register_intc_controller()
242 k = 0; in register_intc_controller()
247 k += save_reg(d, k, hw->mask_regs[i].set_reg, smp); in register_intc_controller()
248 k += save_reg(d, k, hw->mask_regs[i].clr_reg, smp); in register_intc_controller()
[all …]
/drivers/hwmon/
Dads1015.c168 int k; in ads1015_remove() local
171 for (k = 0; k < ADS1015_CHANNELS; ++k) in ads1015_remove()
172 device_remove_file(&client->dev, &ads1015_in[k].dev_attr); in ads1015_remove()
236 unsigned int k; in ads1015_get_channels_config() local
253 for (k = 0; k < ADS1015_CHANNELS; ++k) { in ads1015_get_channels_config()
254 data->channel_data[k].enabled = true; in ads1015_get_channels_config()
255 data->channel_data[k].pga = ADS1015_DEFAULT_PGA; in ads1015_get_channels_config()
256 data->channel_data[k].data_rate = ADS1015_DEFAULT_DATA_RATE; in ads1015_get_channels_config()
265 unsigned int k; in ads1015_probe() local
277 for (k = 0; k < ADS1015_CHANNELS; ++k) { in ads1015_probe()
[all …]
/drivers/scsi/aic7xxx/
Daic7xxx_93cx6.c159 u_int k = 0; in ahc_read_seeprom() local
167 for (k = start_addr; k < count + start_addr; k++) { in ahc_read_seeprom()
177 if ((k & (1 << i)) != 0) in ahc_read_seeprom()
183 if ((k & (1 << i)) != 0) in ahc_read_seeprom()
204 buf[k - start_addr] = v; in ahc_read_seeprom()
211 for (k = 0; k < count; k = k + 1) { in ahc_read_seeprom()
212 if (((k % 8) == 0) && (k != 0)) { in ahc_read_seeprom()
215 printk(KERN_CONT " 0x%x", buf[k]); in ahc_read_seeprom()
233 int i, k; in ahc_write_seeprom() local
253 for (k = start_addr; k < count + start_addr; k++) { in ahc_write_seeprom()
[all …]

12345678910>>...19