| /kernel/linux/linux-4.19/drivers/crypto/nx/ |
| D | nx-842-powernv.c | 176 #define CSB_ERR(csb, msg, ...) \ argument 178 ##__VA_ARGS__, (csb)->flags, \ 179 (csb)->cs, (csb)->cc, (csb)->ce, \ 180 be32_to_cpu((csb)->count)) 182 #define CSB_ERR_ADDR(csb, msg, ...) \ argument 183 CSB_ERR(csb, msg " at %lx", ##__VA_ARGS__, \ 184 (unsigned long)be64_to_cpu((csb)->address)) 190 struct coprocessor_status_block *csb) in wait_for_csb() argument 195 while (!(READ_ONCE(csb->flags) & CSB_V)) { in wait_for_csb() 202 /* hw has updated csb and output buffer */ in wait_for_csb() [all …]
|
| D | nx-842-pseries.c | 75 /* I assume we need to align the CSB? */ 208 struct cop_status_block *csb) in nx842_validate_result() argument 210 /* The csb must be valid after returning from vio_h_cop_sync */ in nx842_validate_result() 211 if (!NX842_CSBCBP_VALID_CHK(csb->valid)) { in nx842_validate_result() 215 csb->valid, in nx842_validate_result() 216 csb->crb_seq_number, in nx842_validate_result() 217 csb->completion_code, in nx842_validate_result() 218 csb->completion_extension); in nx842_validate_result() 220 be32_to_cpu(csb->processed_byte_count), in nx842_validate_result() 221 (unsigned long)be64_to_cpu(csb->address)); in nx842_validate_result() [all …]
|
| /kernel/linux/linux-5.10/drivers/crypto/nx/ |
| D | nx-common-powernv.c | 174 #define CSB_ERR(csb, msg, ...) \ argument 176 ##__VA_ARGS__, (csb)->flags, \ 177 (csb)->cs, (csb)->cc, (csb)->ce, \ 178 be32_to_cpu((csb)->count)) 180 #define CSB_ERR_ADDR(csb, msg, ...) \ argument 181 CSB_ERR(csb, msg " at %lx", ##__VA_ARGS__, \ 182 (unsigned long)be64_to_cpu((csb)->address)) 188 struct coprocessor_status_block *csb) in wait_for_csb() argument 193 while (!(READ_ONCE(csb->flags) & CSB_V)) { in wait_for_csb() 200 /* hw has updated csb and output buffer */ in wait_for_csb() [all …]
|
| D | nx-842-pseries.c | 62 /* I assume we need to align the CSB? */ 195 struct cop_status_block *csb) in nx842_validate_result() argument 197 /* The csb must be valid after returning from vio_h_cop_sync */ in nx842_validate_result() 198 if (!NX842_CSBCBP_VALID_CHK(csb->valid)) { in nx842_validate_result() 202 csb->valid, in nx842_validate_result() 203 csb->crb_seq_number, in nx842_validate_result() 204 csb->completion_code, in nx842_validate_result() 205 csb->completion_extension); in nx842_validate_result() 207 be32_to_cpu(csb->processed_byte_count), in nx842_validate_result() 208 (unsigned long)be64_to_cpu(csb->address)); in nx842_validate_result() [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
| D | vas-fault.c | 52 * Update the CSB to indicate a translation error. 54 * User space will be polling on CSB after the request is issued. 55 * If NX can handle the request without any issues, it updates CSB. 57 * fault and update CSB with translation error. 59 * If we are unable to update the CSB means copy_to_user failed due to 65 struct coprocessor_status_block csb; in update_csb() local 81 memset(&csb, 0, sizeof(csb)); in update_csb() 82 csb.cc = CSB_CC_FAULT_ADDRESS; in update_csb() 83 csb.ce = CSB_CE_TERMINATION; in update_csb() 84 csb.cs = 0; in update_csb() [all …]
|
| /kernel/linux/linux-5.10/Documentation/powerpc/ |
| D | vas-api.rst | 217 co-processor Status Block (CSB) flags. NX updates status in CSB after each 218 request is processed. Refer NX-GZIP user's manual for the format of CSB and 221 In case if NX encounters translation error (called NX page fault) on CSB 225 updating CSB with the following data:: 227 csb.flags = CSB_V; 228 csb.cc = CSB_CC_FAULT_ADDRESS; 229 csb.ce = CSB_CE_TERMINATION; 230 csb.address = fault_address; 236 If the OS can not update CSB due to invalid CSB address, sends SEGV signal 243 siginfo.si_addr = CSB adress; [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/powerpc/nx-gzip/ |
| D | gzip_vas.c | 152 while (getnn(cmdp->crb.csb, csb_v) == 0) { in nx_wait_for_csb() 180 /* hw has updated csb and output buffer */ in nx_wait_for_csb() 183 /* Check CSB flags. */ in nx_wait_for_csb() 184 if (getnn(cmdp->crb.csb, csb_v) == 0) { in nx_wait_for_csb() 185 fprintf(stderr, "CSB still not valid after %d polls.\n", in nx_wait_for_csb() 187 prt_err("CSB still not valid after %d polls, giving up.\n", in nx_wait_for_csb() 269 cc = getnn(cmdp->crb.csb, csb_cc); /* CC Table 6-8 */ in nxu_submit_job()
|
| D | gzfht_test.c | 26 * csb: coprocessor status block (status) 89 memset((void *) &cmdp->crb.csb, 0, sizeof(cmdp->crb.csb)); in compress_fht_sample() 99 /* Figure 6-3 6-4; CSB location */ in compress_fht_sample() 102 (uint64_t) &cmdp->crb.csb & csb_address_mask); in compress_fht_sample() 319 (unsigned long long) cmdp->crb.csb.fsaddr)); in compress_file() 344 tpbc = get32(cmdp->crb.csb, tpbc); in compress_file()
|
| D | gunz_test.c | 21 * csb: coprocessor status block (status) 250 memset((void *)&cmdp->crb.csb, 0, sizeof(cmdp->crb.csb)); in nx_submit_job() 256 csbaddr = ((uint64_t) &cmdp->crb.csb) & csb_address_mask; in nx_submit_job() 708 (void *)cmdp->crb.csb.fsaddr)); in decompress_file() 740 nx_ce = get_csb_ce_ms3b(cmdp->crb.csb); in decompress_file() 750 tpbc = get32(cmdp->crb.csb, tpbc); in decompress_file() 780 tpbc = get32(cmdp->crb.csb, tpbc); in decompress_file()
|
| /kernel/linux/linux-5.10/tools/testing/selftests/powerpc/nx-gzip/include/ |
| D | nxu.h | 56 * csb: coprocessor status block (status) 113 /* 16B CSB size. Written to 0 by DMA when it writes the CPB */ 129 /* Section 6.12.1 CSB NonZero error summary. FSA Failing storage 131 * to A field of CSB 314 /* byte[64:239] shift csb by 128 bytes out of the crb; csb was 315 * in crb earlier; JReilly says csb written with partial inject 320 volatile struct nx_csb_t csb; member 346 /* CSB */ 530 /* CSB.CC Error codes */ 636 struct nx_csb_t csb; member
|
| D | crb.h | 36 /* Chapter 6.5.7 Coprocessor-Status Block (CSB) */ 110 * ADDRESS address of CSB 132 struct coprocessor_status_block csb; member
|
| /kernel/linux/linux-5.10/arch/powerpc/platforms/512x/ |
| D | clock-commonclk.c | 418 * SYS -> CSB -> IPS) from the REF clock rate and the returned mul/div 457 calc_freq *= *ips_div; /* IPS -> CSB */ in mpc512x_clk_setup_ref_clock() 458 calc_freq *= 2; /* CSB -> SYS */ in mpc512x_clk_setup_ref_clock() 640 * CSB which is greater than IPS; the serial port setup may have in mpc512x_clk_setup_mclk() 734 /* now setup the REF -> SYS -> CSB -> IPS hierarchy */ in mpc512x_clk_setup_clock_tree() 737 clks[MPC512x_CLK_CSB] = mpc512x_clk_factor("csb", "sys", 1, 2); in mpc512x_clk_setup_clock_tree() 738 clks[MPC512x_CLK_IPS] = mpc512x_clk_divtable("ips", "csb", in mpc512x_clk_setup_clock_tree() 741 /* now setup anything below SYS and CSB and IPS */ in mpc512x_clk_setup_clock_tree() 756 clks[MPC512x_CLK_SDHC_x4] = mpc512x_clk_factor("sdhc-x4", "csb", 2, 1); in mpc512x_clk_setup_clock_tree() 766 clks[MPC512x_CLK_DIU_x4] = mpc512x_clk_factor("diu-x4", "csb", 4, 1); in mpc512x_clk_setup_clock_tree() [all …]
|
| /kernel/linux/linux-4.19/arch/powerpc/platforms/512x/ |
| D | clock-commonclk.c | 419 * SYS -> CSB -> IPS) from the REF clock rate and the returned mul/div 458 calc_freq *= *ips_div; /* IPS -> CSB */ in mpc512x_clk_setup_ref_clock() 459 calc_freq *= 2; /* CSB -> SYS */ in mpc512x_clk_setup_ref_clock() 641 * CSB which is greater than IPS; the serial port setup may have in mpc512x_clk_setup_mclk() 735 /* now setup the REF -> SYS -> CSB -> IPS hierarchy */ in mpc512x_clk_setup_clock_tree() 738 clks[MPC512x_CLK_CSB] = mpc512x_clk_factor("csb", "sys", 1, 2); in mpc512x_clk_setup_clock_tree() 739 clks[MPC512x_CLK_IPS] = mpc512x_clk_divtable("ips", "csb", in mpc512x_clk_setup_clock_tree() 742 /* now setup anything below SYS and CSB and IPS */ in mpc512x_clk_setup_clock_tree() 757 clks[MPC512x_CLK_SDHC_x4] = mpc512x_clk_factor("sdhc-x4", "csb", 2, 1); in mpc512x_clk_setup_clock_tree() 767 clks[MPC512x_CLK_DIU_x4] = mpc512x_clk_factor("diu-x4", "csb", 4, 1); in mpc512x_clk_setup_clock_tree() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/temperature/ |
| D | tsys01.txt | 6 - reg: I2C address of the sensor (changeable via CSB pin) 9 | CSB | Device Address |
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/iio/temperature/ |
| D | tsys01.txt | 6 - reg: I2C address of the sensor (changeable via CSB pin) 9 | CSB | Device Address |
|
| /kernel/linux/linux-4.19/arch/powerpc/include/asm/ |
| D | icswx.h | 46 /* Chapter 6.5.7 Coprocessor-Status Block (CSB) */ 122 * ADDRESS address of CSB 144 struct coprocessor_status_block csb; member
|
| /kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
| D | icswx.h | 42 /* Chapter 6.5.7 Coprocessor-Status Block (CSB) */ 131 * ADDRESS address of CSB 158 struct coprocessor_status_block csb; member
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/sound/ |
| D | nau8824.txt | 8 - reg : the I2C address of the device. This is either 0x1a (CSB=0) or 0x1b (CSB=1).
|
| D | nau8825.txt | 8 - reg : the I2C address of the device. This is either 0x1a (CSB=0) or 0x1b (CSB=1).
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
| D | nau8824.txt | 8 - reg : the I2C address of the device. This is either 0x1a (CSB=0) or 0x1b (CSB=1).
|
| D | nau8825.txt | 8 - reg : the I2C address of the device. This is either 0x1a (CSB=0) or 0x1b (CSB=1).
|
| /kernel/linux/linux-5.10/drivers/iio/pressure/ |
| D | ms5611_i2c.c | 9 * 0x77 (CSB pin low) 10 * 0x76 (CSB pin high)
|
| /kernel/linux/linux-4.19/drivers/iio/pressure/ |
| D | ms5611_i2c.c | 12 * 0x77 (CSB pin low) 13 * 0x76 (CSB pin high)
|
| /kernel/linux/linux-4.19/drivers/gpio/ |
| D | gpio-stmpe.c | 24 enum { LSB, CSB, MSB }; enumerator 182 [REG_RE][CSB] = STMPE_IDX_GPRER_CSB, in stmpe_gpio_irq_sync_unlock() 185 [REG_FE][CSB] = STMPE_IDX_GPFER_CSB, in stmpe_gpio_irq_sync_unlock() 188 [REG_IE][CSB] = STMPE_IDX_IEGPIOR_CSB, in stmpe_gpio_irq_sync_unlock()
|
| /kernel/linux/linux-5.10/drivers/gpio/ |
| D | gpio-stmpe.c | 24 enum { LSB, CSB, MSB }; enumerator 185 [REG_RE][CSB] = STMPE_IDX_GPRER_CSB, in stmpe_gpio_irq_sync_unlock() 188 [REG_FE][CSB] = STMPE_IDX_GPFER_CSB, in stmpe_gpio_irq_sync_unlock() 191 [REG_IE][CSB] = STMPE_IDX_IEGPIOR_CSB, in stmpe_gpio_irq_sync_unlock()
|