Home
last modified time | relevance | path

Searched refs:bp (Results 1 – 25 of 109) sorted by relevance

12345

/drivers/net/ethernet/broadcom/
Dbnx2.c249 static void bnx2_init_napi(struct bnx2 *bp);
250 static void bnx2_del_napi(struct bnx2 *bp);
252 static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr) in bnx2_tx_avail() argument
268 return bp->tx_ring_size - diff; in bnx2_tx_avail()
272 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset) in bnx2_reg_rd_ind() argument
276 spin_lock_bh(&bp->indirect_lock); in bnx2_reg_rd_ind()
277 BNX2_WR(bp, BNX2_PCICFG_REG_WINDOW_ADDRESS, offset); in bnx2_reg_rd_ind()
278 val = BNX2_RD(bp, BNX2_PCICFG_REG_WINDOW); in bnx2_reg_rd_ind()
279 spin_unlock_bh(&bp->indirect_lock); in bnx2_reg_rd_ind()
284 bnx2_reg_wr_ind(struct bnx2 *bp, u32 offset, u32 val) in bnx2_reg_wr_ind() argument
[all …]
Db44.c166 static inline unsigned long br32(const struct b44 *bp, unsigned long reg) in br32() argument
168 return ssb_read32(bp->sdev, reg); in br32()
171 static inline void bw32(const struct b44 *bp, in bw32() argument
174 ssb_write32(bp->sdev, reg, val); in bw32()
177 static int b44_wait_bit(struct b44 *bp, unsigned long reg, in b44_wait_bit() argument
183 u32 val = br32(bp, reg); in b44_wait_bit()
193 netdev_err(bp->dev, "BUG! Timeout waiting for bit %08x of register %lx to %s\n", in b44_wait_bit()
201 static inline void __b44_cam_read(struct b44 *bp, unsigned char *data, int index) in __b44_cam_read() argument
205 bw32(bp, B44_CAM_CTRL, (CAM_CTRL_READ | in __b44_cam_read()
208 b44_wait_bit(bp, B44_CAM_CTRL, CAM_CTRL_BUSY, 100, 1); in __b44_cam_read()
[all …]
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c287 static int bnx2x_set_storm_rx_mode(struct bnx2x *bp);
293 static int bnx2x_hwtstamp_ioctl(struct bnx2x *bp, struct ifreq *ifr);
295 static void __storm_memset_dma_mapping(struct bnx2x *bp, in __storm_memset_dma_mapping() argument
298 REG_WR(bp, addr, U64_LO(mapping)); in __storm_memset_dma_mapping()
299 REG_WR(bp, addr + 4, U64_HI(mapping)); in __storm_memset_dma_mapping()
302 static void storm_memset_spq_addr(struct bnx2x *bp, in storm_memset_spq_addr() argument
308 __storm_memset_dma_mapping(bp, addr, mapping); in storm_memset_spq_addr()
311 static void storm_memset_vf_to_pf(struct bnx2x *bp, u16 abs_fid, in storm_memset_vf_to_pf() argument
314 REG_WR8(bp, BAR_XSTRORM_INTMEM + XSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
316 REG_WR8(bp, BAR_CSTRORM_INTMEM + CSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
[all …]
Dbnx2x.h45 #define BNX2X_MIN_MSIX_VEC_CNT(bp) ((bp)->min_msix_vec_cnt) argument
86 bp->dev ? (bp->dev->name) : "?", \
91 if (unlikely(bp->msg_enable & (__mask))) \
97 if (unlikely((bp->msg_enable & (__mask)) == __mask)) \
103 if (unlikely(bp->msg_enable & (__mask))) \
110 if (unlikely(netif_msg_probe(bp))) \
113 bp->dev ? (bp->dev->name) : "?", \
122 bp->dev ? (bp->dev->name) : "?", \
132 if (unlikely(netif_msg_probe(bp))) \
133 dev_info(&bp->pdev->dev, fmt, ##__VA_ARGS__); \
[all …]
Dbnx2x_cmn.c34 static void bnx2x_free_fp_mem_cnic(struct bnx2x *bp);
35 static int bnx2x_alloc_fp_mem_cnic(struct bnx2x *bp);
36 static int bnx2x_alloc_fp_mem(struct bnx2x *bp);
39 static void bnx2x_add_all_napi_cnic(struct bnx2x *bp) in bnx2x_add_all_napi_cnic() argument
44 for_each_rx_queue_cnic(bp, i) { in bnx2x_add_all_napi_cnic()
45 netif_napi_add(bp->dev, &bnx2x_fp(bp, i, napi), in bnx2x_add_all_napi_cnic()
47 napi_hash_add(&bnx2x_fp(bp, i, napi)); in bnx2x_add_all_napi_cnic()
51 static void bnx2x_add_all_napi(struct bnx2x *bp) in bnx2x_add_all_napi() argument
56 for_each_eth_queue(bp, i) { in bnx2x_add_all_napi()
57 netif_napi_add(bp->dev, &bnx2x_fp(bp, i, napi), in bnx2x_add_all_napi()
[all …]
Dbnx2x_cmn.h37 dma_free_coherent(&bp->pdev->dev, size, (void *)x, y); \
53 void *x = dma_zalloc_coherent(&bp->pdev->dev, size, y, GFP_KERNEL); \
62 void *x = dma_alloc_coherent(&bp->pdev->dev, size, y, GFP_KERNEL); \
85 u32 bnx2x_send_unload_req(struct bnx2x *bp, int unload_mode);
93 void bnx2x_send_unload_done(struct bnx2x *bp, bool keep_link);
104 int bnx2x_rss(struct bnx2x *bp, struct bnx2x_rss_config_obj *rss_obj,
116 void bnx2x__init_func_obj(struct bnx2x *bp);
126 int bnx2x_setup_queue(struct bnx2x *bp, struct bnx2x_fastpath *fp,
134 int bnx2x_setup_leading(struct bnx2x *bp);
145 u32 bnx2x_fw_command(struct bnx2x *bp, u32 command, u32 param);
[all …]
Dbnx2x_stats.c42 static inline u16 bnx2x_get_port_stats_dma_len(struct bnx2x *bp) in bnx2x_get_port_stats_dma_len() argument
47 if (SHMEM2_HAS(bp, sizeof_port_stats)) { in bnx2x_get_port_stats_dma_len()
48 u32 size = SHMEM2_RD(bp, sizeof_port_stats); in bnx2x_get_port_stats_dma_len()
64 if (bp->flags & BC_SUPPORTS_PFC_STATS) { in bnx2x_get_port_stats_dma_len()
82 static void bnx2x_dp_stats(struct bnx2x *bp) in bnx2x_dp_stats() argument
94 bp->fw_stats_req->hdr.cmd_num, in bnx2x_dp_stats()
95 bp->fw_stats_req->hdr.reserved0, in bnx2x_dp_stats()
96 bp->fw_stats_req->hdr.drv_stats_counter, in bnx2x_dp_stats()
97 bp->fw_stats_req->hdr.reserved1, in bnx2x_dp_stats()
98 bp->fw_stats_req->hdr.stats_counters_addrs.hi, in bnx2x_dp_stats()
[all …]
Dbnx2x_ethtool.c190 static int bnx2x_get_port_type(struct bnx2x *bp) in bnx2x_get_port_type() argument
193 u32 phy_idx = bnx2x_get_cur_phy_idx(bp); in bnx2x_get_port_type()
194 switch (bp->link_params.phy[phy_idx].media_type) { in bnx2x_get_port_type()
222 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_vf_settings() local
224 if (bp->state == BNX2X_STATE_OPEN) { in bnx2x_get_vf_settings()
226 &bp->vf_link_vars.link_report_flags)) in bnx2x_get_vf_settings()
231 ethtool_cmd_speed_set(cmd, bp->vf_link_vars.line_speed); in bnx2x_get_vf_settings()
258 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_settings() local
259 int cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_get_settings()
262 cmd->supported = bp->port.supported[cfg_idx] | in bnx2x_get_settings()
[all …]
Dbnx2x_init_ops.h20 #define BP_ILT(bp) NULL argument
24 #define BP_FUNC(bp) 0 argument
28 #define BP_PORT(bp) 0 argument
43 static int bnx2x_gunzip(struct bnx2x *bp, const u8 *zbuf, int len);
44 static void bnx2x_reg_wr_ind(struct bnx2x *bp, u32 addr, u32 val);
45 static void bnx2x_write_dmae_phys_len(struct bnx2x *bp,
49 static void bnx2x_init_str_wr(struct bnx2x *bp, u32 addr, in bnx2x_init_str_wr() argument
55 REG_WR(bp, addr + i*4, data[i]); in bnx2x_init_str_wr()
58 static void bnx2x_init_ind_wr(struct bnx2x *bp, u32 addr, in bnx2x_init_ind_wr() argument
64 bnx2x_reg_wr_ind(bp, addr + i*4, data[i]); in bnx2x_init_ind_wr()
[all …]
Dbnx2x_sriov.c27 static int bnx2x_vf_op_prep(struct bnx2x *bp, int vfidx,
33 static void storm_memset_vf_to_pf(struct bnx2x *bp, u16 abs_fid, in storm_memset_vf_to_pf() argument
36 REG_WR8(bp, BAR_XSTRORM_INTMEM + XSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
38 REG_WR8(bp, BAR_CSTRORM_INTMEM + CSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
40 REG_WR8(bp, BAR_TSTRORM_INTMEM + TSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
42 REG_WR8(bp, BAR_USTRORM_INTMEM + USTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
46 static void storm_memset_func_en(struct bnx2x *bp, u16 abs_fid, in storm_memset_func_en() argument
49 REG_WR8(bp, BAR_XSTRORM_INTMEM + XSTORM_FUNC_EN_OFFSET(abs_fid), in storm_memset_func_en()
51 REG_WR8(bp, BAR_CSTRORM_INTMEM + CSTORM_FUNC_EN_OFFSET(abs_fid), in storm_memset_func_en()
53 REG_WR8(bp, BAR_TSTRORM_INTMEM + TSTORM_FUNC_EN_OFFSET(abs_fid), in storm_memset_func_en()
[all …]
Dbnx2x_sriov.h210 #define BNX2X_NR_VIRTFN(bp) ((bp)->vfdb->sriov.nr_virtfn) argument
212 #define for_each_vf(bp, var) \ argument
213 for ((var) = 0; (var) < BNX2X_NR_VIRTFN(bp); (var)++)
223 #define HW_VF_HANDLE(bp, abs_vfid) \ argument
224 (u16)(BP_ABS_FUNC((bp)) | (1<<3) | ((u16)(abs_vfid) << 4))
232 void bnx2x_lock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf,
235 void bnx2x_unlock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf,
299 #define BP_VFDB(bp) ((bp)->vfdb) argument
302 #define BP_VF(bp, idx) ((BP_VFDB(bp) && (bp)->vfdb->vfs) ? \ argument
303 &((bp)->vfdb->vfs[idx]) : NULL)
[all …]
Dbnx2x_dcb.c33 static void bnx2x_pfc_set_pfc(struct bnx2x *bp);
34 static void bnx2x_dcbx_update_ets_params(struct bnx2x *bp);
35 static void bnx2x_dcbx_get_ets_pri_pg_tbl(struct bnx2x *bp,
38 static void bnx2x_dcbx_get_num_pg_traf_type(struct bnx2x *bp,
41 static void bnx2x_dcbx_fill_cos_params(struct bnx2x *bp,
45 static void bnx2x_dcbx_separate_pauseable_from_non(struct bnx2x *bp,
49 static void bnx2x_dcbx_fw_struct(struct bnx2x *bp,
53 static void bnx2x_read_data(struct bnx2x *bp, u32 *buff, in bnx2x_read_data() argument
58 *buff = REG_RD(bp, addr + i); in bnx2x_read_data()
61 static void bnx2x_write_data(struct bnx2x *bp, u32 *buff, in bnx2x_write_data() argument
[all …]
Dbnx2x_vfpf.c24 static int bnx2x_vfpf_teardown_queue(struct bnx2x *bp, int qidx);
27 static void bnx2x_add_tlv(struct bnx2x *bp, void *tlvs_list, in bnx2x_add_tlv() argument
38 static void bnx2x_vfpf_prep(struct bnx2x *bp, struct vfpf_first_tlv *first_tlv, in bnx2x_vfpf_prep() argument
41 mutex_lock(&bp->vf2pf_mutex); in bnx2x_vfpf_prep()
47 memset(bp->vf2pf_mbox, 0, sizeof(struct bnx2x_vf_mbx_msg)); in bnx2x_vfpf_prep()
50 bnx2x_add_tlv(bp, &first_tlv->tl, 0, type, length); in bnx2x_vfpf_prep()
53 first_tlv->resp_msg_offset = sizeof(bp->vf2pf_mbox->req); in bnx2x_vfpf_prep()
57 static void bnx2x_vfpf_finalize(struct bnx2x *bp, in bnx2x_vfpf_finalize() argument
63 mutex_unlock(&bp->vf2pf_mutex); in bnx2x_vfpf_finalize()
67 static void *bnx2x_search_tlv_list(struct bnx2x *bp, void *tlvs_list, in bnx2x_search_tlv_list() argument
[all …]
Dbnx2x_link.c220 static u32 bnx2x_bits_en(struct bnx2x *bp, u32 reg, u32 bits) in bnx2x_bits_en() argument
222 u32 val = REG_RD(bp, reg); in bnx2x_bits_en()
225 REG_WR(bp, reg, val); in bnx2x_bits_en()
229 static u32 bnx2x_bits_dis(struct bnx2x *bp, u32 reg, u32 bits) in bnx2x_bits_dis() argument
231 u32 val = REG_RD(bp, reg); in bnx2x_bits_dis()
234 REG_WR(bp, reg, val); in bnx2x_bits_dis()
251 struct bnx2x *bp = params->bp; in bnx2x_check_lfa() local
254 REG_RD(bp, params->lfa_base + in bnx2x_check_lfa()
262 REG_WR(bp, params->lfa_base + in bnx2x_check_lfa()
269 link_status = REG_RD(bp, params->shmem_base + in bnx2x_check_lfa()
[all …]
Dbnx2x_dcb.h71 #define BNX2X_IS_ETS_ENABLED(bp) ((bp)->dcb_state == BNX2X_DCB_STATE_ON &&\ argument
72 (bp)->dcbx_port_params.ets.enabled)
153 #define DCBX_PFC_PRI_NON_PAUSE_MASK(bp) \ argument
154 ((bp)->dcbx_port_params.pfc.priority_non_pauseable_mask)
155 #define DCBX_PFC_PRI_PAUSE_MASK(bp) \ argument
156 ((u8)~DCBX_PFC_PRI_NON_PAUSE_MASK(bp))
157 #define DCBX_PFC_PRI_GET_PAUSE(bp, pg_pri) \ argument
158 ((pg_pri) & (DCBX_PFC_PRI_PAUSE_MASK(bp)))
159 #define DCBX_PFC_PRI_GET_NON_PAUSE(bp, pg_pri) \ argument
160 (DCBX_PFC_PRI_NON_PAUSE_MASK(bp) & (pg_pri))
[all …]
Dbnx2x_sp.c46 static inline void bnx2x_exe_queue_init(struct bnx2x *bp, in bnx2x_exe_queue_init() argument
77 static inline void bnx2x_exe_queue_free_elem(struct bnx2x *bp, in bnx2x_exe_queue_free_elem() argument
109 static inline int bnx2x_exe_queue_add(struct bnx2x *bp, in bnx2x_exe_queue_add() argument
120 rc = o->optimize(bp, o->owner, elem); in bnx2x_exe_queue_add()
125 rc = o->validate(bp, o->owner, elem); in bnx2x_exe_queue_add()
140 bnx2x_exe_queue_free_elem(bp, elem); in bnx2x_exe_queue_add()
148 struct bnx2x *bp, in __bnx2x_exe_queue_reset_pending() argument
158 bnx2x_exe_queue_free_elem(bp, elem); in __bnx2x_exe_queue_reset_pending()
171 static inline int bnx2x_exe_queue_step(struct bnx2x *bp, in bnx2x_exe_queue_step() argument
189 __bnx2x_exe_queue_reset_pending(bp, o); in bnx2x_exe_queue_step()
[all …]
/drivers/net/fddi/
Ddefxx.c266 static void dfx_bus_config_check(DFX_board_t *bp);
271 static int dfx_adap_init(DFX_board_t *bp, int get_buffers);
276 static void dfx_int_pr_halt_id(DFX_board_t *bp);
277 static void dfx_int_type_0_process(DFX_board_t *bp);
284 static int dfx_ctl_update_cam(DFX_board_t *bp);
285 static int dfx_ctl_update_filters(DFX_board_t *bp);
287 static int dfx_hw_dma_cmd_req(DFX_board_t *bp);
288 static int dfx_hw_port_ctrl_req(DFX_board_t *bp, PI_UINT32 command, PI_UINT32 data_a, PI_UINT32 da…
289 static void dfx_hw_adap_reset(DFX_board_t *bp, PI_UINT32 type);
290 static int dfx_hw_adap_state_rd(DFX_board_t *bp);
[all …]
/drivers/net/ethernet/cadence/
Dmacb.c69 static struct macb_dma_desc *macb_tx_desc(struct macb *bp, unsigned int index) in macb_tx_desc() argument
71 return &bp->tx_ring[macb_tx_ring_wrap(index)]; in macb_tx_desc()
74 static struct macb_tx_skb *macb_tx_skb(struct macb *bp, unsigned int index) in macb_tx_skb() argument
76 return &bp->tx_skb[macb_tx_ring_wrap(index)]; in macb_tx_skb()
79 static dma_addr_t macb_tx_dma(struct macb *bp, unsigned int index) in macb_tx_dma() argument
85 return bp->tx_ring_dma + offset; in macb_tx_dma()
93 static struct macb_dma_desc *macb_rx_desc(struct macb *bp, unsigned int index) in macb_rx_desc() argument
95 return &bp->rx_ring[macb_rx_ring_wrap(index)]; in macb_rx_desc()
98 static void *macb_rx_buffer(struct macb *bp, unsigned int index) in macb_rx_buffer() argument
100 return bp->rx_buffers + bp->rx_buffer_size * macb_rx_ring_wrap(index); in macb_rx_buffer()
[all …]
/drivers/sbus/char/
Dbbc_i2c.c53 static void set_device_claimage(struct bbc_i2c_bus *bp, struct platform_device *op, int val) in set_device_claimage() argument
58 if (bp->devs[i].device == op) { in set_device_claimage()
59 bp->devs[i].client_claimed = val; in set_device_claimage()
68 struct platform_device *bbc_i2c_getdev(struct bbc_i2c_bus *bp, int index) in bbc_i2c_getdev() argument
74 if (!(op = bp->devs[i].device)) in bbc_i2c_getdev()
88 struct bbc_i2c_client *bbc_i2c_attach(struct bbc_i2c_bus *bp, struct platform_device *op) in bbc_i2c_attach() argument
96 client->bp = bp; in bbc_i2c_attach()
108 claim_device(bp, op); in bbc_i2c_attach()
115 struct bbc_i2c_bus *bp = client->bp; in bbc_i2c_detach() local
118 release_device(bp, op); in bbc_i2c_detach()
[all …]
/drivers/net/ethernet/sun/
Dsunbmac.c97 static void qec_init(struct bigmac *bp) in qec_init() argument
99 struct platform_device *qec_op = bp->qec_op; in qec_init()
100 void __iomem *gregs = bp->gregs; in qec_init()
101 u8 bsizes = bp->bigmac_bursts; in qec_init()
164 static void bigmac_stop(struct bigmac *bp) in bigmac_stop() argument
166 bigmac_tx_reset(bp->bregs); in bigmac_stop()
167 bigmac_rx_reset(bp->bregs); in bigmac_stop()
170 static void bigmac_get_counters(struct bigmac *bp, void __iomem *bregs) in bigmac_get_counters() argument
172 struct net_device_stats *stats = &bp->enet_stats; in bigmac_get_counters()
192 static void bigmac_clean_rings(struct bigmac *bp) in bigmac_clean_rings() argument
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-io.c36 #define BUFFER_CHECK(bp) do { \ argument
37 if ((bp)->signature != BUFFER_SIG) { \
40 (bp),__FILE__,__LINE__); \
41 pvr2_buffer_describe(bp,"BadSig"); \
46 #define BUFFER_CHECK(bp) do {} while(0) argument
113 static void pvr2_buffer_describe(struct pvr2_buffer *bp,const char *msg) in pvr2_buffer_describe() argument
120 bp, in pvr2_buffer_describe()
121 (bp ? pvr2_buffer_state_decode(bp->state) : "(invalid)"), in pvr2_buffer_describe()
122 (bp ? bp->id : 0), in pvr2_buffer_describe()
123 (bp ? bp->status : 0), in pvr2_buffer_describe()
[all …]
/drivers/net/ethernet/
Ddnet.c30 static u16 dnet_readw_mac(struct dnet *bp, u16 reg) in dnet_readw_mac() argument
35 dnet_writel(bp, reg, MACREG_ADDR); in dnet_readw_mac()
42 data_read = dnet_readl(bp, MACREG_DATA); in dnet_readw_mac()
49 static void dnet_writew_mac(struct dnet *bp, u16 reg, u16 val) in dnet_writew_mac() argument
52 dnet_writel(bp, val, MACREG_DATA); in dnet_writew_mac()
55 dnet_writel(bp, reg | DNET_INTERNAL_WRITE, MACREG_ADDR); in dnet_writew_mac()
62 static void __dnet_set_hwaddr(struct dnet *bp) in __dnet_set_hwaddr() argument
66 tmp = be16_to_cpup((__be16 *)bp->dev->dev_addr); in __dnet_set_hwaddr()
67 dnet_writew_mac(bp, DNET_INTERNAL_MAC_ADDR_0_REG, tmp); in __dnet_set_hwaddr()
68 tmp = be16_to_cpup((__be16 *)(bp->dev->dev_addr + 2)); in __dnet_set_hwaddr()
[all …]
/drivers/net/fddi/skfp/
Dskfddi.c384 skfddi_priv *bp = &smc->os; in skfp_driver_init() local
390 bp->base_addr = dev->base_addr; in skfp_driver_init()
395 spin_lock_init(&bp->DriverLock); in skfp_driver_init()
398 bp->LocalRxBuffer = pci_alloc_consistent(&bp->pdev, MAX_FRAME_SIZE, &bp->LocalRxBufferDMA); in skfp_driver_init()
399 if (!bp->LocalRxBuffer) { in skfp_driver_init()
406 bp->SharedMemSize = mac_drv_check_space(); in skfp_driver_init()
407 pr_debug("Memory for HWM: %ld\n", bp->SharedMemSize); in skfp_driver_init()
408 if (bp->SharedMemSize > 0) { in skfp_driver_init()
409 bp->SharedMemSize += 16; // for descriptor alignment in skfp_driver_init()
411 bp->SharedMemAddr = pci_alloc_consistent(&bp->pdev, in skfp_driver_init()
[all …]
/drivers/net/ethernet/apple/
Dbmac.c228 struct bmac_data *bp = netdev_priv(dev); in bmac_enable_and_reset_chip() local
229 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_enable_and_reset_chip()
230 volatile struct dbdma_regs __iomem *td = bp->tx_dma; in bmac_enable_and_reset_chip()
237 pmac_call_feature(PMAC_FTR_BMAC_ENABLE, macio_get_of_node(bp->mdev), 0, 1); in bmac_enable_and_reset_chip()
312 struct bmac_data *bp = netdev_priv(dev); in bmac_init_registers() local
329 if (!bp->is_bmac_plus) { in bmac_init_registers()
371 for (i=0; i<4; i++) bp->hash_table_mask[i] = 0; in bmac_init_registers()
372 bmwrite(dev, BHASH3, bp->hash_table_mask[0]); /* bits 15 - 0 */ in bmac_init_registers()
373 bmwrite(dev, BHASH2, bp->hash_table_mask[1]); /* bits 31 - 16 */ in bmac_init_registers()
374 bmwrite(dev, BHASH1, bp->hash_table_mask[2]); /* bits 47 - 32 */ in bmac_init_registers()
[all …]
/drivers/power/
Dapm_power.c47 struct find_bat_param *bp = (struct find_bat_param *)data; in __find_main_battery() local
49 bp->bat = dev_get_drvdata(dev); in __find_main_battery()
51 if (bp->bat->use_for_apm) { in __find_main_battery()
53 bp->main = bp->bat; in __find_main_battery()
57 if (!PSY_PROP(bp->bat, CHARGE_FULL_DESIGN, &bp->full) || in __find_main_battery()
58 !PSY_PROP(bp->bat, CHARGE_FULL, &bp->full)) { in __find_main_battery()
59 if (bp->full.intval > bp->max_charge) { in __find_main_battery()
60 bp->max_charge_bat = bp->bat; in __find_main_battery()
61 bp->max_charge = bp->full.intval; in __find_main_battery()
63 } else if (!PSY_PROP(bp->bat, ENERGY_FULL_DESIGN, &bp->full) || in __find_main_battery()
[all …]

12345