Home
last modified time | relevance | path

Searched refs:np (Results 1 – 25 of 1618) sorted by relevance

12345678910>>...65

/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.c41 static void sym_int_ma (struct sym_hcb *np);
43 static struct sym_ccb *sym_alloc_ccb(struct sym_hcb *np);
44 static struct sym_ccb *sym_ccb_from_dsa(struct sym_hcb *np, u32 dsa);
45 static void sym_alloc_lcb_tags (struct sym_hcb *np, u_char tn, u_char ln);
46 static void sym_complete_error (struct sym_hcb *np, struct sym_ccb *cp);
47 static void sym_complete_ok (struct sym_hcb *np, struct sym_ccb *cp);
48 static int sym_compute_residual(struct sym_hcb *np, struct sym_ccb *cp);
68 static void sym_print_nego_msg(struct sym_hcb *np, int target, char *label, u_char *msg) in sym_print_nego_msg() argument
70 struct sym_tcb *tp = &np->target[target]; in sym_print_nego_msg()
120 static void sym_chip_reset (struct sym_hcb *np) in sym_chip_reset() argument
[all …]
H A Dsym_nvram.c37 void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) in sym_nvram_setup_host() argument
46 np->rv_scntl0 &= ~0x0a; in sym_nvram_setup_host()
47 np->myaddr = nvram->data.Symbios.host_id & 0x0f; in sym_nvram_setup_host()
49 np->verbose += 1; in sym_nvram_setup_host()
53 np->usrflags |= SYM_AVOID_BUS_RESET; in sym_nvram_setup_host()
56 np->myaddr = nvram->data.Tekram.host_id & 0x0f; in sym_nvram_setup_host()
61 np->myaddr = nvram->data.parisc.host_id; in sym_nvram_setup_host()
63 np->minsync = nvram->data.parisc.factor; in sym_nvram_setup_host()
65 np->maxwide = nvram->data.parisc.width; in sym_nvram_setup_host()
67 case 0: np->scsi_mode = SMODE_SE; break; in sym_nvram_setup_host()
[all …]
H A Dsym_hipd.h75 #define sym_verbose (np->verbose)
184 #define INB_OFF(np, o) ioread8(np->s.ioaddr + (o)) argument
185 #define INW_OFF(np, o) ioread16(np->s.ioaddr + (o)) argument
186 #define INL_OFF(np, o) ioread32(np->s.ioaddr + (o)) argument
188 #define OUTB_OFF(np, o, val) iowrite8((val), np->s.ioaddr + (o)) argument
189 #define OUTW_OFF(np, argument
190 OUTL_OFF(np,o,val) global() argument
192 INB(np,r) global() argument
193 INW(np,r) global() argument
194 INL(np,r) global() argument
196 OUTB(np,r,v) global() argument
197 OUTW(np,r,v) global() argument
198 OUTL(np,r,v) global() argument
200 OUTONB(np,r,m) global() argument
201 OUTOFFB(np,r,m) global() argument
202 OUTONW(np,r,m) global() argument
203 OUTOFFW(np,r,m) global() argument
204 OUTONL(np,r,m) global() argument
205 OUTOFFL(np,r,m) global() argument
212 OUTL_DSP(np,v) global() argument
664 sym_set_script_dp(np,cp,dp) global() argument
671 sym_get_script_dp(np,cp) global() argument
675 sym_set_script_dp(np,cp,dp) global() argument
680 sym_get_script_dp(np,cp) global() argument
1022 use_dac(np) global() argument
1023 set_dac(np) global() argument
1025 use_dac(np) global() argument
1026 set_dac(np) global() argument
1029 HCB_BA(np,lbl) global() argument
1073 sym_build_sge(np,data,badd,len) global() argument
1080 sym_build_sge(np,data,badd,len) global() argument
1089 sym_build_sge(struct sym_hcb * np,struct sym_tblmove * data,u64 badd,int len) sym_build_sge() argument
1179 _sym_calloc_dma(np,l,n) global() argument
1180 _sym_mfree_dma(np,p,l,n) global() argument
[all...]
H A Dsym_fw.c96 struct sym_hcb *np = sym_get_hcb(shost); in sym_fw1_patch() local
100 scripta0 = (struct sym_fw1a_scr *) np->scripta0; in sym_fw1_patch()
101 scriptb0 = (struct sym_fw1b_scr *) np->scriptb0; in sym_fw1_patch()
106 if (!(np->features & FE_LED0)) { in sym_fw1_patch()
126 scriptb0->startpos[0] = cpu_to_scr(np->squeue_ba); in sym_fw1_patch()
127 scriptb0->done_pos[0] = cpu_to_scr(np->dqueue_ba); in sym_fw1_patch()
128 scriptb0->targtbl[0] = cpu_to_scr(np->targtbl_ba); in sym_fw1_patch()
140 struct sym_hcb *np = sym_data->ncb; in sym_fw2_patch() local
144 scripta0 = (struct sym_fw2a_scr *) np->scripta0; in sym_fw2_patch()
145 scriptb0 = (struct sym_fw2b_scr *) np->scriptb0; in sym_fw2_patch()
[all …]
/linux/drivers/net/ethernet/nvidia/
H A Dforcedeth.c727 __this_cpu_inc(np->txrx_stats->member)
729 __this_cpu_add(np->txrx_stats->member, (count))
961 static bool nv_optimized(struct fe_priv *np) in nv_optimized() argument
963 if (np->desc_ver == DESC_VER_1 || np->desc_ver == DESC_VER_2) in nv_optimized()
998 struct fe_priv *np = get_nvpriv(dev); in setup_hw_rings() local
1001 if (!nv_optimized(np)) { in setup_hw_rings()
1003 writel(dma_low(np->ring_addr), base + NvRegRxRingPhysAddr); in setup_hw_rings()
1005 …writel(dma_low(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc)), base + NvRegTxRingPhysA… in setup_hw_rings()
1008 writel(dma_low(np->ring_addr), base + NvRegRxRingPhysAddr); in setup_hw_rings()
1009 writel(dma_high(np->ring_addr), base + NvRegRxRingPhysAddrHigh); in setup_hw_rings()
[all …]
/linux/drivers/net/ethernet/sun/
H A Dniu.c91 #define nr64(reg) readq(np->regs + (reg))
92 #define nw64(reg, val) writeq((val), np->regs + (reg))
94 #define nr64_mac(reg) readq(np->mac_regs + (reg))
95 #define nw64_mac(reg, val) writeq((val), np->mac_regs + (reg))
97 #define nr64_ipp(reg) readq(np->regs + np->ipp_off + (reg))
98 #define nw64_ipp(reg, val) writeq((val), np->regs + np->ipp_off + (reg))
100 #define nr64_pcs(reg) readq(np->regs + np
113 niu_lock_parent(np,flags) global() argument
115 niu_unlock_parent(np,flags) global() argument
120 __niu_wait_bits_clear_mac(struct niu * np,unsigned long reg,u64 bits,int limit,int delay) __niu_wait_bits_clear_mac() argument
135 __niu_set_and_wait_clear_mac(struct niu * np,unsigned long reg,u64 bits,int limit,int delay,const char * reg_name) __niu_set_and_wait_clear_mac() argument
155 __niu_wait_bits_clear_ipp(struct niu * np,unsigned long reg,u64 bits,int limit,int delay) __niu_wait_bits_clear_ipp() argument
170 __niu_set_and_wait_clear_ipp(struct niu * np,unsigned long reg,u64 bits,int limit,int delay,const char * reg_name) __niu_set_and_wait_clear_ipp() argument
194 __niu_wait_bits_clear(struct niu * np,unsigned long reg,u64 bits,int limit,int delay) __niu_wait_bits_clear() argument
214 __niu_set_and_wait_clear(struct niu * np,unsigned long reg,u64 bits,int limit,int delay,const char * reg_name) __niu_set_and_wait_clear() argument
234 niu_ldg_rearm(struct niu * np,struct niu_ldg * lp,int on) niu_ldg_rearm() argument
244 niu_ldn_irq_enable(struct niu * np,int ldn,int on) niu_ldn_irq_enable() argument
270 niu_enable_ldn_in_ldg(struct niu * np,struct niu_ldg * lp,int on) niu_enable_ldn_in_ldg() argument
288 niu_enable_interrupts(struct niu * np,int on) niu_enable_interrupts() argument
316 mdio_wait(struct niu * np) mdio_wait() argument
332 mdio_read(struct niu * np,int port,int dev,int reg) mdio_read() argument
345 mdio_write(struct niu * np,int port,int dev,int reg,int data) mdio_write() argument
362 mii_read(struct niu * np,int port,int reg) mii_read() argument
368 mii_write(struct niu * np,int port,int reg,int data) mii_write() argument
380 esr2_set_tx_cfg(struct niu * np,unsigned long channel,u32 val) esr2_set_tx_cfg() argument
394 esr2_set_rx_cfg(struct niu * np,unsigned long channel,u32 val) esr2_set_rx_cfg() argument
409 serdes_init_niu_10g_fiber(struct niu * np) serdes_init_niu_10g_fiber() argument
446 serdes_init_niu_1g_serdes(struct niu * np) serdes_init_niu_1g_serdes() argument
543 serdes_init_niu_10g_serdes(struct niu * np) serdes_init_niu_10g_serdes() argument
658 esr_read_rxtx_ctrl(struct niu * np,unsigned long chan,u32 * val) esr_read_rxtx_ctrl() argument
674 esr_read_glue0(struct niu * np,unsigned long chan,u32 * val) esr_read_glue0() argument
692 esr_read_reset(struct niu * np,u32 * val) esr_read_reset() argument
710 esr_write_rxtx_ctrl(struct niu * np,unsigned long chan,u32 val) esr_write_rxtx_ctrl() argument
722 esr_write_glue0(struct niu * np,unsigned long chan,u32 val) esr_write_glue0() argument
734 esr_reset(struct niu * np) esr_reset() argument
773 serdes_init_10g(struct niu * np) serdes_init_10g() argument
899 serdes_init_1g(struct niu * np) serdes_init_1g() argument
926 serdes_init_1g_serdes(struct niu * np) serdes_init_1g_serdes() argument
1047 link_status_1g_serdes(struct niu * np,int * link_up_p) link_status_1g_serdes() argument
1078 link_status_10g_serdes(struct niu * np,int * link_up_p) link_status_10g_serdes() argument
1112 link_status_mii(struct niu * np,int * link_up_p) link_status_mii() argument
1225 link_status_1g_rgmii(struct niu * np,int * link_up_p) link_status_1g_rgmii() argument
1260 link_status_1g(struct niu * np,int * link_up_p) link_status_1g() argument
1276 bcm8704_reset(struct niu * np) bcm8704_reset() argument
1310 bcm8704_user_dev3_readback(struct niu * np,int reg) bcm8704_user_dev3_readback() argument
1321 bcm8706_init_user_dev3(struct niu * np) bcm8706_init_user_dev3() argument
1343 bcm8704_init_user_dev3(struct niu * np) bcm8704_init_user_dev3() argument
1393 mrvl88x2011_act_led(struct niu * np,int val) mrvl88x2011_act_led() argument
1409 mrvl88x2011_led_blink_rate(struct niu * np,int rate) mrvl88x2011_led_blink_rate() argument
1426 xcvr_init_10g_mrvl88x2011(struct niu * np) xcvr_init_10g_mrvl88x2011() argument
1473 xcvr_diag_bcm870x(struct niu * np) xcvr_diag_bcm870x() argument
1531 xcvr_10g_set_lb_bcm870x(struct niu * np) xcvr_10g_set_lb_bcm870x() argument
1554 xcvr_init_10g_bcm8706(struct niu * np) xcvr_init_10g_bcm8706() argument
1591 xcvr_init_10g_bcm8704(struct niu * np) xcvr_init_10g_bcm8704() argument
1614 xcvr_init_10g(struct niu * np) xcvr_init_10g() argument
1646 mii_reset(struct niu * np) mii_reset() argument
1672 xcvr_init_1g_rgmii(struct niu * np) xcvr_init_1g_rgmii() argument
1732 mii_init_common(struct niu * np) mii_init_common() argument
1867 xcvr_init_1g(struct niu * np) xcvr_init_1g() argument
1879 niu_xcvr_init(struct niu * np) niu_xcvr_init() argument
1891 niu_serdes_init(struct niu * np) niu_serdes_init() argument
1906 niu_link_status_common(struct niu * np,int link_up) niu_link_status_common() argument
1937 link_status_10g_mrvl(struct niu * np,int * link_up_p) link_status_10g_mrvl() argument
1993 link_status_10g_bcm8706(struct niu * np,int * link_up_p) link_status_10g_bcm8706() argument
2044 link_status_10g_bcom(struct niu * np,int * link_up_p) link_status_10g_bcom() argument
2093 link_status_10g(struct niu * np,int * link_up_p) link_status_10g() argument
2123 niu_10g_phy_present(struct niu * np) niu_10g_phy_present() argument
2160 link_status_10g_hotplug(struct niu * np,int * link_up_p) link_status_10g_hotplug() argument
2214 niu_link_status(struct niu * np,int * link_up_p) niu_link_status() argument
2228 struct niu *np = timer_container_of(np, t, timer); niu_timer() local
2369 serdes_init_10g_serdes(struct niu * np) serdes_init_10g_serdes() argument
2498 niu_determine_phy_disposition(struct niu * np) niu_determine_phy_disposition() argument
2604 niu_init_link(struct niu * np) niu_init_link() argument
2625 niu_set_primary_mac(struct niu * np,const unsigned char * addr) niu_set_primary_mac() argument
2642 niu_num_alt_addr(struct niu * np) niu_num_alt_addr() argument
2650 niu_set_alt_mac(struct niu * np,int index,unsigned char * addr) niu_set_alt_mac() argument
2672 niu_enable_alt_mac(struct niu * np,int index,int on) niu_enable_alt_mac() argument
2698 __set_rdc_table_num_hw(struct niu * np,unsigned long reg,int num,int mac_pref) __set_rdc_table_num_hw() argument
2709 __set_rdc_table_num(struct niu * np,int xmac_index,int bmac_index,int rdc_table_num,int mac_pref) __set_rdc_table_num() argument
2725 niu_set_primary_mac_rdc_table(struct niu * np,int table_num,int mac_pref) niu_set_primary_mac_rdc_table() argument
2731 niu_set_multicast_mac_rdc_table(struct niu * np,int table_num,int mac_pref) niu_set_multicast_mac_rdc_table() argument
2737 niu_set_alt_mac_rdc_table(struct niu * np,int idx,int table_num,int mac_pref) niu_set_alt_mac_rdc_table() argument
2766 vlan_tbl_write(struct niu * np,unsigned long index,int port,int vpr,int rdc_table) vlan_tbl_write() argument
2784 vlan_tbl_clear(struct niu * np) vlan_tbl_clear() argument
2792 tcam_wait_bit(struct niu * np,u64 bit) tcam_wait_bit() argument
2807 tcam_flush(struct niu * np,int index) tcam_flush() argument
2838 tcam_write(struct niu * np,int index,u64 * key,u64 * mask) tcam_write() argument
2868 tcam_assoc_write(struct niu * np,int index,u64 assoc_data) tcam_assoc_write() argument
2876 tcam_enable(struct niu * np,int on) tcam_enable() argument
2887 tcam_set_lat_and_ratio(struct niu * np,u64 latency,u64 ratio) tcam_set_lat_and_ratio() argument
2903 tcam_user_eth_class_enable(struct niu * np,unsigned long class,int on) tcam_user_eth_class_enable() argument
2946 tcam_user_ip_class_enable(struct niu * np,unsigned long class,int on) tcam_user_ip_class_enable() argument
2967 tcam_user_ip_class_set(struct niu * np,unsigned long class,int ipv6,u64 protocol_id,u64 tos_mask,u64 tos_val) tcam_user_ip_class_set() argument
2995 tcam_early_init(struct niu * np) tcam_early_init() argument
3018 tcam_flush_all(struct niu * np) tcam_flush_all() argument
3055 hash_write(struct niu * np,unsigned long partition,unsigned long index,unsigned long num_entries,u64 * data) hash_write() argument
3073 fflp_reset(struct niu * np) fflp_reset() argument
3085 fflp_set_timings(struct niu * np) fflp_set_timings() argument
3104 fflp_set_partition(struct niu * np,u64 partition,u64 mask,u64 base,int enable) fflp_set_partition() argument
3128 fflp_disable_all_partitions(struct niu * np) fflp_disable_all_partitions() argument
3140 fflp_llcsnap_enable(struct niu * np,int on) fflp_llcsnap_enable() argument
3151 fflp_errors_enable(struct niu * np,int on) fflp_errors_enable() argument
3162 fflp_hash_clear(struct niu * np) fflp_hash_clear() argument
3179 fflp_early_init(struct niu * np) fflp_early_init() argument
3238 niu_set_flow_key(struct niu * np,unsigned long class_code,u64 key) niu_set_flow_key() argument
3248 niu_set_tcam_key(struct niu * np,unsigned long class_code,u64 key) niu_set_tcam_key() argument
3259 tcam_get_index(struct niu * np,u16 idx) tcam_get_index() argument
3267 tcam_get_size(struct niu * np) tcam_get_size() argument
3273 tcam_get_valid_entry_cnt(struct niu * np) tcam_get_valid_entry_cnt() argument
3326 niu_rbr_add_page(struct niu * np,struct rx_ring_info * rp,gfp_t mask,int start_index) niu_rbr_add_page() argument
3358 niu_rbr_refill(struct niu * np,struct rx_ring_info * rp,gfp_t mask) niu_rbr_refill() argument
3383 niu_rx_pkt_ignore(struct niu * np,struct rx_ring_info * rp) niu_rx_pkt_ignore() argument
3423 niu_process_rx_pkt(struct napi_struct * napi,struct niu * np,struct rx_ring_info * rp) niu_process_rx_pkt() argument
3513 niu_rbr_fill(struct niu * np,struct rx_ring_info * rp,gfp_t mask) niu_rbr_fill() argument
3531 niu_rbr_free(struct niu * np,struct rx_ring_info * rp) niu_rbr_free() argument
3559 release_tx_packet(struct niu * np,struct tx_ring_info * rp,int idx) release_tx_packet() argument
3603 niu_tx_work(struct niu * np,struct tx_ring_info * rp) niu_tx_work() argument
3645 niu_sync_rx_discard_stats(struct niu * np,struct rx_ring_info * rp,const int limit) niu_sync_rx_discard_stats() argument
3697 niu_rx_work(struct napi_struct * napi,struct niu * np,struct rx_ring_info * rp,int budget) niu_rx_work() argument
3746 niu_poll_core(struct niu * np,struct niu_ldg * lp,int budget) niu_poll_core() argument
3784 struct niu *np = lp->np; niu_poll() local
3796 niu_log_rxchan_errors(struct niu * np,struct rx_ring_info * rp,u64 stat) niu_log_rxchan_errors() argument
3833 niu_rx_error(struct niu * np,struct rx_ring_info * rp) niu_rx_error() argument
3857 niu_log_txchan_errors(struct niu * np,struct tx_ring_info * rp,u64 cs) niu_log_txchan_errors() argument
3882 niu_tx_error(struct niu * np,struct tx_ring_info * rp) niu_tx_error() argument
3901 niu_mif_interrupt(struct niu * np) niu_mif_interrupt() argument
3919 niu_xmac_interrupt(struct niu * np) niu_xmac_interrupt() argument
3989 niu_bmac_interrupt(struct niu * np) niu_bmac_interrupt() argument
4025 niu_mac_interrupt(struct niu * np) niu_mac_interrupt() argument
4035 niu_log_device_error(struct niu * np,u64 stat) niu_log_device_error() argument
4065 niu_device_error(struct niu * np) niu_device_error() argument
4077 niu_slowpath_interrupt(struct niu * np,struct niu_ldg * lp,u64 v0,u64 v1,u64 v2) niu_slowpath_interrupt() argument
4142 niu_rxchan_intr(struct niu * np,struct rx_ring_info * rp,int ldn) niu_rxchan_intr() argument
4156 niu_txchan_intr(struct niu * np,struct tx_ring_info * rp,int ldn) niu_txchan_intr() argument
4165 __niu_fastpath_interrupt(struct niu * np,int ldg,u64 v0) __niu_fastpath_interrupt() argument
4199 niu_schedule_napi(struct niu * np,struct niu_ldg * lp,u64 v0,u64 v1,u64 v2) niu_schedule_napi() argument
4214 struct niu *np = lp->np; niu_interrupt() local
4255 niu_free_rx_ring_info(struct niu * np,struct rx_ring_info * rp) niu_free_rx_ring_info() argument
4285 niu_free_tx_ring_info(struct niu * np,struct tx_ring_info * rp) niu_free_tx_ring_info() argument
4312 niu_free_channels(struct niu * np) niu_free_channels() argument
4339 niu_alloc_rx_ring_info(struct niu * np,struct rx_ring_info * rp) niu_alloc_rx_ring_info() argument
4389 niu_set_max_burst(struct niu * np,struct tx_ring_info * rp) niu_set_max_burst() argument
4401 niu_alloc_tx_ring_info(struct niu * np,struct tx_ring_info * rp) niu_alloc_tx_ring_info() argument
4441 niu_size_rbr(struct niu * np,struct rx_ring_info * rp) niu_size_rbr() argument
4468 niu_alloc_channels(struct niu * np) niu_alloc_channels() argument
4555 niu_tx_cs_sng_poll(struct niu * np,int channel) niu_tx_cs_sng_poll() argument
4567 niu_tx_channel_stop(struct niu * np,int channel) niu_tx_channel_stop() argument
4577 niu_tx_cs_reset_poll(struct niu * np,int channel) niu_tx_cs_reset_poll() argument
4589 niu_tx_channel_reset(struct niu * np,int channel) niu_tx_channel_reset() argument
4604 niu_tx_channel_lpage_init(struct niu * np,int channel) niu_tx_channel_lpage_init() argument
4625 niu_txc_enable_port(struct niu * np,int on) niu_txc_enable_port() argument
4644 niu_txc_set_imask(struct niu * np,u64 imask) niu_txc_set_imask() argument
4656 niu_txc_port_dma_enable(struct niu * np,int on) niu_txc_port_dma_enable() argument
4669 niu_init_one_tx_channel(struct niu * np,struct tx_ring_info * rp) niu_init_one_tx_channel() argument
4723 niu_init_rdc_groups(struct niu * np) niu_init_rdc_groups() argument
4741 niu_init_drr_weight(struct niu * np) niu_init_drr_weight() argument
4759 niu_init_hostinfo(struct niu * np) niu_init_hostinfo() argument
4783 niu_rx_channel_reset(struct niu * np,int channel) niu_rx_channel_reset() argument
4790 niu_rx_channel_lpage_init(struct niu * np,int channel) niu_rx_channel_lpage_init() argument
4809 niu_rx_channel_wred_init(struct niu * np,struct rx_ring_info * rp) niu_rx_channel_wred_init() argument
4900 niu_enable_rx_channel(struct niu * np,int channel,int on) niu_enable_rx_channel() argument
4922 niu_init_one_rx_channel(struct niu * np,struct rx_ring_info * rp) niu_init_one_rx_channel() argument
4975 niu_init_rx_channels(struct niu * np) niu_init_rx_channels() argument
5006 niu_set_ip_frag_rule(struct niu * np) niu_set_ip_frag_rule() argument
5036 niu_init_classifier_hw(struct niu * np) niu_init_classifier_hw() argument
5085 niu_zcp_write(struct niu * np,int index,u64 * data) niu_zcp_write() argument
5102 niu_zcp_read(struct niu * np,int index,u64 * data) niu_zcp_read() argument
5136 niu_zcp_cfifo_reset(struct niu * np) niu_zcp_cfifo_reset() argument
5148 niu_init_zcp(struct niu * np) niu_init_zcp() argument
5185 niu_ipp_write(struct niu * np,int index,u64 * data) niu_ipp_write() argument
5199 niu_ipp_read(struct niu * np,int index,u64 * data) niu_ipp_read() argument
5209 niu_ipp_reset(struct niu * np) niu_ipp_reset() argument
5215 niu_init_ipp(struct niu * np) niu_init_ipp() argument
5266 niu_handle_led(struct niu * np,int status) niu_handle_led() argument
5285 niu_init_xif_xmac(struct niu * np) niu_init_xif_xmac() argument
5342 niu_init_xif_bmac(struct niu * np) niu_init_xif_bmac() argument
5372 niu_init_xif(struct niu * np) niu_init_xif() argument
5380 niu_pcs_mii_reset(struct niu * np) niu_pcs_mii_reset() argument
5392 niu_xpcs_reset(struct niu * np) niu_xpcs_reset() argument
5404 niu_init_pcs(struct niu * np) niu_init_pcs() argument
5468 niu_reset_tx_xmac(struct niu * np) niu_reset_tx_xmac() argument
5476 niu_reset_tx_bmac(struct niu * np) niu_reset_tx_bmac() argument
5497 niu_reset_tx_mac(struct niu * np) niu_reset_tx_mac() argument
5505 niu_init_tx_xmac(struct niu * np,u64 min,u64 max) niu_init_tx_xmac() argument
5541 niu_init_tx_bmac(struct niu * np,u64 min,u64 max) niu_init_tx_bmac() argument
5558 niu_init_tx_mac(struct niu * np) niu_init_tx_mac() argument
5579 niu_reset_rx_xmac(struct niu * np) niu_reset_rx_xmac() argument
5602 niu_reset_rx_bmac(struct niu * np) niu_reset_rx_bmac() argument
5623 niu_reset_rx_mac(struct niu * np) niu_reset_rx_mac() argument
5631 niu_init_rx_xmac(struct niu * np) niu_init_rx_xmac() argument
5683 niu_init_rx_bmac(struct niu * np) niu_init_rx_bmac() argument
5718 niu_init_rx_mac(struct niu * np) niu_init_rx_mac() argument
5728 niu_enable_tx_xmac(struct niu * np,int on) niu_enable_tx_xmac() argument
5739 niu_enable_tx_bmac(struct niu * np,int on) niu_enable_tx_bmac() argument
5750 niu_enable_tx_mac(struct niu * np,int on) niu_enable_tx_mac() argument
5758 niu_enable_rx_xmac(struct niu * np,int on) niu_enable_rx_xmac() argument
5777 niu_enable_rx_bmac(struct niu * np,int on) niu_enable_rx_bmac() argument
5796 niu_enable_rx_mac(struct niu * np,int on) niu_enable_rx_mac() argument
5804 niu_init_mac(struct niu * np) niu_init_mac() argument
5835 niu_stop_one_tx_channel(struct niu * np,struct tx_ring_info * rp) niu_stop_one_tx_channel() argument
5840 niu_stop_tx_channels(struct niu * np) niu_stop_tx_channels() argument
5851 niu_reset_one_tx_channel(struct niu * np,struct tx_ring_info * rp) niu_reset_one_tx_channel() argument
5856 niu_reset_tx_channels(struct niu * np) niu_reset_tx_channels() argument
5867 niu_stop_one_rx_channel(struct niu * np,struct rx_ring_info * rp) niu_stop_one_rx_channel() argument
5872 niu_stop_rx_channels(struct niu * np) niu_stop_rx_channels() argument
5883 niu_reset_one_rx_channel(struct niu * np,struct rx_ring_info * rp) niu_reset_one_rx_channel() argument
5893 niu_reset_rx_channels(struct niu * np) niu_reset_rx_channels() argument
5904 niu_disable_ipp(struct niu * np) niu_disable_ipp() argument
5933 niu_init_hw(struct niu * np) niu_init_hw() argument
5995 niu_stop_hw(struct niu * np) niu_stop_hw() argument
6019 niu_set_irq_name(struct niu * np) niu_set_irq_name() argument
6042 niu_request_irq(struct niu * np) niu_request_irq() argument
6070 niu_free_irq(struct niu * np) niu_free_irq() argument
6081 niu_enable_napi(struct niu * np) niu_enable_napi() argument
6089 niu_disable_napi(struct niu * np) niu_disable_napi() argument
6099 struct niu *np = netdev_priv(dev); niu_open() local
6158 niu_full_shutdown(struct niu * np,struct net_device * dev) niu_full_shutdown() argument
6176 struct niu *np = netdev_priv(dev); niu_close() local
6189 niu_sync_xmac_stats(struct niu * np) niu_sync_xmac_stats() argument
6214 niu_sync_bmac_stats(struct niu * np) niu_sync_bmac_stats() argument
6227 niu_sync_mac_stats(struct niu * np) niu_sync_mac_stats() argument
6235 niu_get_rx_stats(struct niu * np,struct rtnl_link_stats64 * stats) niu_get_rx_stats() argument
6266 niu_get_tx_stats(struct niu * np,struct rtnl_link_stats64 * stats) niu_get_tx_stats() argument
6296 struct niu *np = netdev_priv(dev); niu_get_stats() local
6304 niu_load_hash_xmac(struct niu * np,u16 * hash) niu_load_hash_xmac() argument
6312 niu_load_hash_bmac(struct niu * np,u16 * hash) niu_load_hash_bmac() argument
6320 niu_load_hash(struct niu * np,u16 * hash) niu_load_hash() argument
6330 struct niu *np = netdev_priv(dev); niu_set_rx_mode() local
6400 struct niu *np = netdev_priv(dev); niu_set_mac_addr() local
6426 niu_netif_stop(struct niu * np) niu_netif_stop() argument
6435 niu_netif_start(struct niu * np) niu_netif_start() argument
6448 niu_reset_buffers(struct niu * np) niu_reset_buffers() argument
6499 struct niu *np = container_of(work, struct niu, reset_task); niu_reset_task() local
6539 struct niu *np = netdev_priv(dev); niu_tx_timeout() local
6627 struct niu *np = netdev_priv(dev); niu_start_xmit() local
6766 struct niu *np = netdev_priv(dev); niu_change_mtu() local
6818 struct niu *np = netdev_priv(dev); niu_get_drvinfo() local
6833 struct niu *np = netdev_priv(dev); niu_get_link_ksettings() local
6855 struct niu *np = netdev_priv(dev); niu_set_link_ksettings() local
6868 struct niu *np = netdev_priv(dev); niu_get_msglevel() local
6874 struct niu *np = netdev_priv(dev); niu_set_msglevel() local
6880 struct niu *np = netdev_priv(dev); niu_nway_reset() local
6890 struct niu *np = netdev_priv(dev); niu_get_eeprom_len() local
6898 struct niu *np = netdev_priv(dev); niu_get_eeprom() local
7097 struct niu *np = netdev_priv(dev); niu_get_rxfh_fields() local
7190 niu_get_ethtool_tcam_entry(struct niu * np,struct ethtool_rxnfc * nfc) niu_get_ethtool_tcam_entry() argument
7269 niu_get_ethtool_tcam_all(struct niu * np,struct ethtool_rxnfc * nfc,u32 * rule_locs) niu_get_ethtool_tcam_all() argument
7304 struct niu *np = netdev_priv(dev); niu_get_rx_ring_count() local
7312 struct niu *np = netdev_priv(dev); niu_get_nfc() local
7337 struct niu *np = netdev_priv(dev); niu_set_rxfh_fields() local
7453 niu_add_ethtool_tcam_entry(struct niu * np,struct ethtool_rxnfc * nfc) niu_add_ethtool_tcam_entry() argument
7612 niu_del_ethtool_tcam_entry(struct niu * np,u32 loc) niu_del_ethtool_tcam_entry() argument
7675 struct niu *np = netdev_priv(dev); niu_set_nfc() local
7773 struct niu *np = netdev_priv(dev); niu_get_strings() local
7802 struct niu *np = netdev_priv(dev); niu_get_sset_count() local
7817 struct niu *np = netdev_priv(dev); niu_get_ethtool_stats() local
7853 niu_led_state_save(struct niu * np) niu_led_state_save() argument
7861 niu_led_state_restore(struct niu * np,u64 val) niu_led_state_restore() argument
7869 niu_force_led(struct niu * np,int on) niu_force_led() argument
7893 struct niu *np = netdev_priv(dev); niu_set_phys_id() local
7939 niu_ldg_assign_ldn(struct niu * np,struct niu_parent * parent,int ldg,int ldn) niu_ldg_assign_ldn() argument
7967 niu_set_ldg_timer_res(struct niu * np,int res) niu_set_ldg_timer_res() argument
7978 niu_set_ldg_sid(struct niu * np,int ldg,int func,int vector) niu_set_ldg_sid() argument
7990 niu_pci_eeprom_read(struct niu * np,u32 addr) niu_pci_eeprom_read() argument
8033 niu_pci_eeprom_read16(struct niu * np,u32 off) niu_pci_eeprom_read16() argument
8049 niu_pci_eeprom_read16_swp(struct niu * np,u32 off) niu_pci_eeprom_read16_swp() argument
8067 niu_pci_vpd_get_propname(struct niu * np,u32 off,char * namebuf,int namebuf_len) niu_pci_vpd_get_propname() argument
8086 niu_vpd_parse_version(struct niu * np) niu_vpd_parse_version() argument
8113 niu_pci_vpd_scan_props(struct niu * np,u32 start,u32 end) niu_pci_vpd_scan_props() argument
8205 niu_pci_vpd_fetch(struct niu * np,u32 start) niu_pci_vpd_fetch() argument
8246 niu_pci_vpd_offset(struct niu * np) niu_pci_vpd_offset() argument
8301 niu_phy_type_prop_decode(struct niu * np,const char * phy_prop) niu_phy_type_prop_decode() argument
8335 niu_pci_vpd_get_nports(struct niu * np) niu_pci_vpd_get_nports() argument
8355 niu_pci_vpd_validate(struct niu * np) niu_pci_vpd_validate() argument
8402 niu_pci_probe_sprom(struct niu * np) niu_pci_probe_sprom() argument
8561 niu_get_and_validate_port(struct niu * np) niu_get_and_validate_port() argument
8797 fill_phy_probe_info(struct niu * np,struct niu_parent * parent,struct phy_probe_info * info) fill_phy_probe_info() argument
8839 walk_phys(struct niu * np,struct niu_parent * parent) walk_phys() argument
8968 niu_probe_ports(struct niu * np) niu_probe_ports() argument
8989 niu_classifier_swstate_init(struct niu * np) niu_classifier_swstate_init() argument
9001 niu_link_config_init(struct niu * np) niu_link_config_init() argument
9026 niu_init_mac_ipp_pcs_base(struct niu * np) niu_init_mac_ipp_pcs_base() argument
9065 niu_try_msix(struct niu * np,u8 * ldg_num_map) niu_try_msix() argument
9101 niu_n2_irq_init(struct niu * np,u8 * ldg_num_map) niu_n2_irq_init() argument
9125 niu_ldg_init(struct niu * np) niu_ldg_init() argument
9242 niu_ldg_free(struct niu * np) niu_ldg_free() argument
9248 niu_get_of_props(struct niu * np) niu_get_of_props() argument
9313 niu_get_invariants(struct niu * np) niu_get_invariants() argument
9495 niu_new_parent(struct niu * np,union niu_parent_id * id,u8 ptype) niu_new_parent() argument
9559 niu_get_parent(struct niu * np,union niu_parent_id * id,u8 ptype) niu_get_parent() argument
9594 niu_put_parent(struct niu * np) niu_put_parent() argument
9696 struct niu *np; niu_alloc_and_init() local
9741 niu_device_announce(struct niu * np) niu_device_announce() argument
9781 struct niu *np; niu_pci_init_one() local
9915 struct niu *np = netdev_priv(dev); niu_pci_remove_one() local
9936 struct niu *np = netdev_priv(dev); niu_suspend() local
9963 struct niu *np = netdev_priv(dev); niu_resume() local
10067 struct niu *np; niu_of_probe() local
10182 struct niu *np = netdev_priv(dev); niu_of_remove() local
[all...]
/linux/drivers/clk/at91/
H A Ddt-compat.c31 static void __init of_sama5d2_clk_audio_pll_frac_setup(struct device_node *np) in of_sama5d2_clk_audio_pll_frac_setup() argument
34 const char *name = np->name; in of_sama5d2_clk_audio_pll_frac_setup()
39 parent_np = of_get_parent(np); in of_sama5d2_clk_audio_pll_frac_setup()
45 parent_name = of_clk_get_parent_name(np, 0); in of_sama5d2_clk_audio_pll_frac_setup()
51 of_clk_add_hw_provider(np, of_clk_hw_simple_get, hw); in of_sama5d2_clk_audio_pll_frac_setup()
57 static void __init of_sama5d2_clk_audio_pll_pad_setup(struct device_node *np) in of_sama5d2_clk_audio_pll_pad_setup() argument
60 const char *name = np->name; in of_sama5d2_clk_audio_pll_pad_setup()
65 parent_np = of_get_parent(np); in of_sama5d2_clk_audio_pll_pad_setup()
71 parent_name = of_clk_get_parent_name(np, 0); in of_sama5d2_clk_audio_pll_pad_setup()
77 of_clk_add_hw_provider(np, of_clk_hw_simple_ge in of_sama5d2_clk_audio_pll_pad_setup()
83 of_sama5d2_clk_audio_pll_pmc_setup(struct device_node * np) of_sama5d2_clk_audio_pll_pmc_setup() argument
125 of_sama5d2_clk_generated_setup(struct device_node * np) of_sama5d2_clk_generated_setup() argument
189 of_sama5d4_clk_h32mx_setup(struct device_node * np) of_sama5d4_clk_h32mx_setup() argument
218 of_sama5d2_clk_i2s_mux_setup(struct device_node * np) of_sama5d2_clk_i2s_mux_setup() argument
254 of_at91rm9200_clk_main_osc_setup(struct device_node * np) of_at91rm9200_clk_main_osc_setup() argument
282 of_at91sam9x5_clk_main_rc_osc_setup(struct device_node * np) of_at91sam9x5_clk_main_rc_osc_setup() argument
310 of_at91rm9200_clk_main_setup(struct device_node * np) of_at91rm9200_clk_main_setup() argument
336 of_at91sam9x5_clk_main_setup(struct device_node * np) of_at91sam9x5_clk_main_setup() argument
369 of_at91_clk_master_get_characteristics(struct device_node * np) of_at91_clk_master_get_characteristics() argument
394 of_at91_clk_master_setup(struct device_node * np,const struct clk_master_layout * layout) of_at91_clk_master_setup() argument
442 of_at91rm9200_clk_master_setup(struct device_node * np) of_at91rm9200_clk_master_setup() argument
449 of_at91sam9x5_clk_master_setup(struct device_node * np) of_at91sam9x5_clk_master_setup() argument
457 of_at91_clk_periph_setup(struct device_node * np,u8 type) of_at91_clk_periph_setup() argument
529 of_at91rm9200_clk_periph_setup(struct device_node * np) of_at91rm9200_clk_periph_setup() argument
536 of_at91sam9x5_clk_periph_setup(struct device_node * np) of_at91sam9x5_clk_periph_setup() argument
544 of_at91_clk_pll_get_characteristics(struct device_node * np) of_at91_clk_pll_get_characteristics() argument
641 of_at91_clk_pll_setup(struct device_node * np,const struct clk_pll_layout * layout) of_at91_clk_pll_setup() argument
681 of_at91rm9200_clk_pll_setup(struct device_node * np) of_at91rm9200_clk_pll_setup() argument
688 of_at91sam9g45_clk_pll_setup(struct device_node * np) of_at91sam9g45_clk_pll_setup() argument
695 of_at91sam9g20_clk_pllb_setup(struct device_node * np) of_at91sam9g20_clk_pllb_setup() argument
702 of_sama5d3_clk_pll_setup(struct device_node * np) of_sama5d3_clk_pll_setup() argument
710 of_at91sam9x5_clk_plldiv_setup(struct device_node * np) of_at91sam9x5_clk_plldiv_setup() argument
738 of_at91_clk_prog_setup(struct device_node * np,const struct clk_programmable_layout * layout,u32 * mux_table) of_at91_clk_prog_setup() argument
784 of_at91rm9200_clk_prog_setup(struct device_node * np) of_at91rm9200_clk_prog_setup() argument
791 of_at91sam9g45_clk_prog_setup(struct device_node * np) of_at91sam9g45_clk_prog_setup() argument
798 of_at91sam9x5_clk_prog_setup(struct device_node * np) of_at91sam9x5_clk_prog_setup() argument
805 of_at91sam9260_clk_slow_setup(struct device_node * np) of_at91sam9260_clk_slow_setup() argument
840 of_at91sam9x5_clk_smd_setup(struct device_node * np) of_at91sam9x5_clk_smd_setup() argument
874 of_at91rm9200_clk_sys_setup(struct device_node * np) of_at91rm9200_clk_sys_setup() argument
927 of_at91sam9x5_clk_usb_setup(struct device_node * np) of_at91sam9x5_clk_usb_setup() argument
960 of_at91sam9n12_clk_usb_setup(struct device_node * np) of_at91sam9n12_clk_usb_setup() argument
989 of_at91rm9200_clk_usb_setup(struct device_node * np) of_at91rm9200_clk_usb_setup() argument
1024 of_at91sam9x5_clk_utmi_setup(struct device_node * np) of_at91sam9x5_clk_utmi_setup() argument
[all...]
/linux/drivers/memory/
H A Dof_memory.c20 * @np: pointer to ddr device tree node
28 const struct lpddr2_min_tck *of_get_min_tck(struct device_node *np, in of_get_min_tck() argument
38 ret |= of_property_read_u32(np, "tRPab-min-tck", &min->tRPab); in of_get_min_tck()
39 ret |= of_property_read_u32(np, "tRCD-min-tck", &min->tRCD); in of_get_min_tck()
40 ret |= of_property_read_u32(np, "tWR-min-tck", &min->tWR); in of_get_min_tck()
41 ret |= of_property_read_u32(np, "tRASmin-min-tck", &min->tRASmin); in of_get_min_tck()
42 ret |= of_property_read_u32(np, "tRRD-min-tck", &min->tRRD); in of_get_min_tck()
43 ret |= of_property_read_u32(np, "tWTR-min-tck", &min->tWTR); in of_get_min_tck()
44 ret |= of_property_read_u32(np, "tXP-min-tck", &min->tXP); in of_get_min_tck()
45 ret |= of_property_read_u32(np, "tRT in of_get_min_tck()
63 of_do_get_timings(struct device_node * np,struct lpddr2_timings * tim) of_do_get_timings() argument
165 of_lpddr3_get_min_tck(struct device_node * np,struct device * dev) of_lpddr3_get_min_tck() argument
211 of_lpddr3_do_get_timings(struct device_node * np,struct lpddr3_timings * tim) of_lpddr3_do_get_timings() argument
317 of_lpddr2_get_info(struct device_node * np,struct device * dev) of_lpddr2_get_info() argument
[all...]
/linux/drivers/video/
H A Dof_display_timing.c25 static int parse_timing_property(const struct device_node *np, const char *name, in parse_timing_property() argument
31 prop = of_find_property(np, name, &length); in parse_timing_property()
33 pr_err("%pOF: could not find property %s\n", np, name); in parse_timing_property()
39 ret = of_property_read_u32(np, name, &result->typ); in parse_timing_property()
43 ret = of_property_read_u32_array(np, name, &result->min, cells); in parse_timing_property()
45 pr_err("%pOF: illegal timing specification in %s\n", np, name); in parse_timing_property()
57 static int of_parse_display_timing(const struct device_node *np, in of_parse_display_timing() argument
65 ret |= parse_timing_property(np, "hback-porch", &dt->hback_porch); in of_parse_display_timing()
66 ret |= parse_timing_property(np, "hfront-porch", &dt->hfront_porch); in of_parse_display_timing()
67 ret |= parse_timing_property(np, "hactive", &dt->hactive); in of_parse_display_timing()
[all …]
/linux/drivers/of/
H A Dbase.c60 bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq() argument
65 if (!np) in of_node_name_eq()
68 node_name = kbasename(np->full_name); in of_node_name_eq()
75 bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix() argument
77 if (!np) in of_node_name_prefix()
80 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix()
84 static bool __of_node_is_type(const struct device_node *np, const char *type) in __of_node_is_type() argument
89 if (!np || !type) in __of_node_is_type()
92 match = __of_get_property(np, "device_type", &len); in __of_node_is_type()
101 struct device_node *np __free(device_node) = in of_coreboot_present()
[all …]
/linux/include/linux/
H A Dof.h72 struct device_node *np; member
258 extern bool of_node_name_eq(const struct device_node *np, const char *name);
259 extern bool of_node_name_prefix(const struct device_node *np, const char *prefix);
261 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name() argument
263 return np ? np->full_name : "<no-node>"; in of_node_full_name()
313 extern struct property *of_find_property(const struct device_node *np,
316 extern bool of_property_read_bool(const struct device_node *np, const char *propname);
317 extern int of_property_count_elems_of_size(const struct device_node *np,
319 extern int of_property_read_u8_index(const struct device_node *np,
503 of_node_name_eq(const struct device_node * np,const char * name) of_node_name_eq() argument
508 of_node_name_prefix(const struct device_node * np,const char * prefix) of_node_name_prefix() argument
513 of_node_full_name(const struct device_node * np) of_node_full_name() argument
639 of_find_property(const struct device_node * np,const char * name,int * lenp) of_find_property() argument
654 of_property_read_bool(const struct device_node * np,const char * propname) of_property_read_bool() argument
660 of_property_count_elems_of_size(const struct device_node * np,const char * propname,int elem_size) of_property_count_elems_of_size() argument
666 of_property_read_u8_index(const struct device_node * np,const char * propname,u32 index,u8 * out_value) of_property_read_u8_index() argument
672 of_property_read_u16_index(const struct device_node * np,const char * propname,u32 index,u16 * out_value) of_property_read_u16_index() argument
678 of_property_read_u32_index(const struct device_node * np,const char * propname,u32 index,u32 * out_value) of_property_read_u32_index() argument
684 of_property_read_u64_index(const struct device_node * np,const char * propname,u32 index,u64 * out_value) of_property_read_u64_index() argument
708 of_cpu_node_to_id(struct device_node * np) of_cpu_node_to_id() argument
724 of_n_addr_cells(struct device_node * np) of_n_addr_cells() argument
729 of_n_size_cells(struct device_node * np) of_n_size_cells() argument
734 of_property_read_variable_u8_array(const struct device_node * np,const char * propname,u8 * out_values,size_t sz_min,size_t sz_max) of_property_read_variable_u8_array() argument
741 of_property_read_variable_u16_array(const struct device_node * np,const char * propname,u16 * out_values,size_t sz_min,size_t sz_max) of_property_read_variable_u16_array() argument
748 of_property_read_variable_u32_array(const struct device_node * np,const char * propname,u32 * out_values,size_t sz_min,size_t sz_max) of_property_read_variable_u32_array() argument
757 of_property_read_u64(const struct device_node * np,const char * propname,u64 * out_value) of_property_read_u64() argument
763 of_property_read_variable_u64_array(const struct device_node * np,const char * propname,u64 * out_values,size_t sz_min,size_t sz_max) of_property_read_variable_u64_array() argument
772 of_property_read_string(const struct device_node * np,const char * propname,const char ** out_string) of_property_read_string() argument
779 of_property_match_string(const struct device_node * np,const char * propname,const char * string) of_property_match_string() argument
786 of_property_read_string_helper(const struct device_node * np,const char * propname,const char ** out_strs,size_t sz,int index) of_property_read_string_helper() argument
793 __of_parse_phandle_with_args(const struct device_node * np,const char * list_name,const char * cells_name,int cell_count,int index,struct of_phandle_args * out_args) __of_parse_phandle_with_args() argument
803 of_parse_phandle_with_args_map(const struct device_node * np,const char * list_name,const char * stem_name,int index,struct of_phandle_args * out_args) of_parse_phandle_with_args_map() argument
812 of_count_phandle_with_args(const struct device_node * np,const char * list_name,const char * cells_name) of_count_phandle_with_args() argument
819 of_modalias(const struct device_node * np,char * str,ssize_t len) of_modalias() argument
825 of_request_module(const struct device_node * np) of_request_module() argument
831 of_phandle_iterator_init(struct of_phandle_iterator * it,const struct device_node * np,const char * list_name,const char * cells_name,int cell_count) of_phandle_iterator_init() argument
851 of_alias_get_id(struct device_node * np,const char * stem) of_alias_get_id() argument
877 of_add_property(struct device_node * np,struct property * prop) of_add_property() argument
882 of_remove_property(struct device_node * np,struct property * prop) of_remove_property() argument
953 of_map_id(const struct device_node * np,u32 id,const char * map_name,const char * cells_name,const char * map_mask_name,struct device_node * const * filter_np,struct of_phandle_args * arg) of_map_id() argument
962 of_map_iommu_id(const struct device_node * np,u32 id,struct of_phandle_args * arg) of_map_iommu_id() argument
968 of_map_msi_id(const struct device_node * np,u32 id,struct device_node * const * filter_np,struct of_phandle_args * arg) of_map_msi_id() argument
975 of_dma_get_max_cpu_address(struct device_node * np) of_dma_get_max_cpu_address() argument
1029 of_node_get_device_type(const struct device_node * np) of_node_get_device_type() argument
1034 of_node_is_type(const struct device_node * np,const char * type) of_node_is_type() argument
1051 of_parse_phandle(const struct device_node * np,const char * phandle_name,int index) of_parse_phandle() argument
1096 of_parse_phandle_with_args(const struct device_node * np,const char * list_name,const char * cells_name,int index,struct of_phandle_args * out_args) of_parse_phandle_with_args() argument
1142 of_parse_phandle_with_fixed_args(const struct device_node * np,const char * list_name,int cell_count,int index,struct of_phandle_args * out_args) of_parse_phandle_with_fixed_args() argument
1167 of_parse_phandle_with_optional_args(const struct device_node * np,const char * list_name,const char * cells_name,int index,struct of_phandle_args * out_args) of_parse_phandle_with_optional_args() argument
1206 of_property_count_u8_elems(const struct device_node * np,const char * propname) of_property_count_u8_elems() argument
1225 of_property_count_u16_elems(const struct device_node * np,const char * propname) of_property_count_u16_elems() argument
1244 of_property_count_u32_elems(const struct device_node * np,const char * propname) of_property_count_u32_elems() argument
1263 of_property_count_u64_elems(const struct device_node * np,const char * propname) of_property_count_u64_elems() argument
1282 of_property_read_string_array(const struct device_node * np,const char * propname,const char ** out_strs,size_t sz) of_property_read_string_array() argument
1302 of_property_count_strings(const struct device_node * np,const char * propname) of_property_count_strings() argument
1327 of_property_read_string_index(const struct device_node * np,const char * propname,int index,const char ** output) of_property_read_string_index() argument
1344 of_property_present(const struct device_node * np,const char * propname) of_property_present() argument
1371 of_property_read_u8_array(const struct device_node * np,const char * propname,u8 * out_values,size_t sz) of_property_read_u8_array() argument
1403 of_property_read_u16_array(const struct device_node * np,const char * propname,u16 * out_values,size_t sz) of_property_read_u16_array() argument
1433 of_property_read_u32_array(const struct device_node * np,const char * propname,u32 * out_values,size_t sz) of_property_read_u32_array() argument
1463 of_property_read_u64_array(const struct device_node * np,const char * propname,u64 * out_values,size_t sz) of_property_read_u64_array() argument
1475 of_property_read_u8(const struct device_node * np,const char * propname,u8 * out_value) of_property_read_u8() argument
1482 of_property_read_u16(const struct device_node * np,const char * propname,u16 * out_value) of_property_read_u16() argument
1489 of_property_read_u32(const struct device_node * np,const char * propname,u32 * out_value) of_property_read_u32() argument
1496 of_property_read_s32(const struct device_node * np,const char * propname,s32 * out_value) of_property_read_s32() argument
1503 of_property_read_s32_index(const struct device_node * np,const char * propname,u32 index,s32 * out_value) of_property_read_s32_index() argument
1510 of_for_each_phandle(it,err,np,ln,cn,cc) global() argument
1516 of_property_for_each_u32(np,propname,u) global() argument
1523 of_property_for_each_string(np,propname,prop,s) global() argument
1589 of_get_child_count(const struct device_node * np) of_get_child_count() argument
1600 of_get_available_child_count(const struct device_node * np) of_get_available_child_count() argument
1657 struct device_node *np; global() member
1700 of_changeset_attach_node(struct of_changeset * ocs,struct device_node * np) of_changeset_attach_node() argument
1706 of_changeset_detach_node(struct of_changeset * ocs,struct device_node * np) of_changeset_detach_node() argument
1712 of_changeset_add_property(struct of_changeset * ocs,struct device_node * np,struct property * prop) of_changeset_add_property() argument
1718 of_changeset_remove_property(struct of_changeset * ocs,struct device_node * np,struct property * prop) of_changeset_remove_property() argument
1724 of_changeset_update_property(struct of_changeset * ocs,struct device_node * np,struct property * prop) of_changeset_update_property() argument
1744 of_changeset_add_prop_u32(struct of_changeset * ocs,struct device_node * np,const char * prop_name,const u32 val) of_changeset_add_prop_u32() argument
1785 of_device_is_system_power_controller(const struct device_node * np) of_device_is_system_power_controller() argument
[all...]
H A Dof_mdio.h17 int __of_mdiobus_register(struct mii_bus *mdio, struct device_node *np,
21 struct device_node *np) in of_mdiobus_register() argument
23 return __of_mdiobus_register(mdio, np, THIS_MODULE); in of_mdiobus_register()
27 struct device_node *np, struct module *owner);
31 struct device_node *np) in devm_of_mdiobus_register() argument
33 return __devm_of_mdiobus_register(dev, mdio, np, THIS_MODULE); in devm_of_mdiobus_register()
36 struct mdio_device *of_mdio_find_device(struct device_node *np);
43 of_phy_get_and_connect(struct net_device *dev, struct device_node *np,
47 int of_phy_register_fixed_link(struct device_node *np);
48 void of_phy_deregister_fixed_link(struct device_node *np);
[all …]
/linux/arch/powerpc/kernel/
H A Dlegacy_serial.c33 struct device_node *np; member
76 static int __init add_legacy_port(struct device_node *np, int want_index, in add_legacy_port() argument
89 clk = of_get_property(np, "clock-frequency", NULL); in add_legacy_port()
94 spd = of_get_property(np, "current-speed", NULL); in add_legacy_port()
97 rs = of_get_property(np, "reg-shift", NULL); in add_legacy_port()
120 if (legacy_info->np != NULL) { in add_legacy_port()
146 legacy_info->np = of_node_get(np); in add_legacy_port()
156 printk(KERN_DEBUG "Found legacy serial port %d for %pOF\n", index, np); in add_legacy_port()
164 static int __init add_legacy_soc_port(struct device_node *np, in add_legacy_soc_port() argument
169 struct device_node *tsi = of_get_parent(np); in add_legacy_soc_port()
[all …]
/linux/drivers/gpio/
H A Dgpiolib-of.c45 * @np: device node to count GPIOs for
66 static int of_gpio_named_count(const struct device_node *np, in of_gpio_named_count() argument
69 return of_count_phandle_with_args(np, propname, "#gpio-cells"); in of_gpio_named_count()
74 * @np: Consuming device node
89 static int of_gpio_spi_cs_get_count(const struct device_node *np, in of_gpio_spi_cs_get_count() argument
96 if (!of_device_is_compatible(np, "fsl,spi") && in of_gpio_spi_cs_get_count()
97 !of_device_is_compatible(np, "aeroflexgaisler,spictrl") && in of_gpio_spi_cs_get_count()
98 !of_device_is_compatible(np, "ibm,ppc4xx-spi")) in of_gpio_spi_cs_get_count()
100 return of_gpio_named_count(np, "gpios"); in of_gpio_spi_cs_get_count()
105 const struct device_node *np in of_gpio_count() local
157 of_gpio_quirk_polarity(const struct device_node * np,bool active_high,enum of_gpio_flags * flags) of_gpio_quirk_polarity() argument
179 of_gpio_try_fixup_polarity(const struct device_node * np,const char * propname,enum of_gpio_flags * flags) of_gpio_try_fixup_polarity() argument
264 of_gpio_set_polarity_by_property(const struct device_node * np,const char * propname,enum of_gpio_flags * flags) of_gpio_set_polarity_by_property() argument
343 of_gpio_flags_quirks(const struct device_node * np,const char * propname,enum of_gpio_flags * flags,int index) of_gpio_flags_quirks() argument
417 of_get_named_gpiod_flags(const struct device_node * np,const char * propname,int index,enum of_gpio_flags * flags) of_get_named_gpiod_flags() argument
487 of_find_gpio_rename(struct device_node * np,const char * con_id,unsigned int idx,enum of_gpio_flags * of_flags) of_find_gpio_rename() argument
624 of_find_mt2701_gpio(struct device_node * np,const char * con_id,unsigned int idx,enum of_gpio_flags * of_flags) of_find_mt2701_gpio() argument
663 of_find_trigger_gpio(struct device_node * np,const char * con_id,unsigned int idx,enum of_gpio_flags * of_flags) of_find_trigger_gpio() argument
697 of_find_gpio(struct device_node * np,const char * con_id,unsigned int idx,unsigned long * flags) of_find_gpio() argument
768 of_find_gpio_device_by_node(struct device_node * np) of_find_gpio_device_by_node() argument
916 struct device_node *np; of_gpiochip_add_pin_range() local
1050 struct device_node *np; of_gpiochip_add() local
1082 struct device_node *np = dev_of_node(&chip->gpiodev->dev); of_gpiochip_remove() local
[all...]
/linux/drivers/mfd/
H A Dsyscon.c28 struct device_node *np; member
40 static struct syscon *of_syscon_register(struct device_node *np, bool check_res) in of_syscon_register() argument
58 if (of_address_to_resource(np, 0, &res)) in of_syscon_register()
61 base = of_iomap(np, 0); in of_syscon_register()
66 if (of_property_read_bool(np, "big-endian")) in of_syscon_register()
68 else if (of_property_read_bool(np, "little-endian")) in of_syscon_register()
70 else if (of_property_read_bool(np, "native-endian")) in of_syscon_register()
78 ret = of_property_read_u32(np, "reg-io-width", &reg_io_width); in of_syscon_register()
82 ret = of_hwspin_lock_get_id(np, 0); in of_syscon_register()
106 syscon_config.name = kasprintf(GFP_KERNEL, "%pOFn@%pa", np, &res.start); in of_syscon_register()
[all …]
/linux/drivers/thermal/
H A Dthermal_of.c36 * @np: Pointer to the given device_node
44 static int thermal_of_get_trip_type(struct device_node *np, in thermal_of_get_trip_type() argument
50 err = of_property_read_string(np, "type", &t); in thermal_of_get_trip_type()
63 static int thermal_of_populate_trip(struct device_node *np, in thermal_of_populate_trip() argument
70 ret = of_property_read_s32(np, "temperature", &temperature); in thermal_of_populate_trip()
77 ret = of_property_read_u32(np, "hysteresis", &hysteresis); in thermal_of_populate_trip()
84 ret = thermal_of_get_trip_type(np, &trip->type); in thermal_of_populate_trip()
92 trip->priv = np; in thermal_of_populate_trip()
97 static struct thermal_trip *thermal_of_trips_init(struct device_node *np, int *ntrips) in thermal_of_trips_init()
103 struct device_node *trips __free(device_node) = of_get_child_by_name(np, "trip in thermal_of_trips_init()
96 thermal_of_trips_init(struct device_node * np,int * ntrips) thermal_of_trips_init() argument
175 thermal_of_monitor_init(struct device_node * np,int * delay,int * pdelay) thermal_of_monitor_init() argument
198 thermal_of_parameters_init(struct device_node * np,struct thermal_zone_params * tzp) thermal_of_parameters_init() argument
227 struct device_node *np, *tz_np; thermal_of_zone_get_by_name() local
392 struct device_node *np; thermal_of_zone_register() local
550 thermal_of_cooling_device_register(struct device_node * np,u32 cdev_id,const char * type,void * devdata,const struct thermal_cooling_device_ops * ops) thermal_of_cooling_device_register() argument
580 __devm_thermal_of_cooling_device_register(struct device * dev,struct device_node * np,u32 cdev_id,const char * type,void * devdata,const struct thermal_cooling_device_ops * ops) __devm_thermal_of_cooling_device_register() argument
646 devm_thermal_of_child_cooling_device_register(struct device * dev,struct device_node * np,const char * type,void * devdata,const struct thermal_cooling_device_ops * ops) devm_thermal_of_child_cooling_device_register() argument
[all...]
/linux/drivers/pci/pwrctrl/
H A Dcore.c152 static bool pci_pwrctrl_is_required(struct device_node *np) in pci_pwrctrl_is_required() argument
158 ret = of_property_read_string(np, "compatible", &compat); in pci_pwrctrl_is_required()
165 if (of_pci_supply_present(np)) in pci_pwrctrl_is_required()
168 if (of_graph_is_present(np)) { in pci_pwrctrl_is_required()
169 for_each_endpoint_of_node(np, endpoint) { in pci_pwrctrl_is_required()
194 static void pci_pwrctrl_power_off_device(struct device_node *np) in pci_pwrctrl_power_off_device() argument
199 for_each_available_child_of_node_scoped(np, child) in pci_pwrctrl_power_off_device()
202 if (!pci_pwrctrl_is_required(np)) in pci_pwrctrl_power_off_device()
205 pdev = of_find_device_by_node(np); in pci_pwrctrl_power_off_device()
231 struct device_node *np in pci_pwrctrl_power_off_devices() local
252 pci_pwrctrl_power_on_device(struct device_node * np) pci_pwrctrl_power_on_device() argument
299 struct device_node *np = parent->of_node; pci_pwrctrl_power_on_devices() local
323 pci_pwrctrl_create_device(struct device_node * np,struct device * parent) pci_pwrctrl_create_device() argument
384 pci_pwrctrl_destroy_device(struct device_node * np) pci_pwrctrl_destroy_device() argument
411 struct device_node *np = parent->of_node; pci_pwrctrl_destroy_devices() local
[all...]
/linux/arch/powerpc/platforms/powermac/
H A Dsetup.c86 struct device_node *np; in pmac_show_cpuinfo() local
103 np = of_find_node_by_path("/"); in pmac_show_cpuinfo()
104 if (np != NULL) { in pmac_show_cpuinfo()
105 pp = of_get_property(np, "model", NULL); in pmac_show_cpuinfo()
110 pp = of_get_property(np, "compatible", &plen); in pmac_show_cpuinfo()
121 of_node_put(np); in pmac_show_cpuinfo()
130 np = of_find_node_by_name(NULL, "l2-cache"); in pmac_show_cpuinfo()
131 if (np == NULL) in pmac_show_cpuinfo()
132 np = of_find_node_by_type(NULL, "cache"); in pmac_show_cpuinfo()
133 if (np != NULL) { in pmac_show_cpuinfo()
[all …]
/linux/drivers/net/fddi/skfp/
H A Dpcmplc.c196 static void sm_ph_lem_start(struct s_smc *smc, int np, int threshold);
197 static void sm_ph_lem_stop(struct s_smc *smc, int np);
210 EV_TOKEN(EVENT_PCM+phy->np,event)) ; in start_pcm_timer0()
229 int np ; in pcm_init() local
233 for (np = 0,phy = smc->y ; np < NUMPHYS ; np++,phy++) { in pcm_init()
237 phy->np = np ; in pcm_init()
241 mib->fddiPORTMy_Type = (np in pcm_init()
525 int np = phy->np ; /* PHY index */ plc_send_bits() local
584 pcm(struct s_smc * smc,const int np,int event) pcm() argument
665 int np = phy->np ; /* PHY index */ pcm_fsm() local
1167 int np ; sm_lem_evaluate() local
1217 sm_ph_lem_start(struct s_smc * smc,int np,int threshold) sm_ph_lem_start() argument
1235 sm_ph_lem_stop(struct s_smc * smc,int np) sm_ph_lem_stop() argument
1391 int np = phy->np ; pc_tcode_actions() local
1586 pcm_status_state(struct s_smc * smc,int np,int * type,int * state,int * remote,int * mac) pcm_status_state() argument
1625 plc_irq(struct s_smc * smc,int np,unsigned int cmd) plc_irq() argument
1880 get_pcm_state(struct s_smc * smc,int np) get_pcm_state() argument
1902 get_linestate(struct s_smc * smc,int np) get_linestate() argument
1924 get_pcmstate(struct s_smc * smc,int np) get_pcmstate() argument
1949 int np ; list_phy() local
[all...]
/linux/drivers/pinctrl/
H A Dpinctrl-generic.c23 struct device_node *np, struct pinctrl_map **maps, in pinctrl_generic_to_map() argument
34 group_name = devm_kasprintf(dev, GFP_KERNEL, "%pOFn.%pOFn", parent, np); in pinctrl_generic_to_map()
56 ret = pinconf_generic_parse_dt_config(np, pctldev, &configs, &num_configs); in pinctrl_generic_to_map()
90 struct device_node *np, in pinctrl_generic_pins_function_dt_subnode_to_map() argument
102 npins = of_property_count_u32_elems(np, "pins"); in pinctrl_generic_pins_function_dt_subnode_to_map()
106 parent, np, npins); in pinctrl_generic_pins_function_dt_subnode_to_map()
119 ret = of_property_read_u32_index(np, "pins", i, &pin); in pinctrl_generic_pins_function_dt_subnode_to_map()
125 ret = of_property_read_string(np, "function", &functions[i]); in pinctrl_generic_pins_function_dt_subnode_to_map()
130 return pinctrl_generic_to_map(pctldev, parent, np, maps, num_maps, in pinctrl_generic_pins_function_dt_subnode_to_map()
137 struct device_node *np, in pinctrl_generic_pinmux_dt_subnode_to_map() argument
181 pinctrl_generic_dt_node_to_map(struct pinctrl_dev * pctldev,struct device_node * np,struct pinctrl_map ** maps,unsigned int * num_maps,int (dt_subnode_to_map)(struct pinctrl_dev *,struct device_node *,struct device_node *,struct pinctrl_map **,unsigned int *,unsigned int *,const char **,unsigned int)) pinctrl_generic_dt_node_to_map() argument
270 pinctrl_generic_pins_function_dt_node_to_map(struct pinctrl_dev * pctldev,struct device_node * np,struct pinctrl_map ** maps,unsigned int * num_maps) pinctrl_generic_pins_function_dt_node_to_map() argument
290 pinctrl_generic_pinmux_dt_node_to_map(struct pinctrl_dev * pctldev,struct device_node * np,struct pinctrl_map ** maps,unsigned int * num_maps) pinctrl_generic_pinmux_dt_node_to_map() argument
[all...]
/linux/arch/powerpc/platforms/512x/
H A Dmpc512x_shared.c57 struct device_node *np; in mpc512x_set_pixel_clock() local
63 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-diu"); in mpc512x_set_pixel_clock()
64 if (!np) { in mpc512x_set_pixel_clock()
68 clk_diu = of_clk_get(np, 0); in mpc512x_set_pixel_clock()
71 clk_diu = clk_get_sys(np->name, "ipg"); in mpc512x_set_pixel_clock()
73 of_node_put(np); in mpc512x_set_pixel_clock()
205 struct device_node *np; in mpc512x_init_diu() local
212 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-diu"); in mpc512x_init_diu()
213 if (!np) { in mpc512x_init_diu()
218 diu_reg = of_iomap(np, 0); in mpc512x_init_diu()
[all …]
/linux/drivers/opp/
H A Dof.c31 static struct device_node *_opp_of_get_opp_desc_node(struct device_node *np, in _opp_of_get_opp_desc_node() argument
35 return of_parse_phandle(np, "operating-points-v2", index); in _opp_of_get_opp_desc_node()
49 struct device_node *np __free(device_node) = in _managed_opp()
52 if (!np) in _managed_opp()
56 if (opp_table->np == np) { in _managed_opp()
59 * so will have same node-pointer, np. in _managed_opp()
83 if (opp->np == opp_np) in _find_opp_of_np()
90 static struct device_node *of_parse_required_opp(struct device_node *np, in of_parse_required_opp() argument
93 return of_parse_phandle(np, "require in of_parse_required_opp()
501 _opp_is_supported(struct device * dev,struct opp_table * opp_table,struct device_node * np) _opp_is_supported() argument
723 _read_rate(struct dev_pm_opp * new_opp,struct opp_table * opp_table,struct device_node * np) _read_rate() argument
767 _read_bw(struct dev_pm_opp * new_opp,struct opp_table * opp_table,struct device_node * np,bool peak) _read_bw() argument
808 _read_opp_key(struct dev_pm_opp * new_opp,struct opp_table * opp_table,struct device_node * np) _read_opp_key() argument
868 _opp_add_static_v2(struct opp_table * opp_table,struct device * dev,struct device_node * np) _opp_add_static_v2() argument
1334 of_get_required_opp_performance_state(struct device_node * np,int index) of_get_required_opp_performance_state() argument
[all...]
/linux/drivers/clk/renesas/
H A Dclk-emev2.c41 struct device_node *np; in emev2_smu_init() local
43 np = of_find_matching_node(NULL, smu_id); in emev2_smu_init()
44 BUG_ON(!np); in emev2_smu_init()
45 smu_base = of_iomap(np, 0); in emev2_smu_init()
47 of_node_put(np); in emev2_smu_init()
64 static void __init emev2_smu_clkdiv_init(struct device_node *np) in emev2_smu_clkdiv_init() argument
68 const char *parent_name = of_clk_get_parent_name(np, 0); in emev2_smu_clkdiv_init()
69 if (WARN_ON(of_property_read_u32_array(np, "reg", reg, 2))) in emev2_smu_clkdiv_init()
73 clk = clk_register_divider(NULL, np->name, parent_name, 0, in emev2_smu_clkdiv_init()
75 of_clk_add_provider(np, of_clk_src_simple_get, clk); in emev2_smu_clkdiv_init()
[all …]
/linux/drivers/macintosh/
H A Dmacio_asic.c186 static int macio_resource_quirks(struct device_node *np, struct resource *res, in macio_resource_quirks() argument
194 if (index == 0 && of_node_name_eq(np, "gc")) in macio_resource_quirks()
198 if (index >= 2 && of_node_name_eq(np, "radio")) in macio_resource_quirks()
211 if (of_node_name_eq(np, "escc")) in macio_resource_quirks()
215 if (index >= 3 && (of_node_name_eq(np, "ch-a") || in macio_resource_quirks()
216 of_node_name_eq(np, "ch-b"))) in macio_resource_quirks()
220 if (index > 0 && of_node_name_eq(np, "media-bay")) in macio_resource_quirks()
224 if (of_node_name_eq(np, "IDE") || of_node_name_eq(np, "ATA") || in macio_resource_quirks()
225 of_node_is_type(np, "ide") || of_node_is_type(np, "ata")) { in macio_resource_quirks()
251 struct device_node *np = dev->ofdev.dev.of_node; in macio_add_missing_resources() local
[all …]
/linux/drivers/net/wireless/mediatek/mt76/
H A Deeprom.c22 struct device_node *np = dev->dev->of_node; in mt76_get_of_eeprom_data() local
26 data = of_get_property(np, "mediatek,eeprom-data", &size); in mt76_get_of_eeprom_data()
41 struct device_node *np = dev->dev->of_node; in mt76_get_of_data_from_mtd() local
50 list = of_get_property(np, "mediatek,mtd-eeprom", &size); in mt76_get_of_data_from_mtd()
58 np = of_find_node_by_phandle(phandle); in mt76_get_of_data_from_mtd()
59 if (!np) in mt76_get_of_data_from_mtd()
62 part = of_get_property(np, "label", NULL); in mt76_get_of_data_from_mtd()
64 part = np->name; in mt76_get_of_data_from_mtd()
113 of_node_put(np); in mt76_get_of_data_from_mtd()
124 struct device_node *np in mt76_get_of_data_from_nvmem() local
156 struct device_node *np = dev->dev->of_node; mt76_get_of_eeprom() local
177 struct device_node *np = dev->dev->of_node; mt76_eeprom_override() local
212 struct device_node *np = dev->dev->of_node; mt76_find_power_limits_node() local
251 mt76_get_of_array(struct device_node * np,char * name,size_t * len,int min) mt76_get_of_array() argument
264 mt76_get_of_array_s8(struct device_node * np,char * name,size_t * len,int min) mt76_get_of_array_s8() argument
277 mt76_find_channel_node(struct device_node * np,struct ieee80211_channel * chan) mt76_find_channel_node() argument
303 mt76_get_txs_delta(struct device_node * np,u8 nss) mt76_get_txs_delta() argument
432 struct device_node *np; mt76_get_rate_power_limits() local
[all...]

12345678910>>...65