| /linux/drivers/net/ethernet/chelsio/libcxgb/ | 
| H A D | libcxgb_ppm.c | 65 int cxgbi_ppm_find_page_index(struct cxgbi_ppm *ppm, unsigned long pgsz)  in cxgbi_ppm_find_page_index()  argument67 	struct cxgbi_tag_format *tformat = &ppm->tformat;  in cxgbi_ppm_find_page_index()
 73 			pr_debug("%s: %s ppm, pgsz %lu -> idx %d.\n",  in cxgbi_ppm_find_page_index()
 74 				 __func__, ppm->ndev->name, pgsz, i);  in cxgbi_ppm_find_page_index()
 104 static void ppm_mark_entries(struct cxgbi_ppm *ppm, int i, int count,  in ppm_mark_entries()  argument
 107 	struct cxgbi_ppod_data *pdata = ppm->ppod_data + i;  in ppm_mark_entries()
 118 static int ppm_get_cpu_entries(struct cxgbi_ppm *ppm, unsigned int count,  in ppm_get_cpu_entries()  argument
 125 	if (!ppm->pool)  in ppm_get_cpu_entries()
 129 	pool = per_cpu_ptr(ppm->pool, cpu);  in ppm_get_cpu_entries()
 133 	i = ppm_find_unused_entries(pool->bmap, ppm->pool_index_max,  in ppm_get_cpu_entries()
 [all …]
 
 | 
| H A D | libcxgb_ppm.h | 120 /* per cpu ppm pool */124 	spinlock_t lock;		/* ppm pool lock */
 143 	spinlock_t map_lock;		/* ppm map lock */
 197 static inline int cxgbi_ppm_is_ddp_tag(struct cxgbi_ppm *ppm, u32 tag)  in cxgbi_ppm_is_ddp_tag()  argument
 199 	return !(tag & ppm->tformat.no_ddp_mask);  in cxgbi_ppm_is_ddp_tag()
 202 static inline int cxgbi_ppm_sw_tag_is_usable(struct cxgbi_ppm *ppm,  in cxgbi_ppm_sw_tag_is_usable()  argument
 209 static inline int cxgbi_ppm_make_non_ddp_tag(struct cxgbi_ppm *ppm,  in cxgbi_ppm_make_non_ddp_tag()  argument
 213 	struct cxgbi_tag_format *tformat = &ppm->tformat;  in cxgbi_ppm_make_non_ddp_tag()
 215 	if (!cxgbi_ppm_sw_tag_is_usable(ppm, sw_tag)) {  in cxgbi_ppm_make_non_ddp_tag()
 232 static inline u32 cxgbi_ppm_decode_non_ddp_tag(struct cxgbi_ppm *ppm,  in cxgbi_ppm_decode_non_ddp_tag()  argument
 [all …]
 
 | 
| /linux/drivers/target/iscsi/cxgbit/ | 
| H A D | cxgbit_ddp.c | 64 cxgbit_ppod_init_idata(struct cxgbit_device *cdev, struct cxgbi_ppm *ppm,  in cxgbit_ppod_init_idata()  argument69 	unsigned int pm_addr = (idx << PPOD_SIZE_SHIFT) + ppm->llimit;  in cxgbit_ppod_init_idata()
 98 cxgbit_ppod_write_idata(struct cxgbi_ppm *ppm, struct cxgbit_sock *csk,  in cxgbit_ppod_write_idata()  argument
 110 	skb = cxgbit_ppod_init_idata(cdev, ppm, idx, npods, csk->tid);  in cxgbit_ppod_write_idata()
 127 cxgbit_ddp_set_map(struct cxgbi_ppm *ppm, struct cxgbit_sock *csk,  in cxgbit_ddp_set_map()  argument
 143 		ret = cxgbit_ppod_write_idata(ppm, csk, ttinfo, pidx, cnt,  in cxgbit_ddp_set_map()
 175 	struct cxgbi_ppm *ppm = cdev2ppm(cdev);  in cxgbit_ddp_reserve()  local
 182 		pr_debug("ppm 0x%p, pgidx %u, xfer %u, sgcnt %u, NO ddp.\n",  in cxgbit_ddp_reserve()
 183 			 ppm, ppm->tformat.pgsz_idx_dflt,  in cxgbit_ddp_reserve()
 197 	ret = cxgbi_ppm_ppods_reserve(ppm, ttinfo->nr_pages, 0, &ttinfo->idx,  in cxgbit_ddp_reserve()
 [all …]
 
 | 
| /linux/drivers/clocksource/ | 
| H A D | scx200_hrt.c | 27 static int ppm;  variable28 module_param(ppm, int, 0);	/* load time only */
 29 MODULE_PARM_DESC(ppm, "+-adjust to actual XO freq (ppm)");
 77 	freq = (HRT_FREQ + ppm);  in init_hrt_clocksource()
 81 	pr_info("enabling scx200 high-res timer (%s MHz +%d ppm)\n", mhz27 ? "27":"1", ppm);  in init_hrt_clocksource()
 
 | 
| /linux/tools/testing/selftests/timers/ | 
| H A D | change_skew.c | 33 int change_skew_test(int ppm)  in change_skew_test()  argument39 	tx.freq = ppm << 16;  in change_skew_test()
 60 	int ppm[5] = {0, 250, 500, -250, -500};  in main()  local
 76 		printf("Using %i ppm adjustment\n", ppm[i]);  in main()
 77 		ret = change_skew_test(ppm[i]);  in main()
 
 | 
| /linux/drivers/scsi/isci/ | 
| H A D | probe_roms.h | 234 			 * NOTE: Max spread for SATA is +0 / -5000 PPM.237 			 *  SATA SSC Tx at +0 / -1419 PPM Spread    = 0x2
 238 			 *  SATA SSC Tx at +0 / -2129 PPM Spread    = 0x3
 239 			 *  SATA SSC Tx at +0 / -4257 PPM Spread    = 0x6
 240 			 *  SATA SSC Tx at +0 / -4967 PPM Spread    = 0x7
 247 			 *	 -2300 PPM
 249 			 *  SAS SSC Tx at +0 / -1419 PPM Spread     = 0x2
 250 			 *  SAS SSC Tx at +0 / -2129 PPM Spread     = 0x3
 253 			 *	 -2300 PPM
 255 			 *  SAS SSC Tx at +1064 / -1064 PPM Spread  = 0x3
 [all …]
 
 | 
| /linux/include/uapi/linux/ | 
| H A D | timex.h | 68 	__kernel_long_t freq;	/* frequency offset (scaled ppm) */74 	__kernel_long_t tolerance;/* clock frequency tolerance (ppm)
 80 	__kernel_long_t ppsfreq;/* pps frequency (scaled ppm) (ro) */
 83 	__kernel_long_t stabil;            /* pps stability (scaled ppm) (ro) */
 106 	long long freq;	/* frequency offset (scaled ppm) */
 113 	long long tolerance;/* clock frequency tolerance (ppm)
 119 	long long ppsfreq;/* pps frequency (scaled ppm) (ro) */
 123 	long long stabil;            /* pps stability (scaled ppm) (ro) */
 
 | 
| /linux/drivers/iio/chemical/ | 
| H A D | mhz19b.c | 176  *	(make sure the sensor has been working under 400ppm for over 20 minutes.)185 	u16 ppm;  in calibration_forced_value_store()  local
 188 	ret = kstrtou16(buf, 0, &ppm);  in calibration_forced_value_store()
 192 	if (ppm) {  in calibration_forced_value_store()
 193 		if (!in_range(ppm, MHZ19B_SPAN_POINT_PPM_MIN,  in calibration_forced_value_store()
 196 				"span point ppm should be in a range [%d-%d]\n",  in calibration_forced_value_store()
 206 	ret = mhz19b_serdev_cmd(indio_dev, cmd, ppm);  in calibration_forced_value_store()
 
 | 
| /linux/Documentation/devicetree/bindings/iio/afe/ | 
| H A D | temperature-transducer.yaml | 78   alpha-ppm-per-celsius:92   - alpha-ppm-per-celsius
 103         alpha-ppm-per-celsius = <1>; /* 1 uA/K */
 112         alpha-ppm-per-celsius = <4000>; /* 4 mV/K */
 
 | 
| H A D | temperature-sense-rtd.yaml | 62   alpha-ppm-per-celsius:87   - alpha-ppm-per-celsius
 98         alpha-ppm-per-celsius = <3908>;
 
 | 
| /linux/drivers/media/dvb-frontends/ | 
| H A D | l64781.c | 118 	static const u32 ppm = 8000;  in apply_frontend_param()  local120 /*	u32 ddfs_offset_variable = 0x6000-((1000000UL+ppm)/ */  in apply_frontend_param()
 179 	ddfs_offset_fixed = 0x4000-(ppm<<16)/bw/1000000;  in apply_frontend_param()
 181 	/* This works up to 20000 ppm, it overflows if too large ppm! */  in apply_frontend_param()
 182 	init_freq = (((8UL<<25) + (8UL<<19) / 25*ppm / (15625/25)) /  in apply_frontend_param()
 186 	/* will work for high ppm only... */  in apply_frontend_param()
 194 	spi_bias /= 1000 + ppm/1000;  in apply_frontend_param()
 455 	/* With ppm=8000, it seems the DTR_SENSITIVITY will result in  in l64781_init()
 
 | 
| /linux/drivers/scsi/cxgbi/ | 
| H A D | libcxgbi.c | 1224 		struct cxgbi_ppm *ppm = (struct cxgbi_ppm *)(*ppm_pp);  in cxgbi_ddp_ppm_setup()  local1226 		if (ppm->ppmax < 1024 ||  in cxgbi_ddp_ppm_setup()
 1227 		    ppm->tformat.pgsz_idx_dflt >= DDP_PGIDX_MAX)  in cxgbi_ddp_ppm_setup()
 1266 	struct cxgbi_ppm *ppm = cdev->cdev2ppm(cdev);  in cxgbi_ddp_reserve()  local
 1279 	if (!ppm || xferlen < DDP_THRESHOLD || !sgcnt ||  in cxgbi_ddp_reserve()
 1280 	    ppm->tformat.pgsz_idx_dflt >= DDP_PGIDX_MAX) {  in cxgbi_ddp_reserve()
 1282 			  "ppm 0x%p, pgidx %u, xfer %u, sgcnt %u, NO ddp.\n",  in cxgbi_ddp_reserve()
 1283 			  ppm, ppm ? ppm->tformat.pgsz_idx_dflt : DDP_PGIDX_MAX,  in cxgbi_ddp_reserve()
 1297 	 * the itt generated by libiscsi is saved in the ppm and can be  in cxgbi_ddp_reserve()
 1300 	err = cxgbi_ppm_ppods_reserve(ppm, ttinfo->nr_pages, 0, &ttinfo->idx,  in cxgbi_ddp_reserve()
 [all …]
 
 | 
| /linux/drivers/media/dvb-frontends/cxd2880/ | 
| H A D | cxd2880_tnrdmd_dvbt_mon.h | 64 					    *tnr_dmd, int *ppm);69 						int *ppm);
 
 | 
| H A D | cxd2880_tnrdmd_dvbt_mon.c | 543 					    *tnr_dmd, int *ppm)  in cxd2880_tnrdmd_dvbt_mon_sampling_offset()  argument554 	if (!tnr_dmd || !ppm)  in cxd2880_tnrdmd_dvbt_mon_sampling_offset()
 648 		*ppm = (num + (den / 2)) / den;  in cxd2880_tnrdmd_dvbt_mon_sampling_offset()
 650 		*ppm = (num - (den / 2)) / den;  in cxd2880_tnrdmd_dvbt_mon_sampling_offset()
 657 						*tnr_dmd, int *ppm)  in cxd2880_tnrdmd_dvbt_mon_sampling_offset_sub()  argument
 659 	if (!tnr_dmd || !ppm)  in cxd2880_tnrdmd_dvbt_mon_sampling_offset_sub()
 665 	return cxd2880_tnrdmd_dvbt_mon_sampling_offset(tnr_dmd->diver_sub, ppm);  in cxd2880_tnrdmd_dvbt_mon_sampling_offset_sub()
 
 | 
| H A D | cxd2880_tnrdmd_dvbt2_mon.h | 104 					     *tnr_dmd, int *ppm);109 						 int *ppm);
 
 | 
| /linux/drivers/net/ethernet/ti/ | 
| H A D | am65-cpts.c | 30 	u32 ppm_low;	/* PPM Load Low Value 0:31 */31 	u32 ppm_hi;	/* PPM Load High Value 32:63 */
 59 	u32 ts_ppm_low;		/* Time Stamp PPM Load Low Value 0:31 */
 60 	u32 ts_ppm_hi;		/* Time Stamp PPM Load High Value 32:63 */
 480 		/* GenF PPM will do correction using cpts refclk tick which is  in am65_cpts_ptp_adjfine()
 481 		 * (cpts->ts_add_val + 1) ns, so GenF length PPM adj period  in am65_cpts_ptp_adjfine()
 492 	 *  - delay between PPM dir and PPM value changes can cause err due old  in am65_cpts_ptp_adjfine()
 493 	 *    PPM correction applied in wrong direction  in am65_cpts_ptp_adjfine()
 494 	 *  - delay between CPTS-clock PPM cfg and GenF PPM cfg can cause err  in am65_cpts_ptp_adjfine()
 495 	 *    due CPTS-clock PPM working with new cfg while GenF PPM cfg still  in am65_cpts_ptp_adjfine()
 [all …]
 
 | 
| /linux/drivers/gpu/drm/radeon/ | 
| H A D | r600_dpm.c | 1197 			ATOM_PPLIB_PPM_Table *ppm = (ATOM_PPLIB_PPM_Table *)  in r600_parse_extended_power_table()  local1206 			rdev->pm.dpm.dyn_state.ppm_table->ppm_design = ppm->ucPpmDesign;  in r600_parse_extended_power_table()
 1208 				le16_to_cpu(ppm->usCpuCoreNumber);  in r600_parse_extended_power_table()
 1210 				le32_to_cpu(ppm->ulPlatformTDP);  in r600_parse_extended_power_table()
 1212 				le32_to_cpu(ppm->ulSmallACPlatformTDP);  in r600_parse_extended_power_table()
 1214 				le32_to_cpu(ppm->ulPlatformTDC);  in r600_parse_extended_power_table()
 1216 				le32_to_cpu(ppm->ulSmallACPlatformTDC);  in r600_parse_extended_power_table()
 1218 				le32_to_cpu(ppm->ulApuTDP);  in r600_parse_extended_power_table()
 1220 				le32_to_cpu(ppm->ulDGpuTDP);  in r600_parse_extended_power_table()
 1222 				le32_to_cpu(ppm->ulDGpuUlvPower);  in r600_parse_extended_power_table()
 [all …]
 
 | 
| /linux/drivers/usb/typec/ucsi/ | 
| H A D | cros_ec_ucsi.c | 178 				"PPM unresponsive - too many write timeouts.\n");  in cros_ucsi_write_timeout()212 		 * system resume to re-enable communication with the PPM.  in cros_ucsi_event()
 314  * receive any UCSI notifications from the EC where PPM is implemented.
 
 | 
| /linux/drivers/video/logo/ | 
| H A D | pnmtologo.c | 142 		/* Plain PBM/PGM/PPM */  in read_image()148 		/* Binary PBM/PGM/PPM */  in read_image()
 189 		/* Plain PPM */  in read_image()
 318 				    "Use ppmquant(1) -map clut_vga16.ppm to reduce the number "  in write_logo_vga16()
 
 | 
| H A D | Makefile | 30 $(obj)/%.c: $(src)/%.ppm $(obj)/pnmtologo FORCE
 | 
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ | 
| H A D | ptp.c | 14 /* The scaled_ppm parameter is ppm (parts per million) with a 16-bit fractional16  * 2^-16 ppm, and 2^16=65536 is 1 ppm.
 
 | 
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ | 
| H A D | ptp.c | 12 /* The scaled_ppm parameter is ppm (parts per million) with a 16-bit fractional14  * 2^-16 ppm, and 2^16=65536 is 1 ppm.
 
 | 
| /linux/drivers/iio/afe/ | 
| H A D | iio-rescale.c | 427 	ret = device_property_read_u32(dev, "alpha-ppm-per-celsius", &alpha);  in rescale_temp_sense_rtd_props()429 		dev_err(dev, "failed to read alpha-ppm-per-celsius: %d\n",  in rescale_temp_sense_rtd_props()
 460 	ret = device_property_read_u32(dev, "alpha-ppm-per-celsius", &alpha);  in rescale_temp_transducer_props()
 462 		dev_err(dev, "failed to read alpha-ppm-per-celsius: %d\n", ret);  in rescale_temp_transducer_props()
 
 | 
| /linux/Documentation/userspace-api/media/v4l/ | 
| H A D | v4l2grab-example.rst | 9 This program demonstrates how to grab V4L2 images in ppm format by using
 | 
| /linux/arch/alpha/kernel/ | 
| H A D | time.c | 20  *	Tighten sanity in time_init from 1% (10,000 PPM) to 250 PPM419 		/* If the given value is within 250 PPM of what we calculated,  in time_init()
 
 |