Searched refs:sc (Results 276 - 300 of 2442) sorted by relevance

<<11121314151617181920>>

/freebsd-current/sys/powerpc/powermac/
H A Dkiic.c117 static void kiic_writereg(struct kiic_softc *sc, u_int, u_int);
167 struct kiic_softc *sc = device_get_softc(self); local
172 bzero(sc, sizeof(*sc));
173 sc->sc_dev = self;
181 sc->sc_reg = bus_alloc_resource_any(self, SYS_RES_MEMORY,
183 if (sc->sc_reg == NULL) {
191 if (OF_getencprop(node, "AAPL,address-step", &sc->sc_regstep, 4) != 4) {
209 sc->sc_node = node;
216 sc
248 kiic_writereg(struct kiic_softc *sc, u_int reg, u_int val) argument
255 kiic_readreg(struct kiic_softc *sc, u_int reg) argument
261 kiic_setmode(struct kiic_softc *sc, u_int mode) argument
273 kiic_setport(struct kiic_softc *sc, u_int port) argument
285 kiic_setspeed(struct kiic_softc *sc, u_int speed) argument
299 struct kiic_softc *sc = xsc; local
354 struct kiic_softc *sc; local
435 struct kiic_softc *sc; local
[all...]
/freebsd-current/sys/dev/hyperv/netvsc/
H A Dhn_nvs.c93 hn_nvs_xact_execute(struct hn_softc *sc, struct vmbus_xact *xact, argument
110 error = hn_nvs_send(sc->hn_prichan, VMBUS_CHANPKT_FLAG_RC,
116 hdr = vmbus_chan_xact_wait(sc->hn_prichan, xact, &resplen,
117 HN_CAN_SLEEP(sc));
123 if_printf(sc->hn_ifp, "invalid NVS resp len %zu\n", resplen);
127 if_printf(sc->hn_ifp, "unexpected NVS resp 0x%08x, "
137 hn_nvs_req_send(struct hn_softc *sc, void *req, int reqlen) argument
140 return (hn_nvs_send(sc->hn_prichan, VMBUS_CHANPKT_FLAG_NONE,
145 hn_nvs_conn_rxbuf(struct hn_softc *sc) argument
157 if (sc
223 hn_nvs_conn_chim(struct hn_softc *sc) argument
329 hn_nvs_disconn_rxbuf(struct hn_softc *sc) argument
389 hn_nvs_disconn_chim(struct hn_softc *sc) argument
456 hn_nvs_doinit(struct hn_softc *sc, uint32_t nvs_ver) argument
505 hn_nvs_conf_ndis(struct hn_softc *sc, int mtu) argument
534 hn_nvs_init_ndis(struct hn_softc *sc) argument
552 hn_nvs_init(struct hn_softc *sc) argument
608 hn_nvs_attach(struct hn_softc *sc, int mtu) argument
659 hn_nvs_detach(struct hn_softc *sc) argument
685 hn_nvs_alloc_subchans(struct hn_softc *sc, int *nsubch0) argument
745 hn_nvs_set_datapath(struct hn_softc *sc, uint32_t path) argument
[all...]
/freebsd-current/sys/powerpc/pseries/
H A Dphyp_llan.c124 static int llan_add_rxbuf(struct llan_softc *sc, struct llan_xfer *rx);
125 static int llan_set_multicast(struct llan_softc *sc);
155 struct llan_softc *sc; local
160 sc = device_get_softc(dev);
161 sc->dev = dev;
165 len = OF_getprop(node, "local-mac-address", sc->mac_address,
166 sizeof(sc->mac_address));
168 * instead of 8 (sizeof(sc->mac_address)), then its value must be
171 bcopy(sc->mac_address, &sc
255 struct llan_softc *sc = if_getsoftc(ifp); local
277 struct llan_softc *sc = xsc; local
288 struct llan_softc *sc = xsc; local
323 llan_add_rxbuf(struct llan_softc *sc, struct llan_xfer *rx) argument
377 struct llan_softc *sc = xsc; local
431 struct llan_softc *sc = xsc; local
460 struct llan_softc *sc = if_getsoftc(ifp); local
498 struct llan_softc *sc = if_getsoftc(ifp); local
508 struct llan_softc *sc = arg; local
518 llan_set_multicast(struct llan_softc *sc) argument
535 struct llan_softc *sc = if_getsoftc(ifp); local
[all...]
/freebsd-current/sys/dev/adb/
H A Dadb_kbd.c283 struct adb_kbd_softc *sc; local
293 sc = device_get_softc(dev);
294 sc->sc_dev = dev;
295 sc->sc_mode = K_RAW;
296 sc->sc_state = 0;
297 sc->have_led_control = 0;
298 sc->buffers = 0;
303 mtx_init(&sc->sc_mutex, KBD_DRIVER_NAME, NULL, MTX_DEF);
304 cv_init(&sc->sc_cv,KBD_DRIVER_NAME);
305 callout_init(&sc
379 struct adb_kbd_softc *sc; local
412 struct adb_kbd_softc *sc; local
475 struct adb_kbd_softc *sc = xsc; local
546 struct adb_kbd_softc *sc; local
563 struct adb_kbd_softc *sc; local
590 struct adb_kbd_softc *sc; local
697 struct adb_kbd_softc *sc; local
807 struct adb_kbd_softc *sc; local
860 struct adb_kbd_softc *sc = arg1; local
[all...]
/freebsd-current/sys/dev/iwm/
H A Dif_iwm.c305 static int iwm_pcie_load_cpu_sections_8000(struct iwm_softc *sc,
321 static int iwm_config_ltr(struct iwm_softc *sc);
380 static int iwm_detach_local(struct iwm_softc *sc, int);
407 iwm_store_cscheme(struct iwm_softc *sc, const uint8_t *data, size_t dlen) argument
421 iwm_firmware_store_section(struct iwm_softc *sc, argument
432 fws = &sc->sc_fw.img[type];
459 iwm_set_default_calib(struct iwm_softc *sc, const void *data) argument
465 device_printf(sc->sc_dev,
471 sc->sc_default_calib[ucode_type].flow_trigger =
473 sc
480 iwm_set_ucode_api_flags(struct iwm_softc *sc, const uint8_t *data, struct iwm_ucode_capabilities *capa) argument
505 iwm_set_ucode_capabilities(struct iwm_softc *sc, const uint8_t *data, struct iwm_ucode_capabilities *capa) argument
538 iwm_read_firmware(struct iwm_softc *sc) argument
892 iwm_alloc_fwmem(struct iwm_softc *sc) argument
901 iwm_alloc_sched(struct iwm_softc *sc) argument
910 iwm_alloc_kw(struct iwm_softc *sc) argument
917 iwm_alloc_ict(struct iwm_softc *sc) argument
924 iwm_alloc_rx_ring(struct iwm_softc *sc, struct iwm_rx_ring *ring) argument
1016 iwm_reset_rx_ring(struct iwm_softc *sc, struct iwm_rx_ring *ring) argument
1030 iwm_free_rx_ring(struct iwm_softc *sc, struct iwm_rx_ring *ring) argument
1067 iwm_alloc_tx_ring(struct iwm_softc *sc, struct iwm_tx_ring *ring, int qid) argument
1147 iwm_reset_tx_ring(struct iwm_softc *sc, struct iwm_tx_ring *ring) argument
1175 iwm_free_tx_ring(struct iwm_softc *sc, struct iwm_tx_ring *ring) argument
1208 iwm_enable_interrupts(struct iwm_softc *sc) argument
1215 iwm_restore_interrupts(struct iwm_softc *sc) argument
1221 iwm_disable_interrupts(struct iwm_softc *sc) argument
1232 iwm_ict_reset(struct iwm_softc *sc) argument
1265 iwm_stop_device(struct iwm_softc *sc) argument
1359 iwm_nic_config(struct iwm_softc *sc) argument
1410 iwm_nic_rx_mq_init(struct iwm_softc *sc) argument
1463 iwm_nic_rx_legacy_init(struct iwm_softc *sc) argument
1518 iwm_nic_rx_init(struct iwm_softc *sc) argument
1527 iwm_nic_tx_init(struct iwm_softc *sc) argument
1564 iwm_nic_init(struct iwm_softc *sc) argument
1591 iwm_enable_txq(struct iwm_softc *sc, int sta_id, int qid, int fifo) argument
1686 iwm_trans_pcie_fw_alive(struct iwm_softc *sc, uint32_t scd_base_addr) argument
1775 iwm_nvm_read_chunk(struct iwm_softc *sc, uint16_t section, uint16_t offset, uint16_t length, uint8_t *data, uint16_t *len) argument
1872 iwm_nvm_read_section(struct iwm_softc *sc, uint16_t section, uint8_t *data, uint16_t *len, uint32_t size_read) argument
1938 iwm_add_channel_band(struct iwm_softc *sc, struct ieee80211_channel chans[], int maxchans, int *nchans, int ch_idx, size_t ch_num, const uint8_t bands[]) argument
1982 struct iwm_softc *sc = ic->ic_softc; local
2012 iwm_set_hw_address_family_8000(struct iwm_softc *sc, struct iwm_nvm_data *data, const uint16_t *mac_override, const uint16_t *nvm_hw) argument
2071 iwm_get_sku(const struct iwm_softc *sc, const uint16_t *nvm_sw, const uint16_t *phy_sku) argument
2081 iwm_get_nvm_version(const struct iwm_softc *sc, const uint16_t *nvm_sw) argument
2091 iwm_get_radio_cfg(const struct iwm_softc *sc, const uint16_t *nvm_sw, const uint16_t *phy_sku) argument
2101 iwm_get_n_hw_addrs(const struct iwm_softc *sc, const uint16_t *nvm_sw) argument
2114 iwm_set_radio_cfg(const struct iwm_softc *sc, struct iwm_nvm_data *data, uint32_t radio_cfg) argument
2135 iwm_set_hw_address(struct iwm_softc *sc, struct iwm_nvm_data *data, const uint16_t *nvm_hw, const uint16_t *mac_override) argument
2166 iwm_parse_nvm_data(struct iwm_softc *sc, const uint16_t *nvm_hw, const uint16_t *nvm_sw, const uint16_t *nvm_calib, const uint16_t *mac_override, const uint16_t *phy_sku, const uint16_t *regulatory) argument
2236 iwm_parse_nvm_sections(struct iwm_softc *sc, struct iwm_nvm_section *sections) argument
2290 iwm_nvm_init(struct iwm_softc *sc) argument
2346 iwm_pcie_load_section(struct iwm_softc *sc, uint8_t section_num, const struct iwm_fw_desc *section) argument
2402 iwm_pcie_load_firmware_chunk(struct iwm_softc *sc, uint32_t dst_addr, bus_addr_t phy_addr, uint32_t byte_cnt) argument
2449 iwm_pcie_load_cpu_sections_8000(struct iwm_softc *sc, const struct iwm_fw_img *image, int cpu, int *first_ucode_section) argument
2511 iwm_pcie_load_cpu_sections(struct iwm_softc *sc, const struct iwm_fw_img *image, int cpu, int *first_ucode_section) argument
2553 iwm_pcie_load_given_ucode(struct iwm_softc *sc, const struct iwm_fw_img *image) argument
2591 iwm_pcie_load_given_ucode_8000(struct iwm_softc *sc, const struct iwm_fw_img *image) argument
2621 iwm_enable_fw_load_int(struct iwm_softc *sc) argument
2630 iwm_start_fw(struct iwm_softc *sc, const struct iwm_fw_img *fw) argument
2687 iwm_send_tx_ant_cfg(struct iwm_softc *sc, uint8_t valid_tx_ant) argument
2699 iwm_send_phy_cfg_cmd(struct iwm_softc *sc) argument
2718 iwm_alive_fn(struct iwm_softc *sc, struct iwm_rx_packet *pkt, void *data) argument
2768 iwm_wait_phy_db_entry(struct iwm_softc *sc, struct iwm_rx_packet *pkt, void *data) argument
2790 iwm_load_ucode_wait_alive(struct iwm_softc *sc, enum iwm_ucode_type ucode_type) argument
2886 iwm_run_init_ucode(struct iwm_softc *sc, int justnvm) argument
2976 iwm_config_ltr(struct iwm_softc *sc) argument
2994 iwm_rx_addbuf(struct iwm_softc *sc, int size, int idx) argument
3041 iwm_rx_rx_phy_cmd(struct iwm_softc *sc, struct iwm_rx_packet *pkt) argument
3054 iwm_get_noise(struct iwm_softc *sc, const struct iwm_statistics_rx_non_phy *stats) argument
3090 iwm_handle_rx_statistics(struct iwm_softc *sc, struct iwm_rx_packet *pkt) argument
3106 iwm_rx_get_signal_strength(struct iwm_softc *sc, struct iwm_rx_phy_info *phy_info) argument
3133 iwm_rxmq_get_signal_strength(struct iwm_softc *sc, struct iwm_rx_mpdu_desc *desc) argument
3151 iwm_rx_rx_mpdu(struct iwm_softc *sc, struct mbuf *m, uint32_t offset, bool stolen) argument
3265 iwm_rx_mpdu_mq(struct iwm_softc *sc, struct mbuf *m, uint32_t offset, bool stolen) argument
3375 iwm_rx_mpdu(struct iwm_softc *sc, struct mbuf *m, uint32_t offset, bool stolen) argument
3411 iwm_rx_tx_cmd_single(struct iwm_softc *sc, struct iwm_rx_packet *pkt, struct iwm_node *in) argument
3488 iwm_rx_tx_cmd(struct iwm_softc *sc, struct iwm_rx_packet *pkt) argument
3544 iwm_cmd_done(struct iwm_softc *sc, struct iwm_rx_packet *pkt) argument
3616 iwm_tx_rateidx_global_lookup(struct iwm_softc *sc, uint8_t rate) argument
3636 iwm_tx_fill_cmd(struct iwm_softc *sc, struct iwm_node *in, struct mbuf *m, struct iwm_tx_cmd *tx) argument
3704 iwm_tx(struct iwm_softc *sc, struct mbuf *m, struct ieee80211_node *ni, int ac) argument
3919 struct iwm_softc *sc = ic->ic_softc; local
3960 iwm_flush_tx_path(struct iwm_softc *sc, uint32_t tfd_msk, uint32_t flags) argument
3981 iwm_update_quotas(struct iwm_softc *sc, struct iwm_vap *ivp) argument
4060 iwm_auth(struct ieee80211vap *vap, struct iwm_softc *sc) argument
4224 iwm_rate2ridx(struct iwm_softc *sc, uint8_t rate) argument
4242 iwm_setrates(struct iwm_softc *sc, struct iwm_node *in, int rix) argument
4326 iwm_bring_down_firmware(struct iwm_softc *sc, struct ieee80211vap *vap) argument
4425 struct iwm_softc *sc = ic->ic_softc; local
4554 struct iwm_softc *sc = arg; local
4565 iwm_send_bt_init_conf(struct iwm_softc *sc) argument
4577 iwm_is_lar_supported(struct iwm_softc *sc) argument
4596 iwm_is_wifi_mcc_supported(struct iwm_softc *sc) argument
4603 iwm_send_update_mcc_cmd(struct iwm_softc *sc, const char *alpha2) argument
4675 iwm_tt_tx_backoff(struct iwm_softc *sc, uint32_t backoff) argument
4690 iwm_init_hw(struct iwm_softc *sc) argument
4807 iwm_allow_mcast(struct ieee80211vap *vap, struct iwm_softc *sc) argument
4836 iwm_init(struct iwm_softc *sc) argument
4861 struct iwm_softc *sc; local
4885 iwm_start(struct iwm_softc *sc) argument
4911 iwm_stop(struct iwm_softc *sc) argument
4926 struct iwm_softc *sc = arg; local
4949 struct iwm_softc *sc = ic->ic_softc; local
4973 struct iwm_softc *sc = arg; local
5120 iwm_nic_umac_error(struct iwm_softc *sc) argument
5174 iwm_nic_error(struct iwm_softc *sc) argument
5248 iwm_handle_rxb(struct iwm_softc *sc, struct mbuf *m) argument
5574 iwm_notif_intr(struct iwm_softc *sc) argument
5623 struct iwm_softc *sc = arg; local
5830 struct iwm_softc *sc; local
5853 struct iwm_softc *sc; local
5907 struct iwm_softc *sc = device_get_softc(dev); local
5923 struct iwm_softc *sc = device_get_softc(dev); local
6160 struct iwm_softc *sc = ic->ic_softc; local
6206 struct iwm_softc *sc = arg; local
6278 iwm_radiotap_attach(struct iwm_softc *sc) argument
6338 iwm_xmit_queue_drain(struct iwm_softc *sc) argument
6354 struct iwm_softc *sc = ic->ic_softc; local
6382 struct iwm_softc *sc = ic->ic_softc; local
6430 struct iwm_softc *sc = arg1; local
6447 struct iwm_softc *sc = device_get_softc(dev); local
6478 struct iwm_softc *sc = device_get_softc(dev); local
6498 iwm_detach_local(struct iwm_softc *sc, int do_net80211) argument
6560 struct iwm_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-current/sys/arm/nvidia/
H A Dtegra_sdhci.c119 RD4(struct tegra_sdhci_softc *sc, bus_size_t off) argument
122 return (bus_read_4(sc->mem_res, off));
128 struct tegra_sdhci_softc *sc; local
130 sc = device_get_softc(dev);
131 return (bus_read_1(sc->mem_res, off));
137 struct tegra_sdhci_softc *sc; local
139 sc = device_get_softc(dev);
140 return (bus_read_2(sc->mem_res, off));
146 struct tegra_sdhci_softc *sc; local
149 sc
161 struct tegra_sdhci_softc *sc; local
171 struct tegra_sdhci_softc *sc; local
181 struct tegra_sdhci_softc *sc; local
191 struct tegra_sdhci_softc *sc; local
201 struct tegra_sdhci_softc *sc; local
210 struct tegra_sdhci_softc *sc = arg; local
219 struct tegra_sdhci_softc *sc = device_get_softc(brdev); local
227 struct tegra_sdhci_softc *sc = device_get_softc(dev); local
235 struct tegra_sdhci_softc *sc; local
263 struct tegra_sdhci_softc *sc; local
418 struct tegra_sdhci_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-current/sys/dev/hwpmc/
H A Dpmu_dmc620.c69 #define RD4(sc, r) bus_read_4((sc)->sc_res[0], (r))
70 #define WR4(sc, r, v) bus_write_4((sc)->sc_res[0], (r), (v))
71 #define MD4(sc, r, c, s) WR4((sc), (r), RD4((sc), (r)) & ~(c) | (s))
73 #define CD2MD4(sc, u, r, c, s) MD4((sc), DMC620_CLKDIV2_REG((u), (r)), (c), (s))
74 #define CMD4(sc,
81 struct pmu_dmc620_softc *sc; local
94 struct pmu_dmc620_softc *sc; local
117 struct pmu_dmc620_softc *sc; local
172 struct pmu_dmc620_softc *sc; local
185 pmu_dmc620_clkdiv2_overflow(struct trapframe *tf, struct pmu_dmc620_softc *sc, u_int i) argument
195 pmu_dmc620_clk_overflow(struct trapframe *tf, struct pmu_dmc620_softc *sc, u_int i) argument
209 struct pmu_dmc620_softc *sc; local
[all...]
/freebsd-current/sys/riscv/sifive/
H A Dfe310_aon.c102 #define FEAON_LOCK(sc) mtx_lock(&(sc)->mtx)
103 #define FEAON_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
104 #define FEAON_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED)
105 #define FEAON_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED)
107 #define FEAON_READ_4(sc, reg) bus_read_4(sc
130 struct feaon_softc *sc; local
181 struct feaon_softc *sc; local
220 struct feaon_softc *sc; local
247 struct feaon_softc *sc; local
[all...]
/freebsd-current/sys/arm/ti/clk/
H A Dti_gate_clock.c107 register_clk(struct ti_gate_softc *sc) { argument
109 sc->clkdom = clkdom_create(sc->sc_dev);
110 if (sc->clkdom == NULL) {
111 DPRINTF(sc->sc_dev, "Failed to create clkdom\n");
115 err = clknode_gate_register(sc->clkdom, &sc->gate_def);
117 DPRINTF(sc->sc_dev, "clknode_gate_register failed %x\n", err);
121 err = clkdom_finit(sc->clkdom);
123 DPRINTF(sc
133 struct ti_gate_softc *sc; local
214 struct ti_gate_softc *sc; local
[all...]
/freebsd-current/sys/dev/clk/
H A Dclk_div.c82 clknode_div_table_get_divider(struct clknode_div_sc *sc, uint32_t divider) argument
86 if (!(sc->div_flags & CLK_DIV_WITH_TABLE))
89 for (table = sc->div_table; table->divider != 0; table++)
90 if (table->value == sc->divider)
97 clknode_div_table_get_value(struct clknode_div_sc *sc, uint32_t *divider) argument
101 if (!(sc->div_flags & CLK_DIV_WITH_TABLE))
104 for (table = sc->div_table; table->divider != 0; table++)
117 struct clknode_div_sc *sc; local
121 sc = clknode_get_softc(clk);
124 rv = RD4(clk, sc
147 struct clknode_div_sc *sc; local
164 struct clknode_div_sc *sc; local
243 struct clknode_div_sc *sc; local
[all...]
/freebsd-current/sys/arm/xilinx/
H A Dzy7_devcfg.c88 #define DEVCFG_SC_LOCK(sc) mtx_lock(&(sc)->sc_mtx)
89 #define DEVCFG_SC_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx)
90 #define DEVCFG_SC_LOCK_INIT(sc) \
91 mtx_init(&(sc)->sc_mtx, device_get_nameunit((sc)->dev), \
93 #define DEVCFG_SC_LOCK_DESTROY(sc) mtx_destroy(&(sc)->sc_mtx);
94 #define DEVCFG_SC_ASSERT_LOCKED(sc) mtx_asser
351 zy7_devcfg_init_fclk_sysctl(struct zy7_devcfg_softc *sc) argument
396 zy7_devcfg_init_hw(struct zy7_devcfg_softc *sc) argument
421 zy7_devcfg_reset_pl(struct zy7_devcfg_softc *sc) argument
500 struct zy7_devcfg_softc *sc = dev->si_drv1; local
534 struct zy7_devcfg_softc *sc = dev->si_drv1; local
629 struct zy7_devcfg_softc *sc = dev->si_drv1; local
644 struct zy7_devcfg_softc *sc = (struct zy7_devcfg_softc *)arg; local
676 struct zy7_devcfg_softc *sc = zy7_devcfg_softc_p; local
711 struct zy7_devcfg_softc *sc = device_get_softc(dev); local
793 struct zy7_devcfg_softc *sc = device_get_softc(dev); local
[all...]
/freebsd-current/sys/dev/usb/controller/dwc3/
H A Ddwc3.c79 struct xhci_softc sc; member in struct:snps_dwc3_softc
105 struct xhci_softc *sc = _sc; local
107 USB_BUS_UNLOCK(&sc->sc_bus);
108 xhci_interrupt(sc);
109 USB_BUS_LOCK(&sc->sc_bus);
110 usb_callout_reset(&sc->sc_callout, 1, (void *)&xhci_interrupt_poll, sc);
117 struct xhci_softc *sc = &snps_sc->sc; local
120 sc
186 snsp_dwc3_dump_regs(struct snps_dwc3_softc *sc, const char *msg) argument
214 snps_dwc3_dump_ctrlparams(struct snps_dwc3_softc *sc) argument
233 snps_dwc3_reset(struct snps_dwc3_softc *sc) argument
271 snps_dwc3_configure_host(struct snps_dwc3_softc *sc) argument
292 snps_dwc3_configure_phy(struct snps_dwc3_softc *sc, phandle_t node) argument
319 snps_dwc3_do_quirks(struct snps_dwc3_softc *sc) argument
391 struct snps_dwc3_softc *sc; local
[all...]
/freebsd-current/sys/dev/iicbus/gpio/
H A Dpcf8574.c87 pcf8574_read(struct pcf8574_softc *sc, uint8_t *val) argument
92 msg.slave = sc->addr;
97 error = iicbus_transfer_excl(sc->dev, &msg, 1, IIC_WAIT);
102 pcf8574_write(struct pcf8574_softc *sc, uint8_t val) argument
107 msg.slave = sc->addr;
112 error = iicbus_transfer_excl(sc->dev, &msg, 1, IIC_WAIT);
131 struct pcf8574_softc *sc; local
133 sc = device_get_softc(dev);
134 sc->dev = dev;
135 sc
157 struct pcf8574_softc *sc; local
171 struct pcf8574_softc *sc; local
197 struct pcf8574_softc *sc; local
236 struct pcf8574_softc *sc; local
286 struct pcf8574_softc *sc; local
314 struct pcf8574_softc *sc; local
359 struct pcf8574_softc *sc; local
[all...]
/freebsd-current/sys/dev/qcom_tlmm/
H A Dqcom_tlmm_ipq4018_hw.c68 qcom_tlmm_ipq4018_hw_pin_set_function(struct qcom_tlmm_softc *sc, argument
73 GPIO_LOCK_ASSERT(sc);
75 if (pin >= sc->gpio_npins)
78 reg = GPIO_READ(sc, QCOM_TLMM_IPQ4018_REG_PIN(pin,
84 GPIO_WRITE(sc, QCOM_TLMM_IPQ4018_REG_PIN(pin,
96 qcom_tlmm_ipq4018_hw_pin_get_function(struct qcom_tlmm_softc *sc, argument
101 GPIO_LOCK_ASSERT(sc);
103 if (pin >= sc->gpio_npins)
107 reg = GPIO_READ(sc, QCOM_TLMM_IPQ4018_REG_PIN(pin,
121 qcom_tlmm_ipq4018_hw_pin_set_oe_output(struct qcom_tlmm_softc *sc, argument
146 qcom_tlmm_ipq4018_hw_pin_set_oe_input(struct qcom_tlmm_softc *sc, int pin) argument
170 qcom_tlmm_ipq4018_hw_pin_get_oe_state(struct qcom_tlmm_softc *sc, int pin, bool *is_output) argument
192 qcom_tlmm_ipq4018_hw_pin_set_output_value(struct qcom_tlmm_softc *sc, uint32_t pin, unsigned int value) argument
218 qcom_tlmm_ipq4018_hw_pin_get_output_value(struct qcom_tlmm_softc *sc, uint32_t pin, unsigned int *val) argument
241 qcom_tlmm_ipq4018_hw_pin_get_input_value(struct qcom_tlmm_softc *sc, uint32_t pin, unsigned int *val) argument
263 qcom_tlmm_ipq4018_hw_pin_toggle_output_value( struct qcom_tlmm_softc *sc, uint32_t pin) argument
291 qcom_tlmm_ipq4018_hw_pin_set_pupd_config( struct qcom_tlmm_softc *sc, uint32_t pin, qcom_tlmm_pin_pupd_config_t pupd) argument
337 qcom_tlmm_ipq4018_hw_pin_get_pupd_config( struct qcom_tlmm_softc *sc, uint32_t pin, qcom_tlmm_pin_pupd_config_t *pupd) argument
376 qcom_tlmm_ipq4018_hw_pin_set_drive_strength( struct qcom_tlmm_softc *sc, uint32_t pin, uint8_t drv) argument
409 qcom_tlmm_ipq4018_hw_pin_get_drive_strength( struct qcom_tlmm_softc *sc, uint32_t pin, uint8_t *drv) argument
435 qcom_tlmm_ipq4018_hw_pin_set_vm( struct qcom_tlmm_softc *sc, uint32_t pin, bool enable) argument
462 qcom_tlmm_ipq4018_hw_pin_get_vm( struct qcom_tlmm_softc *sc, uint32_t pin, bool *enable) argument
484 qcom_tlmm_ipq4018_hw_pin_set_open_drain( struct qcom_tlmm_softc *sc, uint32_t pin, bool enable) argument
511 qcom_tlmm_ipq4018_hw_pin_get_open_drain( struct qcom_tlmm_softc *sc, uint32_t pin, bool *enable) argument
[all...]
/freebsd-current/sys/dev/bhnd/cores/chipc/pwrctl/
H A Dbhnd_pwrctl.c63 static int bhnd_pwrctl_updateclk(struct bhnd_pwrctl_softc *sc,
116 struct bhnd_pwrctl_softc *sc; local
123 sc = device_get_softc(dev);
125 sc->dev = dev;
126 sc->chipc_dev = device_get_parent(dev);
127 sc->quirks = bhnd_device_quirks(sc->chipc_dev, pwrctl_devices,
133 hostb_dev = bhnd_bus_find_hostb_device(device_get_parent(sc->chipc_dev));
137 cid = bhnd_get_chipid(sc->chipc_dev);
141 sc
196 struct bhnd_pwrctl_softc *sc; local
222 struct bhnd_pwrctl_softc *sc; local
238 struct bhnd_pwrctl_softc *sc; local
267 struct bhnd_pwrctl_softc *sc = device_get_softc(dev); local
285 struct bhnd_pwrctl_softc *sc = device_get_softc(dev); local
310 bhnd_pwrctl_find_res(struct bhnd_pwrctl_softc *sc, device_t owner) argument
333 bhnd_pwrctl_updateclk(struct bhnd_pwrctl_softc *sc, bhnd_pwrctl_wars wars) argument
399 struct bhnd_pwrctl_softc *sc; local
[all...]
/freebsd-current/sys/dev/clk/allwinner/
H A Daw_clk_mipi.c89 struct aw_clk_mipi_sc *sc; local
92 sc = clknode_get_softc(clk);
96 READ4(clk, sc->offset, &val);
98 val |= (1 << sc->gate_shift);
102 val &= ~(1 << sc->gate_shift);
106 WRITE4(clk, sc->offset, val);
113 aw_clk_mipi_find_best(struct aw_clk_mipi_sc *sc, uint64_t fparent, uint64_t *fout, argument
124 for (n = aw_clk_factor_get_min(&sc->n); n <= aw_clk_factor_get_max(&sc->n); n++) {
125 for (k = aw_clk_factor_get_min(&sc
147 struct aw_clk_mipi_sc *sc; local
211 struct aw_clk_mipi_sc *sc; local
245 struct aw_clk_mipi_sc *sc; local
[all...]
/freebsd-current/sys/dev/malo/
H A Dif_malo.c101 #define IFF_DUMPPKTS_RECV(sc, wh) \
102 (((sc->malo_debug & MALO_DEBUG_RECV) && \
103 ((sc->malo_debug & MALO_DEBUG_RECV_ALL) || !IS_BEACON(wh))))
104 #define IFF_DUMPPKTS_XMIT(sc) \
105 (sc->malo_debug & MALO_DEBUG_XMIT)
106 #define DPRINTF(sc, m, fmt, ...) do { \
107 if (sc->malo_debug & (m)) \
111 #define DPRINTF(sc, m, fmt, ...) do { \
112 (void) sc; \
154 malo_bar0_read4(struct malo_softc *sc, bus_size_ argument
160 malo_bar0_write4(struct malo_softc *sc, bus_size_t off, uint32_t val) argument
169 malo_attach(uint16_t devid, struct malo_softc *sc) argument
326 struct malo_softc *sc = ic->ic_softc; local
373 struct malo_softc *sc = arg; local
430 malo_desc_setup(struct malo_softc *sc, const char *name, struct malo_descdma *dd, int nbuf, size_t bufsize, int ndesc, size_t descsize) argument
506 malo_rxdma_setup(struct malo_softc *sc) argument
550 malo_txdma_setup(struct malo_softc *sc, struct malo_txq *txq) argument
594 malo_desc_cleanup(struct malo_softc *sc, struct malo_descdma *dd) argument
604 malo_rxdma_cleanup(struct malo_softc *sc) argument
628 malo_txdma_cleanup(struct malo_softc *sc, struct malo_txq *txq) argument
662 malo_dma_cleanup(struct malo_softc *sc) argument
673 malo_dma_setup(struct malo_softc *sc) argument
698 malo_hal_set_rxtxdma(struct malo_softc *sc) argument
719 malo_setup_hwdma(struct malo_softc *sc) argument
739 malo_txq_init(struct malo_softc *sc, struct malo_txq *txq, int qnum) argument
764 malo_tx_cleanupq(struct malo_softc *sc, struct malo_txq *txq) argument
774 malo_getbuf(struct malo_softc *sc, struct malo_txq *txq) argument
794 malo_tx_dmasetup(struct malo_softc *sc, struct malo_txbuf *bf, struct mbuf *m0) argument
920 malo_tx_processq(struct malo_softc *sc, struct malo_txq *txq) argument
1004 struct malo_softc *sc = arg; local
1025 malo_tx_start(struct malo_softc *sc, struct ieee80211_node *ni, struct malo_txbuf *bf, struct mbuf *m0) argument
1200 struct malo_softc *sc = ic->ic_softc; local
1219 malo_start(struct malo_softc *sc) argument
1289 struct malo_softc *sc = arg; local
1306 malo_hal_reset(struct malo_softc *sc) argument
1333 malo_getrxmbuf(struct malo_softc *sc, struct malo_rxbuf *bf) argument
1361 malo_rxbuf_init(struct malo_softc *sc, struct malo_rxbuf *bf) argument
1399 malo_startrecv(struct malo_softc *sc) argument
1438 malo_init_locked(struct malo_softc *sc) argument
1491 struct malo_softc *sc = (struct malo_softc *) arg; local
1526 malo_setmcastfilter(struct malo_softc *sc) argument
1552 malo_mode_init(struct malo_softc *sc) argument
1564 malo_tx_draintxq(struct malo_softc *sc, struct malo_txq *txq) argument
1613 malo_stop(struct malo_softc *sc) argument
1651 struct malo_softc *sc = ic->ic_softc; local
1691 struct malo_softc *sc = ic->ic_softc; local
1718 struct malo_softc *sc = ic->ic_softc; local
1762 struct malo_softc *sc = ic->ic_softc; local
1815 malo_sysctlattach(struct malo_softc *sc) argument
1829 malo_announce(struct malo_softc *sc) argument
1869 malo_chan_set(struct malo_softc *sc, struct ieee80211_channel *chan) argument
1907 struct malo_softc *sc = ic->ic_softc; local
1915 struct malo_softc *sc = ic->ic_softc; local
1923 struct malo_softc *sc = ic->ic_softc; local
1931 struct malo_softc *sc = arg; local
2085 malo_tx_cleanup(struct malo_softc *sc) argument
2094 malo_detach(struct malo_softc *sc) argument
2131 malo_shutdown(struct malo_softc *sc) argument
2138 malo_suspend(struct malo_softc *sc) argument
2145 malo_resume(struct malo_softc *sc) argument
[all...]
/freebsd-current/sys/dev/aac/
H A Daac.c71 static void aac_add_container(struct aac_softc *sc,
73 static void aac_get_bus_info(struct aac_softc *sc);
77 static void aac_timeout(struct aac_softc *sc);
79 static int aac_bio_command(struct aac_softc *sc, struct aac_command **cmp);
82 static void aac_command_thread(struct aac_softc *sc);
89 static int aac_alloc_commands(struct aac_softc *sc);
90 static void aac_free_commands(struct aac_softc *sc);
94 static int aac_alloc(struct aac_softc *sc);
97 static int aac_check_firmware(struct aac_softc *sc);
98 static int aac_init(struct aac_softc *sc);
237 aac_attach(struct aac_softc *sc) argument
354 struct aac_softc *sc; local
372 aac_add_event(struct aac_softc *sc, struct aac_event *event) argument
390 aac_get_container_info(struct aac_softc *sc, struct aac_fib *fib, int cid) argument
416 struct aac_softc *sc; local
458 aac_add_container(struct aac_softc *sc, struct aac_mntinforesp *mir, int f) argument
497 aac_alloc(struct aac_softc *sc) argument
608 aac_free(struct aac_softc *sc) argument
665 struct aac_softc *sc; local
728 struct aac_softc *sc; local
787 struct aac_softc *sc; local
804 struct aac_softc *sc; local
820 struct aac_softc *sc; local
903 struct aac_softc *sc; local
952 aac_startio(struct aac_softc *sc) argument
1018 aac_command_thread(struct aac_softc *sc) argument
1120 struct aac_softc *sc; local
1176 struct aac_softc *sc; local
1191 aac_bio_command(struct aac_softc *sc, struct aac_command **cmp) argument
1358 struct aac_softc *sc; local
1379 aac_alloc_command(struct aac_softc *sc, struct aac_command **cmp) argument
1406 struct aac_softc *sc; local
1456 aac_alloc_commands(struct aac_softc *sc) argument
1524 aac_free_commands(struct aac_softc *sc) argument
1554 struct aac_softc *sc; local
1647 struct aac_softc *sc; local
1678 struct aac_softc *sc; local
1687 aac_check_firmware(struct aac_softc *sc) argument
1844 aac_init(struct aac_softc *sc) argument
2001 aac_setup_intr(struct aac_softc *sc) argument
2028 aac_sync_command(struct aac_softc *sc, u_int32_t command, u_int32_t arg0, u_int32_t arg1, u_int32_t arg2, u_int32_t arg3, u_int32_t *sp) argument
2069 aac_sync_fib(struct aac_softc *sc, u_int32_t command, u_int32_t xferstate, struct aac_fib *fib, u_int16_t datasize) argument
2136 aac_enqueue_fib(struct aac_softc *sc, int queue, struct aac_command *cm) argument
2190 aac_dequeue_fib(struct aac_softc *sc, int queue, u_int32_t *fib_size, struct aac_fib **fib_addr) argument
2286 aac_enqueue_response(struct aac_softc *sc, int queue, struct aac_fib *fib) argument
2336 aac_timeout(struct aac_softc *sc) argument
2378 aac_sa_get_fwstatus(struct aac_softc *sc) argument
2386 aac_rx_get_fwstatus(struct aac_softc *sc) argument
2395 aac_rkt_get_fwstatus(struct aac_softc *sc) argument
2408 aac_sa_qnotify(struct aac_softc *sc, int qbit) argument
2416 aac_rx_qnotify(struct aac_softc *sc, int qbit) argument
2424 aac_rkt_qnotify(struct aac_softc *sc, int qbit) argument
2435 aac_sa_get_istatus(struct aac_softc *sc) argument
2443 aac_rx_get_istatus(struct aac_softc *sc) argument
2451 aac_rkt_get_istatus(struct aac_softc *sc) argument
2462 aac_sa_clear_istatus(struct aac_softc *sc, int mask) argument
2470 aac_rx_clear_istatus(struct aac_softc *sc, int mask) argument
2478 aac_rkt_clear_istatus(struct aac_softc *sc, int mask) argument
2489 aac_sa_set_mailbox(struct aac_softc *sc, u_int32_t command, u_int32_t arg0, u_int32_t arg1, u_int32_t arg2, u_int32_t arg3) argument
2502 aac_rx_set_mailbox(struct aac_softc *sc, u_int32_t command, u_int32_t arg0, u_int32_t arg1, u_int32_t arg2, u_int32_t arg3) argument
2515 aac_rkt_set_mailbox(struct aac_softc *sc, u_int32_t command, u_int32_t arg0, u_int32_t arg1, u_int32_t arg2, u_int32_t arg3) argument
2531 aac_sa_get_mailbox(struct aac_softc *sc, int mb) argument
2539 aac_rx_get_mailbox(struct aac_softc *sc, int mb) argument
2547 aac_rkt_get_mailbox(struct aac_softc *sc, int mb) argument
2558 aac_sa_set_interrupts(struct aac_softc *sc, int enable) argument
2570 aac_rx_set_interrupts(struct aac_softc *sc, int enable) argument
2585 aac_rkt_set_interrupts(struct aac_softc *sc, int enable) argument
2603 aac_rx_send_command(struct aac_softc *sc, struct aac_command *cm) argument
2626 aac_rkt_send_command(struct aac_softc *sc, struct aac_command *cm) argument
2652 aac_rx_get_outb_queue(struct aac_softc *sc) argument
2660 aac_rkt_get_outb_queue(struct aac_softc *sc) argument
2668 aac_rx_set_outb_queue(struct aac_softc *sc, int index) argument
2676 aac_rkt_set_outb_queue(struct aac_softc *sc, int index) argument
2691 aac_describe_controller(struct aac_softc *sc) argument
2796 struct aac_softc *sc; local
2810 struct aac_softc *sc; local
2914 struct aac_softc *sc; local
2941 aac_ioctl_event(struct aac_softc *sc, struct aac_event *event, void *arg) argument
2963 aac_ioctl_sendfib(struct aac_softc *sc, caddr_t ufib) argument
3047 aac_ioctl_send_raw_srb(struct aac_softc *sc, caddr_t arg) argument
3205 struct aac_softc *sc; local
3217 aac_handle_aif(struct aac_softc *sc, struct aac_fib *fib) argument
3395 aac_rev_check(struct aac_softc *sc, caddr_t udata) argument
3437 aac_open_aif(struct aac_softc *sc, caddr_t arg) argument
3482 aac_close_aif(struct aac_softc *sc, caddr_t arg) argument
3512 aac_getnext_aif(struct aac_softc *sc, caddr_t arg) argument
3560 aac_return_aif(struct aac_softc *sc, struct aac_fib_context *ctx, caddr_t uptr) argument
3587 aac_get_pci_info(struct aac_softc *sc, caddr_t uptr) argument
3607 aac_supported_features(struct aac_softc *sc, caddr_t uptr) argument
3649 aac_query_disk(struct aac_softc *sc, caddr_t uptr) argument
3701 aac_get_bus_info(struct aac_softc *sc) argument
[all...]
/freebsd-current/sys/arm64/rockchip/
H A Drk_tsadc.c385 tsadc_temp_to_raw(struct tsadc_softc *sc, int temp) argument
390 tbl = sc->conf->calib_info.table;
391 ntbl = sc->conf->calib_info.nentries;
419 tsadc_raw_to_temp(struct tsadc_softc *sc, uint32_t raw) argument
425 tbl = sc->conf->calib_info.table;
426 ntbl = sc->conf->calib_info.nentries;
470 tsadc_init_tsensor(struct tsadc_softc *sc, struct tsensor *sensor) argument
475 val = RD4(sc, TSADC_INT_EN);
476 if (sc->shutdown_mode != 0) {
484 WR4(sc, TSADC_INT_E
502 tsadc_init(struct tsadc_softc *sc) argument
570 tsadc_read_temp(struct tsadc_softc *sc, struct tsensor *sensor, int *temp) argument
592 struct tsadc_softc *sc; local
612 struct tsadc_softc *sc; local
637 tsadc_init_sysctl(struct tsadc_softc *sc) argument
666 struct tsadc_softc *sc; local
702 struct tsadc_softc *sc; local
845 struct tsadc_softc *sc; local
[all...]
/freebsd-current/sys/geom/uzip/
H A Dg_uzip_zstd.c67 struct g_uzip_zstd *sc; local
70 sc = to_zstd_softc(zpp);
71 rc = ZSTD_decompressDCtx(sc->guz_dctx, outputbuf, sc->guz_blksz, input,
78 KASSERT(rc == sc->guz_blksz, ("%s: Expected %u bytes, got %zu",
79 __func__, sc->guz_blksz, rc));
86 struct g_uzip_zstd *sc; local
89 sc = to_zstd_softc(zpp);
90 rc = ZSTD_freeDCtx(sc->guz_dctx);
95 free(sc, M_GEOM_UZI
101 struct g_uzip_zstd *sc; local
135 struct g_uzip_zstd *sc; local
[all...]
/freebsd-current/sys/dev/sbni/
H A Dif_sbni_isa.c72 struct sbni_softc *sc; local
79 sc = device_get_softc(dev);
81 sc->io_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT,
82 &sc->io_rid, SBNI_PORTS,
84 if (!sc->io_res) {
89 if (sbni_probe(sc) != 0) {
90 sbni_release_resources(sc);
101 struct sbni_softc *sc; local
105 sc = device_get_softc(dev);
106 sc
[all...]
/freebsd-current/sys/dev/clk/rockchip/
H A Drk_clk_gate.c75 struct rk_clk_gate_sc *sc; local
78 sc = clknode_get_softc(clk);
80 rv = RD4(clk, sc->offset, &reg);
84 reg = (reg >> sc->shift) & sc->mask;
85 sc->ungated = reg == sc->on_value ? 1 : 0;
94 struct rk_clk_gate_sc *sc; local
97 sc = clknode_get_softc(clk);
98 sc
116 struct rk_clk_gate_sc *sc; local
[all...]
/freebsd-current/sys/arm64/nvidia/tegra210/
H A Dtegra210_pmc.c188 WR4(struct tegra210_pmc_softc *sc, bus_size_t r, uint32_t v) argument
192 if (sc->secure_access) {
195 device_printf(sc->dev," PMC SMC write failed: %lu\n",
199 bus_write_4(sc->mem_res, r, v);
203 RD4(struct tegra210_pmc_softc *sc, bus_size_t r) argument
207 if (sc->secure_access) {
210 device_printf(sc->dev," PMC SMC write failed: %lu\n",
215 return(bus_read_4(sc->mem_res, r));
219 tegra210_pmc_set_powergate(struct tegra210_pmc_softc *sc, argument
225 PMC_LOCK(sc);
262 struct tegra210_pmc_softc *sc; local
305 struct tegra210_pmc_softc *sc; local
317 struct tegra210_pmc_softc *sc; local
344 struct tegra210_pmc_softc *sc; local
369 struct tegra210_pmc_softc *sc; local
420 tegra210_pmc_parse_fdt(struct tegra210_pmc_softc *sc, phandle_t node) argument
495 tegra210_pmc_check_secure(struct tegra210_pmc_softc *sc) argument
544 struct tegra210_pmc_softc *sc; local
[all...]
/freebsd-current/sys/dev/sound/fdt/
H A Daudio_soc.c53 struct audio_soc_softc *sc; /* parent device's softc */ member in struct:audio_soc_channel
61 * pcm_register assumes that sc is snddev_info,
145 struct audio_soc_softc *sc; local
149 sc = ausoc_chan->sc;
151 return AUDIO_DAI_SET_CHANFORMAT(sc->cpu_dev, format);
158 struct audio_soc_softc *sc; local
164 sc = ausoc_chan->sc;
166 if (sc
195 struct audio_soc_softc *sc; local
229 struct audio_soc_softc *sc; local
262 struct audio_soc_softc *sc; local
287 struct audio_soc_softc *sc; local
316 struct audio_soc_softc *sc; local
423 struct audio_soc_softc *sc; local
507 struct audio_soc_softc *sc; local
[all...]
/freebsd-current/sys/dev/usb/input/
H A Dwmt.c285 struct wmt_softc *sc = device_get_softc(dev); local
305 if (sc->type == WMT_TYPE_UNKNOWN)
306 sc->type = wmt_hid_parse(sc, d_ptr, d_len);
307 if (sc->type != WMT_TYPE_UNSUPPORTED)
313 if (sc->type != WMT_TYPE_UNSUPPORTED &&
314 (sc->isize <= 0 || sc->isize > WMT_BSIZE)) {
315 DPRINTF("Input size invalid or too large: %d\n", sc->isize);
327 struct wmt_softc *sc local
482 struct wmt_softc *sc = device_get_softc(dev); local
491 wmt_process_report(struct wmt_softc *sc, uint8_t *buf, int len) argument
634 struct wmt_softc *sc = usbd_xfer_softc(xfer); local
693 struct wmt_softc *sc = ev_softc; local
702 struct wmt_softc *sc = ev_softc; local
713 struct wmt_softc *sc = evdev_get_softc(evdev); local
723 struct wmt_softc *sc = evdev_get_softc(evdev); local
730 wmt_hid_parse(struct wmt_softc *sc, const void *d_ptr, uint16_t d_len) argument
956 wmt_set_input_mode(struct wmt_softc *sc, enum wmt_input_mode mode) argument
[all...]

Completed in 420 milliseconds

<<11121314151617181920>>