/linux-master/drivers/thunderbolt/ |
H A D | eeprom.c | 18 static int tb_eeprom_ctl_write(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) argument 20 return tb_sw_write(sw, ctl, TB_CFG_SWITCH, sw->cap_plug_events + ROUTER_CS_4, 1); 26 static int tb_eeprom_ctl_read(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) argument 28 return tb_sw_read(sw, ctl, TB_CFG_SWITCH, sw->cap_plug_events + ROUTER_CS_4, 1); 44 struct tb_eeprom_ctl ctl; local 45 int res = tb_eeprom_ctl_read(sw, &ctl); 49 ctl.bit_banging_enable = 1; 50 res = tb_eeprom_ctl_write(sw, &ctl); 53 ctl.fl_cs = 0; 54 return tb_eeprom_ctl_write(sw, &ctl); 71 tb_eeprom_transfer(struct tb_switch *sw, struct tb_eeprom_ctl *ctl, enum tb_eeprom_transfer direction) argument 98 struct tb_eeprom_ctl ctl; local 118 struct tb_eeprom_ctl ctl; local [all...] |
H A D | dma_port.c | 88 static int dma_port_read(struct tb_ctl *ctl, void *buffer, u64 route, argument 118 res = tb_cfg_request_sync(ctl, req, timeout_msec); 129 static int dma_port_write(struct tb_ctl *ctl, const void *buffer, u64 route, argument 161 res = tb_cfg_request_sync(ctl, req, timeout_msec); 181 ret = dma_port_read(sw->tb->ctl, &type, tb_route(sw), ports[i], 249 ret = dma_port_read(sw->tb->ctl, &in, tb_route(sw), dma->port, 285 ret = dma_port_write(sw->tb->ctl, &in, tb_route(sw), dma->port, 294 ret = dma_port_read(sw->tb->ctl, &out, tb_route(sw), dma->port, 320 return dma_port_read(sw->tb->ctl, buf, tb_route(sw), dma->port, 333 ret = dma_port_write(sw->tb->ctl, bu [all...] |
/linux-master/drivers/net/wireless/broadcom/b43/ |
H A D | pio.c | 318 u16 ctl, 326 ctl |= B43_PIO_TXCTL_WRITELO | B43_PIO_TXCTL_WRITEHI; 327 b43_piotx_write16(q, B43_PIO_TXCTL, ctl); 337 ctl &= ~B43_PIO_TXCTL_WRITEHI; 338 b43_piotx_write16(q, B43_PIO_TXCTL, ctl); 346 return ctl; 355 u16 ctl; local 357 ctl = b43_piotx_read16(q, B43_PIO_TXCTL); 358 ctl |= B43_PIO_TXCTL_FREADY; 359 ctl 317 tx_write_2byte_queue(struct b43_pio_txqueue *q, u16 ctl, const void *_data, unsigned int data_len) argument 370 tx_write_4byte_queue(struct b43_pio_txqueue *q, u32 ctl, const void *_data, unsigned int data_len) argument 425 u32 ctl; local 623 u32 ctl; local 637 u16 ctl; local [all...] |
/linux-master/drivers/isdn/mISDN/ |
H A D | clock.c | 10 * ctl = callback function to enable/disable clock source 14 * Note: Callback 'ctl' can be called before mISDN_register_clock returns! 70 lastclock->ctl(lastclock->priv, 0); 77 bestclock->ctl(bestclock->priv, 1); 87 *mISDN_register_clock(char *name, int pri, clockctl_func_t *ctl, void *priv) argument 102 iclock->ctl = ctl; 125 iclock->ctl(iclock->priv, 0); 146 iclock->ctl(iclock->priv, 0);
|
/linux-master/sound/pci/emu10k1/ |
H A D | emufx.c | 335 struct snd_emu10k1_fx8010_ctl *ctl = local 338 if (ctl->min == 0 && ctl->max == 1) 342 uinfo->count = ctl->vcount; 343 uinfo->value.integer.min = ctl->min; 344 uinfo->value.integer.max = ctl->max; 350 struct snd_emu10k1_fx8010_ctl *ctl = local 354 for (i = 0; i < ctl->vcount; i++) 355 ucontrol->value.integer.value[i] = ctl->value[i]; 362 struct snd_emu10k1_fx8010_ctl *ctl local 667 struct snd_emu10k1_fx8010_ctl *ctl; local 849 struct snd_emu10k1_fx8010_ctl *ctl; local 865 struct snd_emu10k1_fx8010_ctl *ctl, *nctl; local 962 struct snd_emu10k1_fx8010_ctl *ctl; local 984 struct snd_emu10k1_fx8010_ctl *ctl; local 1174 snd_emu10k1_init_mono_control2(struct snd_emu10k1_fx8010_control_gpr *ctl, const char *name, int gpr, int defval, int defval_hr) argument 1198 snd_emu10k1_init_stereo_control2(struct snd_emu10k1_fx8010_control_gpr *ctl, const char *name, int gpr, int defval, int defval_hr) argument 1223 snd_emu10k1_init_mono_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl, const char *name, int gpr, int defval) argument 1236 snd_emu10k1_init_stereo_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl, const char *name, int gpr, int defval) argument 1299 struct snd_emu10k1_fx8010_control_gpr *controls = NULL, *ctl; local 1817 struct snd_emu10k1_fx8010_control_gpr *controls = NULL, *ctl; local [all...] |
/linux-master/drivers/hwtracing/intel_th/ |
H A D | pti.c | 152 u32 ctl = PTI_EN; local 155 ctl |= pti->patgen << __ffs(PTI_PATGENMODE); 157 ctl |= PTI_FCEN; 158 ctl |= pti->mode << __ffs(PTI_MODE); 159 ctl |= pti->clkdiv << __ffs(PTI_CLKDIV); 160 ctl |= pti->lpp_dest << __ffs(LPP_DEST); 162 iowrite32(ctl, pti->base + REG_PTI_CTL); 180 u32 ctl = ioread32(pti->base + REG_PTI_CTL); local 182 pti->mode = (ctl & PTI_MODE) >> __ffs(PTI_MODE); 183 pti->clkdiv = (ctl [all...] |
/linux-master/drivers/net/ethernet/ibm/emac/ |
H A D | phy.c | 112 int ctl, adv; local 120 ctl = phy_read(phy, MII_BMCR); 121 if (ctl < 0) 122 return ctl; 123 ctl &= ~(BMCR_FULLDPLX | BMCR_SPEED100 | BMCR_SPEED1000 | BMCR_ANENABLE); 126 phy_write(phy, MII_BMCR, ctl); 162 ctl = phy_read(phy, MII_BMCR); 163 ctl |= (BMCR_ANENABLE | BMCR_ANRESTART); 164 phy_write(phy, MII_BMCR, ctl); 171 int ctl; local [all...] |
/linux-master/drivers/tty/serial/ |
H A D | owl-uart.c | 96 u32 ctl; local 98 ctl = owl_uart_read(port, OWL_UART_CTL); 101 ctl |= OWL_UART_CTL_LBEN; 103 ctl &= ~OWL_UART_CTL_LBEN; 105 owl_uart_write(port, ctl, OWL_UART_CTL); 111 u32 stat, ctl; local 113 ctl = owl_uart_read(port, OWL_UART_CTL); 117 if ((stat & OWL_UART_STAT_CTSS) || !(ctl & OWL_UART_CTL_AFE)) 313 u32 ctl; local 318 ctl [all...] |
/linux-master/drivers/net/wireless/broadcom/b43legacy/ |
H A D | leds.c | 26 u16 ctl; local 29 ctl = b43legacy_read16(dev, B43legacy_MMIO_GPIO_CONTROL); 31 ctl &= ~(1 << led_index); 33 ctl |= (1 << led_index); 34 b43legacy_write16(dev, B43legacy_MMIO_GPIO_CONTROL, ctl); 43 u16 ctl; local 46 ctl = b43legacy_read16(dev, B43legacy_MMIO_GPIO_CONTROL); 48 ctl |= (1 << led_index); 50 ctl &= ~(1 << led_index); 51 b43legacy_write16(dev, B43legacy_MMIO_GPIO_CONTROL, ctl); [all...] |
/linux-master/drivers/net/wwan/t7xx/ |
H A D | t7xx_port_ctrl_msg.c | 56 static int fsm_ee_message_handler(struct t7xx_port *port, struct t7xx_fsm_ctl *ctl, argument 60 struct device *dev = &ctl->md->t7xx_dev->pdev->dev; 64 md_state = t7xx_fsm_get_md_state(ctl); 84 ret = t7xx_fsm_append_event(ctl, FSM_EVENT_MD_EX, NULL, 0); 96 ret = t7xx_fsm_append_event(ctl, FSM_EVENT_MD_EX_REC_OK, NULL, 0); 103 ret = t7xx_fsm_append_event(ctl, FSM_EVENT_MD_EX_PASS, NULL, 0); 161 struct t7xx_fsm_ctl *ctl = port->t7xx_dev->md->fsm_ctl; local 175 ret = t7xx_fsm_append_event(ctl, event, skb->data, 188 ret = fsm_ee_message_handler(port, ctl, skb); 194 ret = t7xx_port_enum_msg_handler(ctl [all...] |
/linux-master/tools/testing/selftests/kvm/include/aarch64/ |
H A D | arch_timer.h | 98 static inline void timer_set_ctl(enum arch_timer timer, uint32_t ctl) argument 102 write_sysreg(ctl, cntv_ctl_el0); 105 write_sysreg(ctl, cntp_ctl_el0);
|
/linux-master/drivers/firmware/cirrus/ |
H A D | cs_dsp.c | 461 static int cs_dsp_coeff_base_reg(struct cs_dsp_coeff_ctl *ctl, unsigned int *reg, 467 struct cs_dsp_coeff_ctl *ctl; local 470 list_for_each_entry(ctl, &dsp->ctl_list, list) { 471 cs_dsp_coeff_base_reg(ctl, ®, 0); 473 ctl->subname_len, ctl->subname, ctl->len, 474 cs_dsp_mem_region_name(ctl->alg_region.type), 475 ctl->offset, reg, ctl 651 cs_dsp_coeff_base_reg(struct cs_dsp_coeff_ctl *ctl, unsigned int *reg, unsigned int off) argument 682 cs_dsp_coeff_write_acked_control(struct cs_dsp_coeff_ctl *ctl, unsigned int event_id) argument 747 cs_dsp_coeff_write_ctrl_raw(struct cs_dsp_coeff_ctl *ctl, unsigned int off, const void *buf, size_t len) argument 789 cs_dsp_coeff_write_ctrl(struct cs_dsp_coeff_ctl *ctl, unsigned int off, const void *buf, size_t len) argument 822 cs_dsp_coeff_read_ctrl_raw(struct cs_dsp_coeff_ctl *ctl, unsigned int off, void *buf, size_t len) argument 864 cs_dsp_coeff_read_ctrl(struct cs_dsp_coeff_ctl *ctl, unsigned int off, void *buf, size_t len) argument 896 struct cs_dsp_coeff_ctl *ctl; local 922 struct cs_dsp_coeff_ctl *ctl; local 942 struct cs_dsp_coeff_ctl *ctl; local 960 cs_dsp_free_ctl_blk(struct cs_dsp_coeff_ctl *ctl) argument 973 struct cs_dsp_coeff_ctl *ctl; local 1544 struct cs_dsp_coeff_ctl *ctl; local 2369 struct cs_dsp_coeff_ctl *ctl; local 2646 struct cs_dsp_coeff_ctl *ctl; local 2881 struct cs_dsp_coeff_ctl *ctl; local [all...] |
/linux-master/drivers/edac/ |
H A D | edac_mc.h | 57 #define edac_device_printk(ctl, level, fmt, arg...) \ 58 printk(level "EDAC DEVICE%d: " fmt, ctl->dev_idx, ##arg) 60 #define edac_pci_printk(ctl, level, fmt, arg...) \ 61 printk(level "EDAC PCI%d: " fmt, ctl->pci_idx, ##arg)
|
/linux-master/arch/x86/events/intel/ |
H A D | uncore_discovery.h | 37 (!unit.table1 || !unit.ctl || \ 38 unit.table1 == -1ULL || unit.ctl == -1ULL || \ 78 u64 ctl; /* Global Control Address */ member in struct:uncore_global_discovery 104 u64 ctl; /* Unit Control Address */ member in struct:uncore_unit_discovery
|
/linux-master/fs/xfs/ |
H A D | xfs_sysctl.c | 14 struct ctl_table *ctl, 20 int ret, *valp = ctl->data; 22 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); 34 struct ctl_table *ctl, 40 int ret, *valp = ctl->data; 42 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); 55 struct ctl_table *ctl, 64 ctl->procname); 66 return proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); 13 xfs_stats_clear_proc_handler( struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) argument 33 xfs_panic_mask_proc_handler( struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) argument 54 xfs_deprecated_dointvec_minmax( struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) argument
|
/linux-master/arch/powerpc/platforms/85xx/ |
H A D | xes_mpc85xx.c | 50 volatile uint32_t ctl, tmp; local 61 ctl = MPC85xx_L2CTL_L2E | MPC85xx_L2CTL_L2I; 68 ctl |= (tmp & MPC85xx_L2CTL_L2SIZ_MASK) >> 2; 71 out_be32(l2_base, ctl);
|
/linux-master/arch/x86/kvm/svm/ |
H A D | nested.c | 62 u64 cr3 = svm->nested.ctl.nested_cr3; 77 return svm->nested.ctl.nested_cr3; 95 svm->nested.ctl.nested_cr3); 116 if (!(svm->nested.ctl.virt_ext & VIRTUAL_VMLOAD_VMSAVE_ENABLE_MASK)) 135 g = &svm->nested.ctl; 202 struct hv_vmcb_enlightenments *hve = &svm->nested.ctl.hv_enlightenments; 206 (svm->nested.ctl.clean & BIT(HV_VMCB_NESTED_ENLIGHTENMENTS))) 211 if (!(vmcb12_is_intercept(&svm->nested.ctl, INTERCEPT_MSR_PROT))) 227 offset = svm->nested.ctl.msrpm_base_pa + (p * 4); 330 struct vmcb_ctrl_area_cached *ctl local 1583 struct vmcb_control_area *ctl; local 1652 struct vmcb_control_area *ctl; local [all...] |
/linux-master/sound/core/ |
H A D | control_compat.c | 79 static int snd_ctl_elem_info_compat(struct snd_ctl_file *ctl, argument 98 err = snd_ctl_elem_info(ctl, data); 407 struct snd_ctl_file *ctl; local 412 ctl = file->private_data; 413 if (snd_BUG_ON(!ctl || !ctl->card)) 430 return snd_ctl_elem_list_compat(ctl->card, argp); 432 return snd_ctl_elem_info_compat(ctl, argp); 434 return snd_ctl_elem_read_user_compat(ctl->card, argp); 436 return snd_ctl_elem_write_user_compat(ctl, arg [all...] |
H A D | control.c | 48 struct snd_ctl_file *ctl; local 69 ctl = kzalloc(sizeof(*ctl), GFP_KERNEL); 70 if (ctl == NULL) { 74 INIT_LIST_HEAD(&ctl->events); 75 init_waitqueue_head(&ctl->change_sleep); 76 spin_lock_init(&ctl->read_lock); 77 ctl->card = card; 79 ctl->preferred_subdevice[i] = -1; 80 ctl 97 snd_ctl_empty_read_queue(struct snd_ctl_file * ctl) argument 112 struct snd_ctl_file *ctl; local 152 struct snd_ctl_file *ctl; local 897 snd_ctl_card_info(struct snd_card *card, struct snd_ctl_file * ctl, unsigned int cmd, void __user *arg) argument 1155 __snd_ctl_elem_info(struct snd_card *card, struct snd_kcontrol *kctl, struct snd_ctl_elem_info *info, struct snd_ctl_file *ctl) argument 1192 snd_ctl_elem_info(struct snd_ctl_file *ctl, struct snd_ctl_elem_info *info) argument 1205 snd_ctl_elem_info_user(struct snd_ctl_file *ctl, struct snd_ctl_elem_info __user *_info) argument 1924 struct snd_ctl_file *ctl; local 1991 struct snd_ctl_file *ctl; local 2049 struct snd_ctl_file *ctl; local 2160 struct snd_ctl_file *ctl; local 2322 struct snd_ctl_file *ctl; local [all...] |
/linux-master/drivers/net/ |
H A D | sungem_phy.c | 312 u16 ctl, adv; local 334 ctl = sungem_phy_read(phy, MII_BMCR); 335 ctl |= (BMCR_ANENABLE | BMCR_ANRESTART); 336 sungem_phy_write(phy, MII_BMCR, ctl); 343 u16 ctl; local 350 ctl = sungem_phy_read(phy, MII_BMCR); 351 ctl &= ~(BMCR_FULLDPLX|BMCR_SPEED100|BMCR_ANENABLE); 354 sungem_phy_write(phy, MII_BMCR, ctl | BMCR_RESET); 361 ctl |= BMCR_SPEED100; 368 ctl | 468 u16 ctl, adv; local 512 u16 ctl; local 744 u16 ctl, adv; local 795 u16 ctl, ctl2; local [all...] |
/linux-master/drivers/clk/ingenic/ |
H A D | cgu.c | 88 u32 ctl; local 93 ctl = readl(cgu->base + pll_info->reg); 95 m = (ctl >> pll_info->m_shift) & GENMASK(pll_info->m_bits - 1, 0); 97 n = (ctl >> pll_info->n_shift) & GENMASK(pll_info->n_bits - 1, 0); 101 od_enc = ctl >> pll_info->od_shift; 106 ctl = readl(cgu->base + pll_info->bypass_reg); 108 bypass = !!(ctl & BIT(pll_info->bypass_bit)); 190 u32 ctl; local 195 return readl_poll_timeout(cgu->base + pll_info->reg, ctl, 196 ctl 211 u32 ctl; local 255 u32 ctl; local 288 u32 ctl; local 308 u32 ctl; local [all...] |
/linux-master/net/sched/ |
H A D | sch_choke.c | 340 const struct tc_red_qopt *ctl; local 361 ctl = nla_data(tb[TCA_CHOKE_PARMS]); 363 if (!red_check_params(ctl->qth_min, ctl->qth_max, ctl->Wlog, ctl->Scell_log, stab)) 366 if (ctl->limit > CHOKE_MAX_QUEUE) 369 mask = roundup_pow_of_two(ctl->limit + 1) - 1; 408 q->flags = ctl->flags; 409 q->limit = ctl [all...] |
/linux-master/drivers/net/wireless/ath/wcn36xx/ |
H A D | dxe.c | 59 struct wcn36xx_dxe_ctl *ctl = ch->head_blk_ctl, *next; local 62 for (i = 0; i < ch->desc_num && ctl; i++) { 63 next = ctl->next; 64 kfree(ctl); 65 ctl = next; 292 struct wcn36xx_dxe_ctl *ctl, 295 struct wcn36xx_dxe_desc *dxe = ctl->desc; 311 ctl->skb = skb; 402 struct wcn36xx_dxe_ctl *ctl; local 412 ctl 291 wcn36xx_dxe_fill_skb(struct device *dev, struct wcn36xx_dxe_ctl *ctl, gfp_t gfp) argument 588 struct wcn36xx_dxe_ctl *ctl; local [all...] |
/linux-master/net/sctp/ |
H A D | sysctl.c | 46 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write, 48 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write, 50 static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write, void *buffer, 52 static int proc_sctp_do_udp_port(struct ctl_table *ctl, int write, void *buffer, 54 static int proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write, 56 static int proc_sctp_do_auth(struct ctl_table *ctl, int write, 58 static int proc_sctp_do_probe_interval(struct ctl_table *ctl, int write, 391 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write, argument 436 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write, argument 440 unsigned int min = *(unsigned int *) ctl 464 proc_sctp_do_rto_max(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) argument 492 proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) argument 502 proc_sctp_do_auth(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) argument 531 proc_sctp_do_udp_port(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) argument 572 proc_sctp_do_probe_interval(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) argument [all...] |
/linux-master/drivers/i2c/busses/ |
H A D | i2c-pnx.c | 303 u32 ctl = 0; local 329 ctl = ioread32(I2C_REG_CTL(alg_data)); 330 ctl |= mcntrl_rffie | mcntrl_daie; 331 ctl &= ~mcntrl_drmie; 332 iowrite32(ctl, I2C_REG_CTL(alg_data)); 362 ctl = ioread32(I2C_REG_CTL(alg_data)); 363 ctl &= ~(mcntrl_afie | mcntrl_naie | mcntrl_rffie | 365 iowrite32(ctl, I2C_REG_CTL(alg_data)); 382 u32 stat, ctl; local 398 ctl 459 u32 ctl; local [all...] |