Home
last modified time | relevance | path

Searched refs:ctr (Results 1 – 25 of 51) sorted by relevance

123

/drivers/isdn/capi/
Dkcapi.c79 capi_ctr_get(struct capi_ctr *ctr) in capi_ctr_get() argument
81 if (!try_module_get(ctr->owner)) in capi_ctr_get()
83 return ctr; in capi_ctr_get()
87 capi_ctr_put(struct capi_ctr *ctr) in capi_ctr_put() argument
89 module_put(ctr->owner); in capi_ctr_put()
160 register_appl(struct capi_ctr *ctr, u16 applid, capi_register_params *rparam) in register_appl() argument
162 ctr = capi_ctr_get(ctr); in register_appl()
164 if (ctr) in register_appl()
165 ctr->register_appl(ctr, applid, rparam); in register_appl()
172 static void release_appl(struct capi_ctr *ctr, u16 applid) in release_appl() argument
[all …]
Dkcapi_proc.c66 struct capi_ctr *ctr = *(struct capi_ctr **) v; in controller_show() local
68 if (!ctr) in controller_show()
72 ctr->cnr, ctr->driver_name, in controller_show()
73 state2str(ctr->state), in controller_show()
74 ctr->name, in controller_show()
75 ctr->procinfo ? ctr->procinfo(ctr) : ""); in controller_show()
82 struct capi_ctr *ctr = *(struct capi_ctr **) v; in contrstats_show() local
84 if (!ctr) in contrstats_show()
88 ctr->cnr, in contrstats_show()
89 ctr->nrecvctlpkt, in contrstats_show()
[all …]
/drivers/parport/
Dparport_gsc.h67 unsigned char ctr; member
110 unsigned char ctr = priv->ctr; in __parport_gsc_frob_control() local
114 mask, val, ctr, ((ctr & ~mask) ^ val) & priv->ctr_writable); in __parport_gsc_frob_control()
116 ctr = (ctr & ~mask) ^ val; in __parport_gsc_frob_control()
117 ctr &= priv->ctr_writable; /* only write writable bits. */ in __parport_gsc_frob_control()
118 parport_writeb (ctr, CONTROL (p)); in __parport_gsc_frob_control()
119 priv->ctr = ctr; /* Update soft copy */ in __parport_gsc_frob_control()
120 return ctr; in __parport_gsc_frob_control()
158 return priv->ctr & rm; /* Use soft copy */ in parport_gsc_read_control()
Dparport_gsc.c85 s->u.pc.ctr = 0xc | (dev->irq_func ? 0x10 : 0x0); in parport_gsc_init_state()
90 s->u.pc.ctr = parport_readb (CONTROL (p)); in parport_gsc_save_state()
95 parport_writeb (s->u.pc.ctr, CONTROL (p)); in parport_gsc_restore_state()
257 priv->ctr = 0xc; in parport_gsc_probe_port()
Dparport_sunbpp.c217 s->u.pc.ctr = 0xc; in parport_sunbpp_init_state()
223 s->u.pc.ctr = parport_sunbpp_read_control(p); in parport_sunbpp_save_state()
228 parport_sunbpp_write_control(p, s->u.pc.ctr); in parport_sunbpp_restore_state()
/drivers/isdn/gigaset/
Dcapi.c94 struct capi_ctr ctr; member
324 static void send_data_b3_conf(struct cardstate *cs, struct capi_ctr *ctr, in send_data_b3_conf() argument
343 CAPIMSG_SETCONTROLLER(msg, ctr->cnr); in send_data_b3_conf()
351 capi_ctr_handle_message(ctr, appl, cskb); in send_data_b3_conf()
396 send_data_b3_conf(cs, &iif->ctr, ap->id, CAPIMSG_MSGID(req), in gigaset_skb_sent()
447 CAPIMSG_SETCONTROLLER(skb->data, iif->ctr.cnr); in gigaset_skb_rcvd()
458 capi_ctr_handle_message(&iif->ctr, ap->id, skb); in gigaset_skb_rcvd()
516 iif->ctr.cnr | ((bcs->channel + 1) << 8)); in gigaset_isdn_icall()
660 capi_ctr_handle_message(&iif->ctr, ap->id, skb); in gigaset_isdn_icall()
687 iif->ctr.cnr | ((bcs->channel + 1) << 8)); in send_disconnect_ind()
[all …]
/drivers/net/wireless/ath/ath6kl/
Dcore.c249 u8 ctr; in ath6kl_core_create() local
286 for (ctr = 0; ctr < AP_MAX_NUM_STA; ctr++) { in ath6kl_core_create()
287 spin_lock_init(&ar->sta_list[ctr].psq_lock); in ath6kl_core_create()
288 skb_queue_head_init(&ar->sta_list[ctr].psq); in ath6kl_core_create()
289 skb_queue_head_init(&ar->sta_list[ctr].apsdq); in ath6kl_core_create()
290 ar->sta_list[ctr].mgmt_psq_len = 0; in ath6kl_core_create()
291 INIT_LIST_HEAD(&ar->sta_list[ctr].mgmt_psq); in ath6kl_core_create()
292 ar->sta_list[ctr].aggr_conn = in ath6kl_core_create()
294 if (!ar->sta_list[ctr].aggr_conn) { in ath6kl_core_create()
Dmain.c47 u8 ctr; in ath6kl_find_sta_by_aid() local
49 for (ctr = 0; ctr < AP_MAX_NUM_STA; ctr++) { in ath6kl_find_sta_by_aid()
50 if (ar->sta_list[ctr].aid == aid) { in ath6kl_find_sta_by_aid()
51 conn = &ar->sta_list[ctr]; in ath6kl_find_sta_by_aid()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_minidump.c230 struct __ctrl *ctr = &entry->region.ctrl; in qlcnic_dump_ctrl() local
233 addr = ctr->addr; in qlcnic_dump_ctrl()
234 no_ops = ctr->no_ops; in qlcnic_dump_ctrl()
239 if (!(ctr->opcode & (1 << k))) in qlcnic_dump_ctrl()
243 qlcnic_ind_wr(adapter, addr, ctr->val1); in qlcnic_dump_ctrl()
252 (data & ctr->val2)); in qlcnic_dump_ctrl()
257 (data | ctr->val3)); in qlcnic_dump_ctrl()
260 while (timeout <= ctr->timeout) { in qlcnic_dump_ctrl()
262 if ((data & ctr->val2) == ctr->val1) in qlcnic_dump_ctrl()
267 if (timeout > ctr->timeout) { in qlcnic_dump_ctrl()
[all …]
/drivers/watchdog/
Dwdt.c101 static void wdt_ctr_mode(int ctr, int mode) in wdt_ctr_mode() argument
103 ctr <<= 6; in wdt_ctr_mode()
104 ctr |= 0x30; in wdt_ctr_mode()
105 ctr |= (mode << 1); in wdt_ctr_mode()
106 outb_p(ctr, WDT_CR); in wdt_ctr_mode()
109 static void wdt_ctr_load(int ctr, int val) in wdt_ctr_load() argument
111 outb_p(val&0xFF, WDT_COUNT0+ctr); in wdt_ctr_load()
112 outb_p(val>>8, WDT_COUNT0+ctr); in wdt_ctr_load()
Dwdt_pci.c103 static void wdtpci_ctr_mode(int ctr, int mode) in wdtpci_ctr_mode() argument
105 ctr <<= 6; in wdtpci_ctr_mode()
106 ctr |= 0x30; in wdtpci_ctr_mode()
107 ctr |= (mode << 1); in wdtpci_ctr_mode()
108 outb(ctr, WDT_CR); in wdtpci_ctr_mode()
112 static void wdtpci_ctr_load(int ctr, int val) in wdtpci_ctr_load() argument
114 outb(val & 0xFF, WDT_COUNT0 + ctr); in wdtpci_ctr_load()
116 outb(val >> 8, WDT_COUNT0 + ctr); in wdtpci_ctr_load()
/drivers/ps3/
Dps3-lpm.c315 u32 ps3_read_ctr(u32 cpu, u32 ctr) in ps3_read_ctr() argument
318 u32 phys_ctr = ctr & (NR_PHYS_CTRS - 1); in ps3_read_ctr()
323 val = (ctr < NR_PHYS_CTRS) ? (val >> 16) : (val & 0xffff); in ps3_read_ctr()
336 void ps3_write_ctr(u32 cpu, u32 ctr, u32 val) in ps3_write_ctr() argument
341 phys_ctr = ctr & (NR_PHYS_CTRS - 1); in ps3_write_ctr()
346 if (ctr < NR_PHYS_CTRS) in ps3_write_ctr()
362 u32 ps3_read_pm07_control(u32 cpu, u32 ctr) in ps3_read_pm07_control() argument
374 void ps3_write_pm07_control(u32 cpu, u32 ctr, u32 val) in ps3_write_pm07_control() argument
380 if (ctr >= NR_CTRS) { in ps3_write_pm07_control()
382 __LINE__, ctr); in ps3_write_pm07_control()
[all …]
/drivers/tty/serial/
Dsuncore.c206 static int ctr = 0; in suncore_mouse_baud_detection() local
212 if (mouse_got_break && ctr < 8) in suncore_mouse_baud_detection()
216 ctr = 0; in suncore_mouse_baud_detection()
221 ctr++; in suncore_mouse_baud_detection()
/drivers/crypto/nx/
Dnx-aes-ctr.c75 memcpy(nx_ctx->priv.ctr.iv, in ctr3686_aes_nx_set_key()
124 u8 *iv = nx_ctx->priv.ctr.iv; in ctr3686_aes_nx_crypt()
130 desc->info = nx_ctx->priv.ctr.iv; in ctr3686_aes_nx_crypt()
DMakefile8 nx-aes-ctr.o \
/drivers/md/
Ddm-snap-transient.c107 .ctr = transient_ctr,
119 .ctr = transient_ctr,
Ddm-zero.c60 .ctr = zero_ctr,
Ddm-target.c137 .ctr = io_err_ctr,
Ddm-crypt.c78 int (*ctr)(struct crypt_config *cc, struct dm_target *ti, member
607 .ctr = crypt_iv_essiv_ctr,
615 .ctr = crypt_iv_benbi_ctr,
625 .ctr = crypt_iv_lmk_ctr,
1503 if (cc->iv_gen_ops && cc->iv_gen_ops->ctr) { in crypt_ctr_cipher()
1504 ret = cc->iv_gen_ops->ctr(cc, ti, ivopts); in crypt_ctr_cipher()
1849 .ctr = crypt_ctr,
/drivers/usb/renesas_usbhs/
Dfifo.c240 usbhs_bset(priv, fifo->ctr, BVAL, BVAL); in usbhsf_send_terminator()
250 if (usbhs_read(priv, fifo->ctr) & FRDY) in usbhsf_fifo_barrier()
267 usbhs_write(priv, fifo->ctr, BCLR); in usbhsf_fifo_clear()
273 return usbhs_read(priv, fifo->ctr) & DTLN_MASK; in usbhsf_fifo_rcv_len()
1164 fifo->ctr = CFIFOCTR; in usbhs_fifo_probe()
1171 fifo->ctr = D0FIFOCTR; in usbhs_fifo_probe()
1180 fifo->ctr = D1FIFOCTR; in usbhs_fifo_probe()
Dfifo.h30 u32 ctr; /* xFIFOCTR */ member
/drivers/input/serio/
Di8042.c909 unsigned char ctr[2]; in i8042_controller_init() local
924 if (i8042_command(&ctr[n++ % 2], I8042_CMD_CTL_RCTR)) { in i8042_controller_init()
929 } while (n < 2 || ctr[0] != ctr[1]); in i8042_controller_init()
931 i8042_initial_ctr = i8042_ctr = ctr[0]; in i8042_controller_init()
/drivers/crypto/caam/
Dpdb.h89 struct ipsec_encap_ctr ctr; member
126 struct ipsec_decap_ctr ctr; member
/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_n.c14771 u8 ctr; in wlc_phy_set_rfseq_nphy() local
14787 for (ctr = len; ctr < 16; ctr++) { in wlc_phy_set_rfseq_nphy()
14789 t1_offset + ctr, 8, &end_event); in wlc_phy_set_rfseq_nphy()
14791 t2_offset + ctr, 8, &end_dly); in wlc_phy_set_rfseq_nphy()
15094 int ctr; in wlc_phy_adjust_lnagaintbl_nphy() local
15136 for (ctr = 0; ctr < 4; ctr++) in wlc_phy_adjust_lnagaintbl_nphy()
15137 regval[ctr] = in wlc_phy_adjust_lnagaintbl_nphy()
15138 nphy_def_lnagains[ctr] + in wlc_phy_adjust_lnagaintbl_nphy()
15447 int ctr; in wlc_phy_workarounds_nphy_gainctrl() local
16021 for (ctr = 0; ctr < 4; ctr++) in wlc_phy_workarounds_nphy_gainctrl()
[all …]
/drivers/usb/misc/
Duss720.c450 s->u.pc.ctr = 0xc | (dev->irq_func ? 0x10 : 0x0); in parport_uss720_init_state()
462 s->u.pc.ctr = priv->reg[1]; in parport_uss720_save_state()
470 set_1284_register(pp, 2, s->u.pc.ctr, GFP_ATOMIC); in parport_uss720_restore_state()
473 priv->reg[1] = s->u.pc.ctr; in parport_uss720_restore_state()

123