| /linux/tools/testing/selftests/bpf/progs/ | 
| H A D | test_sk_lookup.c | 28 #define LSB(value, index)				\  macro400 	if (LSB(ctx->family, 0) != (v4 ? AF_INET : AF_INET6) ||  in ctx_narrow_access()
 401 	    LSB(ctx->family, 1) != 0 || LSB(ctx->family, 2) != 0 || LSB(ctx->family, 3) != 0)  in ctx_narrow_access()
 407 	if (LSB(ctx->protocol, 0) != IPPROTO_TCP ||  in ctx_narrow_access()
 408 	    LSB(ctx->protocol, 1) != 0 || LSB(ctx->protocol, 2) != 0 || LSB(ctx->protocol, 3) != 0)  in ctx_narrow_access()
 414 	if (LSB(ctx->remote_port, 0) != ((SRC_PORT >> 0) & 0xff) ||  in ctx_narrow_access()
 415 	    LSB(ctx->remote_port, 1) != ((SRC_PORT >> 8) & 0xff))  in ctx_narrow_access()
 432 	if (LSB(ctx->local_port, 0) != ((DST_PORT >> 0) & 0xff) ||  in ctx_narrow_access()
 433 	    LSB(ctx->local_port, 1) != ((DST_PORT >> 8) & 0xff) ||  in ctx_narrow_access()
 434 	    LSB(ctx->local_port, 2) != 0 || LSB(ctx->local_port, 3) != 0)  in ctx_narrow_access()
 [all …]
 
 | 
