Home
last modified time | relevance | path

Searched refs:half (Results 1 - 25 of 85) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
H A Dselftest_ring.c79 unsigned int half = 2048; in igt_ring_direction() local
82 ring = mock_ring(2 * half); in igt_ring_direction()
86 GEM_BUG_ON(ring->size != 2 * half); in igt_ring_direction()
89 for (step = 1; step < half; step <<= 1) { in igt_ring_direction()
91 err |= check_ring_offset(ring, half, step); in igt_ring_direction()
93 err |= check_ring_step(ring, 0, half - 64); in igt_ring_direction()
96 err |= check_ring_offset(ring, 0, 2 * half + 64); in igt_ring_direction()
97 err |= check_ring_offset(ring, 3 * half, 1); in igt_ring_direction()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/
H A Dselftest_ring.c79 unsigned int half = 2048; in igt_ring_direction() local
82 ring = mock_ring(2 * half); in igt_ring_direction()
86 GEM_BUG_ON(ring->size != 2 * half); in igt_ring_direction()
89 for (step = 1; step < half; step <<= 1) { in igt_ring_direction()
91 err |= check_ring_offset(ring, half, step); in igt_ring_direction()
93 err |= check_ring_step(ring, 0, half - 64); in igt_ring_direction()
96 err |= check_ring_offset(ring, 0, 2 * half + 64); in igt_ring_direction()
97 err |= check_ring_offset(ring, 3 * half, 1); in igt_ring_direction()
/kernel/linux/linux-5.10/drivers/net/ethernet/8390/
H A Dstnic.c32 #define half unsigned short macro
100 *(vhalf *) (PA_83902 + ((reg) << 1)) = ((half) (val) << 8); in STNIC_WRITE()
190 half buf[2]; in stnic_get_hdr()
226 half val; in stnic_block_input()
248 length -= sizeof (half); in stnic_block_input()
274 *(vhalf *) PA_83902_IF = ((half) buf[1] << 8) | buf[0]; in stnic_block_output()
276 *(vhalf *) PA_83902_IF = ((half) buf[0] << 8) | buf[1]; in stnic_block_output()
279 buf += sizeof (half); in stnic_block_output()
280 length -= sizeof (half); in stnic_block_output()
/kernel/linux/linux-6.6/drivers/net/ethernet/8390/
H A Dstnic.c29 #define half unsigned short macro
97 *(vhalf *) (PA_83902 + ((reg) << 1)) = ((half) (val) << 8); in STNIC_WRITE()
186 half buf[2]; in stnic_get_hdr()
222 half val; in stnic_block_input()
244 length -= sizeof (half); in stnic_block_input()
270 *(vhalf *) PA_83902_IF = ((half) buf[1] << 8) | buf[0]; in stnic_block_output()
272 *(vhalf *) PA_83902_IF = ((half) buf[0] << 8) | buf[1]; in stnic_block_output()
275 buf += sizeof (half); in stnic_block_output()
276 length -= sizeof (half); in stnic_block_output()
/kernel/linux/linux-5.10/drivers/soc/ixp4xx/
H A Dixp4xx-qmgr.c187 int i, half = (irq == qmgr_irq_1 ? 0 : 1); in qmgr_irq() local
188 u32 req_bitmap = __raw_readl(&qmgr_regs->irqstat[half]); in qmgr_irq()
192 __raw_writel(req_bitmap, &qmgr_regs->irqstat[half]); /* ACK */ in qmgr_irq()
197 i += half * HALF_QUEUES; in qmgr_irq()
207 int half = queue / 32; in qmgr_enable_irq() local
211 __raw_writel(__raw_readl(&qmgr_regs->irqen[half]) | mask, in qmgr_enable_irq()
212 &qmgr_regs->irqen[half]); in qmgr_enable_irq()
219 int half = queue / 32; in qmgr_disable_irq() local
223 __raw_writel(__raw_readl(&qmgr_regs->irqen[half]) & ~mask, in qmgr_disable_irq()
224 &qmgr_regs->irqen[half]); in qmgr_disable_irq()
[all...]
/kernel/linux/linux-6.6/drivers/soc/ixp4xx/
H A Dixp4xx-qmgr.c188 int i, half = (irq == qmgr_irq_1 ? 0 : 1); in qmgr_irq() local
189 u32 req_bitmap = __raw_readl(&qmgr_regs->irqstat[half]); in qmgr_irq()
193 __raw_writel(req_bitmap, &qmgr_regs->irqstat[half]); /* ACK */ in qmgr_irq()
198 i += half * HALF_QUEUES; in qmgr_irq()
208 int half = queue / 32; in qmgr_enable_irq() local
212 __raw_writel(__raw_readl(&qmgr_regs->irqen[half]) | mask, in qmgr_enable_irq()
213 &qmgr_regs->irqen[half]); in qmgr_enable_irq()
220 int half = queue / 32; in qmgr_disable_irq() local
224 __raw_writel(__raw_readl(&qmgr_regs->irqen[half]) & ~mask, in qmgr_disable_irq()
225 &qmgr_regs->irqen[half]); in qmgr_disable_irq()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
H A Dsun4i_hdmi_tmds_clk.c31 bool *half) in sun4i_tmds_calc_divider()
57 if (div && half) { in sun4i_tmds_calc_divider()
59 *half = is_double; in sun4i_tmds_calc_divider()
147 bool half; in sun4i_tmds_set_rate() local
152 &div, &half); in sun4i_tmds_set_rate()
156 if (half) in sun4i_tmds_set_rate()
27 sun4i_tmds_calc_divider(unsigned long rate, unsigned long parent_rate, u8 div_offset, u8 *div, bool *half) sun4i_tmds_calc_divider() argument
/kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/
H A Dsun4i_hdmi_tmds_clk.c31 bool *half) in sun4i_tmds_calc_divider()
57 if (div && half) { in sun4i_tmds_calc_divider()
59 *half = is_double; in sun4i_tmds_calc_divider()
147 bool half; in sun4i_tmds_set_rate() local
152 &div, &half); in sun4i_tmds_set_rate()
156 if (half) in sun4i_tmds_set_rate()
27 sun4i_tmds_calc_divider(unsigned long rate, unsigned long parent_rate, u8 div_offset, u8 *div, bool *half) sun4i_tmds_calc_divider() argument
/kernel/linux/linux-5.10/drivers/clk/sunxi/
H A Dclk-sun4i-tcon-ch1.c101 bool *half) in tcon_ch1_calc_divider()
127 if (div && half) { in tcon_ch1_calc_divider()
129 *half = is_double; in tcon_ch1_calc_divider()
191 bool half; in tcon_ch1_set_rate() local
195 tcon_ch1_calc_divider(rate, parent_rate, &div_m, &half); in tcon_ch1_set_rate()
202 if (half) in tcon_ch1_set_rate()
98 tcon_ch1_calc_divider(unsigned long rate, unsigned long parent_rate, u8 *div, bool *half) tcon_ch1_calc_divider() argument
/kernel/linux/linux-6.6/drivers/clk/sunxi/
H A Dclk-sun4i-tcon-ch1.c101 bool *half) in tcon_ch1_calc_divider()
127 if (div && half) { in tcon_ch1_calc_divider()
129 *half = is_double; in tcon_ch1_calc_divider()
191 bool half; in tcon_ch1_set_rate() local
195 tcon_ch1_calc_divider(rate, parent_rate, &div_m, &half); in tcon_ch1_set_rate()
202 if (half) in tcon_ch1_set_rate()
98 tcon_ch1_calc_divider(unsigned long rate, unsigned long parent_rate, u8 *div, bool *half) tcon_ch1_calc_divider() argument
/kernel/linux/linux-6.6/arch/s390/mm/
H A Dpgalloc.c164 * A 2KB-pgtable is either upper or lower half of a normal page.
165 * The second half of the page may be unused or used as another
202 * - added to mm_context_t::pgtable_list in case the second half of the
213 * - added to mm_context_t::pgtable_list in case the second half of the
215 * - removed from mm_context_t::pgtable_list in case the second half of
310 unsigned int half, unsigned int mask) in page_table_release_check()
319 "Invalid pgtable %p release half 0x%02x mask 0x%02x", in page_table_release_check()
320 table, half, mask); in page_table_release_check()
335 unsigned int mask, bit, half; in page_table_free() local
351 * Other half i in page_table_free()
309 page_table_release_check(struct page *page, void *table, unsigned int half, unsigned int mask) page_table_release_check() argument
372 page_table_release_check(ptdesc_page(ptdesc), table, half, mask); page_table_free() local
421 unsigned int mask = (unsigned long) _table & 0x03U, half = mask; __tlb_remove_table() local
442 page_table_release_check(ptdesc_page(ptdesc), table, half, mask); __tlb_remove_table() local
[all...]
/kernel/linux/linux-5.10/drivers/hwmon/
H A Dmax197.c124 int half = data->limit / 2; in max197_store_range() local
134 value = -half; in max197_store_range()
141 value = half; in max197_store_range()
150 } else if (value == -half) { in max197_store_range()
156 } else if (value == half) { in max197_store_range()
/kernel/linux/linux-6.6/drivers/hwmon/
H A Dmax197.c124 int half = data->limit / 2; in max197_store_range() local
134 value = -half; in max197_store_range()
141 value = half; in max197_store_range()
150 } else if (value == -half) { in max197_store_range()
156 } else if (value == half) { in max197_store_range()
/kernel/linux/linux-5.10/drivers/misc/sgi-gru/
H A Dgrukservices.c643 int half, qlines; in send_message_queue_full() local
645 /* Determine if switching to first/second half of q */ in send_message_queue_full()
651 half = (limit != qlines); in send_message_queue_full()
653 if (half) in send_message_queue_full()
659 gru_gamir(cb, EOP_IR_CLR, HSTATUS(mqd->mq_gpa, half), XTYPE_DW, IMA); in send_message_queue_full()
670 gru_gamir(cb, EOP_IR_INC, HSTATUS(mqd->mq_gpa, half), in send_message_queue_full()
680 /* Then flip queuehead to other half of queue. */ in send_message_queue_full()
689 gru_gamir(cb, EOP_IR_INC, HSTATUS(mqd->mq_gpa, half), XTYPE_DW, in send_message_queue_full()
842 int half = -1; in gru_free_message() local
853 half in gru_free_message()
[all...]
/kernel/linux/linux-6.6/drivers/misc/sgi-gru/
H A Dgrukservices.c643 int half, qlines; in send_message_queue_full() local
645 /* Determine if switching to first/second half of q */ in send_message_queue_full()
651 half = (limit != qlines); in send_message_queue_full()
653 if (half) in send_message_queue_full()
659 gru_gamir(cb, EOP_IR_CLR, HSTATUS(mqd->mq_gpa, half), XTYPE_DW, IMA); in send_message_queue_full()
670 gru_gamir(cb, EOP_IR_INC, HSTATUS(mqd->mq_gpa, half), in send_message_queue_full()
680 /* Then flip queuehead to other half of queue. */ in send_message_queue_full()
689 gru_gamir(cb, EOP_IR_INC, HSTATUS(mqd->mq_gpa, half), XTYPE_DW, in send_message_queue_full()
842 int half = -1; in gru_free_message() local
853 half in gru_free_message()
[all...]
/kernel/linux/linux-5.10/arch/arm/vdso/
H A Dvdsomunge.c106 static Elf32_Half read_elf_half(Elf32_Half half, bool swap) in read_elf_half() argument
108 return swap ? swab16(half) : half; in read_elf_half()
/kernel/linux/linux-6.6/arch/arm/vdso/
H A Dvdsomunge.c106 static Elf32_Half read_elf_half(Elf32_Half half, bool swap) in read_elf_half() argument
108 return swap ? swab16(half) : half; in read_elf_half()
/kernel/linux/linux-5.10/drivers/mtd/spi-nor/
H A Dsfdp.c49 * The half-word at offset <setting_shift> in <setting_dword> BFPT DWORD
62 * The half-word at offset <shift> in DWORD <dwoard> encodes the
226 u16 half, in spi_nor_set_read_settings_from_bfpt()
229 read->num_mode_clocks = (half >> 5) & 0x07; in spi_nor_set_read_settings_from_bfpt()
230 read->num_wait_states = (half >> 0) & 0x1f; in spi_nor_set_read_settings_from_bfpt()
231 read->opcode = (half >> 8) & 0xff; in spi_nor_set_read_settings_from_bfpt()
322 * @l: member in the left half of the map's erase_type array
323 * @r: member in the right half of the map's erase_type array
437 u16 half; in spi_nor_parse_bfpt() local
503 half in spi_nor_parse_bfpt()
225 spi_nor_set_read_settings_from_bfpt(struct spi_nor_read_command *read, u16 half, enum spi_nor_protocol proto) spi_nor_set_read_settings_from_bfpt() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/ktest/
H A Dconfig-bisect.pl12 # Compares a good config to a bad config, then takes half of the diffs
15 # good config and will try to make half of the differences of between
18 # exactly half of the configs that are different between the two config
31 # The algorithm will run, merging half of the differences between
464 # $phalf: half of the configs names you want to add
467 # $which: The name of which half that is updating (top / bottom)
472 my @half = @{$phalf};
478 doprint "Settings bisect with $which half of $type configs:\n";
479 foreach my $item (@half) {
533 my $half
[all...]
/kernel/linux/linux-6.6/tools/testing/ktest/
H A Dconfig-bisect.pl12 # Compares a good config to a bad config, then takes half of the diffs
15 # good config and will try to make half of the differences of between
18 # exactly half of the configs that are different between the two config
31 # The algorithm will run, merging half of the differences between
464 # $phalf: half of the configs names you want to add
467 # $which: The name of which half that is updating (top / bottom)
472 my @half = @{$phalf};
478 doprint "Settings bisect with $which half of $type configs:\n";
479 foreach my $item (@half) {
533 my $half
[all...]
/kernel/linux/linux-6.6/drivers/auxdisplay/
H A Dhd44780_common.c330 int half; in hd44780_common_redefine_char() local
333 half = hex_to_bin(*esc++); in hd44780_common_redefine_char()
334 if (half < 0) in hd44780_common_redefine_char()
337 value |= half << shift; in hd44780_common_redefine_char()
H A Dlcd2s.c246 int half; in lcd2s_redefine_char() local
249 half = hex_to_bin(*esc++); in lcd2s_redefine_char()
250 if (half < 0) in lcd2s_redefine_char()
253 value |= half << shift; in lcd2s_redefine_char()
/kernel/linux/linux-6.6/drivers/mtd/spi-nor/
H A Dsfdp.c61 * The half-word at offset <setting_shift> in <setting_dword> BFPT DWORD
74 * The half-word at offset <shift> in DWORD <dword> encodes the
237 u16 half, in spi_nor_set_read_settings_from_bfpt()
240 read->num_mode_clocks = (half >> 5) & 0x07; in spi_nor_set_read_settings_from_bfpt()
241 read->num_wait_states = (half >> 0) & 0x1f; in spi_nor_set_read_settings_from_bfpt()
242 read->opcode = (half >> 8) & 0xff; in spi_nor_set_read_settings_from_bfpt()
333 * @l: member in the left half of the map's erase_type array
334 * @r: member in the right half of the map's erase_type array
447 u16 half; in spi_nor_parse_bfpt() local
515 half in spi_nor_parse_bfpt()
236 spi_nor_set_read_settings_from_bfpt(struct spi_nor_read_command *read, u16 half, enum spi_nor_protocol proto) spi_nor_set_read_settings_from_bfpt() argument
[all...]
/kernel/linux/linux-5.10/arch/powerpc/kernel/
H A Dvecemu.c245 int exp, half; in rfin() local
257 half = 0x400000 >> exp; in rfin()
259 return (x + half) & ~(0x7fffff >> exp); in rfin()
/kernel/linux/linux-6.6/arch/powerpc/kernel/
H A Dvecemu.c245 int exp, half; in rfin() local
257 half = 0x400000 >> exp; in rfin()
259 return (x + half) & ~(0x7fffff >> exp); in rfin()

Completed in 16 milliseconds

1234