/linux/drivers/net/wireless/ath/wcn36xx/ |
H A D | txrx.c | 22 static inline int get_rssi0(struct wcn36xx_rx_bd *bd) in get_rssi0() argument 24 return 100 - ((bd->phy_stat0 >> 24) & 0xff); in get_rssi0() 27 static inline int get_snr(struct wcn36xx_rx_bd *bd) in get_snr() argument 29 return ((bd->phy_stat1 >> 24) & 0xff); in get_snr() 63 { 120, 6, RX_ENC_LEGACY, 0, RATE_INFO_BW_20 }, 77 { 585, 6, RX_ENC_HT, 0, RATE_INFO_BW_20 }, 87 { 650, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_20 }, 97 { 585, 6, RX_ENC_HT, RX_ENC_FLAG_HT_GF, RATE_INFO_BW_20 }, 107 { 1215, 6, RX_ENC_HT, 0, RATE_INFO_BW_40 }, 117 { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, [all …]
|
H A D | dxe.h | 40 /* BD handling bit */ 45 #define WCN36xx_DXE_CTRL_DIQ BIT(6) 74 /* BD Template index */ 94 WCN36xx_DXE_CTRL_PRIO_SET(6) | WCN36xx_DXE_CTRL_INT | \ 100 WCN36xx_DXE_CTRL_PDU_REL | WCN36xx_DXE_CTRL_BTHLD_SEL_SET(6) | \ 108 WCN36xx_DXE_CTRL_PRIO_SET(6) | WCN36xx_DXE_CTRL_INT | \ 114 WCN36xx_DXE_CTRL_PRIO_SET(6) | WCN36xx_DXE_CTRL_SWAP | \ 120 WCN36xx_DXE_CTRL_BTHLD_SEL_SET(7) | WCN36xx_DXE_CTRL_PRIO_SET(6) | \ 147 /* BD Handling bit */ 152 #define WCN36xx_DXE_CH_CTRL_DIQ BIT(6) [all …]
|
/linux/drivers/video/backlight/ |
H A D | sky81452-backlight.c | 48 * @enable: Enable mask for current sink channel 1, 2, 3, 4, 5 and 6. 52 * @short_detection_threshold: It should be one of 4, 5, 6 and 7V. 68 static int sky81452_bl_update_status(struct backlight_device *bd) in sky81452_bl_update_status() argument 71 dev_get_platdata(bd->dev.parent); in sky81452_bl_update_status() 72 const unsigned int brightness = (unsigned int)bd->props.brightness; in sky81452_bl_update_status() 73 struct regmap *regmap = bl_get_data(bd); in sky81452_bl_update_status() 126 for (i = 0; i < 6; i++) { in sky81452_bl_show_open_short() 188 unsigned int sources[6]; in sky81452_bl_parse_dt() 211 if (num_entry > 6) in sky81452_bl_parse_dt() 212 num_entry = 6; in sky81452_bl_parse_dt() [all …]
|
/linux/drivers/video/fbdev/matrox/ |
H A D | matroxfb_misc.c | 227 hw->GCTL[6] = 0x05; in matroxfb_vgaHWinit() 273 /* G200 cannot work with (ht & 7) == 6 */ in matroxfb_vgaHWinit() 291 ((hs & 0x100) >> 6) | /* sync start */ in matroxfb_vgaHWinit() 310 hw->CRTC[6] = vt & 0xFF; in matroxfb_vgaHWinit() 313 ((vs & 0x100) >> 6) | in matroxfb_vgaHWinit() 391 static void get_pins(unsigned char __iomem* pins, struct matrox_bios* bd) { in get_pins() argument 398 unsigned char* dst = bd->pins; in get_pins() 413 bd->pins_len = pins_len; in get_pins() 416 unsigned char* dst = bd->pins; in get_pins() 423 bd->pins_len = 0x40; in get_pins() [all …]
|
/linux/drivers/usb/gadget/udc/bdc/ |
H A D | bdc.h | 37 * the set_sel request uses 6 so far, the max. 39 #define EP0_RESPONSE_BUFF 6 49 /* Num of tables in bd list for control,bulk and Int ep */ 52 /* Num of tables in bd list for Isoch ep */ 53 #define NUM_TABLES_ISOCH 6 115 #define BDC_CMD_CST(p) (((p) & (0xf << 6))>>6) 140 #define MB_SHIFT 6 223 /* Control transfer BD specific fields */ 242 /* Transfer BD fields */ 252 /* One BD can transfer max 65536 bytes */ [all …]
|
H A D | bdc_ep.c | 69 * if yes, then check if bd memory has been allocated, then in ep_bd_list_free() 79 dev_dbg(bdc->dev, "bd dma pool not allocated\n"); in ep_bd_list_free() 94 /* Free the bd table array */ in ep_bd_list_free() 99 * chain the tables, by insteting a chain bd at the end of prev_table, pointing 135 /* if there is only 1 table in bd list then loop chain to self */ in ep_bd_list_alloc() 186 /* Free the bd_table_array, bd_table struct, bd's */ in ep_bd_list_alloc() 192 /* returns how many bd's are need for this transfer */ 198 /* 1 bd needed for 0 byte transfer */ in bd_needed_req() 202 /* remaining bytes after tranfering all max BD size BD's */ in bd_needed_req() 207 /* How many maximum BUFF size BD's ? */ in bd_needed_req() [all …]
|
/linux/include/linux/qed/ |
H A D | eth_common.h | 78 #define ETH_TPA_CQE_CONT_LEN_LIST_SIZE 6 120 #define ETH_TX_1ST_BD_FLAGS_TUNN_IP_CSUM_SHIFT 6 125 /* The parsing information data fo rthe first tx bd of a given packet */ 139 /* The parsing information data for the second tx bd of a given packet */ 148 #define ETH_TX_DATA_2ND_BD_DST_PORT_MODE_SHIFT 6 189 #define ETH_TUNNEL_PARSING_FLAGS_IPV4_FRAGMENT_SHIFT 6 352 /* The first tx bd of a given packet */ 359 /* The second tx bd of a given packet */ 366 /* The parsing information data for the third tx bd of a given packet */ 382 /* The third tx bd of a given packet */ [all …]
|
/linux/drivers/power/supply/ |
H A D | bd99954-charger.c | 21 * b) pre-charge with constant current (6) 43 *(3)` `.`."" ` ` ` `+-------- ` ` ` ` ` ` `.:` ` ` ` ` ` ` ` ` .` ` (6) 175 static int bd9995x_get_prop_batt_health(struct bd9995x_device *bd) in bd9995x_get_prop_batt_health() argument 179 ret = regmap_field_read(bd->rmap_fields[F_BATTEMP], &tmp); in bd9995x_get_prop_batt_health() 202 static int bd9995x_get_prop_charge_type(struct bd9995x_device *bd) in bd9995x_get_prop_charge_type() argument 206 ret = regmap_field_read(bd->rmap_fields[F_CHGSTM_STATE], &tmp); in bd9995x_get_prop_charge_type() 225 static bool bd9995x_get_prop_batt_present(struct bd9995x_device *bd) in bd9995x_get_prop_batt_present() argument 229 ret = regmap_field_read(bd->rmap_fields[F_BATTEMP], &tmp); in bd9995x_get_prop_batt_present() 236 static int bd9995x_get_prop_batt_voltage(struct bd9995x_device *bd) in bd9995x_get_prop_batt_voltage() argument 240 ret = regmap_field_read(bd->rmap_fields[F_VBAT_VAL], &tmp); in bd9995x_get_prop_batt_voltage() [all …]
|
/linux/lib/ |
H A D | decompress_bunzip2.c | 61 #define MAX_GROUPS 6 75 #define RETVAL_OUT_OF_MEMORY (-6) 116 static unsigned int INIT get_bits(struct bunzip_data *bd, char bits_wanted) in get_bits() argument 123 while (bd->inbufBitCount < bits_wanted) { in get_bits() 126 if (bd->inbufPos == bd->inbufCount) { in get_bits() 127 if (bd->io_error) in get_bits() 129 bd->inbufCount = bd->fill(bd->inbuf, BZIP2_IOBUF_SIZE); in get_bits() 130 if (bd->inbufCount <= 0) { in get_bits() 131 bd->io_error = RETVAL_UNEXPECTED_INPUT_EOF; in get_bits() 134 bd->inbufPos = 0; in get_bits() [all …]
|
/linux/drivers/crypto/bcm/ |
H A D | spum.h | 25 /* Request message. MH + EMH + BDESC + BD header */ 40 * BD header - 4 50 * Response message header length. Normally MH, EMH, BD header, but when 51 * BD_SUPPRESS is used for hash requests, there is no BD header. 57 * Max value that can be represented in the Payload Length field of the BD 80 /* Buffer Data Header [BD]. SPU in big-endian mode. */ 131 #define EXPLICIT_IV BIT(6) 132 #define EXPLICIT_IV_SHIFT 6
|
/linux/arch/powerpc/boot/ |
H A D | cuboot-pq2.c | 21 static bd_t bd; variable 195 out_le32(&pci_regs[0][6], mmio->pci_addr[1] >> 12); in fixup_pci() 207 mem_pow2 = 1 << (__ilog2_u32(bd.bi_memsize - 1) + 1); in fixup_pci() 224 out_le32(&pci_regs[0][65], in_le32(&pci_regs[0][65]) | 6); in fixup_pci() 246 dt_fixup_memory(bd.bi_memstart, bd.bi_memsize); in pq2_platform_fixups() 247 dt_fixup_mac_addresses(bd.bi_enetaddr, bd.bi_enet1addr); in pq2_platform_fixups() 248 dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq); in pq2_platform_fixups() 252 setprop(node, "clock-frequency", &bd.bi_cpmfreq, 4); in pq2_platform_fixups() 256 setprop(node, "clock-frequency", &bd.bi_brgfreq, 4); in pq2_platform_fixups()
|
H A D | cuboot-taishan.c | 26 static bd_t bd; variable 36 ibm440gx_fixup_clocks(sysclk, 6 * 1843200, 25000000); in taishan_fixups() 40 dt_fixup_mac_address_by_alias("ethernet0", bd.bi_enetaddr); in taishan_fixups() 41 dt_fixup_mac_address_by_alias("ethernet1", bd.bi_enet1addr); in taishan_fixups()
|
/linux/drivers/net/ethernet/ |
H A D | ethoc.c | 62 #define MODER_IFG (1 << 6) /* interframe gap for incoming frames */ 81 #define INT_MASK_RXC (1 << 6) /* receive control frame */ 159 #define RX_BD_OR (1 << 6) /* receiver overrun */ 254 struct ethoc_bd *bd) in ethoc_read_bd() argument 257 bd->stat = ethoc_read(dev, offset + 0); in ethoc_read_bd() 258 bd->addr = ethoc_read(dev, offset + 4); in ethoc_read_bd() 262 const struct ethoc_bd *bd) in ethoc_write_bd() argument 265 ethoc_write(dev, offset + 0, bd->stat); in ethoc_write_bd() 266 ethoc_write(dev, offset + 4, bd->addr); in ethoc_write_bd() 304 struct ethoc_bd bd; in ethoc_init_ring() local [all …]
|
/linux/drivers/net/ethernet/qlogic/qede/ |
H A D | qede.h | 217 * minimal alignment shift 6 is optimal for 57xxx HW performance 219 #define QEDE_RX_ALIGN_SHIFT max(6, min(8, L1_CACHE_SHIFT)) 306 /* rx_buf is a data buffer that can be placed / consumed from rx bd 309 * buffer on the rx-bd-ring when we receive TPA_START. We don't want 313 * The second purpose is to keep a pointer to the bd buffer during 381 /* Set on the first BD descriptor when there is a split BD */ 443 #define BD_UNMAP_ADDR(bd) HILO_U64(le32_to_cpu((bd)->addr.hi), \ argument 444 le32_to_cpu((bd)->addr.lo)) 445 #define BD_SET_UNMAP_ADDR_LEN(bd, maddr, len) \ argument 447 (bd)->addr.hi = cpu_to_le32(upper_32_bits(maddr)); \ [all …]
|
/linux/drivers/soc/fsl/qe/ |
H A D | ucc_slow.c | 35 case 6: return QE_CR_SUBBLOCK_UCCSLOW7; in ucc_slow_get_qe_cr_subblock() 125 struct qe_bd __iomem *bd; in ucc_slow_init() local 222 bd = uccs->confBd = uccs->tx_bd = qe_muram_addr(uccs->tx_base_offset); in ucc_slow_init() 224 /* clear bd buffer */ in ucc_slow_init() 225 iowrite32be(0, &bd->buf); in ucc_slow_init() 226 /* set bd status and length */ in ucc_slow_init() 227 iowrite32be(0, (u32 __iomem *)bd); in ucc_slow_init() 228 bd++; in ucc_slow_init() 230 /* for last BD set Wrap bit */ in ucc_slow_init() 231 iowrite32be(0, &bd->buf); in ucc_slow_init() [all …]
|
/linux/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_sockopt.c | 138 fprintf(stderr, "Usage: mptcp_sockopt [-6]\n"); in die_usage() 262 case '6': in parse_opts() 278 } bd; in do_getsockopt_bogus_sf_data() local 282 memset(&bd, 0, sizeof(bd)); in do_getsockopt_bogus_sf_data() 288 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 292 bd.d = good_data; in do_getsockopt_bogus_sf_data() 294 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 297 assert(bd.d.num_subflows == 1); in do_getsockopt_bogus_sf_data() 298 assert(bd.d.size_kernel > 0); in do_getsockopt_bogus_sf_data() 299 assert(bd.d.size_user == 0); in do_getsockopt_bogus_sf_data() [all …]
|
/linux/drivers/net/ethernet/freescale/ |
H A D | ucc_geth.c | 80 [UCC_GETH_NUM_OF_THREADS_6] = 6, in ucc_geth_thread_count() 226 u8 __iomem *bd) in get_new_skb() argument 244 out_be32(&((struct qe_bd __iomem *)bd)->buf, in get_new_skb() 251 out_be32((u32 __iomem *)bd, in get_new_skb() 252 (R_E | R_I | (in_be32((u32 __iomem*)bd) & R_W))); in get_new_skb() 259 u8 __iomem *bd; in rx_bd_buffer_set() local 264 bd = ugeth->p_rx_bd_ring[rxQ]; in rx_bd_buffer_set() 268 bd_status = in_be32((u32 __iomem *)bd); in rx_bd_buffer_set() 269 skb = get_new_skb(ugeth, bd); in rx_bd_buffer_set() 277 /* advance the BD pointer */ in rx_bd_buffer_set() [all …]
|
/linux/arch/mips/pci/ |
H A D | pci-xtalk-bridge.c | 472 bc->ioc3_sid[6] = IOC3_SID(IOC3_SUBSYS_IP27_MIO); in bridge_setup_ip27_baseio6g() 474 bc->int_mapping[6][1] = 6; in bridge_setup_ip27_baseio6g() 598 for (i = 0; i < 6; i++) in bridge_get_partnum() 609 struct xtalk_bridge_platform_data *bd = dev_get_platdata(&pdev->dev); in bridge_probe() local 620 if (bridge_get_partnum(virt_to_phys((void *)bd->bridge_addr), partnum)) in bridge_probe() 653 pci_add_resource_offset(&host->windows, &bd->mem, bd->mem_offset); in bridge_probe() 654 pci_add_resource_offset(&host->windows, &bd->io, bd->io_offset); in bridge_probe() 661 bc->nasid = bd->nasid; in bridge_probe() 663 bc->baddr = (u64)bd->masterwid << 60 | PCI64_ATTR_BAR; in bridge_probe() 664 bc->base = (struct bridge_regs *)bd->bridge_addr; in bridge_probe() [all …]
|
/linux/drivers/net/wan/ |
H A D | wanxlfw.S | 21 600 6FF 256 Bytes Dual-Port RAM User Data / BDs 83 SCC_MRBLR = 6 // 16-bit maximum Rx buffer length 318 movel tx_first_bd(%d0), %a1 // A1 = starting TX BD address 320 movel #0x18000000, %d3 // D3 = initial TX BD flags: Int + Last 323 bsetl #26, %d3 // TX BD flag: Transmit CRC 330 bsetl #29, %d3 // TX BD flag: Wrap (last BD) 334 // Setup RX descriptors // A1 = starting RX BD address 418 lsll #4, %d1 // D1 bits 7 and 6 = port 452 movel %d1, %d2 // D1 = D2 = tx_out BD# = desc# 461 lsll #3, %d1 // BD is 8-bytes long [all …]
|
/linux/Documentation/devicetree/bindings/net/bluetooth/ |
H A D | ti,bluetooth.yaml | 67 Nvmem data cell that contains a 6 byte BD address with the most 72 - const: bd-address 93 nvmem-cell-names = "bd-address";
|
H A D | bluetooth-controller.yaml | 18 local-bd-address: 20 maxItems: 6 22 Specifies the BD address that was uniquely assigned to the Bluetooth
|
/linux/drivers/dma/ |
H A D | imx-sdma.c | 123 * Change endianness indicator in the BD command field 198 #define SDMA_DONE0_CONFIG_DONE_DIS BIT(6) 267 u32 count : 16; /* size of the buffer pointed by this BD */ 348 * @scratch5: 6th word of dedicated ram for context switch 386 * @bd_phys: physical address of bd 390 * @chn_real_count: the real count updated from bd->mode.count 393 * @bd: pointer of allocate bd 405 struct sdma_buffer_descriptor *bd; member 432 * @shp_addr: value for gReg[6] 861 struct sdma_buffer_descriptor *bd; in sdma_update_channel_loop() local [all …]
|
/linux/drivers/staging/fbtft/ |
H A D | fb_ssd1351.c | 143 tmp[4], tmp[5], tmp[6], tmp[7], in set_gamma() 189 static int update_onboard_backlight(struct backlight_device *bd) in update_onboard_backlight() argument 191 struct fbtft_par *par = bl_get_data(bd); in update_onboard_backlight() 194 fbtft_par_dbg(DEBUG_BACKLIGHT, par, "%s: power=%d\n", __func__, bd->props.power); in update_onboard_backlight() 196 on = !backlight_is_blank(bd); in update_onboard_backlight() 209 struct backlight_device *bd; in register_onboard_backlight() local 215 bd = backlight_device_register(dev_driver_string(par->info->device), in register_onboard_backlight() 218 if (IS_ERR(bd)) { in register_onboard_backlight() 221 PTR_ERR(bd)); in register_onboard_backlight() 224 par->info->bl_dev = bd; in register_onboard_backlight()
|
/linux/drivers/net/ethernet/intel/e1000/ |
H A D | e1000_param.c | 77 * Bit 7 6 5 4 3 2 1 0 246 int bd = adapter->bd_number; in e1000_check_options() local 248 if (bd >= E1000_MAX_NIC) { in e1000_check_options() 250 "using defaults for all values\n", bd); in e1000_check_options() 270 if (num_TxDescriptors > bd) { in e1000_check_options() 271 tx_ring->count = TxDescriptors[bd]; in e1000_check_options() 299 if (num_RxDescriptors > bd) { in e1000_check_options() 300 rx_ring->count = RxDescriptors[bd]; in e1000_check_options() 318 if (num_XsumRX > bd) { in e1000_check_options() 319 unsigned int rx_csum = XsumRX[bd]; in e1000_check_options() [all …]
|
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_legacy_encoders.c | 323 static uint8_t radeon_legacy_lvds_level(struct backlight_device *bd) in radeon_legacy_lvds_level() argument 325 struct radeon_backlight_privdata *pdata = bl_get_data(bd); in radeon_legacy_lvds_level() 329 if (bd->props.brightness < 0) in radeon_legacy_lvds_level() 331 else if (bd->props.brightness > RADEON_MAX_BL_LEVEL) in radeon_legacy_lvds_level() 334 level = bd->props.brightness; in radeon_legacy_lvds_level() 342 static int radeon_legacy_backlight_update_status(struct backlight_device *bd) in radeon_legacy_backlight_update_status() argument 344 struct radeon_backlight_privdata *pdata = bl_get_data(bd); in radeon_legacy_backlight_update_status() 348 radeon_legacy_lvds_level(bd)); in radeon_legacy_backlight_update_status() 353 static int radeon_legacy_backlight_get_brightness(struct backlight_device *bd) in radeon_legacy_backlight_get_brightness() argument 355 struct radeon_backlight_privdata *pdata = bl_get_data(bd); in radeon_legacy_backlight_get_brightness() [all …]
|