| /linux/arch/arm64/tools/ | 
| H A D | gen-sysreg.awk | 52 function define_field(reg, field, msb, lsb) {53 	define(reg "_" field, "GENMASK(" msb ", " lsb ")")
 54 	define(reg "_" field "_MASK", "GENMASK(" msb ", " lsb ")")
 55 	define(reg "_" field "_SHIFT", lsb)
 56 	define(reg "_" field "_WIDTH", msb - lsb + 1)
 64 # Parse a "<msb>[:<lsb>]" string into the global variables @msb and @lsb
 69 		lsb = bitdef
 72 		lsb = _bits[2]
 82 	if (63 < lsb || lsb < 0)
 84 	if (msb < lsb)
 [all …]
 
 | 
| /linux/drivers/media/test-drivers/vivid/ | 
| H A D | vivid-rds-gen.c | 53 		data[0].lsb = rds->picode & 0xff;  in vivid_rds_generate()56 		data[1].lsb = rds->pty << 5;  in vivid_rds_generate()
 66 			data[1].lsb |= (rds->ta << 4) | (rds->ms << 3);  in vivid_rds_generate()
 67 			data[1].lsb |= vivid_get_di(rds, idx);  in vivid_rds_generate()
 69 			data[2].lsb = rds->picode & 0xff;  in vivid_rds_generate()
 72 			data[3].lsb = rds->psname[2 * idx + 1];  in vivid_rds_generate()
 78 			data[1].lsb |= idx;  in vivid_rds_generate()
 81 			data[2].lsb = rds->radiotext[4 * idx + 1];  in vivid_rds_generate()
 84 			data[3].lsb = rds->radiotext[4 * idx + 3];  in vivid_rds_generate()
 102 			data[1].lsb &= ~3;  in vivid_rds_generate()
 [all …]
 
 | 
| /linux/drivers/hwmon/pmbus/ | 
| H A D | mp2891.c | 101 	 * 2.5mV/LSB  in mp2891_identify_vout_scale()104 	 * 00b - 6.25mV/LSB, 01b - 5mV/LSB, 10b - 2mV/LSB, 11b - 1mV  in mp2891_identify_vout_scale()
 143 	 * 000b - 1A/LSB, 001b - (1/32)A/LSB, 010b - (1/16)A/LSB,  in mp2891_identify_iout_scale()
 144 	 * 011b - (1/8)A/LSB, 100b - (1/4)A/LSB, 101b - (1/2)A/LSB  in mp2891_identify_iout_scale()
 145 	 * 110b - 1A/LSB, 111b - 2A/LSB  in mp2891_identify_iout_scale()
 241 		 * is linear11 format, But the pout scale is set to 1A/Lsb(using  in mp2891_read_word_data()
 257 		 * format, But the pout scale is set to 1W/Lsb(using r/m/b scale).  in mp2891_read_word_data()
 271 		 * 1W/Lsb(using r/m/b scale). As a result, the pout read from MP2891  in mp2891_read_word_data()
 300 		 * is 1°C/LSB and they have 40°C offset.  in mp2891_read_word_data()
 310 		 * The MP2891 PMBUS_VIN_OV_FAULT_LIMIT scale is 125mV/Lsb.  in mp2891_read_word_data()
 [all …]
 
 | 
| /linux/drivers/dma/dw-edma/ | 
| H A D | dw-edma-v0-regs.h | 34 			u32 lsb;			/* 0x000c */  member41 			u32 lsb;			/* 0x0014 */  member
 48 			u32 lsb;			/* 0x001c */  member
 68 			u32 lsb;			/* 0x0108 */  member
 76 			u32 lsb;			/* 0x0120 */  member
 118 			u32 lsb;			/* 0x0018 */  member
 129 			u32 lsb;			/* 0x0038 */  member
 143 			u32 lsb;			/* 0x0060 */  member
 150 			u32 lsb;			/* 0x0068 */  member
 169 			u32 lsb;			/* 0x00b4 */  member
 [all …]
 
 | 
| H A D | dw-hdma-v0-regs.h | 35 			u32 lsb;		/* 0x0010 */  member44 			u32 lsb;		/* 0x0020 */  member
 51 			u32 lsb;		/* 0x0028 */  member
 67 			u32 lsb;		/* 0x0090 */  member
 74 			u32 lsb;		/* 0x0098 */  member
 81 			u32 lsb;		/* 0x00a0 */  member
 104 			u32 lsb;  member
 111 			u32 lsb;  member
 123 			u32 lsb;  member
 
 | 
| H A D | dw-edma-v0-debugfs.c | 126 		CTX_REGISTER(dw, sar.lsb, dir, ch),  in dw_edma_debugfs_regs_ch()128 		CTX_REGISTER(dw, dar.lsb, dir, ch),  in dw_edma_debugfs_regs_ch()
 130 		CTX_REGISTER(dw, llp.lsb, dir, ch),  in dw_edma_debugfs_regs_ch()
 146 		WR_REGISTER(dw, ch_arb_weight.lsb),  in dw_edma_debugfs_regs_wr()
 153 		WR_REGISTER(dw, done_imwr.lsb),  in dw_edma_debugfs_regs_wr()
 155 		WR_REGISTER(dw, abort_imwr.lsb),  in dw_edma_debugfs_regs_wr()
 166 		WR_REGISTER_UNROLL(dw, engine_hshake_cnt.lsb),  in dw_edma_debugfs_regs_wr()
 208 		RD_REGISTER(dw, ch_arb_weight.lsb),  in dw_edma_debugfs_regs_rd()
 214 		RD_REGISTER(dw, err_status.lsb),  in dw_edma_debugfs_regs_rd()
 217 		RD_REGISTER(dw, done_imwr.lsb),  in dw_edma_debugfs_regs_rd()
 [all …]
 
 | 
| H A D | dw-hdma-v0-debugfs.c | 87 		CTX_REGISTER(dw, llp.lsb, dir, ch),  in dw_hdma_debugfs_regs_ch()91 		CTX_REGISTER(dw, sar.lsb, dir, ch),  in dw_hdma_debugfs_regs_ch()
 93 		CTX_REGISTER(dw, dar.lsb, dir, ch),  in dw_hdma_debugfs_regs_ch()
 103 		CTX_REGISTER(dw, msi_stop.lsb, dir, ch),  in dw_hdma_debugfs_regs_ch()
 105 		CTX_REGISTER(dw, msi_watermark.lsb, dir, ch),  in dw_hdma_debugfs_regs_ch()
 107 		CTX_REGISTER(dw, msi_abort.lsb, dir, ch),  in dw_hdma_debugfs_regs_ch()
 
 | 
| /linux/tools/testing/selftests/drivers/net/netdevsim/ | 
| H A D | fib.sh | 107 	local lsb117 	for lsb in $(seq 1 20); do
 118 		ip -n testns1 route add 192.0.2.${lsb}/32 dev dummy1 \
 129 	local lsb
 139 	for lsb in $(seq 1 20); do
 140 		ip -n testns1 route add 192.0.2.${lsb}/32 dev dummy1
 246 	local lsb
 256 	for lsb in $(seq 1 20); do
 257 		ip -n testns1 route add 2001:db8:1::${lsb}/128 dev dummy1 \
 268 	local lsb
 [all …]
 
 | 
| /linux/drivers/iio/proximity/ | 
| H A D | isl29501.c | 135 	u8 lsb;  member141 		.lsb = ISL29501_DISTANCE_LSB_DATA,
 145 		.lsb = ISL29501_PHASE_LSB,
 148 		.lsb = ISL29501_DIE_TEMPERATURE,
 151 		.lsb = ISL29501_AMBIENT_LIGHT,
 155 		.lsb = ISL29501_GAIN_LSB,
 159 		.lsb = ISL29501_CROSSTALK_GAIN_LSB,
 162 		.lsb = ISL29501_PHASE_EXPONENT,
 165 		.lsb = ISL29501_TEMP_COEFF_A,
 168 		.lsb = ISL29501_TEMP_COEFF_B,
 [all …]
 
 | 
| /linux/arch/sparc/lib/ | 
| H A D | udivdi3.S | 24 	 addxcc %o1,%o1,%o1	! shift n1n0 and a q-bit in lsb31 	 addxcc %o1,%o1,%o1	! shift n1n0 and a q-bit in lsb
 40 	 addcc	%o1,%o1,%o1	! shift n1n0 and a 0-bit in lsb
 62 	 addxcc %o2,%o2,%o2	! shift n1n0 and a q-bit in lsb
 69 	 addxcc %o2,%o2,%o2	! shift n1n0 and a q-bit in lsb
 78 	 addcc	%o2,%o2,%o2	! shift n1n0 and a 0-bit in lsb
 88 	 addxcc %o1,%o1,%o1	! shift n1n0 and a q-bit in lsb
 95 	 addxcc %o1,%o1,%o1	! shift n1n0 and a q-bit in lsb
 104 	 addcc	%o1,%o1,%o1	! shift n1n0 and a 0-bit in lsb
 167 	 addxcc %o5,%o5,%o5	! shift n1n0 and a q-bit in lsb
 [all …]
 
 | 
| H A D | divdi3.S | 48 	 addxcc %o1,%o1,%o1	! shift n1n0 and a q-bit in lsb55 	 addxcc %o1,%o1,%o1	! shift n1n0 and a q-bit in lsb
 64 	 addcc	%o1,%o1,%o1	! shift n1n0 and a 0-bit in lsb
 84 	 addxcc %o2,%o2,%o2	! shift n1n0 and a q-bit in lsb
 91 	 addxcc %o2,%o2,%o2	! shift n1n0 and a q-bit in lsb
 100 	 addcc	%o2,%o2,%o2	! shift n1n0 and a 0-bit in lsb
 108 	 addxcc %o1,%o1,%o1	! shift n1n0 and a q-bit in lsb
 115 	 addxcc %o1,%o1,%o1	! shift n1n0 and a q-bit in lsb
 124 	 addcc	%o1,%o1,%o1	! shift n1n0 and a 0-bit in lsb
 183 	 addxcc %o1,%o1,%o1	! shift n1n0 and a q-bit in lsb
 [all …]
 
 | 
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/acr/ | 
| H A D | ga102.c | 31 	struct lsb_header_v2 *lsb;  in ga102_acr_wpr_patch()  local35 	lsb = kvmalloc(sizeof(*lsb), GFP_KERNEL);  in ga102_acr_wpr_patch()
 36 	if (!lsb)  in ga102_acr_wpr_patch()
 47 			nvkm_robj(acr->wpr, hdr.wpr.lsb_offset, lsb, sizeof(*lsb));  in ga102_acr_wpr_patch()
 48 			lsb_header_v2_dump(&acr->subdev, lsb);  in ga102_acr_wpr_patch()
 50 			lsfw->func->bld_patch(acr, lsb->bl_data_off, adjust);  in ga102_acr_wpr_patch()
 57 	kvfree(lsb);  in ga102_acr_wpr_patch()
 127 	nvkm_wobj(acr->wpr, lsfw->offset.lsb, hdr, sizeof(*hdr));  in ga102_acr_wpr_build_lsb()
 155 		hdr.wpr.lsb_offset = lsfw->offset.lsb;  in ga102_acr_wpr_build()
 165 		/* Write LSB header. */  in ga102_acr_wpr_build()
 [all …]
 
 | 
| H A D | gp102.c | 36 	struct lsb_header_v1 lsb;  in gp102_acr_wpr_patch()  local48 			nvkm_robj(acr->wpr, hdr.lsb_offset, &lsb, sizeof(lsb));  in gp102_acr_wpr_patch()
 49 			lsb_header_v1_dump(&acr->subdev, &lsb);  in gp102_acr_wpr_patch()
 51 			lsfw->func->bld_patch(acr, lsb.tail.bl_data_off, adjust);  in gp102_acr_wpr_patch()
 72 	nvkm_wobj(acr->wpr, lsfw->offset.lsb, &hdr, sizeof(hdr));  in gp102_acr_wpr_build_lsb()
 88 			.lsb_offset = lsfw->offset.lsb,  in gp102_acr_wpr_build()
 99 		/* Write LSB header. */  in gp102_acr_wpr_build()
 146 		lsfw->offset.lsb = wpr;  in gp102_acr_wpr_layout()
 
 | 
| /linux/drivers/net/ethernet/freescale/dpaa2/ | 
| H A D | dpsw-cmd.h | 124 	/* from LSB: only the first 4 bits */144 	/* from LSB: enable:1 */
 215 	/* from LSB only the first 4 bits */
 235 	/* from LSB: VLAN_ID:12 DEI:1 PCP:3 */
 256 	/* only the first LSB 4 bits */
 265 	/* from LSB: type:5 */
 287 	/* from LSB: admit_untagged:4 enabled:1 accept_all_vlan:1 */
 387 	/* only the first 4 bits from LSB */
 395 	/* only the first 4 bits from LSB */
 440 	/* from LSB: dest_type:4 */
 [all …]
 
 | 
| H A D | dpni-cmd.h | 248 	/* from LSB: pass_timestamp:1, parser_result:1, frame_status:1 */263 	/* from LSB: pass_timestamp:1, parser_result:1, frame_status:1 */
 325 	/* from LSB: up:1 */
 390 	/* from LSB: unicast:1, multicast:1 */
 403 	/* from LSB: dist_mode:4, miss_action:4 */
 474 	/* From LSB: dest_type:4, pad:2, flc_stash_ctrl:1, hold_active:1 */
 597 	/* only the LSB */
 635 	/* from LSB: dest_type: 4 units:2 */
 655 	/* from LSB: coupled:1 */
 681 	/* only the LSB */
 
 | 
| /linux/drivers/watchdog/ | 
| H A D | pcwd_usb.c | 136 	/* The data LSB that is reported back */190 	dev_dbg(dev, "received following data cmd=0x%02x msb=0x%02x lsb=0x%02x",  in usb_pcwd_intr_done()
 208 		unsigned char cmd, unsigned char *msb, unsigned char *lsb)  in usb_pcwd_send_command()  argument
 226 	buf[2] = *lsb;			/* Byte 2 = Data LSB */  in usb_pcwd_send_command()
 230 		"sending following data cmd=0x%02x msb=0x%02x lsb=0x%02x",  in usb_pcwd_send_command()
 241 			cmd, *msb, *lsb);  in usb_pcwd_send_command()
 256 		*lsb = usb_pcwd->cmd_data_lsb;  in usb_pcwd_send_command()
 267 	unsigned char lsb = 0x00;  in usb_pcwd_start()  local
 272 								&msb, &lsb);  in usb_pcwd_start()
 274 	if ((retval == 0) || (lsb == 0)) {  in usb_pcwd_start()
 [all …]
 
 | 
| /linux/include/linux/ | 
| H A D | count_zeros.h | 17  * Count the number of leading zeros from the MSB going towards the LSB in @x.20  * If only the LSB of @x is set, then the result is BITS_PER_LONG-1.
 34  * count_trailing_zeros - Count the number of zeros from the LSB forwards
 37  * Count the number of trailing zeros from the LSB going towards the MSB in @x.
 39  * If the LSB of @x is set, the result is 0.
 
 | 
| /linux/include/video/ | 
| H A D | gbe.h | 81 #define MASK(msb, lsb)		\  argument82 	( (((u32)1<<((msb)-(lsb)+1))-1) << (lsb) )
 83 #define GET(v, msb, lsb)	\  argument
 84 	( ((u32)(v) & MASK(msb,lsb)) >> (lsb) )
 85 #define SET(v, f, msb, lsb)	\  argument
 86 	( (v) = ((v)&~MASK(msb,lsb)) | (( (u32)(f)<<(lsb) ) & MASK(msb,lsb)) )
 
 | 
| /linux/include/linux/input/ | 
| H A D | adxl34x.h | 22 	 * form with a scale factor of 15.6 mg/LSB (i.e. 0x7F = +2 g)49 	 * The data format is unsigned. The scale factor is 62.5 mg/LSB
 60 	 * to qualify as a tap event. The scale factor is 625 us/LSB. A zero
 71 	 * factor is 1.25 ms/LSB. A zero value will disable the Double Tap
 81 	 * tap can begin. The scale factor is 1.25 ms/LSB. A zero value will
 127 	 * 62.5 mg/LSB. A zero value may result in undesirable behavior if
 137 	 * factor is 62.5 mg/LSB. A zero value may result in undesirable
 148 	 * is 1 second/LSB. Unlike the other interrupt functions, which
 166 	 * occurring.  The scale factor is 62.5 mg/LSB. A zero value may
 179 	 * scale factor is 5 ms/LSB. A zero value may result in
 [all …]
 
 | 
| /linux/Documentation/devicetree/bindings/gpio/ | 
| H A D | lacie,netxbig-gpio-ext.yaml | 22     description: GPIOs representing the address register (LSB->MSB).24       - description: bit 0 (LSB)
 29     description: GPIOs representing the data register (LSB->MSB).
 31       - description: bit 0 (LSB)
 
 | 
| /linux/drivers/scsi/qla2xxx/ | 
| H A D | qla_def.h | 140 #define LSB(x)	((uint8_t)(x))  macro1544 	 * LSB BIT 0  = Enable Hard Loop Id
 1545 	 * LSB BIT 1  = Enable Fairness
 1546 	 * LSB BIT 2  = Enable Full-Duplex
 1547 	 * LSB BIT 3  = Enable Fast Posting
 1548 	 * LSB BIT 4  = Enable Target Mode
 1549 	 * LSB BIT 5  = Disable Initiator Mode
 1550 	 * LSB BIT 6  = Enable ADISC
 1551 	 * LSB BIT 7  = Enable Target Inquiry Data
 1589 	 * LSB BIT 0 = Timer Operation mode bit 0
 [all …]
 
 | 
| /linux/drivers/crypto/ccp/ | 
| H A D | ccp-dev-v5.c | 19 /* Allocate the requested number of contiguous LSB slots20  * from the LSB bitmap. Look in the private range for this
 31 	if (cmd_q->lsb >= 0) {  in ccp_lsb_alloc()
 37 			return start + cmd_q->lsb * LSB_SIZE;  in ccp_lsb_alloc()
 67 /* Free a number of LSB slots from the bitmap, starting at
 76 	if (cmd_q->lsb == start) {  in ccp_lsb_free()
 77 		/* An entry from the private LSB */  in ccp_lsb_free()
 602 	dev_dbg(cmd_q->ccp->dev, "Queue %d can access %d LSB regions\n",  in ccp_find_lsb_regions()
 638 					/* We found an available LSB  in ccp_find_and_assign_lsb_to_q()
 641 					cmd_q->lsb = bitno;  in ccp_find_and_assign_lsb_to_q()
 [all …]
 
 | 
| /linux/drivers/hwmon/ | 
| H A D | ina209.c | 116 		/* LSB=10 uV. Convert to mV. */  in ina209_from_reg()126 		/* LSB=4 mV, last 3 bits unused */  in ina209_from_reg()
 130 		/* LSB=1 mV, in the upper 8 bits */  in ina209_from_reg()
 134 		/* LSB=1 mV, in the upper 8 bits */  in ina209_from_reg()
 141 		/* LSB=20 mW. Convert to uW */  in ina209_from_reg()
 145 		/* LSB=1 mA (selected). Is in mA */  in ina209_from_reg()
 163 		/* Limit to +- 320 mV, 10 uV LSB */  in ina209_to_reg()
 171 		 * Limit to 0-32000 mV, 4 mV LSB  in ina209_to_reg()
 181 		 * Limit to -255-0 mV, 1 mV LSB  in ina209_to_reg()
 191 		 * Limit to 0-255 mV, 1 mV LSB  in ina209_to_reg()
 [all …]
 
 | 
| /linux/drivers/comedi/drivers/ | 
| H A D | das08.c | 23  * das08_encode12     : DATA[11..4] = MSB[7..0], DATA[3..0] = LSB[7..4].24  * das08_pcm_encode12 : DATA[11..8] = MSB[3..0], DATA[7..9] = LSB[7..0].
 26  *                      MAGNITUDE[7..0] = LSB[7..0].
 176 	int lsb, msb;  in das08_ai_insn_read()  local
 214 		lsb = inb(dev->iobase + DAS08_AI_LSB_REG);  in das08_ai_insn_read()
 216 			data[n] = (lsb >> 4) | (msb << 4);  in das08_ai_insn_read()
 218 			data[n] = (msb << 8) + lsb;  in das08_ai_insn_read()
 230 			unsigned int magnitude = lsb | ((msb & 0x7f) << 8);  in das08_ai_insn_read()
 305 	unsigned char lsb;  in das08_ao_set_data()  local
 308 	lsb = data & 0xff;  in das08_ao_set_data()
 [all …]
 
 |