Home
last modified time | relevance | path

Searched refs:ks (Results 1 – 10 of 10) sorted by relevance

/drivers/net/ethernet/micrel/
Dks8851.c167 static void ks8851_wrreg16(struct ks8851_net *ks, unsigned reg, unsigned val) in ks8851_wrreg16() argument
169 struct spi_transfer *xfer = &ks->spi_xfer1; in ks8851_wrreg16()
170 struct spi_message *msg = &ks->spi_msg1; in ks8851_wrreg16()
181 ret = spi_sync(ks->spidev, msg); in ks8851_wrreg16()
183 netdev_err(ks->netdev, "spi_sync() failed\n"); in ks8851_wrreg16()
194 static void ks8851_wrreg8(struct ks8851_net *ks, unsigned reg, unsigned val) in ks8851_wrreg8() argument
196 struct spi_transfer *xfer = &ks->spi_xfer1; in ks8851_wrreg8()
197 struct spi_message *msg = &ks->spi_msg1; in ks8851_wrreg8()
211 ret = spi_sync(ks->spidev, msg); in ks8851_wrreg8()
213 netdev_err(ks->netdev, "spi_sync() failed\n"); in ks8851_wrreg8()
[all …]
Dks8851_mll.c484 static u8 ks_rdreg8(struct ks_net *ks, int offset) in ks_rdreg8() argument
489 ks->cmd_reg_cache = (u16) offset | (u16)(BE0 << shift_bit); in ks_rdreg8()
490 iowrite16(ks->cmd_reg_cache, ks->hw_addr_cmd); in ks_rdreg8()
491 data = ioread16(ks->hw_addr); in ks_rdreg8()
503 static u16 ks_rdreg16(struct ks_net *ks, int offset) in ks_rdreg16() argument
505 ks->cmd_reg_cache = (u16)offset | ((BE1 | BE0) << (offset & 0x02)); in ks_rdreg16()
506 iowrite16(ks->cmd_reg_cache, ks->hw_addr_cmd); in ks_rdreg16()
507 return ioread16(ks->hw_addr); in ks_rdreg16()
517 static void ks_wrreg8(struct ks_net *ks, int offset, u8 value) in ks_wrreg8() argument
521 ks->cmd_reg_cache = (u16)offset | (BE0 << shift_bit); in ks_wrreg8()
[all …]
/drivers/net/phy/
Dspi_ks8995.c186 static inline __be16 create_spi_cmd(struct ks8995_switch *ks, int cmd, in create_spi_cmd() argument
192 result <<= ks->chip->addr_width + ks->chip->addr_shift; in create_spi_cmd()
194 result |= address << ks->chip->addr_shift; in create_spi_cmd()
199 static int ks8995_read(struct ks8995_switch *ks, char *buf, in ks8995_read() argument
207 cmd = create_spi_cmd(ks, KS8995_CMD_READ, offset); in ks8995_read()
220 mutex_lock(&ks->lock); in ks8995_read()
221 err = spi_sync(ks->spi, &m); in ks8995_read()
222 mutex_unlock(&ks->lock); in ks8995_read()
227 static int ks8995_write(struct ks8995_switch *ks, char *buf, in ks8995_write() argument
235 cmd = create_spi_cmd(ks, KS8995_CMD_WRITE, offset); in ks8995_write()
[all …]
/drivers/staging/skein/
Dskein_block.c33 #define ks (kw + KW_KEY_BASE) macro
77 X0 += ks[((R) + 1) % 5]; \
78 X1 += ks[((R) + 2) % 5] + ts[((R) + 1) % 3]; \
79 X2 += ks[((R) + 3) % 5] + ts[((R) + 2) % 3]; \
80 X3 += ks[((R) + 4) % 5] + (R) + 1; \
89 X0 += ks[r + (R) + 0]; \
90 X1 += ks[r + (R) + 1] + ts[r + (R) + 0];\
91 X2 += ks[r + (R) + 2] + ts[r + (R) + 1];\
92 X3 += ks[r + (R) + 3] + r + (R); \
94 ks[r + (R) + 4] = ks[r + (R) - 1]; \
[all …]
/drivers/media/i2c/
Dks0127.c345 struct ks0127 *ks = to_ks0127(sd); in ks0127_write() local
351 ks->regs[reg] = val; in ks0127_write()
358 struct ks0127 *ks = to_ks0127(sd); in ks0127_and_or() local
360 u8 val = ks->regs[reg]; in ks0127_and_or()
417 struct ks0127 *ks = to_ks0127(sd); in ks0127_s_routing() local
493 if (ks->norm & V4L2_STD_525_60) in ks0127_s_routing()
549 struct ks0127 *ks = to_ks0127(sd); in ks0127_s_std() local
554 ks->norm = std; in ks0127_s_std()
668 struct ks0127 *ks; in ks0127_probe() local
675 ks = devm_kzalloc(&client->dev, sizeof(*ks), GFP_KERNEL); in ks0127_probe()
[all …]
/drivers/input/misc/
Dgpio_input.c165 struct gpio_key_state *ks = dev_id; in gpio_event_input_irq_handler() local
166 struct gpio_input_state *ds = ks->ds; in gpio_event_input_irq_handler()
167 int keymap_index = ks - ds->key_state; in gpio_event_input_irq_handler()
179 if (ks->debounce & DEBOUNCE_WAIT_IRQ) { in gpio_event_input_irq_handler()
180 ks->debounce = DEBOUNCE_UNKNOWN; in gpio_event_input_irq_handler()
194 ks->debounce = DEBOUNCE_UNSTABLE; in gpio_event_input_irq_handler()
/drivers/s390/cio/
Dchsc.h89 u32 ks:4; member
Dchsc.c195 scssc->ks = PAGE_DEFAULT_KEY >> 4; in chsc_sadc()
/drivers/media/rc/keymaps/
DMakefile15 rc-avermedia-rm-ks.o \
/drivers/infiniband/sw/rxe/
Drxe_verbs.c93 struct ethtool_link_ksettings ks; in rxe_query_port() local
95 rxe->ndev->ethtool_ops->get_link_ksettings(rxe->ndev, &ks); in rxe_query_port()
96 speed = ks.base.speed; in rxe_query_port()