/linux/drivers/misc/eeprom/ |
H A D | ee1004.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ee1004 - driver for DDR4 SPD EEPROMs 5 * Copyright (C) 2017-2019 Jean Delvare 8 * Copyright (C) 2005-2007 David Brownell 19 #include <linux/nvmem-provider.h> 23 * specification. These are 512-byte EEPROMs using a single I2C address 24 * in the 0x50-0x57 range for data. One of two 256-byte page is selected 25 * by writing a command to I2C address 0x36 or 0x37 on the same I2C bus. 62 /*-------------------------------------------------------------------------*/ 82 static int ee1004_get_current_page(struct ee1004_bus_data *bd) in ee1004_get_current_page() argument [all …]
|
/linux/drivers/net/ethernet/arc/ |
H A D | emac.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (C) 2004-2013 Synopsys, Inc. (www.synopsys.com) 12 #include <linux/dma-mapping.h> 27 #define TXPL_MASK (1 << 31) /* Force polling of BD by EMAC */ 34 #define ENFL_MASK (1 << 10) /* Enable Full-duplex */ 38 #define OWN_MASK (1 << 31) /* 0-CPU or 1-EMAC owns buffer */ 77 * struct arc_emac_bd - EMAC buffer descriptor (BD). 80 * @data: 32-bit byte addressable pointer to the packet data. 87 /* Number of Rx/Tx BD's */ 95 * struct buffer_state - Stores Rx/Tx buffer state. [all …]
|
/linux/drivers/net/wan/ |
H A D | wanxlfw.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 14 0x000 - 0x050 TX#0 0x050 - 0x140 RX#0 15 0x140 - 0x190 TX#1 0x190 - 0x280 RX#1 16 0x280 - 0x2D0 TX#2 0x2D0 - 0x3C0 RX#2 17 0x3C0 - 0x410 TX#3 0x410 - 0x500 RX#3 20 000 5FF 1536 Bytes Dual-Port RAM User Data / BDs 21 600 6FF 256 Bytes Dual-Port RAM User Data / BDs 22 700 7FF 256 Bytes Dual-Port RAM User Data / BDs 23 C00 CBF 192 Bytes Dual-Port RAM Parameter RAM Page 1 24 D00 DBF 192 Bytes Dual-Port RAM Parameter RAM Page 2 [all …]
|
/linux/drivers/scsi/bnx2i/ |
H A D | bnx2i.h | 3 * Copyright (c) 2006 - 2013 Broadcom Corporation 14 * Maintained by: QLogic-Storage-Upstream@qlogic.com 60 #define ISCSI_MAX_CMDS_PER_HBA_5708 (28 * (ISCSI_MAX_CMDS_PER_SESS - 1)) 61 #define ISCSI_MAX_CMDS_PER_HBA_5709 (128 * (ISCSI_MAX_CMDS_PER_SESS - 1)) 62 #define ISCSI_MAX_CMDS_PER_HBA_57710 (256 * (ISCSI_MAX_CMDS_PER_SESS - 1)) 71 /* 5706/08 hardware has limit on maximum buffer size per BD it can handle */ 129 readl(__hba->regview + offset) 131 writel(val, __hba->regview + offset) 136 spin_lock_bh(&__hba->stat_lock); \ 137 dst->field##_lo = __hba->stats.field##_lo; \ [all …]
|
/linux/include/soc/fsl/qe/ |
H A D | ucc_slow.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 21 /* transmit BD's status */ 28 #define T_A 0x04000000 /* Address - the data transmitted as address 33 #define T_P 0x01000000 /* Preamble - send Preamble sequence before 44 /* Receive BD's status */ 52 #define R_A 0x04000000 /* the first byte in this buffer is address 58 #define R_AM 0x00800000 /* Address match */ 59 #define R_DE 0x00800000 /* Address match */ 89 /* 16-bit CCITT CRC (HDLC). (X16 + X12 + X5 + 1) */ 93 /* 32-bit CCITT CRC (Ethernet and HDLC) */ [all …]
|
/linux/drivers/video/backlight/ |
H A D | ams369fg06.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 36 struct backlight_device *bd; member 172 return spi_sync(lcd->spi, &msg); in ams369fg06_spi_write_byte() 175 static int ams369fg06_spi_write(struct ams369fg06 *lcd, unsigned char address, in ams369fg06_spi_write() argument 180 if (address != DATA_ONLY) in ams369fg06_spi_write() 181 ret = ams369fg06_spi_write_byte(lcd, 0x70, address); in ams369fg06_spi_write() 218 dev_err(lcd->dev, "failed to set gamma table.\n"); in _ams369fg06_gamma_ctl() 309 struct backlight_device *bd; in ams369fg06_power_on() local 311 pd = lcd->lcd_pd; in ams369fg06_power_on() 312 bd = lcd->bd; in ams369fg06_power_on() [all …]
|
/linux/drivers/dma/ |
H A D | amba-pl08x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (c) 2010 ST-Ericsson SA 27 * - CH_CONFIG register at different offset, 28 * - separate CH_CONTROL2 register for transfer size, 29 * - bigger maximum transfer size, 30 * - 8-word aligned LLI, instead of 4-word, due to extra CCTL2 word, 31 * - no support for peripheral flow control. 45 * (Bursts are irrelevant for mem to mem transfers - there are no burst 51 * - DMAC flow control: the transfer size defines the number of transfers 58 * - Peripheral flow control: the transfer size is ignored (and should be [all …]
|
/linux/include/linux/fsl/bestcomm/ |
H A D | bestcomm.h | 7 * ( by Andrey Volkov <avolkov@varma-el.com> ) 8 * Copyright (C) 2003-2004 MontaVista, Software, Inc. 20 * struct bcom_bd - Structure describing a generic BestComm buffer descriptor 38 * struct bcom_task - Structure describing a loaded BestComm task 52 struct bcom_bd *bd; member 67 * bcom_enable - Enable a BestComm task 76 * bcom_disable - Disable a BestComm task 86 * bcom_get_task_irq - Returns the irq number of a BestComm task 91 return tsk->irq; in bcom_get_task_irq() 95 /* BD based tasks helpers */ [all …]
|
/linux/drivers/net/wireless/ath/wcn36xx/ |
H A D | dxe.h | 40 /* BD handling bit */ 46 /* Pointer address is a queue */ 74 /* BD Template index */ 138 #define WCN36XX_DXE_WQ_TX_L(wcn) ((wcn)->is_pronto_v3 ? 0x6 : 0x17) 139 #define WCN36XX_DXE_WQ_TX_H(wcn) ((wcn)->is_pronto_v3 ? 0x6 : 0x17) 147 /* BD Handling bit */ 198 /* Channel BD template index */ 286 /* Address of the next DXE descriptor */ 301 /* DXE Descriptor source address */ 310 /* DXE Descriptor address destination address */ [all …]
|
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() 40 /* Buffer descriptor rx_ch field is limited to 5-bit (4+1), a mapping is used 134 /* 11ac 20 MHz 800ns GI MCS 0-8 */ 156 /* 11ac 20 MHz 400ns SGI MCS 6-8 */ 166 /* 11ac 40 MHz 800ns GI MCS 0-9 */ 187 /* 11ac 40 MHz 400ns SGI MCS 5-7 */ 195 /* 11ac 40 MHz 400ns SGI MCS 5-7 */ [all …]
|
/linux/drivers/net/ethernet/freescale/ |
H A D | fec_main.c | 1 // SPDX-License-Identifier: GPL-2.0+ 17 * Copyright (c) 2001-2005 Greg Ungerer (gerg@snapgear.com) 20 * Copyright (c) 2004-2006 Macq Electronique SA. 22 * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. 194 { .compatible = "fsl,imx25-fec", .data = &fec_imx25_info, }, 195 { .compatible = "fsl,imx27-fec", .data = &fec_imx27_info, }, 196 { .compatible = "fsl,imx28-fec", .data = &fec_imx28_info, }, 197 { .compatible = "fsl,imx6q-fec", .data = &fec_imx6q_info, }, 198 { .compatible = "fsl,mvf600-fec", .data = &fec_mvf600_info, }, 199 { .compatible = "fsl,imx6sx-fec", .data = &fec_imx6x_info, }, [all …]
|
H A D | ucc_geth.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (C) Freescale Semicondutor, Inc. 2006-2009. All rights reserved. 12 * - Rearrange code and style fixes 40 u8 res0[0x100 - sizeof(struct ucc_fast)]; 45 u32 hafdup; /* half-duplex reg. */ 50 u32 macstnaddr1; /* mac station address part 1 reg */ 51 u32 macstnaddr2; /* mac station address part 2 reg */ 54 u32 utbipar; /* UCC tbi address reg */ 56 u8 res3[0x180 - 0x15A]; 85 successfully with the group address bit set [all …]
|
/linux/Documentation/devicetree/bindings/net/bluetooth/ |
H A D | brcm,bcm4377-bluetooth.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/bluetooth/brcm,bcm4377-bluetooth.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sven Peter <sven@svenpeter.dev> 13 This binding describes Broadcom BCM4377 family PCIe-attached bluetooth chips 14 usually found in Apple machines. The Wi-Fi part of the chip is described in 15 bindings/net/wireless/brcm,bcm4329-fmac.yaml. 18 - $ref: bluetooth-controller.yaml# 23 - pci14e4,5fa0 # BCM4377 [all …]
|
H A D | ti,bluetooth.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - David Lechner <david@lechnology.com> 32 - ti,cc2560 33 - ti,wl1271-st 34 - ti,wl1273-st 35 - ti,wl1281-st 36 - ti,wl1283-st 37 - ti,wl1285-st [all …]
|
H A D | bluetooth-controller.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/bluetooth/bluetooth-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Marcel Holtmann <marcel@holtmann.org> 11 - Johan Hedberg <johan.hedberg@gmail.com> 12 - Luiz Augusto von Dentz <luiz.dentz@gmail.com> 18 local-bd-address: 19 $ref: /schemas/types.yaml#/definitions/uint8-array 22 Specifies the BD address that was uniquely assigned to the Bluetooth [all …]
|
/linux/drivers/platform/x86/intel/ |
H A D | oaktrail.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2010-2011 Intel Corporation 44 * This is the devices status address in EC space, and the control bits 64 * This is the address in EC space and commands used to control LCD backlight: 73 * LCD backlight brightness range: 0 - 100 (OT_EC_BL_BRIGHTNESS_MAX) 123 rfkill_dev = rfkill_alloc(name, &oaktrail_device->dev, type, in oaktrail_rfkill_new() 126 return ERR_PTR(-ENOMEM); in oaktrail_rfkill_new() 160 wifi_rfkill = oaktrail_rfkill_new("oaktrail-wifi", in oaktrail_rfkill_init() 169 bt_rfkill = oaktrail_rfkill_new("oaktrail-bluetooth", in oaktrail_rfkill_init() 178 gps_rfkill = oaktrail_rfkill_new("oaktrail-gps", in oaktrail_rfkill_init() [all …]
|
/linux/drivers/scsi/qedi/ |
H A D | qedi_iscsi.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 110 * struct generic_pdu_resc - login pdu resource structure 114 * @req_dma_addr: dma address for iscsi login request payload buffer 121 * @resp_dma_addr: login response payload buffer dma address 125 * @req_bd_tbl: iscsi login request payload BD table 126 * @req_bd_dma: login request BD table dma address 127 * @resp_bd_tbl: iscsi login response payload BD table 128 * @resp_bd_dma: login request BD table dma address 236 #define QEDI_OFLD_WAIT_STATE(q) ((q)->state == EP_STATE_OFLDCONN_FAILED || \ 237 (q)->state == EP_STATE_OFLDCONN_COMPL)
|
/linux/drivers/staging/fbtft/ |
H A D | fb_ssd1351.c | 1 // SPDX-License-Identifier: GPL-2.0 30 if (par->pdata && in init_display() 31 par->pdata->display.backlight == FBTFT_ONBOARD_BACKLIGHT) { in init_display() 33 par->fbtftops.register_backlight = register_onboard_backlight; in init_display() 36 par->fbtftops.reset(par); in init_display() 43 write_reg(par, 0x15, 0x00, 0x7f); /* Set Column Address */ in init_display() 44 write_reg(par, 0x75, 0x00, 0x7f); /* Set Row Address */ in init_display() 73 if (par->fbtftops.init_display != init_display) { in set_var() 78 remap = 0x60 | (par->bgr << 2); /* Set Colour Depth */ in set_var() 80 switch (par->info->var.rotate) { in set_var() [all …]
|
/linux/drivers/accel/habanalabs/common/ |
H A D | hw_queue.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright 2016-2019 HabanaLabs, Ltd. 13 * hl_queue_add_ptr - add to pi or ci and checks if it wraps around 23 ptr &= ((HL_QUEUE_LENGTH << 1) - 1); in hl_hw_queue_add_ptr() 28 return atomic_read(ci) & ((queue_len << 1) - 1); in queue_ci_get() 33 int delta = (q->pi - queue_ci_get(&q->ci, queue_len)); in queue_free_slots() 36 return (queue_len - delta); in queue_free_slots() 38 return (abs(delta) - queue_len); in queue_free_slots() 43 struct hl_device *hdev = cs->ctx->hdev; in hl_hw_queue_update_ci() 47 if (hdev->disabled) in hl_hw_queue_update_ci() [all …]
|
/linux/drivers/usb/gadget/udc/bdc/ |
H A D | bdc_ep.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * bdc_ep.c - BRCM BDC USB3.0 device controller endpoint related functions 13 #include <linux/dma-mapping.h> 54 struct bd_list *bd_list = &ep->bd_list; in ep_bd_list_free() 55 struct bdc *bdc = ep->bdc; in ep_bd_list_free() 59 dev_dbg(bdc->dev, "%s ep:%s num_tabs:%d\n", in ep_bd_list_free() 60 __func__, ep->name, num_tabs); in ep_bd_list_free() 62 if (!bd_list->bd_table_array) { in ep_bd_list_free() 63 dev_dbg(bdc->dev, "%s already freed\n", ep->name); in ep_bd_list_free() 69 * if yes, then check if bd memory has been allocated, then in ep_bd_list_free() [all …]
|
/linux/drivers/soc/fsl/qe/ |
H A D | ucc_slow.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * QE UCC Slow API Set - UCC Slow specific routines implementations. 44 struct ucc_slow_info *us_info = uccs->us_info; in ucc_slow_graceful_stop_tx() 47 id = ucc_slow_get_qe_cr_subblock(us_info->ucc_num); in ucc_slow_graceful_stop_tx() 55 struct ucc_slow_info *us_info = uccs->us_info; in ucc_slow_stop_tx() 58 id = ucc_slow_get_qe_cr_subblock(us_info->ucc_num); in ucc_slow_stop_tx() 65 struct ucc_slow_info *us_info = uccs->us_info; in ucc_slow_restart_tx() 68 id = ucc_slow_get_qe_cr_subblock(us_info->ucc_num); in ucc_slow_restart_tx() 78 us_regs = uccs->us_regs; in ucc_slow_enable() 81 gumr_l = ioread32be(&us_regs->gumr_l); in ucc_slow_enable() [all …]
|
/linux/fs/gfs2/ |
H A D | meta_io.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 4 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 49 * If it's a fully non-blocking write attempt and we cannot in gfs2_aspace_write_folio() 51 * potentially cause a busy-wait loop from flusher thread and kswapd in gfs2_aspace_write_folio() 52 * activity, but those code paths have their own higher-level in gfs2_aspace_write_folio() 55 if (wbc->sync_mode != WB_SYNC_NONE) { in gfs2_aspace_write_folio() 66 } while ((bh = bh->b_this_page) != head); in gfs2_aspace_write_folio() 76 struct buffer_head *next = bh->b_this_page; in gfs2_aspace_write_folio() 116 * gfs2_getbuf - Get a buffer with a given address space [all …]
|
H A D | aops.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 4 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 19 #include <linux/backing-dev.h> 44 unsigned int bsize = head->b_size; in gfs2_trans_add_databufs() 50 bh = bh->b_this_page, start = end) { in gfs2_trans_add_databufs() 57 gfs2_trans_add_data(ip->i_gl, bh); in gfs2_trans_add_databufs() 62 * gfs2_get_block_noalloc - Fills in a buffer head with details about a block 66 * @create: Non-zero if we may add block to the file 80 return -ENODATA; in gfs2_get_block_noalloc() [all …]
|
/linux/include/linux/qed/ |
H A D | eth_common.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 41 #define ETH_TX_MAX_NON_LSO_PKT_LEN (9700 - (4 + 4 + 12 + 8)) 43 #define ETH_TX_LSO_WINDOW_BDS_NUM (18 - 1) 51 (ETH_NUM_STATISTIC_COUNTERS - MAX_NUM_VFS / 2) 53 (ETH_NUM_STATISTIC_COUNTERS - 3 * MAX_NUM_VFS / 4) 96 /* Ethernet address type */ 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 */ [all …]
|
/linux/arch/powerpc/boot/ |
H A D | cuboot-pq2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Old U-boot compatibility for PowerQUICC II 15 #include "fsl-soc.h" 21 static bd_t bd; variable 40 /* Different versions of u-boot put the BCSR in different places, and 44 * For any node defined as compatible with fsl,pq2-localbus, 45 * #address/#size must be 2/1 for the localbus, and 1/1 for the parent bus. 58 if (!bus_node || !dt_is_compatible(bus_node, "fsl,pq2-localbus")) in update_cs_ranges() 103 option | ~(cs_ranges_buf[i].size - 1)); in update_cs_ranges() 113 /* Older u-boots don't set PCI up properly. Update the hardware to match [all …]
|