Home
last modified time | relevance | path

Searched refs:slave_id (Results 1 – 25 of 30) sorted by relevance

12

/drivers/infiniband/hw/mlx4/
Dcm.c49 int slave_id; member
154 id_map_find_by_sl_id(struct ib_device *ibdev, u32 slave_id, u32 sl_cm_id) in id_map_find_by_sl_id() argument
167 else if (id_map_entry->slave_id > slave_id) in id_map_find_by_sl_id()
169 else if (id_map_entry->slave_id < slave_id) in id_map_find_by_sl_id()
189 found_ent = id_map_find_by_sl_id(&dev->ib_dev, ent->slave_id, ent->sl_cm_id); in id_map_ent_timeout()
204 int slave_id = new->slave_id; in sl_id_map_add() local
207 ent = id_map_find_by_sl_id(ibdev, slave_id, sl_cm_id); in sl_id_map_add()
221 if (ent->sl_cm_id > sl_cm_id || (ent->sl_cm_id == sl_cm_id && ent->slave_id > slave_id)) in sl_id_map_add()
232 id_map_alloc(struct ib_device *ibdev, int slave_id, u32 sl_cm_id) in id_map_alloc() argument
243 ent->slave_id = slave_id; in id_map_alloc()
[all …]
Dalias_GUID.c79 int slave_id; in mlx4_ib_update_cache_on_guid_change() local
94 slave_id = (block_num * NUM_ALIAS_GUID_IN_REC) + i ; in mlx4_ib_update_cache_on_guid_change()
95 if (slave_id >= dev->dev->num_slaves) { in mlx4_ib_update_cache_on_guid_change()
96 pr_debug("The last slave: %d\n", slave_id); in mlx4_ib_update_cache_on_guid_change()
101 memcpy(&dev->sriov.demux[port_index].guid_cache[slave_id], in mlx4_ib_update_cache_on_guid_change()
191 int slave_id, slave_port; in mlx4_ib_notify_slaves_on_guid_change() local
216 slave_id = (block_num * NUM_ALIAS_GUID_IN_REC) + i ; in mlx4_ib_notify_slaves_on_guid_change()
217 if (slave_id >= dev->dev->persist->num_vfs + 1) in mlx4_ib_notify_slaves_on_guid_change()
220 slave_port = mlx4_phys_to_slave_port(dev->dev, slave_id, port_num); in mlx4_ib_notify_slaves_on_guid_change()
254 mlx4_gen_guid_change_eqe(dev->dev, slave_id, port_num); in mlx4_ib_notify_slaves_on_guid_change()
[all …]
Dmad.c689 u8 *slave_id; in mlx4_ib_demux_mad() local
747 slave_id = (u8 *) &mad->mad_hdr.tid; in mlx4_ib_demux_mad()
748 slave = *slave_id; in mlx4_ib_demux_mad()
750 *slave_id = 0; /* remap tid */ in mlx4_ib_demux_mad()
1485 u8 *slave_id; in mlx4_ib_multiplex_mad() local
1520 slave_id = (u8 *) &tunnel->mad.mad_hdr.tid; in mlx4_ib_multiplex_mad()
1521 if (*slave_id) { in mlx4_ib_multiplex_mad()
1523 "class:%d slave:%d\n", *slave_id, in mlx4_ib_multiplex_mad()
1527 *slave_id = slave; in mlx4_ib_multiplex_mad()
Dmlx4_ib.h872 int mlx4_ib_multiplex_cm_handler(struct ib_device *ibdev, int port, int slave_id,
876 void mlx4_ib_cm_paravirt_clean(struct mlx4_ib_dev *dev, int slave_id);
/drivers/spmi/
Dhisi-spmi-controller.c112 u8 opc, u8 slave_id, u16 slave_addr, u8 *__buf, size_t bc) in spmi_read_cmd() argument
147 ((slave_id & 0xf) << SPMI_APB_SPMI_CMD_SLAVEID_OFFSET) | /* slvid */ in spmi_read_cmd()
155 spmi_controller->base, slave_id, slave_addr); in spmi_read_cmd()
161 SPMI_SLAVE_OFFSET * slave_id + in spmi_read_cmd()
179 opc, slave_id, slave_addr, bc + 1); in spmi_read_cmd()
182 __func__, slave_id, slave_addr, (int)bc, __buf); in spmi_read_cmd()
188 u8 opc, u8 slave_id, u16 slave_addr, const u8 *__buf, size_t bc) in spmi_write_cmd() argument
223 ((slave_id & 0xf) << SPMI_APB_SPMI_CMD_SLAVEID_OFFSET) | in spmi_write_cmd()
249 spmi_controller->base, slave_id, in spmi_write_cmd()
255 opc, slave_id, slave_addr, bc); in spmi_write_cmd()
[all …]
/drivers/dma/sh/
Dshdma-base.c137 ops->setup_xfer(schan, schan->slave_id); in shdma_tx_submit()
198 schan->slave_id = schan->real_slave_id; in shdma_setup_slave()
218 schan->real_slave_id = slave->slave_id; in shdma_alloc_chan_resources()
224 schan->slave_id = -EINVAL; in shdma_alloc_chan_resources()
250 clear_bit(slave->slave_id, shdma_slave_used); in shdma_alloc_chan_resources()
278 int slave_id = (long)arg; in shdma_chan_filter() local
296 ret = sdev->ops->set_slave(schan, slave_id, 0, true); in shdma_chan_filter()
300 schan->real_slave_id = schan->slave_id; in shdma_chan_filter()
304 if (slave_id < 0) { in shdma_chan_filter()
310 if (slave_id >= slave_num) in shdma_chan_filter()
[all …]
Dshdmac.c305 int slave_id) in sh_dmae_setup_xfer() argument
310 if (slave_id >= 0) { in sh_dmae_setup_xfer()
338 if (cfg->slave_id == match) in dmae_find_slave()
343 sh_chan->shdma_chan.slave_id = i; in dmae_find_slave()
352 int slave_id, dma_addr_t slave_addr, bool try) in sh_dmae_set_slave() argument
356 const struct sh_dmae_slave_config *cfg = dmae_find_slave(sh_chan, slave_id); in sh_dmae_set_slave()
617 if (sh_chan->shdma_chan.slave_id >= 0) { in sh_dmae_resume()
/drivers/dma/
Dacpi-dma.c321 if (dma_spec->slave_id < adma->base_request_line || in acpi_dma_update_dma_spec()
322 dma_spec->slave_id > adma->end_request_line) in acpi_dma_update_dma_spec()
329 dma_spec->slave_id -= adma->base_request_line; in acpi_dma_update_dma_spec()
354 pdata->dma_spec.slave_id = dma->request_lines; in acpi_dma_parse_fixed_dma()
387 dma_spec->slave_id = -1; in acpi_dma_request_slave_chan_by_index()
396 if (dma_spec->slave_id < 0 || dma_spec->chan_id < 0) in acpi_dma_request_slave_chan_by_index()
Dfsl-edma.c125 fsl_chan->slave_id = dma_spec->args[1]; in fsl_edma_xlate()
126 fsl_edma_chan_mux(fsl_chan, fsl_chan->slave_id, in fsl_edma_xlate()
358 fsl_chan->slave_id = 0; in fsl_edma_probe()
476 if (fsl_chan->slave_id != 0) in fsl_edma_resume_early()
477 fsl_edma_chan_mux(fsl_chan, fsl_chan->slave_id, true); in fsl_edma_resume_early()
Dtegra186-gpc-dma.c233 int slave_id; member
308 int sid = tdc->slave_id; in tegra_dma_sid_reserve()
338 int sid = tdc->slave_id; in tegra_dma_sid_free()
1025 csr |= FIELD_PREP(TEGRA_GPCDMA_CSR_REQ_SEL_MASK, tdc->slave_id); in tegra_dma_prep_slave_sg()
1160 csr |= FIELD_PREP(TEGRA_GPCDMA_CSR_REQ_SEL_MASK, tdc->slave_id); in tegra_dma_prep_dma_cyclic()
1267 tdc->slave_id = -1; in tegra_dma_free_chan_resources()
1286 tdc->slave_id = dma_spec->args[0]; in tegra_dma_of_xlate()
1397 tdc->slave_id = -1; in tegra_dma_probe()
Dtegra20-apb-dma.c203 unsigned int slave_id; member
1080 if (tdc->slave_id != TEGRA_APBDMA_SLAVE_ID_INVALID) { in tegra_dma_prep_slave_sg()
1082 csr |= tdc->slave_id << TEGRA_APBDMA_CSR_REQ_SEL_SHIFT; in tegra_dma_prep_slave_sg()
1228 if (tdc->slave_id != TEGRA_APBDMA_SLAVE_ID_INVALID) { in tegra_dma_prep_dma_cyclic()
1230 csr |= tdc->slave_id << TEGRA_APBDMA_CSR_REQ_SEL_SHIFT; in tegra_dma_prep_dma_cyclic()
1348 tdc->slave_id = TEGRA_APBDMA_SLAVE_ID_INVALID; in tegra_dma_free_chan_resources()
1368 tdc->slave_id = dma_spec->args[0]; in tegra_dma_of_xlate()
1518 tdc->slave_id = TEGRA_APBDMA_SLAVE_ID_INVALID; in tegra_dma_probe()
Dmilbeaut-hdmac.c72 unsigned int slave_id; member
147 ca = FIELD_PREP(MLB_HDMAC_IS, mc->slave_id); in milbeaut_chan_start()
419 mc->slave_id = dma_spec->args[0]; in milbeaut_hdmac_xlate()
Dmcf-edma.c228 mcf_chan->slave_id = i; in mcf_edma_probe()
310 return (mcf_chan->slave_id == (uintptr_t)param); in mcf_edma_filter_fn()
Dfsl-edma-common.h119 u32 slave_id; member
/drivers/soc/tegra/cbb/
Dtegra234-cbb.c270 u8 slave_id, u8 fab_id) in tegra234_lookup_slave_timeout() argument
292 addr = cbb->regs + map[slave_id].offset; in tegra234_lookup_slave_timeout()
294 if (strstr(map[slave_id].name, "AXI2APB")) { in tegra234_lookup_slave_timeout()
297 tegra234_cbb_lookup_apbslv(file, map[slave_id].name, addr); in tegra234_lookup_slave_timeout()
306 sprintf(name, "%s_SLV_TIMEOUT_STATUS", map[slave_id].name); in tegra234_lookup_slave_timeout()
356 u8 access_type, access_id, requester_socket_id, local_socket_id, slave_id, fab_id; in print_errlog_err() local
384 slave_id = FIELD_GET(FAB_EM_EL_SLAVEID, cbb->mn_attr2); in print_errlog_err()
428 tegra_cbb_print_err(file, "\t Slave_Id\t\t: %#x\n", slave_id); in print_errlog_err()
439 if (slave_id >= cbb->fabric->max_slaves) { in print_errlog_err()
440 tegra_cbb_print_err(file, "\t Invalid slave_id:%d\n", slave_id); in print_errlog_err()
[all …]
/drivers/dma/dw/
Dacpi.c14 .src_id = dma_spec->slave_id, in dw_dma_acpi_filter()
15 .dst_id = dma_spec->slave_id, in dw_dma_acpi_filter()
/drivers/fsi/
Dfsi-core.c112 uint8_t slave_id, uint32_t addr, void *val, size_t size);
114 uint8_t slave_id, uint32_t addr, const void *val, size_t size);
1143 uint8_t slave_id, uint32_t addr, void *val, size_t size) in fsi_master_read() argument
1147 trace_fsi_master_read(master, link, slave_id, addr, size); in fsi_master_read()
1151 rc = master->read(master, link, slave_id, addr, val, size); in fsi_master_read()
1153 trace_fsi_master_rw_result(master, link, slave_id, addr, size, in fsi_master_read()
1160 uint8_t slave_id, uint32_t addr, const void *val, size_t size) in fsi_master_write() argument
1164 trace_fsi_master_write(master, link, slave_id, addr, size, val); in fsi_master_write()
1168 rc = master->write(master, link, slave_id, addr, val, size); in fsi_master_write()
1170 trace_fsi_master_rw_result(master, link, slave_id, addr, size, in fsi_master_write()
Dfsi-master-gpio.c298 static void build_dpoll_command(struct fsi_gpio_msg *cmd, uint8_t slave_id) in build_dpoll_command() argument
303 msg_push_bits(cmd, slave_id, 2); in build_dpoll_command()
308 static void build_epoll_command(struct fsi_gpio_msg *cmd, uint8_t slave_id) in build_epoll_command() argument
313 msg_push_bits(cmd, slave_id, 2); in build_epoll_command()
318 static void build_term_command(struct fsi_gpio_msg *cmd, uint8_t slave_id) in build_term_command() argument
323 msg_push_bits(cmd, slave_id, 2); in build_term_command()
Dfsi-master-ast-cf.c274 static void build_dpoll_command(struct fsi_msg *cmd, uint8_t slave_id) in build_dpoll_command() argument
279 msg_push_bits(cmd, slave_id, 2); in build_dpoll_command()
285 static void build_epoll_command(struct fsi_msg *cmd, uint8_t slave_id) in build_epoll_command() argument
290 msg_push_bits(cmd, slave_id, 2); in build_epoll_command()
296 static void build_term_command(struct fsi_msg *cmd, uint8_t slave_id) in build_term_command() argument
301 msg_push_bits(cmd, slave_id, 2); in build_term_command()
/drivers/dma/sf-pdma/
Dsf-pdma.h94 u32 slave_id; member
/drivers/net/bonding/
Dbond_main.c2540 if (i++ == (int)info->slave_id) { in bond_slave_info_query()
4817 int slave_id) in bond_get_slave_by_id() argument
4821 int i = slave_id; in bond_get_slave_by_id()
4832 i = slave_id; in bond_get_slave_by_id()
4853 u32 slave_id; in bond_rr_gen_slave_id() local
4859 slave_id = get_random_u32(); in bond_rr_gen_slave_id()
4862 slave_id = this_cpu_inc_return(*bond->rr_tx_counter); in bond_rr_gen_slave_id()
4867 slave_id = this_cpu_inc_return(*bond->rr_tx_counter); in bond_rr_gen_slave_id()
4868 slave_id = reciprocal_divide(slave_id, in bond_rr_gen_slave_id()
4873 return slave_id; in bond_rr_gen_slave_id()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Deq.c152 slave = eqe->slave_id; in mlx4_gen_slave_eqe()
212 s_eqe->slave_id = slave; in slave_event()
737 flr_slave = be32_to_cpu(eqe->event.flr_event.slave_id); in mlx4_eq_int()
783 eqe->slave_id, in mlx4_eq_int()
820 eqe->slave_id, in mlx4_eq_int()
/drivers/media/usb/uvc/
Duvc_ctrl.c1456 struct uvc_fh *handle, struct uvc_control *master, u32 slave_id) in uvc_ctrl_send_slave_event() argument
1463 __uvc_find_control(master->entity, slave_id, &mapping, &ctrl, 0); in uvc_ctrl_send_slave_event()
1579 u32 slave_id = mapping->slave_ids[j]; in uvc_ctrl_send_events() local
1581 if (!slave_id) in uvc_ctrl_send_events()
1589 slave_id)) in uvc_ctrl_send_events()
1593 slave_id); in uvc_ctrl_send_events()
/drivers/usb/renesas_usbhs/
Dfifo.c1240 if (0 == slave->shdma_slave.slave_id) in usbhsf_dma_filter()
1447 fifo->tx_slave.shdma_slave.slave_id = \
1449 fifo->rx_slave.shdma_slave.slave_id = \
/drivers/mmc/host/
Dsh_mmcif.c388 sh_mmcif_request_dma_pdata(struct sh_mmcif_host *host, uintptr_t slave_id) in sh_mmcif_request_dma_pdata() argument
394 if (slave_id <= 0) in sh_mmcif_request_dma_pdata()
397 return dma_request_channel(mask, shdma_chan_filter, (void *)slave_id); in sh_mmcif_request_dma_pdata()

12